Skip to content

Introduction

← Guide home · Español


The problem

AI assistants are fast, but unstructured chats often lead to:

  • Vague requirements going straight into code
  • Scope creep and unreviewed changes
  • Lost context between “let’s plan this” and “here’s the patch”

You end up re-explaining the same constraints in every session.


What SpecFlow does

SpecFlow is a small CLI (@ceatoleii/specflow) that installs a structured workflow into your repository. Your assistant still feels like chat — but behind the scenes it follows phases, writes specs to disk, and only one agent is allowed to touch source code.

Pipeline: Requirement → Plan → Tasks → Code

Cursor is the supported IDE in v2.2+ (init installs its adapter). Optional Linear sync uses the Linear MCP plugin inside Cursor — not API keys in the CLI.

PhaseWhoYour involvement
RefineRefinerAnswer questions; approve task.md implicitly by moving on
DesignSDDRead plan.md / tasks.md; say /approve to allow code
ImplementImplementerWatch progress; unblock if asked
ReviewReviewerRead review.md; PASS archives and ends flow

Why use it

BenefitHow
Clarity before codeAcceptance criteria (AC1, AC2…) live in task.md before any edit
Design gateNo implementation until you /approve the plan
Single writerOnly Implementer edits source files — less accidental refactors
Auditable trailArtifacts in .agents-state/current/; completed tasks in history/
Team alignmentSame rules in .agents/ for everyone; sync updates the engine

When to use it — and when not to

Use SpecFlowSkip it
Feature has real scope and acceptance criteriaOne-line typo fix
You want a plan you can read before code landsYou already have a signed-off spec elsewhere
Several people/tools should follow the same rulesYou prefer fully ad-hoc chat every time

Direct mode (default): no .agents-state/.flow-enabled → zero overhead, normal assistant.

Flow mode: you start a task → orchestrator routes to the active phase agent.

mermaid
flowchart TB
  subgraph direct [Direct mode — default]
    U1[You] --> A1[AI assistant]
    A1 --> U1
  end
  subgraph flow [Flow mode — task active]
    U2[You] --> O[Orchestrator]
    O --> R[Refiner / SDD / Implementer / Reviewer]
    R --> O
  end
  U1 -.->|nueva tarea / flow on| U2
  U2 -.->|flow off / modo directo| U1

How it fits your project

SpecFlow adds configuration and runtime folders — not a new app framework.

AreaWho maintains itPurpose
Your source codeYou (Implementer during flow)The product you ship
.agents-docs/YouFacts about your stack, style, tests
.agents/SpecFlow (init / sync)Phase agents & templates
.agents-state/Runtime (gitignored)Active task files

Project knowledge goes in .agents-docs/ so agents stop guessing. Engine rules live in .agents/ and update safely with specflow sync.


What you will not find here

This guide explains how to use SpecFlow in your project — not how the npm package is built internally. For day-to-day work you do not need to read maintainer docs or CLI source code.


← Guide home · Getting Started →

Released under the MIT License.