Skip to content

Reading

Appearance

Text size

Bookmarks

    No bookmarks yet. Use “Bookmark chapter” or “Bookmark this section” while reading.

    Your data

    Saved only in this browser on this device. It is not synced to other devices or sent anywhere.

    Chapter 1 of 22 · about 1 min

    1. The big idea, in one minute

    Spec-Driven Development (SDD) means: before the AI writes any code, you write down clearly what you want and how you want it built.

    You don't type "build me a registration page" and hope for the best. You and the AI produce a small set of documents first:

    Document Answers the question Analogy (building a house)
    Constitution "What rules must we always follow?" Building codes and regulations
    Spec (spec.md) "What should this feature do, and why?" The client's wish list
    Plan (plan.md) "How will we build it technically?" The architect's blueprint
    Tasks (tasks.md) "What exact steps, in what order?" The construction schedule
    Code The actual thing The house
    Learning aidFrom rules to a house

    Read left to right. The dashed boundary is the building code: it applies to every drawing inside it. Select a drawing, or the code, to find its row in the table. The arrow labels summarise chapters 12, 14 and 16.

    Once these documents exist, the AI has much more context, so it guesses less and gets it right more often.

    Key shift: In traditional development the code is the source of truth and docs go stale. In SDD the spec is the source of truth and code is generated from it. If the spec changes, you regenerate the plan, tasks and code.

    GitHub Spec Kit is a free, open-source toolkit from GitHub that turns this idea into a repeatable process. It gives you:

    • a small command-line tool called specify that sets Spec Kit up in your project, and
    • a set of slash commands (/speckit-specify, /speckit-plan, and so on) that you run inside your AI coding agent's chat (Copilot, Claude Code, Cursor, Gemini CLI, Codex, Kiro CLI and many more).

    Spec Kit itself costs nothing. You only pay for the AI agent you use with it.

    Optional reviewCheck yourself
    1. In Spec-Driven Development, what is the source of truth?
    2. In the house analogy, which document is the architect's blueprint?
    3. What do you pay for when you use Spec Kit?