@rpamis/comet 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,108 +1,108 @@
1
- ---
2
- name: comet-design
3
- description: "Comet 阶段 2:深度设计。用 /comet-design 调用。通过 brainstorming 产出 Design Doc delta spec"
4
- ---
5
-
6
- # Comet 阶段 2:深度设计(Design
7
-
8
- ## 前置条件
9
-
10
- - 活跃 change 已存在(proposal.mddesign.mdtasks.md
11
- - Design Doc(`docs/superpowers/specs/` 下无对应文件)
12
-
13
- ## 步骤
14
-
15
- ### 0. 入口状态验证(Entry Check
16
-
17
- 在执行任何操作之前,读取并验证当前状态:
18
-
19
- **检查清单:**
20
- 1. `openspec/changes/<name>/.comet.yaml` 存在
21
- 2. `phase` 字段的值为 `"design"`
22
- 3. `workflow` 字段的值为 `"full"`
23
- 4. `design_doc` 字段为 `null` 或空
24
- 5. `openspec/changes/<name>/proposal.md` 存在且非空
25
- 6. `openspec/changes/<name>/design.md` 存在且非空
26
- 7. `openspec/changes/<name>/tasks.md` 存在且非空
27
-
28
- **验证方式:**
29
- - `cat openspec/changes/<name>/.comet.yaml` 读取全部字段
30
- - 逐条比对检查清单
31
-
32
- **失败输出:**
33
- ```
34
- [HARD STOP] Entry check failed for comet-design
35
- Expected: phase=design, design_doc=<empty/null>, workflow=full
36
- Actual: phase=<实际值>, design_doc=<实际值>, workflow=<实际值>
37
- Suggestion: Run comet-open first, or check if .comet.yaml was modified out of sequence.
38
- ```
39
-
40
- 验证通过后才进入步骤 1
41
-
42
- ### 1a. 读取已有上下文
43
-
44
- 读取活跃 change 下的 `proposal.md` `design.md`,将核心内容整理为摘要:
45
- - **proposal 摘要**:目标、动机、范围
46
- - **design 摘要**:架构决策、高层设计
47
-
48
- ### 1b. 执行 Brainstorming(带上下文)
49
-
50
- **立即执行:** 使用 Skill 工具加载 `superpowers:brainstorming` 技能,ARGUMENTS 包含:
51
-
52
- ```
53
- Change: <change-name>
54
- Proposal 摘要: <proposal 核心内容>
55
- Design 摘要: <design.md 架构决策>
56
- 跳过上下文探索,直接进入设计提问。
57
- ```
58
-
59
- 禁止跳过此步骤,禁止在未加载该技能的情况下继续。
60
-
61
- `superpowers:brainstorming` 不可用,停止流程并提示安装或启用 Superpowers 技能,不要用普通对话替代该步骤。
62
-
63
- 技能加载后,按其指引产出:
64
- - `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` — 设计文档(技术 RFC
65
- - `openspec/changes/<name>/specs/<capability>/spec.md` — 能力规格(delta
66
-
67
- ### 2. 更新 Comet 状态
68
-
69
- `openspec/changes/<name>/.comet.yaml` 中合并更新以下字段(保留其他字段不变):
70
-
71
- ```yaml
72
- phase: build
73
- design_doc: docs/superpowers/specs/YYYY-MM-DD-topic-design.md
74
- ```
75
-
76
- 【写入验证】更新完成后必须验证:
77
- cat openspec/changes/<name>/.comet.yaml
78
- 确认 phase 行的值为 "build"
79
- 确认 design_doc 行的值为 "docs/superpowers/specs/YYYY-MM-DD-topic-design.md"
80
- 如任一字段不匹配,重试写入后再次验证。最多重试 2 次,仍失败则报告错误并终止。
81
-
82
- ### 3. Spec 分工
83
-
84
- | Spec 类型 | 归属 | 存放位置 | 定义 |
85
- |-----------|------|---------|------|
86
- | 能力规格 | OpenSpec | `openspec/changes/<name>/specs/` | 系统应该做什么(需求 + 验收场景) |
87
- | 设计文档 | Superpowers | `docs/superpowers/specs/` | 怎么构建(技术架构 + 实现细节) |
88
-
89
- ### 4. 文档层级确认
90
-
91
- ```
92
- proposal.md(阶段 1 → Why + What
93
- design.md(阶段 1OpenSpec高层架构决策
94
- 设计文档(阶段 2Superpowers深度技术设计
95
- 能力规格(阶段 2delta需求 + 验收场景
96
- ```
97
-
98
- ## 退出条件
99
-
100
- - Design Doc 已创建并保存
101
- - 如有新能力则 delta spec 已创建
102
- - **阶段守卫**:运行 `bash $COMET_GUARD <change-name> design`,全部 PASS 后才允许流转
103
-
104
- ## 自动流转
105
-
106
- 退出条件满足后,**无需等待用户再次输入**,直接执行下一阶段:
107
-
108
- > **REQUIRED NEXT SKILL:** 调用 `comet-build` skill 进入计划与构建阶段。
1
+ ---
2
+ name: comet-design
3
+ description: "Comet Phase 2: Deep Design. Invoke with /comet-design. Produce Design Doc and delta spec through brainstorming."
4
+ ---
5
+
6
+ # Comet Phase 2: Deep Design (Design)
7
+
8
+ ## Prerequisites
9
+
10
+ - Active change exists (proposal.md, design.md, tasks.md)
11
+ - No Design Doc (no corresponding file under `docs/superpowers/specs/`)
12
+
13
+ ## Steps
14
+
15
+ ### 0. Entry State Verification (Entry Check)
16
+
17
+ Before performing any operations, read and verify the current state:
18
+
19
+ **Checklist:**
20
+ 1. `openspec/changes/<name>/.comet.yaml` exists
21
+ 2. `phase` field value is `"design"`
22
+ 3. `workflow` field value is `"full"`
23
+ 4. `design_doc` field is `null` or empty
24
+ 5. `openspec/changes/<name>/proposal.md` exists and is non-empty
25
+ 6. `openspec/changes/<name>/design.md` exists and is non-empty
26
+ 7. `openspec/changes/<name>/tasks.md` exists and is non-empty
27
+
28
+ **Verification method:**
29
+ - `cat openspec/changes/<name>/.comet.yaml` to read all fields
30
+ - Check checklist items one by one
31
+
32
+ **Failure output:**
33
+ ```
34
+ [HARD STOP] Entry check failed for comet-design
35
+ Expected: phase=design, design_doc=<empty/null>, workflow=full
36
+ Actual: phase=<actual-value>, design_doc=<actual-value>, workflow=<actual-value>
37
+ Suggestion: Run comet-open first, or check if .comet.yaml was modified out of sequence.
38
+ ```
39
+
40
+ Proceed to Step 1 only after verification passes.
41
+
42
+ ### 1a. Read Existing Context
43
+
44
+ Read `proposal.md` and `design.md` under the active change, organize core content into summaries:
45
+ - **Proposal summary**: goals, motivation, scope
46
+ - **Design summary**: architectural decisions, high-level design
47
+
48
+ ### 1b. Execute Brainstorming (With Context)
49
+
50
+ **Immediately execute:** Use the Skill tool to load the `superpowers:brainstorming` skill, ARGUMENTS contains:
51
+
52
+ ```
53
+ Change: <change-name>
54
+ Proposal summary: <proposal core content>
55
+ Design summary: <design.md architectural decisions>
56
+ Skip context exploration, proceed directly to design questioning.
57
+ ```
58
+
59
+ Skipping this step is prohibited, and continuing without loading this skill is prohibited.
60
+
61
+ If `superpowers:brainstorming` is unavailable, stop the process and prompt to install or enable Superpowers skills. Do not substitute this step with normal conversation.
62
+
63
+ After the skill loads, follow its guidance to produce:
64
+ - `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` — design document (technical RFC)
65
+ - `openspec/changes/<name>/specs/<capability>/spec.md` — capability specification (delta)
66
+
67
+ ### 2. Update Comet State
68
+
69
+ Merge and update the following fields in `openspec/changes/<name>/.comet.yaml` (keep other fields unchanged):
70
+
71
+ ```yaml
72
+ phase: build
73
+ design_doc: docs/superpowers/specs/YYYY-MM-DD-topic-design.md
74
+ ```
75
+
76
+ 【Write verification】After update completion, must verify:
77
+ cat openspec/changes/<name>/.comet.yaml
78
+ Confirm phase line value is "build"
79
+ Confirm design_doc line value is "docs/superpowers/specs/YYYY-MM-DD-topic-design.md"
80
+ If any field does not match, retry write then verify again. Maximum 2 retries, report error and terminate if still fails.
81
+
82
+ ### 3. Dual Spec Division of Labor
83
+
84
+ | Spec Type | Belongs To | Location | Definition |
85
+ |-----------|-----------|----------|------------|
86
+ | Capability specification | OpenSpec | `openspec/changes/<name>/specs/` | What the system should do (requirements + acceptance scenarios) |
87
+ | Design document | Superpowers | `docs/superpowers/specs/` | How to build (technical architecture + implementation details) |
88
+
89
+ ### 4. Document Hierarchy Confirmation
90
+
91
+ ```
92
+ proposal.md (Phase 1) → Why + What
93
+ design.md (Phase 1, OpenSpec)High-level architectural decisions
94
+ Design document (Phase 2, Superpowers) Deep technical design
95
+ Capability specification (Phase 2, delta) Requirements + acceptance scenarios
96
+ ```
97
+
98
+ ## Exit Conditions
99
+
100
+ - Design Doc has been created and saved
101
+ - Delta spec has been created if there are new capabilities
102
+ - **Phase guard**: Run `bash $COMET_GUARD <change-name> design`, allow transition only after all PASS
103
+
104
+ ## Automatic Transition
105
+
106
+ After exit conditions are met, **proceed immediately to the next phase without waiting for user input**:
107
+
108
+ > **REQUIRED NEXT SKILL:** Invoke `comet-build` skill to enter the planning and build phase.
@@ -1,165 +1,165 @@
1
- ---
2
- name: comet-hotfix
3
- description: "Comet 预设路径:Bug fix / 热修复。跳过 brainstorming,直接 open → build → verify → archive。适用于行为修复、不涉及新 capability 设计的场景。"
4
- ---
5
-
6
- # Comet 预设路径:Hotfix
7
-
8
- Hotfix Comet 五阶段能力的预设工作流,不是独立的平行流程。它复用 openbuildverifyarchive 能力,仅跳过 brainstorming 和完整 plan
9
-
10
- 适用于 bug fix、热修复、小范围行为修正。不涉及新 capability 设计,不需要深度 brainstorming
11
-
12
- **适用条件**(必须全部满足):
13
- 1. 修复已有功能的 bug,不新增 capability
14
- 2. 不涉及接口变更或架构调整
15
- 3. 改动范围可预估(通常 < 5 个文件)
16
-
17
- **不适用**:如修复过程发现需要架构调整,应升级为完整 `/comet` 流程。
18
-
19
- ---
20
-
21
- ## 流程(preset workflow4 阶段)
22
-
23
- ### 0. 入口状态验证(Entry Check
24
-
25
- 在执行任何操作之前,验证当前状态:
26
-
27
- **检查清单:**
28
- 1. `openspec/changes/<name>/` 目录不存在,或目录存在但 `.comet.yaml` 不存在(无冲突)
29
-
30
- **验证方式:**
31
- - `test -d openspec/changes/<name>` 检查目录
32
- - 如目录存在,`test -f openspec/changes/<name>/.comet.yaml` 检查配置文件
33
- - `.comet.yaml` 已存在,读取 `phase` 检查是否为未完成的 hotfix
34
-
35
- **失败输出(有冲突):**
36
- ```
37
- [HARD STOP] Entry check failed for comet-hotfix
38
- Expected: openspec/changes/<name>/.comet.yaml does not exist (new change)
39
- Actual: .comet.yaml exists with phase=<实际值>
40
- Suggestion: Pick a different change name, or check if an existing hotfix is in progress.
41
- ```
42
-
43
- 验证通过后才进入流程步骤。
44
-
45
- 执行链路:open → build → verify → archiveHotfix 为每个阶段提供默认决策:精简开启、直接构建、按规模验证、验证通过后归档。
46
-
47
- ### 1. 快速开启(preset open
48
-
49
- 复用 Comet open 能力创建 change,但使用 hotfix 默认值:不执行 `openspec-explore` 长探索,直接进入精简 change 创建。
50
-
51
- **立即执行:** 使用 Skill 工具加载 `openspec-new-change` 技能。禁止跳过此步骤。
52
-
53
- 技能加载后,按其指引创建精简版产物:
54
- - `proposal.md` — 问题描述 + 根因分析 + 修复目标(无需方案对比)
55
- - `design.md` — 修复方案(1 个即可,无需多方案对比)
56
- - `tasks.md` — 修复任务清单
57
- - **无需 delta spec**(除非修复改变了已有 spec 的验收场景)
58
-
59
- `openspec/changes/<name>/` 下创建独立的 `.comet.yaml` 文件:
60
-
61
- ```yaml
62
- workflow: hotfix
63
- phase: build
64
- design_doc: null
65
- plan: null
66
- build_mode: direct
67
- verify_mode: light
68
- verify_result: pending
69
- verified_at: null
70
- archived: false
71
- ```
72
-
73
- 【写入验证】创建完成后必须验证:
74
- cat openspec/changes/<name>/.comet.yaml
75
- 确认 workflow 行的值为 "hotfix"
76
- 确认 phase 行的值为 "build"
77
- 确认 design_doc 行的值为 "null"
78
- 确认 plan 行的值为 "null"
79
- 确认 build_mode 行的值为 "direct"
80
- 确认 verify_mode 行的值为 "light"
81
- 确认 verify_result 行的值为 "pending"
82
- 确认 verified_at 行的值为 "null"
83
- 确认 archived 行的值为 "false"
84
- 如任一字段不匹配,重试写入后再次验证。最多重试 2 次,仍失败则报告错误并终止。
85
-
86
- ### 2. 直接构建(preset build
87
-
88
- 使用 hotfix 默认值:`build_mode: direct`。跳过 `superpowers:brainstorming` `superpowers:writing-plans`(除非任务 > 3 个;若超过 3 个任务,转入 `/comet-build` 的计划与执行方式选择)。
89
-
90
- **立即执行:** tasks.md 逐个执行任务:
91
-
92
- 1. 读取 `openspec/changes/<name>/tasks.md`,获取未完成任务列表
93
- 2. 对每个未完成任务:
94
- - 根据任务描述修改代码
95
- - 运行 `mvn spotless:apply` 格式化
96
- - 运行相关测试确认通过
97
- - tasks.md 中对应 `- [ ]` 勾选为 `- [x]`
98
- - 提交代码,commit message 格式:`fix: <简述修复>`
99
- 3. 全部任务完成后进入验证
100
-
101
- **如修复影响已有 spec 验收场景**:
102
- - `openspec/changes/<name>/specs/<capability>/spec.md` 创建 delta spec
103
- - 仅包含 `## MODIFIED Requirements` 部分
104
-
105
- ### 3. 验证(preset verify
106
-
107
- 复用 `/comet-verify`,由 comet-verify 的规模评估决定轻量或完整验证。
108
-
109
- **立即执行:** 使用 Skill 工具加载 `comet-verify` 技能。禁止跳过此步骤。
110
-
111
- delta spec 的小范围 hotfix 通常满足轻量验证条件(≤ 3 tasks、≤ 5 files),comet-verify 的规模评估会选择轻量验证路径(5 项快速检查)。若 hotfix 创建了 delta spec,则根据 comet-verify 的规模评估规则进入完整验证路径。
112
-
113
- **额外 Hotfix 专属检查**(在 comet-verify 轻量验证通过后执行):
114
-
115
- 1. **根因消除**:对照 proposal.md 的根因分析,确认问题代码已消除
116
- - 读取 proposal.md 中的 bug 描述和根因
117
- - 搜索验证问题代码不再存在
118
- - 如根因未消除,返回 Step 2 继续修复
119
-
120
- **验证阶段升级条件**:
121
- - 回归测试揭示深层架构问题停止 hotfix,升级为 `/comet`
122
- - 修复需要额外接口变更停止 hotfix,升级为 `/comet`
123
-
124
- 验证通过后,按 `/comet-verify` 的规则将 `.comet.yaml` `verify_result` 记录为 `pass`,归档前不得跳过该状态。
125
-
126
- ### 4. 归档(preset archive
127
-
128
- 复用 `/comet-archive`。归档前必须满足 `.comet.yaml` `verify_result: pass`。
129
-
130
- **立即执行:** 使用 Skill 工具加载 `comet-archive` 技能进行归档。禁止跳过此步骤。
131
- 如有 delta spec,按 comet-archive 规则同步到 main spec,并处理关联 Design Doc Plan 的归档标注。
132
-
133
- ---
134
-
135
- ## 连续执行模式
136
-
137
- <IMPORTANT>
138
- Hotfix 流程为 **一次性连续执行**。调用 `/comet-hotfix` 后,agent 必须自动走完全部 4 个阶段,中间不停顿等待用户输入(除非遇到升级条件需要用户确认)。
139
-
140
- 执行顺序:快速开启直接构建验证归档完成
141
-
142
- 每个阶段完成后立即进入下一阶段,无需用户再次输入。阶段内部仍必须按上文要求调用对应 Comet/OpenSpec/Superpowers skill
143
- </IMPORTANT>
144
-
145
- ---
146
-
147
- ## 升级条件
148
-
149
- 修复过程中出现以下情况时,停止 hotfix 流程,升级为完整 `/comet`:
150
-
151
- 1. 发现根因涉及架构缺陷
152
- 2. 修复需要新增接口或组件
153
- 3. 影响范围扩大到 > 10 个文件
154
- 4. 需要新 capability spec
155
-
156
- 升级方式:在当前 change 基础上补充 Design Doc(执行 `/comet-design`),后续正常走完整流程。
157
-
158
- ---
159
-
160
- ## 退出条件
161
-
162
- - Bug 已修复,测试通过
163
- - change 已归档
164
- - 如有 spec 变更,已同步到 main spec
165
- - **阶段守卫**:build → verify 前运行 `bash $COMET_GUARD <change-name> build`,verify → archive 前运行 `bash $COMET_GUARD <change-name> verify`
1
+ ---
2
+ name: comet-hotfix
3
+ description: "Comet preset path: Bug fix / hotfix. Skip brainstorming, directly open → build → verify → archive. Applicable for behavior fixes, scenarios not involving new capability design."
4
+ ---
5
+
6
+ # Comet Preset Path: Hotfix
7
+
8
+ Hotfix is a preset workflow of Comet's five-phase capabilities, not a separate parallel process. It reuses open, build, verify, archive capabilities, only skipping brainstorming and full plan.
9
+
10
+ Applicable for bug fixes, hotfixes, small-scale behavior corrections. Does not involve new capability design, does not require deep brainstorming.
11
+
12
+ **Applicable conditions** (all must be met):
13
+ 1. Fix bugs in existing functionality, no new capability
14
+ 2. No interface changes or architecture adjustments
15
+ 3. Change scope is predictable (usually < 5 files)
16
+
17
+ **Not applicable**: If fix process discovers need for architecture adjustments, should upgrade to full `/comet` workflow.
18
+
19
+ ---
20
+
21
+ ## Process (preset workflow, 4 phases)
22
+
23
+ ### 0. Entry State Verification (Entry Check)
24
+
25
+ Before performing any operations, verify current state:
26
+
27
+ **Checklist:**
28
+ 1. `openspec/changes/<name>/` directory does not exist, or directory exists but `.comet.yaml` does not exist (no conflict)
29
+
30
+ **Verification method:**
31
+ - `test -d openspec/changes/<name>` to check directory
32
+ - If directory exists, `test -f openspec/changes/<name>/.comet.yaml` to check config file
33
+ - If `.comet.yaml` exists, read `phase` to check if it's an incomplete hotfix
34
+
35
+ **Failure output (has conflict):**
36
+ ```
37
+ [HARD STOP] Entry check failed for comet-hotfix
38
+ Expected: openspec/changes/<name>/.comet.yaml does not exist (new change)
39
+ Actual: .comet.yaml exists with phase=<actual-value>
40
+ Suggestion: Pick a different change name, or check if an existing hotfix is in progress.
41
+ ```
42
+
43
+ Proceed to process steps only after verification passes.
44
+
45
+ Execution chain: open → build → verify → archive. Hotfix provides default decisions for each phase: streamlined open, direct build, scale-based verification, archive after verification passes.
46
+
47
+ ### 1. Quick Open (preset open)
48
+
49
+ Reuse Comet open capability to create change, but use hotfix defaults: do not execute `openspec-explore` long exploration, directly enter streamlined change creation.
50
+
51
+ **Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill. Skipping this step is prohibited.
52
+
53
+ After the skill loads, follow its guidance to create streamlined artifacts:
54
+ - `proposal.md` — problem description + root cause analysis + fix goal (no solution comparison needed)
55
+ - `design.md` — fix solution (one is enough, no multi-solution comparison needed)
56
+ - `tasks.md` — fix task list
57
+ - **No delta spec needed** (unless fix changes existing spec acceptance scenarios)
58
+
59
+ Create independent `.comet.yaml` file under `openspec/changes/<name>/`:
60
+
61
+ ```yaml
62
+ workflow: hotfix
63
+ phase: build
64
+ design_doc: null
65
+ plan: null
66
+ build_mode: direct
67
+ verify_mode: light
68
+ verify_result: pending
69
+ verified_at: null
70
+ archived: false
71
+ ```
72
+
73
+ 【Write verification】After creation completion, must verify:
74
+ cat openspec/changes/<name>/.comet.yaml
75
+ Confirm workflow line value is "hotfix"
76
+ Confirm phase line value is "build"
77
+ Confirm design_doc line value is "null"
78
+ Confirm plan line value is "null"
79
+ Confirm build_mode line value is "direct"
80
+ Confirm verify_mode line value is "light"
81
+ Confirm verify_result line value is "pending"
82
+ Confirm verified_at line value is "null"
83
+ Confirm archived line value is "false"
84
+ If any field does not match, retry write then verify again. Maximum 2 retries, report error and terminate if still fails.
85
+
86
+ ### 2. Direct Build (preset build)
87
+
88
+ Use hotfix defaults: `build_mode: direct`. Skip `superpowers:brainstorming` and `superpowers:writing-plans` (unless tasks > 3; if exceeds 3 tasks, transfer to `/comet-build`'s plan and execution method selection).
89
+
90
+ **Immediately execute:** Execute tasks one by one according to tasks.md:
91
+
92
+ 1. Read `openspec/changes/<name>/tasks.md`, get incomplete task list
93
+ 2. For each incomplete task:
94
+ - Modify code according to task description
95
+ - Run `mvn spotless:apply` to format
96
+ - Run related tests to confirm pass
97
+ - Check corresponding `- [ ]` to `- [x]` in tasks.md
98
+ - Commit code, commit message format: `fix: <brief fix description>`
99
+ 3. After all tasks complete, enter verification
100
+
101
+ **If fix affects existing spec acceptance scenarios**:
102
+ - Create delta spec in `openspec/changes/<name>/specs/<capability>/spec.md`
103
+ - Only include `## MODIFIED Requirements` section
104
+
105
+ ### 3. Verification (preset verify)
106
+
107
+ Reuse `/comet-verify`, with comet-verify's scale assessment deciding lightweight or full verification.
108
+
109
+ **Immediately execute:** Use the Skill tool to load the `comet-verify` skill. Skipping this step is prohibited.
110
+
111
+ Small-scale hotfixes without delta spec usually meet lightweight verification conditions (≤ 3 tasks, 5 files), comet-verify's scale assessment will select lightweight verification path (5 quick checks). If hotfix created delta spec, enter full verification path according to comet-verify's scale assessment rules.
112
+
113
+ **Additional Hotfix-Exclusive Checks** (execute after comet-verify lightweight verification passes):
114
+
115
+ 1. **Root cause elimination**: Compare proposal.md's root cause analysis, confirm problem code eliminated
116
+ - Read bug description and root cause in proposal.md
117
+ - Search and verify problem code no longer exists
118
+ - If root cause not eliminated, return to Step 2 to continue fix
119
+
120
+ **Verification phase upgrade conditions**:
121
+ - Regression testing reveals deep architecture issues Stop hotfix, upgrade to `/comet`
122
+ - Fix requires additional interface changes Stop hotfix, upgrade to `/comet`
123
+
124
+ After verification passes, record `.comet.yaml` `verify_result` as `pass` according to `/comet-verify` rules, must not skip this status before archiving.
125
+
126
+ ### 4. Archive (preset archive)
127
+
128
+ Reuse `/comet-archive`. Must satisfy `verify_result: pass` in `.comet.yaml` before archiving.
129
+
130
+ **Immediately execute:** Use the Skill tool to load the `comet-archive` skill to archive. Skipping this step is prohibited.
131
+ If there is delta spec, sync to main spec according to comet-archive rules, and handle associated Design Doc and Plan archiving annotations.
132
+
133
+ ---
134
+
135
+ ## Continuous Execution Mode
136
+
137
+ <IMPORTANT>
138
+ Hotfix workflow is **one-time continuous execution**. After invoking `/comet-hotfix`, agent must automatically complete all 4 phases, without pausing to wait for user input mid-way (unless encountering upgrade conditions requiring user confirmation).
139
+
140
+ Execution order: quick open direct build verificationarchivecomplete
141
+
142
+ After each phase completes, immediately enter next phase, no need for user input again. Within each phase, must still call corresponding Comet/OpenSpec/Superpowers skill according to above requirements.
143
+ </IMPORTANT>
144
+
145
+ ---
146
+
147
+ ## Upgrade Conditions
148
+
149
+ When the following situations occur during fix process, stop hotfix workflow, upgrade to full `/comet`:
150
+
151
+ 1. Root cause discovered involves architecture defects
152
+ 2. Fix requires new interfaces or components
153
+ 3. Impact scope expands to > 10 files
154
+ 4. Needs new capability spec
155
+
156
+ Upgrade method: On current change basis, supplement Design Doc (execute `/comet-design`), then proceed normally with full workflow.
157
+
158
+ ---
159
+
160
+ ## Exit Conditions
161
+
162
+ - Bug fixed, tests pass
163
+ - Change archived
164
+ - If spec changes, synced to main spec
165
+ - **Phase guard**: Before build → verify run `bash $COMET_GUARD <change-name> build`, before verify → archive run `bash $COMET_GUARD <change-name> verify`