Agent skill

Comet Archive

by rpamis in rpamis/comet

Archive and deliver a Classic change. An agent skill from rpamis/comet.

MITAuto-check passed

Install Comet Archive

skills CLI
$ npx skills add rpamis/comet --skill comet-archive -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rpamis/comet comet-archive --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rpamis/comet.git skills-src && mkdir -p .claude/skills && cp -r skills-src/assets/skills/comet-archive .claude/skills/comet-archive && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
comet-archive
GitHub stars
3.2k
Token cost
~3.9k tokens
SKILL.md length
1,945 words
Files
2
Skills in repo
52
Repo updated
First seen
Licence
MIT

At a glance

Archive and deliver a Classic change. An agent skill from rpamis/comet.

  • Works in 6 steps: Set the output language → Ask the user to confirm archive and… → Run archive → …
  • The user invokes /comet-archive
  • SKILL.md covers Prerequisites, Steps, Exit conditions and Completion, plus 1 more section
  • Calls git

What it does

Comet Archive is an agent skill from rpamis/comet. Archive and deliver a Classic change. Use when the user invokes /comet-archive or Classic Runtime enters Archive or resumes delivery.

Its SKILL.md is about 3.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

The repository describes itself as: Comet: agent skill harness for turning ideas into evaluated workflows. The licence is MIT.

When your agent uses it

  • The user invokes /comet-archive
  • Classic Runtime enters Archive
  • Resumes delivery

Example prompts

  • “/comet-archive”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Set the output language
  2. Ask the user to confirm archive and delivery
  3. Run archive
  4. Complete the spec workflow
  5. Commit only the archive changes
  6. Deliver the archive commit and finish

What it can do on your machine

Read from SKILL.md and the folder at commit 0fd42a0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Comet Archive loads about 3.9k tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 1,945 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~3.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from rpamis/comet at commit 0fd42a0, republished under its MIT licence (© rpamis). 1,945 words, ~3,922 tokens.

Download SKILL.mdSave it as .claude/skills/comet-archive/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
comet-archive
description
Archive and deliver a Classic change. Use when the user invokes /comet-archive or Classic Runtime enters Archive or resumes delivery.

Comet Phase 5: Archive

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.

Prerequisites

  • Verification passed; Phase 4 is complete.
  • Archive or the selected delivery action is unfinished. Recovery does not require branch_status to remain pending.
  • <classic-change-dir>/.comet.yaml records verify_result: pass.

Steps

0. Set the output language

Use configuration.language from this invocation's entry result for the archive summary and completion message. Do not query the language separately.

0b. Validate entry state

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:

bash
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.

1. Ask the user to confirm archive and delivery

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:

  • Change name.
  • Verification report path and conclusion.
  • Current branch/workspace and which work owns each uncommitted change.
  • The irreversible archive actions: merge delta changes into main spec, annotate the Design Doc/plan, and move the change to the archive directory.
  • How the archive commit will be handled: keep it local, push the bound branch, or push and create a PR.

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.

OptionMethodEffect
AArchive locally; do not pushArchive and create the single archive commit. Keep it on the currently bound branch; do not push or create a PR.
BConfirm archive and push nowArchive, create the single archive commit, and push the currently bound branch. Do not create a PR.
CConfirm archive, push, and create a PRArchive, create the single archive commit, push the bound branch, and create a PR.
DAdjust or verify againDo 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.
EDo not archive yetDo 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.

Only after the user chooses A, B, or C, save the choice as JSON through Runtime, then confirm archive:

bash
comet state delivery <change-name> --file <json-path>
comet state transition <change-name> archive-confirm

JSON contains action (A=local, B=push, C=pr), targetBranch, and optional remote, commit, and prUrl. 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:

