/dmi-superpowers:writing-plansfrom dmi-superpowers
Use when you have a PRD or requirements for a multi-step task, before touching code
Ships in dmi-superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole 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.
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 TSP."
Context: If working in an isolated worktree, it should have been created via the dmi-superpowers:using-git-worktrees skill at execution time.
Save TSPs to: docs/TSPs/MM-DD-YYYY-<feature-name>.md
If the PRD covers multiple independent subsystems, it should have been broken into sub-project PRDs during brainstorming. If it wasn't, suggest breaking this into separate TSPs — one per subsystem. Each TSP should produce working, testable software on its own.
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.
This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
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.
Each step is one action (2-5 minutes):
Every TSP MUST start with this header:
# [Feature Name] Technical Spec
> **For agentic workers:** REQUIRED SUB-SKILL: Use dmi-superpowers:subagent-driven-development (recommended) or dmi-superpowers:executing-plans to implement this TSP 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]
## Global Constraints
[The PRD's project-wide requirements — version floors, dependency limits,
naming and copy rules, platform requirements — one line each, with exact
values copied verbatim from the PRD. Every task's requirements implicitly
include this section.]
---
### Task N: [Component Name]
**Blocked by:** [Prerequisite task numbers, or `None` — include this field even for root tasks]
**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"
```
Every step must contain the actual content an engineer needs. These are plan failures — never write them:
dmi-superpowers:ponytail by typing ponytail full while making File Structure and Task Right-Sizing decisions — pick the laziest approach that works (stdlib before custom code, native features before dependencies, shortest working diff) and bake that choice into each task, so the executor just follows it. Don't re-litigate whether the feature should exist — that was settled in brainstorming. Type stop ponytail once the TSP is written (before the Execution Handoff), so the lens does NOT persist into implementation, where the executor must follow the TSP exactly.After writing the complete TSP, look at the PRD with fresh eyes and check the TSP against it. This is a checklist you run yourself — not a subagent dispatch.
1. PRD coverage: Skim each section/requirement in the PRD. Can you point to a task that implements it? List any gaps.
2. Placeholder scan: Search your TSP 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 PRD requirement with no task, add the task.
After saving the TSP and completing the self-review, invoke dmi-superpowers:grill-with-docs to stress-test the TSP against the domain model before handing off to execution.
If ponytail is still on from the decomposition step, type stop ponytail now — execution follows the TSP exactly, so the lazy lens must not persist into implementation.
After the grill-with-docs session completes, offer execution choice:
"TSP complete and saved to docs/TSPs/<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, with durable progress and a final independent review
Which approach?"
If Subagent-Driven chosen:
If Inline Execution chosen:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub hundredbillion/dmi_superpowers --plugin dmi-superpowers30 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./creating-a-pull-requestUse when opening, creating, or writing a pull request, pushing a branch for review, or running gh pr create - covers the PR title, body, and evidence so the description reads for both a non-developer and a developer./dispatching-parallel-agentsUse when facing 2+ independent tasks with no shared state or ordering between them and no written plan to work from — ad-hoc fan-out. When the tasks come from a TSP, use subagent-driven-development instead./domain-modelingBuild and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model./executing-plansUse when executing an approved written TSP inline, when your human partner chose this session as the implementer, or when subagents are unavailable