No results for “{{ query }}”. Try a shorter or more general term.
The structure spectrum Approach 04
The spec is the source of truth. Code, tests and docs are derived from it.
Also called: Spec-first development
The main artifact is a written, versioned specification: purpose and scope, data model, acceptance criteria and interface contracts. AI generates and regenerates code from the spec, and the work is checked against the spec rather than read line by line. Developers can work this way, and so can domain experts with IT support.
The idea draws on older practices: model-driven engineering, design by contract, and behavior-driven development’s Given/When/Then scenarios. What changed with AI is that code became cheap to regenerate from a written spec.
Tools formalized it in 2025: AWS’s Kiro in July, and GitHub’s open-source Spec Kit on September 2, which moves work through specification, plan, tasks and implementation. Practitioners distinguish degrees, from “spec-first” (write a spec, then code) to “spec-as-source” (only the spec is edited by people).
A broader method, the AI-driven development lifecycle (AI-DLC), was described by an AWS architect in 2025. It puts specs at the center of the whole lifecycle: people state intent, the AI breaks it into units of work and proposes a plan, and people approve each step. Its claim is that adding AI to Agile only gives a “faster horse”; the process itself should be redesigned. See IBM’s explainer.
Corporate IT groups report the same lesson that drew them to specs. Microsoft’s IT organization found that faster individual developers did not make teams faster; every handoff still lost intent. Moving the hard thinking into the spec, before any code, is how they closed that gap. This is a self-report, not a study, but it matches the delivery-stability findings.
Each change returns to step 1: the spec changes first, then the code.
Typical tools: GitHub Spec Kit (specify → plan → tasks → implement → converge); AWS Kiro, which often uses the structured EARS requirements format; BMAD Method, with agile-style agent roles for larger projects; OpenSpec; or plain Markdown specs in the repository with any coding agent.
Write the spec together. Some teams draft it in one working session, the requester, a developer, the data steward and someone who knows accessibility, with the AI asking clarifying questions and flagging gaps as they go. This replaces weeks of back-and-forth and gets the hard questions asked by the people who can answer them.
Put the non-functional requirements in from the start. Accessibility, data level, privacy, performance, retention and a short risk note belong in the first spec, not in a later review. Recheck them whenever the spec changes.
Let the AI ask first. Instead of prompting task by task, state the intent and constraints and have the AI propose a plan and list its questions before it builds anything.
Agree a team constitution before the first spec. A short shared document of architectural principles, security standards, data rules and limits that every spec and every agent session must follow. Write it as a team, with architects or central IT owning it. On campus it’s where institutional standards, such as approved data levels and accessibility requirements, enter every project.
Keep specs small. Split large requirements into several focused specs. Smaller specs produce changes that are easier to review and let teams build in steps.
Name an owner for the spec. The functional or product owner keeps it current, architects own the constitution, and developers check that what was built matches what was asked. Leaders make specs the standard way of working, not an optional step people can skip.
Resolve every question before code. One reference pipeline splits the work into separate steps: find gaps and conflicts in the requirements, resolve each one (by a person, from source documents, or both), write the spec, generate code, then check the code against the spec. The step that writes code reads only the spec, never the original requirements, so anything missing from the spec simply doesn’t get built. That makes gaps visible early instead of letting the AI fill them with confident guesses.
Start from a shared template. Central IT can publish a starter repository with the steps, the constitution and campus settings, such as the data level and the compliance terms (FERPA, HIPAA, export control), already filled in, so each project begins with the right guardrails. See an open-source example.
Solid: AI does core work · Hatched: partial or informal · Dashed: done by people. Compare all approaches
Good for: Anything others will rely on or that must be maintained
The two common errors are a full spec for a task that needs a light one, and no spec for a task that needs at least a light one. To avoid “waterfall with markdown”: keep specs to about one screen, slice tasks to one session and one reviewable diff, start building against the first task early, update the spec when reality diverges, and map every acceptance criterion to a test. Adapted from Sarigoz, 2026.
Where it runs: An agentic setup plus the spec in the repository and a spec tool (Spec Kit, Kiro).
Spec tools have improved, but this failure mode hasn’t gone away. The spec says what should be built; only reading the diff shows what the agent took out to get there. Where the tool allows, make test files read-only for the agent.