Writing plans: turn a spec into a step-by-step plan Claude can follow

by obra · MIT license · ★ 289,792 on GitHub · updated Sep 20

Writing plans cover

Writing plans is a free Claude skill by obra, part of the Superpowers collection. Give Claude a spec for a multi-step change and it writes an implementation plan for an engineer with zero context: which files to touch, the code, and how to check each bite-sized task. Placeholders such as TBD count as plan failures.

---
name: writing-plans
description: Use when you have a spec or requirements for a multi-step task, before touching code
---

# Writing Plans

## Overview

Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.

Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.

**Announce at start:** "I'm using the writing-plans skill to create the implementation plan."

**Context:** If working in an isolated worktree, it should have been created via the `superpowers:using-git-worktrees` skill at execution time.

**Save plans to:** `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md`

Overview

Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.

The SKILL.md below is the copy AgentAlley read and checked. The repo has changed it since; the other files are from commit 5bf4e78.

Manual install (npx, ZIP)
Claude Codenpx skills add obra/superpowers --skill writing-plans -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/obra/superpowers/tar.gz/5bf4e7801107 \ | tar -xz -C ~/.claude/skills --strip-components=2 superpowers-5bf4e7801107/skills/writing-plans
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/8da7b15b36fcd6aaa6d4/writing-plans.zip" -OutFile "$env:TEMP\writing-plans.zip"; Expand-Archive "$env:TEMP\writing-plans.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md8.9 KB
  • plan-document-reviewer-prompt.md1.7 KB
Read the files here
obra/5bf4e782 files
SKILL.md
Show the full text172 lines

Writing Plans

Overview

Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.

Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.

Announce at start: "I'm using the writing-plans skill to create the implementation plan."

Context: If working in an isolated worktree, it should have been created via the superpowers:using-git-worktrees skill at execution time.

Save plans to: docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md

  • (User preferences for plan location override this default)

Scope Check

If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.

File Structure

Before defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.

  • Design units with clear boundaries and well-defined interfaces. Each file should have one clear responsibility.
  • You reason best about code you can hold in context at once, and your edits are more reliable when files are focused. Prefer smaller, focused files over large ones that do too much.
  • Files that change together should live together. Split by responsibility, not by technical layer.
  • In existing codebases, follow established patterns. If the codebase uses large files, don't unilaterally restructure - but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable.

This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.

Task Right-Sizing

A task is the smallest unit that carries its own test cycle and is worth a fresh reviewer's gate. When drawing task boundaries: fold setup, configuration, scaffolding, and documentation steps into the task whose deliverable needs them; split only where a reviewer could meaningfully reject one task while approving its neighbor. Each task ends with an independently testable deliverable.

Bite-Sized Task Granularity

Each step is one action (2-5 minutes):

  • "Write the failing test" - step
  • "Run it to make sure it fails" - step
  • "Implement the minimal code to make the test pass" - step
  • "Run the tests and make sure they pass" - step
  • "Commit" - step

Plan Document Header

Every plan MUST start with this header:

# [Feature Name] Implementation Plan

> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.

**Goal:** [One sentence describing what this builds]

**Architecture:** [2-3 sentences about approach]

**Tech Stack:** [Key technologies/libraries]

**Spec:** [path to the spec/design doc this plan implements — the plan
argues from the spec, so the spec travels with it; executors read both]

## Global Constraints

[The spec's project-wide requirements — version floors, dependency limits,
naming and copy rules, platform requirements — one line each, with exact
values copied verbatim from the spec. Every task's requirements implicitly
include this section.]

---

Task Structure

### Task N: [Component Name]

**Files:**
- Create: `exact/path/to/file.py`
- Modify: `exact/path/to/existing.py:123-145`
- Test: `tests/exact/path/to/test.py`

**Interfaces:**
- Consumes: [what this task uses from earlier tasks — exact signatures]
- Produces: [what later tasks rely on — exact function names, parameter
  and return types. A task's implementer sees only their own task; this
  block is how they learn the names and types neighboring tasks use.]

- [ ] **Step 1: Write the failing test**

```python
def test_specific_behavior():
    result = function(input)
    assert result == expected
```

- [ ] **Step 2: Run test to verify it fails**

Run: `pytest tests/path/test.py::test_name -v`
Expected: FAIL with "function not defined"

- [ ] **Step 3: Write minimal implementation**

```python
def function(input):
    return expected
```

- [ ] **Step 4: Run test to verify it passes**

Run: `pytest tests/path/test.py::test_name -v`
Expected: PASS

- [ ] **Step 5: Commit**

```bash
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```

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 be reading tasks out of order)
  • Steps that describe what to do without showing how (code blocks required for code steps)
  • References to types, functions, or methods not defined in any task

Self-Review

After writing the complete plan, look at the spec with fresh eyes and check the plan against it. This is a checklist you run yourself — not a subagent dispatch.

1. Spec coverage: Skim each section/requirement in the spec. Can you point to a task that implements it? List any gaps.

