支援的工具
OpenSpec 可與多種 AI 程式碼助理協作。當您執行 openspec init 時,OpenSpec 會根據您目前的配置檔案/工作流程選擇以及交付模式,為所選工具進行設定。
運作方式
針對每個選定的工具,OpenSpec 可安裝:
- 技能(若交付包含技能):
.../skills/openspec-*/SKILL.md - 命令(若交付包含命令):工具專屬的
opsx-*命令檔案
預設情況下,OpenSpec 使用 core 配置檔案,其中包含:
proposeexploreapplyarchive
您可以透過 openspec config profile 啟用擴充工作流程(new、continue、ff、verify、sync、bulk-archive、onboard),然後執行 openspec update。
工具目錄參考
| 工具 (ID) | 技能路徑模式 | 命令路徑模式 |
|---|---|---|
Amazon Q Developer (amazon-q) | .amazonq/skills/openspec-*/SKILL.md | .amazonq/prompts/opsx-<id>.md |
Antigravity (antigravity) | .agent/skills/openspec-*/SKILL.md | .agent/workflows/opsx-<id>.md |
Auggie (auggie) | .augment/skills/openspec-*/SKILL.md | .augment/commands/opsx-<id>.md |
IBM Bob Shell (bob) | .bob/skills/openspec-*/SKILL.md | .bob/commands/opsx-<id>.md |
Claude Code (claude) | .claude/skills/openspec-*/SKILL.md | .claude/commands/opsx/<id>.md |
Cline (cline) | .cline/skills/openspec-*/SKILL.md | .clinerules/workflows/opsx-<id>.md |
CodeBuddy (codebuddy) | .codebuddy/skills/openspec-*/SKILL.md | .codebuddy/commands/opsx/<id>.md |
Codex (codex) | .codex/skills/openspec-*/SKILL.md | $CODEX_HOME/prompts/opsx-<id>.md* |
ForgeCode (forgecode) | .forge/skills/openspec-*/SKILL.md | 未產生(無命令適配器;請使用基於技能的 /openspec-* 呼叫) |
Continue (continue) | .continue/skills/openspec-*/SKILL.md | .continue/prompts/opsx-<id>.prompt |
CoStrict (costrict) | .cospec/skills/openspec-*/SKILL.md | .cospec/openspec/commands/opsx-<id>.md |
Crush (crush) | .crush/skills/openspec-*/SKILL.md | .crush/commands/opsx/<id>.md |
Cursor (cursor) | .cursor/skills/openspec-*/SKILL.md | .cursor/commands/opsx-<id>.md |
Factory Droid (factory) | .factory/skills/openspec-*/SKILL.md | .factory/commands/opsx-<id>.md |
Gemini CLI (gemini) | .gemini/skills/openspec-*/SKILL.md | .gemini/commands/opsx/<id>.toml |
GitHub Copilot (github-copilot) | .github/skills/openspec-*/SKILL.md | .github/prompts/opsx-<id>.prompt.md** |
iFlow (iflow) | .iflow/skills/openspec-*/SKILL.md | .iflow/commands/opsx-<id>.md |
Junie (junie) | .junie/skills/openspec-*/SKILL.md | .junie/commands/opsx-<id>.md |
Kilo Code (kilocode) | .kilocode/skills/openspec-*/SKILL.md | .kilocode/workflows/opsx-<id>.md |
Kiro (kiro) | .kiro/skills/openspec-*/SKILL.md | .kiro/prompts/opsx-<id>.prompt.md |
OpenCode (opencode) | .opencode/skills/openspec-*/SKILL.md | .opencode/commands/opsx-<id>.md |
Pi (pi) | .pi/skills/openspec-*/SKILL.md | .pi/prompts/opsx-<id>.md |
Qoder (qoder) | .qoder/skills/openspec-*/SKILL.md | .qoder/commands/opsx/<id>.md |
Qwen Code (qwen) | .qwen/skills/openspec-*/SKILL.md | .qwen/commands/opsx-<id>.toml |
RooCode (roocode) | .roo/skills/openspec-*/SKILL.md | .roo/commands/opsx-<id>.md |
Trae (trae) | .trae/skills/openspec-*/SKILL.md | 未產生(無命令適配器;請使用基於技能的 /openspec-* 呼叫) |
Windsurf (windsurf) | .windsurf/skills/openspec-*/SKILL.md | .windsurf/workflows/opsx-<id>.md |
* Codex 命令安裝在全域 Codex 主目錄中(若已設定 $CODEX_HOME/prompts/,否則為 ~/.codex/prompts/),而非您的專案目錄。
** GitHub Copilot 提示檔案在 IDE 擴充套件(VS Code、JetBrains、Visual Studio)中被識別為自訂斜杠命令。Copilot CLI 目前不會直接使用 .github/prompts/*.prompt.md。
非互動式設定
對於 CI/CD 或腳本化設定,請使用 --tools(並可選擇性使用 --profile):
bash
# 設定特定工具
openspec init --tools claude,cursor
# 設定所有支援的工具
openspec init --tools all
# 跳過工具設定
openspec init --tools none
# 覆蓋此次 init 執行的配置檔案
openspec init --profile core可用的工具 ID (--tools): amazon-q, antigravity, auggie, bob, claude, cline, codex, codebuddy, continue, costrict, crush, cursor, factory, forgecode, gemini, github-copilot, iflow, junie, kilocode, kiro, opencode, pi, qoder, qwen, roocode, trae, windsurf
基於工作流程的安裝
OpenSpec 根據選定的工作流程安裝工作流程產物:
- 核心配置檔案(預設):
propose、explore、apply、archive - 自訂選擇: 所有工作流程 ID 的任意子集:
propose、explore、new、continue、apply、ff、sync、archive、bulk-archive、verify、onboard
換句話說,技能/命令的數量取決於配置檔案和交付方式,並非固定不變。
產生的技能名稱
當透過配置檔案/工作流程設定選定時,OpenSpec 會產生以下技能:
openspec-proposeopenspec-exploreopenspec-new-changeopenspec-continue-changeopenspec-apply-changeopenspec-ff-changeopenspec-sync-specsopenspec-archive-changeopenspec-bulk-archive-changeopenspec-verify-changeopenspec-onboard
請參閱 命令 了解命令行為,以及 CLI 了解 init/update 選項。