| name | plan-before-code |
| description | Use when a task requires meaningful implementation. Research the repo, inspect docs/specs, and create a concrete plan before editing code. |
Plan Before Code
Workflow
- Read
AGENTS.md.
- Inspect relevant files, docs, and specs.
- Identify ownership boundaries and validation requirements.
- Write
plans/PLAN_<NAME>.md.
- Include implementation details:
- files to change
- APIs or function signatures
- data models
- tests
- docs/spec updates
- rollout or migration notes
- Include a Mermaid diagram when it clarifies flow, ownership, or state.
- Implement only after the plan is clear.
- Reconcile the plan if live code contradicts assumptions.
Output
Return the plan path, key assumptions, validation strategy, and any open questions.