跳到正文
Skillpedia
部署与云(DevOps)6.0k · #14519

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-new-change/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. 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.

  2. 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 --json and let them choose

    Otherwise: Omit --schema to use the default.

  3. Create the change directory

    openspec new change "<name>"
    

    Add --schema <name> only if the user requested a specific workflow. This creates a scaffolded change at openspec/changes/<name>/ with the selected schema.

  4. Show the artifact status

    openspec status --change "<name>"
    

    This shows which artifacts need to be created and which are ready (dependencies satisfied).

  5. Get instructions for the first artifact The first artifact depends on the schema (e.g., proposal for 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.

  6. 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.

repo: fengshao1227/ccg-workflow

热度

GitHub 星标
6.0k
排名
#14519
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能