json
{
  "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:

bash
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:

  • Confirmed not-yet-delivered, such as no first push or a completed push with no PR: if authorization and target remain valid, perform the missing action and check again with --verify. Do not stop solely because of notVerified/needsVerification.
  • unavailable, meaning network, permission, or service failures prevent determining the result, or a target conflict/uncertain outcome: keep the record and stop. Restore read-only verification first; do not blindly retry push or create duplicate PRs.

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.

2. Run archive
bash
comet archive "<change-name>"

The script automatically:

  1. Validates entry state: phase=archive, verify_result=pass, archive_confirmation=confirmed, archived=false.
  2. Updates Design Doc metadata before archive: archived-with, status.
  3. Updates Plan metadata before archive: archived-with.
  4. Calls OpenSpec archive to merge deltas into main spec and move the change to archive.
  5. Checks that main spec has no delta-only section headings.
  6. Updates archived state in the actual OpenSpec archive directory and reconciles pending recovery metadata so interrupted work can resume.

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.

Show full SKILL.md (779 more words)Show less
3. Complete the spec workflow

The full path from requirements discussion to archive is now complete:

text
brainstorming → delta spec → implementation → verification → main spec merge → design doc annotation → archive
4. Commit only the archive changes

Archive moves files and merges specs; it does not commit. Afterwards, expect these uncommitted changes:

  • The change moves from <classic-change-dir>/ to <classic-archive-root>/YYYY-MM-DD-<name>/.
  • Main spec contains the merged delta changes.
  • The Design Doc/plan contains archive metadata.

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):

bash
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.

bash
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.

5. Deliver the archive commit and finish

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.

  • A, archive locally: perform no remote operation; keep the archive commit on the bound branch.
  • B, archive and push now: push the bound branch once.
  • C, archive, push, and create a PR: push the bound branch once, then create a PR through the configured GitHub integration. The explicit Step 1 choice authorizes PR creation; do not replace it with another branch-handling method.

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.

Exit conditions

  • The archive script succeeded with exit code 0.
  • <classic-archive-root>/YYYY-MM-DD-<change-name>/ exists.
  • Archived .comet.yaml records archived: true.
  • The single archive commit includes branch_status: handled in archived state.
  • comet guard <change-name> archive passes.
  • The archive commit was handled as confirmed: A stays local, B was pushed successfully, or C was pushed and has a PR.
  • Current selection was cleared after the selected handling completed.

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.

Completion

The Comet Classic workflow is complete. Start new Classic work with /comet-classic or /comet-open.

Recover after context compaction

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.

© rpamis, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in assets/skills/comet-archive of rpamis/comet.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 0fd42a0

Compare with similar skills

Comet Archive next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Comet Archive compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Comet Archive this skillrpamis/comet3.2k—~3.9kAutomated safety check: PassMIT
OpenSpec Bulk Change ArchiverFission-AI/OpenSpec71k2 repos~5.6kAutomated safety check: PassMIT
CTF ZIP Archive Key Recoveryzhaoxuya520/reverse-skill40k1 repos~1.5kAutomated safety check: PassMIT
Conversation Archivegarrytan/gbrain31k—~5.6kAutomated safety check: PassMIT
Recipe Label And Archive Emailsgoogleworkspace/cli31k—~240Automated safety check: PassApache-2.0
Pp Archive Ismvanhorn/printing-press-library2.1k—~3kAutomated safety check: NotesApache-2.0

