Spec-Driven AI Development Stack
Go from a written spec to working code with AI coding agents
AI coding agents produce better software when they work from a clear specification instead of ad-hoc prompts. This stack pairs Spec Kit's structured process with a coding agent, tool access through MCP, automated quality gates and CI, so every feature moves from spec to plan to tasks to reviewed, tested code.
How the stack fits together
STEP 1 / 7
Start from a spec
Spec Kit starts every feature with a written specification. You set project principles once with a constitution, then describe what to build and why, instead of prompting ad hoc.
/speckit-constitution Create principles focused on code quality and testing.
/speckit-specify Build a photo organizer with albums grouped by date.- Start from a spec. Spec Kit starts every feature with a written specification. You set project principles once with a constitution, then describe what to build and why, instead of prompting ad hoc.
- Plan and break down the work. Your coding agent, such as GitHub Copilot or Cursor, turns the spec into a technical plan and a list of tasks. Spec Kit supports many agents, so the same specs work if you switch.
- Give the agent tools. The Model Context Protocol connects the agent to files, repositories and databases through a standard interface, so it works with real context instead of guesses.
- Implement and test. The agent works through the tasks, writing code and tests. You review each result before moving on, so a person stays in charge of what is accepted.
- Open a pull request. Changes go through a normal pull request, so agent-written code gets the same review as anyone else's.
- Gate it in CI. GitHub Actions runs the checks on every pull request. SonarQube looks for bugs, code smells and vulnerabilities in the new code, and Trivy scans dependencies and images for known vulnerabilities.
- Recap. A spec gives the agent direction, and automated gates check what it produces.

Spec Kit
Provides the constitution, specify, plan, tasks and implement workflow, so the agent builds from a reviewed specification and every decision is documented.

GitHub Copilot
Spec Kit has a built-in Copilot integration, so the slash-command workflow runs directly in your editor chat.

Cursor
An AI-native editor you can use in place of Copilot. Spec Kit supports many agents, so the same specs work if you switch.

Model Context Protocol
The Model Context Protocol lets the agent reach files, repositories and databases through a standard interface instead of custom glue code.

GitHub Actions
Runs tests and linters on every pull request, so agent-written code is verified automatically before merge.

SonarQube
Catches bugs, code smells and vulnerabilities that AI-generated code can introduce, enforcing the quality principles set in your constitution.

Trivy
Scans dependencies and container images for known vulnerabilities, a check agents often skip when adding packages.