Plan a large change
Write .plans/<slug>/plan.md. Keep the main document focused on review decisions and the work sequence.
Use references/plan-template.md. Omit empty optional sections.
Understand the change
- Start with use cases. Walk the main path and relevant failure, permission, and recovery paths before choosing an architecture.
- Think in systems. Name the class of problems that this request belongs to and the system that produces it. Design the architecture for the class, not for these use cases only, and state the class in Approach. The class must be real: other members exist now, or the system clearly produces more.
- Read relevant code, project docs, standards, and common mistakes. Find the project check command.
- Resolve technical questions from the repository. Ask the user only about missing choices that affect scope or correctness.
- Use
plan-smallif the change fits one PR without a staged rollout.
Write the plan
Use a short kebab-case slug. Revise the same file for the same task. Use a distinct directory for unrelated work.
- Opening: what changes and why. Include scope boundaries only where they prevent a likely misunderstanding.
- Use cases: short bullets with stable labels such as
UC1. Each names the situation, action, and observable result. - Approach: material design choices and their reasons. Include risks that change the approach or rollout.
- Work: one block per PR with its outcome, use-case labels, dependencies, relevant files, and checks.
- Open decisions: unresolved choices that affect scope or correctness. Label unconfirmed assumptions. Omit when empty.
Keep each use-case summary to one sentence in plan.md, even when details need another file.
Create a linked use-cases.md only for flows with enough branches or states to obscure the main plan.
Use the same labels in both files. Write relevant steps and expected results under each label.
Name UI and server responsibilities where their connection is unclear. Do not require a row for every click.
For backend or migration work, follow the API consumer or the data's states.
Keep each detailed rule in one place. Link to it from the main plan.
Use a separate technical note for a substantial schema or rollout specification.
The main plan must still expose consequential choices, compatibility limits, and risks.
Link separate mockups when they help review a UI decision.
Keep sentences short. State each fact once. Remove detail that changes no decision, work item, or check.
Group related edits by outcome. Keep detailed flow checks with the flow and link them from the relevant PR.
Do not add empty sections, code paraphrases, counters, or source tags on every claim.
Split the work
Use ### PR N — <outcome> headings under ## Work. Keep these fields:
**Use cases:**labels served by this PR, or the prerequisite it supplies.**Depends on:**PR labels, ornone.**Files:**relevant paths, grouped when useful.- Checkboxes that pair each change with an observable check. Plain language is sufficient.
Keep PR labels stable through revisions. Each PR must be safe to merge with its dependencies.
Prefer complete behavior across UI and server. Explain a prerequisite that cannot deliver visible behavior alone.
Check that every use case has work assigned and every dependency names an existing PR.
Order risky assumptions early where dependencies permit. Reject dependency cycles.
For persistence changes, include the constraints and access patterns that justify the schema.
Specify compatibility, backfill, rollout, and rollback where needed. Do not add irrelevant N/A sections.
Preserve data and mixed-version behavior during staged migrations.
Review and present
Call the independent reviewer:
reviewer: plan-reviewer; brief: <posture, plan, linked details, standards, common mistakes>
Set posture to plan-large. Paste the plan and relevant linked details inline; the reviewer cannot read .plans/.
Ask it to check dependencies and walk the use cases through the proposed work.
If delegation is unavailable, apply the same checks locally and disclose that limitation.
Check conversation requirements yourself; the reviewer does not receive the conversation.
Fix supported findings. Do not invent use cases or assumptions to meet a quota.
Keep user decisions intact. Add suggestions only when they change the work or require a decision.
After a material revision, recheck affected use cases, dependencies, and checks.
Present the plan link, a brief description, and any blocking decisions. Do not repeat the plan in chat.
Stop after planning unless implementation is already authorized.
Execution records belong in worklog.md and state.json, outside the plan.