agentleFS
dagarre00dagarre00/claude-code-template/.agents/skills/plan-writing/SKILL.md

plan-writing

Skill1 starsChanged 3 months agoMITView on GitHub

How to write an implementation plan for a complex or batched todo. Used by the planner, or when the human asks for "a plan", "decomposition", "breakdown", "implementation strategy", "sequencing".

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use intelligent-routing.

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.
  • tiendatworkSkill

    intelligent-routing

    Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 1

    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:

    Use this exact template:

    line 22
  2. Very specific:

    When re-dispatched after a failed developer attempt, overwrite the plan with a fundamentally different approach.

    line 67

“Common” is measured: kept by at least 6 in 10 of the 9 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

Plan Writing

The plan is returned in full as your report — never written to disk. The developer receives its text.

Read first

  • docs/wiki/entities/<slug>.md — the ## Behavior section is the contract you are decomposing. List the case IDs you cover this cycle.
  • docs/wiki/requirements.md — the relevant section.
  • docs/wiki/architecture.md — ## Stack, ## Layers, ## Testing strategy. The plan fits the project's structure; it never invents a new one.
  • docs/wiki/gotchas.md — known failure points that should shape the sequence.
  • docs/wiki/commands.md — the test command and the architecture check, verbatim.
  • One similar existing entity's implementation — mirror its layout and naming.

Plan structure

Use this exact template:

# Plan: <slug>

## Goal
<one paragraph — what shipping this means in observable terms>

## Behavior cases covered
- <slug> B1: <case text, copied from the entity page>

## Approach
<2-4 sentences — the approach, with one-line justification vs alternatives. On retry, name the prior failed approach and why this one is fundamentally different.>

## Steps
1. <action> (case: B1; layer: <layer>; touches: path)
2. ...

## Files to touch (estimate)
- path/to/file — layer — change description

## New dependencies between layers
- <from layer> → <to layer>: <why>, and the port/interface it goes through — or "none"

## Risks / unknowns
- <risk> → mitigation
- <case no worker can verify> → the command it needs, which only the conductor can run

## Out of scope
- <explicit non-goal>

## Test command
<verbatim from docs/wiki/commands.md>

Sizing rule

Each step is small enough that one test drives it. More than three sub-changes, or more than one Behavior case, → split it. The developer maps step N → test N → green N without ambiguity, in ## Steps order, so order the steps so each can fail Red on its own.

Layers

Every new file names its layer from architecture.md § Layers. A step that would make an inner layer (domain, application) import an outer one (adapters, infrastructure, a framework) is wrong as written: route it through a port the inner layer owns and an adapter the outer layer implements, and list that under ## New dependencies between layers. If the plan cannot fit the declared layers, stop and report — changing the architecture is a human decision recorded as an ADR, never a plan step.

Update on retry

When re-dispatched after a failed developer attempt, overwrite the plan with a fundamentally different approach. In ## Approach, name the prior approach, why it failed, and why the new one should succeed. Keep ## Behavior cases covered identical.

Anti-patterns

  • Pseudocode in steps. Steps name the action and the file, not the implementation.
  • Inventing requirements. A missing or ambiguous Behavior case is a blocker to report, recommending a fresh interview pass — never a plan that assumes behavior the entity page does not list.
  • Editing entity pages. Plans are how, not what.
  • Cross-entity batching without a precedent. A batch crossing architectural boundaries with no prior cycle doing so → stop and report.
  • Skipping the risks section. "No risks" on a complex todo usually means it should not have been flagged [complex] — say which.
  • Far more steps than cases. Usually scope creep; re-check ## Out of scope.

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.