What is Agent Integration?
Spec Kit provides a unified framework for integrating with AI coding agents through standardized slash commands and workflows. This integration allows developers to use their preferred AI assistant while maintaining consistent spec-driven development practices across teams.How It Works
When you initialize a Spec Kit project withspecify init, the CLI automatically:
- Creates agent-specific directories - Sets up the correct folder structure for your chosen AI agent (e.g.,
.claude/commands/,.windsurf/workflows/,.github/agents/) - Generates command files - Installs slash commands like
/speckit.specify,/speckit.plan, and/speckit.implementin the appropriate format for your agent - Configures script executables - Sets up shell scripts (bash/PowerShell) that agents can invoke to automate repository operations
- Establishes project structure - Creates the
.specify/directory with templates, memory, and scripts
Agent Categories
Spec Kit supports two primary categories of AI agents:CLI-Based Agents
Require a command-line tool installation. Examples include Claude Code, Gemini CLI, Cursor, opencode, and Amazon Q Developer CLI. These agents typically execute commands through their CLI interface.
IDE-Based Agents
Built into integrated development environments. Examples include GitHub Copilot (VS Code), Windsurf IDE, IBM Bob, and Kilo Code. These agents work within their native IDE environment.
Command File Formats
Different agents use different file formats for their commands:- Markdown (.md)
- TOML (.toml)
- GitHub Copilot (.agent.md)
Used by Claude Code, Cursor, opencode, Windsurf, Codex, Amazon Q, Amp, SHAI, IBM Bob, and Roo Code.Example structure:
- YAML frontmatter with
descriptionfield - Uses
$ARGUMENTSfor argument passing - Script paths use
.specify/prefix - Stored in agent-specific directories (
.claude/commands/,.cursor/commands/, etc.)
Directory Conventions
Each agent follows specific directory conventions for organizing command files:| Agent Type | Directory Pattern | Example |
|---|---|---|
| Standard commands | .<agent>/commands/ | .claude/commands/, .cursor/commands/ |
| Workflows | .<agent>/workflows/ | .windsurf/workflows/, .kilocode/workflows/ |
| Prompts | .<agent>/prompts/ | .codex/prompts/, .amazonq/prompts/ |
| GitHub Copilot | .github/agents/ | .github/agents/ |
| Generic | User-specified | Via --ai-commands-dir flag |
The Spec-Driven Development Workflow
Regardless of which agent you use, all agents follow the same core workflow:Agent Skills (agentskills.io)
Spec Kit supports the agentskills.io specification for installing reusable agent skills. When you initialize a project with the--ai-skills flag:
- Creates an agent-specific
skills/directory (e.g.,.claude/skills/,.gemini/skills/) - Converts each Spec Kit command into a standalone skill with a
SKILL.mdfile - Adds enhanced descriptions and metadata following the agentskills.io spec
- Enables skill discovery and reuse across projects
- Portable skills that work across compatible agents
- Better discoverability through structured metadata
- Version control and sharing of agent capabilities
- Compatibility declarations for project requirements
Choosing the Right Agent
Consider these factors when selecting an AI agent:Development Environment
Development Environment
- VS Code users: GitHub Copilot, Cursor, or Roo Code
- Standalone CLI: Claude Code, Gemini CLI, opencode, or Amazon Q
- Specialized IDEs: Windsurf, IBM Bob, or Kilo Code
Team Consistency
Team Consistency
Choose an agent that your entire team can access and use consistently. This ensures everyone follows the same spec-driven workflow.
Platform Support
Platform Support
- Cross-platform: Most CLI agents work on Linux, macOS, and Windows
- Script preference: Choose
shfor Unix-like systems orpsfor PowerShell environments
Feature Requirements
Feature Requirements
- Custom agents: Use
--ai generic --ai-commands-dir <path>for unsupported agents - Extended capabilities: Some agents offer additional features beyond slash commands
Next Steps
Supported Agents
View the complete list of 15+ supported AI agents with installation links and compatibility notes
Configuration Guide
Learn how to configure projects for different agents and customize the integration