Dec 3, 2026
Spec-Driven Development (SDD): A Learning Record
A systematic learning record on Spec-Driven Development: how SDD differs from Vibe Coding, the research workflow and the six core capabilities, open-source frameworks such as Spec Kit and OpenSpec, layered governance of spec files, token optimization, conflict resolution, cross-project orchestration, and the origins and rise of SDD.
On this page (13 parts, 42 entries)
- 1. What is SDD, and How Does It Differ from Traditional Development and AI Development
- 2. What is the Research Workflow of SDD
- 3. What Capabilities Does SDD Provide in Software Development
- 4. Which Open Source Frameworks Can Be Learned
- Github Spec Kit (Recommended to Start with This)
- OpenSpec
- Cucumber / Gherkin
- Agent Skills
- 5. How to Learn SDD
- Learning How to Write High-Quality Specs
- Learning Constraint-Driven Development
- Learning Acceptance-Driven Development
- 6. Which Parts of the Specification Files Change Frequently During Iterations
- The Five Levels of Specification Files
- Frequency of Changes
- Workflow, Skill, Templates Will Change
- Specification File Modification Permissions
- 7. How Does SDD Function in Large and Complex Projects
- Complete Iteration Lifecycle of Requirements
- Recommended SDD Project Directory Structure
- Different Ways to Handle Various Types of Requirements in SDD
- Specification Files Should Follow Project Engineering Iterations
- Establish a Common Engineering Governance Repository
- Business Project Repositories
- 8. How to Avoid Consuming Large Token Amounts with Increasing Specification Files
- Adopt a Layered, On-Demand Loading Mechanism
- Add Specification Index File
- 9. How to Resolve Conflicts in Specification File Modifications
- Adopt Change Set Mechanism
- Each Requirement Independently Maintains Its Own Specifications
- Use Structured Format for Incremental Specifications
- Pitfalls of Git Conflicts and Semantic Conflicts
- 10. Is SDD Suitable for All Software Development Projects
- 11. How to Synchronize Specification Changes Across Different Versions
- 12. How to Use SDD for Large Requirements Spanning Multiple Projects and Engineering
- 13. When Did SDD Originate, and How Is It Related to the Enhancement of AI Programming Capabilities
- 13.1 Formal Methods: The Earliest Ideological Foundation
- 13.2 Model-Driven Development: Attempting to Automatically Generate Code
- 13.3 TDD and BDD: Direct Ideological Sources for Modern SDD
- 13.4 When Did SDD Really Take Off?
- 13.5 The Relationship Between Vibe Coding and SDD
- 13.6 Why Stronger AI Programming Capabilities Actually Drive SDD
Hello everyone. The idea of SDD has been very popular online lately, so I have been learning about it and wanted to share the core concepts with you here. The post is organized as a series of questions: what SDD is, how it works, and how to apply it in AI Vibe Coding to solve the problems that come up during software development.
1. What is SDD, and How Does It Differ from Traditional Development and AI Development

2. What is the Research Workflow of SDD

3. What Capabilities Does SDD Provide in Software Development

4. Which Open Source Frameworks Can Be Learned
Github Spec Kit (Recommended to Start with This)
Official Website: https://github.github.com/spec-kit/quickstart
Source Code Address: https://github.com/github/spec-kit
How to Run a Demo Project
# Install uv
brew install uv
# Install Spec Kit
uv tool install specify-cli
# Check the installation environment
specify check
# Initialize an experimental project
specify init sdd-demo
cd sdd-demo
Spec Kit Command Guide

OpenSpec
Focuses on specification management for existing projects, requirement changes, incremental development, and change archiving. Suitable for long-term iterative business systems.
Source Code Address: https://github.com/Fission-AI/OpenSpec
Cucumber / Gherkin
Learn Behavior-Driven Development (BDD) to convert business requirements into executable acceptance scenarios, addressing how to prove that a feature meets the requirement.
Official Website: https://cucumber.io/docs/gherkin/
Agent Skills
Learn how to encapsulate team development experience, operational procedures, scripts, and standards into reusable AI capabilities.
Official Website: https://agentskills.io/home
5. How to Learn SDD
Learning How to Write High-Quality Specs
How: spell out every requirement completely rather than leaving it as a one-line description. A spec should list business rules, functional requirements, non-functional requirements, the scope of the feature (what is included and what is explicitly not), and the acceptance criteria, so it becomes a single spec document.
Learning Constraint-Driven Development
How: take a demo or real code project and lay out the files and folders that SDD needs, then manage requirements inside those folders.
Project Governance Directory:
project/
├── AGENTS.md
├── governance/
│ ├── constitution.md
│ ├── architecture.md
│ ├── coding-standard.md
│ ├── database-standard.md
│ ├── api-standard.md
│ ├── security-standard.md
│ └── testing-standard.md
├── specs/
│ └── 001-battery-management/
│ ├── spec.md
│ ├── design.md
│ ├── tasks.md
│ ├── acceptance.md
│ └── traceability.yaml
├── templates/
│ ├── spec-template.md
│ ├── design-template.md
│ └── acceptance-template.md
├── workflows/
│ ├── feature-development.yaml
│ ├── bug-fix.yaml
│ └── release.yaml
├── skills/
│ ├── spec-generation/
│ ├── backend-development/
│ ├── frontend-development/
│ ├── code-review/
│ └── acceptance-testing/
├── services/
├── frontend/
├── tests/
└── .github/workflows/
File Descriptions

