Skip to main content
ClaudeWave
Slash Command127 repo starsupdated 1mo ago

guard

The guard command validates ongoing code changes against the latest approved implementation contract by running a governance script that detects scope drift, identifies incomplete planned modifications, flags missing acceptance tests, and recommends the next incremental safe step. Use this command during development to ensure changes align with architectural decisions and maintain test coverage compliance.

Install in Claude Code
Copy
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/0xhimanshu/governor/HEAD/commands/guard.md -o ~/.claude/commands/guard.md
Then start a new Claude Code session; the slash command loads automatically.

guard.md

# Governor Guard

Run:

```bash
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/governor.py" guard $ARGUMENTS
```

Use the result to report:

- possible scope drift
- planned files not changed yet
- acceptance tests still needed
- smallest safe next step

Keep the guidance concise and action-oriented.