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.

tls-off-guard

MatheusChiodi/cockpit

Asks before TLS certificate verification is switched off in code or in a command

★ 2Guards

todo-new-status

MatheusChiodi/cockpit

Status line counting the TODO, FIXME and HACK lines added to the code in this session

★ 2Status lineGuards

todo-owner-note

MatheusChiodi/cockpit

Tells Claude when an edit adds a TODO, FIXME or HACK with no owner or ticket

★ 2ToastsGuards

tool-clock

MatheusChiodi/cockpit

Appends the duration to every tool row that took a second or more, and tags calls made by a subagent

★ 2ReskinsGuards

tool-tally

MatheusChiodi/cockpit

/tally opens a pane with the call count per tool

★ 2PanesGuardsCommands

topic-switch

MatheusChiodi/cockpit

Toast when a prompt shares nothing with the work in progress after several edits, before a second task mixes into the first

★ 2ToastsGuardsPrompt

transactional-private-note

MatheusChiodi/cockpit

Tells Claude when a Java edit puts @Transactional on a private, static or final method, where Spring's proxy ignores it

★ 2ToastsGuards

tree-flood-guard

MatheusChiodi/cockpit

Refuses an unfiltered find, ls -R or dir /s that would list node_modules, and suggests git ls-files or Glob

★ 2Guards

try-resources-note

MatheusChiodi/cockpit

Tells Claude when a Java edit opens a stream, connection or statement in a local variable outside try-with-resources

★ 2ToastsGuards

tunnel-guard

MatheusChiodi/cockpit

Asks before a command that exposes your machine to the internet: ngrok, cloudflared, ssh -R, tailscale funnel, a dev server on 0.0.0.0

★ 2Guards

turn-files-band

MatheusChiodi/cockpit

Band with the files this turn has read and edited so far, naming the edited ones, cleared when the next turn starts

★ 2BandsGuards

turn-history

MatheusChiodi/cockpit

/turns opens a pane with one row per finished turn: duration, tool calls, output tokens and a cross for failed ones

★ 2PanesGuardsCommands

turn-progress

MatheusChiodi/cockpit

Live status line with the elapsed time and tool count of the turn in progress

★ 2Status lineGuards

turn-summary

MatheusChiodi/cockpit

Under the duration line that closes a turn, sums it up: tool calls, files changed and failures

★ 2ReskinsGuards

turn-timer

MatheusChiodi/cockpit

Band above the prompt with duration, tools and tokens of the last turn

★ 2BandsGuards

turn-toast

MatheusChiodi/cockpit

Shows a toast summarizing every finished turn of 10 seconds or more: duration, tool calls and output tokens

★ 2ToastsGuards

tw-arbitrary-note

MatheusChiodi/cockpit

Tells Claude when an edit writes an arbitrary Tailwind value like w-[16px] where the scale has the step (w-4)

★ 2ToastsGuards

tw-conflict-note

MatheusChiodi/cockpit

Tells Claude when an edit puts two Tailwind classes that set the same property on one element, like p-4 and p-2

★ 2ToastsGuards

unawaited-promise-note

MatheusChiodi/cockpit

Tells Claude when an edit calls an async function or fetch as a statement and drops the promise

★ 2ToastsGuards

untested-turn-toast

MatheusChiodi/cockpit

Toast at the end of a turn that changed code without running a single test

★ 2ToastsGuards

unused-import-note

MatheusChiodi/cockpit

Tells Claude when an edit leaves an import that nothing in the file uses

★ 2ToastsGuards

upload-guard

MatheusChiodi/cockpit

Asks before a command sends a local file out: curl uploads, wget --post-file, scp or rsync to a host, nc

★ 2Guards

vague-name-note

MatheusChiodi/cockpit

Tells Claude when an edit exports a placeholder name such as tmp, foo, stuff or data2

★ 2ToastsGuards

wandering

MatheusChiodi/cockpit

Toast after ten prompts in a row without a single file changed: what would make this done?

★ 2ToastsGuardsPrompt