plan
The /plan command creates a detailed implementation contract for a specified project before development begins, documenting product concept, research facts, architecture, phases, acceptance tests, and guardrails in both narrative and JSON formats. Use this command when starting substantial application work, site builds, games, or refactors to establish shared expectations and prevent scope drift, while skipping it for small targeted fixes.
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/0xhimanshu/governor/HEAD/commands/plan.md -o ~/.claude/commands/plan.mdplan.md
# Governor Plan
Create an implementation contract for `$ARGUMENTS`. This command is explicit
opt-in governance: do not implement yet.
Use bounded research when facts are current or market/design/API dependent. Keep
research compact and cite sources when browsing.
Return a contract with:
- product concept and audience
- key research facts or assumptions
- brand/theme/storyline
- UI strategy and responsive states
- architecture and data model
- implementation phases
- planned files or file areas
- acceptance tests
- drift guardrails
- stop conditions
At the end, include a JSON contract block with these keys:
```json
{
"title": "",
"goal": "",
"requirements": [],
"planned_files": [],
"acceptance_tests": [],
"drift_guardrails": [],
"stop_conditions": []
}
```
Also save the same JSON contract into plugin data before returning:
```bash
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/governor.py" save-contract --title "SHORT TASK TITLE"
```
Pass the JSON on stdin. The helper generates a safe lowercase slug.
Tell the user implementation should begin only after they approve the contract.
Do not make `/governor:plan` a hidden prerequisite for small focused fixes.Audit recurring context files and suggest usage-limit optimizations.
Explain or summarize Governor vs Caveman performance benchmark results.
Automatically compress CLAUDE.md or other memory files with protected-span safety. One-command token savings.
Temporarily ask Governor to avoid compacting tool output for the next diagnostic step.
Check current changes against the latest approved implementation contract.
Install Governor compact-mode rule files into a project for Codex, Gemini, Cursor, Windsurf, or Cline.
Disable Governor compact response mode while keeping telemetry/tool hooks available.
Enable Governor compact professional mode for all prompts in this Claude Code session.