All guides

Implement a Small Feature with a Kiro Feature Spec

Use the Feature Spec three-phase flow to generate and review three files for a small feature, then run the tasks and verify the result.

AINavWritten / Updated Sources checked
On this page

At a glance

Kiro Specs split feature work into three files: requirements.md, design.md and tasks.md. This guide uses a made-up small feature and covers creating a spec, reviewing each phase, running tasks and checking progress. It suits readers who want implementation work to be traceable and easy to re-check.

Workflow

  1. Layer 1: Are requirements testable

    Read the user stories and acceptance criteria in requirements.md and confirm each one matches your description and can be judged pass or fail by an observable result.

  2. Layer 2: Does the design cover risk

    Check that design.md covers components, data flow, error handling and a testing strategy, and that it maps back to the requirements without adding scope.

  3. Layer 3: Are tasks trackable

    Check that tasks in tasks.md are small, independent and have clear outcomes, so the in-progress and completed statuses are meaningful when you run them.

Each stage cites official sources.

Before you start

  • Kiro is installed and signed in per the official docs, and a disposable practice project is open in the IDE (installation and login were not verified here).
  • A one-sentence feature description plus two or three expectations you can judge yourself, such as the fictional 'memo title character counter'.

1. Create a Feature spec

In the Kiro pane, click the + button under Specs, or choose Spec in the chat pane. When Kiro asks whether you are developing a feature or fixing a bug, choose Feature.

2. Enter the description and pick a workflow

Type: 'Show the typed character count below the title field on the memo edit page, and warn when it exceeds 50.' Then choose between Requirements-First and Design-First. This example uses Requirements-First so that what to build is settled first.

3. Review requirements.md

Open the generated requirements, select the floating Review button to enter Markdown Review, and comment on exact passages, for example 'the over-50 warning must not block saving'. Send the comments to Kiro together, and move on only when the acceptance criteria are unambiguous.

4. Review design.md

Check component design, data flow, error handling and testing strategy. If features appear that you did not ask for, use the same Review flow to ask for removal or a justification.

5. Check tasks.md and run tasks

Read the task list and confirm each outcome is clear. You can run one task or all of them. When running all, Kiro analyzes dependencies and runs independent tasks concurrently in waves: tasks inside a wave run concurrently, and waves run sequentially.

6. Verify and stop

Watch the statuses move to completed, then type 49, 50 and 51 characters in the practice project and compare with the acceptance criteria. If something is off, fix the relevant document and continue. If you are not satisfied, stop running the remaining tasks and leave things as they are.

Original example

Fictional scenario: the practice project is a local memo page. Enter 'Show the character count below the title field and warn when it exceeds 50', and choose Requirements-First. The requirements should contain something like 'when the title has 51 characters, a warning is shown'; the design should touch only that field and the warning text, not the save logic; the task list might hold three items such as adding the count, adding the warning, and adding tests. After running, 50 characters should show no warning and 51 should; otherwise return to the requirements or tasks and revise. These items are illustrative, not real Kiro output.

Completion checks

  • Each acceptance criterion in requirements.md can be verified with one concrete input.
  • design.md adds nothing beyond the requirements and includes error handling and a testing strategy.
  • Every task in tasks.md has a clear outcome and its status can go from in progress to completed.
  • Boundary-value manual input matches the acceptance criteria.

Limits

  • This covers only the basic Feature Spec flow, not Bugfix Specs, Quick Spec (which skips approval gates), Analyze Requirements or Correctness.
  • Parallel execution depends on Kiro's own dependency analysis; do not assume any task will run concurrently, and rely on the actual task statuses.
  • Do not put real user data, secrets or company details in the description; review and test any generated code yourself before using it.

Verification scope

This guide is based on reading the official documentation. Login, installation, product API execution, file upload and generated output were not tested, and the example content is original and illustrative.

Article sources

Original editorial content; official descriptions and checking suggestions are distinguished.

  1. Kiro · Official sources
    View details