Skip to main content
Workflows are the structured processes that BMad agents execute to guide you through proven development methodologies. Rather than free-form AI interactions, workflows enforce step-by-step discipline that produces consistent, high-quality results.

What Are Workflows?

A workflow is a multi-step, interactive process that:
  • Breaks complex activities (like creating a PRD) into sequential steps
  • Guides conversation through proven methodologies
  • Enforces order and completeness
  • Tracks progress in artifact frontmatter
  • Pauses for user decisions at key points
  • Produces structured output documents

Workflows vs. Simple Prompts

Workflow Architecture

BMad uses a step-file architecture for disciplined execution:

Core Principles

1. Micro-file Design
  • Each step is a self-contained instruction file
  • Steps are part of an overall workflow sequence
  • Must be followed exactly — no skipping or optimization
2. Just-In-Time Loading
  • Only the current step file is loaded into memory
  • Never pre-load future steps
  • Prevents context window overflow
3. Sequential Enforcement
  • Steps must complete in order
  • No jumping ahead or skipping
  • Maintains methodology integrity
4. State Tracking
  • Progress documented in output file frontmatter
  • stepsCompleted array tracks which steps finished
  • Enables pause/resume across conversations
5. Append-Only Building
  • Workflows build documents by appending content
  • Each step adds to the artifact
  • Final output is comprehensive

Workflow File Structure

How Workflows Execute

Step Processing Rules

  1. READ COMPLETELY — Always read the entire step file before taking action
  2. FOLLOW SEQUENCE — Execute all numbered sections in order
  3. WAIT FOR INPUT — If a menu is presented, halt and wait for user selection
  4. CHECK CONTINUATION — Only proceed to next step when user selects ‘Continue’
  5. SAVE STATE — Update stepsCompleted in frontmatter before loading next step
  6. LOAD NEXT — When directed, read fully and follow the next step file

Example: Create PRD Workflow

Entry Point: workflow-create-prd.md
Step 1: steps/step-01-init.md
Step 2: steps/step-02-user-interview.md
Then load: step-03-functional-requirements.md
Without Solutioning: Agent 1 implements Epic 1 using REST API Agent 2 implements Epic 2 using GraphQL Result: Inconsistent design, integration nightmare With Solutioning: Architecture decides: “Use GraphQL for all APIs” All agents follow architecture decisions
Result: Consistent implementation
  1. create-story → Prepare next story
  2. dev-story → Implement with tests
  3. code-review → Validate quality
  4. [Repeat for each story]
  5. retrospective → Review epic
  • Executes every task in order
  • Writes tests
  • Verifies acceptance criteria
2. Direct mode:
  • Gathers context
  • Builds mental plan
  • Executes directly
Post-Implementation:
  • Self-check audit against tasks and AC
  • Adversarial code review of diff
  • Present findings for resolution

When to Use Quick Flow

Good for:
  • Bug fixes and patches
  • Refactoring existing code
  • Small, well-understood features
  • Prototyping and spikes
  • Single-developer scope
NOT for:
  • New products needing stakeholder alignment
  • Major features spanning multiple components
  • Architectural decisions (DB schema, API contracts)
  • Unclear or contested requirements

Workflow Features

Advanced Elicitation

Many workflows offer advanced elicitation after generating content:
The agent re-examines its output through the chosen method, surfaces improvements, and you decide whether to keep them. See Advanced Elicitation for details.

Adversarial Review

Implementation workflows include adversarial review:
See Preventing Agent Conflicts for details.

Implementation Readiness Gate

The check-implementation-readiness workflow validates alignment:
Prevents discovering misalignment during development.

Scope Detection

Quick Flow includes scope detection guardrails:

Running Workflows

  • Loads appropriate agent
  • Initializes workflow
  • Starts at step 1

Via Agent Menu

  • More conversational
  • Can ask questions first
  • Then trigger workflow from menu

Workflow Naming Convention

Best Practices

Use Fresh Chats

Start a new conversation for each workflow:
Why: Prevents context window limits from causing incomplete execution.

Don’t Skip Steps

Let workflows complete their full sequence:
Why: Each step builds context that improves output quality.

Leverage BMad-Help

Run /bmad-help to understand what’s next:
BMad-Help automatically runs at the end of every workflow.

Provide Context Files

Create project-context.md to ensure consistency:
Workflows load this automatically to align agent decisions. See Project Context for details.

Creating Custom Workflows

Use BMad Builder module to create custom workflows:
  1. Define workflow goals and phases
  2. Create step files with numbered sections
  3. Add menus and state tracking
  4. Configure in agent menu
  5. Install in project
Custom workflows follow the same step-file architecture.

Next Steps