Spec-Driven Development (SDD) with AI: Ultimate Guide
Master Spec-Driven Development (SDD): AI agent governance, EARS contracts, Spec Kit workflows, Antigravity MCP sandboxing, and brownfield refactoring.
9 Engineering Articles • Author: Samir El Azem Crovetto
Architectural Overview & Threat Landscape
Unstructured prompt-driven coding (Vibe Coding) creates an illusion of initial speed that rapidly collapses into technical debt, architectural drift, and silent security flaws once a codebase exceeds an LLM’s effective context window. Spec-Driven Development (SDD) inverts this paradigm: formal specifications become the executable single source of truth that deterministically governs AI coding agents.
This pillar guide consolidates the complete SDD engineering methodology using Spec Kit and Google Antigravity: from authoring an immutable project Constitution and capturing requirements with EARS syntax to decomposing work into atomic DAG tasks, converging legacy brownfield repositories, and sandboxing MCP tools.
Core Engineering Pillars & Reference Patterns
Governance Chassis: Constitution vs. AGENTS.md
Strict separation between non-negotiable architectural invariants (.specify/memory/constitution.md) and operational build/style context (AGENTS.md) to eliminate agent drift.
Formal EARS Contracts & The SpecOps Sparring Loop
Eradicating requirement ambiguity using WHEN/IF-THEN-SHALL (Easy Approach to Requirements Syntax) contracts and Socratic discovery interviews with the AI agent.
Atomic Task DAGs & Brownfield Repository Convergence
Compiling design plans into dependency-ordered atomic tasks with isolated subagent contexts, enabling safe modernization of complex legacy codebases.
Secure Agentic Orchestration with Antigravity & MCP Sandboxing
Running self-healing verification loops inside isolated sandboxes, enforcing least-privilege Model Context Protocol (MCP) servers, and automated quality gates.
Cluster Technical Articles & Implementation Guides
From a Jira Ticket to a Clean Pull Request with Spec Kit: Step-by-Step Guide to AI Coding Agents
Hands-on Spec Kit walkthrough: take a real Jira ticket through specify, clarify, plan, tasks, analyze, implement, and converge for clean, reviewable PRs.
AI Coding Agents in December 2026: Antigravity, Claude Ship, Codex, and the MCP Security Crisis
Late-2026 engineering breakdown: Gemini 4 in Antigravity, Claude Ship, Codex, the PR review bottleneck, and deterministic defenses for MCP servers.
Spec-Driven Development (SDD): AI Agent Governance and the End of 'Vibe Coding'
Discover why 'vibe coding' with AI is unsustainable and how Spec-Driven Development (SDD) provides the necessary governance for real-world projects.
The Governance Chassis: Constitution vs. AGENTS.md (And how not to drown in sync debt)
Learn how to structure AI agent governance in your repository using the Adapter Pattern to separate environmental context from on-demand context.
The SDD Pipeline in Practice: From EARS Syntax to Atomic Tasks
Discover how to apply Spec-Driven Development in a real cycle with Spec Kit, transforming vague ideas into atomic and governed tasks.
The Requirements Interview and the 'SpecOps' Loop: How to Use AI Sparring and Rewrite Code Painlessly
Learn how to use AI as a sparring partner to draft EARS specs, and how the iterative SpecOps loop allows rewriting code without accumulating patches or technical debt.
The Challenge of Existing Code (Brownfield) and Managing Multiple Specs with Jira/Git
Discover how to reverse-engineer legacy code and manage multiple parallel specifications using the Delta-Spec pattern and Git/Jira conventions.
Google Antigravity and MCP: Sandboxing, Self-Correction and the Cloud
Discover how to isolate AI execution with local Sandboxing and orchestrate deployments and CI/CD integrations using Model Context Protocol (MCP) in Google Antigravity.
🚀 CHEATSHEET: The SDD Cycle in Google Antigravity with Spec Kit
Quick reference cheatsheet with all commands, flows, and diagrams to master Spec-Driven Development in your day-to-day.
Architectural Frequently Asked Questions (FAQ)
How does Spec-Driven Development (SDD) differ from traditional development or Vibe Coding?
In Vibe Coding, developers chain ad-hoc chat prompts without persistent architectural memory, causing regressions as context grows. In SDD, no agent writes production code until a formal specification (spec.md), architectural plan (plan.md), and dependency-ordered task list (tasks.md) are validated against the repository Constitution.
How can SDD be adopted in an existing brownfield repository with legacy code?
Rather than documenting the entire monolith upfront, teams perform targeted reverse-specification on the bounded context being modified, run convergence analysis (speckit-converge) to detect drift, and version incremental feature specs alongside Git branches.
Why use EARS syntax when writing specifications for AI coding agents?
Unconstrained natural language prose contains implicit ambiguities that LLMs fill by hallucinating unintended behaviors. EARS clauses (Ubiquitous, Event-Driven, State-Driven, Unwanted Behavior) map directly into deterministic unit test assertions and security invariants.