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.

flood-note

MatheusChiodi/cockpit

Tells Claude when a search or command returned over 300 lines, so it narrows the next one instead of repeating it

★ 2ToastsGuards

gate-band

MatheusChiodi/cockpit

Band with the tool calls denied and the ones that stopped to ask you in the current turn, and the last one

★ 2BandsGuards

generated-guard

MatheusChiodi/cockpit

Prevents edits in node_modules, dist, build, .next, coverage, .git and the like

★ 2Guards

git-band

MatheusChiodi/cockpit

Band with the branch, changed files, lines added and removed, ahead/behind and the last commit

★ 2BandsGuards

git-guard

MatheusChiodi/cockpit

Blocks destructive git: push --force, reset --hard, clean -f, --no-verify, branch -D

★ 2Guards

git-log-limit

MatheusChiodi/cockpit

Adds -n 30 to a git log that has no limit, so the history does not flood the context

★ 2ToastsGuards

git-status-line

MatheusChiodi/cockpit

Status line with branch, changed files and commits ahead/behind

★ 2Status lineGuards

gitignore-guard

MatheusChiodi/cockpit

Asks before a .gitignore edit drops an entry that protects .env, keys or credentials, or git add -f forces one in

★ 2Guards

green-age-status

MatheusChiodi/cockpit

Status line with how long ago the tests last passed and how many edits Claude has made since

★ 2Status lineGuards

grep-limit

MatheusChiodi/cockpit

Caps a Grep that prints matching lines at 100 lines and tells Claude when the cap cut the answer

★ 2ToastsGuards

hands-band

MatheusChiodi/cockpit

Band that splits the uncommitted files into the ones Claude edited in this session and the ones you changed yourself

★ 2BandsGuards

hardcoded-secret-guard

MatheusChiodi/cockpit

Asks before an edit puts a hardcoded password, connection string or JWT into source

★ 2Guards

heavy-calls

MatheusChiodi/cockpit

/heavy lists the five tool results that took the most context this session, with tool, target and size

★ 2GuardsCommandsAutomation

hook-order-note

MatheusChiodi/cockpit

Tells Claude when an edit calls a React hook inside a condition, a loop, a callback or after an early return

★ 2ToastsGuards

hydrate

MatheusChiodi/cockpit

Toast every 60 minutes of real use reminding you to drink water

★ 2ToastsGuardsPrompt

import-shadow-note

MatheusChiodi/cockpit

Tells Claude when an edit declares a variable, function or class with the same name as one of the file's imports

★ 2ToastsGuards

install-ask

MatheusChiodi/cockpit

Requires your confirmation whenever Claude is about to install a new dependency

★ 2Guards

install-status

MatheusChiodi/cockpit

Status line that warns when node_modules is missing or older than the lockfile

★ 2Status lineGuards

intent-check

MatheusChiodi/cockpit

/intent says what the session is for; every 30 minutes of use a toast asks if you are still on it

★ 2ToastsGuardsCommands

java-print-note

MatheusChiodi/cockpit

Tells Claude when a Java edit adds System.out or System.err output or a printStackTrace call instead of the logger

★ 2ToastsGuards

kill-guard

MatheusChiodi/cockpit

Blocks broad process kills: kill -1, killall, loose pkill, taskkill on system or wildcard names, Stop-Process -Name *

★ 2Guards

large-write-guard

MatheusChiodi/cockpit

Refuses a Write over 1,500 lines or 200 KB and asks for the file to be split or generated by a script

★ 2Guards

last-cmd-status

MatheusChiodi/cockpit

Status line with how the last shell command ended, passed, failed or interrupted, how long it took and what it was

★ 2Status lineGuards

last-error

MatheusChiodi/cockpit

/lasterr recalls the most recent shell command that failed this session and the end of its output

★ 2GuardsCommandsAutomation