Skip to content
Mindela

By · November 20, 2026 · 7 min read

Spec-Driven Development With Claude Code and GitHub Spec Kit: A Practical Guide

Claude CodeDeveloper Productivity

Spec-driven development with Claude Code means a human writes and reviews a specification first, and the agent builds a plan, a task list and code from that specification instead of from loose prompts. GitHub Spec Kit is the open-source toolkit that installs this workflow into Claude Code as a set of slash commands: constitution, specify, plan, tasks, implement and converge.

The practical gain is where review effort goes. You review intent and acceptance criteria in plain language before any code exists, which is cheaper and safer than discovering a wrong assumption inside a 40-file diff.

What is spec-driven development?

Spec-driven development (SDD) is a method where a written, reviewed specification drives AI-assisted implementation. The specification states what to build and why, including user behavior, edge cases and acceptance criteria. It deliberately leaves out the technology stack. A separate plan then chooses the architecture, and a task list breaks the plan into ordered steps the agent can execute.

Compare that with unstructured prompting. A prompt such as "add refunds to the payments service" leaves the agent to guess limits, currencies, failure handling and audit requirements. It will guess confidently and fluently. Spec-driven development replaces the guess with a document your team has already argued about.

What is GitHub Spec Kit?

Spec Kit is an open-source toolkit, published under the MIT license, that gives coding agents structured processes, templates and quality checks. Its project documentation describes the core process as Specify, Plan, Tasks, Implement and Converge, with each phase producing a Markdown artifact that feeds the next. At the time of writing the github/spec-kit repository shows more than 150,000 stars, which is a useful signal that the pattern is spreading well beyond early adopters.

Two parts matter:

  • The Specify CLI runs in your terminal and scaffolds a project: templates, scripts and one command per process step.
  • The process steps run inside your coding agent's chat, not in the terminal, one at a time.

Spec Kit is agent-neutral, so a team that later adds another coding tool keeps the same process. The official documentation is the reference for current commands, and the command names below follow it as of November 2026. The project moves quickly, so check the output of your installed version.

How do you set up spec-driven development with Claude Code and Spec Kit?

You need Python 3.11 or later, the uv package manager and Claude Code installed. Then:

uv tool install specify-cli
specify init my-project --integration claude
cd my-project
claude

For Claude Code the integration key is claude. Spec Kit installs each step as a skill at .claude/skills/speckit-<name>/SKILL.md, and you invoke it in the Claude Code chat, for example /speckit-specify.

If the repository already contains code, follow Spec Kit's guide for adopting it in an existing project, start from a clean branch and read the resulting diff before committing. Scaffolding changes files in your repository, and you should know exactly which ones.

What are the Spec Kit steps, and who reviews each one?

Run the steps one at a time and review each result before moving on. The documentation describes a shorter path for small features and a fuller path for production work.

StepCommandWhat it producesWho reviews
Ground rules/speckit-constitutionProject principles every later step is checked againstTech lead, once per project
Describe/speckit-specifyThe feature spec: what and why, no stackProduct owner and engineer
Resolve gaps/speckit-clarifyTargeted questions folded back into the specWhoever owns the requirement
Design/speckit-planArchitecture and design artifacts, with your stackSenior engineer or architect
Validate/speckit-checklistA requirements-quality checklistReviewer, who ticks items
Break down/speckit-tasksOrdered tasks.mdEngineer
Cross-check/speckit-analyzeRead-only report of conflicts across spec, plan and tasksEngineer
Build/speckit-implementCode, executing tasks in dependency orderReviewer at PR time
Verify/speckit-convergeGap check of code against spec; repeat until it reports ConvergedEngineer

The shorter path runs specify, plan, tasks, implement and converge. The full path adds the constitution, clarify, checklist and analyze as quality gates. Use the full path for anything touching money, customer data or shared platforms. The cheapest defects to fix are the ones caught in the first four rows.

How do you write a spec Claude Code can build from?

A good spec is short, specific and testable. Use this checklist:

  1. State the user outcome in one sentence. Who needs what, and why it matters.
  2. Describe behavior, not technology. Keep frameworks, databases and libraries for the plan step.
  3. Write acceptance criteria as observable results. If a reviewer cannot check it, the agent cannot either.
  4. List edge cases explicitly. Empty input, duplicates, retries, partial failure, concurrency, time zones, limits.
  5. Add non-goals. Say what this change must not touch.
  6. Mark unknowns as questions. Let the clarify step force an answer instead of letting the agent invent one.
  7. Name the risks. Sensitive data, regulated behavior, audit needs, rollback.

A small fragment shows the level of detail:

Outcome: Finance approvers can reverse a duplicate payment within 24 hours.

