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.
Install
/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
- context-band 0.2.0 A band above the prompt showing the session's context usage, plan quota or cost 0
- agent-flow 0.1.0 The agent flow pane: /flow opens a live tree of the session's subagents and teammates beside the transcript, fed by engine events, with a text fallback where no pane can be drawn. 0
- image-view 0.1.0 See the images you paste into Claude Code: thumbnails above the prompt instead of bare [Image #1] tags 0
More guardrails mods
- blast-radius 0.1.0 See what a risky command would change before it runs. 244.7k
- agents-md 0.1.0 AGENTS.md as project instructions, by one option. Under claude-md-or-agents-md a project with no instruction files of its own gets its AGENTS.md files instead: a prompt.context hook asks $.fs.ancestors for every AGENTS.md and .claude/AGENTS.md from the filesystem root down to the working director... 149.7k
- ruflo-rvf 0.3.5 mod + skill RVF format for portable agent memory, session persistence, and cross-platform transfer. As a mod (ADR-445): a write guard that keeps secrets out of memory, sessions and transfers, /rvf-mod, and a status file the console shows 74k
- openviking-memory 0.7.3 mod + skill Long-term semantic memory for Claude Code, powered by OpenViking. Auto-recall relevant memories at session start and capture important information during conversations. 39.3k
- tool-timing-badge 0.2.0 Times every tool call and wraps the engine's ToolUse rendering with a colored duration badge from the surface's own element table, on the terminal, Desktop and mobile. Hooks tool.call and ui.render using JSX. 32.4k