Block Destructive Commands
Denies Bash commands that match destructive patterns (recursive rm on roots, force push, hard reset, destructive SQL, disk formatting) before they run. A tool.call hook with a Bash matcher that returns { deny } without calling next.
# block-destructive-commands
Denies Bash commands that match destructive patterns before they run.
A `tool.call` hook under a `{ tool: "Bash" }` matcher: on a match it returns
`{ deny }` without calling `next`, so nothing beneath (other plugins,
PreToolUse shell hooks, the tool itself) runs; otherwise it passes through.
**If …
You are seeing the first 50 words. Purchase the Claude Skills Pack to see the full mod and download it.