/write-plan¶
Origin
This command originated from obra/superpowers.
Workflow Diagram¶
Transform requirements into an executable implementation plan with atomic, verifiable tasks. Invokes the writing-plans skill, stores output in the project artifacts directory.
flowchart TD
Start([Start]) --> Analysis[Pre-plan analysis]
Analysis --> HardReqs[Identify hard requirements\nvs nice-to-haves]
HardReqs --> ExistingCode[Review existing code\nand patterns]
ExistingCode --> Unknowns[Identify unknown\nunknowns]
Unknowns --> CritPath[Determine critical path]
CritPath --> InvokeSkill[/Invoke writing-plans skill/]
InvokeSkill --> FollowWorkflow[Follow skill workflow]
FollowWorkflow --> SelfCheck{Self-check\npasses?}
SelfCheck -- No --> Revise[Revise plan]
Revise --> SelfCheck
SelfCheck -- Yes --> StorePlan[Store in artifacts dir]
StorePlan --> Done([Done])
subgraph SelfChecks [Self-Check Criteria]
SC1[Each task fits\none session]
SC2[Every task has\ndone criteria]
SC3[Dependencies explicit\nand ordered]
SC4[Unknowns identified\nas spike tasks]
end
SelfCheck -.-> SelfChecks
style Start fill:#4CAF50,color:#fff
style Done fill:#4CAF50,color:#fff
style InvokeSkill fill:#4CAF50,color:#fff
style SelfCheck fill:#f44336,color:#fff
style Analysis fill:#2196F3,color:#fff
style HardReqs fill:#2196F3,color:#fff
style ExistingCode fill:#2196F3,color:#fff
style Unknowns fill:#2196F3,color:#fff
style CritPath fill:#2196F3,color:#fff
style FollowWorkflow fill:#2196F3,color:#fff
style Revise fill:#2196F3,color:#fff
style StorePlan fill:#2196F3,color:#fff
style SC1 fill:#fff,color:#333
style SC2 fill:#fff,color:#333
style SC3 fill:#fff,color:#333
style SC4 fill:#fff,color:#333
Legend¶
| Color | Meaning |
|---|---|
| Green (#4CAF50) | Skill invocation |
| Blue (#2196F3) | Command/action |
| Orange (#FF9800) | Decision point |
| Red (#f44336) | Quality gate |
Command Content¶
# MISSION
Transform requirements into executable implementation plan with atomic, verifiable tasks.
<ROLE>
Implementation Architect. Your plan is the blueprint others will execute. Ambiguity causes rework; missing steps cause failures.
</ROLE>
## Invariant Principles
1. **Atomicity** - Each task completable in one focused session. No multi-day tasks.
2. **Verifiability** - Every task has concrete done criteria. "Done" without evidence = failure.
3. **Dependency awareness** - Tasks ordered by dependencies. Parallel work identified explicitly.
4. **No shortcuts in decomposition** - Rushing planning compounds into implementation chaos.
5. **Preserve flexibility** - Plans guide; they don't constrain. Flag decision points.
<analysis>
Before planning:
- What are the hard requirements vs nice-to-haves?
- What existing code/patterns must be understood first?
- Where are the unknown unknowns? (research tasks)
- What's the critical path?
</analysis>
## Protocol
1. Invoke `writing-plans` skill
2. Follow skill workflow exactly as presented
3. Store output in `~/.local/spellbook/docs/<project-encoded>/plans/`
<FORBIDDEN>
- Creating vague tasks ("implement feature X")
- Skipping dependency analysis
- Omitting done criteria
- Embedding implementation details in planning (plan WHAT, not HOW)
- Treating estimates as commitments
</FORBIDDEN>
<reflection>
After planning:
- Is each task atomic (single session)?
- Does every task have done criteria?
- Are dependencies explicit?
- Did I identify parallel work opportunities?
- Are research/spike tasks front-loaded?
</reflection>
<reflection>
Before completing:
- [ ] Each task fits in one focused session
- [ ] Every task has verifiable done criteria
- [ ] Dependencies are explicit and ordered
- [ ] Research/unknowns identified as spike tasks
- [ ] Plan stored in correct location
</reflection>
<FINAL_EMPHASIS>
Plan quality determines implementation success. A plan with vague tasks or missing dependencies guarantees rework. Every item in the checklist above is a quality gate, not a suggestion.
</FINAL_EMPHASIS>