home / skills / microck / ordinary-claude-skills / writing-plans

writing-plans skill

/skills_all/writing-plans

This skill helps engineers generate comprehensive implementation plans with exact files, code, tests, and steps suitable for zero-context scenarios.

This is most likely a fork of the writing-plans skill from mosif16
npx playbooks add skill microck/ordinary-claude-skills --skill writing-plans

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
3.4 KB
---
name: writing-plans
description: Use when design is complete and you need detailed implementation tasks for engineers with zero codebase context - creates comprehensive implementation plans with exact file paths, complete code examples, and verification steps assuming engineer has minimal domain knowledge
---

# 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:** This should be run in a dedicated worktree (created by brainstorming skill).

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

## 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:**

```markdown
# [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 Structure

```markdown
### 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**

```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"
```
```

## 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

## Execution Handoff

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:**
- **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development
- Stay in this session
- Fresh subagent per task + code review

**If Parallel Session chosen:**
- Guide them to open new session in worktree
- **REQUIRED SUB-SKILL:** New session uses superpowers:executing-plans

Overview

This skill creates step-by-step implementation plans for engineers who have zero context about the codebase or domain. It produces complete, test-first tasks with exact file paths, full code examples, precise commands, and expected outputs. Plans are saved as dated markdown files and include an execution handoff with options for subagent-driven or parallel execution.

How this skill works

The skill inspects the feature request and generates a plan header, architecture notes, tech stack, and a sequence of bite-sized tasks. Each task lists files to create or modify, a failing test to write, the minimal implementation, exact commands to run, expected test output, and the commit step. The plan assumes minimal domain knowledge and enforces TDD, frequent commits, and explicit verification steps.

When to use it

  • After design is finalized and you need engineer-ready implementation steps
  • When the assignee has no familiarity with the codebase or domain
  • For features that require exact file edits and reproducible test verification
  • When you want commitments to short, atomic work items and frequent CI-green checkpoints
  • Before hiring an external contractor or opening a dedicated worktree for development

Best practices

  • Start each plan with the required markdown header and goal/architecture/tech stack summary
  • Split work into 2–5 minute actions: one failing test, run, minimal fix, run, commit
  • Always include exact file paths and full code blocks instead of high-level descriptions
  • Provide exact commands and expected outputs for local verification
  • Keep plans DRY and apply YAGNI: implement only what tests require

Example use cases

  • Add a new API endpoint: plan includes tests, serializer, handler file paths, and curl verification commands
  • Refactor module internals: step-by-step tests asserting behavior preserved, exact lines to modify
  • Implement UX feature with backend support: backend tests, migration files, and end-to-end verification steps
  • Onboard a contractor: complete plan saved to docs/plans/YYYY-MM-DD-<feature>.md so they can start in a clean worktree
  • Prepare CI fixes: tests that reproduce the CI failure, minimal patch, and expected CI output

FAQ

Where should I save the generated plan?

Save plans to docs/plans/YYYY-MM-DD-<feature-name>.md using the specified filename pattern.

How granular should each task be?

Each task should be one small action that takes about 2–5 minutes: write a failing test, run it, implement minimal code, run tests, then commit.

What execution options do I offer after saving a plan?

Offer two choices: Subagent-Driven (stay in-session with a fresh subagent per task) or Parallel Session (open a new session that uses executing-plans for batch execution).