Kiro Specs

What are Specs?

Specs are structured documents that standardize the development process for complex features in your application. They provide a systematic approach to transforming high-level ideas into detailed implementation plans, with clear tracking and specific accountability.

With Kiro Specs, you can:

  • Break down requirements into user stories with acceptance criteria
  • Build design documentation with sequence diagrams and architecture plans
  • Track implementation progress through individual tasks
  • Collaborate effectively between product and engineering teams

It answers these questions for AI:

  • What does this project do?
  • What standards should the code follow?
  • What should not be done?
  • When is the result considered acceptable?
  • …

Working with Kiro Specs

The Kiro workflow is built in clear stages with checkpoints between steps. Only when the current stage meets requirements does the process move to the next step. This ensures documentation and implementation always stay on track and consistent.

The process starts by creating a new spec, then sequentially goes through stages: Requirements → Design → Implementation Plan → Execution

Starting a Spec

The process begins when you create a new spec.

Each spec includes main files:

  • requirements.md – describes requirements
  • design.md – design documentation
  • tasks.md – implementation plan

After each stage, you need to evaluate:

  • Is it ready?
    • If not → edit or request changes
    • If yes → move to the next stage

Requirements Stage

The purpose of this stage is to clearly define what the system needs to do, from the user and business perspective, before thinking about technical implementation.

The requirements.md file is written as user stories with acceptance criteria, using EARS syntax.

EARS (Easy Approach to Requirements Syntax) is a structured way of writing requirements that makes requirements:

  • Clear
  • Unambiguous
  • Easy to test
  • Each requirement in requirements.md follows the pattern:
WHEN [condition/event]
THE SYSTEM SHALL [expected behavior]

Example:

WHEN the todo list state changes  
THE SYSTEM SHALL persist the current state of all todo items

Benefits of EARS writing:

  • Clear: Requirements are easy to read and understand
  • Easy to test: Can be directly converted into test cases
  • Easy to track: Each requirement can be traced during implementation
  • Complete: This writing forces the writer to think carefully about scenarios and behaviors

Kiro helps transform vague requirements into clearly structured requirements, reducing misunderstandings between product teams and engineering teams.

Design Stage

The purpose of the design stage focuses on answering the question: How will the system be built?

The design.md file is used to record:

  • Overall system architecture
  • How components interact with each other
  • Important technical decisions
  • This is where you describe the big picture of the system before starting to code

Common content in design.md:

  • Architecture – System architecture
  • Data Flow – Data flow
  • Interfaces – Interfaces between components
  • Data Models – Data models
  • Error Handling – Error handling
  • Unit Testing Strategy – Testing strategy
  • … (other extensions if needed)

Kiro provides clear structure for design documentation, making reading and discussion easier, especially for complex systems.

Implementation Plan (Tasks)

The purpose of this phase is to transform the technical design into specific, trackable, and actionable tasks.

The tasks.md file will detail:

  • Major tasks and sub-tasks.
  • Clear descriptions for each action item.
  • Expected outcomes (deliverables) for each task.
  • Dependencies or required resources (if any).
  • Ensuring each task is independent, well-defined, and measurable.