comet
Use when 用户要启动或恢复 Comet 工作流,需要根据 active change、.comet.yaml、hotfix/tweak 意图路由到对应阶段 Skill。
Skill by rpamis
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/rpamis-comet-e34dd0
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-orchestration
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/comet
What's inside
- Skill name
comet- Description
- Use when 用户要启动或恢复 Comet 工作流,需要根据 active change、.comet.yaml、hotfix/tweak 意图路由到对应阶段 Skill。
- License
- MIT
- Instructions
- 258 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (23)
- SKILL.md
- auto-transition.md · reference/
- comet-yaml-fields.md · reference/
- context-recovery.md · reference/
- debug-gate.md · reference/
- decision-point.md · reference/
- dirty-worktree.md · reference/
- file-structure.md · reference/
- intent-frame.md · reference/
- scripts.md · reference/
- subagent-dispatch.md · reference/
- comet-phase-guard.md · rules/
- checks.yaml · runtime/classic/
- guardrails.yaml · runtime/classic/
- skill.yaml · runtime/classic/
- comet-archive.mjs · scripts/
- comet-env.mjs · scripts/
- comet-guard.mjs · scripts/
- comet-handoff.mjs · scripts/
- comet-hook-guard.mjs · scripts/
- comet-intent.mjs · scripts/
- comet-state.mjs · scripts/
- comet-yaml-validate.mjs · scripts/
SKILL.md (first lines)
# Comet — OpenSpec + Superpowers 双星开发流程
OpenSpec 与 Superpowers 如双星系统围绕同一目标运转。
```
OpenSpec 负责 WHAT — 大纲、提案、spec 生命周期、归档
Superpowers 负责 HOW — 技术设计、计划、执行、收尾
```
**核心原则:brainstorming 必不可跳过。每次变更都必须经过深度设计(hotfix 和 tweak 预设除外)。**
<IMPORTANT>
本文中的“调用 `/comet-*`”“调用 OpenSpec/Superpowers 技能”均指使用当前平台的 Skill 工具加载对应 Skill,并把必要上下文作为 ARGUMENTS 传入。不得把“调用”降级为在当前 `/comet` 上下文中手工执行子 Skill 的步骤,也不得只按记忆或本文摘要模拟子 Skill。
当路由结果是 `/comet-hotfix`、`/comet-tweak`、`/comet-open`、`/comet-design`、`/comet-build`、`/comet-verify` 或 `/comet-archive` 时,必须立即用 Skill 工具加载对应的 Comet 子 Skill。该子 Skill 若要求 OpenSpec 或 Superpowers 技能,也必须继续用 Skill 工具加载对应依赖 Skill。Skill 工具调用是 workflow evidence 的一部分。
</IMPORTANT>
---
## 决策核心(Decision Core)
agent 做决策只需读本节,参考附录按需查阅。
### 输出语言规则
以触发本次工作流的用户请求语言作为默认输出语言。恢复已有 change 时,如果现有产物有明确主语言,除非用户明确要求切换,否则保持该语言。
### 阶段自动检测
**Step 0: 活跃 Change 发现与意图判定**
1. 先按 `comet/reference/scripts.md` 完成脚本定位,确保 `$COMET_INTENT` 可用。
2. 运行 `openspec list --json` 获取所有活跃 change。
3. 根据用户请求、active change 列表和必要仓库状态填写 `CometIntentFrame`。
4. 优先用 `node "$COMET_INTENT" route --stdin` 传入 frame JSON,获取 runtime 规范化路由。`CometIntentFrame + runtime scorer` 是事实源;本节自然语言规则只用于意图识别槽位提取。
5. 按 runtime route 处理:
- `hotfix` → 直接调用 `/comet-hotfix`
- `tweak` → 直接调用 `/comet-tweak`
- `full` → 按活跃 change 表决定 `/comet-open` 或用户确认
- `resume` → 进入 Step 1 读取对应 change 的 `.comet.yaml`
- `ask_user` → 按 `comet/reference/decision-point.md` 暂停并等待用户选择
- `out_of_scope` → 说明本次输入不是 Comet workflow 启动/恢复请求,不初始化 change
**CometIntentFrame 最小骨架**:
```json
{
"schema_version": "comet.intent.v1",
"utterance": "<用户原话>",
"intent": { "name": "start_change", "confidence": 0.8 },
"slots": {
"requested_action": "start",
"workflow_candidate": "full",
"user_explicit_workflow": null,
"change_id": null,
"existing_behavior": null,
"new_capability": null,
"public_api_change": null,
"schema_change": null,
"cross_module_change": null
},
"context": {
"active_changes_count": 0,
"active_change_names": []
},
"evidence": [],
"proposed_route": {
"name": "ask_user",
"confidence": 0.5
}
}
```
**意图识别槽位提取**:
字段完整含义见 `comet/reference/intent-frame.md`;正常路由只需按上方最小骨架填写。
- `fix_bug` + `existing_behavior: true` + 无新增 capability/public API/schema/cross-module 信号 → 倾向 `hotfix`
- 用户明确描述为可收敛为单一 OpenSpec change 的轻量/中等变更,需通过 OpenSpec apply 执行,且不需要完整 `/comet` 深度设计/plan → 倾向 `tweak`
- 文案、配置、文档、prompt 或单一 OpenSpec change 的轻中量修改 → 倾向 `tweak`
- 新增 capability、public API、schema 变更、跨模块协调或架构调整 → 倾向 `full`
- 多个 active change 且用户未明确 change → `ask_user`
- 置信度不足、关键 evidence 缺失或用户显式 workflow 与风险信号冲突 → `ask_user`
| 活跃 change | 用户输入 | 行为 |
|-------------|---------|------|
| 无 | `full` 路由 | → 调用 `/comet-open` |
| 恰好 1 个 | `/comet <描述>` | → **询问**:继续该变更 or 创建新变更 |
| 多个 | `/comet <描述>` | → **询问**:继续现有变更 or 创建新变更;若选继续 → 列出清单让用户选择 |
| 恰好 1 个 | `/comet`(无描述) | → 自动选中,进入 Step 1 |
| 多个 | `/comet`(无描述) | → 列出清单让用户选择 |
<IMPORTANT>
当用户选择「创建新变更」时,**必须调用 `/comet-open`**(禁止直接调用 `/opsx:new`)。
`/comet-open` 负责完整双初始化:OpenSpec artifacts(由内部 `/opsx:new` 创建)+ `.comet.yaml` 状态文件。
直接调用 `/opsx:new` 会缺失 `.comet.yaml`,导致后续阶段判定失败。
</IMPORTANT>
**Step 1: 读取 `.comet.yaml` 状态元数据**
优先读取 `openspec/changes/<name>/.comet.yaml`。不存在时回退到 `openspec status --change "<name>" --json`、`tasks.md` 和 `docs/superpowers/` 文件检查。
**断点恢复规则**:
- 每次恢复上下文时,先重新执行 Step 0 和 Step 1,不依赖对话历史判断阶段
- 只要存在 active change 且工作区有未提交改动,必须按 `comet/reference/dirty-worktree.md` 协议处理。该协议定义了检查步骤、归因分类和禁令,本文件不重复
- 若 `phase: build`,先检查 `build_pause`、`plan`、`isolation`、`build_mode`、`tdd_mode` 和 `review_mode`(详见下方):
- 若 `build_pause: plan-ready` 但 `isolation`、`build_mode`、`tdd_mode` 和 `review_mode` 都已经设置,则视为 stale pause:先输出 `[COMET] 检测到 stale pause(build_pause=plan-ready 但 isolation/build_mode/tdd_mode/review_mode 已设置),自动清除并继续`,再运行 `node "$COMET_STATE" set <name> build_pause null`,然后读取 tasks.md 的下一个未勾选任务并按 `build_mode` 恢复执行
- 若 `build_pause: plan-ready` 且 plan 文件存在,但 `isolation`、`build_mode`、`tdd_mode` 或 `review_mode` 尚未设置,回到 `/comet-build` 的 plan-ready 恢复点,提示用户继续补齐/确认工作区隔离、执行方式、TDD 模式和代码审查模式,不重新生成 plan
- 若 `build_pause: plan-ready` 但 plan 文件缺失,回到 `/comet-build` 处理状态损坏或重新生成 plan
- 若 `isolation`、`build_mode`、`tdd_mode` 或 `review_mode` 未设置,回到 `/comet-build` 对应步骤补充后再执行
- 若均已设置,读取 tasks.md 的下一个未勾选任务,并按 `build_mode` 恢复执行:
- 若 `build_mode: subagent-driven-development`,不得在主窗口直接执行任务;必须回到 `/comet-build` 的后台 subagent 调度规则,由主窗口只做协调
- 其他执行方式按 `/comet-build` 的对应规则继续
- 若 `phase: verify` 且 `verify_result: fail`,进入验证失败决策阻塞点:暂停并询问用户修复或接受偏差;用户选择修复后才运行 `node "$COMET_STATE" transition <name> verify-fail` 并调用 `/comet-build`
- 若 `phase: open` 但 proposal/design/tasks 已完整,先运行 `node "$COMET_GUARD" <change-name> open --apply` 修正状态,再继续判定
- 若 `phase: archive`,只允许调用 `/comet-archive`;`/comet-archive` 必须先等待归档前最终确认,归档成功后 change 会移动到 archive 目录,不再对原活跃目录运行 guard
**Step 2: 阶段判定**(按顺序,命中即停)
1. `archived: true` 或 change 已移入 archive → 流程已完成From rpamis/comet, MIT.
More from rpamis/comet
- 0.808score
comet-native
rpamis
Comet Native workflow.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.808score
comet
rpamis
Comet workflow entry.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-hotfix
rpamis
Use the Classic preset to repair a localized defect.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-tweak
rpamis
Use the Classic preset for a lightweight adjustment within one change.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-classic
rpamis
Comet Classic workflow entry.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-design
rpamis
Complete the Classic technical design and obtain user confirmation.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-build
rpamis
Plan, implement, and accept Classic tasks.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-archive
rpamis
Archive and deliver a Classic change.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-open
rpamis
Create a Classic change, clarify its requirements, and obtain user confirmation.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-memory
rpamis
Use when Comet must decide whether a bounded semantic review packet contains a personal memory worth creating, updating, forgetting, or skipping.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-verify
rpamis
Verify a Classic change and record the results.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.802score
comet-open
rpamis
Use when Comet 需要创建新的 OpenSpec change,或 active change 缺少 proposal/design/tasks/.comet.yaml 初始化产物。
SkillAFreshness: A★ 3.2KClaude Code +9
Signals
- Stars
- 3,229
- Forks
- 306
- Open issues
- 16
- Last commit (this folder)
- Jul 6, 2026 (3 months ago)
- Last release
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/rpamis/comet
- Website
- docs.comet.rpamis.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from rpamis
- 0.808score
comet
rpamis
Comet workflow entry.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.808score
comet-native
rpamis
Comet Native workflow.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-hotfix
rpamis
Use the Classic preset to repair a localized defect.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-build
rpamis
Plan, implement, and accept Classic tasks.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-design
rpamis
Complete the Classic technical design and obtain user confirmation.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.803score
comet-archive
rpamis
Archive and deliver a Classic change.
SkillAFreshness: A★ 3.2KClaude Code +9
Cite this page
comet skill. Agent Mart. https://agentmart.dev/skills/rpamis-comet-e34dd0 (last updated 2026-10-24)