Skip to content
Development
Command

/guard

Install, check, or remove the universal enforcement git hooks · Foundry Studio

From plugin
senior-dev
46 skills6 commands3 hooks
Install
> /plugin marketplace add foundry-studio-lab/nzshrimper-senior-dev
> /plugin install senior-dev@nzshrimper-senior-dev

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/guard

Context preview

What this command does when you run it.

Install, check, or remove the universal enforcement git hooks · Foundry Studio

Command definition

guard.md
description: Install, check, or remove the universal enforcement git hooks · Foundry Studio
argument-hint: '[install|status|uninstall]'
allowed-tools: Bash(node:*)

The operator's argument: $ARGUMENTS

If no argument was given, run `state-cli guard status` (the default). Otherwise run `state-cli guard $ARGUMENTS` (must be `install`, `status`, or `uninstall`):

node "${CLAUDE_PLUGIN_ROOT}/scripts/state-cli.mjs" guard <install|status|uninstall>

Present the output to the operator. If the operator asked to install or uninstall and the output shows it happened, confirm what changed (hooks written or removed, prior hooks preserved/restored). The guard makes the senior-dev gates hold outside Claude Code too — Cowork, Codex, and plain terminals. `gh pr create` has no git hook and stays Claude-Code-only; say so if asked.

Ships withsenior-dev

A disciplined senior developer, with a second reviewer over its shoulder, for every Claude Code coding session.

Get the whole plugin
Stats
4
Stars
0
Forks
Active
Maintenance
JavaScript
Language
MIT
License
5d ago
Last commit
2mo ago
Created

Repo: foundry-studio-lab/nzshrimper-senior-dev

Other commands on senior-dev.