一键导入
openspec-apply-change
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
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.
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
| name | openspec-apply-change |
| description | Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks. |
| license | MIT |
| compatibility | Requires openspec CLI. |
| metadata | {"author":"openspec","version":"1.0","generatedBy":"1.2.0"} |
从 OpenSpec 变更实施任务.
输入:可选择指定变更名称.如果省略,先判断是否可从对话上下文推断;若含糊或不明确,必须提示可用的变更.
步骤
选择变更
如果提供了名称,就使用它.否则:
openspec list --json 获取可用变更,并使用 AskUserQuestion 工具 让用户选择始终说明:"使用变更:",并告知如何覆盖(例如 /opsx:apply <other>).
获取应用说明
openspec instructions apply --change "<name>" --json
这返回:
处理状态:
state: "blocked"(缺少工件):显示消息,建议使用 openspec-continue-changestate: "all_done":祝贺,建议归档阅读上下文文件
阅读 contextFiles 中列出的文件:
proposal - 原因和内容specs - 需求和场景(使用 glob 模式查找所有)design - 技术方法(如果存在)tasks - 实施检查清单显示当前进度
显示:
实施任务(循环直到完成或被阻止)
对于每个待处理任务:
- [ ] → - [x]如果以下情况则暂停:
完成或暂停时,显示状态
显示:
实施期间输出
## 实施:<change-name>
正在处理任务 3/7:<task description>
[...implementation happening...]
✓ 任务完成
正在处理任务 4/7:<task description>
[...implementation happening...]
✓ 任务完成
完成时输出
## 实施完成
**变更:** <change-name>
**进度:** 7/7 任务完成 ✓
### 此会话完成
- [x] 任务 1
- [x] 任务 2
...
所有任务完成!准备好归档此变更.
暂停时输出(遇到问题)
## 实施暂停
**变更:** <change-name>
**进度:** 4/7 任务完成
### 遇到问题
<问题描述>
**选项:**
1. <选项 1>
2. <选项 2>
3. 其他方法
您想怎么做?
护栏
流畅工作流集成
此技能支持"对变更的操作"模型: