
Comet Archive
Comet Phase 5: Archive.
Install
npx skills add rpamis/comet --skill comet-archive -g -a claude-code -y- Repository
- rpamis/comet3.3k
- Category
- Engineering
- Updated
- 3d ago
- License
- MIT
- Context cost
- Lightabout 1,152 tokens
- Runs scripts
- No, instructions only
What it does
Comet Phase 5: Archive. Invoke with /comet-archive. Merge delta specs into main specs with OpenSpec semantics, archive change.
Comet Phase 5: Archive (Archive)
Prerequisites
- Verification passed (Phase 4 complete)
- Branch handled
verify_result: passinopenspec/changes/<name>/.comet.yaml
Steps
0. Output Language Constraint
Archive summaries and lifecycle closure notes must use the language of the user request that triggered this workflow.
0. Entry State Verification (Entry Check)
Execute entry verification:
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"
"$COMET_BASH" "$COMET_STATE" check <name> archive
Proceed to Step 1 after verification passes. The script outputs specific failure reasons when verification fails.
1. Final Archive Confirmation (Blocking Point)
After entry verification passes, must follow the comet/reference/decision-point.md protocol to pause and wait for the user to confirm whether to archive immediately. Must not run "$COMET_BASH" "$COMET_ARCHIVE" "<change-name>" before user confirmation.
Before confirmation, show the user a brief summary:
- Change name
- Verification report path and result
- Branch handling status
- Irreversible actions this archive will perform: merge main specs with OpenSpec delta semantics, annotate design doc / plan, and move the change to the archive directory
