In words
What it is, why it matters, and what it is like.
Why am I learning this?
This is the foundation for everything you'll do with AI coding agents. Mastering the spec-to-code pipeline unlocks structured project management: breaking a vague idea into a clear written plan (the specification), listing the specific jobs needed to build it (task cards), and defining exactly what success looks like before any code is written (acceptance criteria). You'll be able to have an AI agent write code that actually matches your plan, and catch mistakes before they become costly bugs. Without this discipline, you risk 'vibe coding' — guessing at the outcome based on feel rather than facts. This approach lets you work fast at first, but prevents you from drowning in uncontrolled changes as your project grows.
The idea, in plain terms
Think of building software as baking a complex cake. If you just say 'make me a nice cake' to an AI, you might get something edible, but it won't be what you wanted. The spec-to-code pipeline is like writing a detailed recipe first, listing every ingredient and step, and then having a sous-chef follow that recipe exactly. Each step produces something you can check: the recipe (spec), the list of tasks, the test to see if it's right, and finally the cake itself. The AI is the fast worker; you are the quality control. The pipeline ensures the AI doesn't skip steps or add its own creative flair unless you approve it. It's the difference between chaos and control.
An analogy
Imagine you're the architect for a new house, and you hire a brilliant but very literal contractor (the AI). If you just say 'build me a nice house,' you'll get something, but it might have a bathroom in the kitchen and no windows. The spec is your detailed blueprint. The pipeline is the process: first, you turn your vague idea into a clear blueprint (the spec). Then you break the blueprint into specific jobs for the contractor (task cards — 'lay the foundation,' 'install the plumbing'). You also write the inspection tests ('does the door open and close?' 'is there a sink in the bathroom?'). The contractor works through the tasks, and after each one, you inspect it against the test before letting them move on. The blueprint, the task list, and the test results are all kept in a log (version control), so if the contractor did something you didn't ask for, you can point to the line in the blueprint. This stops the contractor from secretly building a pool when you asked for a garden. The analogy breaks down because the AI doesn't get tired or have opinions, but it will happily do the wrong thing if you're not precise. You can't just say 'build it nicely' — you must say 'place the door on the north wall, two metres from the corner.'
Definition
The spec-to-code pipeline is the controlled path that takes a written specification and converts it into working code through a series of reviewable stages — specification, task breakdown, test definition, and implementation — where an AI agent does the generation and a human reviews and approves each transition.
Where this sits
You haven't met any of the other topics yet, but you already have the core idea. This pipeline is the engine that makes the whole approach work. The Engineering Intent Document (a high-level summary of why we are building this) is the seed, the Product Requirements Document (the detailed list of what the software must do) is the full blueprint, and the pipeline is how you get from there to code. The Spec Drift (when the final product stops matching the original plan) you'll learn about is the disease, and the Review Gates (checks that stop work until quality standards are met) and Traceability (the ability to link every piece of code back to a specific requirement) are the medicine. Task Cards are what the pipeline hands to the agent. Acceptance Criteria are the tests you write. Right now, it's enough to see the whole process as one connected machine.