/feature-plan:feature-planfrom feature-plan
Plan one feature inside an existing codebase as a short, visual dashboard (goal, approach, diagrams, touchpoints, steps, testing, risks) that the developer reads, ticks off, decides on and annotates, instead of a wall of text. Use when the user asks to plan, scope or design a feature or a non-trivial change before coding, says "plan this feature", or says they have left notes, comments or decisions on an existing plan. Not for planning a whole app from scratch.
Ships in feature-plan. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You produce a private, visual plan for one feature in an existing codebase. The plan is
data (plan.json) rendered into a self-contained dashboard (plan.html) the developer opens
in a browser. It exists because prose plans make the reader lose the thread, fail to picture
the change, miss what matters, and miss where their input is needed. Judge every choice
against those four problems.
Hard rules:
The skill folder (${CLAUDE_SKILL_DIR}, the folder holding this file) contains:
| File | Use |
|---|---|
scripts/plan.mjs | dir, validate, stamp, serve and stop commands. Needs only Node 18+ |
schema/plan.schema.ts | The exact shape and word budget of every field. Read it before writing plan.json |
examples/magic-link-signin.plan.json | A complete valid plan to copy the shape from |
agents/scout.md, researcher.md, reviewer.md | Briefs for sub-agents |
Each plan lives outside the repo, in ~/.plans/<repo-name>/<feature-slug>/:
| File | Owner | Purpose |
|---|---|---|
plan.json | You | The plan. Edit this |
plan.html | Generated | The dashboard. Never edit by hand; re-stamp instead |
plan.state.json | Developer | Their ticks, decision picks and notes, saved from the dashboard |
Get the folder (created if missing) by running this from inside the repo:
node ${CLAUDE_SKILL_DIR}/scripts/plan.mjs dir <feature-slug>
If you are sandboxed to the project folder, ask for access to that exact folder.
Scale every stage to the feature. A small feature needs one scout, no researchers, and one-line Approach and Risks sections.
Scope gate. Confirm this is one feature in an existing system. A whole app or system: decline, and offer to plan its first feature. A trivial change: say a plan is overkill and stop.
Intake. Restate the goal in one sentence, draft "done when" criteria, and ask only
questions that block planning. Never ask what you could look up.
If a plan already exists for this feature, read its plan.json and continue from it.
Codebase survey. Give a sub-agent the brief in agents/scout.md (an Explore or
read-only agent if you have one).
Assumption triage. List everything the plan depends on and label each: seen in code, stable knowledge, or volatile external fact (library and framework APIs, cloud limits, pricing, deprecations, tooling behaviour).
Verification. For each volatile fact, give a sub-agent the brief in agents/researcher.md,
one fact per agent, in parallel. A fact counts as verified only if it is confirmed in current
official docs for the version installed in the repo, or by two reputable sources from the
last year. Your own memory is never proof. Anything unverified gets provenance: assumed
and also appears under assumptions.
Approach and decisions. Up to three key changes. Surface only real forks as decisions, each with a recommendation. Reusing an existing pattern is not a decision; departing from one is. Big-fork rule: if a decision would change most of the plan (two different architectures, say), ask in chat now. Do not draft a whole plan on a coin-flip.
Detail. Touchpoints, steps, tests, risks, diagrams. Write plan.json with
status: "draft", assuming your recommended option for every decision, and tag every item
that would change under a different option with dependsOn: ["<decision id>"].
Independent review. Run validate and fix every problem. Then give a fresh sub-agent
the brief in agents/reviewer.md plus only the path to plan.json and the repo. Do not
pass your reasoning; it must start cold. Fix what it finds.
Render. Serve the plan and open it. Run this in the background: it keeps running so the dashboard can save the developer's picks and notes straight into the plan folder.
node ${CLAUDE_SKILL_DIR}/scripts/plan.mjs serve <plan-dir> --open
It prints the dashboard's address, also writes an offline plan.html, and is safe to run
again for the same plan. It stops by itself about 15 minutes after the developer closes
the last dashboard tab, so running serve again is also how you bring a plan back. If you cannot keep a process
running, use stamp <plan-dir> --open instead; the developer then saves by hand.
Then say, in two or three lines: which decisions need them, and that after picking options and leaving notes they should tell you they are done. Their changes save automatically.
No sub-agents available? Do stages 3, 5 and 8 yourself, in order, following the same briefs.
provenance to every claim that matters: code (with the
path you saw it in), docs (URL, the source's date, version), or assumed.criteria of
at least one step and one test. Validation enforces this.verify line someone can actually check.One to four, each showing one of the most important changes, no two telling the same story,
12 boxes or fewer, mid-to-high level. Mark boxes "tone": "new" when added or changed by
this plan and "alt" for error or alternative paths; leave existing things untoned.
| If the work mostly changes | Lead with (kind) | Optionally add |
|---|---|---|
| Infrastructure, cloud resources, permissions | architecture | sequence |
| How data moves or is transformed | dataFlow | sequence |
| Stored data shape | er | dataFlow |
| Service or API interactions | sequence | component |
| Stateful behaviour (statuses, retries) | state | sequence |
| UI and user journeys | userFlow | component |
| Code structure | component | sequence |
Two source formats, both drawn by the dashboard:
"type": "graph": boxes on a grid. You choose each box's col and row. Keep arrows
between neighbouring cells, flowing left to right or top to bottom, so none crosses a box."type": "sequence": actors across the top, messages in the order they happen. Use
"dashed": true for responses.They will say something like "done", "I've picked" or "I left comments".
<plan-dir>/plan.state.json. If it is missing or older than they imply, the page was
probably opened from disk rather than from the plan server: ask them to press
Save for agent (in Firefox and Safari it downloads the file, which they then move into
the plan folder), or run serve again.state.decisions with the option
the plan is written for (chosen, or recommended when chosen is absent).
dependsOn includes that decision, keeping
their ids, then set the decision's chosen to their pick.kind: "forAgent" and status: "open": check it against the
plan and the code, then either revise the item it is anchored to or answer it. Record your
answer in the state file as "reply": { "text": "...", "at": "<ISO time>" } and set
"status": "resolved". Ignore toSelf notes. Change nothing else in the state file except
updatedAt, which you must set to the current ISO time so the dashboard picks up your edit.forAgent note is open, set status: "final".
Bump the plan's updatedAt, then run validate, then serve <plan-dir> --open again.
A served page shows your edits on reload, so tell the developer to reload if it is open.Stop the server when the work is over: once the plan is final and the developer has seen it, or whenever they say they are done with the plan, run:
node ${CLAUDE_SKILL_DIR}/scripts/plan.mjs stop <plan-dir>
Their ticks are already saved, and plan.html in the plan folder still opens from disk.
Re-running stamp or serve on any plan folder also upgrades an old plan to the current dashboard.
agents/researcher.md (opens in a new tab)agents/reviewer.md (opens in a new tab)agents/scout.md (opens in a new tab)dist/template.html (opens in a new tab)examples/magic-link-signin.plan.json (opens in a new tab)examples/magic-link-signin.state.json (opens in a new tab)schema/plan.schema.ts (opens in a new tab)scripts/plan.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub atoyebs/code-planning-skill --plugin feature-plan