guarding-destructive-operations

Installation
SKILL.md

Guarding Destructive Operations

Some operations have no undo: an orphan-branch rewrite, a recursive delete of every tracked file, an overwrite of a stored artifact, a DROP/purge path. The implementation is usually short and usually correct for the setup its author had in mind. The bug is never the deletion itself — it is that nothing checked whether the target was the thing the author imagined.

Two shapes recur, and they take the same fix:

  • Blast radius. The operation is correct only in a dedicated, single-purpose target and is catastrophic in a mixed one.
  • Boundary escape. A caller-supplied name is joined onto a base directory and lands outside it.

Refuse; don't warn, and don't add an override

Installs
19
GitHub Stars
1.2K
First Seen
13 days ago
guarding-destructive-operations — kajisho5/ffmpeg-skill