2. Placeholder scan: Search your plan for red flags — any of the patterns from the "No Placeholders" section above. Fix them.

3. Type consistency: Do the types, method signatures, and property names you used in later tasks match what you defined in earlier tasks? A function called clearLayers() in Task 3 but clearFullLayers() in Task 7 is a bug.

If you find issues, fix them inline. No need to re-review — just fix and move on. If you find a spec requirement with no task, add the task.

Execution Handoff

After saving the plan, offer execution 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?"

If Subagent-Driven chosen:

  • REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development
  • Fresh subagent per task + two-stage review

If Inline Execution chosen:

  • REQUIRED SUB-SKILL: Use superpowers:executing-plans
  • Batch execution with checkpoints for review
1---
2name: writing-plans
3description: Use when you have a spec or requirements for a multi-step task, before touching code
4---
5 
6# Writing Plans
7 
8## Overview
9 
10Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
11 
12Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
13 
14**Announce at start:** "I'm using the writing-plans skill to create the implementation plan."
15 
16**Context:** If working in an isolated worktree, it should have been created via the `superpowers:using-git-worktrees` skill at execution time.
17 
18**Save plans to:** `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md`
19- (User preferences for plan location override this default)
20 
21## Scope Check
22 
23If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
24 
25## File Structure
26 
27Before defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.
28 
29- Design units with clear boundaries and well-defined interfaces. Each file should have one clear responsibility.
30- You reason best about code you can hold in context at once, and your edits are more reliable when files are focused. Prefer smaller, focused files over large ones that do too much.
31- Files that change together should live together. Split by responsibility, not by technical layer.
32- In existing codebases, follow established patterns. If the codebase uses large files, don't unilaterally restructure - but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable.
33 
34This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
35 
36## Task Right-Sizing
37 
38A task is the smallest unit that carries its own test cycle and is worth a
39fresh reviewer's gate. When drawing task boundaries: fold setup,
40configuration, scaffolding, and documentation steps into the task whose
41deliverable needs them; split only where a reviewer could meaningfully
42reject one task while approving its neighbor. Each task ends with an
43independently testable deliverable.
44 
45## Bite-Sized Task Granularity
46 
47**Each step is one action (2-5 minutes):**
48- "Write the failing test" - step
49- "Run it to make sure it fails" - step
50- "Implement the minimal code to make the test pass" - step
51- "Run the tests and make sure they pass" - step
52- "Commit" - step
53 
54## Plan Document Header
55 
56**Every plan MUST start with this header:**
57 
58```markdown
59# [Feature Name] Implementation Plan
60 
61> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
62 
63**Goal:** [One sentence describing what this builds]
64 
65**Architecture:** [2-3 sentences about approach]
66 
67**Tech Stack:** [Key technologies/libraries]
68 
69**Spec:** [path to the spec/design doc this plan implements — the plan
70argues from the spec, so the spec travels with it; executors read both]
71 
72## Global Constraints
73 
74[The spec's project-wide requirements — version floors, dependency limits,
75naming and copy rules, platform requirements — one line each, with exact
76values copied verbatim from the spec. Every task's requirements implicitly
77include this section.]
78 
79---
80```
81 
82## Task Structure
83 
84````markdown
85### Task N: [Component Name]
86 
87**Files:**
88- Create: `exact/path/to/file.py`
89- Modify: `exact/path/to/existing.py:123-145`
90- Test: `tests/exact/path/to/test.py`
91 
92**Interfaces:**
93- Consumes: [what this task uses from earlier tasks — exact signatures]
94- Produces: [what later tasks rely on — exact function names, parameter
95 and return types. A task's implementer sees only their own task; this
96 block is how they learn the names and types neighboring tasks use.]
97 
98- [ ] **Step 1: Write the failing test**
99 
100```python
101def test_specific_behavior():
102 result = function(input)
103 assert result == expected
104```
105 
106- [ ] **Step 2: Run test to verify it fails**
107 
108Run: `pytest tests/path/test.py::test_name -v`
109Expected: FAIL with "function not defined"
110 
111- [ ] **Step 3: Write minimal implementation**
112 
113```python
114def function(input):
115 return expected
116```
117 
118- [ ] **Step 4: Run test to verify it passes**
119 
120Run: `pytest tests/path/test.py::test_name -v`
121Expected: PASS
122 
123- [ ] **Step 5: Commit**
124 
125```bash
126git add tests/path/test.py src/path/file.py
127git commit -m "feat: add specific feature"
128```
129````
130 
131## No Placeholders
132 
133Every step must contain the actual content an engineer needs. These are **plan failures** — never write them:
134- "TBD", "TODO", "implement later", "fill in details"
135- "Add appropriate error handling" / "add validation" / "handle edge cases"
136- "Write tests for the above" (without actual test code)
137- "Similar to Task N" (repeat the code — the engineer may be reading tasks out of order)
138- Steps that describe what to do without showing how (code blocks required for code steps)
139- References to types, functions, or methods not defined in any task
140 
141## Self-Review
142 
143After writing the complete plan, look at the spec with fresh eyes and check the plan against it. This is a checklist you run yourself — not a subagent dispatch.
144 
145**1. Spec coverage:** Skim each section/requirement in the spec. Can you point to a task that implements it? List any gaps.
146 
147**2. Placeholder scan:** Search your plan for red flags — any of the patterns from the "No Placeholders" section above. Fix them.
148 
149**3. Type consistency:** Do the types, method signatures, and property names you used in later tasks match what you defined in earlier tasks? A function called `clearLayers()` in Task 3 but `clearFullLayers()` in Task 7 is a bug.
150 
151If you find issues, fix them inline. No need to re-review — just fix and move on. If you find a spec requirement with no task, add the task.
152 
153## Execution Handoff
154 
155After saving the plan, offer execution choice:
156 
157**"Plan complete and saved to `docs/superpowers/plans/<filename>.md`. Two execution options:**
158 
159**1. Subagent-Driven (recommended)** - I dispatch a fresh subagent per task, review between tasks, fast iteration
160 
161**2. Inline Execution** - Execute tasks in this session using executing-plans, batch execution with checkpoints
162 
163**Which approach?"**
164 
165**If Subagent-Driven chosen:**
166- **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development
167- Fresh subagent per task + two-stage review
168 
169**If Inline Execution chosen:**
170- **REQUIRED SUB-SKILL:** Use superpowers:executing-plans
171- Batch execution with checkpoints for review
172 
View all files on GitHub →

