From superpowers
Use when you have a spec or requirements for a multi-step task, before touching code
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers:writing-plansThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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: This should be run in a dedicated worktree (created by brainstorming skill).
Save plans to: docs/plans/YYYY-MM-DD-<feature-name>.md
Each step is one action (2-5 minutes):
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
---
### 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`
**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
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
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
## Remember
- Exact file paths always
- Complete code in plan (not "add validation")
- Exact commands with expected output
- Reference relevant skills with @ syntax
- DRY, YAGNI, TDD, frequent commits
## Issue Tracking (Optional Beads Integration)
When `br` (beads_rust) is available AND the project (or any ancestor) contains a `.beads/*.db`, **automatically** mirror plan tasks to beads issues so the executor (subagent-driven-development or executing-plans) can pick them up and track lifecycle. Do not ask the user — beads is part of their workflow; if `br` is installed, use it.
**Detect at start:**
```bash
command -v br >/dev/null && br ready --json >/dev/null 2>&1 && echo "beads mode on"
If beads mode is on, after saving the plan, mirror it without prompting:
# One epic for the plan
br create --title "Epic: <plan title>" --type=feature --priority=1 [--labels=<scope>]
# One task per Task N in the plan, with the epic as parent
br create --title "<task name>" --type=task --priority=2 --parent=<epic-id>
# Encode any ordering the plan declares (e.g., "Task 3 depends on Task 2")
br dep add <task-N+1> <task-N>
br sync --flush-only
Append an "## Issue Tracking" section to the saved plan listing the IDs:
## Issue Tracking
- Epic: bd-xxxx
- Task 1: bd-xxxx.1
- Task 2: bd-xxxx.2
- ...
When beads mode is off, silently skip this entire section — the plan works without it.
After saving the plan, offer execution choice:
"Plan complete and saved to docs/plans/<filename>.md. Two execution options:
1. Subagent-Driven (this session) - I dispatch fresh subagent per task, review between tasks, fast iteration
2. Parallel Session (separate) - Open new session with executing-plans, batch execution with checkpoints
Which approach?"
If Subagent-Driven chosen:
Beads epic: <id> so the sub-skill threads issue lifecycleIf Parallel Session chosen:
br readynpx claudepluginhub micahstubbs/superpowersCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.