type: rule
status: active
timestamp: 2026-06-21
tags: [feedback, agent-preferences, destructive-edits]

Don't create .bak folders

User rejected src.bak/ pattern. Git history = durable backup. Destructive edit? ASK FIRST

User direction 2026-06-21: “I did not understand why. Why you? Have you find the source file containing the code? Why divide by? why created .bak file”

Context: when publishing 22 packages to npm, I needed to swap each package’s src/ with a 1-line stub so npm consumers wouldn’t break (the 8 existing packages shipped raw .ts with no build pipeline). My solution was mv src src.bak && write stub src/. Wrong call.

Why wrong:

How to apply:


Edit on GitHub · Back to index