Use when you have a spec or requirements for a multi-step task, before touching code
Add this skill
npx mdskills install sickn33/writing-plansHighly detailed TDD-focused planning methodology with executable bite-sized tasks and handoff workflow
1---2name: writing-plans3description: Use when you have a spec or requirements for a multi-step task, before touching code4---56# Writing Plans78## Overview910Write 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.1112Assume 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.1314**Announce at start:** "I'm using the writing-plans skill to create the implementation plan."1516**Context:** This should be run in a dedicated worktree (created by brainstorming skill).1718**Save plans to:** `docs/plans/YYYY-MM-DD-<feature-name>.md`1920## Bite-Sized Task Granularity2122**Each step is one action (2-5 minutes):**23- "Write the failing test" - step24- "Run it to make sure it fails" - step25- "Implement the minimal code to make the test pass" - step26- "Run the tests and make sure they pass" - step27- "Commit" - step2829## Plan Document Header3031**Every plan MUST start with this header:**3233```markdown34# [Feature Name] Implementation Plan3536> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.3738**Goal:** [One sentence describing what this builds]3940**Architecture:** [2-3 sentences about approach]4142**Tech Stack:** [Key technologies/libraries]4344---45```4647## Task Structure4849```markdown50### Task N: [Component Name]5152**Files:**53- Create: `exact/path/to/file.py`54- Modify: `exact/path/to/existing.py:123-145`55- Test: `tests/exact/path/to/test.py`5657**Step 1: Write the failing test**5859```python60def test_specific_behavior():61 result = function(input)62 assert result == expected63```6465**Step 2: Run test to verify it fails**6667Run: `pytest tests/path/test.py::test_name -v`68Expected: FAIL with "function not defined"6970**Step 3: Write minimal implementation**7172```python73def function(input):74 return expected75```7677**Step 4: Run test to verify it passes**7879Run: `pytest tests/path/test.py::test_name -v`80Expected: PASS8182**Step 5: Commit**8384```bash85git add tests/path/test.py src/path/file.py86git commit -m "feat: add specific feature"87```88```8990## Remember91- Exact file paths always92- Complete code in plan (not "add validation")93- Exact commands with expected output94- Reference relevant skills with @ syntax95- DRY, YAGNI, TDD, frequent commits9697## Execution Handoff9899After saving the plan, offer execution choice:100101**"Plan complete and saved to `docs/plans/<filename>.md`. Two execution options:**102103**1. Subagent-Driven (this session)** - I dispatch fresh subagent per task, review between tasks, fast iteration104105**2. Parallel Session (separate)** - Open new session with executing-plans, batch execution with checkpoints106107**Which approach?"**108109**If Subagent-Driven chosen:**110- **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development111- Stay in this session112- Fresh subagent per task + code review113114**If Parallel Session chosen:**115- Guide them to open new session in worktree116- **REQUIRED SUB-SKILL:** New session uses superpowers:executing-plans117
Full transparency — inspect the skill content before installing.