Start your development process with a blueprint. Most teams jump into coding and leave documentation for later, if at all. Too often this leads to maintenance issues, stalled modernization, and poor business alignment. Spec-driven development flips the order: the specification becomes the single source of truth that drives code, tests, and validation.
This pocket guide introduces the AI Unified Process, a lightweight framework that makes Spec-driven development practical in the age of generative AI. It shows how specs (requirements, use cases, entity models) can act as contracts, enabling AI agents and modern tools to generate, validate, and evolve software with far less guesswork.
Designed for busy teams, this book focuses on the principles of spec-first development, with AI Unified Process skills and templates as the primary enabler. It also introduces emerging tools like Amazon Kiro and GitHub Spec Kit for context. Alongside practical methodology, you’ll work through a hands-on case study that takes you from requirements to executable code. By the end, you’ll understand how to apply Spec-driven Development in practice, avoid common pitfalls, and integrate AI into a disciplined, scalable workflow.
What You Will Learn
• Capture requirements in lightweight specs
• Treat specs as executable contracts for code generation and testing
• Apply the AI Unified Process to projects and team workflows
• Integrate AI agents into a spec-driven lifecyce
Who this Book is for:
Software developers, tech leads, and architects with basic programming knowledge. No prior experience with requirements engineering or AI tools is required.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A concise, practical guide to making specifications—not code—the source of truth, showing how developers, tech leads, and architects can use the AI Unified Process to turn lightweight requirements, entity models, and system use cases into executable contracts that AI agents can generate, validate, and evolve.
【Book Arc】
- **Opening (~0%–10%)**: Frames the core problem—code-first and “vibe coding” produce fast output but lose the reasoning behind decisions—and introduces spec-driven development as the fix, with specifications driving code, tests, and validation.
- **Early (~10%–34%)**: Introduces the AI Unified Process: three lightweight artifacts (Requirements Catalog, Entity Model, System Use Cases), an iterative specify–generate–validate–review–refine life cycle, and Markdown/Git-based traceability.
- **Middle (~34%–55%)**: Moves from raw workshop material to structured specs—AI-assisted requirement capture, entity modeling, writing clear system use cases with flows and metadata, then making those specs executable and unambiguous.
- **Late (~55%–80%)**: Connects specs to code generation and tooling, including emerging tools such as Amazon Kiro and GitHub Spec Kit, and compares what different tools offer.
- **Ending (~80%–100%)**: A hands-on task-manager case study walks from vision to requirements to entity model to code, followed by guidance on scaling spec-driven development in teams and collecting best practices and pitfalls.
【Key Takeaways】
- **Specifications become the single source of truth** (Opening): Code shifts from “where decisions are made” to “where decisions are implemented,” which reduces rework, improves maintainability, and keeps documentation living rather than stale.
- **Three lightweight artifacts carry the method** (Early): A Requirements Catalog captures intent (functional, non-functional, constraints), an Entity Model defines domain vocabulary, and System Use Cases define observable behavior—together forming a complete, readable spec set.
- **User stories and system use cases serve different jobs** (Early): Stories express business intent (“As a… I want… so that…”), while use cases formalize that intent into testable behavior with main, alternate, and exception flows.
- **Executable means observable and unambiguous** (Middle): Specs must describe behavior precisely enough that two developers—or an AI agent—arrive at the same implementation; one rule per statement and strong preconditions/postconditions are emphasized.
- **Traceability is built in via stable IDs** (Middle): Requirements, use cases, entities, code, and tests are linked through identifiers stored in Markdown and Git, so teams can see why something exists and what must change.
- **AI accelerates but humans remain the quality gate** (Middle): AI helps summarize, extract, check consistency, and generate scaffolding and tests, but human review is the critical gate for correctness, architecture, and trade-offs.
- **The life cycle is iterative, not phase-based** (Early): Specify, generate, validate, review, and refine in short cycles—no handovers, just continuous alignment between specs and implementation.
- **Spec-driven development is modernization-ready** (Early): Technology-independent specs can be reused when moving to a new stack, making systems less coupled to a specific framework or platform.
【Reading Tips】
- **Read Chapters 1–2 closely** for the conceptual foundation and the AI Unified Process; skim if you already accept spec-first thinking, but don’t skip the artifact definitions.
- **Deep-read Chapters 3–5** if you will actually write specs—these cover requirement capture, use case structure, and what makes a spec executable; the templates and examples are the most reusable material.
- **Use Chapter 8 as a walkthrough, not a reference**: follow the task-manager case study end to end once to see how the artifacts connect, then return to specific steps as needed.
- **Treat Chapters 9–10 as a checklist** when adopting the method in a team; the pitfalls section is where you’ll recognize your own past failures.
- **Keep the book nearby during real work**: it is a pocket guide, so its value comes from applying the templates and reviewing your specs against its clarity rules.
【Coverage Limits】
The excerpts cover the book’s structure, core concepts, and several chapter openings in detail, but do not provide full chapter content for the tooling comparison (Chapter 7) or the complete case study and team-scaling chapters; specific tool features and some templates are only partially visible.
Excerpt 1
ents Simon Martinelli Table of Contents About the Author xv About the Technical Reviewer xvii Acknowledgments xix Introduction xxi Chapter 1: Why Spec-Driven...
business-specific. As a result, teams had to mix generated code with hand-written extensions, which increased complexity, reduced maintainability, and broke...
se case flows and business rules are implemented correctly. Validation can be automated in CI pipelines, ensuring that changes in code or specs do not break...
ision points and flow alternatives visible at a glance. 39 Chapter 3 From requirements to speCs Table 3-5. Use Case Relationships Relationship Meaning Exampl...
is not better clarity but a document full of speculation. Consider a team building task assignment for a simple task manager. An over-specified early draft m...
t guideline file tells the agent where the code belongs. 74 Chapter 5 SpeCS Driving CoDe in praCtiCe Trigger: - The selected target user is inactive. - The a...
agile stubs that need to be rewritten as the UI stabilizes. This is not a failure of discipline; it is a mismatch between the technique and the layer. For UI...
for a complex query, the agent can query a jOOQ MCP server. Instead of inventing a browserless testing method, it can ask a Vaadin MCP source for the current...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Spec-Driven Development From Specs to Code with AI Agents (Simon Martinelli)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share to WeChat Moments
Spec-Driven Development From Specs to Code with AI Agents (Simon Martinelli)(Z-Library)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Spec-Driven Development From Specs to Code with AI Agents (Simon Martinelli)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment