@rpamis/comet 0.1.4 → 0.1.6
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 +206 -204
- package/assets/skills/comet/scripts/comet-yaml-validate.sh +4 -2
- package/assets/skills/comet-archive/SKILL.md +151 -151
- package/assets/skills/comet-build/SKILL.md +203 -161
- package/assets/skills/comet-design/SKILL.md +108 -108
- package/assets/skills/comet-hotfix/SKILL.md +167 -165
- package/assets/skills/comet-open/SKILL.md +123 -123
- package/assets/skills/comet-tweak/SKILL.md +154 -152
- package/assets/skills/comet-verify/SKILL.md +164 -164
- package/assets/skills-zh/comet/SKILL.md +206 -0
- package/assets/skills-zh/comet-archive/SKILL.md +151 -0
- package/assets/skills-zh/comet-build/SKILL.md +203 -0
- package/assets/skills-zh/comet-design/SKILL.md +108 -0
- package/assets/skills-zh/comet-hotfix/SKILL.md +167 -0
- package/assets/skills-zh/comet-open/SKILL.md +123 -0
- package/assets/skills-zh/comet-tweak/SKILL.md +154 -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,151 +1,151 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: comet-archive
|
|
3
|
-
description: "Comet
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Comet
|
|
7
|
-
|
|
8
|
-
##
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
- `openspec/changes/<name>/.comet.yaml`
|
|
13
|
-
|
|
14
|
-
##
|
|
15
|
-
|
|
16
|
-
### 0.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
1. `openspec/changes/<name>/.comet.yaml`
|
|
22
|
-
2. `phase`
|
|
23
|
-
3. `verify_result`
|
|
24
|
-
4. `archived`
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- `cat openspec/changes/<name>/.comet.yaml`
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
[HARD STOP] Entry check failed for comet-archive
|
|
33
|
-
Expected: phase=archive, verify_result=pass, archived=false|null
|
|
34
|
-
Actual: phase
|
|
35
|
-
Suggestion: Run comet-verify first, or this change was already archived.
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
### 1.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
1.
|
|
48
|
-
2.
|
|
49
|
-
3.
|
|
50
|
-
|
|
51
|
-
### 1b.
|
|
52
|
-
|
|
53
|
-
`openspec-archive-change`
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
mv openspec/changes/<name>/.comet.yaml openspec/changes/archive/YYYY-MM-DD-<name>/.comet.yaml
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
test -f openspec/changes/archive/YYYY-MM-DD-<name>/.comet.yaml
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
### 2. Delta Spec
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
```
|
|
69
|
-
openspec/changes/<name>/specs/<capability>/spec.md
|
|
70
|
-
↓
|
|
71
|
-
openspec/specs/<capability>/spec.md ←
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### 3. Design Doc & Plan
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
**3a. Design Doc
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
|
|
84
|
-
```yaml
|
|
85
|
-
---
|
|
86
|
-
archived-with: YYYY-MM-DD-<name>
|
|
87
|
-
status: superseded-by-main-spec
|
|
88
|
-
implementation-notes: |
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
-
|
|
94
|
-
|
|
95
|
-
```yaml
|
|
96
|
-
---
|
|
97
|
-
archived-with: YYYY-MM-DD-<name>
|
|
98
|
-
status: final
|
|
99
|
-
---
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**3b. Plan
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
### 4.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
```
|
|
111
|
-
openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
112
|
-
├── .openspec.yaml
|
|
113
|
-
├── .comet.yaml
|
|
114
|
-
├── proposal.md
|
|
115
|
-
├── design.md
|
|
116
|
-
├── specs/<capability>/spec.md
|
|
117
|
-
└── tasks.md
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
### 5.
|
|
121
|
-
|
|
122
|
-
Spec
|
|
123
|
-
```
|
|
124
|
-
brainstorming → delta spec →
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
##
|
|
128
|
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
- `.comet.yaml`
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
```yaml
|
|
139
|
-
phase: archive
|
|
140
|
-
archived: true
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
cat openspec/changes/archive/YYYY-MM-DD-<name>/.comet.yaml
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
##
|
|
150
|
-
|
|
151
|
-
Comet
|
|
1
|
+
---
|
|
2
|
+
name: comet-archive
|
|
3
|
+
description: "Comet Phase 5: Archive. Invoke with /comet-archive. Sync delta spec to main spec, archive change."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Comet Phase 5: Archive (Archive)
|
|
7
|
+
|
|
8
|
+
## Prerequisites
|
|
9
|
+
|
|
10
|
+
- Verification passed (Phase 4 complete)
|
|
11
|
+
- Branch handled
|
|
12
|
+
- `verify_result: pass` in `openspec/changes/<name>/.comet.yaml`
|
|
13
|
+
|
|
14
|
+
## Steps
|
|
15
|
+
|
|
16
|
+
### 0. Entry State Verification (Entry Check)
|
|
17
|
+
|
|
18
|
+
Before performing any operations, read and verify the current state:
|
|
19
|
+
|
|
20
|
+
**Checklist:**
|
|
21
|
+
1. `openspec/changes/<name>/.comet.yaml` exists
|
|
22
|
+
2. `phase` field value is `"archive"`
|
|
23
|
+
3. `verify_result` field value is `"pass"`
|
|
24
|
+
4. `archived` field is `"false"` or null (not yet archived)
|
|
25
|
+
|
|
26
|
+
**Verification method:**
|
|
27
|
+
- `cat openspec/changes/<name>/.comet.yaml` to read all fields
|
|
28
|
+
- If `verify_result` is not `"pass"`, must complete verification first
|
|
29
|
+
|
|
30
|
+
**Failure output:**
|
|
31
|
+
```
|
|
32
|
+
[HARD STOP] Entry check failed for comet-archive
|
|
33
|
+
Expected: phase=archive, verify_result=pass, archived=false|null
|
|
34
|
+
Actual: phase=<actual-value>, verify_result=<actual-value>, archived=<actual-value>
|
|
35
|
+
Suggestion: Run comet-verify first, or this change was already archived.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Proceed to Step 1 only after verification passes.
|
|
39
|
+
|
|
40
|
+
### 1. Execute Archive
|
|
41
|
+
|
|
42
|
+
Before archiving, if `verify_result` is not `pass`, stop archiving and return to `/comet-verify`.
|
|
43
|
+
|
|
44
|
+
**Immediately execute:** Use the Skill tool to load the `openspec-archive-change` skill. Skipping this step is prohibited.
|
|
45
|
+
|
|
46
|
+
After the skill loads, follow its guidance to archive. Automatic checks:
|
|
47
|
+
1. Artifact completion status (proposal, design, specs, tasks)
|
|
48
|
+
2. All tasks marked `[x]`
|
|
49
|
+
3. Delta specs sync status
|
|
50
|
+
|
|
51
|
+
### 1b. Move Comet State File
|
|
52
|
+
|
|
53
|
+
`openspec-archive-change` is not aware of `.comet.yaml`, so Comet needs to move this file itself after OpenSpec archiving completes:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
mv openspec/changes/<name>/.comet.yaml openspec/changes/archive/YYYY-MM-DD-<name>/.comet.yaml
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
【Write verification】After move completion, must verify:
|
|
60
|
+
test -f openspec/changes/archive/YYYY-MM-DD-<name>/.comet.yaml
|
|
61
|
+
Confirm .comet.yaml exists in archive directory
|
|
62
|
+
If file is not at expected location, check if mv command executed successfully.
|
|
63
|
+
|
|
64
|
+
### 2. Delta Spec Sync
|
|
65
|
+
|
|
66
|
+
Sync delta specs to main specs during archiving:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
openspec/changes/<name>/specs/<capability>/spec.md
|
|
70
|
+
↓ sync
|
|
71
|
+
openspec/specs/<capability>/spec.md ← main spec (persistent)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### 3. Design Doc & Plan Handling
|
|
75
|
+
|
|
76
|
+
Handle associated files under `docs/superpowers/` during archiving. If target file already has YAML frontmatter, merge archive fields into existing frontmatter; if no frontmatter, create new frontmatter.
|
|
77
|
+
|
|
78
|
+
**3a. Design Doc Consistency Annotation**
|
|
79
|
+
|
|
80
|
+
Find design documents associated with current change in `docs/superpowers/specs/`:
|
|
81
|
+
- Compare delta spec final version with design doc content
|
|
82
|
+
- If there are discrepancies (incremental spec modifications during implementation), set the following metadata in design doc's YAML frontmatter:
|
|
83
|
+
|
|
84
|
+
```yaml
|
|
85
|
+
---
|
|
86
|
+
archived-with: YYYY-MM-DD-<name>
|
|
87
|
+
status: superseded-by-main-spec
|
|
88
|
+
implementation-notes: |
|
|
89
|
+
<briefly describe key changes deviating from original design during implementation>
|
|
90
|
+
---
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
- If completely consistent, only set:
|
|
94
|
+
|
|
95
|
+
```yaml
|
|
96
|
+
---
|
|
97
|
+
archived-with: YYYY-MM-DD-<name>
|
|
98
|
+
status: final
|
|
99
|
+
---
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**3b. Plan Association Annotation**
|
|
103
|
+
|
|
104
|
+
Find implementation plans associated with current change in `docs/superpowers/plans/`, set the same `archived-with` metadata in YAML frontmatter.
|
|
105
|
+
|
|
106
|
+
### 4. Archive Directory
|
|
107
|
+
|
|
108
|
+
Change moves to archive directory:
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
112
|
+
├── .openspec.yaml
|
|
113
|
+
├── .comet.yaml
|
|
114
|
+
├── proposal.md
|
|
115
|
+
├── design.md
|
|
116
|
+
├── specs/<capability>/spec.md
|
|
117
|
+
└── tasks.md
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### 5. Lifecycle Closed Loop
|
|
121
|
+
|
|
122
|
+
Spec lifecycle completes here:
|
|
123
|
+
```
|
|
124
|
+
brainstorming → delta spec → implementation (incremental modifications) → verification → main spec sync → design doc annotation → archive
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Exit Conditions
|
|
128
|
+
|
|
129
|
+
- Change archived (removed from active list)
|
|
130
|
+
- Main specs updated (delta → main sync complete)
|
|
131
|
+
- Associated design doc annotated with archive status
|
|
132
|
+
- Associated plan annotated with archive status
|
|
133
|
+
- `.comet.yaml` `archived` recorded as `true`
|
|
134
|
+
- **Phase guard**: Run `bash $COMET_GUARD <change-name> archive`, confirm archive complete after all PASS
|
|
135
|
+
|
|
136
|
+
After archiving completes, update `.comet.yaml` in archive directory:
|
|
137
|
+
|
|
138
|
+
```yaml
|
|
139
|
+
phase: archive
|
|
140
|
+
archived: true
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
【Write verification】After update completion, must verify:
|
|
144
|
+
cat openspec/changes/archive/YYYY-MM-DD-<name>/.comet.yaml
|
|
145
|
+
Confirm phase line value is "archive"
|
|
146
|
+
Confirm archived line value is "true"
|
|
147
|
+
If any field does not match, retry write then verify again. Maximum 2 retries, report error and terminate if still fails.
|
|
148
|
+
|
|
149
|
+
## Complete
|
|
150
|
+
|
|
151
|
+
Comet workflow complete. To start new work, invoke `/comet` or `/comet-open`.
|