Software Development
Guarding Destructive Operations
Add and review preconditions on operations that delete, overwrite, rewrite history, or resolve a caller-supplied name to a filesystem path — refusing instead of warning, placing the guard ahead of the first mutation, structural classification rather than string-prefix matching, name validation plus resolved-path containment as two independent checks, why a guard on the destructive path is invisible to the dry-run, and mutation-testing each half separately. Use when writing or reviewing a `--rebuild`/`--reset`/`--purge` command, a bulk delete, a history rewrite, an `rm -rf`-shaped step, or any code that turns an argument into a file path.
- Publisher / source
- kajisho5/ffmpeg-skill (found on GitHub top repositories)
- Upstream record
- kajisho5/ffmpeg-skill
- Version
- Version 1
- Published
- Publication review
- Approved for publication
- Content fingerprint
06decc8e6d2580632255d1562ca79b50ab597afb32beec2d84e28371f07fc29d