plan
Step 4 of the pipeline (WORKFLOW.md). Turn the target architecture into deliverable
increments. This is not a second breakdown format. The one process is the spec-kit cycle
(skills/speckit, CONVENTIONS.md Rule E): the increments are the cycle's tasks.md, step 0's discovery fills
research.md, and this block keeps its review rules (Review Focus, proportion, trust boundaries, verdict) on
top of them. Where the project's own template differs from this block's wording, the project's wins.
When
After archi, before tdd, inside the cycle's plan and tasks steps, with or without the tool installed
(skills/speckit reference 01).
Steps
Documentation discovery, before anything is planned. Find out what actually exists: read the
documentation, the examples and the existing code paths the feature will touch, and write down the allowed
interfaces (the functions, methods, options and signatures that are really there, each with the file or page it
was read from) and the anti-patterns to avoid (things that sound plausible and do not exist, deprecated
parameters, the wrong layer). Every later step plans against that list, not against what an interface "should"
offer. Nothing in the plan names a call that is not on it.
Break into atomic increments: each one testable and deliverable independently.
Order by dependency (whatever unblocks the rest comes first).
Record one tracked item per increment, wherever the task's trail lives (a todo list, the ticket, a
local orchestrator if there is one). The tracking must exist; the tool is not prescribed.
What a step contains: the minimum that lets the implementer write exactly one reasonable thing.
A test step has the test name and its assertions with the spec's exact values; a code step has the file,
the signature and the values the spec pins, and the body only for an algorithm the signature and tests
do not determine; a verification step has the command and the output that means pass; a reference to
another task points at that task's interface rather than repeating its code.
Review Focus: list at most five failure modes or inputs the spec implies but no task's tests
exercise, most likely first, each pinned to a test in the task that owns the code. An empty list means
the check was done and found none.
Proportion check: a plan several times longer than its spec has transcribed the code. Bring it back
to signatures and assertions. A line that decides nothing ("handle edge cases") is the opposite fault.
A reviewer of a plan adds phases; they never rewrite the original plan. The author's phases stay as
written and the added ones are marked as the reviewer's.
Map the files before the tasks. List which files will be created or changed and what each is
responsible for, then cut the tasks along those lines; a task that needs a file the map does not show is a
task the plan has not understood. Open the plan with a header that states the goal, the approach in a few
lines and the global constraints that bind every task (exact values, formats, naming).
No placeholders. "TBD", "handle the edge cases", "add error handling" and "similar to task 3" are not
steps: each is a decision postponed to whoever executes it. Write the decision, or write the question and
who answers it.
Self-review before handing the plan over: re-read it against the spec, criterion by criterion; every
criterion maps to a task, every task maps to a criterion. A spec that spans independent subsystems is cut
into one plan per subsystem, each producing something that works alone.
Frame a task as "follow this documented pattern at this location" wherever a pattern exists (cite file
and lines), not "convert the existing code". An executor copying a pattern it can see makes fewer inventions
than one transforming code from a description.
Delegated fact-gathering follows a report contract. When delegated workers collect the facts
for step 0, each report states: the sources consulted and what was read in them; the findings concretely
(exact names and signatures, exact paths); where a copyable example lives; and a confidence note with the known
gaps. A conclusion with no source is rejected and the work is sent again. Synthesis and the plan itself stay
with whoever owns the plan (skills/dispatch-parallel).
Every phase lists the anti-patterns it must not introduce, as strings or patterns that can be searched.
The final phase searches the changed files for them (skills/gate): the plan names what to look for,
the gate looks. A check that cannot be searched is written as a review question instead.
Every step traces to a line of the brief. Walk the plan step by step and name the brief line it serves.
A step with no such line is an addition nobody asked for, however reasonable it looks by itself: cut it, or
send it back to the spec as a question. The same pass lists structure with exactly one use in the plan (an interface, a base
class, a factory, a config option), each new dependency with what it buys over what the project already
has, and error handling for states that cannot occur.
Trust boundaries are named in the plan, not discovered in the code. Every step that accepts data
from outside the process (an HTTP call, a webhook, a message, a file, a third-party service) answers three questions: who may
trigger it, what checks the incoming data, and what the response is allowed to contain. A step that crosses a boundary and names none of them is
the plan's likeliest security defect, and answering it here costs a sentence. Add the one realistic
failure or edge case the plan does not mention (one, not ten).
An independent check ends in a verdict. For a plan that carries risk, the check runs in a fresh
context that never saw the plan being written, so it has no attachment to any part of it. It writes
nothing and rewrites nothing; it returns GO (proportionate to the brief), TRIM (right shape, remove
these items first) or RETHINK (it solves a different problem than the brief), with at most five findings
ranked by cost. A plan that is fine gets GO in one line: inventing objections is the fault. It judges
scope, structure and size, never naming or formatting.
Self-review pass, task size and blocking edges. Before handing tasks.md over, run the planner's own
pass (name and type consistency across tasks, an Interfaces note per task), size each task, and write what
blocks each one. Read references/17-self-review-sizing-and-edges.md
when the task list is drafted or has to be cut or re-cut. It also holds the rule that tasks are cut
as vertical slices, each run through tdd on its own.
Output / checkpoint
plan_done + one tracked item per increment, in dependency order, recorded as the feature's tasks.md.
Guardrails
No automatic execution of the whole plan (no /build auto: see WORKFLOW.md, auto-mode
was removed on purpose). The dev validates and moves forward step by step.
The one opt-in route to delegated execution is skills/execute-plan, which needs the operator's explicit decision
for every run. Writing a plan never starts one.
Origin
Native / a market generalist dev skill catalogue (planning-and-task-breakdown), rewritten our
way.
Steps 4 to 6 rewritten from the writing-plans skill of superpowers (MIT, 6.4.x), read 2026-10-02, and steps 8 to 10 from the same skill (file map, header, no placeholders, self-review, one plan per subsystem). Steps 0, 11, 12 and 13 come from the make-plan and do skills of claude-mem (Apache-2.0, read 2026-10-02): documentation discovery first, copy-from-documentation framing, the sub-worker report contract and the searchable anti-pattern list. Rewritten in our words; no text copied, so its NOTICE obligations do not apply. Step 7 comes from the cross-model plan-review workflow in claude-code-best-practice (MIT), same date.
Steps 14 to 16 (brief traceability, speculative structure and dependency scrutiny, named trust boundaries, the GO/TRIM/RETHINK verdict from a fresh context, the five-finding cap) rewritten from the plan-check skill of abdian/claude-toolkit-laravel (MIT), read 2026-10-02. Rewritten in our words; no text copied. Nothing here relaxes the guard against automatic execution.
The provenance of step 17 (references/17-self-review-sizing-and-edges.md) and the owner's decision on vertical slicing (2026-10-19) are in references/origin.md.
1---2name: plan3description: "Use when the architecture is set and the breakdown into atomic testable tasks is being written or reviewed, before tests or code. It supplies the discipline of the plan and tasks steps of the spec-kit cycle (discovery, ordering, review focus, proportion); the files are `speckit`'s."4metadata:5 source: https://skillmd.com/skills/techmefr/plan6---78# plan910Step 4 of the pipeline (`WORKFLOW.md`). Turn the target architecture into deliverable11increments. **This is not a second breakdown format.** The one process is the spec-kit cycle12(`skills/speckit`, `CONVENTIONS.md` Rule E): the increments are the cycle's `tasks.md`, step 0's discovery fills13`research.md`, and this block keeps its review rules (Review Focus, proportion, trust boundaries, verdict) on14top of them. Where the project's own template differs from this block's wording, the project's wins.1516## When17After `archi`, before `tdd`, inside the cycle's plan and tasks steps, with or without the tool installed18(`skills/speckit` reference 01).1920## Steps210. **Documentation discovery, before anything is planned.** Find out what actually exists: read the22 documentation, the examples and the existing code paths the feature will touch, and write down the **allowed23 interfaces** (the functions, methods, options and signatures that are really there, each with the file or page it24 was read from) and the **anti-patterns to avoid** (things that sound plausible and do not exist, deprecated25 parameters, the wrong layer). Every later step plans against that list, not against what an interface "should"26 offer. Nothing in the plan names a call that is not on it.271. Break into **atomic** increments: each one testable and deliverable independently.282. Order by dependency (whatever unblocks the rest comes first).293. Record **one tracked item per increment**, wherever the task's trail lives (a todo list, the ticket, a30 local orchestrator if there is one). The tracking must exist; the tool is not prescribed.314. **What a step contains**: the minimum that lets the implementer write exactly one reasonable thing.32 A test step has the test name and its assertions with the spec's exact values; a code step has the file,33 the signature and the values the spec pins, and the body only for an algorithm the signature and tests34 do not determine; a verification step has the command and the output that means pass; a reference to35 another task points at that task's interface rather than repeating its code.365. **Review Focus**: list at most five failure modes or inputs the spec implies but no task's tests37 exercise, most likely first, each pinned to a test in the task that owns the code. An empty list means38 the check was done and found none.396. **Proportion check**: a plan several times longer than its spec has transcribed the code. Bring it back40 to signatures and assertions. A line that decides nothing ("handle edge cases") is the opposite fault.417. **A reviewer of a plan adds phases; they never rewrite the original plan.** The author's phases stay as42 written and the added ones are marked as the reviewer's.43448. **Map the files before the tasks.** List which files will be created or changed and what each is45 responsible for, then cut the tasks along those lines; a task that needs a file the map does not show is a46 task the plan has not understood. Open the plan with a header that states the goal, the approach in a few47 lines and the global constraints that bind every task (exact values, formats, naming).489. **No placeholders.** "TBD", "handle the edge cases", "add error handling" and "similar to task 3" are not49 steps: each is a decision postponed to whoever executes it. Write the decision, or write the question and50 who answers it.5110. **Self-review before handing the plan over**: re-read it against the spec, criterion by criterion; every52 criterion maps to a task, every task maps to a criterion. A spec that spans independent subsystems is cut53 into one plan per subsystem, each producing something that works alone.5411. **Frame a task as "follow this documented pattern at this location"** wherever a pattern exists (cite file55 and lines), not "convert the existing code". An executor copying a pattern it can see makes fewer inventions56 than one transforming code from a description.5712. **Delegated fact-gathering follows a report contract.** When delegated workers collect the facts58 for step 0, each report states: the sources consulted and what was read in them; the findings concretely59 (exact names and signatures, exact paths); where a copyable example lives; and a confidence note with the known60 gaps. A conclusion with no source is rejected and the work is sent again. Synthesis and the plan itself stay61 with whoever owns the plan (`skills/dispatch-parallel`).6213. **Every phase lists the anti-patterns it must not introduce**, as strings or patterns that can be searched.63 The final phase searches the changed files for them (`skills/gate`): the plan names what to look for,64 the gate looks. A check that cannot be searched is written as a review question instead.656614. **Every step traces to a line of the brief.** Walk the plan step by step and name the brief line it serves.67 A step with no such line is an addition nobody asked for, however reasonable it looks by itself: cut it, or68 send it back to the spec as a question. The same pass lists structure with exactly one use in the plan (an interface, a base69 class, a factory, a config option), each new dependency with what it buys over what the project already70 has, and error handling for states that cannot occur.7115. **Trust boundaries are named in the plan, not discovered in the code.** Every step that accepts data72 from outside the process (an HTTP call, a webhook, a message, a file, a third-party service) answers three questions: who may73 trigger it, what checks the incoming data, and what the response is allowed to contain. A step that crosses a boundary and names none of them is74 the plan's likeliest security defect, and answering it here costs a sentence. Add the one realistic75 failure or edge case the plan does not mention (one, not ten).7616. **An independent check ends in a verdict.** For a plan that carries risk, the check runs in a fresh77 context that never saw the plan being written, so it has no attachment to any part of it. It writes78 nothing and rewrites nothing; it returns `GO` (proportionate to the brief), `TRIM` (right shape, remove79 these items first) or `RETHINK` (it solves a different problem than the brief), with at most five findings80 ranked by cost. A plan that is fine gets `GO` in one line: inventing objections is the fault. It judges81 scope, structure and size, never naming or formatting.828317. **Self-review pass, task size and blocking edges.** Before handing `tasks.md` over, run the planner's own84 pass (name and type consistency across tasks, an Interfaces note per task), size each task, and write what85 blocks each one. Read [`references/17-self-review-sizing-and-edges.md`](./references/17-self-review-sizing-and-edges.md)86 when the task list is drafted or has to be cut or re-cut. It also holds the rule that tasks are cut87 as vertical slices, each run through `tdd` on its own.8889## Output / checkpoint90`plan_done` + one tracked item per increment, in dependency order, recorded as the feature's `tasks.md`.9192## Guardrails93No automatic execution of the whole plan (**no `/build auto`**: see `WORKFLOW.md`, auto-mode94was removed on purpose). The dev validates and moves forward step by step.9596The one opt-in route to delegated execution is `skills/execute-plan`, which needs the operator's explicit decision97for every run. Writing a plan never starts one.9899## Origin100Native / a market generalist dev skill catalogue (planning-and-task-breakdown), rewritten our101way.102103Steps 4 to 6 rewritten from the `writing-plans` skill of `superpowers` (MIT, 6.4.x), read 2026-10-02, and steps 8 to 10 from the same skill (file map, header, no placeholders, self-review, one plan per subsystem). Steps 0, 11, 12 and 13 come from the `make-plan` and `do` skills of `claude-mem` (Apache-2.0, read 2026-10-02): documentation discovery first, copy-from-documentation framing, the sub-worker report contract and the searchable anti-pattern list. Rewritten in our words; no text copied, so its NOTICE obligations do not apply. Step 7 comes from the cross-model plan-review workflow in `claude-code-best-practice` (MIT), same date.104105Steps 14 to 16 (brief traceability, speculative structure and dependency scrutiny, named trust boundaries, the GO/TRIM/RETHINK verdict from a fresh context, the five-finding cap) rewritten from the plan-check skill of abdian/claude-toolkit-laravel (MIT), read 2026-10-02. Rewritten in our words; no text copied. Nothing here relaxes the guard against automatic execution.106107The provenance of step 17 (`references/17-self-review-sizing-and-edges.md`) and the owner's decision on vertical slicing (2026-10-19) are in [`references/origin.md`](./references/origin.md).