@rpamis/comet 0.2.0 → 0.2.2
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/LICENSE +21 -21
- package/README.md +270 -270
- package/assets/manifest.json +21 -21
- package/assets/skills/comet/scripts/comet-archive.sh +258 -258
- package/assets/skills/comet/scripts/comet-guard.sh +7 -5
- package/assets/skills/comet/scripts/comet-state.sh +497 -496
- package/assets/skills/comet/scripts/comet-yaml-validate.sh +132 -132
- package/assets/skills/comet-archive/SKILL.md +63 -63
- package/assets/skills/comet-build/SKILL.md +153 -153
- package/assets/skills/comet-design/SKILL.md +91 -91
- package/assets/skills/comet-open/SKILL.md +70 -70
- package/assets/skills/comet-verify/SKILL.md +114 -114
- package/assets/skills-zh/comet-archive/SKILL.md +63 -63
- package/assets/skills-zh/comet-build/SKILL.md +153 -153
- package/assets/skills-zh/comet-design/SKILL.md +91 -91
- package/assets/skills-zh/comet-open/SKILL.md +70 -70
- package/assets/skills-zh/comet-verify/SKILL.md +114 -114
- package/bin/comet.js +3 -3
- package/dist/cli/index.js +10 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/core/detect.d.ts +6 -1
- package/dist/core/detect.d.ts.map +1 -1
- package/dist/core/detect.js +29 -1
- package/dist/core/detect.js.map +1 -1
- package/package.json +62 -61
- package/scripts/postinstall.js +44 -44
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: comet-build
|
|
3
|
-
description: "Comet Phase 3: Plan and Build. Invoke with /comet-build. Create plans and execute implementation through subagent-driven-development."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Comet Phase 3: Plan and Build (Build)
|
|
7
|
-
|
|
8
|
-
## Prerequisites
|
|
9
|
-
|
|
10
|
-
- Design Doc has been created (Phase 2 complete)
|
|
11
|
-
- Active change exists
|
|
12
|
-
|
|
13
|
-
## Steps
|
|
14
|
-
|
|
15
|
-
### 0. Entry State Verification (Entry Check)
|
|
16
|
-
|
|
17
|
-
Execute entry verification:
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
COMET_STATE="${COMET_STATE:-$(find . -path '*/comet/scripts/comet-state.sh' -type f -print -quit)}"
|
|
21
|
-
bash "$COMET_STATE" check <name> build
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Proceed to Step 1 after verification passes. The script outputs specific failure reasons when verification fails.
|
|
25
|
-
|
|
26
|
-
### 1. Create Plan
|
|
27
|
-
|
|
28
|
-
**Immediately execute:** Use the Skill tool to load the `superpowers:writing-plans` skill. Skipping this step is prohibited.
|
|
29
|
-
|
|
30
|
-
After the skill loads, follow its guidance to create a plan. Plan requirements:
|
|
31
|
-
- Save to `docs/superpowers/plans/YYYY-MM-DD-<feature>.md`
|
|
32
|
-
- Reference design document, break down into executable tasks
|
|
33
|
-
- **Plan file header must contain associated metadata**:
|
|
34
|
-
|
|
35
|
-
```yaml
|
|
36
|
-
---
|
|
37
|
-
change: <openspec-change-name>
|
|
38
|
-
design-doc: docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md
|
|
39
|
-
---
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### 2. Update Plan Status
|
|
43
|
-
|
|
44
|
-
Record plan path:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
bash "$COMET_STATE" set <name> plan docs/superpowers/plans/YYYY-MM-DD-feature.md
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
No manual phase update needed — guard auto-transitions when exit conditions are met.
|
|
51
|
-
|
|
52
|
-
### 3. Workspace Isolation
|
|
53
|
-
|
|
54
|
-
Plan has been written to the current branch. Before starting execution, choose workspace isolation method:
|
|
55
|
-
|
|
56
|
-
| Option | Method | Description |
|
|
57
|
-
|--------|--------|-------------|
|
|
58
|
-
| A | Create branch | Create a new branch in the current repo, simple and fast |
|
|
59
|
-
| B | Create Worktree | Isolated workspace, fully independent, suitable for parallel development |
|
|
60
|
-
|
|
61
|
-
**Recommendation rules**:
|
|
62
|
-
- Change involves ≤ 3 files → Recommend A
|
|
63
|
-
- Need parallel development, current branch has uncommitted work → Recommend B
|
|
64
|
-
|
|
65
|
-
After user selection, update `isolation` field. `isolation` only allows one of the following values:
|
|
66
|
-
|
|
67
|
-
```bash
|
|
68
|
-
bash "$COMET_STATE" set <name> isolation <value>
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
- `branch`
|
|
72
|
-
- `worktree`
|
|
73
|
-
|
|
74
|
-
**Execute isolation**:
|
|
75
|
-
|
|
76
|
-
- **branch**: Run `git checkout -b <change-name>`, subsequent work on the new branch
|
|
77
|
-
- **worktree**: Invoke `superpowers:using-git-worktrees` skill or use native `EnterWorktree` tool to create isolated workspace
|
|
78
|
-
|
|
79
|
-
After creating isolation, confirm plan file is accessible (naturally accessible with branch method; for worktree method, confirm plan has been committed).
|
|
80
|
-
|
|
81
|
-
### 4. Select Execution Method
|
|
82
|
-
|
|
83
|
-
Present plan summary to user (task count, involved modules), then ask for execution method:
|
|
84
|
-
|
|
85
|
-
| Option | Skill | Applicable Scenario |
|
|
86
|
-
|------|------|-------------------|
|
|
87
|
-
| A | `superpowers:subagent-driven-development` | Independent tasks, high complexity, requires two-phase review |
|
|
88
|
-
| B | `superpowers:executing-plans` | Simple tasks, no subagent environment, lightweight and fast |
|
|
89
|
-
|
|
90
|
-
**Recommendation rules**:
|
|
91
|
-
- Task count ≥ 3 → Recommend A
|
|
92
|
-
- Task count ≤ 2 and no cross-module dependencies → Recommend B
|
|
93
|
-
- From hotfix path → Recommend B
|
|
94
|
-
|
|
95
|
-
After user selection, update `build_mode` field. `build_mode` only allows one of the following values:
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
bash "$COMET_STATE" set <name> build_mode <value>
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
- `subagent-driven-development`
|
|
102
|
-
- `executing-plans`
|
|
103
|
-
- `direct` (only for hotfix preset use)
|
|
104
|
-
|
|
105
|
-
Then, **immediately execute:** Use the Skill tool to load the corresponding skill. Skipping this step is prohibited.
|
|
106
|
-
|
|
107
|
-
If the selected Superpowers skill is unavailable, stop the process and prompt to install or enable the corresponding skill. Do not substitute this step with normal conversation.
|
|
108
|
-
|
|
109
|
-
After the skill loads, follow its guidance to execute:
|
|
110
|
-
- Execute tasks according to plan
|
|
111
|
-
- Complete tasks.md check (`- [ ]` → `- [x]`)
|
|
112
|
-
- Commit code after each task completion
|
|
113
|
-
|
|
114
|
-
### 5. Spec Incremental Updates
|
|
115
|
-
|
|
116
|
-
When the initial spec is found incomplete during implementation, handle by scale:
|
|
117
|
-
|
|
118
|
-
| Scale | Trigger Conditions | Approach |
|
|
119
|
-
|------|-------------------|----------|
|
|
120
|
-
| Small | Missing acceptance scenarios, edge cases | Directly edit delta spec + design.md, append tasks.md tasks |
|
|
121
|
-
| Medium | Interface changes, new components, data flow changes | Re-run `superpowers:brainstorming` to update Design Doc + delta spec |
|
|
122
|
-
| Large | Brand-new capability requirements | `/opsx:new` to create independent change |
|
|
123
|
-
|
|
124
|
-
**50% Threshold Determination**: Using initial task count in tasks.md as baseline, if new tasks exceed half of that total, it's considered outside original plan scope, should consider splitting into new change.
|
|
125
|
-
|
|
126
|
-
**Principles**:
|
|
127
|
-
- Delta spec is a living document, can be modified at any time during this phase
|
|
128
|
-
- Each update should be committed with commit message explaining the change reason
|
|
129
|
-
- Do not sync to main spec in advance, sync uniformly during archiving
|
|
130
|
-
- If incremental tasks exceed 50% of initial tasks.md total task count, consider splitting into new change
|
|
131
|
-
- For small-scale incremental direct delta spec edits, note in commit message to facilitate design doc drift assessment during archiving
|
|
132
|
-
|
|
133
|
-
## Exit Conditions
|
|
134
|
-
|
|
135
|
-
- All tasks.md checked
|
|
136
|
-
- Code committed
|
|
137
|
-
- Tests pass
|
|
138
|
-
- `.comet.yaml` `phase` updated to `verify`
|
|
139
|
-
- **Phase guard**: Run `bash $COMET_GUARD <change-name> build`, allow transition only after all PASS
|
|
140
|
-
|
|
141
|
-
Before exit, run guard to auto-transition:
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
bash $COMET_GUARD <change-name> build --apply
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
State file is automatically updated to `phase: verify`, `verify_result: pending`.
|
|
148
|
-
|
|
149
|
-
## Automatic Transition
|
|
150
|
-
|
|
151
|
-
After exit conditions are met, **proceed immediately to the next phase without waiting for user input**:
|
|
152
|
-
|
|
153
|
-
> **REQUIRED NEXT SKILL:** Invoke `comet-verify` skill to enter the verification and completion phase.
|
|
1
|
+
---
|
|
2
|
+
name: comet-build
|
|
3
|
+
description: "Comet Phase 3: Plan and Build. Invoke with /comet-build. Create plans and execute implementation through subagent-driven-development."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Comet Phase 3: Plan and Build (Build)
|
|
7
|
+
|
|
8
|
+
## Prerequisites
|
|
9
|
+
|
|
10
|
+
- Design Doc has been created (Phase 2 complete)
|
|
11
|
+
- Active change exists
|
|
12
|
+
|
|
13
|
+
## Steps
|
|
14
|
+
|
|
15
|
+
### 0. Entry State Verification (Entry Check)
|
|
16
|
+
|
|
17
|
+
Execute entry verification:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
COMET_STATE="${COMET_STATE:-$(find . -path '*/comet/scripts/comet-state.sh' -type f -print -quit)}"
|
|
21
|
+
bash "$COMET_STATE" check <name> build
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Proceed to Step 1 after verification passes. The script outputs specific failure reasons when verification fails.
|
|
25
|
+
|
|
26
|
+
### 1. Create Plan
|
|
27
|
+
|
|
28
|
+
**Immediately execute:** Use the Skill tool to load the `superpowers:writing-plans` skill. Skipping this step is prohibited.
|
|
29
|
+
|
|
30
|
+
After the skill loads, follow its guidance to create a plan. Plan requirements:
|
|
31
|
+
- Save to `docs/superpowers/plans/YYYY-MM-DD-<feature>.md`
|
|
32
|
+
- Reference design document, break down into executable tasks
|
|
33
|
+
- **Plan file header must contain associated metadata**:
|
|
34
|
+
|
|
35
|
+
```yaml
|
|
36
|
+
---
|
|
37
|
+
change: <openspec-change-name>
|
|
38
|
+
design-doc: docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md
|
|
39
|
+
---
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 2. Update Plan Status
|
|
43
|
+
|
|
44
|
+
Record plan path:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
bash "$COMET_STATE" set <name> plan docs/superpowers/plans/YYYY-MM-DD-feature.md
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
No manual phase update needed — guard auto-transitions when exit conditions are met.
|
|
51
|
+
|
|
52
|
+
### 3. Workspace Isolation
|
|
53
|
+
|
|
54
|
+
Plan has been written to the current branch. Before starting execution, choose workspace isolation method:
|
|
55
|
+
|
|
56
|
+
| Option | Method | Description |
|
|
57
|
+
|--------|--------|-------------|
|
|
58
|
+
| A | Create branch | Create a new branch in the current repo, simple and fast |
|
|
59
|
+
| B | Create Worktree | Isolated workspace, fully independent, suitable for parallel development |
|
|
60
|
+
|
|
61
|
+
**Recommendation rules**:
|
|
62
|
+
- Change involves ≤ 3 files → Recommend A
|
|
63
|
+
- Need parallel development, current branch has uncommitted work → Recommend B
|
|
64
|
+
|
|
65
|
+
After user selection, update `isolation` field. `isolation` only allows one of the following values:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
bash "$COMET_STATE" set <name> isolation <value>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
- `branch`
|
|
72
|
+
- `worktree`
|
|
73
|
+
|
|
74
|
+
**Execute isolation**:
|
|
75
|
+
|
|
76
|
+
- **branch**: Run `git checkout -b <change-name>`, subsequent work on the new branch
|
|
77
|
+
- **worktree**: Invoke `superpowers:using-git-worktrees` skill or use native `EnterWorktree` tool to create isolated workspace
|
|
78
|
+
|
|
79
|
+
After creating isolation, confirm plan file is accessible (naturally accessible with branch method; for worktree method, confirm plan has been committed).
|
|
80
|
+
|
|
81
|
+
### 4. Select Execution Method
|
|
82
|
+
|
|
83
|
+
Present plan summary to user (task count, involved modules), then ask for execution method:
|
|
84
|
+
|
|
85
|
+
| Option | Skill | Applicable Scenario |
|
|
86
|
+
|------|------|-------------------|
|
|
87
|
+
| A | `superpowers:subagent-driven-development` | Independent tasks, high complexity, requires two-phase review |
|
|
88
|
+
| B | `superpowers:executing-plans` | Simple tasks, no subagent environment, lightweight and fast |
|
|
89
|
+
|
|
90
|
+
**Recommendation rules**:
|
|
91
|
+
- Task count ≥ 3 → Recommend A
|
|
92
|
+
- Task count ≤ 2 and no cross-module dependencies → Recommend B
|
|
93
|
+
- From hotfix path → Recommend B
|
|
94
|
+
|
|
95
|
+
After user selection, update `build_mode` field. `build_mode` only allows one of the following values:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
bash "$COMET_STATE" set <name> build_mode <value>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
- `subagent-driven-development`
|
|
102
|
+
- `executing-plans`
|
|
103
|
+
- `direct` (only for hotfix preset use)
|
|
104
|
+
|
|
105
|
+
Then, **immediately execute:** Use the Skill tool to load the corresponding skill. Skipping this step is prohibited.
|
|
106
|
+
|
|
107
|
+
If the selected Superpowers skill is unavailable, stop the process and prompt to install or enable the corresponding skill. Do not substitute this step with normal conversation.
|
|
108
|
+
|
|
109
|
+
After the skill loads, follow its guidance to execute:
|
|
110
|
+
- Execute tasks according to plan
|
|
111
|
+
- Complete tasks.md check (`- [ ]` → `- [x]`)
|
|
112
|
+
- Commit code after each task completion
|
|
113
|
+
|
|
114
|
+
### 5. Spec Incremental Updates
|
|
115
|
+
|
|
116
|
+
When the initial spec is found incomplete during implementation, handle by scale:
|
|
117
|
+
|
|
118
|
+
| Scale | Trigger Conditions | Approach |
|
|
119
|
+
|------|-------------------|----------|
|
|
120
|
+
| Small | Missing acceptance scenarios, edge cases | Directly edit delta spec + design.md, append tasks.md tasks |
|
|
121
|
+
| Medium | Interface changes, new components, data flow changes | Re-run `superpowers:brainstorming` to update Design Doc + delta spec |
|
|
122
|
+
| Large | Brand-new capability requirements | `/opsx:new` to create independent change |
|
|
123
|
+
|
|
124
|
+
**50% Threshold Determination**: Using initial task count in tasks.md as baseline, if new tasks exceed half of that total, it's considered outside original plan scope, should consider splitting into new change.
|
|
125
|
+
|
|
126
|
+
**Principles**:
|
|
127
|
+
- Delta spec is a living document, can be modified at any time during this phase
|
|
128
|
+
- Each update should be committed with commit message explaining the change reason
|
|
129
|
+
- Do not sync to main spec in advance, sync uniformly during archiving
|
|
130
|
+
- If incremental tasks exceed 50% of initial tasks.md total task count, consider splitting into new change
|
|
131
|
+
- For small-scale incremental direct delta spec edits, note in commit message to facilitate design doc drift assessment during archiving
|
|
132
|
+
|
|
133
|
+
## Exit Conditions
|
|
134
|
+
|
|
135
|
+
- All tasks.md checked
|
|
136
|
+
- Code committed
|
|
137
|
+
- Tests pass
|
|
138
|
+
- `.comet.yaml` `phase` updated to `verify`
|
|
139
|
+
- **Phase guard**: Run `bash $COMET_GUARD <change-name> build`, allow transition only after all PASS
|
|
140
|
+
|
|
141
|
+
Before exit, run guard to auto-transition:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
bash $COMET_GUARD <change-name> build --apply
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
State file is automatically updated to `phase: verify`, `verify_result: pending`.
|
|
148
|
+
|
|
149
|
+
## Automatic Transition
|
|
150
|
+
|
|
151
|
+
After exit conditions are met, **proceed immediately to the next phase without waiting for user input**:
|
|
152
|
+
|
|
153
|
+
> **REQUIRED NEXT SKILL:** Invoke `comet-verify` skill to enter the verification and completion phase.
|
|
@@ -1,91 +1,91 @@
|
|
|
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
|
-
Execute entry verification:
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
COMET_STATE="${COMET_STATE:-$(find . -path '*/comet/scripts/comet-state.sh' -type f -print -quit)}"
|
|
21
|
-
bash "$COMET_STATE" check <name> design
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Proceed to Step 1 after verification passes. The script outputs specific failure reasons when verification fails.
|
|
25
|
-
|
|
26
|
-
### 1a. Read Existing Context
|
|
27
|
-
|
|
28
|
-
Read `proposal.md` and `design.md` under the active change, organize core content into summaries:
|
|
29
|
-
- **Proposal summary**: goals, motivation, scope
|
|
30
|
-
- **Design summary**: architectural decisions, high-level design
|
|
31
|
-
|
|
32
|
-
### 1b. Execute Brainstorming (With Context)
|
|
33
|
-
|
|
34
|
-
**Immediately execute:** Use the Skill tool to load the `superpowers:brainstorming` skill, ARGUMENTS contains:
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
Change: <change-name>
|
|
38
|
-
Proposal summary: <proposal core content>
|
|
39
|
-
Design summary: <design.md architectural decisions>
|
|
40
|
-
Skip context exploration, proceed directly to design questioning.
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Skipping this step is prohibited, and continuing without loading this skill is prohibited.
|
|
44
|
-
|
|
45
|
-
If `superpowers:brainstorming` is unavailable, stop the process and prompt to install or enable Superpowers skills. Do not substitute this step with normal conversation.
|
|
46
|
-
|
|
47
|
-
After the skill loads, follow its guidance to produce:
|
|
48
|
-
- `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` — design document (technical RFC)
|
|
49
|
-
- `openspec/changes/<name>/specs/<capability>/spec.md` — capability specification (delta)
|
|
50
|
-
|
|
51
|
-
### 2. Update Comet State
|
|
52
|
-
|
|
53
|
-
Record design_doc path, then run guard to auto-transition:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
# Record design_doc path
|
|
57
|
-
bash "$COMET_STATE" set <name> design_doc docs/superpowers/specs/YYYY-MM-DD-topic-design.md
|
|
58
|
-
|
|
59
|
-
# Auto-transition to next phase
|
|
60
|
-
bash $COMET_GUARD <change-name> design --apply
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
State file is updated automatically. No manual editing of other fields required.
|
|
64
|
-
|
|
65
|
-
### 3. Dual Spec Division of Labor
|
|
66
|
-
|
|
67
|
-
| Spec Type | Belongs To | Location | Definition |
|
|
68
|
-
|-----------|-----------|----------|------------|
|
|
69
|
-
| Capability specification | OpenSpec | `openspec/changes/<name>/specs/` | What the system should do (requirements + acceptance scenarios) |
|
|
70
|
-
| Design document | Superpowers | `docs/superpowers/specs/` | How to build (technical architecture + implementation details) |
|
|
71
|
-
|
|
72
|
-
### 4. Document Hierarchy Confirmation
|
|
73
|
-
|
|
74
|
-
```
|
|
75
|
-
proposal.md (Phase 1) → Why + What
|
|
76
|
-
design.md (Phase 1, OpenSpec) → High-level architectural decisions
|
|
77
|
-
Design document (Phase 2, Superpowers) → Deep technical design
|
|
78
|
-
Capability specification (Phase 2, delta) → Requirements + acceptance scenarios
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Exit Conditions
|
|
82
|
-
|
|
83
|
-
- Design Doc has been created and saved
|
|
84
|
-
- Delta spec has been created if there are new capabilities
|
|
85
|
-
- **Phase guard**: Run `bash $COMET_GUARD <change-name> design`, allow transition only after all PASS
|
|
86
|
-
|
|
87
|
-
## Automatic Transition
|
|
88
|
-
|
|
89
|
-
After exit conditions are met, **proceed immediately to the next phase without waiting for user input**:
|
|
90
|
-
|
|
91
|
-
> **REQUIRED NEXT SKILL:** Invoke `comet-build` skill to enter the planning and build phase.
|
|
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
|
+
Execute entry verification:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
COMET_STATE="${COMET_STATE:-$(find . -path '*/comet/scripts/comet-state.sh' -type f -print -quit)}"
|
|
21
|
+
bash "$COMET_STATE" check <name> design
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Proceed to Step 1 after verification passes. The script outputs specific failure reasons when verification fails.
|
|
25
|
+
|
|
26
|
+
### 1a. Read Existing Context
|
|
27
|
+
|
|
28
|
+
Read `proposal.md` and `design.md` under the active change, organize core content into summaries:
|
|
29
|
+
- **Proposal summary**: goals, motivation, scope
|
|
30
|
+
- **Design summary**: architectural decisions, high-level design
|
|
31
|
+
|
|
32
|
+
### 1b. Execute Brainstorming (With Context)
|
|
33
|
+
|
|
34
|
+
**Immediately execute:** Use the Skill tool to load the `superpowers:brainstorming` skill, ARGUMENTS contains:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
Change: <change-name>
|
|
38
|
+
Proposal summary: <proposal core content>
|
|
39
|
+
Design summary: <design.md architectural decisions>
|
|
40
|
+
Skip context exploration, proceed directly to design questioning.
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Skipping this step is prohibited, and continuing without loading this skill is prohibited.
|
|
44
|
+
|
|
45
|
+
If `superpowers:brainstorming` is unavailable, stop the process and prompt to install or enable Superpowers skills. Do not substitute this step with normal conversation.
|
|
46
|
+
|
|
47
|
+
After the skill loads, follow its guidance to produce:
|
|
48
|
+
- `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` — design document (technical RFC)
|
|
49
|
+
- `openspec/changes/<name>/specs/<capability>/spec.md` — capability specification (delta)
|
|
50
|
+
|
|
51
|
+
### 2. Update Comet State
|
|
52
|
+
|
|
53
|
+
Record design_doc path, then run guard to auto-transition:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# Record design_doc path
|
|
57
|
+
bash "$COMET_STATE" set <name> design_doc docs/superpowers/specs/YYYY-MM-DD-topic-design.md
|
|
58
|
+
|
|
59
|
+
# Auto-transition to next phase
|
|
60
|
+
bash $COMET_GUARD <change-name> design --apply
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
State file is updated automatically. No manual editing of other fields required.
|
|
64
|
+
|
|
65
|
+
### 3. Dual Spec Division of Labor
|
|
66
|
+
|
|
67
|
+
| Spec Type | Belongs To | Location | Definition |
|
|
68
|
+
|-----------|-----------|----------|------------|
|
|
69
|
+
| Capability specification | OpenSpec | `openspec/changes/<name>/specs/` | What the system should do (requirements + acceptance scenarios) |
|
|
70
|
+
| Design document | Superpowers | `docs/superpowers/specs/` | How to build (technical architecture + implementation details) |
|
|
71
|
+
|
|
72
|
+
### 4. Document Hierarchy Confirmation
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
proposal.md (Phase 1) → Why + What
|
|
76
|
+
design.md (Phase 1, OpenSpec) → High-level architectural decisions
|
|
77
|
+
Design document (Phase 2, Superpowers) → Deep technical design
|
|
78
|
+
Capability specification (Phase 2, delta) → Requirements + acceptance scenarios
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Exit Conditions
|
|
82
|
+
|
|
83
|
+
- Design Doc has been created and saved
|
|
84
|
+
- Delta spec has been created if there are new capabilities
|
|
85
|
+
- **Phase guard**: Run `bash $COMET_GUARD <change-name> design`, allow transition only after all PASS
|
|
86
|
+
|
|
87
|
+
## Automatic Transition
|
|
88
|
+
|
|
89
|
+
After exit conditions are met, **proceed immediately to the next phase without waiting for user input**:
|
|
90
|
+
|
|
91
|
+
> **REQUIRED NEXT SKILL:** Invoke `comet-build` skill to enter the planning and build phase.
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: comet-open
|
|
3
|
-
description: "Comet Phase 1: Open. Invoke with /comet-open. Explore ideas through OpenSpec and create change structure (proposal + design + tasks)."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Comet Phase 1: Open
|
|
7
|
-
|
|
8
|
-
## Prerequisites
|
|
9
|
-
|
|
10
|
-
- No active change, or user wishes to create a new change
|
|
11
|
-
|
|
12
|
-
## Steps
|
|
13
|
-
|
|
14
|
-
### 0. Entry State Verification (Entry Check)
|
|
15
|
-
|
|
16
|
-
Execute entry verification:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
COMET_STATE="${COMET_STATE:-$(find . -path '*/comet/scripts/comet-state.sh' -type f -print -quit)}"
|
|
20
|
-
bash "$COMET_STATE" check <name> open
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Proceed to Step 1 after verification passes. The script outputs specific failure reasons when verification fails.
|
|
24
|
-
|
|
25
|
-
### 1. Explore Idea
|
|
26
|
-
|
|
27
|
-
**Immediately execute:** Use the Skill tool to load the `openspec-explore` skill. Skipping this step is prohibited.
|
|
28
|
-
|
|
29
|
-
After the skill loads, freely explore the problem space following its guidance.
|
|
30
|
-
|
|
31
|
-
### 2. Create Change Structure
|
|
32
|
-
|
|
33
|
-
**Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill. If user intent is unclear and needs to form a proposal first, load `openspec-propose` instead. Skipping this step is prohibited.
|
|
34
|
-
|
|
35
|
-
Confirm the following artifacts have been created:
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
openspec/changes/<name>/
|
|
39
|
-
├── .openspec.yaml
|
|
40
|
-
├── .comet.yaml
|
|
41
|
-
├── proposal.md # Why + What: problem, goals, scope
|
|
42
|
-
├── design.md # How (high-level): architectural decisions, solution selection
|
|
43
|
-
└── tasks.md # Task checklist (checkboxes)
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### 3. Initialize Comet State
|
|
47
|
-
|
|
48
|
-
Initialize Comet state file:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
bash "$COMET_STATE" init <name> full
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### 4. Content Completeness Check
|
|
55
|
-
|
|
56
|
-
Confirm the three documents have complete content:
|
|
57
|
-
- **proposal.md**: problem background, goals, scope, non-goals
|
|
58
|
-
- **design.md**: high-level architectural decisions, solution selection, data flow
|
|
59
|
-
- **tasks.md**: task list, each task has a clear description
|
|
60
|
-
|
|
61
|
-
## Exit Conditions
|
|
62
|
-
|
|
63
|
-
- proposal.md, design.md, and tasks.md are all created with complete content
|
|
64
|
-
- **Phase guard**: Run `bash $COMET_GUARD <change-name> open`, allow transition only after all PASS
|
|
65
|
-
|
|
66
|
-
## Automatic Transition
|
|
67
|
-
|
|
68
|
-
After exit conditions are met, **proceed immediately to the next phase without waiting for user input**:
|
|
69
|
-
|
|
70
|
-
> **REQUIRED NEXT SKILL:** Invoke `comet-design` skill to enter the deep design phase.
|
|
1
|
+
---
|
|
2
|
+
name: comet-open
|
|
3
|
+
description: "Comet Phase 1: Open. Invoke with /comet-open. Explore ideas through OpenSpec and create change structure (proposal + design + tasks)."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Comet Phase 1: Open
|
|
7
|
+
|
|
8
|
+
## Prerequisites
|
|
9
|
+
|
|
10
|
+
- No active change, or user wishes to create a new change
|
|
11
|
+
|
|
12
|
+
## Steps
|
|
13
|
+
|
|
14
|
+
### 0. Entry State Verification (Entry Check)
|
|
15
|
+
|
|
16
|
+
Execute entry verification:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
COMET_STATE="${COMET_STATE:-$(find . -path '*/comet/scripts/comet-state.sh' -type f -print -quit)}"
|
|
20
|
+
bash "$COMET_STATE" check <name> open
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Proceed to Step 1 after verification passes. The script outputs specific failure reasons when verification fails.
|
|
24
|
+
|
|
25
|
+
### 1. Explore Idea
|
|
26
|
+
|
|
27
|
+
**Immediately execute:** Use the Skill tool to load the `openspec-explore` skill. Skipping this step is prohibited.
|
|
28
|
+
|
|
29
|
+
After the skill loads, freely explore the problem space following its guidance.
|
|
30
|
+
|
|
31
|
+
### 2. Create Change Structure
|
|
32
|
+
|
|
33
|
+
**Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill. If user intent is unclear and needs to form a proposal first, load `openspec-propose` instead. Skipping this step is prohibited.
|
|
34
|
+
|
|
35
|
+
Confirm the following artifacts have been created:
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
openspec/changes/<name>/
|
|
39
|
+
├── .openspec.yaml
|
|
40
|
+
├── .comet.yaml
|
|
41
|
+
├── proposal.md # Why + What: problem, goals, scope
|
|
42
|
+
├── design.md # How (high-level): architectural decisions, solution selection
|
|
43
|
+
└── tasks.md # Task checklist (checkboxes)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 3. Initialize Comet State
|
|
47
|
+
|
|
48
|
+
Initialize Comet state file:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
bash "$COMET_STATE" init <name> full
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 4. Content Completeness Check
|
|
55
|
+
|
|
56
|
+
Confirm the three documents have complete content:
|
|
57
|
+
- **proposal.md**: problem background, goals, scope, non-goals
|
|
58
|
+
- **design.md**: high-level architectural decisions, solution selection, data flow
|
|
59
|
+
- **tasks.md**: task list, each task has a clear description
|
|
60
|
+
|
|
61
|
+
## Exit Conditions
|
|
62
|
+
|
|
63
|
+
- proposal.md, design.md, and tasks.md are all created with complete content
|
|
64
|
+
- **Phase guard**: Run `bash $COMET_GUARD <change-name> open`, allow transition only after all PASS
|
|
65
|
+
|
|
66
|
+
## Automatic Transition
|
|
67
|
+
|
|
68
|
+
After exit conditions are met, **proceed immediately to the next phase without waiting for user input**:
|
|
69
|
+
|
|
70
|
+
> **REQUIRED NEXT SKILL:** Invoke `comet-design` skill to enter the deep design phase.
|