Campus AI Development Spec-driven development
Try

No results for “{{ query }}”. Try a shorter or more general term.

  1. {{ r.p }} {{ r.h }} {{ r.pre }}{{ r.hit }}{{ r.post }}
{{ searchCount }}Enter opens · ↑↓ move · Esc closes

The structure spectrum Approach 04

04

Spec-driven development

The spec is the source of truth. Code, tests and docs are derived from it.

Also called: Spec-first development

01Definition

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.

02Origins

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.

03How it works

Person AI
01Write the spec
02Draft a plan
03Review the plan
04Implement tasks
05Test against criteria
06Change the spec first

Each change returns to step 1: the spec changes first, then the code.

  1. 01Write the spec: purpose, scope and non-goals, users, data model, acceptance criteria.
  2. 02The AI drafts a technical plan; a person reviews it.
  3. 03The plan is broken into small, testable tasks.
  4. 04The agent implements each task; tests come from the acceptance criteria.
  5. 05Changes go into the spec first, and code is regenerated or updated to match.

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.

04Profile across the dimensions

How the work is done

Human role
Writes and owns the spec
Unit of work
A spec change
Source of truth
The spec
Agent autonomy
Acts within the spec
Lifecycle coverage
Design and requirements first; build and test follow

How you know it’s right

Code read by a person
Checked against the spec, not line by line. Every diff is still reviewed for what was removed or changed.
Verification
Acceptance criteria, executable specs
Traceability
Each requirement linked to its code
Delivery automation needed
Automated checks against the spec; deployment pipeline

Fit and risk

Upfront investment
High
Durability
Long-lived
Data and risk ceiling
Institutional data with IT support

Compare all five approaches

05Lifecycle coverage

Plan
Design
Build
Test
Deploy
Operate

Solid: AI does core work · Hatched: partial or informal · Dashed: done by people. Compare all approaches

06When to use it

Good for: Anything others will rely on or that must be maintained

One personUseful but can feel heavy. The spec mainly serves your future self and whoever inherits the tool.
A teamWhere it pays off most: the spec is the shared agreement that lets people and agents work in parallel without drifting. When builders share one environment, a second person can pick up any project.
How much spec a task needs
No spec (vibe coding)Under a day, one or two files, low stakes, solo throwaway work.
Lightweight specTwo or more days, several files, a handoff to a person or agent, tests that map to requirements.
Full specMulti-week features, public interfaces or data contracts, compliance, several agents or team members, design review before building.

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.

Less suited to

  • Exploratory work, where you don’t yet know what you want
  • One-off scripts and throwaway prototypes

Signs you’ve outgrown it

  • Several teams or many agents work in parallel
  • Compliance audits need evidence for every change
  • Deployment and operations need automated policy checks

07Development environment

Where it runs: An agentic setup plus the spec in the repository and a spec tool (Spec Kit, Kiro).

Shared platform
A standard template with sign-on, logging, secrets storage and separate development and production
Automated checks
Tests derived from acceptance criteria, run on every change
Data
A development copy of institutional data, not production

Compare environments across approaches

08Minimum controls

  • A short written spec: requirements, acceptance criteria, non-goals
  • Traceability from spec to tests to code
  • A person reviews every diff before merge, looking at what was removed or changed as well as what was added
  • Test files protected: changes to tests need a person’s approval
  • Security, accessibility and equity review before merge
  • A named owner, separate production and audit logs

Risks

  • Spec drift: code changes that never make it back into the spec.
  • False confidence: passing the spec doesn’t help if the spec itself is wrong.
  • Gaming the checks: to make tests pass, an agent may delete or weaken tests, skip failing cases, hard-code expected outputs, or remove code the spec didn’t mention. Passing tests are not proof on their own.
  • Unread code: insecure defaults can hide behind passing tests.
  • Upfront cost: writing a good spec takes domain expertise and time.

What to look for in the diff

  • Deleted, skipped or loosened tests, and changed test data
  • Removed validation, error handling, logging or permission checks
  • Edits to files outside the task’s scope
  • Hard-coded values that happen to match what the tests expect
  • New dependencies or changed configuration

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.

09Sources

  1. Delimarsky, “Spec-driven development with AI,” GitHub Blog, Sept. 2, 2025
  2. GitHub Spec Kit, “spec-driven.md”
  3. Böckeler, “Understanding Spec-Driven Development: Kiro, spec-kit, and Tessl,” martinfowler.com, 2025
  4. Basgen & Frain, “Vibe Coding in Production,” EDUCAUSE Review, Sept. 2026
  5. Sarigoz, “Vibe coding vs spec-driven dev: a per-task decision guide,” BizStack, Sept. 11, 2026
  6. Augment Code, “Vibe Coding vs Spec-Driven Development (2026): When to Use Each,” Mar. 2026
  7. 10xTeam, “AI Dev Methodologies: From Vibe Coding to the Contracts Pattern,” May 2026
  8. BMAD-METHOD