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

plan-writing

Skill1 starsChanged 28 days agoMITView on GitHub

Subagent-side, preloaded into the planner. How to write an implementation plan for a complex or batched todo — scope, one-test steps, layers, risks, and the plan template.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use intelligent-routing, nextjs-react-expert and 4 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.
  • SKB3002Skill

    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 5 projects that use this

  • SKB3002Skill

    nextjs-react-expert

    React and Next.js performance optimization from Vercel Engineering. Use when building React components, optimizing performance, eliminating waterfalls, reducing bundle size, reviewing code for performance issues, or implementing server/client-side optimizations.

    Also in 3 projects that use this

  • xfstudioSkill

    rust-pro

    Master Rust 1.75+ with modern async patterns, advanced type system

    Also in 5 projects that use this

  • jornalistainclusivoSkill

    design-spec

    How to author a DESIGN.md file — the machine-readable design-token + human-rationale format that must exist before any UI is built. YAML front-matter token schema (colors, typography, spacing, rounded, components), type system, token references, and canonical section order.

    Also in 3 projects that use this

  • zzfancitizenSkill

    verify-changes

    Verify code changes do not break the project by running tests, linter checks, and import validation. Use after making any code changes, editing Python files, modifying imports, updating dependencies, or refactoring.

    Also in 3 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 0

    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:

    When dispatched as planner, write the plan to .handoff/<slug>-plan.md (overwriting any prior version) and return the path plus a short …

    line 9
  2. Very specific:

    When re-dispatched after a two-strike failure, overwrite .handoff/<slug>-plan.md with a fundamentally different approach, naming the failed …

    line 65

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

When dispatched as planner, write the plan to .handoff/<slug>-plan.md (overwriting any prior version) and return the path plus a short summary. When asked for a plan in conversation, output it directly.

Read first

  • docs/wiki/entities/<slug>.md (or docs/wiki/concepts/<slug>.md for [infra]) — decompose its ## Behavior cases.
  • docs/wiki/requirements.md — relevant requirement section.
  • docs/wiki/architecture.md — ## Stack, ## Layers, ## Testing strategy.
  • docs/wiki/gotchas.md — known failure points.
  • docs/wiki/commands.md — verbatim test command and architecture check.
  • One similar entity's implementation to mirror layout and naming.

Plan structure

# 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 — approach, one-line justification vs alternatives, and what existing code/stdlib/dependency it reuses. 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 subagent can verify> → command only the conductor can run

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

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

Sizing rule

Each step must be small enough that one failing test drives it (step N → test N → green N). Split any step that covers multiple Behavior cases or more than three sub-changes, and order steps so each can fail Red independently.

Layers

Assign every new file a boundary from architecture.md § Layers (none under the flat shape). Route any need the table forbids (an inner boundary reaching an outer one, a slice reaching another's internals) through a port or public API and list it under ## New dependencies between layers. If the task cannot fit the declared boundaries, stop and report (changing the shape or a boundary requires a human decision and an ADR).

Update on retry

When re-dispatched after a two-strike failure, overwrite .handoff/<slug>-plan.md with a fundamentally different approach, naming the failed approach and why the new one avoids that failure mode while keeping ## Behavior cases covered identical.

Anti-patterns

  • Pseudocode in steps (name actions and files, not code).
  • Inventing requirements (if a Behavior case is missing or ambiguous, stop and report).
  • Editing wiki pages.
  • Over-building (unforced files, abstractions, or dependencies when existing code/stdlib/platform suffices).

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.