comet-archive

comet-archive is a skill for Claude Code, Codex from rpamis/comet. It costs 33 tokens per session (2,525 once invoked), scanned A, original, MIT.

A workflow for the fifth stage of Comet Classic: archiving a completed change, merging its specification updates, and finishing the branch. It uses Comet commands and a fixed layout for tracking the change.

In plain words
What is it for?
Checking archive readiness, reviewing the change state, confirming branch ownership, merging the final specification updates, and closing the development branch.
Why use it?
It checks that verification passed and that the change is on the correct branch before archiving. It also requires user confirmation before final archiving and remote delivery.

Skill for Claude CodeCodex

About the project

Comet is a resumable workflow and skill platform for coding tasks, covering requirements work as well as skill creation, evaluation, and release. It supports separate Native and Classic workflows and can coordinate implementation and verification across isolated Git worktrees. The catalogue contains skills and instructions that implement Comet-related workflows.

rpamis/comet · 2,914 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/rpamis/comet/comet-archive
Any agent
npx skills add rpamis/comet --skill comet-archive
Clone the repo
git clone --depth 1 https://github.com/rpamis/comet

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for comet-archive

README.md
[![agentmods](https://agentmods.dev/badge/skills/rpamis/comet/comet-archive.svg)](https://agentmods.dev/skills/rpamis/comet/comet-archive)
Your own site
<a href="https://agentmods.dev/skills/rpamis/comet/comet-archive"><img src="https://agentmods.dev/badge/skills/rpamis/comet/comet-archive.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,525 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00033 $0.02525
Opus 5 $0.00016 $0.01262
Sonnet 5 $0.00007 $0.00505
Haiku 4.5 $0.00003 $0.00252

Measured 2d ago against content hash b38d04e27b56, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

comet-archive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

assets/skills-zh/comet-archive/SKILL.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Comet 阶段 5:归档(Archive)

开始或恢复前必须先读取并执行 comet-classic/reference/classic-layout.md;本文件中的 OpenSpec CLI 调用必须使用 adapter,文件路径必须使用该协议绑定的 <classic-*> 逻辑根。

前置条件

  • 验证已通过(阶段 4 完成)
  • 归档提交和分支处理尚未完成(branch_status: pending
  • <classic-change-dir>/.comet.yamlverify_result: pass

步骤

0. 输出语言约束

归档摘要和生命周期闭环说明必须使用 comet state get <name> language 读取到的 Comet 配置产物语言。

0b. 入口状态验证(Entry Check)

comet-classic/reference/scripts.md 使用稳定 comet CLI,然后执行入口验证;从任意入口恢复时先按 comet-classic/reference/context-recovery.md 运行恢复检查:

comet state select <change-name>
comet state check <name> archive

验证通过后继续 Step 1。验证失败时脚本会输出具体失败原因。

若上述 select / check 输出 BLOCKED,且原因是 bound_branch 与当前分支不一致,立即按 comet-classic/reference/decision-point.md 暂停,让用户单选:切回绑定分支后重新运行入口验证,或在用户明确确认当前分支应接管该 change 后运行 comet state rebind <change-name> 并重新入口验证。不得自行切换分支,不得自行换绑。

1. 归档与交付前最终确认(阻塞点)

入口验证通过后,先读取 comet state get <change-name> isolation,再comet-classic/reference/decision-point.md 的协议暂停并等待用户确认是否立即归档,以及如何处理归档提交。不得在用户确认前运行 comet state transition <change-name> archive-confirmcomet archive "<change-name>"

确认前必须向用户展示简短摘要:

  • change 名称
  • 验证报告路径和结论
  • 当前分支/工作区和未提交改动归因摘要
  • 本次归档将执行的不可逆动作:按 OpenSpec delta 语义合并主 spec、标注 design doc / plan、移动 change 到 archive 目录
  • 归档完成后将采用的提交处理方式:只保留在本地、推送当前绑定分支,或推送后创建 PR

用户确认问题必须以单选题形式呈现,包含以下全部选项。文本降级模式必须使用下表;使用结构化提问时,将“方式”作为短标签、“实际影响”作为说明,不得缩短为含义不明确的选项:

选项 方式 实际影响
A 仅归档(不推送) 完成归档并创建唯一归档提交;提交只保留在当前绑定分支,不推送、不创建 PR
B 「确认归档并立即推送」 完成归档并创建唯一归档提交,然后推送当前绑定分支;不创建 PR
C 「确认归档、立即推送并创建 PR」 完成归档并创建唯一归档提交,推送当前绑定分支,然后创建 PR
D 「需要调整或重新验证」 不归档;运行 comet state transition <change-name> archive-reopen 回到 phase: verify,再调用 /comet-verify;若确认需要修复,再按验证失败决策回到 /comet-build
E 「暂不归档」 不运行 archive-confirm 或归档命令,不提交、不推送;保留 active change、phase: archivebranch_status: pending,等待稍后再次调用 /comet-archive

只有用户选择 A、B 或 C 后,才记录其归档提交处理方式并立即执行:

comet state transition <change-name> archive-confirm

Read the full file on GitHub · 159 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +5 lines b38d04e27b56
  2. 5d ago First seen · 154 lines · 33 tokens per session scan A 80c5efa72037

Subscribe to this mod's changes

comet-archive is a skill published in the GitHub repository rpamis/comet (2,914 stars, last pushed yesterday), licensed MIT. It adds 33 tokens to every session and 2,525 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

push-ci

Push to remote and monitor CI. Validates branch safety, executes git push WITH explicit user approval, then monitors CI run status via gh CLI. Use when: user says 'push', 'push and watch CI', 'ship it', 'push-ci'. Not for: committing (use /smart-commit), creating PRs (use /create-pr), merging (use /merge-prep).

sd0xdev/sd0x-harness · 82 tokens

bump-version

Bump package and plugin version in sync. Updates package.json, .claude-plugin/plugin.json, and install-state manifest to the same version. Use when: user says 'bump version', 'update version', '更新版本', '版本 +1', or /bump-version.

sd0xdev/sd0x-harness · 61 tokens

release

Skill "release" from CIrcui-try/Circuit, covering 절차, 1단계: 사전 확인, 2단계: 변경사항 수집, 직전 release 시점 (main의 가장 최근 release pr merge 시각) and 그 시점 이후 develop으로 머지된 pr 목록.

CIrcui-try/Circuit · 20 tokens

publish-pr

Rebase on develop, push the branch, and open a pull request.

CIrcui-try/Circuit · 18 tokens

release-openspec

Use this skill when releasing OpenSpec: audit merged work and changeset coverage, decide whether a catch-up changeset PR is needed, prepare or resume the Changesets Version Packages PR, cut a beta or stable release, verify publishing, and polish GitHub release notes. Also use when asked whether an open release PR is…

Fission-AI/OpenSpec · 88 tokens

skillshare-changelog

Generate CHANGELOG.md entry from recent commits in conventional format. Also syncs the website changelog page. Use this skill whenever the user asks to: generate a changelog, document what changed between tags, or create a new CHANGELOG entry. If you see requests like "write the changelog for v0.17", "what changed…

runkids/skillshare · 134 tokens