Spec-driven development is a way of building software where a written specification, not a chat prompt or a one-line ticket, is the input to every change. The spec says what the change should do, what it shouldn't do and how you'll know it works. A person approves it before the build starts, and the finished work gets checked against it before it ships.
The idea isn't new. What's new is who reads the spec. When an AI agent does the building, it takes your ticket literally and fills every gap with a guess. A clear spec is how you control what those guesses are.
A senior engineer can work from a vague ticket because they know the system, the customers and the unwritten rules. An agent knows none of that. Give it "add export to the transactions page" and it will ship something, quickly, but probably not what you meant.
Teams that run agents well have noticed. In the latest CNCF and SlashData survey, cloud native developers were more likely than other developers to write a spec and have AI build against it, as we covered in our post on how cloud native teams supervise agents. The tools are moving the same way. GitHub released Spec Kit, an open-source toolkit for spec-driven work with coding agents, and AWS's Kiro IDE organizes features into requirements, design and task files before any code is written.
A good spec is short. For most changes it fits on one page. It answers six questions:
Notice what's missing: how to build it. A spec describes behavior, not implementation. Leave the design to the engineer or agent, and judge the result by whether it meets the criteria.
Here's a ticket you've probably seen some version of:
"Add CSV export to the transactions page."
An agent can build that in minutes. It will also have to decide, on its own, which columns to include, whether to export every transaction or only the filtered ones, what happens with 200,000 rows, and who's allowed to export at all. Each of those is a business decision hiding inside a technical task.
Here's the same request as a spec:
Problem: Account managers rebuild transaction reports by hand for client reviews, which takes about an hour per client.
Outcome: An account manager can download the transactions they're viewing as a CSV in one click.
In scope: Export of the currently filtered view, up to 100,000 rows. Columns: date, description, amount, currency, status, account ID.
Out of scope: Scheduled exports, Excel format, exports across multiple accounts.
Acceptance criteria:
Constraints: Full card numbers and account numbers are never included. Exports follow existing data retention rules.
Measure: Time spent preparing client reports, checked with account managers 30 days after release.
That took maybe 20 minutes to write. It also caught a permissions question and a data-masking rule that the original ticket left to chance.
Acceptance criteria are the part of the spec that does the most work, and the part teams most often get wrong. Usable criteria share four traits:
The Given / When / Then format in the example above isn't required, but it helps. It forces you to name the starting condition, the action and the expected result, and it translates directly into automated tests.
The person who owns the problem writes the first draft: usually a product manager, sometimes a business analyst or the requesting team. An engineer adds the constraints and edge cases they know about. An AI assistant can help draft and tighten the language, and it's good at spotting missing failure cases.
Approval is where a human has to stay in charge. Someone with authority over the outcome signs off before the build starts. After the build, someone checks the result against the criteria before it ships. Those two checkpoints are what make agent-built work trustworthy, and they're the points we described in AI-Assisted Development vs. Agentic Engineering.
Keep specs in the same repository as the code, versioned with it. When a change ships, its spec should be easy to find next to it, which also gives auditors and new team members a plain-language record of why the system works the way it does.
Spec-driven development works best when the platform supports it instead of relying on everyone's discipline. A spec template in every new repository, a pipeline step that confirms each acceptance criterion has a matching test, and a pull request check that links the change to its approved spec all make the right way the easy way. That's the same thinking behind a golden path, applied to requirements instead of infrastructure.
No. Waterfall writes one large specification for an entire project up front. Spec-driven development writes a short spec for each change, often several a week. The loop stays fast; it just starts with a clear request instead of a vague one.
No. A Markdown file in the repository works. Tools like GitHub Spec Kit and Kiro add templates and connect specs to coding agents, which helps once you're running many specs at once.
As short as possible while still answering the six questions. Most changes fit on a page. Changes that touch money movement, customer data or security deserve more detail.
AI can draft one and is useful for finding gaps. A person who owns the outcome still needs to review and approve it, because the spec is where business decisions get made.
Specs live in the part of agentic engineering most teams skip: the delivery process and the business requirements that feed it. Tensure's agentic engineering maturity assessment scores your platform, your delivery process and your business requirements, and shows which one is holding you back. To see how we help teams put spec-driven delivery into practice, visit our agentic engineering page or get in touch.
Let's see how we can help your team move faster. From developer platforms to cloud infrastructure and AI solutions that get your developers shipping again.