Similar skills

  • Archives several completed OpenSpec changes in one operation, checking the codebase to resolve spec conflicts rather than archiving blindly.

    71k GitHub starsUsed in 2 repos~5.6k tokens
    DevelopmentAuto-check passed
  • CTF ZIP Archive Key Recovery

    zhaoxuya520/reverse-skill

    Recovers internal keys from legacy ZipCrypto-protected ZIP archives in CTF challenges through a known-plaintext method, instead of brute force.

    40k GitHub starsUsed in 1 repo~1.5k tokens
    SecurityAuto-check passed
  • Conversation Archive

    garrytan/gbrain

    Import AI-assistant chat exports (ChatGPT, Claude, Perplexity) and agent session transcripts into the brain as one dated page per conversation under conversations/, validate each page against the…

    31k GitHub stars~5.6k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Apply Gmail labels to matching messages and archive them to keep your inbox clean.

    31k GitHub stars~240 tokensUpdated 3 days ago
    Productivity & AutomationAuto-check passed
  • Pp Archive Is

    mvanhorn/printing-press-library

    A skill your agent uses whenever the user wants to archive a URL, bypass a paywall, look up an existing archive, view a cached version of a webpage, pull article text from archive.today or the…

    2.1k GitHub stars~3k tokensUpdated today
    Auto-check: notes
  • Comet Archive

    rpamis/comet

    归档并交付 Classic change。在用户调用 /comet-archive,或 Classic Runtime 进入 Archive、恢复交付时使用。

    3.2k GitHub stars~2.1k tokensUpdated today
    Auto-check passed

More from rpamis/comet

All 52 skills in this repo
  • Comet

    rpamis/comet

    A skill your agent uses when 用户要启动或恢复 Comet 工作流,需要根据 active change、.comet.yaml、hotfix/tweak 意图路由到对应阶段 Skill。

    3.2k GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Comet

    rpamis/comet

    Comet workflow entry. An agent skill from rpamis/comet.

    3.2k GitHub stars~686 tokensUpdated today
    Auto-check passed
  • Comet

    rpamis/comet

    Comet — OpenSpec + Superpowers dual-star development workflow.

    3.2k GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • Comet Classic

    rpamis/comet

    Comet Classic workflow entry. An agent skill from rpamis/comet.

    3.2k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Comet Design

    rpamis/comet

    Complete the Classic technical design and obtain user confirmation.

    3.2k GitHub stars~4.3k tokensUpdated today
    Auto-check passed
  • Comet Design

    rpamis/comet

    A skill your agent uses when full Comet change 已完成 open 阶段但缺少 Superpowers Design Doc,或 design 阶段需要从 OpenSpec 交接包恢复。

    3.2k GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Questions about Comet Archive

What does Comet Archive do?

Archive and deliver a Classic change. An agent skill from rpamis/comet. Comet Archive is an agent skill from rpamis/comet. Archive and deliver a Classic change.

When should I use Comet Archive?

Comet Archive fits situations like: the user invokes /comet-archive; classic Runtime enters Archive; resumes delivery.

How do I install Comet Archive in Claude Code?

Run `npx skills add rpamis/comet --skill comet-archive -a claude-code`. Or copy the skill folder (assets/skills/comet-archive in rpamis/comet) into .claude/skills/comet-archive in your project. Claude Code loads it when a task matches its description.

How do I install Comet Archive in Codex?

Run `npx skills add rpamis/comet --skill comet-archive -a codex`. Or copy the skill folder (assets/skills/comet-archive in rpamis/comet) into .agents/skills/comet-archive in your project. Codex loads it when a task matches its description.

Can I use Comet Archive in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rpamis/comet --skill comet-archive -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/comet-archive, .gemini/skills/comet-archive, .github/skills/comet-archive and .opencode/skills/comet-archive in your project.

What does Comet Archive need to run?

Going by SKILL.md and its folder, Comet Archive needs the command-line tools its instructions call (git).

Does Comet Archive access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Comet Archive safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Comet Archive use?

Comet Archive is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Comet Archive use?

About 3.9k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Comet Archive?

Skills that share tags, products or a category with Comet Archive: OpenSpec Bulk Change Archiver (Fission-AI/OpenSpec, 71k stars), CTF ZIP Archive Key Recovery (zhaoxuya520/reverse-skill, 40k stars), Conversation Archive (garrytan/gbrain, 31k stars) and Recipe Label And Archive Emails (googleworkspace/cli, 31k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Comet Archive?

rpamis (a GitHub organization) maintains it in rpamis/comet, which has 3,166 GitHub stars. The repository holds 52 skills in this directory. The repository was last updated on October 9, 2026.

Source: rpamis/comet on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.