home / skills / jackspace / claudeskillz / writing-plans_obra

writing-plans_obra skill

/skills/writing-plans_obra

This skill creates detailed implementation plans with exact file paths, code examples, and tests for engineers with zero context.

This is most likely a fork of the writing-plans skill from mosif16
npx playbooks add skill jackspace/claudeskillz --skill writing-plans_obra

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

Files (3)
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 crafts step-by-step implementation plans for engineers who have zero context about the codebase or problem domain. I always start by announcing: "I'm using the writing-plans skill to create the implementation plan." Plans are saved as versioned markdown files and use strict TDD, small commits, and exact file paths.

How this skill works

I produce a complete plan document that includes a required header, architecture summary, tech stack, and bite-sized tasks. Each task lists exact files to create or modify, full code examples, precise test commands with expected output, and commit commands. The plan assumes a dedicated worktree and provides two execution handoff options (subagent-driven or parallel session).

When to use it

  • After design is finalized and you need an executable implementation plan for engineers with no repo context
  • When you want test-first (TDD) steps with one-action micro-tasks and frequent commits
  • For onboarding contractors or open-source contributors who must follow exact file paths and commands
  • When you need full, copy-paste-ready code examples and verification steps
  • Before running automated execution subagents to implement tasks

Best practices

  • Save each plan to docs/plans/YYYY-MM-DD-<feature-name>.md in a dedicated worktree
  • Keep steps 2–5 minutes each: write failing test, run to fail, implement minimal code, run to pass, commit
  • Be DRY and YAGNI: include only necessary code and tests, avoid over-architecture
  • Provide exact commands and expected outputs for verification (pytest, git, CLI)
  • Reference required sub-skills using @syntax (e.g., superpowers:executing-plans) and include execution options

Example use cases

  • Add a new API endpoint: full file list, tests, handler code, integration test, and commit steps
  • Implement a bioinformatics data parser: create parser module, unit tests, CLI entrypoint, and verification
  • Migrate config format: tests that assert old vs new behavior, transformation code, and rollout steps
  • Wire CI pipeline change: exact workflow file paths, test runners, and expected CI logs
  • Onboard a contractor to implement a feature via subagent-driven development with code review checkpoints

FAQ

Where do I save the generated plan?

Save the plan to docs/plans/YYYY-MM-DD-<feature-name>.md in a dedicated worktree.

What granularity should each task have?

Each task should be one actionable step that takes about 2–5 minutes: write failing test, run, implement minimal code, run, commit.