/sdd:roadmapfrom sdd
Breaks a product idea into incremental, dependency-respecting steps and maintains a living docs/roadmap.md with destination, sized steps, fog vocabulary, dependency graph, and parallel execution waves. Triggers on roadmap, decomposition, or dependency questions.
Ships in sdd. 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.
The decomposition layer between the idea and the per-feature pipeline. SDD builds one feature
at a time under docs/features/<slug>/; roadmap answers the question that comes before any
feature: where are we going, how does the idea break into steps, what depends on what, and in
which order — and in what parallel lanes — do we walk them. One living docs/roadmap.md,
repo-level utility (like survey).
Scope is whatever you bring. A whole product, one epic, or a single feature — the unit of the input does not change the unit of the output. A one-feature request gets decomposed the same way; there are simply fewer steps, and «fewer» is a legitimate answer. The skill never refuses a request for being too small, and never inflates one to look like a product plan.
Five load-bearing properties, in priority order:
../_shared/size-matrix.md).Size is XS…XL or fog, in the same cell,
because they answer the same question and only one of them can be true: sizing something nobody
has formulated yet is how an estimate becomes a lie. Fog lives in ## Not yet specified until a
recon pass sharpens it, and then the row trades fog for a real size.Not here: RICE or any scoring (order IS the prioritization), dates (a decomposition, not a
promise), solution detail (lives in the feature's spec). Question phrasing →
../_shared/ask-style.md; prose follows artifact_language, table
structure and the Status / Size values stay English → ../_shared/artifact-language.md.
Whoever owns product direction (PM / lead / the solo maintainer).
docs/idea-brief.md (written by interview) /
a PRD / a vision note (ask which, if several). This is the only hard input.docs/architecture-map.md (written by survey): zones for
conflict-safety. Its absence costs precision in one column, not the roadmap.docs/design-system.md.docs/features/*/ + existing docs/roadmap.md — current statuses.Ensure the settings file (first thing, after this skill's own gate). If .claude/sdd.local.md is
absent, create it now from the canonical template — documented defaults + the self-documenting
body — and patch .gitignore; if it exists, read it and never overwrite. The one procedure
lives in ../_shared/settings-file.md. Creating is
unconditional; changing values is only ever offered by config. Say
one line: «.claude/sdd.local.md created with documented defaults — /sdd:config to tune it».
Then locate sources. Find the idea source (docs/idea-brief.md first, then PRD candidates).
None found → say so and STOP: a roadmap without a source is fiction, and the fix is one
command — /sdd:interview writes that brief. That is the only hard stop.
docs/architecture-map.md is optional and never a gate. Present → its module inventory
supplies the zones in ## Execution path. Absent → the roadmap is written anyway, every zone
that is not an existing path is marked (new), and the handoff says plainly that the waves are
a first cut worth re-cutting after /sdd:survey fills the map. A missing map degrades one
column; it does not block the decomposition.
Greenfield (docs/architecture-map.md says mode: greenfield-bootstrap, or an empty repo with no docs/features/* besides _scaffold/): the first step is scaffold — unless its scaffold: materialize skeleton commit already exists, then it is marked done. Every
other step assumes a skeleton to build into — a repo with no module layout, no test harness and
no migration tooling cannot receive step 1 as written. Its source anchor is the foundation
section of docs/architecture-map.md when the map exists, otherwise the brief itself (the
project has to exist before anything in the brief can be built).
If docs/roadmap.md exists, this run updates it (statuses, new steps, re-waving) — never
silently rebuilds. A file written before 2.2 carries a Depends on column the template no
longer has; this run folds it away — the edges it held move into the dependency graph, which
is now the one place edges live. Say so in the handoff, so the dropped column reads as a
migration rather than lost data.
Decompose — yourself, with the owner. Cutting an idea into steps is a live exchange with the person who holds the intent; it is not delegable, and a subagent standing in for the owner's half of it produces a plausible decomposition of a misunderstood idea. Read the sources and draft the steps under these rules:
idea-brief.md §2 Problem, prd.md §5). No anchor → the step does not exist. Never invent
scope the sources don't support.## Dependency graph and nowhere else — a step with no
real blocker has no edge, and inflated dependencies serialize work that could run in parallel.Size
cell reads fog, and the substance goes to ## Not yet specified as one area. Because
fog and XS–XL share one cell, «the unformulated thing got sized anyway» stops being possible
to write down. Do NOT pre-chop fog into ticket-sized pieces; that's inventing structure for
something you haven't looked at yet.../_shared/size-matrix.md. No RICE, no priority numbers, no
dates — order IS the prioritization.docs/features/<slug>/ already exists keeps
its real status (spec'd / building / shipped); never re-plan shipped work.## Destination for what is true about the product
once the last step ships. Write it before the steps and check it after: a step that moves
nothing toward that sentence is scope that snuck in.Close the AFK questions in parallel. Decomposition throws off two kinds of question. The
ones that need the owner's judgment («is this in scope», «which of these matters more») you ask
in step 4 — nobody can answer them for them. The ones that are just lookup («where does X
live», «what format does the exporter emit», «is there already a library for this», «do steps 3
and 5 actually touch the same file») are AFK work, and today nobody does them: they get guessed
at, and the guess becomes a dependency edge.
For each such question, spawn one subagent — subagent_type: "general-purpose" (or the host's
equivalent per ../_shared/tool-adapters.md), tools Read,
Grep, Glob, Bash, WebSearch, WebFetch — all in one message so they run concurrently, one
agent per question. Wrap each with the worker preamble from
../_shared/agent-roster.md and demand a fixed shape back:
one line of answer + one citation (file:line or a URL). Uncited → dropped, and the
question moves to ## Open decisions with type research. Zero AFK questions → skip this step
and say so; do not manufacture questions to have something to fan out.
Review with the owner. Present the draft in prose (destination + steps + fog + waves;
the mermaid goes to the file, never dumped raw to the terminal — same rule as design), calling
each step by its name rather than its id. Then one AskUserQuestion call: (a) steps to
merge/split/drop (multiSelect over flagged candidates + the questions step 3 could not close),
(b) confirm the wave layout or name what must move. Apply — writing as you go: copy
./templates/roadmap.md to docs/roadmap.md (an existing roadmap is
edited in place, never re-bootstrapped) with the destination, then write each step row, edge and
wave as soon as the owner's answer settles it, never the whole file at the end
(../_shared/write-and-commit.md §1).
Ask whether the file is worth keeping. If the pass surfaced no fog — every step is
sized, ## Not yet specified is empty, ## Open decisions is empty — then say so and put the
choice to the owner: a three-row file restating an already-clear plan is one more thing to keep
current, and the alternative is to build straight from /sdd:specify <slug>. It is their
call, not a stop. They want the file as a shared reference — write it. Say the tradeoff once,
plainly, and take the answer; never refuse to write a roadmap because the request was small or
clear. They decline → delete the docs/roadmap.md this run created (never a pre-existing
one), commit nothing, and hand off straight to /sdd:specify <slug>.
Complete. Fill what is still placeholder in docs/roadmap.md (fog vocabulary, decisions so
far, the mermaid graph); set updated_at.
Structural self-check — per ../_shared/self-check.md, re-read
from disk, verify 6 items:
grep -F "<section>" <doc>). Text in the
column is not evidence — a source anchor nobody checked is how invented scope gets in.Depends on column to reconcile against: the graph is the
only place edges live, so an edge is wrong only by naming an id that isn't there or by
contradicting the waves.)## Destination is present and is one sentence — not a bulleted list, not a paragraph of
goals. One sentence, or the section has failed at the only job it has.test -e) or is
explicitly marked (new).Size ∈ {XS, S, M, L, XL, fog} — and every fog row points
into ## Not yet specified and carries no XS–XL anywhere. Status ∈ {idea, spec'd, building, shipped}, and every spec'd+ step links an existing docs/features/<slug>/ (test -d). In
## Open decisions, Type ∈ {research, prototype, grilling, task} and Owner ∈ {agent, human} — a role, never a person's name. The frontmatter carries exactly the template's keys,
none invented.## Shipped (\b20\d\d- scan) and updated_at = today.Fix + re-check ≤2 cycles; surface the rest.
Commit + handoff. After the self-check passes, commit per
../_shared/write-and-commit.md — one commit,
roadmap: roadmap.md <what changed>; an unresolved self-check item → no commit. Invoked
in-flow (a specify / implement / ship sync hook below) → don't commit here: the caller
commits docs/roadmap.md as its own document, after its own self-check, under its own message.
Then emit the stage-handoff block per ../_shared/handoff.md
(utility variant) — What I did
(incl. «self-check: 6/6 pass», the fog count and the commit SHA) + Review (docs/roadmap.md) + Run next:
name the first unblocked step the way the file names it, then give the command on its own
line, ready to run — /sdd:specify <slug> for that step, /sdd:scaffold when the first step
is the greenfield skeleton, or a recon pass on the top ## Not yet specified area when the
first thing in the way is fog rather than work. When the run had no architecture map, add one
line: the zones are unverified, /sdd:survey then a re-run re-cuts the waves.
specify sets the step's Status to spec'd and links docs/features/<slug>/. A spec'd feature with no step row gets one appended (source
anchor = its spec). A step cannot go spec'd while its Size reads fog — specifying it is
what clears the fog, so the hook replaces fog with a real size in the same edit.implement sets the step's Status to building at its start and commits that one-line
change (implement: <slug> roadmap.md building) before the first task.ship sets Status: shipped and adds the date + PR link to Shipped.docs/roadmap.md exists: a one-sentence Destination, the steps table (every row
source-anchored + sized XS–XL or fog + status), the fog vocabulary (Not yet specified ·
Out of scope · Open decisions), Decisions so far as gists-with-links, the dependency graph
that owns every edge, and execution waves that respect the graph with a named zone per parallel
step.fog row; updated_at current.L, spec'd, one edge — and underneath it nine
undecided things. The size was invented, the status was wrong, and the roadmap's unit was too
coarse to say so. Size: fog is the honest cell.(new) and say so in the handoff.## Decisions so far is a gist plus a link to
where the decision actually lives (the ADR, the spec, the thread). A paragraph of solution
detail copied in here is a second source of truth that will drift.docs/features/<slug>/../templates/roadmap.md — the decomposition scaffold.../_shared/size-matrix.md — XS–XL sizing heuristics.../_shared/agent-roster.md — the shared contract every fanned-out
question-closer follows.What SKILL.md sets; muted values are Claude Code's defaults
inheritmediumnpx claudepluginhub genkovich/sdd --plugin sdd23 skills in this plugin
/apiUse to derive the API contract for a feature — an OpenAPI 3.1 document at docs/features/{slug}/contracts/openapi.yaml plus a drift/sync report (and an events doc when the feature has async flows). Triggers on "api for {slug}", "openapi for {slug}", "API contract for {slug}", "lock the interface for {slug}", "events for {slug}", "/sdd:api {slug}", "контракт API для {slug}", "OpenAPI для {slug}", "опиши ендпоінти". The contract is never hand-written: it is a derived function of data-model.md (typed fields + constraints), the sad.md §6 sequence diagrams (error branches, async actors), and spec.md acceptance criteria. Runs an inline drift check (does the contract match the model and the sequences?) and a reconcile mode. Hard-refuse if data-model.md is missing AND the feature changes the schema → run `data-model {slug}` first; on a legal no-schema-change skip it derives from the existing schema instead.
/clarifyUse to run an ambiguity sweep over a written spec.md and close every under-specified point before planning or design proceeds — so two engineers can't reasonably build different things from the same spec. Triggers on "clarify {slug}", "find ambiguities in {slug}", "is the spec ready", "sharpen the spec", "/sdd:clarify {slug}", "прояснити специфікацію", "знайди неоднозначності {slug}", "чи готова специфікація". Re-reads the spec, dispatches a clean-context devil's-advocate subagent to list where the spec forks, then for each ambiguity runs AskUserQuestion to RESOLVE it (tighten §1/§5/§6 in place) or DEFER it (→ §8 Open questions with owner+due). Output: an updated docs/features/{slug}/spec.md with every ambiguity resolved or deferred — none dangling. Hard-refuse if spec.md is missing.
2 plugins ship this exact skill · first indexed Oct 17, 2026
Other plugins' skills for the same job