AI glossary Strategy & Business
What is spec-driven AI?
← All glossary termsUsing product and system specifications, such as requirements, API contracts and guardrails, as the source that steers AI models, agents and evaluations.
Explained
Spec-driven AI treats written specifications as the source of truth for how an AI system should behave. Requirements documents, acceptance criteria, API and tool schemas and policy rules are connected to the prompts, the retrieval content and the evaluation suites, so that a change starts in the spec and flows from there. This keeps behaviour traceable: anyone can see which requirement a prompt, a tool or a test comes from. It is a more governable alternative to adjusting prompts by trial and error, and it is closely related to spec-driven development, where AI coding agents build software from specifications.
How it works
- The spec states what the system must do and must not do, for whom and with which data.
- Tool and API contracts define exactly which actions a model or agent may take and with which inputs.
- Policies and guardrails, written as rules, set limits on content, data access and approvals.
- Prompts and agent instructions are derived from the spec rather than written separately.
- Evaluation cases are generated from the acceptance criteria, so tests check what the spec asked for.
- When the spec changes, prompts, tools and tests are updated together.
Spec-driven AI and spec-driven development
Spec-driven development applies the same idea to building software with AI coding agents: write the specification, turn it into a technical plan and a list of tasks, and let agents implement against it, with people reviewing at each stage. Open-source tools such as GitHub's Spec Kit package this flow.
Spec-driven AI extends it to the behaviour of AI systems in production. In both cases the spec, not the prompt or the generated code, is the artefact people review and maintain.
Why it helps
- Traceability: each behaviour can be traced back to a requirement, which supports audit and regulatory needs.
- Consistency: several prompts, agents and tests stay aligned because they come from one source.
- Safer change: a change is reviewed once in the spec and checked by the derived tests.
- Shared language: business owners can read and approve the spec without reading prompts or code.
- The cost is discipline: specs must be kept current, or they become one more outdated document.
Frequently asked questions
What is spec-driven development?
It is a way of building software in which a written specification comes first and AI coding agents generate the plan, tasks and code from it. People review the spec and the plan rather than writing every line, and the spec stays the reference as the system changes.
What is the difference between spec-driven AI and prompt engineering?
Prompt engineering improves individual prompts, often by trial and error. Spec-driven AI starts from the requirements and derives prompts, tools and tests from them, so changes are traceable and consistent across the whole system.
What goes into an AI specification?
The goal and users, what the system must and must not do, the data it may use, the tools and their contracts, the rules for human approval and the acceptance criteria that will be turned into evaluation cases.
What is GitHub Spec Kit?
Spec Kit is an open-source toolkit from GitHub for spec-driven development. It provides templates, a command-line tool and prompts that guide AI coding agents through specify, plan, tasks and implement stages.
Does spec-driven AI slow teams down?
It adds upfront work to write and agree the spec. In return it reduces rework and surprises later, especially in regulated settings or when several teams and agents have to stay aligned.
Where it shows up at Thinkia
Further reading
Related terms
Sources
- GitHub · Spec Kit documentation
- Microsoft for Developers · Spec-driven development with Spec Kit
- Kiro · Specs documentation (requirements, design and tasks)
Updated: 2026-10-21