02Chapter 2: Why prompts alone driftThis chapter assumes you have written code professionally in at least one language, use Git, have prompted an AI coding assistant before, and know what an automated test is. It explains why open-ended prompts give inconsistent results from coding agents. It also shows which parts of that inconsisten8 min read
03Chapter 3: The spec-driven workflow: requirements, design, tasks, implementationThis chapter assumes you can write and test code in at least one language, use Git, have prompted an AI coding assistant before, and know what an automated test is. Earlier chapters covered why open-ended prompts drift. This chapter covers the workflow that replaces them.6 min read
04Chapter 4: Writing requirements with testable acceptance criteriaThis chapter assumes you can read basic Python and Markdown and have used Git. It also assumes you have prompted a coding agent before and know what an automated test is. It covers the requirements phase of the workflow: what a requirement contains, how to phrase acceptance criteria so each one can 7 min read
05Chapter 5: Capturing design decisions before codeThis chapter assumes you have read the chapters on requirements and acceptance criteria. You should be comfortable with Git and basic automated testing. You should also have prompted a coding agent at least a few times.7 min read
06Chapter 6: Breaking work into small, verifiable tasksThis chapter assumes you have written requirements with testable acceptance criteria and a short design document, as covered in earlier chapters. It also assumes you can read Python and pytest, use Git, and have prompted a coding agent before. Here you turn an approved design into a task list that a6 min read
07Chapter 7: Turning acceptance criteria into testsThis chapter assumes you can write and run pytest tests, use Git, and have prompted a coding agent before. It covers how to turn the acceptance criteria from a requirement into automated tests. An agent's output can then be checked by running those tests instead of by reading the code.7 min read
08Chapter 8: Project instruction files for stable conventionsThis chapter assumes you have used an AI coding agent on a real repository, can read a Git diff, and know the earlier chapters' vocabulary: spec, requirements, design, tasks, and acceptance criteria. You don't need experience with any particular tool.6 min read
09Chapter 9: Reviewing the spec and the agent's outputThis chapter covers the review gates in a spec-driven workflow. It assumes you have read the earlier chapters on requirements, design, tasks, and acceptance tests. It also assumes you can read a Git diff and run a test suite.7 min read
10Chapter 10: Keeping the spec and the code in syncThis chapter assumes you have written requirements, a design, and a task list for a feature. It also assumes you can run pytest and use Git. Earlier chapters covered how to write those documents and check agent output against them. This chapter covers what happens afterward, when the code and the sp7 min read
11Chapter 11: Choosing how much spec a change needsThis chapter assumes you know the spec-driven workflow from earlier in the tutorial: requirements, design, and tasks, followed by implementation with review gates. You should also be comfortable reading acceptance criteria and running automated tests. The question here is not how to write a spec. It7 min read
12Chapter 12: Common pitfalls and anti-patternsThis chapter assumes you have read the earlier chapters on the requirements, design, and tasks phases. It also assumes you can write a basic automated test and review a Git diff. Spec-driven development fails in recognizable ways. Most failures come from a small set of habits, and you can spot and f8 min read
13Chapter 13: Tooling that supports spec-driven developmentSpec-driven development works with plain files and a text editor. Tooling makes it easier to keep up. It can generate the spec files, load them into the agent's context, check the agent's output, and flag drift. This chapter covers the categories of tooling, what each one does, and how to choose amo7 min read