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.

session-diff-band

MatheusChiodi/cockpit

Band with the total lines Claude wrote and removed in the session

★ 2BandsGuards

session-stats

MatheusChiodi/cockpit

/stats sums up the session: time, prompts, tools, tokens, context and cost

★ 2GuardsCommandsAutomation

shield-band

MatheusChiodi/cockpit

Band with the count of calls blocked by guards and the last reason

★ 2BandsGuards

slow-call-status

MatheusChiodi/cockpit

Status line with the tool call that has been running longest right now, once it passes 15 seconds

★ 2Status lineGuards

slow-toast

MatheusChiodi/cockpit

A toast when a shell command took a minute or more, with the command and how long it ran

★ 2ToastsGuards

snapshot-update-guard

MatheusChiodi/cockpit

Asks before a command rewrites test snapshots: jest -u, vitest -u, --snapshot-update, insta accept

★ 2Guards

spinner-doing

MatheusChiodi/cockpit

Names the tool call that is running beside the spinner word, so a long wait says what it is waiting on

★ 2ReskinsGuards

sql-concat-guard

MatheusChiodi/cockpit

Asks before an edit builds an SQL statement by joining strings or interpolating values

★ 2Guards

sql-guard

MatheusChiodi/cockpit

Blocks DROP, TRUNCATE and DELETE/UPDATE without WHERE in shell commands

★ 2Guards

sql-no-where-note

MatheusChiodi/cockpit

Tells Claude when a .sql script edit adds a DELETE or UPDATE with no WHERE clause

★ 2ToastsGuards

stage-guard

MatheusChiodi/cockpit

Refuses git add -A, git add . and git commit -a while a .env, key or certificate is waiting to be staged

★ 2GuardsAutomation

stand-up

MatheusChiodi/cockpit

Toast after two hours of use without a 10 minute break: stand up and walk

★ 2ToastsGuardsPrompt

state-mutation-note

MatheusChiodi/cockpit

Tells Claude when an edit changes React state in place (push, splice, sort, property assignment) instead of building a new value

★ 2ToastsGuards

step-back

MatheusChiodi/cockpit

Toast after four failed shell commands in a row at the same thing: time to step back and look at the problem

★ 2ToastsGuards

style-context

MatheusChiodi/cockpit

Tells Claude the code style your formatter and linter enforce: quotes, semicolons, indent, line width

★ 2GuardsPrompt

sudo-guard

MatheusChiodi/cockpit

Blocks privilege elevation: sudo, doas, su -c, runas and Start-Process -Verb RunAs

★ 2Guards

suppress-guard

MatheusChiodi/cockpit

Refuses an edit that adds a blanket suppression: eslint-disable, @ts-ignore, @ts-nocheck, bare # noqa or # type: ignore

★ 2Guards

terminal-pet

MatheusChiodi/cockpit

A mascot above the prompt that reacts: working, happy, sad or sleepy

★ 2BandsGuards

test-pane

MatheusChiodi/cockpit

/testlog opens a pane with every test run of the session: command, pass or fail, duration and time

★ 2PanesGuardsCommands

test-setup-context

MatheusChiodi/cockpit

Tells Claude the test framework in use and where the tests live, so new tests go in the right place

★ 2GuardsPrompt

test-skip-guard

MatheusChiodi/cockpit

Refuses an edit that adds a skipped or focused test: .skip, .only, xit, fit, @Ignore, @Disabled, @pytest.mark.skip

★ 2Guards

test-status

MatheusChiodi/cockpit

Status line entry with the result of the last test run: passed or failed, time and duration

★ 2Status lineGuards

tests-notify

MatheusChiodi/cockpit

Sends a native notification with pass or fail when a test run of 30 seconds or more finishes

★ 2GuardsAutomation

timeline

MatheusChiodi/cockpit

/timeline opens a chronological log of the session: prompts, tool calls, failures and turn ends with their clock time

★ 2PanesGuardsCommands