Spec Kit: spec-driven development for beginners¶
Spec Kit is an open-source toolkit from GitHub (github/spec-kit, MIT licence). It gives an AI coding agent such as Claude Code, GitHub Copilot, Gemini CLI or Cursor a fixed process to follow, so it doesn't have to guess from one long prompt.
If you are new to software development, read this page from top to bottom once. Then keep the cheat sheet at the end open while you work.
The problem it solves¶
Most people start with an AI coding agent by typing something like:
"Build me a photo album app."
The agent has to guess at hundreds of things: who uses the app, what happens when an album is empty, which language and database to use, how to test it. Some of the guesses will be wrong, and you usually don't find out until code is already written. This style is sometimes called vibe coding.
Spec-driven development (SDD) reverses the order. You first write down what you want and why. Then you decide how to build it, break that into tasks, and only after that write code. Each step produces a Markdown file that the next step reads.
"Define what to build and why, then turn the specification into a plan, tasks, and working code." — Spec Kit docs
Building a house works the same way. Nobody pours concrete before there is a floor plan. The spec is the description of the house you want ("3 bedrooms, lots of light, a garden"), the plan is the architect's drawing, the tasks are the builder's schedule, and the code is the actual building.
Key words¶
| Term | What it means |
|---|---|
| Spec (specification) | A plain-English description of a feature: who it is for, what it must do, and how you know it works. No technology choices. |
| Plan | The technical design: language, framework, database, structure. |
| Tasks | The plan broken into small, ordered steps the agent can do one by one. |
| Constitution | Your project's rules that every feature must follow, for example "always write tests first". |
| AI coding agent | A tool that reads and writes code for you (Claude Code, Copilot, Gemini CLI, Cursor and others). |
| Slash command | A command you type in the agent's chat that starts with /, such as /speckit.specify. |
specify | The command-line program (CLI) that installs Spec Kit into a project. |
How the workflow fits together¶
flowchart TD
C["/speckit.constitution<br/>project rules, run once"] --> S["/speckit.specify<br/>what and why"]
S --> CL["/speckit.clarify<br/>optional: answer open questions"]
CL --> P["/speckit.plan<br/>how: tech stack and design"]
P --> CK["/speckit.checklist<br/>optional: check requirement quality"]
CK --> T["/speckit.tasks<br/>ordered task list"]
T --> A["/speckit.analyze<br/>optional: consistency check"]
A --> I["/speckit.implement<br/>agent writes the code"]
I --> V["/speckit.converge<br/>does the code match the spec?"]
V -->|"tasks appended"| I
V -->|"converged"| D["Feature done"]
S -.->|"skip"| P
P -.->|"skip"| T
T -.->|"skip"| I Dashed arrows show where you can skip an optional step.
The minimum path is constitution (once) → specify → plan → tasks → implement → converge. The optional steps (clarify, checklist, analyze) are quality gates. They are worth using once you are comfortable with the basics.
Step 0: prerequisites¶
You need:
- Python 3.11 or newer. Check with
python3 --version. - uv, a fast Python package manager. This is the recommended way to install Spec Kit;
pipxalso works. - An AI coding agent, for example Claude Code, GitHub Copilot in VS Code, Gemini CLI or Cursor.
- Git is optional, but strongly recommended so you can undo mistakes. Every developer should learn it early.
- Linux, macOS or Windows. Windows works with PowerShell; you don't need WSL.
Install uv if you don't have it:
# Windows PowerShell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Step 1: install the specify CLI¶
To install an exact release from GitHub instead, which the docs recommend for reproducible setups:
# replace vX.Y.Z with a real release tag, keeping the leading "v"
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git@vX.Y.Z
Check that it worked:
specify version # prints the installed version
specify check # scans your machine for the tools Spec Kit can use
Already installed?
Running uv tool install specify-cli again does not upgrade it. Use specify self upgrade instead.
Other ways to install¶
uvx runs Spec Kit once without adding a specify command to your PATH. This is good for a quick try.
uvx --from git+https://github.com/github/spec-kit.git specify init my-project
# pin a release
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init my-project
# set up in the current folder
uvx --from git+https://github.com/github/spec-kit.git specify init --here --integration copilot
On a machine with internet, using the same OS and Python version as the target machine:
git clone https://github.com/github/spec-kit.git
cd spec-kit
pip install build
python -m build --wheel --outdir dist/
pip download -d dist/ dist/specify_cli-*.whl
Copy the whole dist/ folder to the offline machine, then run:
pip install --no-index --find-links=./dist specify-cli
specify init my-project --integration copilot
The built-in integrations and bundled components work offline. Installing anything from a catalog needs network access, or the files copied over.
Managing a uv install: uv tool list shows installed tools, uv tool upgrade specify-cli upgrades it, and uv tool uninstall specify-cli removes it.
Step 2: create a project¶
Create a new project folder and tell Spec Kit which agent you use:
Replace claude with your agent, for example copilot, gemini or codex (see the full list of supported agents). If you leave out --integration in an interactive terminal, Spec Kit asks you to pick one. In a non-interactive run such as CI, it uses GitHub Copilot by default.
Useful options for specify init:
| Option | What it does |
|---|---|
--integration <agent> | Which AI agent to set up commands for. |
--here | Set up Spec Kit in the current folder instead of creating a new one. |
--script sh, ps or py | Which helper scripts to use. The default is sh on Linux/macOS and ps (PowerShell) on Windows. |
--force | Don't ask before writing into a non-empty folder. Commit or back up your work first. |
--ignore-agent-tools | Skip the check that your agent is installed. |
--non-interactive | Never stop to ask questions (for CI or scripts). |
Old tutorials
Older blog posts and videos use specify init --ai claude. Current versions use --integration instead.
What gets created¶
my-project/
├── .specify/
│ ├── memory/
│ │ └── constitution.md # your project rules
│ ├── scripts/ # helper scripts (bash, powershell or python)
│ ├── templates/ # templates for spec, plan and tasks files
│ ├── feature.json # which feature you are working on now
│ └── integration.json # which agents are installed
├── .claude/skills/ # agent commands (folder name depends on your agent)
└── specs/ # created when you write your first spec
└── 001-photo-albums/
├── spec.md
├── plan.md
├── tasks.md
└── checklists/
Each new feature gets its own numbered folder under specs/ (001-..., 002-...). Those Markdown files are the record of what you decided and why. Commit them to Git together with the code.
Step 3: open your agent in the project¶
Start your AI agent inside the project folder, for example by running claude in the terminal or opening the folder in VS Code with Copilot.
Chat, not terminal
The /speckit... commands are typed in the agent's chat box, not in your shell. Typing them in bash does nothing.
Dot or dash?
The docs write commands as /speckit.specify. Some agents use a dash instead: GitHub Copilot uses /speckit-specify, and Codex uses $speckit-specify. Type /speckit in your agent and let autocomplete show you the right form.
Step 4: walk through one feature¶
This walkthrough uses the photo-album example from the official docs. Run one command at a time and read what the agent produced before moving on. Reviewing the agent's output at each step is what makes the process work.
4.1 /speckit.constitution: set the rules (once per project)¶
The constitution holds principles that every later step is checked against. It is saved in .specify/memory/constitution.md.
/speckit.constitution Create principles focused on code quality, testing standards,
user experience consistency, and performance requirements.
Beginner tip: keep it short. Five clear rules you actually follow beat twenty you ignore. Good starter rules:
- Every feature has automated tests.
- Keep dependencies to a minimum.
- Code must be readable by a junior developer.
4.2 /speckit.specify: describe what and why¶
Describe the feature as if explaining it to a friend. Don't mention languages, frameworks or databases yet.
/speckit.specify Build an application that can help me organize my photos in separate
photo albums. Albums are grouped by date and can be re-organized by dragging and
dropping on the main page. Albums are never in other nested albums. Within each album,
photos are previewed in a tile-like interface.
The agent creates specs/001-.../spec.md with user stories, requirements and acceptance criteria, plus a requirements checklist.
Read spec.md carefully. Is anything missing or wrong? Tell the agent and have it fix the spec now. Changing one sentence is much cheaper than changing code later.
4.3 /speckit.clarify (optional): let the agent ask questions¶
The agent looks for gaps in the spec and asks you up to five targeted questions. Your answers are written back into spec.md.
/speckit.clarify Focus on what happens when a photo is in two albums and how deleting an album works.
Beginners should use this step. The questions show you what an experienced developer would have asked.
4.4 /speckit.plan: decide how to build it¶
Now you choose the technology.
/speckit.plan The application uses Vite with minimal number of libraries. Use vanilla
HTML, CSS, and JavaScript as much as possible. Images are not uploaded anywhere and
metadata is stored in a local SQLite database.
The agent writes plan.md with the architecture and design decisions, and checks them against your constitution. Spec Kit's methodology document also describes supporting design files that can appear next to plan.md:
| File | What it holds |
|---|---|
research.md | Research notes, for example a comparison of libraries. |
data-model.md | The data the app stores and how the pieces relate. |
contracts/ | API definitions: endpoints, events, request and response shapes. |
quickstart.md | Key scenarios for checking that the feature works. |
Which of these appear depends on the feature and the Spec Kit version. Don't worry if some are missing. /speckit.tasks reads plan.md and uses the others if they exist.
If you don't know which stack to choose, ask the agent in normal chat first, for example "Which simple stack would you recommend for a beginner building this?", and then pass your choice to /speckit.plan.
4.5 /speckit.checklist (optional): test the requirements¶
This generates checklists that act as "unit tests for your requirements". They check whether the spec is clear, complete and testable. A ticked box [x] means a reviewer (you) judged that the requirement is good enough. It does not mean the code is done.
4.6 /speckit.tasks: break it into steps¶
The agent creates tasks.md, ordered by dependency and grouped into phases:
- Setup: project scaffolding.
- Foundational: shared pieces such as the data model.
- One phase per user story, in priority order.
- Polish: clean-up and finishing touches.
Tasks that can run at the same time are marked as parallel.
4.7 /speckit.analyze (optional): check everything agrees¶
A read-only check that spec.md, plan.md and tasks.md are consistent with each other. It catches things like a requirement that no task covers. Run it before you implement.
4.8 /speckit.implement: write the code¶
The agent works through tasks.md in order. If any checklist items are still unticked, it asks before it starts.
You don't have to build everything at once. Doing it in phases is easier to review:
/speckit.implement Implement only the Setup and Foundational phases. Stop before the
user-story features.
After each phase, run the app and the tests yourself and commit to Git.
4.9 /speckit.converge: did we build what we specified?¶
This compares the code with the spec, plan and tasks. It never edits your code; it can only add tasks to tasks.md. It ends with one of two results:
- Converged: the code matches the spec, and the feature is done.
- Tasks appended: something is missing. Run
/speckit.implementagain, then/speckit.convergeagain, and repeat until you see Converged.
Using Spec Kit on an existing project¶
You can add Spec Kit to a project that already has code:
cd existing-project
git add -A && git commit -m "before spec kit" # safety net
specify init --here --integration claude
Then start with /speckit.constitution that describes how the project is already built, and use /speckit.specify for the next feature.
Working in a team: the none integration¶
Developers on one team often use different agents. You can keep agent files out of the repository:
Each developer then runs specify integration switch <their-agent> locally, and runs specify integration switch none before committing. specify integration status shows what is installed. Don't hand-edit the generated agent files. Use presets to customise them.
Supported AI agents¶
Spec Kit supports 43 integration options: 41 coding agents, plus generic (bring your own agent) and none (no agent files). Pass the key to --integration:
| Key | Agent | Key | Agent |
|---|---|---|---|
claude | Claude Code | copilot | GitHub Copilot |
gemini | Gemini CLI | codex | Codex CLI |
cursor-agent | Cursor | opencode | opencode |
qwen | Qwen Code | kiro-cli | Kiro CLI |
kilocode | Kilo Code | cline | Cline |
zed | Zed | trae | Trae |
goose | goose | amp | Amp |
auggie | Auggie CLI | agy | Antigravity |
codebuddy | CodeBuddy CLI | devin | Devin for Terminal |
droid | Factory Droid | forge | Forge |
grok | Grok Build | junie | Junie |
kimi | Kimi Code | bob | IBM Bob |
tabnine | Tabnine CLI | rovodev | RovoDev |
qodercli | Qoder CLI | vibe | Mistral Vibe |
mcode | MiniMax Code | muse | Muse Code |
dsh | DeepSeek Harness | docker-agent | docker-agent |
pi | Pi Coding Agent | omp | Oh My Pi |
zcode | ZCode | shai | SHAI (OVHcloud) |
lingma | Lingma | hermes | Hermes |
firebender | Firebender | alquimia | Alquimia |
command-code | Command Code | generic | Any other agent |
none | No agent files |
The list changes over time. Check the integrations page or run specify integration search <name>.
Managing integrations in an existing project:
specify integration status # what is installed
specify integration install gemini # add another agent
specify integration switch claude # change the active agent
specify integration uninstall gemini
Beyond new features: bug fixing and idea assessment¶
Spec-driven development is one of three entry points. The other two come as bundled extensions that you switch on when you need them. They work on their own, so you don't need a spec first.
Fixing a bug¶
Run these three commands in order in the agent chat. Give each bug a short, lowercase, kebab-case slug (login-crash):
/speckit.bug.assess Submitting an empty password crashes the login form. slug=login-crash
/speckit.bug.fix slug=login-crash
/speckit.bug.test slug=login-crash
| Command | What it does | Touches code? | Output |
|---|---|---|---|
bug.assess | Reproduces and analyses the bug from text, a stack trace or an issue URL. | No | assessment.md |
bug.fix | Fixes it, staying within the files the assessment named. | Yes (the only one that does) | fix.md |
bug.test | Runs the reproduction again to prove the fix. | No | test.md with verdict verified, partial or failed |
Reports are saved in .specify/bugs/<slug>/. If the fix needed files outside the assessment, the reason is logged under "Deviations from Assessment".
Checking whether an idea is worth building¶
/speckit.assess.intake Let users work offline and sync when they reconnect. slug=offline-mode
/speckit.assess.research slug=offline-mode
/speckit.assess.define slug=offline-mode
/speckit.assess.shape slug=offline-mode
/speckit.assess.decide slug=offline-mode
| Step | Output | Purpose |
|---|---|---|
| intake | intake.md | Capture the idea. |
| research | research.md | Collect evidence. Claims without a source are marked ASSUMPTION. |
| define | problem.md | Is the problem real, and for whom? |
| shape | concept.md | A concept-level solution, not code. |
| decide | decision.md | Verdict: go, needs-clarification or kill. |
Files are saved in .specify/assessments/<slug>/. A go decision includes a summary you can pass straight to /speckit.specify.
Command names
The commands above use the dot form. In GitHub Copilot they are /speckit-bug-assess, /speckit-assess-intake and so on, and in Codex they are $speckit-bug-assess and so on.
Customising Spec Kit¶
You don't need any of this for your first project. As you get more comfortable, Spec Kit has five building blocks:
| Building block | In one sentence | Example |
|---|---|---|
| Extensions | Add new commands and features. | The bug extension adds the bug-fix commands. |
| Presets | Change how existing templates, commands and scripts behave. | A lean preset with shorter templates. |
| Workflows | Chain several steps into one automated, resumable run. | Run specify → plan → tasks → implement in one go. |
| Bundles | One installable package of extensions, presets and workflows for a team or role. | The bugfix bundle. |
| Catalogs | Indexes where Spec Kit finds all of the above. | The official catalog and community catalogs. |
Extensions: add new commands¶
specify extension search # browse (filters: --tag, --author, --verified)
specify extension info github # details about one extension
specify extension add github # install
specify extension list # what is installed
specify extension update # update all
specify extension disable <name> # turn off without removing
specify extension remove <name> # uninstall (--keep-config keeps settings)
Extensions are installed in .specify/extensions/<id>/. They can also run hooks before or after core commands (for example after_tasks), such as turning tasks.md into GitHub or Jira issues.
Community extensions
The Spec Kit maintainers don't review or endorse community extensions, and a "verified" badge is not a code audit. Read an extension before you install it, just as you would any other dependency.
Presets: change how Spec Kit works¶
specify preset search
specify preset add lean
specify preset list
specify preset resolve spec-template # which file is actually used
specify preset remove lean
When several layers customise the same file, the highest one in this list wins:
- Your own overrides in
.specify/templates/overrides/ - Presets (a lower priority number wins)
- Extensions
- Spec Kit's built-in defaults
Presets don't rewrite your constitution unless you install the constitution-sync preset.
Workflows: automate the whole process¶
A workflow is a YAML file that chains commands, prompts, shell steps and human review gates into one run that you can pause and resume.
specify workflow add speckit
specify workflow run speckit --input spec="Build a kanban board"
specify workflow status <run_id>
specify workflow resume <run_id> --input speckit_review_spec_verdict=approve
The bundled speckit workflow runs specify, plan, tasks and implement, and stops for your approval after the spec and after the plan. There are also bugfix (input report) and assess (input idea) workflows.
Tip
Learn the manual commands first. Workflows are much easier to trust once you know what each step does.
Bundles: install a ready-made setup¶
specify bundle search
specify bundle install bugfix # bug extension + bugfix workflow
specify bundle list
specify bundle remove bugfix
Catalogs: where things come from¶
Every building block has a search, info and catalog list command, for example specify preset catalog list. Companies can add their own approved catalog:
specify extension catalog add https://catalog.example.com/extensions.json \
--name approved-extensions --priority 5 --install-allowed
Community catalogs are discovery-only: you can browse them, but installing from them has to be explicitly allowed.
Keeping Spec Kit up to date¶
specify self check # is there a newer version?
specify self upgrade # upgrade the CLI
specify integration upgrade claude # refresh the agent commands in your project
specify extension update # update installed extensions
Upgrading never touches your specs/ folder or your constitution. Restart your editor or agent afterwards so it picks up new commands.
Troubleshooting¶
| Problem | Fix |
|---|---|
specify: command not found | Run uv tool list to check it is installed. Make sure uv's tool folder is on your PATH (run uv tool update-shell, then open a new terminal). |
specify init --ai ... fails with No matching release asset found | You are using a very old CLI. Upgrade it and use --integration. |
The /speckit commands don't appear in the agent | Start the agent from the project folder, then restart your editor or agent. Check specify integration status. |
| "Current directory is not empty" warning | This is expected with --here. Commit your work first, then confirm, or pass --force. |
| The agent is working on the wrong feature | The active feature is stored in .specify/feature.json, not taken from your Git branch. |
| The upgrade didn't change your project files | specify self upgrade only updates the CLI. Also run specify integration upgrade <agent> in the project. |
| Unsure what is installed | specify version, specify check and specify self check. |
The idea behind it (optional reading)¶
Spec Kit's methodology document sums it up in one line:
"Specifications don't serve code—code serves specifications."
In traditional development the code is the real source of truth, and documents go out of date. In spec-driven development the spec is the main artifact. When requirements change, you update the spec and generate a new plan and code from it. The main principles are:
- Intent first. Decide what and why before how.
- Refine in several steps rather than generating everything from one prompt.
- Guardrails. The constitution and checklists keep the AI consistent across features.
- Research-driven context. The plan is based on researched choices, not guesses.
- Explore cheaply. One spec can be tried with different tech stacks.
It works for new projects (0 to 1), for exploring alternatives, and for adding features to existing code. Spec Kit doesn't dictate how you keep spec.md, plan.md and tasks.md up to date after requirements change. Agree on that with your team.
Beginner tips and common mistakes¶
| Mistake | Do this instead |
|---|---|
Putting tech choices in /speckit.specify ("use React and Postgres…") | Keep the spec about what and why. Tech goes in /speckit.plan. |
| Running every command in a row without reading the output | Stop after each step, read the Markdown file, and fix it before moving on. |
| Building a huge feature in one spec | Make each spec small: one feature, a few user stories. |
Typing /speckit... in the terminal | Type it in the agent's chat. |
| Not using Git | Commit after every phase so you can always go back. |
| Trusting the code blindly | Run the app and the tests yourself. The agent can be confidently wrong. |
| Editing code by hand and forgetting the spec | If the requirements change, update the spec first, then re-plan. |
Cheat sheet¶
| Step | Command | Output | Required? |
|---|---|---|---|
| 0 | uv tool install specify-cli | specify CLI | Once per machine |
| 1 | specify init my-project --integration <agent> | .specify/, agent commands | Once per project |
| 2 | /speckit.constitution <rules> | .specify/memory/constitution.md | Once per project |
| 3 | /speckit.specify <what and why> | specs/NNN-x/spec.md | Yes |
| 4 | /speckit.clarify | Answers added to spec.md | Optional |
| 5 | /speckit.plan <tech stack> | plan.md | Yes |
| 6 | /speckit.checklist | checklists/ | Optional |
| 7 | /speckit.tasks | tasks.md | Yes |
| 8 | /speckit.analyze | Consistency report | Optional |
| 9 | /speckit.implement | Working code | Yes |
| 10 | /speckit.converge | "Converged" or new tasks | Yes |
| – | specify extension add bug → /speckit.bug.assess, .fix, .test | .specify/bugs/<slug>/ | For bugs |
| – | specify extension add assess → /speckit.assess.intake … .decide | .specify/assessments/<slug>/ | For new ideas |
Further reading¶
- Spec Kit documentation: https://github.github.com/spec-kit/
- Installation guide: https://github.github.com/spec-kit/installation.html
- Quickstart: https://github.github.com/spec-kit/quickstart.html
- Command reference: https://github.github.com/spec-kit/reference/agentic-sdd.html
- Methodology (spec-driven.md): https://github.com/github/spec-kit/blob/main/spec-driven.md
- Supported agents: https://github.github.com/spec-kit/integrations/index.html
- Extensions: https://github.github.com/spec-kit/extensions/overview.html
- Presets: https://github.github.com/spec-kit/presets/overview.html
- Workflows: https://github.github.com/spec-kit/workflows/overview.html
- Upgrading: https://github.github.com/spec-kit/upgrade.html
- Source code: https://github.com/github/spec-kit
- Related pages on this site: Agentic AI, Introduction to MCP