启动 OpenSpec 新变更
openspec-new-change
使用实验性工件工作流启动新的 OpenSpec 变更。当用户想要以结构化的分步方式创建新功能、修复或修改时使用。
- License 许可
- MIT
- 最近更新
- 2026-09-30
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- openspec-new-change
- license
- MIT
- metadata
- { "author": "openspec", "version": "1.0", "generatedBy": "1.3.1" }
- description
- Start a new OpenSpec change using the experimental artifact workflow. Use when the user wants to create a new feature, fix, or modification with a structured step-by-step approach.
- compatibility
- Requires openspec CLI.
03 SKILL.md 正文
Start a new change using the experimental artifact-driven approach.
Input: The user's request should include a change name (kebab-case) OR a description of what they want to build.
Steps
-
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.
-
Determine the workflow schema
Use the default schema (omit
--schema) unless the user explicitly requests a different workflow.Use a different schema only if the user mentions:
- A specific schema name → use
--schema <name> - "show workflows" or "what workflows" → run
openspec schemas --jsonand let them choose
Otherwise: Omit
--schemato use the default. - A specific schema name → use
-
Create the change directory
openspec new change "<name>"Add
--schema <name>only if the user requested a specific workflow. This creates a scaffolded change atopenspec/changes/<name>/with the selected schema. -
Show the artifact status
openspec status --change "<name>"This shows which artifacts need to be created and which are ready (dependencies satisfied).
-
Get instructions for the first artifact The first artifact depends on the schema (e.g.,
proposalfor spec-driven). Check the status output to find the first artifact with status "ready".openspec instructions <first-artifact-id> --change "<name>"This outputs the template and context for creating the first artifact.
-
STOP and wait for user direction
Output
After completing the steps, summarize:
- Change name and location
- Schema/workflow being used and its artifact sequence
- Current status (0/N artifacts complete)
- The template for the first artifact
- Prompt: "Ready to create the first artifact? Just describe what this change is about and I'll draft it, or ask me to continue."
Guardrails
- Do NOT create any artifacts yet - just show the instructions
- Do NOT advance beyond showing the first artifact template
- If the name is invalid (not kebab-case), ask for a valid name
- If a change with that name already exists, suggest continuing that change instead
- Pass --schema if using a non-default workflow
04 同仓库更多 Skills
OpenSpec 变更验证
openspec-verify-change
验证实现是否与变更工件一致。当用户想要在归档前验证实现是否完整、正确且连贯时使用。
OpenSpec 规格同步
openspec-sync-specs
将变更中的增量规格(delta spec)同步到主规格。当用户想要用增量规格中的变更更新主规格,而不归档该变更时使用。
OpenSpec 变更提案
openspec-propose
一步生成所有工件,提出新的变更。当用户想要快速描述要构建的内容,并获得包含设计、规格和任务的完整提案以供实施时使用。
OpenSpec 工件快速创建
openspec-ff-change
快速推进 OpenSpec 工件创建。当用户想要快速创建实现所需的全部工件,而无需逐个操作时使用。
OpenSpec 需求探索
openspec-explore
进入探索模式——作为思考伙伴,帮助探索想法、排查问题并澄清需求。当用户想在变更之前或期间深入思考某事时使用。
继续推进 OpenSpec 变更
openspec-continue-change
通过创建下一个工件来继续推进 OpenSpec 变更。当用户想要推进其变更、创建下一个工件或继续其工作流时使用。