writing-plans skill takes an approved design document and produces a detailed implementation plan. The plan is written assuming the engineer who will execute it has zero context for the codebase and questionable taste. Every task must contain everything they need: which files to touch, exact code, how to run tests, what output to expect, and what to commit.
When this skill starts, the agent announces: “I’m using the writing-plans skill to create the implementation plan.”
This skill runs in the dedicated worktree created after design approval. Never plan or implement on
main or master.Plan document header
Every plan must start with this exact header:File structure mapping
Before defining any tasks, the plan maps out every file that will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.- Each file has one clear responsibility
- Files that change together live together
- Split by responsibility, not by technical layer
- In existing codebases, follow established patterns
Bite-sized task granularity
Every step in a task is one atomic action taking 2–5 minutes. The TDD cycle is made explicit at step level:- “Write the failing test” — one step
- “Run it to make sure it fails” — one step
- “Implement the minimal code to make the test pass” — one step
- “Run the tests and make sure they pass” — one step
- “Commit” — one step
Task structure
Every task follows this template exactly:Realistic example task
Here is what a real plan task looks like — a hook installation script:No placeholders
Every step must contain the actual content an engineer needs. These are plan failures — never write them:TBD,TODO,implement later,fill in details- “Add appropriate error handling” / “add validation” / “handle edge cases”
- “Write tests for the above” (without actual test code)
- “Similar to Task N” (repeat the code — the engineer may read tasks out of order)
- Steps that describe what to do without showing how
- References to types, functions, or methods not defined in any task
Self-review checklist
After writing the complete plan, review it before offering execution:- Spec coverage: Skim each requirement in the spec. Point to the task that implements it. Add a task for any gap.
- Placeholder scan: Search for
TBD,TODO, “similar to”, “add error handling”, or any pattern from the no-placeholders list. Fix them. - Type consistency: Do type names, method signatures, and property names used in later tasks match what is defined in earlier tasks? A function called
clearLayers()in Task 3 butclearFullLayers()in Task 7 is a bug.
Plan file location
CLAUDE.md or AGENTS.md.
Execution handoff
After saving the plan, the agent offers a choice:
“Plan complete and saved to docs/superpowers/plans/<filename>.md. Two execution options:
1. Subagent-Driven (recommended) — I dispatch a fresh subagent per task, review between tasks, fast iteration
2. Inline Execution — Execute tasks in this session using executing-plans, batch execution with checkpoints
Which approach?”
Subagent-Driven Development
Recommended. Fresh subagent per task, two-stage review, no human-in-loop between tasks.
Inline Execution
Same session, batch execution, human checkpoints between tasks.