Learning Acceptance-Driven Development
Note the concept here is that SDD is specification-driven development. Simply relying on specifications alone may not ensure that the software functions as expected after development. Therefore, BDD methods or ideas can be used to build a more complete workflow. In other words, acceptance criteria are both a specification and an expected behavior description, driving subsequent testing processes to ensure software quality.

6. Which Parts of the Specification Files Change Frequently During Iterations
The Five Levels of Specification Files

Frequency of Changes





Workflow, Skill, Templates Will Change

Specification File Modification Permissions

7. How Does SDD Function in Large and Complex Projects
Complete Iteration Lifecycle of Requirements

Recommended SDD Project Directory Structure


Different Ways to Handle Various Types of Requirements in SDD

Specification Files Should Follow Project Engineering Iterations
When multiple projects are being developed concurrently with different versions, specification documents will change frequently. These documents need to be consistent with the code. How to maintain this consistency depends on where the specification files are stored. There are three options.

Establish a Common Engineering Governance Repository
This actually implies that the common engineering governance repository can build project templates, similar to some code template files needed when creating a new project. This is like building a project scaffolding.

Business Project Repositories
Although these repositories contain personalized specification content for different projects and businesses, they still need governance mechanisms to update documents. Especially when using AI modifications, it is crucial to ensure the accuracy of document information.

8. How to Avoid Consuming Large Token Amounts with Increasing Specification Files
Adopt a Layered, On-Demand Loading Mechanism

Add Specification Index File

9. How to Resolve Conflicts in Specification File Modifications
Adopt Change Set Mechanism

Each Requirement Independently Maintains Its Own Specifications
There are two more points to note:
- Maintain code while maintaining specification files.
- The merged content of specifications should be consistent with the functionality of the code, otherwise there may be hallucinations or inconsistent business functions, which adds complexity.

Use Structured Format for Incremental Specifications
This makes the specification files more flexible. Also, using appropriate file formats can help manage documents better and make them more readable.

Pitfalls of Git Conflicts and Semantic Conflicts
Git conflicts are technical issues, while semantic conflicts involve business issues, including business rules and functional intentions. These conflicts are harder to resolve, so it is not advisable to merge them casually; confirmation with business personnel or product managers should be sought.

10. Is SDD Suitable for All Software Development Projects
This tests the AI Vibe Coding Agent’s technical capabilities. Different tasks with varying difficulty levels require different files to be added or changed, which needs joint judgment by development personnel and AI Agents.
Especially if using AI Vibe Coding, it is likely that a project or company will have dozens of requirement changes in a day, even hundreds. This goes beyond what SDD can handle alone; more workflows and platforms need to be integrated into the development process.

11. How to Synchronize Specification Changes Across Different Versions
It is not only about file content consistency but also business semantic consistency. Therefore, in addition to specification files, related Skills should be added to ensure the three are consistent.

12. How to Use SDD for Large Requirements Spanning Multiple Projects and Engineering
As mentioned at the beginning, a single sentence requirement such as “Help me create an e-commerce shopping platform similar to Taobao.”
This is large enough or can be further detailed: The functionality doesn’t need to be complex; just login, browse products, and place orders.
In this case, requirements could be split across multiple projects based on business functions.

Multi-Level Research Coordination of SDD Engineering Governance


This might sound exaggerated, but large requirements spanning multiple projects do exist. However, enterprise-level engineering governance repositories are typically company-wide initiatives and are not commonly needed in most cases. The organizational structure of a company is related to its business, so the SDD or requirements for different business scenarios can vary significantly.

13. When Did SDD Originate, and How Is It Related to the Enhancement of AI Programming Capabilities
SDD (Specification-Driven Development) is not a software engineering concept created solely by the AI era.
Its core ideas have existed in traditional software engineering for decades. However, modern SDD aimed at AI Agents began gaining widespread attention around 2025 and has become an important practice direction in AI Native software engineering.
There’s an interesting phenomenon here:
As AI code generation capabilities grow stronger, software development requires stricter specifications, constraints, processes, and acceptance standards.
This might seem contradictory but actually reflects a shift in the core bottleneck of software development: from how to write code to accurately describing software, constraining implementation behavior, and validating delivery results.

13.1 Formal Methods: The Earliest Ideological Foundation

13.2 Model-Driven Development: Attempting to Automatically Generate Code

13.3 TDD and BDD: Direct Ideological Sources for Modern SDD

13.4 When Did SDD Really Take Off?

13.5 The Relationship Between Vibe Coding and SDD
This actually implies that the complexity in software development still exists. Although AI programming makes functionality implementation faster and better, it seems to lower the perceived difficulty of software development. However, from a human perspective, understanding software engineering is still quite complex.

13.6 Why Stronger AI Programming Capabilities Actually Drive SDD



My additional understanding is that both specification-driven development and behavior-driven, test-driven development share a core concept: “Documentation as Code, Code as Documentation.” In the era of widespread AI programming, this concept becomes particularly important. Previously, many people complained about others not writing documentation because they themselves were in the habit of not doing so; maintaining documentation was as costly as maintaining code. With the ease of producing code, maintaining documentation naturally became easier.
There should be more practices and new ideas related to SDD in the future. Thank you for reading this article, and I will continue to learn and implement SDD practices.
Comments
Comments are powered by GitHub Discussions. Sign in with GitHub to join the discussion.