navigation

Kiro Spec Driven Development

Introduction

Kiro Spec-Driven Development (Kiro SDD) is a modern software development approach where technical specifications (Spec) serve as the “Single Source of Truth.”

In traditional processes, documentation is often written after code completion, leading to outdated or mismatched documentation (documentation drift). Kiro SDD reverses this process: Specs are defined first, and Code is a direct consequence of the Spec, not a product of developer “inspiration” or personal memory.

Spec is the Center of the Project

In Kiro SDD, all stakeholders look at the Spec to understand the system:

  • Product owners use Specs to define business requirements, feature scope, and acceptance criteria
  • Developers use Specs as detailed “blueprints” to implement code, APIs, and workflows
  • QA uses Specs to design test cases, test scenarios, and verify correctness
  • New team members use Specs as onboarding documentation, without having to dig through code

In other words, if there’s any conflict between documentation, code, slides, or verbal communication, the Spec is what takes priority. All important changes start with updating the Spec, then propagating to code, tests, and other components.

Reversing the Flow: From Spec to Code

Instead of “do first, write later,” Kiro SDD encourages “think clearly, write clearly, then do.” A typical workflow may include:

  • Define feature scope and business context
  • Write Spec with sufficient detail: input, output, rules, workflow, state, errors, metrics
  • Review Spec among stakeholders (product, dev, QA, stakeholders) to align understanding
  • After Spec is finalized, developers begin coding, strictly following the Spec as the blueprint
  • QA writes and runs tests based on the Spec, ensuring the product matches the description
  • When changes are needed, go back to update the Spec first, then update the implementation accordingly

Simple example: instead of developers guessing “what does the Payment button do,” the Spec will describe specifically: display conditions, button state, total calculation rules, discount handling, payment error scenarios, and corresponding UI behavior. This way, the team avoids numerous small but costly misunderstandings later.

Practical Benefits of Kiro SDD

Implementing Kiro SDD brings many clear benefits in practice:

  • Reduces misunderstandings between product, dev, and QA, as everyone relies on the same Spec
  • Limits “verbal questions,” “misremembering,” “I thought it was…,” which are very common in teams
  • Easier to maintain and extend the system: just read the Spec to understand the area needing modification
  • Documentation “lives” with the project, not discarded because it’s always updated before code changes
  • Creates a good foundation for automation: from Specs can generate skeleton code, test cases, mock APIs, contracts, etc.

Especially with complex systems (many services, many teams, many domains), having a clear, versioned Spec that’s considered the single source of truth significantly reduces internal communication costs.

How is it Different from Traditional Documentation?

The difference is not just “write before or write after,” but the role of documentation:

  • Traditional documentation is usually descriptive, reference-based, and easily overlooked
  • Specs in Kiro SDD are binding: the basis for evaluating the correctness of implementation
  • Traditional documentation is often scattered (Confluence, Google Docs, slides, notes)
  • Specs in Kiro SDD are systematically structured, version-controlled, and tightly integrated with the repo

If code is the “implementation” part, then Spec is the “contract” between the team and the product. When the contract is clear, disputes decrease, risks also decrease.

In this lab, we will explore how to apply Kiro SDD to build a complete product, starting from the most basic steps.