GitHub Spec Kit
GitHub Spec Kit (spec-kit) is an open-source framework developed by GitHub to bring structured Spec-Driven Development (SDD) into modern AI coding workflows. Instead of relying on unguided “vibe coding,” Spec Kit establishes a repeatable, multi-step pipeline—spanning project constitutions, specifications, technical plans, and task breakdowns—that works across coding agents like GitHub Copilot, Claude Code, Cursor, and Gemini CLI.
As AI coding agents take on larger software engineering tasks, uncontrolled code generation often leads to hallucinations, technical debt, and architectural drift. GitHub Spec Kit solves this by shifting the source of truth from raw prompts to a formal, executable specification. The developer acts as the architect and evaluator, steering the process while the AI handles the documentation generation and code implementation.
Core Workflow & Slash Commands
| Step / Command | Artifact Created | Primary Purpose |
/speckit.constitution |
constitution.md |
Sets non-negotiable project guardrails (e.g., security standards, testing mandates, architectural patterns). |
/speckit.specify |
spec.md |
Defines the “what” and “why” of a feature in plain language without premature tech stack decisions. |
/speckit.clarify |
Refined spec.md |
Queries the user to resolve ambiguities and edge cases before coding begins. |
/speckit.plan |
plan.md |
Establishes the “how”—tech stack, data models, APIs, and design architecture. |
/speckit.tasks |
tasks.md |
Converts the technical plan into dependency-ordered, actionable work items. |
/speckit.implement |
Production Code | Instructs the AI coding agent to execute tasks sequentially against defined checklists. |
/speckit.converge |
Validation Report | Verifies the codebase against the original spec and appends missing tasks until converged. |
Key Advantages for Developers and Teams
-
Separation of “What” vs. “How”:Keeps business logic and user acceptance criteria independent of frameworks, allowing architectural exploration or full stack rewrites without losing product context.
-
Universal Agent Compatibility:Spec Kit is not locked into a single ecosystem. It supports over 30 coding agent interfaces, including Claude Code, Cursor, Copilot CLI, Gemini CLI, and custom agent runtimes.
-
Fast CLI Bootstrapping:Installed easily via Python tool managers (
uvorpipx), thespecifycommand bootstraps project folders (.specify/) with complete template harnesses in seconds. -
Eliminates Context Drift:Because requirements, API contracts, and design rules live in structured files within the repository, agents maintain state across long-running sessions and multi-day coding tasks.
