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.

param-count-note

MatheusChiodi/cockpit

Tells Claude when an edit adds a function with more than five parameters

★ 2ToastsGuards

path-jail

MatheusChiodi/cockpit

Restricts Write/Edit to the project root, the temp folder and ~/.claude (resolves symlinks)

★ 2Guards

persistence-guard

MatheusChiodi/cockpit

Asks before a command that makes something run on its own later: cron, schtasks, systemd, launchd or a Startup folder

★ 2Guards

pipe-shell-guard

MatheusChiodi/cockpit

Blocks curl | sh, wget | bash, iwr | iex and variants

★ 2Guards

pm-guard

MatheusChiodi/cockpit

Refuses npm, pnpm, yarn or bun commands that use a different package manager than the project's lockfile, and names the right one

★ 2Guards

posture

MatheusChiodi/cockpit

Toast every 30 minutes of use with one short posture check, rotating through four

★ 2ToastsGuardsPrompt

priciest-turn

MatheusChiodi/cockpit

/priciest shows the most expensive turn of the session, its share of the total, the prompt and the tools it ran

★ 2GuardsCommandsAutomation

private-host-guard

MatheusChiodi/cockpit

Asks before an edit adds a private IP address or an internal hostname to source

★ 2Guards

prod-guard

MatheusChiodi/cockpit

Requires your confirmation for deploys, publishes, terraform apply, kubectl and migrations

★ 2Guards

quality-status

MatheusChiodi/cockpit

Status line with the latest lint, types and build results

★ 2Status lineGuards

read-cap

MatheusChiodi/cockpit

Reads only the first 600 lines of a file over 150 KB and tells Claude how to continue with offset

★ 2ToastsGuards

read-only-status

MatheusChiodi/cockpit

Status line with the files Claude read in this session and never edited, a measure of how much context went to looking

★ 2Status lineGuards

read-pane

MatheusChiodi/cockpit

/reads opens a pane with the files read this session and how often; files read 3 or more times are flagged as wasted context

★ 2PanesGuardsCommands

readme-context

MatheusChiodi/cockpit

Gives Claude the first paragraph of the README, so it knows what the project is without reading it

★ 2GuardsPrompt

red-turn-toast

MatheusChiodi/cockpit

Toast when a turn ends while the last test run is still failing

★ 2ToastsGuards

registry-guard

MatheusChiodi/cockpit

Asks before a command changes where packages come from: npm, pnpm, yarn and pip registry or index settings

★ 2Guards

release-status

MatheusChiodi/cockpit

Status line with the package version, the latest tag and the commits waiting for the next release

★ 2Status lineGuards

remote-context

MatheusChiodi/cockpit

Tells Claude the default branch and the remote of the repository, so it never guesses main or origin

★ 2GuardsPromptAutomation

reread-guard

MatheusChiodi/cockpit

Refuses reading again a file Claude already read this session when it has not changed, once, with a reason

★ 2GuardsAutomation

retry-status

MatheusChiodi/cockpit

Status line counting how many times in a row the same command has failed, until it passes or another fails

★ 2Status lineGuards

rm-guard

MatheusChiodi/cockpit

Blocks rm -rf and Remove-Item -Recurse on root, home and drives, plus mkfs, dd and format

★ 2Guards

runtime-band

MatheusChiodi/cockpit

Band that appears when the Node, Python or Java version the project asks for differs from the one installed

★ 2BandsGuards

runtime-pin-context

MatheusChiodi/cockpit

Tells Claude the runtime versions the project pins: .nvmrc, engines, packageManager, .tool-versions

★ 2GuardsPrompt

scatter-toast

MatheusChiodi/cockpit

Toast when one turn changes eight or more files across four or more unrelated folders

★ 2ToastsGuards