con un clic
comet-hotfix
// Comet preset path: Bug fix / hotfix. Skip brainstorming, directly open → build → verify → archive. Applicable for behavior fixes, scenarios not involving new capability design.
// Comet preset path: Bug fix / hotfix. Skip brainstorming, directly open → build → verify → archive. Applicable for behavior fixes, scenarios not involving new capability design.
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 Phase 1: Open. Invoke with /comet-open. Explore ideas through OpenSpec, create change structure (proposal + design + tasks).
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-hotfix |
| description | Comet preset path: Bug fix / hotfix. Skip brainstorming, directly open → build → verify → archive. Applicable for behavior fixes, scenarios not involving new capability design. |
Quick bug fix workflow: open → build → verify → archive. Skip brainstorming and full plan, applicable for behavior fixes not involving new capability design.
Applicable conditions (all must be met):
Not applicable: If fix process discovers need for architecture adjustments, should upgrade to full /comet workflow.
Execution chain: open → build → root cause check → verify → archive. Hotfix provides default decisions for each phase: streamlined open, direct build, root cause confirmation, scale-based verification, archive after verification passes.
Locate Comet scripts before starting:
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"
Reuse Comet open capability to create change, but use hotfix defaults: do not execute openspec-explore long exploration, directly enter streamlined change creation.
Immediately execute: Use the Skill tool to load the openspec-new-change skill. Skipping this step is prohibited.
After the skill loads, follow its guidance to create streamlined artifacts:
proposal.md — problem description + root cause analysis + fix goal (no solution comparison needed)design.md — fix solution (one is enough, no multi-solution comparison needed)tasks.md — fix task listInitialize Comet state file:
bash "$COMET_STATE" init <name> hotfix
Verify initialized state:
bash "$COMET_STATE" check <name> open
Run phase guard to transition open → build:
bash "$COMET_GUARD" <change-name> open --apply
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).
Before continuing or starting changes, handle uncommitted changes through comet/reference/dirty-worktree.md. If attribution shows the fix scope exceeds hotfix, handle it through this file's "Upgrade Conditions".
Immediately execute: Execute tasks one by one according to tasks.md:
openspec/changes/<name>/tasks.md, get incomplete task listmvn spotless:apply, npm run format)- [ ] to - [x] in tasks.mdfix: <brief fix description>If fix affects existing spec acceptance scenarios:
openspec/changes/<name>/specs/<capability>/spec.md## MODIFIED Requirements sectionExecute before running build guard, ensuring the fix actually eliminates the root cause:
Upgrade conditions:
After root cause is confirmed eliminated, run phase guard to transition build → verify:
bash "$COMET_GUARD" <change-name> build --apply
State automatically updates to phase: verify, verify_result: pending, then enter verification.
Reuse /comet-verify, with comet-verify's scale assessment deciding lightweight or full verification.
Immediately execute: Use the Skill tool to load the comet-verify skill. Skipping this step is prohibited.
Small-scale hotfixes without delta spec usually meet lightweight verification conditions (≤ 3 tasks, ≤ 2 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.
After verification passes, record .comet.yaml verify_result as pass according to /comet-verify rules, must not skip this status before archiving.
Reuse /comet-archive. Must satisfy verify_result: pass in .comet.yaml before archiving.
Immediately execute: Use the Skill tool to load the comet-archive skill to archive. Skipping this step is prohibited.
If there is delta spec, sync to main spec according to comet-archive rules, and handle associated Design Doc and Plan archiving annotations.
/comet-buildExecution order: quick open → direct build → root cause check → verification → archive → complete
After each step completes, immediately enter next step. 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.
Upgrade to full /comet when any of the following conditions are met:
| Condition | Explanation |
|---|---|
| Change involves 3+ files | Exceeds single-point fix scope |
| Architecture changes | New modules, new interfaces, new dependencies |
| Database schema changes | Structural adjustments |
| Introduces new public API | Fix creates new external interface |
| Fix scope exceeds single function/module | Requires coordinated changes |
When upgrade conditions are met, must use the AskUserQuestion tool 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. Must not just output a text prompt and then continue executing.
After user confirms upgrade, must first update the workflow field before entering full flow:
bash "$COMET_STATE" set <name> workflow full
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 hotfix and report that current change has exceeded hotfix scope.
bash "$COMET_GUARD" <change-name> build --apply; before verify → archive follow /comet-verify and run bash "$COMET_GUARD" <change-name> verify --apply