Developing a feature "spec first"

Write the requirements, design and tasks before implementation, then implement with the agent and review.

Level: Intermediate

Workflow chart

1Write the requirementsKiro2Design and tasksKiro3ImplementationKiro4Pull request reviewQodo

Workflow description

It reduces errors in large features by pinning down the requirements before writing code.

Required tools

The stages and the role of each tool

  1. Write the requirements Kiro

    The tool's role: Generate the requirements and acceptance criteria

    Prompts / commands
    Describe the feature, then ask for the requirements to be generated in a testable form.
  2. Design and tasks Kiro

    The tool's role: Technical design and task breakdown

  3. Implementation Kiro

    The tool's role: Carry out the tasks one by one

  4. Pull request review Qodo

    The tool's role: Automated review against team rules

Output files

  • A requirements file
  • A design file
  • A task list
  • A pull request

Tests

  • Unit tests for each task
  • Automated pull request review

Possible problems

ProblemRemedy
Specs that are too generalAdd measurable acceptance criteria to each requirement