Skip to content
zeeshare.com

writing / FDE and agents / series

Spec-driven development, for real

13 parts, complete / 49 min of reading

A working spec-driven setup for Claude Code, told through one invented team and one feature, ACME-41: a fee for late returns. Every part covers one building block in detail, with animated diagrams and the real files from an open framework you can install.

Start with part 1

Why this method

  • Claude stops guessingRequirements, decisions, words and the API shape each live in one file with an ID. The gaps a newcomer would fill with a guess are closed before the code.
  • Gates make it read firstAsked "did you check?", a model says yes. Hooks block the first edit until Claude names the exact types and fields it read.
  • Done means provenEvery acceptance criterion gets evidence, every pull request a changelog line, and every session a handoff that names the next step.

What you will learn, and how long it takes

49 minutes of reading in all, about 4 minutes a part. Each stage fits in one sitting, and you can stop after any of them with something that works.

  1. Stage 1 / Parts 1 to 1 / 5 minThe mapSee all twelve building blocks, how they connect, and install the kit.Start at part 1
  2. Stage 2 / Parts 2 to 6 / 20 minKnow what and whyGive requirements and decisions IDs, write principles and ADRs, define words once, and spec a feature with acceptance criteria.Start at part 2
  3. Stage 3 / Parts 7 to 9 / 11 minBuild to the contractGenerate the client from the API, gate Claude until it states the types, and build every change with skills and reviewers.Start at part 7
  4. Stage 4 / Parts 10 to 13 / 13 minGuard, prove, rememberAdd guardrail hooks, prove each criterion, hand over cleanly, and walk one ticket through every block.Start at part 10

What you will have at the end

  • A docs tree where every requirement, decision and question has an ID
  • Principles and scoped CLAUDE.md files, with ADRs for every exception
  • A generated API client that CI keeps in step with the backend
  • Hooks that make Claude state facts, and guard merges, configs and trackers
  • Skills and reviewers so every change is built and checked the same way
  • Evidence per acceptance criterion and a handoff after every session

All parts

  1. Part 1The building blocksThe twelve building blocks of a spec-driven setup for Claude Code, on one interactive map, with the real framework files you can install. The start of a series told through one team and one feature.13 Nov 2026 / 5 min read
  2. Part 2The paper trailGive every requirement, decision and open question a permanent ID, and cite it in code, tests, commits and pull requests. The habit that lets anyone, and any Claude session, follow a line of code back to its reason.13 Nov 2026 / 4 min read
  3. Part 3Principles and scoped rulesNumbered principles that bind the code, a short root CLAUDE.md, and one CLAUDE.md per module that Claude reads when it works there. How to write rules Claude can actually follow, and give each one teeth.13 Nov 2026 / 4 min read
  4. Part 4Decision recordsOne numbered file per decision that binds the code, with the options rejected and why. How architecture decision records stop the same arguments coming back, and stop Claude proposing what you already turned down.13 Nov 2026 / 4 min read
  5. Part 5Definitions and open questionsWrite each business word once, in its owner's words, computed by one function. Keep questions only someone outside engineering can answer open on purpose, and build so the answer becomes a setting. How to stop Claude guessing the things nobody should guess.13 Nov 2026 / 4 min read
  6. Part 6Feature specs and plansOne design spec per feature with numbered acceptance criteria, approved before a plan whose every task points back to a criterion. The yardstick that every test, review and evidence table in this setup measures against.13 Nov 2026 / 4 min read
  7. Part 7The contractGenerate the API's OpenAPI schema from the serializers, copy it to the web app, and generate typed hooks from it, with a CI gate on each side that fails on drift. How a field that is not in the code can never reach the screen.13 Nov 2026 / 4 min read
  8. Part 8Gates that make Claude show its workHooks that make Claude state facts before it acts. A contract gate that blocks the first edit to an API-consuming file until Claude names the exact types and fields, plus gates that stop it loosening configs or adding packages to make a build pass.13 Nov 2026 / 4 min read
  9. Part 9Skills and reviewersSkills that build every endpoint, screen, spec and handoff the same way, and read-only reviewer agents that each check a change against one set of rules, in parallel, before merge. With the real skill and agent files.13 Nov 2026 / 3 min read
  10. Part 10Guardrail hooksHooks on the moments that quietly go wrong. Refuse force-pushes to shared branches and warn on stale merges, require a changelog line per pull request and a tracker update per push, and check every edit against your rules. With the real hook files and a stale-branch clobber walked through.13 Nov 2026 / 4 min read
  11. Part 11Proof of doneDone means every acceptance criterion has evidence. One verify command, tests named after criteria, a check that each test can fail, an evidence table, a coverage matrix with honest states, and a walk through the real product, because green tests and a person can do this are different claims.13 Nov 2026 / 3 min read
  12. Part 12Memory and handoffsA status board, one handoff per module whose last line is the next step, a running tracker, a changelog, dated context drops and a session-start hook that reads them to Claude. How tomorrow's session, or next month's teammate, starts exactly where this one stopped.13 Nov 2026 / 3 min read
  13. Part 13One ticket, end to endOne ticket, ACME-41, walked through all twelve building blocks in the order a real team meets them, with every file it touched, what the method costs and saves, how to adopt it in four weeks, and the weak spots worth fixing.13 Nov 2026 / 3 min read

New parts are added here as they are published.