comet-open

comet-open is a skill for Claude Code, Codex from rpamis/comet. It costs 32 tokens per session (5,270 once invoked), scanned A, original, MIT.

A guide for starting an OpenSpec change: a tracked software task with proposal, design, task, and state files. It also covers choosing or restoring the correct project workspace and output language.

In plain words
What is it for?
Use it when creating a new change or recovering an existing one before detailed design and implementation.
Why use it?
It prevents work from beginning with missing or inconsistent change records and makes sure an existing change is resumed in the right workspace.

Skill for Claude CodeCodex

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-open
Any agent
npx skills add rpamis/comet --skill comet-open
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-open

README.md
[![agentmods](https://agentmods.dev/badge/skills/rpamis/comet/comet-open.svg)](https://agentmods.dev/skills/rpamis/comet/comet-open)
Your own site
<a href="https://agentmods.dev/skills/rpamis/comet/comet-open"><img src="https://agentmods.dev/badge/skills/rpamis/comet/comet-open.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,270 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.00032 $0.05270
Opus 5 $0.00016 $0.02635
Sonnet 5 $0.00006 $0.01054
Haiku 4.5 $0.00003 $0.00527

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

Security

Grade A, and why

comet-open 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 4d 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-open/SKILL.md · 290 lines

How it starts

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

Comet 阶段 1:开启(Open)

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

前置条件

  • 无活跃 change,或用户希望创建新 change

步骤

0. 输出语言约束

传递给 OpenSpec 的所有提问和产物要求都必须包含解析后的 Comet 产物语言,并使用 enzh-CN 这类规范化 ID。.comet.yaml 尚不存在时依次读取项目 .comet/config.yaml 和全局 ~/.comet/config.yamlclassic.language;change 初始化后使用 comet state get <name> language 读取。没有配置语言时才回退到当前用户请求语言。生成的 proposal.mddesign.mdtasks.md 必须以该语言为主语言。

0a. 当前 change 绑定

恢复已有 change 时先检查 <classic-change-dir>/.comet.yaml

  • 状态文件存在且可解析:先运行 comet classic workspace resolve <change-name> --json,进入返回的 projectRoot 后再选择 change
  • 状态文件缺失但 change 目录有效:先使用所选隔离方式准备工作区,再进入返回的 projectRoot 运行 comet state init <change-name> full --isolation <selected-isolation>,最后选择 change
  • 状态文件格式异常:停止并报告解析错误;从版本控制、备份或可验证产物人工修复后再继续,不得用 state set 覆盖损坏文件
comet classic workspace resolve <change-name> --json
# 进入返回的 projectRoot
comet state select <change-name>

创建新 change 时,必须先完成 .comet.yaml 初始化,再立即运行同一命令;状态文件不存在前不得伪造选择。

0b. Open 前工作区决策与准备

创建 Classic change 时读取 comet-classic/reference/workspace.md。工作区决策必须在创建 OpenSpec artifacts 和 .comet.yaml 之前完成,不能推迟到 Build:

  • 用户明确表达并行意图时直接使用 worktree,确保在创建 OpenSpec 和 state 前准备好独立工作区
  • 未指定隔离方式时按参考文档处理:需要决策时展示合法的 currentbranchworktree 选项,推荐只作说明
  • 用户选择的 currentbranch 仍表示串行方式,不得把它描述为适合同时会话

新 change 在运行 OpenSpec new 前准备工作区:

comet classic workspace prepare <name> --isolation <current|branch|worktree> --json
# 进入返回的 projectRoot;后续 OpenSpec、state 和产物写入都必须在该目录执行

准备命令会复用已登记且分支匹配的 Worktree;分支仍存在但登记的 Worktree 已被移除时会重建。只有分支已重命名、被用户接管或无法确认归属时,才暂停请求显式 rebind。

0c. OpenSpec 兼容性检查

在任何 OpenSpec 状态或指令命令前运行:

comet classic openspec -- --version

本流程要求 OpenSpec >= 1.5.0。版本低于 1.5.0、无法解析版本、命令不可用或返回非零退出码时立即停止,并提示运行 npm install -g @fission-ai/openspec@latest 后重试;不得继续使用缺少 applyRequiresartifactPathschangeRootresolvedOutputPath 契约的旧 CLI。

1. 探索想法与需求澄清

Read the full file on GitHub · 290 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. 4d ago First seen · 290 lines · 32 tokens per session scan A 7dbbbe5446cf

Subscribe to this mod's changes

comet-open is a skill published in the GitHub repository rpamis/comet (2,902 stars, last pushed 2d ago), licensed MIT. It adds 32 tokens to every session and 5,270 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

agent-spec-tool-first

CRITICAL: Use for agent-spec CLI tool workflow. Triggers on: agent-spec, contract, lifecycle, guard, verify, explain, stamp, checkpoint, plan, requirements, work-units, knowledge requirements, KLL, docs vs knowledge, spec verification, task contract, spec quality, lint spec, run log, "how to verify", "how to use…

ZhangHanDong/agent-spec · 165 tokens

agent-spec-authoring

CRITICAL: Use for writing and editing agent-spec .spec/.spec.md files. Triggers on: write spec, create spec, edit spec, new spec, spec authoring, task contract, .spec file, .spec.md file, BDD scenario, acceptance criteria, completion criteria, test selector, boundary, constraint, intent, decision, out of scope, "how…

ZhangHanDong/agent-spec · 172 tokens

agent-spec-estimate

CRITICAL: Use for estimating work effort from agent-spec Task Contracts. Triggers on: estimate, estimation, how long, work effort, round count, time estimate, scope, sizing, cost, budget, planning, sprint, capacity, "how many rounds", "how long will this take", "estimate this spec", 估算, 工作量, 多久, 时间估算, 预估, 工时, 规模…

ZhangHanDong/agent-spec · 116 tokens

agent-spec-intent-compiler

Use when converting PRD or issue prose into KLL requirements, running the intent compiler plan, or reverse-interviewing a human to resolve requirement ambiguity before task spec generation.

ZhangHanDong/agent-spec · 42 tokens

agent-spec-wiki

Use when initializing, checking, enriching, or reviewing agent-spec code live wiki pages, sourcefiles trace, or Rust architecture inventory.

ZhangHanDong/agent-spec · 31 tokens

create-request

Create, update, or scan per-task request tickets for progress tracking. These are date-prefixed non-lifecycle docs under requests/, NOT feature-level requirements (use /req-analyze for those). Use when: tracking task progress, updating completion status, scanning incomplete requests, checking request status dashboard.…

sd0xdev/sd0x-harness · 112 tokens