Give AI a Contract, not a Conversation: Spec-Driven Development with BMad

Vibe coding is fun, brilliant code at 2 AM, tests passing, everything shipping fast, until three months later the codebase is an unmaintainable mess nobody can explain. Spec-Driven Development (SDD) is the answer: a shift from improvised conversations with AI to structured, version-controlled specifications that both humans and AI treat as the single source of truth. Our levi niner Alin Costea showed why AI code breaks down at scale, what SDD is, and how the BMad Method turns a squad of AI agents into a full software team. And his live demo of by building a fractal-rendering CLI from a single sentence was a perfect example. 

The Vibe Coding Trap

Vibe coding means letting AI generate code with no coherent strategy. It looks great and the tests pass, but you end up with a Frankenstein codebase: brilliant pieces stitched together with no consistent architecture and mounting technical debt. The problem isn’t the AI itself, it’s the process. Rather than treating a capable model as an all-knowing wizard, it pays to guide it, stay concise, and remove ambiguity. 

Why AI Coding Breaks Down at Scale

A useful mental model: treat the LLM not as an omniscient wizard but as a brilliant, octogenarian programmer, deeply experienced, yet prone to forgetting and to inventing stories. Three compounding problems make things worse as a project grows: 

The Answer: Spec-Driven Development

Hire ten teams to build your dream house from a vague brief and you’ll get nine different houses and a boat. Give them the same blueprints and they’ll build the same house ten times. AI works the same way: those blueprints are specifications, natural-language documents that describe what the software should do and how it should behave. Because the input is the same every session, SDD delivers consistency and predictability across sessions, agents, and teams, as far as the non-deterministic nature of LLMs allows. 

The Three Flavours of SDD

How far you take the idea defines three recognised flavours. The key question: does the spec evolve alongside the project, or not? 

Why Markdown Specs Work (Until They Don't)

Natural language is the format LLMs actually understand, and Markdown is its practical vehicle: human-readable, versionable, reviewable, and diffable, so it slots into existing engineering workflows. If something is wrong, you can find and fix it in the text rather than in opaque generated code. (This isn’t new, Model-Driven Development tried it in the 2000s and failed on rigid, formal DSLs; LLMs may finally supply the missing ingredient.) But it isn’t all rainbows: 

The Tool Landscape

Several tools implement these ideas; three represent the spectrum well. What they share: all of them use plain Markdown, the AI reads it, writes it, and is judged against the rules written in it. 

BMad in Action: An Agile Team of AI Agents

BMad (‘Build More, Architect Dreams’) is spec-anchored by design and simulates a complete software team. Its workflow is not only systematic but adversarial. A code review isn’t one agent but several competing personalities that argue it out. The core team is a cast of named specialists, each backed by an editable personality file: 

More agents arrive via modules (Test Architect, Agent Builder, Game Developer, and more). Every agent uses the specs as its source of truth and as the way team members communicate. 

Inside BMad: Flows and Phases

One size doesn’t fit all, so BMad offers three flows, and works with both greenfield and brownfield projects: 

Depending on the flow, a project moves through up to four phases, Analysis, Planning, Solutioning, and Implementation, and after each one, documents are persisted, so re-entering a session picks up exactly where the team left off. If you’re unsure which flow to pick, the built-in bmad-help skill recommends one. 

The Demo: From One Sentence to a Working Tool

Alin started from a single line of intent: a CLI that renders a random or selected fractal in text mode, from the ten best-known fractals, using colored ASCII. BMad recognized it as a small project, then, on the spec route, began writing specifications and surfacing its own open questions (language, terminal size, catalogue, animation) before generating a full PRD and an architecture ‘spine’ with Mermaid diagrams. 

 

The adversarial review:  To review the code, BMad launched what Alin nicknamed the ‘three agents of the apocalypse’, a Blind Hunter, an Edge-Case Hunter, and an Acceptance Auditor, running in parallel, each filing its own triage before patches were applied and every document kept in sync. 

 

One honest caveat: this predictability isn’t free. Because BMad leans on many files, it’s token-hungry, roughly two hours of generating documents and code cost about $14, memorably framed as ‘the price of a pizza.’ 

Lessons to Carry Forward

References 

•  docs.bmad-method.org 
•  github.com/bmad-code-org/bmad-method 
•  bmadcode.com
 

In this article:
Published:
14 October 2026

Related posts

Amanda Andriesanu

Delivery Director

Amanda Andriesanu brings over 20 years of experience in software service delivery across diverse industries, including telecom, banking, automotive, and education. With a proven track record of building strong client relationships and leading technology teams in complex business environments, Amanda excels at finding clarity in complexity. She strives to balance just the right amount of ambiguity with predictability, ensuring people and actions align with a meaningful purpose.

Anca Dana Gafiteanu

Delivery Centre Director

Anca Gafiteanu is the Delivery Centre Director at Levi9, overseeing operations in Romania.


With over 25 years of experience in IT and leadership, Anca specializes in managing large-scale delivery teams, driving operational excellence, and fostering collaborative cultures. Anca’s commitment to innovation and her passion for developing talent make her our invaluable leader at Levi9.