comet-design

comet-design is a skill for Claude Code, Codex from rpamis/comet. It costs 24 tokens per session (3,267 once invoked), scanned A, original, MIT.

A workflow guide for turning an existing software change into a detailed technical design document. It builds on earlier proposal and design files and defines implementation risks, tests, and edge cases.

In plain words
What is it for?
Use it during the design phase of a Comet or OpenSpec change, before implementation begins.
Why use it?
It gives developers a repeatable way to check the change's state and expand a high-level plan into detailed engineering decisions.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rpamis/comet/comet-design.svg)](https://agentmods.dev/skills/rpamis/comet/comet-design)
Your own site
<a href="https://agentmods.dev/skills/rpamis/comet/comet-design"><img src="https://agentmods.dev/badge/skills/rpamis/comet/comet-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,267 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.00024 $0.03267
Opus 5 $0.00012 $0.01633
Sonnet 5 $0.00005 $0.00653
Haiku 4.5 $0.00002 $0.00327

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

Security

Grade A, and why

comet-design 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 5d 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-design/SKILL.md · 265 lines

How it starts

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

Comet 阶段 2:深度设计(Design)

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

前置条件

  • 活跃 change 已存在(proposal.md、design.md、tasks.md)
  • 无 Design Doc(docs/superpowers/specs/ 下无对应文件)

职责边界:open 阶段的 design.md 给出高层方案框架(架构决策方向、方案选型、数据流);design 阶段的 Design Doc 是对它的深度技术细化(详细实现设计、技术风险、测试策略、边界条件),是深化而非替代或重写。

步骤

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

comet-classic/reference/scripts.md 运行公开 Comet CLI 命令,然后执行入口验证;从任意入口恢复时先按 comet-classic/reference/context-recovery.md 运行恢复检查:

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

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

幂等性:所有 design 阶段操作可以安全重试。如果 handoff_contexthandoff_hash 已存在,先确认它们与当前产物一致再决定是否重新生成。

1a. 生成 OpenSpec → Superpowers 交接包

必须由脚本生成,不允许 agent 临场手写 summary 代替。

comet handoff <change-name> design --write

脚本会根据 change .comet.yamlcontext_compression 快照生成并记录交接包。

默认 context_compression: off 时生成:

<classic-change-dir>/.comet/handoff/design-context.json
<classic-change-dir>/.comet/handoff/design-context.md

启用 beta(项目 .comet/config.yamlclassic.context_compression: beta,创建 change 时快照进入 .comet.yaml)时生成:

<classic-change-dir>/.comet/handoff/spec-context.json
<classic-change-dir>/.comet/handoff/spec-context.md

并在 .comet.yaml 写入:

handoff_context: <classic-change-dir>/.comet/handoff/design-context.json
handoff_hash: <sha256>

默认交接包是 compact 可追溯摘录,不是 agent summary:

  • design-context.json:机器索引,包含 change、phase、canonical spec、source paths、hash
  • design-context.md:供 Superpowers 阅读的上下文,包含脚本标记、source path、line range、sha256、确定性摘录
  • 超出摘录预算时标记 [TRUNCATED],并保留 Full source 路径

beta 交接包是 结构化 spec projection,用于减少 OpenSpec 原文 token 占用但避免实现漂移:

  • spec-context.json:机器索引,包含 change、phase、mode=beta、source paths、context_hash、files 角色
  • spec-context.md:供 Superpowers 阅读的紧凑上下文,verbatim 投影 delta spec 文件并按 hash 引用支撑产物
  • OpenSpec delta spec 仍是 canonical spec;projection 缺失或过期时必须重新生成或读取源 spec,不得用 agent summary 替代

Read the full file on GitHub · 265 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. 5d ago First seen · 265 lines · 24 tokens per session scan A de891cd07a75

Subscribe to this mod's changes

comet-design is a skill published in the GitHub repository rpamis/comet (2,914 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 3,267 once invoked, about $0.0001 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

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

codex-setup

Initialize sd0x-dev-flow infrastructure for Codex CLI and other non-Claude agents. Generates AGENTS.md, installs the commit-msg hook, copies runner scripts. The pre-push gate is opt-in via --with-push-gate. Use when setting up a new project or after updating skills.

sd0xdev/sd0x-harness · 65 tokens