Details

Updated
Sep 20, 2026
License
MIT
Stars on the repo
★ 289,792
Checked
Source
obra/superpowers ↗
Creator
obra · 14 listings
View creator

Similar skills

See all →
SkillExecutes plans with review checkpointsExecuting plansdavila7/claude-code-templates · by davila7Use when you have a written implementation plan to execute in a separate session with review checkpoints★ 32.3k GitHub starsSkillWrites plans before touching codeWriting plansdavila7/claude-code-templates · by davila7Use when you have a spec or requirements for a multi-step task, before touching code★ 32.3k GitHub starsSkillConvert a rambling description of a desired outcome into oneFable Goal Prompt Writeralirezarezvani/claude-skills · by alirezarezvaniConvert a rambling description of a desired outcome into one polished, autonomous /goal prompt ready to paste into a fresh session. Use when the user says "/fable-goal", "turn this into a goal prompt", "write me a fable prompt", "write the prompt that builds X", or rambles about something they want made and asks for the prompt that makes it happen. The output is a single copy-paste prompt, never the build itself. Do NOT use when the user wants the thing built right now in this session — only when they want the PROMPT that will make it happen in a fresh session.★ 26.3k GitHub starsSkillGenerate a structured sprint brief from sprint dataSprint Brief Skillmohitagw15856/pm-claude-skills · by mohitagw15856Generate a structured sprint brief from sprint data and goals. Use when asked to write a sprint brief, create a sprint summary, document sprint goals and scope, or produce a team-facing sprint overview. Produces a scannable brief with sprint goal, rationale, grouped work, critical path, risks, and definition of done.★ 1.4k GitHub starsPromptA prompt system for generating plain-language project"Explain It Like I Built It" Technical Documentation for Non-Technical Foundersf/prompts.chat · by Nureddin Gökbey İnaçA prompt system for generating plain-language project documentation. This prompt generates a [FORME].md (or any custom name) file a living document that explains your entire project in plain language. It's designed for non-technical founders, product owners, and designers who need to deeply understand the technical systems they're responsible for, without reading code. The document doesn't dumb things down. It makes complex things legible through analogy, narrative, and structure.New listingSkillPaste your messy brain-dump or voice-note and get backTurn your rambling notes into a clear briefShubhamsaboo/awesome-llm-apps · by Shubham SabooPaste your messy brain-dump or voice-note and get back a tidy brief: your goal, your decisions, what you changed your mind about, and the guesses you need to correct.★ 139k GitHub stars

More from obra

SkillBrainstorms ideas into designs before any creative workBrainstorming Ideas Into Designsobra/superpowers · by obraYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.★ 290k GitHub starsSkillRequires technical rigor and verificationCode Review Receptionobra/superpowers · by obraUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation★ 290k GitHub starsSkillDispatches parallel agentsDispatching parallel agentsobra/superpowers · by obraUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies★ 290k GitHub starsSkillExecutes plans with review checkpointsExecuting plansobra/superpowers · by obraUse when you have a written implementation plan to execute in a separate session with review checkpoints★ 290k GitHub starsSkillFinishes a development branchFinishing a development branchobra/superpowers · by obraUse when implementation is complete, all tests pass, and you need to decide how to integrate the work★ 290k GitHub starsSkillRequests code review before mergingRequesting code reviewobra/superpowers · by obraUse when completing tasks, implementing major features, or before merging to verify work meets requirements★ 290k GitHub stars