AI-driven development workflow orchestration CLI for BMAD projects
> AI-powered development lifecycle automation ā from vision to verified code.





---
This CLI is the automation engine for the BMAD Method ā a comprehensive, open-source methodology for AI-assisted software development.
$3The methodology and agents ā templates, personas, workflows, and best practices for structuring AI-driven development. Start here to understand the philosophy and set up your project. | $3The automation layer ā orchestrates the BMAD workflow, spawning AI agents to execute PRD ā Epic ā Story ā Dev ā QA pipelines at scale. Use this to automate and accelerate execution. |
> New to BMAD? Start with the BMAD Method repository to understand the methodology, then come back here to automate it.
>
> Note: This CLI is an independent project that implements the BMAD Method. We are not affiliated with bmad-code-org but build upon their excellent open-source methodology.
---
The BMAD Workflow CLI provides five core capabilities for AI-assisted development:
```
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā
ā 1. WORKFLOW Full PRD ā Epic ā Story ā Dev pipeline orchestration ā
ā ā
ā 2. DECOMPOSE Break big goals into executable task graphs ā
ā ā
ā 3. PRD TOOLS Validate and auto-fix PRD format with AI ā
ā ā
ā 4. STORY TOOLS Create, develop, list, move, and QA stories ā
ā ā
ā 5. QA PIPELINE Deep dive review ā Dev fix-forward ā Gate validation ā
ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
---
| Feature | Description |
|---------|-------------|
| Full Lifecycle Automation | PRD ā Epic ā Story ā Dev ā QA in one command |
| Decompose Command | Break any goal into dependency-managed task graphs |
| Pipelined Execution | Story creation and dev run concurrently (44% faster) |
| Multi-Provider Support | Claude and Gemini AI providers |
| QA Workflow | Automated review cycles with gate validation |
| Per-File Mode | Generate one task per file for large migrations |
| Story Format Output | Tasks output as BMAD-compatible stories |
| BMAD Agent Integration | Use any BMAD agent (analyst, architect, dev, pm, qa, etc.) |
---
- Node.js 20+ - Download
- Claude CLI - Install and run claude auth login
- BMAD Method - Set up in your project
`bash`
npm install -g @hyperdrive.bot/bmad-workflow
Verify:
`bash`
bmad-workflow --version
bmad-workflow --help
---
`bashRun complete workflow from a PRD
bmad-workflow workflow docs/PRD-my-feature.md
$3
`bash
Break a big goal into tasks
bmad-workflow decompose "Migrate entire codebase to TypeScript" \
--per-file --file-pattern "src/*/.js"What happens:
ā AI analyzes the goal
ā Creates dependency graph
ā Generates task for each file
ā Executes in parallel layers
`$3
`bash
Run QA workflow with fix-forward cycles
bmad-workflow stories qa "docs/stories/AUTH-*.md" --max-retries 3What happens:
ā QA agent reviews each story
ā Dev agent fixes issues
ā Re-validates until PASS or max retries
ā Moves to done/ or back to stories/
`---
Commands Overview
$3
Execute the complete PRD ā Epic ā Story ā Dev pipeline:
`bash
Basic usage
bmad-workflow workflow docs/PRD-feature.mdSkip phases
bmad-workflow workflow docs/PRD-feature.md --skip-dev
bmad-workflow workflow docs/epics/epic-1.md --skip-epicsTune performance
bmad-workflow workflow docs/PRD-feature.md --parallel 5 --pipelineDry run
bmad-workflow workflow docs/PRD-feature.md --dry-run --verbose
`Flags:
-
--parallel ā Max concurrent operations (default: 3)
- --pipeline / --no-pipeline ā Enable/disable concurrent execution
- --skip-epics, --skip-stories, --skip-dev ā Skip phases
- --dry-run ā Preview without execution
- --provider ā AI provider
- --auto-fix ā Auto-fix PRD format if parsing fails---
$3
Break large goals into executable task graphs with dependency management:
`bash
Basic decomposition
bmad-workflow decompose "Add user authentication"Per-file mode (great for migrations)
bmad-workflow decompose "Convert to TypeScript" \
--per-file --file-pattern "src/*/.js"Output as BMAD stories
bmad-workflow decompose "Refactor API layer" \
--story-format --story-prefix "REFACTOR"Plan only (don't execute)
bmad-workflow decompose "Redesign database schema" --plan-onlyExecute immediately
bmad-workflow decompose "Add dark mode" --execute --max-parallel 5Use specific BMAD agent
bmad-workflow decompose "Design new API" --agent architect --plan-only
`Flags:
-
--per-file ā Create one task per file
- --file-pattern ā Files to process in per-file mode
- --story-format ā Output tasks as BMAD stories
- --story-prefix ā Story ID prefix (e.g., "MIGRATE")
- --plan-only ā Generate graph without executing
- --execute ā Execute immediately (skip confirmation)
- --max-parallel ā Concurrent tasks (default: 3)
- --agent ā BMAD agent for planning (analyst, architect, dev, pm, etc.)
- --context ā Additional context files (repeatable)Session Output:
`
docs/decompose-sessions/session-2024-01-15T10-30-00/
āāā SESSION_README.md # Overview and instructions
āāā goal.yaml # Original goal and options
āāā task-graph.yaml # Full dependency graph
āāā master-prompt.md # Combined prompt for all tasks
āāā prompts/ # Individual task prompts
ā āāā task-001.md
ā āāā task-002.md
ā āāā ...
āāā outputs/ # Task execution outputs
āāā execution-report.yaml # Results and metrics
`---
$3
####
prd validate ā Check PRD Structure`bash
Validate and preview extraction
bmad-workflow prd validate docs/PRD-feature.mdOutput as JSON
bmad-workflow prd validate docs/PRD-feature.md --json
`Shows: epic count, existing files, story counts, what would be created.
####
prd fix ā Auto-Fix PRD Format`bash
Fix PRD format with AI
bmad-workflow prd fix docs/PRD-feature.mdWith architecture context
bmad-workflow prd fix docs/PRD-feature.md --reference docs/architecture.mdUse Gemini instead of Claude
bmad-workflow prd fix docs/PRD-feature.md --provider gemini
`Creates backup (
.bak) before modifying.---
$3
####
epics create ā Generate Epics from PRD`bash
Create all epics
bmad-workflow epics create docs/prd.mdCreate specific range
bmad-workflow epics create docs/prd.md --start 2 --count 3With context files
bmad-workflow epics create docs/prd.md --reference docs/architecture.md
`####
epics list ā List All Epics`bash
bmad-workflow epics list
bmad-workflow epics list --json
`---
$3
####
stories create ā Generate Stories from Epic`bash
Create all stories
bmad-workflow stories create docs/epics/epic-1.mdHigh concurrency
bmad-workflow stories create epic.md --parallel 10Start from specific story
bmad-workflow stories create epic.md --start 3Use specific BMAD agent
bmad-workflow stories create epic.md --agent sm --task create-next-story
`####
stories develop ā Execute Development`bash
Develop matching stories
bmad-workflow stories develop "docs/stories/AUTH-*.md"With interval between stories
bmad-workflow stories develop "stories/*.md" --interval 60With architecture reference
bmad-workflow stories develop "stories/*.md" --reference docs/architecture.md
`####
stories qa ā QA Workflow with Fix-ForwardThe QA command runs a complete quality assurance workflow:
`bash
QA all AUTH stories
bmad-workflow stories qa "docs/qa/stories/AUTH-*.md"With retry cycles
bmad-workflow stories qa "stories/*.md" --max-retries 3Custom QA focus
bmad-workflow stories qa "stories/*.md" --qa-prompt "Focus on security"Custom dev instructions
bmad-workflow stories qa "stories/*.md" --dev-prompt "Prioritize performance fixes"
`QA Workflow Phases:
1. QA Deep Dive ā Tea agent reviews implementation against acceptance criteria
2. Dev Fix-Forward ā Dev agent addresses findings (if CONCERNS/FAIL)
3. Re-Validation ā Repeat until PASS/WAIVED or max retries
4. Movement ā PASS/WAIVED ā
done/, FAIL/CONCERNS ā stories/Gate Statuses:
-
PASS ā All criteria met, moved to done
- CONCERNS ā Minor issues, may need fixes
- FAIL ā Significant issues, needs rework
- WAIVED ā Accepted as-is with known limitations####
stories list ā List Stories`bash
bmad-workflow stories list
bmad-workflow stories list --status=ready --epic=4
bmad-workflow stories list --json
`####
stories move ā Move to QA Directory`bash
bmad-workflow stories move "4.7-*.md"
bmad-workflow stories move "STORY-*.md" --force
`---
$3
####
config validate`bash
bmad-workflow config validate
`####
config show`bash
bmad-workflow config show
bmad-workflow config show --json
`---
Configuration
Create
.bmad-core/core-config.yaml in your project root:`yaml
PRD Configuration
prdFile: docs/prd.md
prdSharded: true
prdShardedLocation: docs/prdEpic Configuration
epicFilePattern: epic-{n}*.mdArchitecture
architectureSharded: true
architectureShardedLocation: docs/architectureStory Configuration
devStoryLocation: docs/storiesQA Configuration
qaLocation: docs/qaDevelopment Context (always loaded by agents)
devLoadAlwaysFiles:
- docs/architecture.md
- docs/coding-standards.md
- project-context.md
`---
Pipelined Execution
By default, story creation and development run concurrently:
`
Sequential: [Create All Stories] āāāāāāāāāāā [Develop All Stories]
900s 1800s
Total: 2700s (45 minutes)Pipelined: [Create Stories āāāāāāāāāāāāāāāāāāāāāā
āā [Dev Worker 1] ā Done ā Concurrent!
āā [Dev Worker 2] ā Done ā
āā [Dev Worker 3] ā Done ā
Total: ~1500s (25 minutes) ā 44% faster
`Control with
--pipeline (default) or --no-pipeline.---
AI Providers
Supports multiple AI providers:
`bash
Claude (default)
bmad-workflow workflow docs/prd.md --provider claudeGemini
bmad-workflow decompose "Add feature" --provider gemini
`---
BMAD Agent Integration
Use any BMAD agent for specialized tasks:
| Agent | Use Case |
|-------|----------|
|
analyst | Requirements analysis, research |
| architect | System design, technical decisions |
| dev | Implementation, coding |
| pm | Product management, prioritization |
| sm | Scrum master, story refinement |
| tea | QA, testing, validation |
| tech-writer | Documentation |
| ux-designer | User experience design |
| quick-flow-solo-dev | Rapid prototyping |`bash
bmad-workflow decompose "Design API" --agent architect
bmad-workflow stories create epic.md --agent sm
`---
Project Structure
`
src/
āāā commands/
ā āāā workflow.ts # Main pipeline orchestrator
ā āāā decompose.ts # Task graph decomposition
ā āāā config/ # Config commands
ā āāā epics/ # Epic commands
ā āāā prd/ # PRD tools
ā āāā stories/ # Story lifecycle
āāā services/
ā āāā agents/ # AI provider runners
ā āāā orchestration/ # Pipeline, batch, dependency management
ā āāā parsers/ # PRD, epic, story parsers
ā āāā scaffolding/ # File/session scaffolders
āāā models/ # TypeScript interfaces
āāā utils/ # Colors, formatters, progress
`---
Contributing
$3
`bash
git clone git@gitlab.com:dev_squad/repo/cli/bmad-orchestrator.git
cd bmad-orchestrator
npm install
npm run build
./bin/dev --help
npm test
`$3
Want to improve agent personas, templates, or workflows?
š BMAD-METHOD Contributing Guide
$3
| Script | Description |
|--------|-------------|
|
npm run build | Compile TypeScript |
| npm run lint | Run ESLint |
| npm test | Run test suite |
| npm run test:coverage | Tests with coverage |
| ./bin/dev | Run locally without building |---
Troubleshooting
$3
`bash
claude auth login
claude --version
`$3
`bash
ls .bmad-core/core-config.yaml
bmad-workflow config validate
`$3
Check the session directory:
`bash
ls docs/decompose-sessions/session-*/
cat docs/decompose-sessions/session-*/SESSION_README.md
`$3
Ensure stories have proper markdown structure with
## QA Results` section.---
- [ ] OpenAI GPT-4 provider support
- [ ] Web UI for workflow visualization
- [ ] GitHub Actions integration
- [ ] VS Code extension
- [ ] Custom agent templates
- [ ] Parallel QA execution
Have an idea? Open an issue!
---
| Repository | Description |
|------------|-------------|
| BMAD-METHOD | š§ The core methodology ā agents, templates, workflows |
| bmad-workflow (this repo) | ā” CLI automation engine |
- BMAD Method Questions: BMAD Discussions
- CLI Issues: GitLab Issues
- š BMAD Method Documentation
- š Getting Started Guide
- š¤ Agent Personas Reference
---
MIT - see LICENSE
---
Built on the BMAD Method
AI handles the lifecycle. You handle the vision.