Guards

5,126 mods

Guards sit in front of the tools Claude uses. They can allow, deny or rewrite a tool call before it runs, for example to block risky shell commands or keep secrets out of tool output, using the tool.call and tool.check hooks.

ripple

Orfila-antoine/claude-mods

Edits collapse to one line in the conversation; a /ripple pane shows the edited files and the files that use them as a growing tree, one section per agent

★ 1PanesReskinsGuards

big-output

MDmubarak786/claude-mods

Keep huge shell output out of the context window. A Bash result over a threshold is saved to a file and Claude gets its head and tail plus a slice tool to grep or page the rest on demand.

★ 1GuardsCommandsTools & agents

circuit-breaker

MDmubarak786/claude-mods

Stop Claude from retrying the same failing shell command over and over. After N identical failures the next attempt is held, and you choose: stop, or try once more.

★ 1ReskinsGuardsCommands

ding

MDmubarak786/claude-mods

Play a sound and post a desktop notification when Claude finishes a turn or needs you to answer a question or a permission prompt.

★ 1ToastsGuardsCommands

fence

MDmubarak786/claude-mods

Limit which paths Claude may edit in a project with one /fence command. Edits outside the fence are refused with a reason Claude can act on.

★ 1GuardsCommandsAutomation

memory-lint

MDmubarak786/claude-mods

Know whether your auto-memory index loaded whole. Reports the index's size against a limit you set at every session start, names the entries past the cut, and warns when a session pushes it over.

★ 1Status lineGuardsCommands

pkg-guard

MDmubarak786/claude-mods

Hold npm, pnpm, yarn, pip, uv, and cargo installs of packages that don't exist, are brand new, or are barely downloaded, with the registry facts in the question. Catches hallucinated and typosquat packages before they land.

★ 1GuardsCommandsAutomation

red-green

MDmubarak786/claude-mods

Run the project's tests after any turn that edited files, print pass or fail under Claude's answer, and send the failure back to Claude with one /fix command.

★ 1GuardsCommandsAutomation

right-tool

MDmubarak786/claude-mods

Stop Claude using cat, grep, find, and sed in Bash when the Read, Grep, and Glob tools fit. Each redirected call saves a permission prompt and keeps raw shell output out of context.

★ 1GuardsCommandsAutomation

standup

MDmubarak786/claude-mods

Your day, written for you. Every turn is logged; /standup turns today's work across every session on the machine into a three-bullet update, or a Markdown file.

★ 1GuardsCommandsAutomation

style-cop

MDmubarak786/claude-mods

Enforce the style rules Claude keeps ignoring: banned words and phrases, a comment-density cap on added code, and files that must not gain comments. Rules live in .claude/style-cop.md and are both shown to Claude and enforced on edits.

★ 1GuardsCommandsPrompt

tripwire

MDmubarak786/claude-mods

Stop secrets leaving the machine. Holds an edit or command that writes an API key, a private key, or a credential literal, a command that reads a secret file and talks to the network, and a git commit whose staged changes contain a secret. Refuses by default.

★ 1GuardsCommandsAutomation

trust-but-verify

MDmubarak786/claude-mods

Check what Claude claims against what it ran. When an answer says the tests pass, the build is clean, or something was committed, a line under it says whether a matching command actually ran this turn and succeeded.

★ 1GuardsCommandsAutomation

undo-agent

MDmubarak786/claude-mods

Undo the file edits a subagent made. /rewind restores your own turns, but not a subagent's edits; this snapshots them and puts the files back with one command.

★ 1GuardsCommandsAutomation

node-close

AnnihilationWizard/node-close

End the Node processes a finished command left running, such as test runners and esbuild; /node-close finds orphaned ones

★ 1ToastsGuardsCommands

chrome-close

AnnihilationWizard/chrome-close

Allow one headless Chrome at a time: refuse Claude's launches while any headless Chrome or its leftover helpers still run

★ 1Status lineGuards

accounts-readout

renchris/claude-infrastructure

Draws the /accounts readout under its shell command and re-lays it out whenever the pane changes width

★ 1BandsReskinsGuards

receipts

ryx2/slopshopper

A ledger of what Claude touched this session: files created and edited, commands run and whether they failed, the git diffstat after each turn. /receipts prints it as Markdown for a PR description or a standup, or copies it to the clipboard.

★ 1PanesReskinsGuards

secret-shield

ryx2/slopshopper

Keeps secrets out of the transcript and out of the repo: redacts API keys, tokens, private keys and password URLs from tool results before Claude reads them, and refuses a Write, Edit or Bash command that embeds one.

★ 1BandsGuardsCommands

slop-detector

ryx2/slopshopper

Catches slop as Claude writes it: refuses a file edit that replaces code with a '... rest of the code' placeholder, and tracks TODO stubs, not-implemented throws, debug prints, @ts-ignore and other leftovers in a band above the prompt and a /slop pane.

★ 1PanesBandsGuards

test-pulse

ryx2/slopshopper

Runs your test suite after every turn in which Claude changed source, and keeps the result above the prompt: green with the pass count, red with the first failing test. Detects bun, npm, pytest, cargo and go, or runs the command you set. Toasts on a regression and a recovery.

★ 1PanesBandsGuards

tripwire

ryx2/slopshopper

Holds destructive commands until you say so: rm -rf, force pushes, git reset --hard, DROP TABLE, curl | sh, sudo, chmod -R 777, edits to .env. One question in Claude's own dialog, fail-closed if the guard itself breaks, and a /tripwire log of every decision.

★ 1ToastsGuardsCommands

colony-code

Tw1stedGene/colony-code

Shows this Claude Code session and its subagents as remote workers in your RimWorld colony (needs the Colony Code mod running in the game).

★ 1Status lineGuardsPrompt

drive

RikusVanRensburg/agentic-marketplace

/drive and four tools (testing_run, docker_stack, docs_index, drive_check) that keep the drive's testing, docker and docs folders to their manifests; cleanup runs only on /drive clean apply

★ 1ToastsGuardsCommands