All Claude Code modsJinhaoFang/claude-mods
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 reaches L0 (draws and remembers) and passed claude plugin validate on Claude Code 2.1.302.
- Events hooked: 1
- API methods referenced: 1
- Access from classified calls: L0, draws and remembers: draws
- Static scan, not a runtime test
Install hint
/plugin install block-destructive-commands --marketplace JinhaoFang/claude-modsFrom the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.
Access
L0 Draws & remembersdrawsValidation
Passed on Claude Code 2.1.302View the source on GitHub Back to the list
What the scan recorded
- Observed events
- Bash calls
- Hooks
tool.call {tool=Bash}- API calls
$.ui.log- Validation on 2.1.302
- Passed
- Scanned revision
b8700d5f2f8a- Marketplace passed
- claude-mods
These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. How the scan works.
More from JinhaoFang/claude-mods
- agent-flowThe agent flow pane: /flow opens a live tree of the session's subagents and teammates beside the transcript,…
- context-bandA band above the prompt showing the session's context usage, plan quota or cost
- image-viewSee the images you paste into Claude Code: thumbnails above the prompt instead of bare [Image #1] tags
- redactRewrites sensitive data (emails, IPs, credentials, addresses) out of what enters the model context
Badge for your README
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/JinhaoFang--claude-mods--block-destructive-commands/)
[](https://mods.aidojo.si/mods/JinhaoFang--claude-mods--block-destructive-commands/)