convert-plan-to-feature
Skill2 starsChanged 5 months agoMITView on GitHub
Break an approved plan into separately-trackable, per-feature implementation specs under a dedicated `docs/plans/{initiative}/` subfolder — a REQUIREMENTS.md index plus one `features/NN - {name}.md` file per unit of work, each with requirements, technical steps (real file paths), dependencies, and acceptance criteria. Use this WHENEVER the user has a finished/approved plan (from plan mode, or an existing plan file under docs/plans/) and wants it decomposed, split, or broken down for separate tracking. Trigger on phrases like "convert this plan into features", "split the plan up", "break this into per-feature files", "turn the plan into implementation specs", "make a feature breakdown of this approved plan", or any request to take a single big plan and produce one trackable file per feature. Do NOT use to design a feature from scratch with no plan yet (new-feature), to review/critique a plan (plan-eng-review), or in a repository that mandates its own spec workflow (e.g. OpenSpec repos, where the change's tasks.md owns the breakdown — there, port this skill's execution rigor (model rubric, parallel groups, acceptance criteria, standing implementer instructions) into that artifact instead of creating a parallel breakdown).
In this repository28 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- find-skillsSkill
- skill-creatorSkill
- anti-sycophancySkill
- clear-and-shortSkill
- coding-standardsSkill
- dead-code-removalSkill
- delegation-promptSkill
- document-generateSkill
- execute-changeSkill
- live-app-security-auditSkill
- new-featureSkill
- plan-eng-reviewSkill
- pr-review-requestSkill
- pr-reviewSkill
- repo-change-summarySkill
- security-vulnerability-scanSkill
- session-cleanupSkill
- session-handoffSkill
- sonar-issue-checkSkill
- sonar-issue-fixSkill
- systematic-debuggingSkill
- trim-initial-bundleSkill
- unslopSkill
- update-dependenciesSkill
- verify-frontend-changeSkill
- verify-implementationSkill
- windows-disk-cleanupSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 50
Every feature gets a *Suggested model* (in the REQUIREMENTS.md table and the feature file header).
- Distinctive: line 58
Sonnet: only when ALL of these hold: single component.
- Distinctive: line 63
Haiku: only for purely mechanical work with zero judgment — file moves/renames, copying existing boilerplate, changing config values — …
- Distinctive: line 90
If neither is clearly present, ask which plan to convert — don't guess.
- Very specific: line 99
Create docs/plans/<initiative>/ and docs/plans/<initiative>/features/.
- Very specific: line 104
Everything goes inside the
<initiative>/subfolder: Never write REQUIREMENTS.md or features/ directly at the docs/plans/ root — that's … - Very specific: line 107
Leave the original plan file where it is.
- Very specific: line 125
Not answered means not overwritten: If the question can't be asked or goes unanswered, leave the file as it is and list it in the final …
- Distinctive: line 150
Avoid: features so small they're a single edit, or so large they hide three unrelated acceptance criteria.
- Distinctive: line 200
Keep the cross-cutting catalogs *here* and reference them from features by name.
- Distinctive: line 206
Lifecycle: when every feature is done, follow the repository's own docs contract for the folder — many repos prune implemented plans (git …
- Very specific: line 317
No placeholders survived: every step is concrete (no // TODO / "rest unchanged").
- Distinctive: line 319
Every feature that modifies existing behavior carries an acceptance criterion naming the regression test for the changed path.
- Distinctive: line 330
Every feature file ends with the *Standing instructions for the implementer* block, verbatim.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Convert Plan → Per-Feature Specs
Take one approved plan and explode it into a folder of independently-trackable feature specs. The plan answered what and why; this skill produces the per-unit-of-work execution surface a team (or a fleet of implementation agents) can pick up one file at a time without re-reading the whole plan.
This skill produces planning documents only — it does not implement anything. Decomposing and writing the specs is the deliverable; stop there. Implementation is a separate, later step driven from the feature files this skill produces.
Why this shape
- A dedicated
docs/plans/<initiative>/subfolder keeps each initiative self-contained, so concurrent efforts never overwrite each other's plans. REQUIREMENTS.mdas the index holds everything cross-cutting (context, blast radius, shared catalogs, deploy ordering, the feature list) in one place, so a feature file can stay focused on its slice without duplicating it.- One file per feature makes each unit of work separately assignable,
reviewable, and closeable. A reviewer reads
03 - Gateway orchestration.mdin isolation and knows the file paths, the order of operations, what it depends on, and how to tell it's done.
Model assignment — quality first
Every feature gets a Suggested model (in the REQUIREMENTS.md table and the feature file header). Assign it by this rubric. The bias is deliberate: underestimating a feature costs a bad implementation plus the rework to fix it; using a model one tier stronger than needed costs only tokens. Quality outranks price.
- Opus is the default. A feature earns a cheaper model by meeting every condition of a cheaper tier below; it is never given one to save money.
- Sonnet only when ALL of these hold: single component; no design decisions left (every step names exact files and mirrors an existing pattern in the codebase); no shared contract, schema, or wire format touched; and a wrong implementation would be caught immediately by the existing tests or gates.
- Haiku only for purely mechanical work with zero judgment — file moves/renames, copying existing boilerplate, changing config values — where a wrong result is obvious on sight.
- Any underestimation signal forces Opus, however simple the feature reads: it touches a shared contract, schema, or wire format; crosses component boundaries; involves concurrency, caching, retries, transactions, migrations, or auth/security; modifies existing behavior; requires designing (not copying) an error path; or the plan leaves an open question inside it. The plan calling the work "just", "simple", or "quick" is itself a signal — that wording is how underestimated work is usually described, not evidence the work is easy.
The plan's own per-phase model recommendations are input, not authority: re-derive each feature's model from this rubric, so an underestimate in the plan does not survive into the feature files.
Workflow
1. Locate the source plan
The plan comes from one of two places — detect which:
- A path the user gave, or an existing file under
docs/plans/(e.g.docs/plans/2026-06-09-2016-store-release-rollback.md). Read it end to end. - The approved plan in this conversation (plan-mode output or a design the user just confirmed). Use the latest confirmed version, not an early draft.
If neither is clearly present, ask which plan to convert — don't guess. If a saved plan file exists, prefer it over your memory of the conversation; it's the source of truth.
2. Derive the initiative name and create the folder
- Initiative name = kebab-case distilled from the plan's title/subject, ticket
prefix included when present (e.g. "Store Release Backup & Rollback (STF-555)" →
stf-555-store-release-rollback). Keep it short and recognizable. - Create
docs/plans/<initiative>/anddocs/plans/<initiative>/features/. (Convention: check the repository's own plan location first — its CLAUDE.md and existing folders; some repos keep plans elsewhere, e.g.docs/up next/. Use the repo's location when one exists; otherwisedocs/plans/, or a top-levelplans/as a fallback.) - Everything goes inside the
<initiative>/subfolder. Never writeREQUIREMENTS.mdorfeatures/directly at thedocs/plans/root — that's what keeps concurrent initiatives from colliding and is the whole point of the layout. - Leave the original plan file where it is.
REQUIREMENTS.mdlinks back to it as the provenance record — don't move or delete it.
If the <initiative>/ folder already exists, this is a re-run — not a fresh
write. Work already in flight lives in that folder, and the Status column is
the initiative's status board; a blind overwrite destroys both.
- Read the existing
REQUIREMENTS.mdfirst, before writing anything, plus thefeatures/files it lists. - Preserve the Status value of every feature you re-emit. A feature that
already reads
in progress,done, orblockedkeeps that value in the new table — Status is owned by whoever is implementing, never reset totodoby a regeneration. Only genuinely new features start attodo. - Before overwriting any feature file whose status is not
todo, ask with AskUserQuestion — name the file, its current status, and what would change. Someone may be mid-implementation against the version on disk, or it may already be done. Offer at least: overwrite, keep the existing file, or write the new version alongside as a new numbered feature. - Not answered means not overwritten. If the question can't be asked or goes
unanswered, leave the file as it is and list it in the final report as skipped.
Files still at
todo, and files that don't exist yet, are written normally.
3. Decompose into features
A feature is a coherent, independently-implementable unit of work with its own acceptance criteria — not an arbitrary slice.
Reuse the plan's own seams first. Well-formed plans already group work into Phases, PR boundaries, or per-component sections (Contracts / Store Agent / Gateway / Web Server). Those are your starting features. Split a phase into two features only when it bundles genuinely separable work (e.g. "backup engine" and "rollback engine" are two features even if one phase); merge phases only when one is too thin to track alone.
Good seams to split on:
- Deployable component / project boundary (Contracts vs Gateway vs Store Agent vs installer).
- Schema/contract changes vs the code that consumes them — the contract bump is usually feature 01 because everything depends on it.
- Independently shippable capability (backup, rollback, reporting) even within one project.
Avoid: features so small they're a single edit, or so large they hide three unrelated acceptance criteria. If you can't write a crisp "done when…" for it, it's mis-cut.
Order matters. Number features in dependency/deploy order — contracts before the agents that use them, installer-common before MSI projects, migrations before the app code. The numeric prefix is the build order.
4. Write REQUIREMENTS.md
This is the index and the home for everything shared. Use this structure:
# <Initiative Title>
> Source plan: [<filename>](<relative-or-absolute-path>)
> Generated: <YYYY-MM-DD>
## Context
<1–3 paragraphs: the problem and the goal, lifted/condensed from the plan.>
## Blast radius
<Which projects/components/files this touches; lockstep vs backward-compat notes.>
## Locked decisions
<The plan's confirmed design decisions, condensed. The "why" behind the features.>
## Cross-cutting catalogs
<Consolidated, NOT scattered into feature files: wire-contract/enum tables, JSON
settings keys, MSI property IDs, named-pipe message kinds, SignalR hub methods,
machine-role tokens, error/log codes. Feature files reference these by name.>
## Deploy / build ordering
<The order features must land in, and why. Mirror the feature numbering, and
state the parallel groups: which features may be implemented concurrently.>
## Features
| # | Feature | Depends on | Parallel group | Suggested model | Status |
|---|---------|-----------|----------------|-----------------|--------|
| 01 | [Contracts: protocol v3 bump](features/01%20-%20Contracts%20protocol%20v3%20bump.md) | — | 1 | Sonnet | todo |
| 02 | [Store Agent: backup engine](features/02%20-%20Store%20Agent%20backup%20engine.md) | 01 | 2 | Opus | todo |
| … | | | | | |
## Test strategy
<Unit vs integration, real vs mocked, CI vs local — from the plan.>
## Open questions / risks
<Carry forward anything the plan left unresolved. Don't silently drop unknowns.>Keep the cross-cutting catalogs here and reference them from features by name. Duplicating an enum table into five feature files guarantees they drift.
The Status column (todo / in progress / done / blocked) is the
initiative's status board — whoever closes a feature updates it here, so
REQUIREMENTS.md stays the single place that answers "where are we".
Lifecycle: when every feature is done, follow the repository's own docs
contract for the folder — many repos prune implemented plans (git history is
the record) rather than keeping them.
Assign Parallel group mechanically from the Depends on column: a feature with no dependencies is group 1; otherwise its group is 1 + the highest group among its dependencies. Features in the same group have no dependencies between one another and may be implemented concurrently; groups execute in ascending order. The numbering stays linear — the Parallel group column is what marks concurrency, so whoever implements the features (a person or a fleet coordinator) never re-derives it from the dependency graph.
5. Write one file per feature
File name: features/NN - <Feature Name>.md (zero-padded number, spaces around the
dash). Use this
template:
# Feature NN — <Feature Name>
**Initiative:** <initiative name> · **Depends on:** <feature #s or "none"> ·
**Parallel group:** <N> ·
**Suggested model:** <Opus/Sonnet/Haiku — with a one-line rationale>
## Requirement
<What this feature must deliver and why, in the user's terms. The behavioral
contract, not the implementation.>
## Interface contract
<**Consumes:** the upstream artifacts/types/endpoints/state this feature needs to
already exist — name each and which feature (#) produces it. **Produces:** the new
public surface this feature exposes for downstream features — types, method
signatures, endpoints, message kinds, settings keys, DB columns. Downstream features
cite these by name. If a feature consumes something no listed feature produces (and
it doesn't already exist), that's a gap — flag it rather than assume it.>
## Technical implementation
<Ordered, concrete steps. Real file paths (and line numbers when known). New types,
methods, signatures. The sequence within the feature. Reference shared catalogs in
REQUIREMENTS.md by name rather than re-pasting them. Call out any ordering
constraints with the broader deploy sequence. **Write complete steps — no
placeholders:** no `// TODO`, no "… rest unchanged", no "implement X here". If a
detail is genuinely unknown, log it under *Dependencies & notes* as an open question
instead of stubbing it into a step.>
1. …
2. …
## Acceptance criteria
<Objectively checkable "done when…" bullets. Behavioral + verifiable: builds clean,
specific tests pass, a named scenario produces a named outcome. Not "works".
**If this feature modifies existing behavior, one criterion must name the
regression test that covers the changed path** — the existing test if one already
covers it, otherwise the new test this feature adds.>
- [ ] …
- [ ] …
## Dependencies & notes
<Upstream features that must land first, downstream features that consume this,
and any risk/rollback note specific to this slice.>
## Standing instructions for the implementer
- Do not resolve ambiguity by assumption: if a step is unclear, contradicts the
codebase, or an open question surfaces mid-implementation, stop and ask the
requester — or return the feature with the question logged — rather than
guessing forward.
- Do not rely on internal knowledge for anything external: verify the current
behavior and documentation, as of the implementation date, of every external
library, framework, or API this feature touches.
- This file's *Acceptance criteria* are the verification contract: they are what
`verify-implementation` checks the finished work against. If the requester
changes scope mid-feature, update the criteria in this file as part of the
change — unwritten scope is not verified.The Standing instructions for the implementer section is fixed text — copy it verbatim into every feature file. It is the only part of the spec that reaches the implementing agent or developer at implementation time, so the don't-assume and current-knowledge disciplines ride with it.
Carry the plan's fidelity into the right feature: per-phase model recommendations feed the feature's Suggested model (re-derived against the model rubric above, never copied blindly); PR-boundary notes become Dependencies; test items become Acceptance criteria. Don't invent detail the plan didn't have — if the plan was vague on a point, the feature file inherits that gap as an open question rather than a fabricated spec.
6. Re-review every model assignment
A dedicated second pass, after all feature files are written and with the whole decomposition in view — model assignments made feature-by-feature during writing are the ones that miss underestimation:
- Walk the feature table top to bottom and re-check each Suggested model against the rubric, looking specifically for underestimation signals the first pass missed. The error that matters is Sonnet on a feature that needed Opus; it is far more expensive than the reverse.
- When in doubt between two tiers, pick the higher.
- A downgrade in this pass is allowed only when the feature meets every condition of the cheaper tier.
- Apply each change to the REQUIREMENTS.md table and the feature file header together, and list every assignment this pass changed (with the reason) in the final report.
7. Verify and report
- Re-read your output cold: every feature has file paths, dependencies, and checkable acceptance criteria; cross-cutting catalogs are consolidated in REQUIREMENTS.md, not scattered; deploy ordering is explicit.
- No placeholders survived: every step is concrete (no
// TODO/ "rest unchanged"); any genuine unknown is logged as an open question, not stubbed. - Every feature that modifies existing behavior carries an acceptance criterion naming the regression test for the changed path. No named test on such a feature is a gap — add the criterion before finishing.
- Interface contracts line up: everything a feature lists under Consumes is Produced by an earlier-numbered feature (or already exists). A consume with no producer is a gap — fix the cut or flag it.
- Confirm every feature in the REQUIREMENTS.md table has a matching file and vice versa, and that the numbering reflects dependency order.
- Parallel groups are consistent with the dependency data: every feature's group is strictly greater than each of its dependencies' groups, and no two features in the same group depend on each other. The table and each file's header agree.
- Every feature file ends with the Standing instructions for the implementer block, verbatim.
- Report the created tree and a one-line summary per feature. Flag anything the source plan left ambiguous instead of papering over it.
Example
Input: an approved plan "Store Release Backup & Rollback (STF-555)" with phases for Contracts, Store Agent, Gateway, and Web Server.
Output:
docs/plans/stf-555-store-release-rollback/
├── REQUIREMENTS.md
└── features/
├── 01 - Contracts protocol v3 bump.md
├── 02 - Store Agent backup engine.md
├── 03 - Store Agent rollback engine.md
├── 04 - Gateway rollback orchestration.md
└── 05 - Web Server outcome reporting.mdREQUIREMENTS.md holds the wire-contract catalog, blast radius, and deploy order;
each feature file scopes one slice with its own steps and acceptance criteria.
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
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.

