@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.
- package/README.md +5 -4
- package/assets/manifest.json +19 -15
- package/assets/skills/comet/SKILL.md +204 -204
- package/assets/skills/comet-archive/SKILL.md +151 -151
- package/assets/skills/comet-build/SKILL.md +161 -161
- package/assets/skills/comet-design/SKILL.md +108 -108
- package/assets/skills/comet-hotfix/SKILL.md +165 -165
- package/assets/skills/comet-open/SKILL.md +123 -123
- package/assets/skills/comet-tweak/SKILL.md +152 -152
- package/assets/skills/comet-verify/SKILL.md +164 -164
- package/assets/skills-zh/comet/SKILL.md +204 -0
- package/assets/skills-zh/comet-archive/SKILL.md +151 -0
- package/assets/skills-zh/comet-build/SKILL.md +161 -0
- package/assets/skills-zh/comet-design/SKILL.md +108 -0
- package/assets/skills-zh/comet-hotfix/SKILL.md +165 -0
- package/assets/skills-zh/comet-open/SKILL.md +123 -0
- package/assets/skills-zh/comet-tweak/SKILL.md +152 -0
- package/assets/skills-zh/comet-verify/SKILL.md +164 -0
- package/dist/core/init.d.ts.map +1 -1
- package/dist/core/init.js +32 -3
- package/dist/core/init.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: comet-design
|
|
3
|
-
description: "Comet
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Comet
|
|
7
|
-
|
|
8
|
-
##
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
### 0.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
1. `openspec/changes/<name>/.comet.yaml`
|
|
21
|
-
2. `phase`
|
|
22
|
-
3. `workflow`
|
|
23
|
-
4. `design_doc`
|
|
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
|
|
37
|
-
Suggestion: Run comet-open first, or check if .comet.yaml was modified out of sequence.
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
### 1a.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
- **
|
|
46
|
-
- **design
|
|
47
|
-
|
|
48
|
-
### 1b.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
Change: <change-name>
|
|
54
|
-
Proposal
|
|
55
|
-
Design
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` —
|
|
65
|
-
- `openspec/changes/<name>/specs/<capability>/spec.md` —
|
|
66
|
-
|
|
67
|
-
### 2.
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### 3.
|
|
83
|
-
|
|
84
|
-
| Spec
|
|
85
|
-
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
89
|
-
### 4.
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
proposal.md
|
|
93
|
-
design.md
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
##
|
|
99
|
-
|
|
100
|
-
- Design Doc
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
##
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
> **REQUIRED NEXT 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
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Comet
|
|
7
|
-
|
|
8
|
-
Hotfix
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
1.
|
|
14
|
-
2.
|
|
15
|
-
3.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
##
|
|
22
|
-
|
|
23
|
-
### 0.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
1. `openspec/changes/<name>/`
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
- `test -d openspec/changes/<name>`
|
|
32
|
-
-
|
|
33
|
-
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
### 1.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
- `proposal.md` —
|
|
55
|
-
- `design.md` —
|
|
56
|
-
- `tasks.md` —
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
### 2.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
1.
|
|
93
|
-
2.
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
3.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
### 3.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
1.
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### 4.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
135
|
-
##
|
|
136
|
-
|
|
137
|
-
<IMPORTANT>
|
|
138
|
-
Hotfix
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
</IMPORTANT>
|
|
144
|
-
|
|
145
|
-
---
|
|
146
|
-
|
|
147
|
-
##
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
1.
|
|
152
|
-
2.
|
|
153
|
-
3.
|
|
154
|
-
4.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
---
|
|
159
|
-
|
|
160
|
-
##
|
|
161
|
-
|
|
162
|
-
- Bug
|
|
163
|
-
-
|
|
164
|
-
-
|
|
165
|
-
-
|
|
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 → verification → archive → complete
|
|
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`
|