Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
日本語の概要は準備中です。原文の説明を表示しています。
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.
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
快速推进工件创建——一次性生成开始实施所需的一切。
输入:用户请求应包含变更名称(kebab-case),或对其想要构建内容的描述。
步骤
如果未提供清晰的输入,询问要构建什么
使用 AskUserQuestion 工具(开放式,无预设选项)询问:
"你想要处理什么变更?描述你想构建或修复的内容。"
根据描述派生 kebab-case 名称(例如 "add user authentication" → add-user-auth)。
重要:在理解用户想构建什么之前不要继续。
创建变更目录
openspec new change "<name>"
这会在 openspec/changes/<name>/ 创建一个脚手架变更。
获取工件构建顺序
openspec status --change "<name>" --json
解析 JSON 以获得:
applyRequires:实施前所需的工件 ID 数组(例如 ["tasks"])artifacts:所有工件及其状态和依赖按顺序创建工件,直到可实施
使用 TodoWrite 工具 跟踪工件进度。
按依赖顺序循环工件(先处理没有未满足依赖的工件):
a. 对每个处于 ready 的工件(依赖已满足):
openspec instructions <artifact-id> --change "<name>" --json
template:要使用的模板内容instruction:该工件类型的 schema 指导outputPath:写入位置dependencies:需要读取的已完成工件instruction 创建工件文件b. 持续直到 applyRequires 全部完成
openspec status --change "<name>" --jsonapplyRequires 中的每个工件 ID 在 artifacts 数组里是否为 status: "done"applyRequires 工件完成后停止c. 如果工件需要用户输入(上下文不清晰):
显示最终状态
openspec status --change "<name>"
输出
完成所有工件后,总结:
/opsx:apply 或让我开始实现来处理任务。"工件创建指南
openspec instructions 返回的 instructiontemplate 作为起点,并根据上下文填充护栏
apply.requires 定义)まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
日本語の概要は準備中です。原文の説明を表示しています。
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
日本語の概要は準備中です。原文の説明を表示しています。
Archive multiple completed changes at once. Use when archiving several parallel changes.
日本語の概要は準備中です。原文の説明を表示しています。
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.
日本語の概要は準備中です。原文の説明を表示しています。
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.
日本語の概要は準備中です。原文の説明を表示しています。
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.
日本語の概要は準備中です。原文の説明を表示しています。