You are helping the user turn planned roadmap work into a normal spec-driven
change.
The
directory must exist at the
project root. Before
proceeding, verify:
If this fails, the project is not initialized. Run
first.
If
is missing, repair the scaffold first:
-
Identify the target planned change — determine which milestone item the
user wants to turn into a real change. If they already gave a change name,
use it. Otherwise ask which
item to promote.
-
Read roadmap and spec context first — before scaffolding anything, read:
.spec-driven/roadmap/INDEX.md
- the milestone file that contains the target item
.spec-driven/specs/INDEX.md
- the relevant main spec files the new change is likely to touch
- the selected planned change entry as a single-line roadmap input
-
Confirm it is already planned work — verify that the selected name is
present under a milestone
section before scaffolding.
-
Extract the roadmap handoff context — treat the selected planned change
entry as more than a name lookup:
- use the canonical first line to identify the change name while treating
the declared status and summary as metadata on that same line
- use the surrounding milestone sections as context for scope, rationale,
sequencing, or constraints when the one-line summary is not sufficient
- treat milestone declared statuses as limited to , ,
, or
- treat planned change declared statuses as limited to or
-
Scaffold the change — run:
node {{SKILL_DIR}}/scripts/spec-driven.js propose <name>
This creates
.spec-driven/changes/<name>/
with seeded artifact templates.
-
Fill the standard proposal artifacts — populate:
- with containing at least one explicit lint or
validation command task and one explicit unit test command task when
those commands are knowable from repository context
- delta specs under
- mapping frontmatter in delta spec files when implementation and test
paths are knowable from repository context
Use the roadmap milestone as planning input, but treat the selected planned
change as a single-line item and derive any extra context from the milestone
sections rather than multiline planned change detail.
-
Validate artifact format — run:
node {{SKILL_DIR}}/scripts/spec-driven.js verify <name>
If the command reports repairable format issues, fix them and rerun verify.
-
Offer the execution handoff — report the new change path, note which
milestone it came from, surface any open questions that must be resolved
before implementation, and ask the user whether they want to:
- enter
/spec-driven-apply <name>
for the stepwise execution path
- enter for the end-to-end execution path
Do not auto-enter either execution path without the user's explicit choice.