Skip to main content

Overview

Simple Flow guides you through three sequential phases, each producing a markdown document: Each phase requires explicit approval before proceeding to the next.

Phase 1: Requirements

Define what to build with user stories and acceptance criteria.

Output

specs/{feature}/requirements.md

Contents

  • Introduction - 2-3 sentence feature summary
  • Glossary - Domain terms used consistently throughout
  • Requirements - User stories with EARS acceptance criteria

EARS Format

Requirements use EARS (Easy Approach to Requirements Syntax):

Example

Approval Prompt

“Do the requirements look good? If so, we can move on to the design.”

Phase 2: Design

Define how to build it with technical architecture.

Output

specs/{feature}/design.md

Contents

  • Overview - Solution approach and key decisions
  • Architecture - Mermaid diagrams showing system structure
  • Components - Interfaces and responsibilities
  • Data Models - TypeScript interfaces with validation rules
  • Error Handling - Error types and recovery strategies
  • Testing Strategy - Test categories and coverage

Mermaid Diagrams

All visual diagrams use Mermaid syntax:

Example Data Model

Approval Prompt

“Does the design look good? If so, we can move on to the implementation plan.”

Phase 3: Tasks

Generate a step-by-step implementation plan.

Output

specs/{feature}/tasks.md

Contents

  • Numbered checkbox list - Incremental coding steps
  • Requirement references - Traceability to requirements
  • Checkpoint tasks - Verification points (run tests)

Task Format

Task Rules

Approval Prompt

“Do the tasks look good?”

Phase Transitions

Forward Flow

Backward Flow (Phase Regression)

If gaps are found, the agent suggests returning to a previous phase:

Execution

After all three documents are approved, execute tasks one at a time:
Or specify a task:
The agent:
  1. Reads all three spec files
  2. Executes the task
  3. Marks it complete [x]
  4. Recommends the next task
  5. Stops and waits for review

Summary