> ## Documentation Index
> Fetch the complete documentation index at: https://specs.md/llms.txt
> Use this file to discover all available pages before exploring further.

# Simple Flow Agent

> 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 actions={false} theme={null}
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.

> [tab] Claude Code
>
> ```
> /specsmd-agent
> ```

> [tab] Cursor
>
> ```
> /specsmd-agent
> ```
>
> Or use the `@` prefix:
>
> ```
> @specsmd-agent
> ```

> [tab] GitHub Copilot
>
> ```
> @specsmd-agent
> ```

## Agent Capabilities

The Simple Flow agent handles:

> [card] Spec Creation
>
> Generate requirements, design, and task documents from a feature idea

> [card] Phase Navigation
>
> Move through Requirements → Design → Tasks with explicit approval gates

> [card] Task Execution
>
> Execute implementation tasks one at a time with review

> [card] Context Loading
>
> Resume work on existing specs by reading saved documents

## 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] 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.

> [accordion] Review each phase carefully
>
> Don't rush through approvals. The design phase influences task generation, and tasks influence implementation quality.

> [accordion] 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".

> [accordion] Use checkpoints
>
> Checkpoint tasks run the test suite. Don't skip them—they catch issues early.

## 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 |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.