mirror of
https://github.com/github/spec-kit.git
synced 2026-08-03 06:26:30 +08:00
* docs(scripts): document the 'py' script type and sh/ps migration plan (#3284) Bring remaining docs up to date with the Python (`py`) workflow-script variant introduced in #3277, and record the retention/deprecation plan for the shell variants. - AGENTS.md: document the `scripts:` frontmatter (sh/ps/py), clarify the `{SCRIPT}` placeholder resolution, and add a "Script Types and Migration" section (why py is recommended, defaults, phased sh/ps deprecation path). Note the Python agent-context variant. - docs/quickstart.md, docs/local-development.md: mention the `py` variant and `--script sh|ps|py`. - docs/reference/integrations.md: add `py` to the `--script` rows for install/switch/upgrade. - .devcontainer/devcontainer.json: auto-approve `.specify/scripts/python/`. Closes #3284. Assisted-by: GitHub Copilot (model: Claude Opus 4.8, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 298d6ec2-a330-49bc-9394-fe2b77f25ff3 * docs(scripts): address review — accurate paths, prompt behavior, scoped py claims Addresses the review on PR #3653: - AGENTS.md: fix the agent-context Python path to its real `extensions/agent-context/scripts/python/` location. - AGENTS.md: qualify that only templates that invoke a helper script carry `scripts:` frontmatter (constitution/specify do not). - AGENTS.md: narrow the availability claim — `py` covers the core command templates; the bundled extensions ship Python scripts on disk but their command templates still invoke shell variants, so `--script py` does not yet route extension commands to Python. - AGENTS.md / quickstart / local-development: describe the interactive prompt vs. non-interactive OS default instead of "auto-selects". - local-development: add `--script py` to the wrong-script-type fix. Assisted-by: GitHub Copilot (model: Claude Opus 4.8, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 298d6ec2-a330-49bc-9394-fe2b77f25ff3 * docs(scripts): trim deprecation timeline, correct parity/scope claims (review) Addresses the second review on PR #3653: - Remove the speculative four-phase deprecation timeline from AGENTS.md. A forward-looking removal schedule is roadmap content, not contributor guidance, and its phases lacked an actionable adoption signal. Replace it with the concrete contributor parity rule plus a one-line current-posture note pointing removal work to the #3277 epic. - Stop stating dual-maintenance as already eliminated: reframe "single source of truth" as the intended direction, noting all three variants are still maintained in parallel today. - Correct the parity-coverage claim: Python ports have output-parity tests where the contract is stdout-based and unit tests elsewhere, rather than every file being compared to every shell counterpart. - Scope the `scripts:` frontmatter rule to core command templates and note the agent-context/git extension templates don't use it yet. Assisted-by: GitHub Copilot (model: Claude Opus 4.8, autonomous) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 298d6ec2-a330-49bc-9394-fe2b77f25ff3 --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
303 lines
26 KiB
Markdown
303 lines
26 KiB
Markdown
# Supported AI Coding Agent Integrations
|
|
|
|
The Specify CLI supports a wide range of AI coding agents. When you run `specify init`, the CLI sets up the appropriate command files and directory structures for your chosen AI coding agent — so you can start using Spec-Driven Development immediately, regardless of which tool you prefer.
|
|
|
|
## Supported AI Coding Agents
|
|
|
|
| Agent | Key | Notes |
|
|
| ------------------------------------------------------------------------------------ | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
| [Amp](https://ampcode.com/) | `amp` | |
|
|
| [Antigravity (agy)](https://antigravity.google/) | `agy` | Skills-based integration; skills are installed automatically |
|
|
| [Auggie CLI](https://docs.augmentcode.com/cli/overview) | `auggie` | |
|
|
| [Claude Code](https://www.anthropic.com/claude-code) | `claude` | Skills-based integration; installs skills in `.claude/skills` |
|
|
| [Cline](https://github.com/cline/cline) | `cline` | IDE-based agent |
|
|
| [CodeBuddy CLI](https://www.codebuddy.cn/docs/cli/installation) | `codebuddy` | |
|
|
| [Codex CLI](https://github.com/openai/codex) | `codex` | Skills-based integration; installs skills into `.agents/skills` and invokes them as `$speckit-<command>` |
|
|
| [Cursor](https://cursor.sh/) | `cursor-agent` | |
|
|
| [Devin for Terminal](https://cli.devin.ai/docs) | `devin` | Skills-based integration; installs skills into `.devin/skills/` and invokes them as `/speckit-<command>` |
|
|
| [Factory Droid](https://docs.factory.ai/cli/getting-started/overview) | `droid` | Skills-based integration; installs skills into `.factory/skills/` and invokes them as `/speckit-<command>` |
|
|
| [Firebender](https://firebender.com/) | `firebender` | IDE-based agent for Android Studio / IntelliJ |
|
|
| [Forge](https://forgecode.dev/) | `forge` | |
|
|
| [Gemini CLI](https://github.com/google-gemini/gemini-cli) | `gemini` | |
|
|
| [GitHub Copilot](https://code.visualstudio.com/) | `copilot` | Defaults to legacy markdown mode: `.agent.md` command files under `.github/agents/`, companion `.prompt.md` files under `.github/prompts/`, and a `.vscode/settings.json` merge. Pass `--integration-options="--skills"` to scaffold skills as `speckit-<command>/SKILL.md` under `.github/skills/` instead. Legacy markdown mode is deprecated and will stop being the default in a future release. |
|
|
| [Goose](https://goose-docs.ai/) | `goose` | Uses YAML recipe format in `.goose/recipes/` |
|
|
| [Grok Build](https://docs.x.ai/build/overview) | `grok` | Skills-based integration; installs skills into `.grok/skills` and invokes them as `/speckit-<command>` |
|
|
| [Hermes](https://github.com/NousResearch/hermes-agent) | `hermes` | Skills-based integration; installs skills globally into `~/.hermes/skills/` |
|
|
| [IBM Bob](https://www.ibm.com/products/bob) | `bob` | Skills-based integration by default; installs skills as `speckit-<command>/SKILL.md` under `.bob/skills/` and invokes them as `/speckit-<command>`. Pass `--integration-options="--legacy-commands"` to scaffold the deprecated Bob 1.x layout (`.bob/commands/*.md`) instead; that flag will be removed in a future release. Existing legacy installs can migrate with `specify integration upgrade bob --integration-options="--skills"`, which converts them to the skills layout and removes the old command files. If preset overrides are installed, the migration is rejected with an actionable error (preset artifacts cannot yet be reconciled across a layout change) — remove the preset(s), migrate, then reinstall them. |
|
|
| [Junie](https://junie.jetbrains.com/) | `junie` | |
|
|
| [Kilo Code](https://github.com/Kilo-Org/kilocode) | `kilocode` | |
|
|
| [Kimi Code](https://code.kimi.com/) | `kimi` | Skills-based integration; installs into `.kimi-code/skills/`. `--migrate-legacy` moves old `.kimi/skills/` installs to the new paths |
|
|
| [Kiro CLI](https://kiro.dev/docs/cli/) | `kiro-cli` | Kiro CLI does not substitute `$ARGUMENTS` in file-based prompts, so Spec Kit ships a prose fallback at render time (see [Manage prompts](https://kiro.dev/docs/cli/chat/manage-prompts/) and issue [#1926](https://github.com/github/spec-kit/issues/1926)). Alias: `--integration kiro` |
|
|
| [Lingma](https://lingma.aliyun.com/) | `lingma` | Skills-based integration; skills are installed automatically |
|
|
| [Mistral Vibe](https://github.com/mistralai/mistral-vibe) | `vibe` | |
|
|
| [Oh My Pi](https://www.npmjs.com/package/@oh-my-pi/pi-coding-agent) | `omp` | Installs slash commands into `.omp/commands` |
|
|
| [opencode](https://opencode.ai/) | `opencode` | |
|
|
| [Pi Coding Agent](https://pi.dev) | `pi` | Pi doesn't have MCP support out of the box, so `taskstoissues` won't work as intended. MCP support can be added via [extensions](https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent#extensions) |
|
|
| [Qoder CLI](https://qoder.com/cli) | `qodercli` | |
|
|
| [Qwen Code](https://github.com/QwenLM/qwen-code) | `qwen` | |
|
|
| [RovoDev](https://www.atlassian.com/software/rovo-dev) | `rovodev` | Generates `.rovodev/skills/`, prompt wrappers, and `prompts.yml`; runtime dispatch uses `acli rovodev` |
|
|
| [SHAI (OVHcloud)](https://github.com/ovh/shai) | `shai` | |
|
|
| [Tabnine CLI](https://docs.tabnine.com/main/getting-started/tabnine-cli) | `tabnine` | |
|
|
| [Trae](https://www.trae.ai/) | `trae` | Skills-based integration; skills are installed automatically |
|
|
| [ZCode](https://zcode.z.ai/) | `zcode` | Skills-based integration; installs skills into `.zcode/skills/` and invokes them as `$speckit-<command>` |
|
|
| [Zed](https://zed.dev/) | `zed` | Skills-based integration; installs skills into `.agents/skills` and invokes them as `/speckit-<command>` |
|
|
| Generic | `generic` | Bring your own agent — use `--integration generic --integration-options="--commands-dir <path>"` for AI coding agents not listed above |
|
|
|
|
## List Available Integrations
|
|
|
|
```bash
|
|
specify integration list
|
|
```
|
|
|
|
| Option | Description |
|
|
| ----------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
| `--catalog` | Also browse the catalog (built-in **and** community). Community integrations that are not built in are only shown here. |
|
|
|
|
Shows the built-in integrations, which one is currently installed, and whether each requires a CLI tool or is IDE-based.
|
|
When multiple integrations are installed, the list marks the default integration separately from the other installed integrations.
|
|
The list also shows whether each built-in integration is declared multi-install safe.
|
|
|
|
## Search Available Integrations
|
|
|
|
```bash
|
|
specify integration search [query]
|
|
```
|
|
|
|
| Option | Description |
|
|
| ---------- | ------------------ |
|
|
| `--tag` | Filter by tag |
|
|
| `--author` | Filter by author |
|
|
|
|
Searches the active catalog stack for integrations matching the query. Without a query, lists all available integrations. Must be run inside a Spec Kit project.
|
|
|
|
## Integration Info
|
|
|
|
```bash
|
|
specify integration info <integration_id>
|
|
```
|
|
|
|
Shows catalog details for a single integration, including its description, author, license, tags, source catalog, repository (when available), and whether it is currently active. Must be run inside a Spec Kit project.
|
|
|
|
## Install an Integration
|
|
|
|
```bash
|
|
specify integration install <key>
|
|
```
|
|
|
|
| Option | Description |
|
|
| ------------------------ | ------------------------------------------------------------------------ |
|
|
| `--script sh\|ps\|py` | Script type: `sh` (bash/zsh), `ps` (PowerShell), or `py` (Python) |
|
|
| `--force` | Opt in to installing alongside integrations that are not declared multi-install safe |
|
|
| `--integration-options` | Integration-specific options (e.g. `--integration-options="--commands-dir .myagent/cmds"`) |
|
|
|
|
Installs the specified integration into the current project. If another integration is already installed, the command only proceeds automatically when all involved integrations are declared multi-install safe. Otherwise, use `switch` to replace the default integration or pass `--force` to explicitly opt in to multi-install. If the installation fails partway through, it automatically rolls back to a clean state.
|
|
|
|
Installing an additional integration does not change the default integration. Use `specify integration use <key>` to change the default.
|
|
|
|
> **Note:** All integration management commands require a project already initialized with `specify init`. To start a new project with a specific agent, use `specify init <project> --integration <key>` instead.
|
|
|
|
**Version note:** Controlled multi-install support was introduced in Spec Kit 0.8.5. If `specify integration install <key>` says another integration is already installed and only suggests `switch` or `uninstall`, check your local CLI with `specify version` and upgrade it. Running a one-shot command such as `uvx --from git+https://github.com/github/spec-kit.git specify ...` uses a temporary copy for that command only; it does not update the persistent `specify` executable on your `PATH`.
|
|
|
|
## Uninstall an Integration
|
|
|
|
```bash
|
|
specify integration uninstall [<key>]
|
|
```
|
|
|
|
| Option | Description |
|
|
| --------- | --------------------------------------------------- |
|
|
| `--force` | Remove files even if they have been modified |
|
|
|
|
Uninstalls the current integration (or the specified one). Spec Kit tracks every file created during install along with a SHA-256 hash of the original content:
|
|
|
|
- **Unmodified files** are removed automatically.
|
|
- **Modified files** (where you've made manual edits) are preserved so your customizations are not lost.
|
|
- Use `--force` to remove all integration files regardless of modifications.
|
|
|
|
## Switch to a Different Integration
|
|
|
|
```bash
|
|
specify integration switch <key>
|
|
```
|
|
|
|
| Option | Description |
|
|
| ------------------------ | ------------------------------------------------------------------------ |
|
|
| `--script sh\|ps\|py` | Script type: `sh` (bash/zsh), `ps` (PowerShell), or `py` (Python) |
|
|
| `--force` | Force removal of modified files during uninstall; when the target is already installed, overwrite managed shared templates while changing the default |
|
|
| `--refresh-shared-infra` | Also overwrite shared infrastructure files even if you customized them (otherwise customizations are preserved) |
|
|
| `--integration-options` | Options for the target integration when it is not already installed |
|
|
|
|
If the target integration is not already installed, equivalent to running `uninstall` followed by `install` in a single step. In this mode, `--force` controls whether modified files from the removed integration are deleted. If the target integration is already installed, `switch` only changes the default integration, like `use`; in this mode, `--force` controls whether managed shared templates are overwritten while the default changes. `--integration-options` is rejected for already-installed targets because changing integration options requires reinstalling managed files; run `upgrade <key> --integration-options ...` first, then `use <key>`.
|
|
|
|
## Use an Installed Integration
|
|
|
|
```bash
|
|
specify integration use <key>
|
|
```
|
|
|
|
| Option | Description |
|
|
| --------- | --------------------------------------------------- |
|
|
| `--force` | Overwrite managed shared templates while changing the default |
|
|
|
|
Sets the default integration without uninstalling any other installed integrations. This also refreshes managed shared templates so command references match the new default integration's invocation style. Modified or untracked shared templates are preserved unless `--force` is used.
|
|
|
|
## Upgrade an Integration
|
|
|
|
```bash
|
|
specify integration upgrade [<key>]
|
|
```
|
|
|
|
| Option | Description |
|
|
| ------------------------ | ------------------------------------------------------------------------ |
|
|
| `--force` | Overwrite files even if they have been modified |
|
|
| `--script sh\|ps\|py` | Script type: `sh` (bash/zsh), `ps` (PowerShell), or `py` (Python) |
|
|
| `--integration-options` | Options for the integration |
|
|
|
|
Reinstalls an installed integration with updated templates and commands (e.g., after upgrading Spec Kit). Defaults to the default integration; if a key is provided, it must be one of the installed integrations. Detects locally modified files and blocks the upgrade unless `--force` is used. Stale files from the previous install that are no longer needed are removed automatically. Shared templates stay aligned with the default integration even when upgrading a non-default integration.
|
|
|
|
## Report Integration Status
|
|
|
|
```bash
|
|
specify integration status
|
|
specify integration status --json
|
|
```
|
|
|
|
Reports the current project's integration status without changing files. The
|
|
status report includes the default integration, installed integrations,
|
|
multi-install safety, missing managed files, modified managed files, invalid
|
|
manifest paths, shared Spec Kit infrastructure health, unchecked manifests, and
|
|
the target integration for default-sensitive shared templates. The JSON form is
|
|
intended for CI and coding agents that need stable machine-readable status data;
|
|
it also reports the raw recorded integrations and the integration manifests that
|
|
were checked when state repair heuristics differ from the recorded file.
|
|
The command exits 0 when the report status is `ok` or `warning`; it exits 1
|
|
only when the report status is `error`. In JSON output, `multi_install_safe`
|
|
is `null` when no installed integration set can be evaluated, such as when the
|
|
integration state is missing, unreadable, lacks a valid recorded integration
|
|
list, or records no installed integrations.
|
|
|
|
## Catalog Management
|
|
|
|
Integration catalogs control where the discovery commands (`search` and `info`) look for integrations. Catalogs are checked in priority order.
|
|
|
|
### List Catalogs
|
|
|
|
```bash
|
|
specify integration catalog list
|
|
```
|
|
|
|
Shows the active catalog sources. Project-level sources (when configured) are removable by index; otherwise the active sources are shown as non-removable.
|
|
|
|
### Add a Catalog
|
|
|
|
```bash
|
|
specify integration catalog add <url>
|
|
```
|
|
|
|
| Option | Description |
|
|
| --------------- | ----------------------------- |
|
|
| `--name <name>` | Optional name for the catalog |
|
|
|
|
Adds a custom catalog URL to the project's `.specify/integration-catalogs.yml`. The URL must use HTTPS (except `http://localhost`, `http://127.0.0.1`, or `http://[::1]` for local testing).
|
|
|
|
### Remove a Catalog
|
|
|
|
```bash
|
|
specify integration catalog remove <index>
|
|
```
|
|
|
|
Removes a project catalog source by its 0-based index in `catalog list`.
|
|
|
|
### Catalog Resolution Order
|
|
|
|
Catalogs are resolved in this order (first match wins):
|
|
|
|
1. **Environment variable** — `SPECKIT_INTEGRATION_CATALOG_URL` overrides all catalogs
|
|
2. **Project config** — `.specify/integration-catalogs.yml`
|
|
3. **User config** — `~/.specify/integration-catalogs.yml`
|
|
4. **Built-in defaults** — official catalog + community catalog
|
|
|
|
## Integration-Specific Options
|
|
|
|
Some integrations accept additional options via `--integration-options`:
|
|
|
|
| Integration | Option | Description |
|
|
| ----------- | ------------------- | -------------------------------------------------------------- |
|
|
| `generic` | `--commands-dir` | Required. Directory for command files |
|
|
| `kimi` | `--migrate-legacy` | Migrate legacy `.kimi/skills/` installs to `.kimi-code/skills/` (including dotted→hyphenated skill naming, e.g. `speckit.xxx` → `speckit-xxx`) |
|
|
| `copilot` | `--skills` | Scaffold commands as agent skills (`speckit-<command>/SKILL.md` under `.github/skills/`, invoked as `/speckit-<command>`) instead of the default legacy markdown mode (`.github/agents/*.agent.md` plus `.github/prompts/*.prompt.md` and a `.vscode/settings.json` merge). Without this flag, install warns that legacy markdown mode is deprecated. |
|
|
|
|
Example:
|
|
|
|
```bash
|
|
specify integration install generic --integration-options="--commands-dir .myagent/cmds"
|
|
```
|
|
|
|
## Scaffold a New Integration
|
|
|
|
```bash
|
|
specify integration scaffold <key>
|
|
```
|
|
|
|
Creates a minimal built-in integration package and a matching test skeleton in the Spec Kit repository, then prints the next steps for wiring it up. Run this command from the Spec Kit repository root. The `<key>` must be lowercase kebab-case (for example, `my-agent`).
|
|
|
|
| Option | Description |
|
|
| -------- | ---------------------------------------------------------------- |
|
|
| `--type` | Scaffold template to use: `markdown` (default), `skills`, `toml`, or `yaml` |
|
|
|
|
## FAQ
|
|
|
|
### Can I install multiple integrations in the same project?
|
|
|
|
Yes, but it is intended for team portability rather than the default workflow. Multiple integrations are allowed automatically only when the installed integration and the new integration are declared multi-install safe by Spec Kit. For other combinations, pass `--force` to acknowledge that multiple agents may see unrelated agent-specific instructions or commands.
|
|
|
|
Spec Kit tracks one default integration in `.specify/integration.json` with `default_integration`, all installed integrations with `installed_integrations`, per-integration runtime settings with `integration_settings`, and a dedicated `integration_state_schema` for future state migrations. The legacy `integration` field remains as an alias for the default integration.
|
|
|
|
### Which integrations are multi-install safe?
|
|
|
|
An integration is multi-install safe when it uses a static, unique agent root and command directory, stable command invocation settings, and a separate install manifest whose managed files do not overlap another safe integration. Registry tests enforce those path and manifest invariants. Shared Spec Kit templates remain aligned to the single default integration.
|
|
|
|
The Isolation column below lists paths Spec Kit manages for that integration (skills/commands roots and any integration-owned rule files). It is not a full inventory of every file an agent may read.
|
|
|
|
**Agent-context defaults are separate.** The optional agent-context extension maps each integration to a default context file in `extensions/agent-context/agent-context-defaults.json`. Those defaults are independent of multi-install safety: several agents may share a root file such as `AGENTS.md` when the extension is enabled. Multi-install safety does not require a unique context file per safe integration.
|
|
|
|
The currently declared multi-install safe integrations are:
|
|
|
|
| Key | Isolation |
|
|
| --- | --------- |
|
|
| `auggie` | `.augment/commands`, `.augment/rules/specify-rules.md` |
|
|
| `claude` | `.claude/skills`, `CLAUDE.md` |
|
|
| `cline` | `.clinerules/workflows`, `.clinerules/specify-rules.md` |
|
|
| `codebuddy` | `.codebuddy/commands`, `CODEBUDDY.md` |
|
|
| `codex` | `.agents/skills`, `AGENTS.md` |
|
|
| `cursor-agent` | `.cursor/skills`, `.cursor/rules/specify-rules.mdc` |
|
|
| `firebender` | `.firebender/commands`, `.firebender/rules/specify-rules.mdc` |
|
|
| `gemini` | `.gemini/commands`, `GEMINI.md` |
|
|
| `grok` | `.grok/skills` |
|
|
| `junie` | `.junie/commands`, `.junie/AGENTS.md` |
|
|
| `kilocode` | `.kilocode/workflows`, `.kilocode/rules/specify-rules.md` |
|
|
| `qodercli` | `.qoder/commands`, `QODER.md` |
|
|
| `qwen` | `.qwen/commands`, `QWEN.md` |
|
|
| `shai` | `.shai/commands`, `SHAI.md` |
|
|
| `tabnine` | `.tabnine/agent/commands`, `TABNINE.md` |
|
|
| `trae` | `.trae/skills`, `.trae/rules/project_rules.md` |
|
|
| `zcode` | `.zcode/skills`, `ZCODE.md` |
|
|
|
|
Integrations that share a command directory with another integration, require dynamic install paths such as `--commands-dir`, or merge shared tool settings are not declared safe by default. They can still be installed alongside another integration with `--force`.
|
|
|
|
### What happens to my changes when I uninstall or switch?
|
|
|
|
Files you've modified are preserved automatically. Only unmodified files (matching their original SHA-256 hash) are removed. Use `--force` to override this.
|
|
|
|
### How do I know which key to use?
|
|
|
|
Run `specify integration list` to see all available integrations with their keys, or check the [Supported AI Coding Agents](#supported-ai-coding-agents) table above.
|
|
|
|
### Do I need the AI coding agent installed to use an integration?
|
|
|
|
CLI-based integrations (like Claude Code, Gemini CLI) require the tool to be installed. IDE-based integrations (like Cursor) work through the IDE itself. Some agents like GitHub Copilot support both IDE and CLI usage. `specify integration list` shows which type each integration is.
|
|
|
|
### When should I use `upgrade` vs `switch`?
|
|
|
|
Use `upgrade` when you've upgraded Spec Kit and want to refresh an installed integration's managed files. Use `switch` when you want to replace the current default with another integration; if the target is already installed, `switch` behaves like `use`.
|