with one click
comet-open
// Comet Phase 1: Open. Invoke with /comet-open. Explore ideas through OpenSpec, create change structure (proposal + design + tasks).
// Comet Phase 1: Open. Invoke with /comet-open. Explore ideas through OpenSpec, create change structure (proposal + design + tasks).
Comet Phase 3: Plan and Build. Invoke with /comet-build. Create plans and select execution method (subagent or direct) for implementation.
Comet Phase 2: Deep Design. Invoke with /comet-design. Produce Design Doc and delta spec through brainstorming.
Comet preset path: Bug fix / hotfix. Skip brainstorming, directly open ā build ā verify ā archive. Applicable for behavior fixes, scenarios not involving new capability design.
Comet ā OpenSpec + Superpowers dual-star development workflow. Start with /comet for automatic phase detection and dispatch to subcommands. Five phases: open ā design ā build ā verify ā archive.
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.
Comet Phase 4: Verify and Close. Invoke with /comet-verify. Verify implementation matches design, handle development branch.
| name | comet-open |
| description | Comet Phase 1: Open. Invoke with /comet-open. Explore ideas through OpenSpec, create change structure (proposal + design + tasks). |
Immediately execute: Use the Skill tool to load the openspec-explore skill. Skipping this step is prohibited.
After the skill loads, freely explore the problem space following its guidance.
Immediately execute: Use the Skill tool to load the openspec-new-change skill. If the user's intent is unclear and needs proposal formation first, load openspec-propose instead. Skipping this step is prohibited.
Naming and scope guard: Change name must use a user-specified or AskUserQuestion-confirmed name ā must not auto-generate or infer. Change scope must match the user's description ā must not expand or narrow it independently.
Confirm the following artifacts have been created:
openspec/changes/<name>/
āāā .openspec.yaml
āāā .comet.yaml
āāā proposal.md # Why + What: problem, goals, scope
āāā design.md # How (high-level): architecture decisions, approach selection
āāā tasks.md # Task checklist (checkboxes)
Create .comet.yaml state file:
COMET_ENV="${COMET_ENV:-$(find . "$HOME"/.*/skills "$HOME/.config" "$HOME/.gemini" -path '*/comet/scripts/comet-env.sh' -type f -print -quit 2>/dev/null)}"
if [ -z "$COMET_ENV" ]; then
echo "ERROR: comet-env.sh not found. Ensure the comet skill is installed." >&2
return 1
fi
. "$COMET_ENV"
if [ -z "$COMET_STATE" ] || [ -z "$COMET_GUARD" ]; then
echo "ERROR: Comet scripts not found. Ensure the comet skill is installed." >&2
return 1
fi
bash "$COMET_STATE" init <name> full
Verify state machine has been correctly initialized:
bash "$COMET_STATE" check <name> open
Proceed to Step 4 after verification passes. The script outputs specific failure reasons when verification fails.
Idempotency: All open phase operations can be safely re-executed. If .comet.yaml is already at phase: open and all three artifact files exist, skip completed steps and continue from the first missing step.
Confirm the three documents have complete content:
File existence verification: Confirm all three file paths exist and are non-empty. If any file is missing or empty, must not enter Step 5 or execute phase guard ā return to creation step to fill the gap.
After the three documents are created and content completeness check passes, must use the AskUserQuestion tool to pause and wait for user confirmation. Must not execute phase guard or auto-transition before user confirmation.
AskUserQuestion must be presented as a single-select question with the following summary and options:
Summary content:
Options:
After user selects "Confirm", proceed to exit conditions. When user selects "Needs adjustment", modify the corresponding files per their notes, then re-use AskUserQuestion to request confirmation.
bash "$COMET_GUARD" <change-name> open --apply; after all PASS, auto-transitions to next phaseMust use --apply before exit, otherwise .comet.yaml remains at phase: open and the next phase entry check will fail.
bash "$COMET_GUARD" <change-name> open --apply
Full workflow auto-transitions to phase: design; hotfix/tweak presets auto-transition to phase: build.
After user confirmation and exit conditions are met, auto-transition to next phase:
REQUIRED NEXT SKILL (full workflow): Invoke
comet-designskill to enter the deep design phase.Hotfix/tweak presets are controlled by their corresponding preset skill for subsequent transitions (phase goes directly to build), and do not go through this section.