rm-rf-guard
by Plagemes · ★ 8 · updated 15 Oct 2026
Blocks catastrophic shell commands like rm -rf /, mkfs, dd to disks and chmod -R 777.
Install
/plugin marketplace add Plagemes/claude-mods/plugin install rm-rf-guard@claude-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.starttool.call- API calls
$.clock.after$.fs.read$.mods.hello$.mods.mode$.mods.publish$.mods.registerTab$.ui.log- Can see
Bash calls- Reach
- level 1 of 3 reads filesdrawsother: $.mods.helloother: $.mods.modeother: $.mods.publishother: $.mods.registerTab
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/Plagemes/claude-mods
- Path in repo
mods/rm-rf-guard- Source commit
e9815cethe exact code the scan read- Author
- @Plagemes
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from Plagemes/claude-mods
sbom
Plagemes/claude-mods
/sbom generates a software bill of materials with every dependency and its license.
schema-pane
Plagemes/claude-mods
A pane of your local database's tables and columns, ready to hand to Claude as context.
schema-sync
Plagemes/claude-mods
After Prisma or Drizzle schema edits, regenerates the client and warns when a migration is missing.
scope-lock
Plagemes/claude-mods
/scope locks Claude to the files you name; edits outside the scope are blocked.
scratchpad
Plagemes/claude-mods
A persistent per-project notes pane you can type into without leaving Claude Code.
screenshot-check
Plagemes/claude-mods
After UI edits, takes a Playwright screenshot of the page and shows it to Claude.
second-opinion
Plagemes/claude-mods
/second-opinion has a different model critique Claude's last answer or plan.
secret-shield
Plagemes/claude-mods
Blocks edits and writes that would commit API keys, tokens or private keys.
seed-guard
Plagemes/claude-mods
Blocks database seed, reset and drop commands unless DATABASE_URL points at your own machine.
self-check
Plagemes/claude-mods
At the end of each editing turn, has the model double-check it actually did what you asked.
session-journal
Plagemes/claude-mods
Writes a dated journal entry of what was done when the session ends.
session-replay
Plagemes/claude-mods
/replay steps through the session — prompts, tool calls, edits — in a pane, like a video timeline.
Related mods
Other mods in Guards, close to this one by stars.