跳到正文
cccskills
免费在 GitHub 公开

openspec-new-change

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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

使用实验性驱动工件的方法开始新变更。

输入:用户的请求应包含变更名称(kebab-case)或他们想要构建的内容的描述。

步骤

  1. 如果未提供明确的输入,询问他们想要构建什么

    使用 AskUserQuestion 工具(开放式,无预设选项)询问:

    "您想要进行什么变更?描述您想要构建或修复的内容。"

    从他们的描述中,派生一个 kebab-case 名称(例如,"add user authentication" → add-user-auth)。

    重要:在了解用户想要构建什么之前,请勿继续。

  2. 确定工作流 schema

    除非用户明确要求使用其他工作流,否则使用默认 schema(省略 --schema)。

    只有当用户提到以下内容时才使用其他 schema:

    • "tdd" 或 "test-driven" → 使用 --schema tdd
    • 某个具体 schema 名称 → 使用 --schema <name>
    • "show workflows" 或 "what workflows" → 运行 openspec schemas --json 并让他们选择

    否则:省略 --schema 以使用默认值。

  3. 创建变更目录

    openspec new change "<name>"
    

    只有当用户请求特定工作流时才添加 --schema <name>。 这将在 openspec/changes/<name>/ 处创建脚手架变更,并使用所选 schema。

  4. 显示工件状态

    openspec status --change "<name>"
    

    这显示需要创建哪些工件以及哪些工件已准备就绪(依赖项已满足)。

  5. 获取第一个工件的说明 第一个工件取决于 schema(例如,spec-driven 为 proposal,tdd 为 spec)。 查看 status 输出,找到状态为 "ready" 的第一个工件。

    openspec instructions <first-artifact-id> --change "<name>"
    

    这将输出用于创建第一个工件的模板和上下文。

  6. 停止并等待用户指示

输出

完成步骤后,总结:

  • 变更名称和位置
  • 使用的 schema/工作流及其工件序列
  • 当前状态(0/N 工件完成)
  • 第一个工件的模板
  • 提示:"准备好创建第一个工件了吗?只需描述此变更的内容,我将起草它,或者让我继续。"

护栏

  • 尚未创建任何工件 - 仅显示说明
  • 不要超过显示第一个工件模板
  • 如果名称无效(不是 kebab-case),请询问有效的名称
  • 如果该名称的变更已存在,建议继续该变更
  • 如果使用非默认工作流,请传递 --schema

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.

中文简介正在准备中。当前显示原文说明。

StrayDragon/oratio42026年2月10日 更新

Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.

中文简介正在准备中。当前显示原文说明。

StrayDragon/oratio42026年2月10日 更新

Archive multiple completed changes at once. Use when archiving several parallel changes.

中文简介正在准备中。当前显示原文说明。

StrayDragon/oratio42026年2月10日 更新

Continue working on an OpenSpec change by creating the next artifact. Use when the user wants to progress their change, create the next artifact, or continue their workflow.

中文简介正在准备中。当前显示原文说明。

StrayDragon/oratio42026年2月10日 更新

Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.

中文简介正在准备中。当前显示原文说明。

StrayDragon/oratio42026年2月10日 更新

Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually.

中文简介正在准备中。当前显示原文说明。

StrayDragon/oratio42026年2月10日 更新

查看 StrayDragon 的全部技能

报告此技能的问题