Acceptance criteria:
- A reversal creates a linked ledger entry; the original entry is never edited.
- A second reversal of the same payment is rejected with a clear message.
- Reversals after 24 hours need a second approver.

Edge cases: partially refunded payments, payments in a closed period,
two approvers acting at the same moment.

Non-goals: changing the settlement file format.

That fragment is enough for Claude Code to ask good clarifying questions, and enough for a reviewer to spot a missing rule in two minutes.

Why does the human review step matter more, not less?

An agent that writes code quickly also writes a wrong assumption quickly. Spec Kit's quickstart says to validate requirements and plans before coding begins, and its analyze step tells you to fix any issue it flags at the source and re-run before implementing. In practice that means three habits:

  • Edit the spec, not the code, when behavior is wrong. Regenerate the plan and tasks from the corrected spec so the artifacts stay consistent.
  • Treat the checklist as the reviewer's. The agent should not tick items to unblock implementation.
  • Commit the artifacts. Specs, plans and tasks live in the repository, so a pull request carries its own reasoning and later changes start from the record.

Do not put secrets or customer data in specs. Everything you type into these steps ends up in Markdown files that are committed.

How does spec-driven development pair with test-driven development?

They solve adjacent problems. The spec captures intent in prose. Tests turn that intent into something executable that fails when the agent drifts. The strongest loop is spec first, failing tests second, implementation third: acceptance criteria become tests, the agent implements until they pass, and converge checks the result against the original spec. We cover the second half in detail in our guide to test-driven development with Claude Code.

This is the working method behind our enterprise programs. The one-week Morgan Stanley Claude Code program for 600 participants, from C-suite leaders to senior engineers, was built on spec-driven and test-driven development. The J.P. Morgan program covered spec-driven development with GitHub Spec Kit alongside TDD and the Claude Agent SDK.

When is Spec Kit worth the overhead?

Use it when:

  • a feature spans several files, services or contributors;
  • the work carries regulatory, financial or customer-data risk;
  • several people need to review intent without reading code;
  • you expect to revisit the feature, so a written record has value later.

Skip the full process for a typo, a dependency bump or a contained refactor. Spec Kit also documents separate bug-fixing and idea-assessment processes, so a bug does not have to be forced through the feature workflow.

What mistakes make teams abandon spec-driven development?

Writing specs like design documents. If the spec names frameworks and class names, the plan step has nothing left to decide and reviewers lose the plain-language view.

Skipping clarify to save time. Ambiguity does not disappear. It moves into the code, where it is expensive.

Letting specs go stale. Behavior changes in a hotfix and nobody updates the spec. Make spec updates part of the definition of done.

An overlong constitution. Ten sharp principles get applied. Forty paragraphs get ignored.

Reviewing code and ignoring the spec. If reviewers only read the diff, you have added ceremony without moving risk earlier.

Rolling out to everyone at once. Pilot on one feature team, tune the templates, then expand.

What should a first pilot look like?

Pick one real feature that is a week or two of work. Have the tech lead write the constitution, a product owner and an engineer write the spec together, and run the full path. Record how many clarification questions the agent raised, how many spec edits happened before implementation, how many review comments the pull request drew and how long review took compared with similar past work. Those four numbers tell you whether the method is paying off for your codebase.

If you want your team to practice this on its own repositories, our Claude Code training program teaches spec-driven and test-driven workflows hands-on. Talk to us about a program for your engineering teams.

Frequently asked

What is spec-driven development with Claude Code?

It is a workflow where a human writes and reviews a specification first, then Claude Code turns it into a plan, a task list and code. The spec becomes the source of truth, so reviewers check intent and acceptance criteria instead of reading every generated line cold.

Is GitHub Spec Kit free?

Yes. Spec Kit is an open-source toolkit published under the MIT license in the github/spec-kit repository. You still pay for the coding agent you run it with, including Claude Code usage, and for the engineering time spent writing and reviewing specs.

Does Spec Kit only work with Claude Code?

No. Spec Kit is agent-neutral and documents dozens of integrations, including GitHub Copilot, Gemini, Codex and Claude Code. The Claude Code integration installs the workflow as skills inside the project's .claude/skills folder, so the same steps are available as slash commands.

How is spec-driven development different from vibe coding?

Vibe coding steers an agent with loose prompts and judges the result by running it. Spec-driven development writes the requirements, edge cases and acceptance criteria down first, reviews them, and makes the agent build against that record. The difference shows up in rework and review time on non-trivial features.

Should we use spec-driven development for every change?

No. A one-line fix or a small refactor does not need a spec, a plan and a task list. Use it for features that touch several files, involve more than one contributor, or carry regulatory or financial risk, where a written record of intent pays for itself.

Working through this decision yourself?

We’re happy to pressure-test your thinking. Engineering opinions, no sales sequence.

Talk to an engineer