openspec-new-change
它能做什么
这项技能在 OpenSpec 中为功能、错误修复或修改开启一个新的结构化变更。适合希望每项变更都有分步规划流程的开发者。
适用场景
- ✓当你想在 OpenSpec 项目中开始新功能、修复或修改时。
- ✓当你想为某项变更选择不同的 OpenSpec 工作流时。
- ✓当你想看看一项新变更还需要哪些产物的时候。
技能链接
https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-new-change/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在 OpenSpec 中为设置页面开启一个新变更,添加深色模式。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会为变更命名,除非你另有要求,否则使用默认工作流创建其文件夹,然后显示产物状态,让你知道接下来的步骤。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
常见问题
默认工作流是什么?
除非你要求其他工作流,否则使用默认的 schema。
我可以查看其他工作流吗?
可以。请求查看后,智能体会列出可用的选项。
变更会得到什么名称?
智能体会根据你的描述生成一个简短的 kebab-case 名称。
详情
作者的原始描述
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.
热度
- GitHub 星标
- 6.0k
- 排名
- #14519
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
openspec-bulk-archive-change
6.0k帮你的智能体一次归档多个已完成的 OpenSpec 变更,并在归档前检查每项变更的任务和规格。
openspec-continue-change
6.0k帮你的智能体继续推进 OpenSpec 变更,创建下一个产物,例如提案、规格、设计或任务清单。
openspec-ff-change
6.0k帮你的智能体一次性创建 OpenSpec 变更的全部产物,让你无需逐步操作即可开始实现。
openspec-onboard
6.0k带你完整走一遍第一个 OpenSpec 变更周期,从挑选小任务到实现和归档,并解释每一步。