Comet 会把三组 skills — Comet、OpenSpec 和 Superpowers — 直接安装到每个 AI 编程平台指定的 skills 目录中。运行 comet init 时,Comet 会把 skill files 和 automation scripts 写入正确的子目录,让你的平台能够自动发现它们。无需手动复制文件或配置路径。
支持的平台(共 28 个)
comet init 支持 28 个 AI 编程平台。Skills Dir 列显示 Comet 会把 skill files 放在相对于项目根目录(project-scoped installs)或 home 目录(global installs)的哪个位置。
| Platform | Skills Dir | Platform | Skills Dir |
|---|
| Claude Code | .claude/ | Cursor | .cursor/ |
| Codex | .codex/ | OpenCode | .opencode/ |
| Windsurf | .windsurf/ | Cline | .cline/ |
| RooCode | .roo/ | Continue | .continue/ |
| GitHub Copilot | .github/ | Gemini CLI | .gemini/ |
| Amazon Q Developer | .amazonq/ | Qwen Code | .qwen/ |
| Kilo Code | .kilocode/ | Auggie (Augment CLI) | .augment/ |
| Kiro | .kiro/ | Lingma | .lingma/ |
| Junie | .junie/ | CodeBuddy Code | .codebuddy/ |
| CoStrict | .cospec/ | Crush | .crush/ |
| Factory Droid | .factory/ | iFlow | .iflow/ |
| Pi | .pi/ | Qoder | .qoder/ |
| Antigravity | .agents/ | Bob Shell | .bob/ |
| ForgeCode | .forge/ | Trae | .trae/ |
特殊的 Global 安装路径
有些平台在 global installs 中使用不同的目录路径。当你在 comet init 中选择 global scope 时,以下平台会安装到非标准位置:
| Platform | Project-scope Dir | Global-scope Dir |
|---|
| OpenCode | .opencode/ | ~/.config/opencode/ |
| Antigravity | .agents/ | ~/.gemini/antigravity/ |
对于所有其他平台,global-scope install 会使用 home 目录下相同的目录名(例如 Claude Code 使用 ~/.claude/,Cursor 使用 ~/.cursor/,Lingma 使用 ~/.lingma/)。
有些 AI 编程平台使用通用的 skills CLI registry,而不是平台特定的目录约定。对于这些平台,包括 OpenClaw 和 Hermes,请通过以下命令直接安装 Comet skill bundle:
npx skills add rpamis/comet
该命令会从通用 skills registry 获取 Comet skill package,并把它安装到平台期望的位置。不需要全局安装 Comet。
你可以在其他平台上同时使用 npx skills add rpamis/comet 和 comet init,它们不会冲突。每种安装方式都面向不同的平台目录。
平台自动检测
comet init 会检查配置目录是否存在,从而自动检测项目中已经安装的 AI 编程平台(例如,如果 .claude/ 存在,则会检测到 Claude Code 并预先选中)。
这意味着你可以在不知道要指定哪些平台的情况下运行 comet init。它会:
- 扫描项目根目录中的已知平台配置目录。
- 在交互式 prompt 中预先选择检测到的平台。
- 允许你在继续之前从选择中添加或移除平台。
若要完全跳过交互式 prompt,并安装到所有自动检测到的平台,请使用 --yes flag:
如果没有检测到任何平台,--yes 会选择全部 28 个平台。使用 --scope 控制安装目标是当前项目目录还是 global home 目录:
# Non-interactive install, project scope
comet init --yes --scope project
# Non-interactive install, global scope
comet init --yes --scope global
安装后
当 comet init 为你选择的平台完成安装后,每个平台的 skills 目录将包含:
.claude/skills/ ← example: Claude Code
├── comet/
│ ├── SKILL.md ← /comet main entry
│ └── scripts/
│ ├── comet-guard.sh
│ ├── comet-env.sh
│ ├── comet-handoff.sh
│ ├── comet-archive.sh
│ ├── comet-yaml-validate.sh
│ └── comet-state.sh
├── comet-open/SKILL.md
├── comet-design/SKILL.md
├── comet-build/SKILL.md
├── comet-verify/SKILL.md
├── comet-archive/SKILL.md
├── comet-hotfix/SKILL.md
├── comet-tweak/SKILL.md
├── openspec-*/SKILL.md ← OpenSpec skills
└── brainstorming/SKILL.md ← Superpowers skills
你可以随时运行 comet doctor,验证检测到的平台中 skill files、scripts 和 working directories 是否都存在且健康:
有关所有 comet init 选项的完整细节,请参阅 CLI Reference。