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.

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

late-night

MatheusChiodi/cockpit

One toast per session when you work after 23:00 local time: it is late, park the work

★ 2ToastsGuardsPrompt

layout-context

MatheusChiodi/cockpit

Gives Claude the folder layout two levels deep, skipping node_modules and build output

★ 2GuardsPrompt

leftovers-toast

MatheusChiodi/cockpit

Toast at the end of a turn counting the debug logs and TODOs the edits added

★ 2ToastsGuards

license-status

MatheusChiodi/cockpit

Status line that warns when the project has no license file or no license field in package.json

★ 2Status lineGuards

lockfile-guard

MatheusChiodi/cockpit

Prevents hand edits to lockfiles (package-lock, yarn.lock, pnpm-lock, Cargo.lock...)

★ 2Guards