Propose a new change - create the change and generate all artifacts in one step.
-
If an epic is provided, resolve the change from the epic first
- Read
openspec/epics/<epic-name>/epic.md
- Find the
Candidate Changes section
- If the user already named a candidate change, use it
- If there is only one strong candidate, use it
- If there are multiple viable candidate changes, ask the user to choose one
Derive the change name from the chosen candidate if needed.
Before finishing, update the chosen candidate row in the epic ledger to reflect:
Status: proposed
Linked Change: openspec/changes/<name>
- any brief note that helps future follow-up
IMPORTANT: When working from an epic, keep the resulting change scoped to a single candidate change, not the whole epic.
-
If no clear input provided, ask what they want to build
Use the AskUserQuestion tool (open-ended, no preset options) to ask:
"What change do you want to work on? Describe what you want to build or fix."
From their description, derive a kebab-case name (e.g., "add user authentication" → add-user-auth).
IMPORTANT: Do NOT proceed without understanding what the user wants to build.
-
Create the change directory
openspec new change "<name>"
This creates a scaffolded change at openspec/changes/<name>/ with .openspec.yaml.
-
Get the artifact build order
openspec status --change "<name>" --json
Parse the JSON to get:
applyRequires: array of artifact IDs needed before implementation (e.g., ["tasks"])
artifacts: list of all artifacts with their status and dependencies
-
Create artifacts in sequence until apply-ready
Use the TodoWrite tool to track progress through the artifacts.
Loop through artifacts in dependency order (artifacts with no pending dependencies first):
a. For each artifact that is ready (dependencies satisfied):
b. Continue until all applyRequires artifacts are complete
- After creating each artifact, re-run
openspec status --change "<name>" --json
- Check if every artifact ID in
applyRequires has status: "done" in the artifacts array
- Stop when all
applyRequires artifacts are done
c. If an artifact requires user input (unclear context):
- Use AskUserQuestion tool to clarify
- Then continue with creation
-
Show final status
openspec status --change "<name>"