agentleFS
dafaalzdafaalz/agent-skills/skills/writing-plans/SKILL.md

writing-plans

Skill2 starsChanged 2 months agoMITView on GitHub

Use when creating phased implementation plans with test-first tasks from a design specification before writing code. Don't use for initial design ideation, exploratory research, or direct code execution.

189 other projects use a version of this, 120 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use diagnosing-superpowers, chinese-git-workflow and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 6 projects that use this

  • MorningStar0709Skill

    chinese-git-workflow

    Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".

    Also in 4 projects that use this

  • SuperInstanceSkill

    marketing-mode

    Marketing Mode combines 23 comprehensive marketing skills covering strategy, psychology, content, SEO, conversion optimization, and paid growth. Use when users need marketing strategy, copywriting, SEO help, conversion optimization, paid advertising, or any marketing tactic.

    Also in 4 projects that use this

  • itallstartedwithaideaSkill

    long-horizon-workflows

    Long-Horizon Workflows enable AI agents to execute multi-hour, multi-phase autonomous pipelines that far exceed the scope of a single conversation turn.

    Also in 4 projects that use this

  • shibit-netSkill

    chinese-code-review

    中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • shibit-netSkill

    chinese-commit-conventions

    中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • +1 more from shibit-net

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 15 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow these four steps in sequence:

    line 19
  2. Distinctive:

    Verify subsystem boundaries.

    line 24
  3. Distinctive:

    Follow repository conventions.

    line 28
  4. Distinctive:

    Add the required plan document header at the top of the file.

    line 35
  5. Distinctive:

    Write the failing test.

    line 38
  6. Distinctive:

    Run the test and confirm failure.

    line 39
  7. Distinctive:

    Write minimal implementation code to pass the test.

    line 40
  8. Distinctive:

    Run the test and confirm success.

    line 41
  9. Distinctive:

    Commit changes with a descriptive message.

    line 42
  10. Distinctive:

    Ensure tasks remain self-contained.

    line 45
  11. Distinctive:

    Verify specification coverage.

    line 52
  12. Distinctive:

    Verify signature consistency.

    line 54
  13. Distinctive:

    Wait for the user to choose an execution option before executing any tasks.

    line 66
  14. Distinctive:

    Every plan must start with this header block:

    line 74
  15. Distinctive:

    Every step must provide the complete implementation details:

    line 137
  16. Very specific:

    Write full code blocks. Never write comments like # implement later, # add validation, or // TODO.

    line 138

“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Writing implementation plans

Turn validated design specifications into phased implementation plans before writing code. Every task in the plan must produce working, testable software with clear file targets, complete code blocks, and deterministic verification commands.

Assume the implementer has no prior context of the codebase and requires explicit technical direction for every change.

Announce the following message at session start: I am using the writing-plans skill to create the implementation plan.

Save plans to docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md unless the user specifies a different path.

Workflow

Follow these four steps in sequence:

Step 1. Scope audit and file mapping

Inspect the specification and repository structure before creating tasks:

  • Verify subsystem boundaries. If the specification covers multiple independent subsystems, split the work into separate plans for each subsystem.
  • Map target files. Identify every file to create, modify, or delete, along with its specific responsibility.
  • Enforce single responsibility. Design units with clear boundaries and well-defined interfaces. Keep files focused so an agent can reason about them within context.
  • Co-locate related logic. Group files by functional responsibility rather than technical layer. Files that change together belong together.
  • Follow repository conventions. Match existing file and directory patterns. If an existing file is already unwieldy, include a planned split into smaller modules.

Completion criterion. A complete inventory of target files mapped to clear responsibilities, confirmed to belong to a single cohesive subsystem.

Step 2. Task decomposition and plan drafting

Draft the implementation plan using the templates in the reference section below:

  • Add the required plan document header at the top of the file.
  • Divide the work into bite-sized tasks. Each task must represent a single component or slice that takes 2 to 5 minutes to execute.
  • Enforce test-driven development order for every task:
    1. Write the failing test.
    2. Run the test and confirm failure.
    3. Write minimal implementation code to pass the test.
    4. Run the test and confirm success.
    5. Commit changes with a descriptive message.
  • Provide exact file paths and complete code blocks for every step. Do not use placeholders, ellipses, or vague instructions.
  • Specify exact execution commands with expected outputs for every test step.
  • Ensure tasks remain self-contained. Repeat shared code rather than referencing previous tasks, because tasks may be executed in isolation.

Completion criterion. A drafted plan document containing the mandatory header, granular test-driven tasks, complete code blocks, and exact verification commands.

Step 3. Plan self-review and validation

Audit the drafted plan against the source specification:

  • Verify specification coverage. Skim each section of the specification and verify that an explicit task implements it. Add tasks for any missing requirements.
  • Scan for placeholders. Confirm that the plan contains zero instances of TODO, TBD, vague validation rules, or code steps lacking full code blocks.
  • Verify signature consistency. Confirm that function names, argument lists, and types match across all tasks.
  • Optional reviewer subagent. For automated validation, dispatch a subagent using the prompt in plan-document-reviewer-prompt.md. Fix all identified defects directly in the plan file.

Completion criterion. The plan document contains zero placeholders, covers all specification requirements, and maintains consistent method signatures throughout.

Step 4. Execution handoff

Save the plan to disk and present execution options to the user:

  • State the saved path clearly.
  • Offer the two execution workflows:
    1. Subagent-driven execution (recommended). Dispatches a fresh subagent for each task with reviews between tasks. Requires subagent-driven-development.
    2. Inline execution. Executes tasks batch-by-batch within the current session with review checkpoints. Requires executing-plans.
  • Wait for the user to choose an execution option before executing any tasks.

Completion criterion. The plan file is written to disk and the user is prompted with the execution options.

Reference templates and rules

Plan document header template

Every plan must start with this header block:

# [Feature Name] Implementation Plan

> **For agentic workers:** REQUIRED SUB-SKILL: Use subagent-driven-development (recommended) or executing-plans to implement this plan 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]

---

Task structure template

Structure each task with explicit file lists, step checkboxes, complete code, and test commands:

### 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 failure 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 status: PASS

- [ ] **Step 5. Commit**

```bash
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```

Code completeness standards

Every step must provide the complete implementation details:

  • Write full code blocks. Never write comments like # implement later, # add validation, or // TODO.
  • Specify exact file paths and line ranges. Avoid relative guesswork.
  • Define exact test commands with expected failure messages and passing output.
  • Repeat code in full rather than referencing previous tasks. Tasks must remain self-contained for agents reading them independently.
  • Define all imported symbols, functions, and types within the plan.

Goal-driven execution standards

Transform abstract requirements into concrete, verifiable test goals:

  • Convert open-ended instructions into testable gates. For example, "add input validation" becomes "write tests asserting failure on invalid inputs, then make them pass".
  • Pair every multi-step action with an explicit verification check (1. [Step] -> verify: [command or check]). Strong success criteria enable autonomous verification loops without constant clarification.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.