Code Plan Writing
researched 2026-05-25· 12 sources · 10 concepts · skill code-plan-writing
Translating a specification, requirement, or feature request into a structured sequence of implementable tasks.
Code Plan Writing
Output Format
- Every plan document must contain these sections in order: [source]
- Header - Feature name, one-sentence goal, architecture summary, tech stack [source]
- File Map - Table: Action (Create/Modify/Delete) | File path | Responsibility [source]
- Tasks - Numbered blocks with checkbox steps, exact code, commands, and expected outputs [source]
- Validation - Per-task done criteria + overall acceptance criteria [source]
- Not In Scope - Explicit list of excluded work [source]
- Delivery: Save to docs/plans/YYYY-MM-DD-<feature-slug>.md unless the user specifies otherwise. [source]
ExecPlan (for AI agents)
- Self-contained documents for autonomous multi-hour execution. Required sections: Purpose, Progress (timestamped checkboxes), Surprises & Discoveries, Decision Log, Context & Orientation, Concrete Steps (exact commands + expected outputs), Validation & Acceptance, Idempotence & Recovery. [source]
Key anti-patterns
Children
- Spec-to-Plan Translation (frontier)
- Task Granularity Design (frontier)
- RFC and ADR Formats (frontier)
- Checkpoint Design (frontier)
- Context Handoff (frontier)
Frontier under this node: Checkpoint Design, Context Handoff, RFC and ADR Formats, Spec-to-Plan Translation, Task Granularity Design