You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
日本語の概要は準備中です。原文の説明を表示しています。
Archive and deliver a Classic change. Use when the user invokes /comet-archive or Classic Runtime enters Archive or resumes delivery.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
After entry returns layout, follow comet-classic/reference/classic-layout.md to bind each logical root to its directory. Do not reload the protocol if it is already in context. Use the adapter for OpenSpec CLI calls and the bound <classic-*> roots for paths; do not run an extra root show first.
<classic-change-dir>/.comet.yaml records verify_result: pass.Use configuration.language from this invocation's entry result for the archive summary and completion message. Do not query the language separately.
Use the supported comet CLI in comet-classic/reference/scripts.md for these checks. When resuming from any entry, first follow comet-classic/reference/context-recovery.md:
comet state select <change-name>
comet state check <name> archive --json
When the previous phase's guard already returned this phase's state, continue from that state and agent.continuation without repeating select/check; run the entry checks above only when resuming, after workspace changes, or after external state changes. Continue from returned layout, configuration, nextAction, and the delivery summary. After context loss, read details according to context-recovery.md. If authorization is still valid and the delivery target is unchanged, continue only unfinished actions without asking again. Handle the specific cause on failure.
If select/check returns BLOCKED — or a branch-binding ERROR — because bound_branch differs from the current branch, pause under comet-classic/reference/decision-point.md. Offer a single choice: return to the bound branch and rerun entry checks, or, after the user explicitly confirms that the current branch should take over this change, run comet state rebind <change-name> and rerun entry checks. Do not switch or rebind branches yourself.
Read configuration.isolation and delivery from entry. If valid authorization is absent or the delivery target changed, pause under decision-point.md and ask the user to confirm archive and delivery. If authorization exists, let Runtime verify actual Git state and delivery progress, then follow nextAction. Do not infer archive, push, or PR authorization solely from branch_status: handled. Do not run archive-confirm or archive before authorization.
Before asking, show a short summary:
For a Git coordination root, present a single-choice question containing every option below. Use this table in text fallback mode. With structured questions, use “Method” as the short label and “Effect” as its description; do not shorten options until their meaning is unclear.
| Option | Method | Effect |
|---|---|---|
| A | Archive locally; do not push | Archive and create the single archive commit. Keep it on the currently bound branch; do not push or create a PR. |
| B | Confirm archive and push now | Archive, create the single archive commit, and push the currently bound branch. Do not create a PR. |
| C | Confirm archive, push, and create a PR | Archive, create the single archive commit, push the bound branch, and create a PR. |
| D | Adjust or verify again | Do not archive. Run comet state transition <change-name> archive-reopen to return to phase: verify, then invoke /comet-verify. If repairs are needed, return to /comet-build under the verification-failure rules. |
| E | Do not archive yet | Do not run archive-confirm or archive, commit, or push. Keep the unarchived change, phase: archive, and branch_status: pending for a later /comet-archive invocation. |
If the coordination root is outside Git and product code lives in independent child repositories, ask the user to choose document-only archive or D/E instead. Explain that this merges the main spec, moves and saves the archive documents, and records file digests under .comet/classic-deliveries/ in the coordination root. Verify each child repository's commits and pushes separately; they are not evidence of a coordination-document archive commit. After confirmation, write { "action": "archive-only" } without targetBranch, remote, commit, or prUrl. This option applies only to a non-Git coordination root; Git projects keep A/B/C.
Only after the user chooses A, B, C, or explicitly confirms document-only archive, save the choice as JSON through Runtime, then confirm archive:
comet state delivery <change-name> --file <json-path>
comet state transition <change-name> archive-confirm
Git delivery JSON contains action (A=local, B=push, C=pr), targetBranch, and optional remote, commit, and prUrl. Document-only JSON contains only action: archive-only. Initially record only confirmed actions and targets. Do not fabricate unknown commit/prUrl values; add them after the operations actually complete.
targetBranch is the bound branch receiving the archive commit, not the PR base branch. Use an explicit existing PR-base configuration; clarify ambiguity first. With multiple remotes, establish the destination rather than guessing. For example, after the user confirms push:
{
"action": "push",
"targetBranch": "<confirmed-bound-branch>",
"remote": "<confirmed-remote>"
}
Save JSON using file tools and pass it to delivery --file. Store the input file outside the change directory (for example delivery-input.json at the repository root) and delete it after use; never place it inside the change directory, and especially never at <change-dir>/.comet/delivery.json — that is the Runtime's delivery record. Runtime recognizes case variants and filesystem aliases of the same path and reports the input collision directly. The input contains only action, targetBranch, and optional remote, commit, and prUrl; schemaVersion and other Runtime record fields must not appear in the input. Once the archive commit is confirmed, add "commit": "<actual-archive-commit-sha>" to the same complete record. For action pr, add the actual prUrl after PR creation. The commit is stored by Runtime in a Git-ignored delivery receipt, and the tracked delivery.json inside the change directory never carries a commit. After the archive commit, the change directory must stay byte-identical to that commit: do not add, modify, or delete files inside it, or the integrity check fails. Local needs only action:local and the confirmed targetBranch; remote is not required.
Plain comet state delivery <change-name> reads saved records only, and the entry summary does not access the network. Explicitly run the following when resuming remote delivery, resolving an uncertain call result, or preparing to announce completion:
comet state delivery <change-name> --verify
The result is {delivery, verification}. delivery contains saved choices and progress; verification contains Runtime's read-only checks of actual Git, remote branches, and PRs. A delivery record or successful ordinary entry check alone does not prove remote delivery. Handle the result as follows:
Stop if either the delivery write or transition fails. Proceed to Step 2 only after both succeed. For D, run archive-reopen; the old delivery authorization must be invalidated, and obtain new confirmation after verification. For E, stop without archiving, committing, pushing, or setting handled.
comet archive "<change-name>"
The script automatically:
Report and stop on a nonzero exit code. A zero exit code means archive completed.
The script's X/Y steps succeeded counts actual steps, not duplicate counts for delta syncing or document annotations.
It applies OpenSpec ADDED/MODIFIED/REMOVED/RENAMED delta semantics and verifies that main spec has no remaining delta-only section headings afterwards.
Use --dry-run to preview without executing.
The full path from requirements discussion to archive is now complete:
brainstorming → delta spec → implementation → verification → main spec merge → design doc annotation → archive
When delivery has action archive-only, the archive command sets branch_status to handled and records SHA-256 digests of every file in the archive directory, including a snapshot of the main specs at archive time after final integrity checks. Run comet guard <change-name> archive and comet state delivery <change-name> --verify. Clear current selection only when verification.status is complete and the archive directory, main spec snapshot, and receipt remain available. This path skips the Git commit, push, and PR steps below; each child repository supplies its own delivery evidence. Added, removed, or modified archive files change verification to needsVerification; restore or repair the documents instead of overwriting the sealed receipt.
Archive moves files and merges specs; it does not commit. Afterwards, expect these uncommitted changes:
<classic-change-dir>/ to <classic-archive-root>/YYYY-MM-DD-<name>/.Confirm that delivery still records valid authorization, then write the compatibility field and run the final archive guard (run the second command only after the first succeeds):
comet state set <change-name> branch_status handled && comet guard <change-name> archive
handled is only a legacy compatibility field. It neither authorizes local/push/pr nor proves those actions succeeded. Use delivery records and Runtime checks of actual Git/remotes for authorization and completion. Stop on state-write or guard failure. On recovery, check whether the archive commit already exists and reuse it rather than making a second one.
Read git status --short after archive and reconcile it against the ownership records collected under dirty-worktree before archive. Stage only paths clearly belonging to this change: the original change path, actual archive path reported by the script, archived .comet.yaml containing branch_status: handled, main specs changed by this delta, and archive metadata in the current Design Doc/Plan. If ownership of any changed path is unclear, stop and ask the user to handle it.
Use explicit pathspecs for the inspected paths, then inspect the staged diff. Do not stage the whole repository or include pre-existing user edits:
Prepare the message under the project's active format, language, and body requirements without asking again when conventions are clear. Replace the placeholder below with the actual message; do not treat an English example as project policy. Project Git hooks run normally. If a hook rejects the commit, retain staged contents, correct the message, and continue the same commit. If the call was interrupted or its result is uncertain, inspect actual Git history before retrying; do not retry blindly or bypass hooks.
git add -- <individually-verified-archive-paths...>
git diff --cached --stat
git commit -m "<archive message following project conventions>"
Stop if commit fails or the staged diff contains unrelated paths. Do not continue branch handling.
After commit succeeds, record its actual commit through state delivery --file, then let Runtime verify the archive commit and target. Perform only authorized, unfinished actions. Stop delivery if recording fails; do not commit again. On recovery, inspect existing Git commits and branch state before completing the record. Runtime stores delivery receipts; do not create more archive commits merely to record a commit hash.
After a push or PR call, use delivery --verify to check the actual remote branch and PR. After successful PR creation, record the actual prUrl through delivery --file while preserving action, target, and commit. On timeout or an uncertain response, inspect the actual result before retrying. Keep delivery and current selection on failure, and resume only missing authorized actions. Do not rewrite, delete, or switch branches.
Local requires Runtime to confirm that the archive commit exists. Push additionally requires the remote to contain that commit. PR additionally requires the matching PR and target. Merely filling commit/prUrl does not prove delivery. Run clear-selection and announce completion only after Runtime verifies every selected action.
Do not invoke Superpowers finishing-a-development-branch in Archive. Do not offer local merges, branch switches/deletion, rebases, or other branch-topology changes. Choose A for local archive completion or E to defer archive.
<classic-archive-root>/YYYY-MM-DD-<change-name>/ exists..comet.yaml records archived: true.branch_status: handled in archived state; archive-only includes it in the file-digest receipt.comet guard <change-name> archive passes.archive-only, Runtime verifies the local document receipt.The script moves <classic-change-dir>/ to <classic-archive-root>/YYYY-MM-DD-<name>/.
comet guard <change-name> archive resolves the actual archive directory from the original change name. Do not construct a dated directory manually.
The Comet Classic workflow is complete. Start new Classic work with /comet-classic or /comet-open.
Follow context-recovery.md with phase archive. Read saved delivery records rather than recalling A/B/C from conversation. After Runtime checks the archive directory, commits, remote, and PR, continue only missing actions; local performs no remote operations. Stop for explicit confirmation if an older change has only handled, authorization is missing, the target changed, or branch relationships differ from the record. Do not infer authorization or repair branch relationships automatically.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
日本語の概要は準備中です。原文の説明を表示しています。
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.
日本語の概要は準備中です。原文の説明を表示しています。
Use when 用户要启动或恢复 Comet 工作流,需要根据 active change、.comet.yaml、hotfix/tweak 意图路由到对应阶段 Skill。
日本語の概要は準備中です。原文の説明を表示しています。
Comet workflow entry. Use when the user invokes /comet or asks to use Comet without choosing Native or Classic; load Native or Classic from project configuration.
日本語の概要は準備中です。原文の説明を表示しています。
Comet 工作流入口。当用户明确调用 /comet,或明确要求使用 Comet 但未指定 Native/Classic 时使用;按项目配置加载 Native 或 Classic。
日本語の概要は準備中です。原文の説明を表示しています。
Create or upgrade a Comet Classic workflow Skill via Comet Creator. Not for general Skill authoring, cleanup, or review.
日本語の概要は準備中です。原文の説明を表示しています。