comet-build

comet-build is a skill for Claude Code, Codex from rpamis/comet. It costs 25 tokens per session (4,834 once invoked), scanned A, original, MIT.

A Comet workflow step for turning an approved design into an implementation plan and completed code changes. Comet is the project workflow system described by the add-on.

In plain words
What is it for?
Use it to validate the build phase, create a dated implementation plan, follow the task checklist, and execute remaining tasks while respecting the project's branch and file rules.
Why use it?
It helps resume work from the correct project change and task instead of losing track of the current phase, branch, or unfinished items.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rpamis/comet/comet-build.svg)](https://agentmods.dev/skills/rpamis/comet/comet-build)
Your own site
<a href="https://agentmods.dev/skills/rpamis/comet/comet-build"><img src="https://agentmods.dev/badge/skills/rpamis/comet/comet-build.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,834 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.00025 $0.04834
Opus 5 $0.00013 $0.02417
Sonnet 5 $0.00005 $0.00967
Haiku 4.5 $0.00003 $0.00483

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

Security

Grade A, and why

comet-build 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-build/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 阶段 3:计划与构建(Build)

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

前置条件

  • Design Doc 已创建(阶段 2 完成)
  • 活跃 change 存在

步骤

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> build

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

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

幂等性:build 阶段所有操作可安全重复执行。读取 .comet.yamlphase 字段确认仍在 build 阶段,读取 plan 文件头的 base-ref,再按文档顺序解析 tasks.md 的复选框,从第一个未勾选任务继续执行。已提交的任务不得重复提交。

1. 制定计划

使用 writing-plans Skill 创建实施计划。计划必须使用 comet state get <name> language 读取到的 Comet 配置产物语言,并保存至固定路径 docs/superpowers/plans/<YYYY-MM-DD>-<change-name>.md(如 docs/superpowers/plans/2026-08-21-rename-alert.md)。

调用 Skill 时提供以下输入:

  1. 产物语言:comet state get <name> language 的解析结果
  2. Design Doc(docs/superpowers/specs/ 下的技术设计文档)
  3. <classic-change-dir>/tasks.md(任务边界)
  4. 固定计划路径和 git rev-parse HEAD 的结果

只使用 writing-plans 的计划编写与自检流程;计划完成后返回 Comet Build,由 Comet 统一处理后续执行配置。若 Skill 加载或计划生成失败,停止 Build 并报告原因。

计划要求:

  • 保存至指令中给定的计划路径,不更改文件名
  • 只覆盖 tasks.md 列出的任务,不扩展范围
  • 引用设计文档,拆分为可执行任务
  • Plan 文件头必须包含关联元数据
---
change: <openspec-change-name>
design-doc: docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md
base-ref: <git rev-parse HEAD before implementation>
---

base-ref 用于验证阶段跨提交统计改动规模。创建计划时先记录当前提交:

git rev-parse HEAD

计划写入后确认该路径存在,再运行 Step 2 的 comet state set <name> plan ... 记录计划路径。

2. 记录计划并联合确认工作方式

先记录 plan 路径:

comet state set <name> plan docs/superpowers/plans/YYYY-MM-DD-feature.md

无需手动更新 phase,阶段守卫(guard --apply)会在退出条件满足后推进 phase 字段。

展示联合决策时,只提供本工作流支持的执行方式、TDD 模式和代码审查模式。工作区已经在 Open 阶段准备并绑定;若当前 change 没有有效 isolation,返回 /comet-open 修复,不在 Build 创建或切换工作区。

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. 2d ago Changed · -18 lines f0418c5cbaf1
  2. 5d ago First seen · 308 lines · 25 tokens per session scan A f607114a87f4

Subscribe to this mod's changes

comet-build is a skill published in the GitHub repository rpamis/comet (2,914 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 4,834 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

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

req-analyze

Requirements analysis — problem decomposition, stakeholder scan, requirement structuring. Produces 1-requirements.md (Phase 1 lifecycle doc, NOT the per-task request ticket — for those use /create-request). Use when: analyzing needs before tech spec, decomposing requirements, stakeholder analysis, 需求分析. Not for…

sd0xdev/sd0x-harness · 101 tokens

recap-ask

Interactive Q&A over an existing recap document. Use when: user wants to ask follow-up questions about a briefing-recap- .md produced by /recap-doc, with recap-bounded context + out-of-scope redirect + optional promote-to-request. Not for: generating a new recap (use /recap-doc), general project Q&A (use /ask), code…

sd0xdev/sd0x-harness · 106 tokens

recap-doc

Post-development recap document generator. Use when: AI/Codex has implemented a feature and the user needs a guided walkthrough of what changed and why, with blind-spot detection and anticipated questions. Not for: Q&A follow-up (use /recap-ask), technical share-out for teammates (use /tech-brief), or generic code…

sd0xdev/sd0x-harness · 114 tokens

runbook

Generate and update feature release runbooks from existing docs and codebase. Use when: creating operational runbook, release handbook, deployment checklist, pre-release preparation. Not for: incident response (v2), code review (use codex-code-review), architecture design (use architecture).

sd0xdev/sd0x-harness · 59 tokens

jira

Jira integration — view issues, generate branches, create tickets, transition status. Use when: user mentions Jira ticket key (XX-123), says /jira, wants to create branch from ticket, create a new ticket, or update Jira status. Not for: GitHub issues (use issue-analyze).

sd0xdev/sd0x-harness · 64 tokens