comet-archive

comet-archive is a skill for Codex from rpamis/comet. It costs 34 tokens per session (1,318 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 Codex

Written for Codex: agents/openai.yaml present.

Good fit Checking archive readiness, reviewing the change state, confirming branch ownership, merging the final specification updates, and closing the development branch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rpamis/comet/comet-archive
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 · 3,334 stars · on GitHub · docs.comet.rpamis.com

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.

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

Made for: 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for comet-archive

Your own site · 80×15
<a href="https://agentmods.dev/skills/rpamis/comet/comet-archive"><img src="https://agentmods.dev/badge/skills/rpamis/comet/comet-archive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,318 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 12 Nov 2026
  • Snyk pass 12 Nov 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00034 $0.01318
Opus 5.5 $0.00014 $0.00527
Sonnet 5.5 $0.00007 $0.00264
Haiku 4.5 $0.00003 $0.00132

Measured 20d ago against content hash 82dd34fcb7a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 20d 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 · 29 lines

How it starts

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

Comet 阶段 5:归档(Archive)

首次进入阶段、交接给新 Agent 或上下文恢复后,读取并执行 任务上下文与产物语言,优先采用当前 continuation 或已领取 Action 的 contextRequest;同一阶段连续执行不重复获取。

收到入口返回的 layout 后,首次接收阶段或绑定变化时执行阶段共用入口,复用仍有效的 layout,无需先额外运行 root show;遇编辑判断时按共用入口加载编辑后续行协议。

SDK Run 路径

首次进入当前 SDK 阶段、换 Agent 或恢复上下文时,读取阶段入口与恢复及该参考的当前阶段章节;本会话已有且仍有效时直接复用。下文按当前阶段执行;nextAction.kind 的恢复路由只适用于没有 continuation mode 的旧响应。

优先复用同一 change、工作区和 Run 的最新有效响应中的 agent.continuation、data.nextAction、phase、revision 和路径摘要。只有冷恢复、工作区或外部状态变化、响应版本已过期或缺少当前步骤必要信息时,才运行 comet state next <change-name> --json;不要因加载下一 Skill 再读一次。后续写操作仍由 Runtime 校验当前版本与证据,不能用缓存跳过检查或批准。确认 data.runtimeFormat: sdk、phase 和 nextAction.kind,在已绑定的 projectRoot 执行;路径缺失或绑定发生变化时才运行 comet classic workspace resolve <change-name> --json。SDK Run 的 Verify 收据必须仍有效;状态文件和验证报告存在并不表示已获归档授权。reconcile 时运行 comet state check <change-name> archive --recover --json 核对原 Action 与磁盘、Git 证据,结果未明时不重做归档、提交、push 或 PR。

  1. 复用当前有效的状态、工作区和证据摘要;缺少时运行 comet state check <change-name> archive --json。按 SDK 方法参考的 Archive 与 Git 交付章节 核对验证结论、当前绑定分支、归档影响和无关改动。需要推送或 PR 时,先确认 remote 和 PR base;多个可选目标不能猜测。用当前目标与效果摘要运行 comet state propose-archive <change-name> --summary "<delivery-summary>",需要时附 --remote <name>、--pr-base <branch>。保存返回的 data.wait.proposalHash 为 <proposalHash>;恢复已有待决定 Wait 时复用它,不重复提案。
  2. 按 decision-point.md 展示当前提案和 SDK 方法参考的 Archive 与 Git 交付选项。已有明确授权覆盖当前归档影响和相同交付目标时沿用;否则等待用户选择。用 comet state decide-archive <change-name> --proposal-hash <proposalHash> --choice <local|push|pr|reverify|later> 提交当前选择:local 仅归档并提交,push 再推送,pr 推送并创建 PR,reverify 返回 Verify,later 保留当前工作并停止本次调用。目标或 Verify 证据改变时重新核对并取得新的决定;旧提案哈希不能继续使用。
  3. 只有 Run 记录了有效的 local|push|pr 决定,才直接运行 comet guard <change-name> archive --apply。Guard 核对授权、分支和 Verify 收据,在同一 Run 中完成一次 OpenSpec 归档。中断后先看 state next --json 与 --recover 返回的 Action;已应用的归档不能再次发送。
  4. 按 SDK 方法参考的 Archive 与 Git 交付章节核对 dirty-worktree,显式暂存本 change 的实现、归档目录、主 spec 及 Design Doc/Plan 标注,检查 staged diff,再创建唯一归档提交。SDK Guard 不代替 Agent 执行 Git;不调用旧 state set branch_status、state delivery 或 archive-confirm。选择 push 时推送已批准的 remote/分支;选择 pr 时先推送再创建目标匹配的 PR。调用结果未知时先只读核对远端或 PR,不盲目重试。
  5. 使用真实提交 SHA 运行 comet state complete-delivery <change-name> --commit <sha>;PR 选择还需附 --pr-url <url>。该命令只核对归档提交及已批准的远端/PR 结果并结束 Run,不执行提交、push 或建 PR。验证失败时保留原 Run 与选择,按返回的具体缺口恢复;只有同次结果表明 Run 已完成且 continuation 为 done,才宣告交付完成;结果未提供终态时才运行 comet state next <change-name> --json 核对。

Read the full file on GitHub · 29 lines

Files

What ships with it

2 files 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. 20d ago Changed · -2 lines 82dd34fcb7a1
  2. 26d ago Changed · +4 lines d97eda1cd887
  3. 1mo ago Changed · -167 lines 4fa9f8ce8dd4
  4. 1mo ago Changed · +4 lines 8aa37ca44b60
  5. 2mo ago Changed a7a576068d5c
  6. 2mo ago Changed · +1 lines 8e2ff1c936fe
  7. 2mo ago Changed · +30 lines · +1 tokens per session 58cf5d62e1b9
  8. 3mo ago Changed · +5 lines b38d04e27b56
  9. 3mo 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 (3,334 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 1,318 once invoked, about $0.0001 per session on Opus 5.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

comet-archive compared with skills from other repositories

comet-archive next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
comet-archiverpamis/cometSkill3.3ktodayMITA34Codex
bump-versionsd0xdev/sd0x-harnessSkill1968d agoMITA61Claude Code
publish-prCIrcui-try/CircuitSkill56mo agoMITA18Claude Code
git-workflow-and-versioningaddyosmani/agent-skillsSkill122ktodayMITA131Claude Code
skillshare-changelogrunkids/skillshareSkill3.6ktodayMITA134Claude Code
finishing-a-development-branchjnMetaCode/superpowers-zhSkill8.7k2d agoMITA25Claude Code
factory-shipBuilderIO/skillsSkill4.7kyesterdayMITA28Claude Code