---
title: Simple Flow Agent
description: The single agent that guides you through spec generation
---

## Overview

Simple Flow uses a single agent (`/specsmd-agent`) that guides you through all three phases: Requirements, Design, and Tasks.

```mermaid
flowchart LR
    A(specsmd-agent):::design --> R(Requirements):::plan
    A --> D(Design):::build
    A --> T(Tasks):::warn
    A --> E(Execute):::check
    classDef design fill:#fff,stroke:#A855F7,color:#7E22CE,stroke-width:1.5px,rx:8,ry:8
    classDef plan fill:#fff,stroke:#6366F1,color:#4338CA,stroke-width:1.5px,rx:8,ry:8
    classDef build fill:#fff,stroke:#0EA5E9,color:#0369A1,stroke-width:1.5px,rx:8,ry:8
    classDef warn fill:#fff,stroke:#F59E0B,color:#B45309,stroke-width:1.5px,rx:8,ry:8
    classDef check fill:#fff,stroke:#EC4899,color:#BE185D,stroke-width:2px,rx:8,ry:8
```

## Invoking the Agent

:::warning
**These are NOT command-line commands.** These are prompts you type in your AI coding tool's chat interface.
:::

**Claude Code**

```
/specsmd-agent
```

**Cursor**

```
/specsmd-agent
```
Or use the `@` prefix:
```
@specsmd-agent
```

**GitHub Copilot**

```
@specsmd-agent
```

## Agent Capabilities

The Simple Flow agent handles:

<CardGroup cols={2}>
  <Card title="Spec Creation" icon="file-plus">
    Generate requirements, design, and task documents from a feature idea
  </Card>
  <Card title="Phase Navigation" icon="arrow-left-right">
    Move through Requirements → Design → Tasks with explicit approval gates
  </Card>
  <Card title="Task Execution" icon="play">
    Execute implementation tasks one at a time with review
  </Card>
  <Card title="Context Loading" icon="folder-open">
    Resume work on existing specs by reading saved documents
  </Card>
</CardGroup>

## Commands

| Command | Description | Example |
|---------|-------------|---------|
| Create new spec | Start a new feature spec | `/specsmd-agent Create a todo app` |
| Continue work | Resume existing spec | `/specsmd-agent` |
| Resume specific | Work on named spec | `/specsmd-agent --spec="todo-app"` |
| Next task | Ask what to do next | `/specsmd-agent What's the next task?` |
| Execute task | Run specific task | `/specsmd-agent Execute task 2.1` |

## Workflow

### 1. Create a Spec

```
/specsmd-agent Create a user dashboard with analytics
```

The agent:
1. Derives a feature name (`user-dashboard`)
2. Generates `requirements.md`
3. Waits for approval

### 2. Approve or Revise

**To approve:** Say "yes", "approved", or "looks good"

**To revise:** Provide specific feedback like "Add a requirement for export functionality"

### 3. Progress Through Phases

After approving requirements:
- Agent generates `design.md`
- Wait for approval
- Agent generates `tasks.md`
- Wait for approval

### 4. Execute Tasks

```
/specsmd-agent What's the next task?
```

The agent executes one task, then waits for review before continuing.

## Agent Session Lifecycle

1. **Context Loading**

    Agent reads existing spec files from `specs/{feature-name}/`

2. **Phase Detection**

    Agent determines current phase based on which files exist and their status

3. **Generation or Execution**

    Agent generates the next document or executes the next task

4. **Approval Gate**

    Agent waits for explicit approval before proceeding

:::warning
The agent is stateless. It reads spec files at startup. Ensure documents are saved after each step.
:::

## Best Practices

<Accordion>
  <AccordionItem title="Be specific with feature ideas">
    **Good**: "User auth with email/password and session management"

    **Too vague**: "Login feature"

    The more specific you are, the better the generated specs.
  </AccordionItem>
  <AccordionItem title="Review each phase carefully">
    Don't rush through approvals. The design phase influences task generation, and tasks influence implementation quality.
  </AccordionItem>
  <AccordionItem title="One task at a time (default)">
    The agent pauses after each task for review. If you're confident, say "continue until done" or "go yolo".
  </AccordionItem>
  <AccordionItem title="Use checkpoints">
    Checkpoint tasks run the test suite. Don't skip them—they catch issues early.
  </AccordionItem>
</Accordion>

## Comparison with Other Flows

| Aspect | Simple (1 agent) | FIRE (3 agents) | AI-DLC (4 agents) |
|--------|------------------|-----------------|-------------------|
| **Complexity** | Single agent handles all | Specialized agents | Highly specialized |
| **Phases** | Req → Design → Tasks | Plan → Execute | Inception → Construction → Operations |
| **Overhead** | Minimal | Adaptive | Comprehensive |
| **Best for** | Quick specs, prototypes | Production work | Complex domains |
