Plan
Before writing code, gather context and produce a structured plan.
Steps
- Read relevant files — CLAUDE.md / AGENTS.md, recent git log, open PRs
- Understand the current state — what exists, what's partial, what's missing
- Break work into phases (each completable in ~1-2 hours)
- Identify dependencies between phases
- Write plan to
.agents/plans/<task-name>.mdor.claude/plans/<task-name>.md
Plan Structure
# <Task>
## Goal
One sentence.
## Phases
### Phase 1: <name>
Steps, files to touch, verification check.
### Phase N: Ship
Lint + build + test + PR.
Rules
- Explore before implementing — don't assume the current state
- Every phase must have a verification step
- Explicitly list what is OUT OF SCOPE
- If work is >40% done already, document what's complete before continuing