agentleFS
berekvolgyipeterberekvolgyipeter/dotclaude/skills/write-plan/SKILL.md

write-plan

Skill2 starsChanged 8 days agoMITView on GitHub

Write an implementation plan from a change folder's design, the current conversation, or a short prompt, and save it in its change folder, one plan per repo. Use when a design, a settled conversation or a clear feature request is ready to become a plan for how the change is built; not for designing a change (design-change) or building one (implement).

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use write-spec, execute-plan and 8 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.
  • AnthropicSkill

    write-spec

    Write a feature spec or PRD from a problem statement or feature idea. Use when turning a vague idea or user request into a structured document, scoping a feature with goals and non-goals, defining success metrics and acceptance criteria, or breaking a big ask into a phased spec.

    Also in 6 projects that use this

  • TheKREATORSSkill

    execute-plan

    Deprecated - use the superpowers:executing-plans skill instead

    Also in 6 projects that use this

  • MaheshAwasareSkill

    write-adr

    Write an Architecture Decision Record — Context, Decision, Consequences, Alternatives Considered. Use when making any architecture-shaping choice (DB, framework, service boundary, vendor, data model) so the *reason* survives. ADRs are append-only and superseded, not edited.

    Also in 3 projects that use this

  • renatorozasSkill

    grill

    Adversarial code review. Don't let me ship until the changes pass your scrutiny.

    Also in 3 projects that use this

  • Hugging FaceSkill

    simplify

    Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.

    Also in 3 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read ~/.claude/shared/meet-the-user.md and follow it whenever you ask the user something or report to them.

    line 17
  2. Distinctive:

    Use the first that applies:

    line 21
  3. Distinctive:

    If there is no input at all, ask what to plan and stop.

    line 27
  4. Very specific:

    Read ~/.claude/shared/planning-context.md and follow its Glossary and ADRs and Rules sections.

    line 35
  5. Distinctive:

    When the change involves an external library or unfamiliar API, use WebSearch and Context7 for documentation, examples and pitfalls, and …

    line 38
  6. Distinctive:

    Write the plan using the template in plan-template.md, folding the research into it: the real patterns you found go in Module Map, …

    line 51
  7. Distinctive:

    Check the draft and fix every issue in place before saving:

    line 57

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

Write Plan

Turn the input below into an implementation plan: how the change is built in code.

<request> $ARGUMENTS </request>

Read ~/.claude/shared/meet-the-user.md and follow it whenever you ask the user something or report to them.

Step 1 — Pick the Input

Use the first that applies:

  1. A change folder with a design — design docs plus evidence files, named in the request or written in this conversation. The design docs are the settled design: goals, background, decisions and what was set aside. The evidence file holds code facts to re-check, not settled fact.
  2. The conversation — a design discussed and settled in this session. Synthesize it; don't re-interview the user for details you already have.
  3. The request alone — a short, possibly vague feature description. Research the rest yourself.

If there is no input at all, ask what to plan and stop.

Plan one repo at a time. When the change spans several repos, plan only the repo the request names, or ask which one first, and work from that repo's design doc and evidence file.

Whatever the input, name its goal — what the user wants to be true once the work ships. Take it from the design docs' Goal section or the conversation; for a bare request, draft it and confirm it in the Step 3 check-in. The plan is judged against it.

Step 2 — Research

  • Read ~/.claude/shared/planning-context.md and follow its Glossary and ADRs and Rules sections.
  • Explore the area the change targets: similar features and patterns, the modules you'll build or modify, the conventions to follow, and the test patterns already in use.
  • With a design, re-check against the code every evidence fact the plan will rely on. The evidence is written mid-design; leave out any fact a later decision overtook.
  • When the change involves an external library or unfamiliar API, use WebSearch and Context7 for documentation, examples and pitfalls, and note the URLs. Skip this for changes confined to existing internal code.
  • Note what research cannot answer — e.g. which pattern to mirror, or product intent — for the Step 3 check-in rather than asking now.

Step 3 — Design

ULTRATHINK about the design, in the vocabulary of ~/.claude/shared/codebase-design.md. Sketch the modules to build or modify, looking actively for deep modules — a lot of behaviour behind a small interface that rarely changes. Apply the deletion test to each: if deleting it would make complexity reappear across its callers, it earns its keep; if complexity just vanishes, it was a pass-through. Name seams in the glossary's language and don't re-litigate ADRs. Decide where each module lives: keep what changes together in one folder (locality) — a layout that scatters a module makes every later change harder. Follow the repo's existing folder layout where it already does this; where it doesn't (a flat folder of many files, or one concept split across folders by type), give the new module its own folder rather than adding to the problem, and leave the existing files where they are.

Unless the plan builds on a design (which already had its architecture review), invoke the improve-codebase-architecture skill in scoped mode on the sketch, and fold its findings into the module split.

Then check in with the user once, in a single message: confirm a drafted goal, ask what research could not answer, confirm the module split matches their expectations, ask which seams (module interfaces) they want tests at, giving each proposed seam a one-line note on what it catches and what it misses, and for each one they pick confirm the main behaviors to test. These answers pin everything that follows.

Step 4 — Write

Write the plan using the template in plan-template.md, folding the research into it: the real patterns you found go in Module Map, code-level reasons in Key Decisions, the seams and behaviors the user confirmed — and which modules warrant integration-style tests, and why — in Testing Strategy.

With a design, follow the template's rule for plans that build on one.

Step 5 — Self-Review

Check the draft and fix every issue in place before saving:

  1. Goal — the plan reaches the goal from the design or the conversation, not only the literal request.
  2. Coverage — every requirement maps to a module or decision.
  3. Layout — each module's location keeps its pieces together, following the repo's existing layout where that layout does; new folders appear in Output Structure.
  4. Consistency — TL;DR, Goal, Requirements, Module Map, Phases and Testing Strategy agree; the modules can be built in order without backtracking; nothing strays into Out of Scope.
  5. References exist — every module, test, pattern and URL the plan names exists; verify with grep/find/Read.
  6. Rules — nothing contradicts a rule, glossary term or ADR loaded in Step 2.
  7. No speculation — no feature, abstraction, flag or fallback the requirements don't need, and no error path that hides a failure behind a default or empty result.
  8. Honest unknowns — nothing only running code can answer is presented as settled; it sits in Deferred to Implementation.
  9. No repetition — nothing restates the design docs.

Step 6 — Save

Save the plan with the Write tool as plan.md, or plan-<repo>.md when the change spans several repos: in the change folder of the design it builds on, or else in a new change folder named per the Change folder section of ~/.claude/shared/planning-context.md. Report the saved path.

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.