.claude/skills/openspec-apply-change/SKILL.md
实现 OpenSpec 变更中的任务。当用户想要开始实现、继续实现或处理任务时使用。
npx skillsauth add studyzy/imewlconverter openspec-apply-changeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
实现 OpenSpec 变更中的任务。
输入:可选指定变更名称。如果省略,检查是否可以从对话上下文中推断。如果模糊或不明确,你必须提示获取可用变更。
步骤
选择变更
如果提供了名称,使用它。否则:
openspec list --json 获取可用变更,并使用 AskUserQuestion tool 让用户选择始终宣布:“正在使用变更:<name>”以及如何覆盖(例如,/opsx:apply <other>)。
检查状态以了解 Schema
openspec-cn status --change "<name>" --json
Parse the JSON to understand:
schemaName: The workflow being used (e.g., "spec-driven")获取应用指令
openspec-cn instructions apply --change "<name>" --json
这返回:
处理状态:
state: "blocked"(缺少产出物):显示消息,建议使用 openspec-continue-changestate: "all_done":祝贺,建议归档阅读上下文文件
阅读 apply instructions 输出中 contextFiles 列出的文件。
文件取决于正在使用的 Schema:
显示当前进度
显示:
实现任务(循环直到完成或受阻)
对于每个待处理任务:
- [ ] → - [x]暂停如果:
完成或暂停时,显示状态
显示:
实现期间的输出
## 正在实现:<change-name> (schema: <schema-name>)
正在处理任务 3/7:<task description>
[...正在进行实现...]
✓ 任务完成
正在处理任务 4/7:<task description>
[...正在进行实现...]
✓ 任务完成
完成时的输出
## 实现完成
**变更:** <change-name>
**Schema:** <schema-name>
**进度:** 7/7 任务已完成 ✓
### 本次会话已完成
- [x] 任务 1
- [x] 任务 2
...
所有任务已完成!准备归档此变更。
暂停时的输出(遇到问题)
## 实现暂停
**变更:** <change-name>
**Schema:** <schema-name>
**进度:** 4/7 任务已完成
### 遇到的问题
<问题描述>
**选项:**
1. <选项 1>
2. <选项 2>
3. 其他方法
您想怎么做?
护栏
流畅的工作流集成
此技能支持“变更上的操作”模型:
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.