The Book · Apress Pocket Guides · August 29, 2026

Spec-Driven
Development

From Specs to Code with AI Agents.
The practical guide to spec-driven development in the age of generative AI, written by Simon Martinelli, the creator of the AI Unified Process (AIUP). Specifications become the single source of truth that drives code, tests, and validation — and this pocket guide shows you how to get there, step by step, with a hands-on case study from requirements to executable code.
About the Book

Specifications as the single source of truth #

Book cover: Spec-Driven Development — From Specs to Code with AI Agents by Simon Martinelli

Traditional development is code-centric: specifications are written after the fact — if at all — and drift out of date the moment the code changes. The result is maintenance pain, stalled modernization, and systems that no longer match what the business needs. AI coding tools generate code faster, but they don't fix this underlying process problem.

Spec-Driven Development flips the model around. Specifications become the single source of truth that drives code, tests, and validation. The book introduces the AI Unified Process, a lightweight framework that makes spec-driven development practical with today's AI agents — and shows how emerging tools like Amazon Kiro and GitHub Spec Kit fit into the picture.

A hands-on case study runs through the whole book, taking you from requirements to executable code so you can see every step of the lifecycle in action — not just read about it.

Written for software developers, tech leads, and architects. Basic programming knowledge is all you need — no prior requirements engineering or AI tool experience required.

Inside

What you'll learn #

Capture Requirements in Lightweight Specs

Write specifications that are precise enough for AI agents yet light enough for real projects — living artifacts, not throwaway prompts.

Treat Specs as Executable Contracts

Use specifications to drive code generation and testing, so the system's behavior is defined once and enforced everywhere.

Apply the AI Unified Process

Bring the methodology to your own projects and team workflows — iterations, roles, and artifacts included.

Integrate AI Agents into the Lifecycle

Put AI agents to work across the spec-driven lifecycle: generating, regenerating, and refactoring code, tests, and documentation.

Chapter by Chapter

Table of contents #

Ten chapters from the why to the how — including a complete case study.

  1. 01 Why Spec-Driven Development?
  2. 02 The AI Unified Process in a Nutshell
  3. 03 From Requirements to Specs
  4. 04 Writing Executable Specifications
  5. 05 Specs Driving Code in Practice
  6. 06 Specs As Tests
  7. 07 Tools for Spec-Driven Development
  8. 08 Case Study: Building a Simple Task Manager
  9. 09 Scaling Spec-Driven Development
  10. 10 Best Practices, Pitfalls, and the Road Ahead
Details

Book facts #

Publisher & Series

Apress — part of the Apress Pocket Guides series. Compact, practical, and focused.

Publication Date

August 29, 2026. Available for pre-order now in softcover and eBook formats.

ISBN

Softcover: 979-8-8688-2850-8
eBook: 979-8-8688-2851-5

Scope

152 pages with 23 illustrations, including a complete hands-on case study from requirements to executable code.

The Author

About Simon Martinelli #

Simon Martinelli is a Java Champion, Vaadin Champion, and Oracle ACE Pro with more than 30 years of experience as a software architect, developer, consultant, and trainer. He is the creator of the AI Unified Process and the founder of Martinelli LLC, where he coaches teams in AI-driven development. He also lectures at two Swiss universities on software architecture, DevOps, and cloud-native development.

Get your copy

Get the book #

Pre-order now and be ready on August 29, 2026. Want to go deeper? Workshops and consulting bring the AI Unified Process directly to your team.