block-destructive-commands 0.2.0

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.

claude-code-templates 0 on JinhaoFang/claude-mods

Install

Claude Code
/plugin marketplace add JinhaoFang/claude-mods
/plugin install block-destructive-commands@claude-mods

Run both lines inside Claude Code.

Hooks into

  • Tool calls

Also in JinhaoFang/claude-mods

More guardrails mods

All guardrails mods
Repo stars
0
Repo forks
0
License
Apache-2.0
Last commit
Checked
3022207,
Source on GitHub