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.

commented-code-note

MatheusChiodi/cockpit

Tells Claude when an edit leaves three or more lines of commented-out code

★ 2ToastsGuards

commit-review

MatheusChiodi/cockpit

Asks you to look at the diff before a big commit goes through, showing the files and lines staged

★ 2GuardsAutomation

conventions-context

MatheusChiodi/cockpit

Points Claude at CONTRIBUTING.md or a conventions file with its path, size and headings, to read before writing code

★ 2GuardsPrompt

cors-open-guard

MatheusChiodi/cockpit

Asks before an edit opens CORS to every origin with * or a bare cors()

★ 2Guards

coverage-status

MatheusChiodi/cockpit

Status line with the line coverage of the last report in the project, and how far it moved

★ 2Status lineGuards

credential-file-guard

MatheusChiodi/cockpit

Blocks reading or copying SSH keys, cloud and registry credentials and shell history, with Read and in the shell

★ 2Guards

data-layer-context

MatheusChiodi/cockpit

Tells Claude the database and ORM in use and where the schema and migrations live

★ 2GuardsPrompt

day-close

MatheusChiodi/cockpit

/dayend sets an hour; at that time one quiet toast sums up the day with prompts, turns and edits

★ 2ToastsGuardsCommands

day-timer

MatheusChiodi/cockpit

Status line with your active Claude Code time today, summed across sessions

★ 2Status lineGuardsPrompt

db-port-status

MatheusChiodi/cockpit

Status line that warns when the local database or cache the project points to is not listening

★ 2Status lineGuards

debug-flag-guard

MatheusChiodi/cockpit

Asks before an edit leaves a debug flag on, exposes every actuator endpoint or sets development mode in a production file

★ 2Guards

debugger-guard

MatheusChiodi/cockpit

Refuses edits that add a debugger statement, breakpoint(), pdb or binding.pry

★ 2Guards

deny-toast

MatheusChiodi/cockpit

A toast whenever a tool call is refused, naming the tool and the first line of the reason

★ 2ToastsGuards

dep-source-guard

MatheusChiodi/cockpit

Asks before a dependency is pinned to a git URL or tarball, or pulled over plain http

★ 2Guards

deploy-status

MatheusChiodi/cockpit

Status line entry with the result of the last deploy command: vercel, netlify, eas, firebase, fly and others

★ 2Status lineGuards

dev-server-guard

MatheusChiodi/cockpit

Asks before npm run dev, next dev or vite starts while something already answers on that dev server's port

★ 2GuardsAutomation

diff-pane

MatheusChiodi/cockpit

/edits opens a pane with every Edit and Write of the session, lines added and removed, newest first

★ 2PanesGuardsCommands

doc-missing-note

MatheusChiodi/cockpit

Tells Claude when an edit exports a function without the doc comment the file's other exports have

★ 2ToastsGuards

docker-band

MatheusChiodi/cockpit

Band that warns when the Docker daemon is down or a compose stack has services stopped

★ 2BandsGuards

docker-guard

MatheusChiodi/cockpit

Asks before destructive Docker commands: system prune, volume rm or prune, rm -f, rmi -f and compose down -v

★ 2Guards

dotfile-guard

MatheusChiodi/cockpit

Blocks edits to your shell and tool profiles: .bashrc, .zshrc, .gitconfig, .ssh/config and the PowerShell profile

★ 2Guards

dup-block-guard

MatheusChiodi/cockpit

Refuses an edit whose new code repeats a block of 6 or more lines already in the same file

★ 2Guards

dynamic-exec-guard

MatheusChiodi/cockpit

Asks before an edit adds eval, new Function, innerHTML or a shell command built from a variable

★ 2Guards

edit-thrash-band

MatheusChiodi/cockpit

Band that appears when the current turn edits the same file three times or more, a sign that Claude is going in circles

★ 2BandsGuards