Guards

196 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.

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

script-guard

MatheusChiodi/cockpit

Refuses npm run or pnpm run of a script that package.json does not declare and lists the ones it does

★ 2Guards

script-mode-guard

MatheusChiodi/cockpit

Asks before a script or config gets a world-writable mode, umask 0 or an Everyone grant

★ 2Guards

scripts-context

MatheusChiodi/cockpit

Tells Claude the test, lint, build and dev scripts of package.json and the package manager, so it stops guessing commands

★ 2GuardsPrompt

secret-scan

MatheusChiodi/cockpit

Refuses Write/Edit whose content carries API keys, tokens or private keys

★ 2Guards

session-cap

MatheusChiodi/cockpit

Toast after three hours of continuous use in one session, then again every hour

★ 2ToastsGuardsPrompt