@rpamis/comet 0.3.6 → 0.3.8
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 +575 -443
- package/assets/manifest.json +41 -24
- package/assets/skills/comet/SKILL.md +282 -301
- package/assets/skills/comet/reference/auto-transition.md +27 -0
- package/assets/skills/comet/reference/comet-yaml-fields.md +68 -0
- package/assets/skills/comet/reference/context-recovery.md +35 -0
- package/assets/skills/comet/reference/debug-gate.md +17 -0
- package/assets/skills/comet/reference/decision-point.md +20 -0
- package/assets/skills/comet/reference/dirty-worktree.md +1 -0
- package/assets/skills/comet/reference/file-structure.md +28 -0
- package/assets/skills/comet/reference/subagent-dispatch.md +113 -0
- package/assets/skills/comet/rules/comet-phase-guard.en.md +99 -0
- package/assets/skills/comet/rules/comet-phase-guard.md +99 -0
- package/assets/skills/comet/scripts/comet-archive.sh +71 -55
- package/assets/skills/comet/scripts/comet-guard.sh +174 -18
- package/assets/skills/comet/scripts/comet-handoff.sh +133 -6
- package/assets/skills/comet/scripts/comet-hook-guard.sh +260 -0
- package/assets/skills/comet/scripts/comet-state.sh +362 -25
- package/assets/skills/comet/scripts/comet-yaml-validate.sh +24 -1
- package/assets/skills/comet-archive/SKILL.md +100 -73
- package/assets/skills/comet-build/SKILL.md +304 -221
- package/assets/skills/comet-design/SKILL.md +263 -166
- package/assets/skills/comet-hotfix/SKILL.md +204 -169
- package/assets/skills/comet-open/SKILL.md +203 -113
- package/assets/skills/comet-tweak/SKILL.md +180 -154
- package/assets/skills/comet-verify/SKILL.md +234 -201
- package/assets/skills-zh/comet/SKILL.md +269 -301
- package/assets/skills-zh/comet/reference/auto-transition.md +27 -0
- package/assets/skills-zh/comet/reference/comet-yaml-fields.md +68 -0
- package/assets/skills-zh/comet/reference/context-recovery.md +35 -0
- package/assets/skills-zh/comet/reference/debug-gate.md +17 -0
- package/assets/skills-zh/comet/reference/decision-point.md +20 -0
- package/assets/skills-zh/comet/reference/dirty-worktree.md +2 -1
- package/assets/skills-zh/comet/reference/file-structure.md +28 -0
- package/assets/skills-zh/comet/reference/subagent-dispatch.md +113 -0
- package/assets/skills-zh/comet-archive/SKILL.md +100 -73
- package/assets/skills-zh/comet-build/SKILL.md +304 -221
- package/assets/skills-zh/comet-design/SKILL.md +264 -166
- package/assets/skills-zh/comet-hotfix/SKILL.md +200 -169
- package/assets/skills-zh/comet-open/SKILL.md +203 -113
- package/assets/skills-zh/comet-tweak/SKILL.md +176 -154
- package/assets/skills-zh/comet-verify/SKILL.md +232 -201
- package/dist/cli/index.js +19 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +22 -0
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/init.d.ts +5 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +64 -9
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/uninstall.d.ts +9 -0
- package/dist/commands/uninstall.d.ts.map +1 -0
- package/dist/commands/uninstall.js +113 -0
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/commands/update.d.ts +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +120 -32
- package/dist/commands/update.js.map +1 -1
- package/dist/core/codegraph.d.ts +4 -0
- package/dist/core/codegraph.d.ts.map +1 -0
- package/dist/core/codegraph.js +63 -0
- package/dist/core/codegraph.js.map +1 -0
- package/dist/core/detect.d.ts +8 -1
- package/dist/core/detect.d.ts.map +1 -1
- package/dist/core/detect.js +41 -2
- package/dist/core/detect.js.map +1 -1
- package/dist/core/openspec.d.ts +1 -1
- package/dist/core/openspec.d.ts.map +1 -1
- package/dist/core/openspec.js +40 -17
- package/dist/core/openspec.js.map +1 -1
- package/dist/core/platforms.d.ts +10 -0
- package/dist/core/platforms.d.ts.map +1 -1
- package/dist/core/platforms.js +177 -16
- package/dist/core/platforms.js.map +1 -1
- package/dist/core/skills.d.ts +36 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +451 -15
- package/dist/core/skills.js.map +1 -1
- package/dist/core/superpowers.d.ts.map +1 -1
- package/dist/core/superpowers.js +1 -0
- package/dist/core/superpowers.js.map +1 -1
- package/dist/core/uninstall.d.ts +28 -0
- package/dist/core/uninstall.d.ts.map +1 -0
- package/dist/core/uninstall.js +421 -0
- package/dist/core/uninstall.js.map +1 -0
- package/dist/core/version.d.ts +31 -0
- package/dist/core/version.d.ts.map +1 -0
- package/dist/core/version.js +111 -0
- package/dist/core/version.js.map +1 -0
- package/dist/utils/file-system.d.ts +23 -0
- package/dist/utils/file-system.d.ts.map +1 -1
- package/dist/utils/file-system.js +100 -5
- package/dist/utils/file-system.js.map +1 -1
- package/package.json +69 -62
|
@@ -1,154 +1,180 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: comet-tweak
|
|
3
|
-
description: "Comet preset path: Non-bug small changes (tweak). Skip brainstorming and full plan, directly open → lightweight build → light verify → archive. Applicable for copy, configuration, documentation or prompt local optimization."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Comet Preset Path: Tweak
|
|
7
|
-
|
|
8
|
-
Tweak is a preset workflow of Comet's five-phase capabilities, not an independent parallel process. It reuses open, build, verify, archive capabilities, only skipping brainstorming and full plan.
|
|
9
|
-
|
|
10
|
-
Applicable for non-bug small scope changes, such as copy adjustment, configuration adjustment, documentation or prompt local optimization.
|
|
11
|
-
|
|
12
|
-
**Applicable conditions** (all must be met):
|
|
13
|
-
1. No new capability
|
|
14
|
-
2. No architecture changes
|
|
15
|
-
3. No interface changes
|
|
16
|
-
4. Typically no more than 3 tasks
|
|
17
|
-
|
|
18
|
-
**Not applicable**: If change process discovers need for capability, architecture or interface adjustments, should upgrade to full `/comet` workflow.
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## Process (preset workflow, 4 phases)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
1
|
+
---
|
|
2
|
+
name: comet-tweak
|
|
3
|
+
description: "Comet preset path: Non-bug small changes (tweak). Skip brainstorming and full plan, directly open → lightweight build → light verify → archive. Applicable for copy, configuration, documentation or prompt local optimization."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Comet Preset Path: Tweak
|
|
7
|
+
|
|
8
|
+
Tweak is a preset workflow of Comet's five-phase capabilities, not an independent parallel process. It reuses open, build, verify, archive capabilities, only skipping brainstorming and full plan.
|
|
9
|
+
|
|
10
|
+
Applicable for non-bug small scope changes, such as copy adjustment, configuration adjustment, documentation or prompt local optimization.
|
|
11
|
+
|
|
12
|
+
**Applicable conditions** (all must be met):
|
|
13
|
+
1. No new capability
|
|
14
|
+
2. No architecture changes
|
|
15
|
+
3. No interface changes
|
|
16
|
+
4. Typically no more than 3 tasks (file count constraint see upgrade conditions below)
|
|
17
|
+
|
|
18
|
+
**Not applicable**: If change process discovers need for capability, architecture or interface adjustments, should upgrade to full `/comet` workflow.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Process (preset workflow, 4 phases)
|
|
23
|
+
|
|
24
|
+
### 0. Output Language Constraint
|
|
25
|
+
|
|
26
|
+
Streamlined OpenSpec artifacts must use the language of the user request that triggered this workflow.
|
|
27
|
+
|
|
28
|
+
Execution chain: open → lightweight build → light verify → archive. Tweak provides default decisions for each phase: streamlined open, lightweight build, lightweight verification, and final archive confirmation after verification passes.
|
|
29
|
+
|
|
30
|
+
Locate Comet scripts before starting:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
COMET_ENV="${COMET_ENV:-$(find . "$HOME"/.*/skills "$HOME/.config" "$HOME/.gemini" -path '*/comet/scripts/comet-env.sh' -type f -print -quit 2>/dev/null)}"
|
|
34
|
+
if [ -z "$COMET_ENV" ]; then
|
|
35
|
+
echo "ERROR: comet-env.sh not found. Ensure the comet skill is installed." >&2
|
|
36
|
+
return 1
|
|
37
|
+
fi
|
|
38
|
+
. "$COMET_ENV"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 1. Quick Open (preset open)
|
|
42
|
+
|
|
43
|
+
Reuse Comet open capability to create change, but use tweak defaults: do not execute `openspec-explore` long exploration, directly enter streamlined change creation.
|
|
44
|
+
|
|
45
|
+
**Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill. Skipping this step is prohibited.
|
|
46
|
+
|
|
47
|
+
After the skill loads, follow its guidance to create streamlined artifacts:
|
|
48
|
+
- `proposal.md` — change motivation + goals + scope
|
|
49
|
+
- `design.md` — brief implementation description (no solution comparison needed)
|
|
50
|
+
- `tasks.md` — no more than 3 tasks
|
|
51
|
+
- **No delta spec needed** (unless change modifies existing spec acceptance scenarios; once delta spec is needed, upgrade to full `/comet`)
|
|
52
|
+
|
|
53
|
+
Initialize Comet state file:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
"$COMET_BASH" "$COMET_STATE" init <name> tweak
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Verify initialized state:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
"$COMET_BASH" "$COMET_STATE" check <name> open
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Run phase guard to transition open → build:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
"$COMET_BASH" "$COMET_GUARD" <change-name> open --apply
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 2. Lightweight Build (preset build)
|
|
72
|
+
|
|
73
|
+
Use tweak defaults: `build_mode: direct`. Skip Superpowers `brainstorming` and `writing-plans`.
|
|
74
|
+
|
|
75
|
+
Before continuing or starting changes, handle uncommitted changes through `comet/reference/dirty-worktree.md`. If attribution shows scope exceeds tweak, handle it through this file's "Upgrade Conditions".
|
|
76
|
+
|
|
77
|
+
**Immediately execute:** Execute tasks one by one according to tasks.md:
|
|
78
|
+
|
|
79
|
+
1. Read `openspec/changes/<name>/tasks.md`, get incomplete task list
|
|
80
|
+
2. For each incomplete task:
|
|
81
|
+
- Modify target files according to task description
|
|
82
|
+
- Run project formatter (e.g., `mvn spotless:apply`, `npm run format`)
|
|
83
|
+
- Run related tests to confirm pass
|
|
84
|
+
- Check corresponding `- [ ]` to `- [x]` in tasks.md
|
|
85
|
+
- Commit code, commit message format: `tweak: <brief change description>`
|
|
86
|
+
3. After all tasks complete, explicitly run relevant project tests and build commands
|
|
87
|
+
4. Run phase guard to transition build → verify:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
"$COMET_BASH" "$COMET_GUARD" <change-name> build --apply
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
State automatically updates to `phase: verify`, `verify_result: pending`, then enter verification.
|
|
94
|
+
|
|
95
|
+
During tweak execution, whenever running programs, tests, builds, or manual verification results in crashes, abnormal behavior, test failures, or build failures, you must use the Skill tool to load the Superpowers `systematic-debugging` skill. Do not propose or implement source code fixes before completing root cause investigation.
|
|
96
|
+
|
|
97
|
+
For specific investigation, minimal failing test, fix verification, and keeping the current change verification loop, follow `comet/reference/debug-gate.md`.
|
|
98
|
+
|
|
99
|
+
### 3. Lightweight Verification (preset verify)
|
|
100
|
+
|
|
101
|
+
Reuse `/comet-verify`. Tweak must maintain lightweight verification conditions: ≤ 3 tasks, ≤ 4 files, no delta spec, no new capability.
|
|
102
|
+
|
|
103
|
+
**Immediately execute:** Use the Skill tool to load the `comet-verify` skill. Skipping this step is prohibited.
|
|
104
|
+
|
|
105
|
+
If scale assessment enters full verification path, stop tweak, handle per upgrade conditions blocking confirmation.
|
|
106
|
+
|
|
107
|
+
After verification passes, record `.comet.yaml` `verify_result` as `pass` according to `/comet-verify` rules, must not skip this status before archiving. After verification passes, still enter `/comet-archive`'s final archive confirmation; do not automatically run the archive script.
|
|
108
|
+
|
|
109
|
+
### 4. Archive (preset archive)
|
|
110
|
+
|
|
111
|
+
Reuse `/comet-archive`. Must satisfy `verify_result: pass` in `.comet.yaml` before archiving, and wait for `/comet-archive`'s final archive confirmation.
|
|
112
|
+
|
|
113
|
+
**Immediately execute:** Use the Skill tool to load the `comet-archive` skill to archive. Skipping this step is prohibited.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Continuous Execution Mode
|
|
118
|
+
|
|
119
|
+
<IMPORTANT>
|
|
120
|
+
Tweak workflow is **one-time continuous execution**. After invoking `/comet-tweak`, agent must automatically advance through tweak steps, without pausing to wait for user input mid-way.
|
|
121
|
+
|
|
122
|
+
Exception: when `.comet.yaml` has `auto_transition: false`, after each phase guard advances `phase`, do not auto-invoke the next skill. In this case, use `"$COMET_BASH" "$COMET_STATE" next <name>` output and pause for manual continuation as instructed.
|
|
123
|
+
|
|
124
|
+
The following situations must pause and wait for user confirmation:
|
|
125
|
+
|
|
126
|
+
1. Encountering upgrade conditions (see "Upgrade Conditions" section). **Must use the current platform's available user input/confirmation mechanism to pause and wait for the user to explicitly confirm** upgrading to full workflow
|
|
127
|
+
2. verify phase (comet-verify) verification-failure and branch-handling decisions
|
|
128
|
+
3. Final archive confirmation (before comet-archive runs the archive script)
|
|
129
|
+
|
|
130
|
+
Execution order: quick open → lightweight build → lightweight verification → archive → complete
|
|
131
|
+
|
|
132
|
+
After each phase completes, immediately enter next phase. Within each phase, must still call corresponding Comet/OpenSpec/Superpowers skill according to above requirements; if the called skill has its own user decision points, follow that skill's rules.
|
|
133
|
+
</IMPORTANT>
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Upgrade Conditions
|
|
138
|
+
|
|
139
|
+
Upgrade to full `/comet` when **any** of the following conditions are met:
|
|
140
|
+
|
|
141
|
+
| Condition | Explanation |
|
|
142
|
+
|-----------|-------------|
|
|
143
|
+
| Change involves **5+ files** | Exceeds small change scope |
|
|
144
|
+
| Cross-module coordination required | Requires cross-component coordination |
|
|
145
|
+
| **5+** new test cases needed | Change complexity rising |
|
|
146
|
+
| Config item additions or deletions | Config changes beyond value modifications |
|
|
147
|
+
| New capability needed | Exceeds local optimization |
|
|
148
|
+
| Delta spec needed | Affects existing specs |
|
|
149
|
+
|
|
150
|
+
When upgrade conditions are met, **must follow the `comet/reference/decision-point.md` protocol to pause and wait for the user to explicitly confirm** upgrading to the full `/comet` workflow. Do not directly enter `/comet-design`, and do not automatically supplement Design Doc.
|
|
151
|
+
|
|
152
|
+
After user confirms upgrade, **must first update the workflow and phase fields** before entering full flow:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
"$COMET_BASH" "$COMET_STATE" set <name> workflow full
|
|
156
|
+
"$COMET_BASH" "$COMET_STATE" set <name> phase design
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Then on current change basis, supplement Design Doc: **Immediately use the Skill tool to load the `comet-design` skill**, proceed normally with full workflow. If user does not confirm upgrade, stop tweak and report that current change has exceeded tweak scope.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## Exit Conditions
|
|
164
|
+
|
|
165
|
+
- Small change completed, tests pass
|
|
166
|
+
- Change archived
|
|
167
|
+
- No new capability, architecture adjustments or interface changes
|
|
168
|
+
- **Phase guard**: Before build → verify run `"$COMET_BASH" "$COMET_GUARD" <change-name> build --apply`; before verify → archive follow `/comet-verify` and run `"$COMET_BASH" "$COMET_GUARD" <change-name> verify --apply`
|
|
169
|
+
|
|
170
|
+
## Automatic Handoff to Next Phase
|
|
171
|
+
|
|
172
|
+
Follow `comet/reference/auto-transition.md`. Key command:
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
"$COMET_BASH" "$COMET_STATE" next <name>
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
- `NEXT: auto` → invoke the skill pointed to by `SKILL` to continue tweak workflow (`phase: build` returns `comet-tweak`, `verify` returns `comet-verify`, `archive` returns `comet-archive`)
|
|
179
|
+
- `NEXT: manual` → do not invoke the next skill; prompt user to manually run `/<SKILL>` per `HINT`
|
|
180
|
+
- `NEXT: done` → workflow is complete, no further action needed
|