@hyperdrive.bot/bmad-workflow 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +373 -790
  2. package/package.json +5 -6
package/README.md CHANGED
@@ -1,1017 +1,600 @@
1
- # BMAD Orchestrator CLI
1
+ # BMAD Workflow CLI
2
2
 
3
- [![CI](https://github.com/your-org/super-repo/actions/workflows/ci.yml/badge.svg)](https://github.com/your-org/super-repo/actions/workflows/ci.yml)
4
- [![Tests](https://github.com/your-org/super-repo/actions/workflows/test.yml/badge.svg)](https://github.com/your-org/super-repo/actions/workflows/test.yml)
5
- [![codecov](https://codecov.io/gh/your-org/super-repo/branch/main/graph/badge.svg)](https://codecov.io/gh/your-org/super-repo)
6
- [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
7
- [![Version](https://img.shields.io/npm/v/bmad-workflow.svg)](https://npmjs.org/package/bmad-workflow)
8
- [![Downloads/week](https://img.shields.io/npm/dw/bmad-workflow.svg)](https://npmjs.org/package/bmad-workflow)
9
-
10
- A professional command-line tool for orchestrating AI-driven development workflows. Built with oclif framework, this CLI manages PRD → Epic → Story → Development workflows, spawning Claude AI agents to generate documentation and implement features.
11
-
12
- ## Table of Contents
13
-
14
- - [Features](#features)
15
- - [Pipelined Workflow Architecture](#pipelined-workflow-architecture)
16
- - [Installation](#installation)
17
- - [Prerequisites](#prerequisites)
18
- - [Global Installation](#global-installation-recommended)
19
- - [Local Installation](#local-installation-project-specific)
20
- - [Quick Start](#quick-start)
21
- - [Configuration](#configuration)
22
- - [Commands](#commands)
23
- - [Common Workflows](#common-workflows)
24
- - [Troubleshooting](#troubleshooting)
25
- - [Development](#development)
26
- - [License](#license)
3
+ > **AI-powered development lifecycle automation — from vision to verified code.**
27
4
 
28
- ## Features
5
+ [![npm version](https://img.shields.io/npm/v/@hyperdrive.bot/bmad-workflow.svg)](https://www.npmjs.com/package/@hyperdrive.bot/bmad-workflow)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
+ [![Node.js](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen)](https://nodejs.org/)
8
+ [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
9
+ [![BMAD Method](https://img.shields.io/badge/Built%20with-BMAD%20Method-blue)](https://github.com/bmad-code-org/BMAD-METHOD)
29
10
 
30
- - **PRD to Epic Generation**: Parse Product Requirement Documents and generate epic files
31
- - **Epic to Story Generation**: Break down epics into implementable user stories
32
- - **Automated Development**: Execute development workflows with AI agents
33
- - **Pipelined Workflow Execution**: Story creation and development run concurrently for 44% faster execution
34
- - **Parallel Processing**: Support for concurrent epic/story creation with configurable concurrency
35
- - **Type-Safe**: Built with TypeScript in strict mode for reliability
36
- - **Comprehensive Testing**: Unit, integration, and e2e test infrastructure
37
- - **Structured Logging**: Production-ready logging with Pino
38
- - **Real-Time Progress Tracking**: Visual progress indicators showing concurrent phase execution
39
- - **Dry-Run Mode**: Preview actions without execution
40
- - **Graceful Cancellation**: Cancel workflows with Ctrl+C without corrupting state
41
- - **Flexible Execution Modes**: Choose between pipelined (default) or sequential execution
11
+ ---
42
12
 
43
- ## Pipelined Workflow Architecture
13
+ ## Built on the BMAD Method
44
14
 
45
- The BMAD CLI features a **pipelined workflow architecture** that executes story creation and development phases **concurrently**, significantly reducing total workflow time.
15
+ This CLI is the **automation engine** for the [**BMAD Method**](https://github.com/bmad-code-org/BMAD-METHOD) a comprehensive, open-source methodology for AI-assisted software development.
46
16
 
47
- ### How It Works
17
+ <table>
18
+ <tr>
19
+ <td width="50%">
48
20
 
49
- Traditional sequential workflow processes one phase at a time:
21
+ ### 🧠 [BMAD Method](https://github.com/bmad-code-org/BMAD-METHOD)
22
+ The **methodology and agents** — templates, personas, workflows, and best practices for structuring AI-driven development.
50
23
 
51
- ```
52
- Sequential: [Create All Stories] → [Develop All Stories]
53
- └─ 15 × 60s = 900s ─┘ └─ 15 × 120s = 1800s ─┘
54
- Total: 2700s (45 minutes)
55
- ```
24
+ **Start here** to understand the philosophy and set up your project.
56
25
 
57
- Pipelined workflow overlaps story creation and development:
26
+ </td>
27
+ <td width="50%">
58
28
 
59
- ```
60
- Pipelined: [Create Stories ─────────────────────┐
61
- └→ Queue → [Dev Worker 1] → Done │
62
- └→ Queue → [Dev Worker 2] → Done │ Concurrent Execution
63
- └→ Queue → [Dev Worker 3] → Done │
64
- └→ Queue → [Dev Worker...] → Done ┘
65
- Total: ~1500s (25 minutes) - 44% faster
66
- ```
29
+ ### ⚡ BMAD Workflow CLI (this repo)
30
+ The **automation layer** — orchestrates the BMAD workflow, spawning AI agents to execute PRD → Epic → Story → Dev → QA pipelines at scale.
67
31
 
68
- **Key Components:**
32
+ **Use this** to automate and accelerate execution.
69
33
 
70
- - **Story Queue**: Thread-safe FIFO queue coordinates story handoff from creation to development
71
- - **Producer Phase**: Story creation enqueues completed stories as they finish
72
- - **Worker Pool**: Multiple concurrent dev workers consume from queue (configurable via `--parallel`)
73
- - **Pipeline Coordinator**: Orchestrates concurrent phases using Promise.allSettled
34
+ </td>
35
+ </tr>
36
+ </table>
74
37
 
75
- ### Performance Benefits
38
+ > **New to BMAD?** Start with the [BMAD Method repository](https://github.com/bmad-code-org/BMAD-METHOD) to understand the methodology, then come back here to automate it.
39
+ >
40
+ > *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.*
76
41
 
77
- | Workflow Size | Sequential | Pipelined | Time Saved |
78
- | ------------- | ---------- | --------- | ---------- |
79
- | 5 stories | 15 min | 10 min | 33% |
80
- | 10 stories | 30 min | 18 min | 40% |
81
- | 15 stories | 45 min | 25 min | 44% |
82
- | 20 stories | 60 min | 35 min | 42% |
42
+ ---
83
43
 
84
- **Performance scales with:**
44
+ ## What This CLI Does
85
45
 
86
- - Number of stories in epic (more stories = greater benefit)
87
- - Worker pool size (`--parallel` flag)
88
- - Story creation vs development time ratio
46
+ The BMAD Workflow CLI provides **five core capabilities** for AI-assisted development:
89
47
 
90
- ### When to Use Each Mode
48
+ ```
49
+ ┌──────────────────────────────────────────────────────────────────────────┐
50
+ │ │
51
+ │ 1. WORKFLOW Full PRD → Epic → Story → Dev pipeline orchestration │
52
+ │ │
53
+ │ 2. DECOMPOSE Break big goals into executable task graphs │
54
+ │ │
55
+ │ 3. PRD TOOLS Validate and auto-fix PRD format with AI │
56
+ │ │
57
+ │ 4. STORY TOOLS Create, develop, list, move, and QA stories │
58
+ │ │
59
+ │ 5. QA PIPELINE Deep dive review → Dev fix-forward → Gate validation │
60
+ │ │
61
+ └──────────────────────────────────────────────────────────────────────────┘
62
+ ```
91
63
 
92
- **Pipelined Mode (Default, Recommended):**
64
+ ---
93
65
 
94
- - Processing multiple stories (3+)
95
- - ✅ Normal operation with adequate API rate limits
96
- - ✅ Maximizing throughput
97
- - ✅ Modern development workflows
66
+ ## Key Features
98
67
 
99
- **Sequential Mode (`--no-pipeline`):**
68
+ | Feature | Description |
69
+ |---------|-------------|
70
+ | **Full Lifecycle Automation** | PRD → Epic → Story → Dev → QA in one command |
71
+ | **Decompose Command** | Break any goal into dependency-managed task graphs |
72
+ | **Pipelined Execution** | Story creation and dev run concurrently (44% faster) |
73
+ | **Multi-Provider Support** | Claude and Gemini AI providers |
74
+ | **QA Workflow** | Automated review cycles with gate validation |
75
+ | **Per-File Mode** | Generate one task per file for large migrations |
76
+ | **Story Format Output** | Tasks output as BMAD-compatible stories |
77
+ | **BMAD Agent Integration** | Use any BMAD agent (analyst, architect, dev, pm, qa, etc.) |
100
78
 
101
- - ⚠️ Debugging workflow issues
102
- - ⚠️ API rate limit constraints
103
- - ⚠️ Single story processing
104
- - ⚠️ Backward compatibility requirements
79
+ ---
105
80
 
106
81
  ## Installation
107
82
 
108
83
  ### Prerequisites
109
84
 
110
- Before installing the BMAD Orchestrator CLI, ensure you have:
111
-
112
- - **Node.js 18.x LTS or higher** - [Download Node.js](https://nodejs.org/)
113
- - **Claude CLI** - Required for AI agent operations. Install and authenticate Claude CLI before using this tool.
114
- - **Git** - For repository operations and version control
85
+ - **Node.js 20+** - [Download](https://nodejs.org/)
86
+ - **Claude CLI** - [Install](https://docs.anthropic.com/claude/docs/claude-cli) and run `claude auth login`
87
+ - **BMAD Method** - [Set up in your project](https://github.com/bmad-code-org/BMAD-METHOD#quick-start)
115
88
 
116
- ### Global Installation (Recommended)
117
-
118
- Install the CLI globally to use `bmad-workflow` command anywhere:
89
+ ### Install
119
90
 
120
91
  ```bash
121
- npm install -g @bmad/workflow-cli
92
+ npm install -g @hyperdrive.bot/bmad-workflow
122
93
  ```
123
94
 
124
- Verify the installation:
95
+ Verify:
125
96
 
126
97
  ```bash
127
98
  bmad-workflow --version
128
99
  bmad-workflow --help
129
100
  ```
130
101
 
131
- ### Local Installation (Project-specific)
132
-
133
- Install as a development dependency in your project:
102
+ ---
134
103
 
135
- ```bash
136
- npm install --save-dev @bmad/workflow-cli
137
- ```
104
+ ## Quick Start
138
105
 
139
- Run via npx:
106
+ ### 1. Full Pipeline (PRD → Code)
140
107
 
141
108
  ```bash
142
- npx bmad-workflow --version
143
- npx bmad-workflow --help
144
- ```
109
+ # Run complete workflow from a PRD
110
+ bmad-workflow workflow docs/PRD-my-feature.md
145
111
 
146
- Or add to your package.json scripts:
147
-
148
- ```json
149
- {
150
- "scripts": {
151
- "workflow": "bmad-workflow"
152
- }
153
- }
112
+ # What happens:
113
+ # ✓ Parses PRD, extracts epics
114
+ # ✓ Creates epic files with AI
115
+ # ✓ Generates stories from each epic
116
+ # ✓ Develops each story (pipelined)
117
+ # 🎉 Done!
154
118
  ```
155
119
 
156
- Then run with:
120
+ ### 2. Decompose Any Goal
157
121
 
158
122
  ```bash
159
- npm run workflow -- --help
160
- ```
161
-
162
- ## Quick Start
163
-
164
- 1. **Navigate to your project directory:**
165
-
166
- ```bash
167
- cd your-project
168
- ```
123
+ # Break a big goal into tasks
124
+ bmad-workflow decompose "Migrate entire codebase to TypeScript" \
125
+ --per-file --file-pattern "src/**/*.js"
169
126
 
170
- 2. **Create BMAD configuration:**
171
-
172
- Create `.bmad-core/core-config.yaml` with your project settings:
173
-
174
- ```yaml
175
- # Required: PRD configuration
176
- prdFile: docs/prd.md
177
- prdSharded: true
178
- prdShardedLocation: docs/prd
127
+ # What happens:
128
+ # ✓ AI analyzes the goal
129
+ # Creates dependency graph
130
+ # ✓ Generates task for each file
131
+ # ✓ Executes in parallel layers
132
+ ```
179
133
 
180
- # Required: Epic configuration
181
- epicFilePattern: epic-{n}*.md
134
+ ### 3. QA Your Stories
182
135
 
183
- # Required: Architecture configuration
184
- architectureSharded: true
185
- architectureShardedLocation: docs/architecture
136
+ ```bash
137
+ # Run QA workflow with fix-forward cycles
138
+ bmad-workflow stories qa "docs/stories/AUTH-*.md" --max-retries 3
186
139
 
187
- # Required: Story location
188
- devStoryLocation: docs/stories
140
+ # What happens:
141
+ # ✓ QA agent reviews each story
142
+ # ✓ Dev agent fixes issues
143
+ # ✓ Re-validates until PASS or max retries
144
+ # ✓ Moves to done/ or back to stories/
145
+ ```
189
146
 
190
- # Optional: Files to load during development
191
- devLoadAlwaysFiles:
192
- - docs/architecture/coding-standards.md
193
- - docs/architecture/tech-stack.md
147
+ ---
194
148
 
195
- # Optional: QA configuration
196
- qaLocation: docs/qa
197
- ```
149
+ ## Commands Overview
198
150
 
199
- 3. **Run your first workflow:**
151
+ ### `workflow` Full Pipeline Orchestration
200
152
 
201
- ```bash
202
- bmad-workflow workflow docs/prd.md
203
- ```
153
+ Execute the complete PRD → Epic → Story → Dev pipeline:
204
154
 
205
- This will:
206
- - Parse the PRD document
207
- - Generate epics from the PRD
208
- - Create user stories from each epic
209
- - Execute development workflows for each story
155
+ ```bash
156
+ # Basic usage
157
+ bmad-workflow workflow docs/PRD-feature.md
210
158
 
211
- ## Configuration
159
+ # Skip phases
160
+ bmad-workflow workflow docs/PRD-feature.md --skip-dev
161
+ bmad-workflow workflow docs/epics/epic-1.md --skip-epics
212
162
 
213
- The BMAD CLI requires a `.bmad-core/core-config.yaml` file in your project root. This file defines paths and settings for the workflow orchestration.
163
+ # Tune performance
164
+ bmad-workflow workflow docs/PRD-feature.md --parallel 5 --pipeline
214
165
 
215
- ### Configuration File Format
166
+ # Dry run
167
+ bmad-workflow workflow docs/PRD-feature.md --dry-run --verbose
168
+ ```
216
169
 
217
- Create `.bmad-core/core-config.yaml` with the following structure:
170
+ **Flags:**
171
+ - `--parallel <n>` — Max concurrent operations (default: 3)
172
+ - `--pipeline` / `--no-pipeline` — Enable/disable concurrent execution
173
+ - `--skip-epics`, `--skip-stories`, `--skip-dev` — Skip phases
174
+ - `--dry-run` — Preview without execution
175
+ - `--provider <claude|gemini>` — AI provider
176
+ - `--auto-fix` — Auto-fix PRD format if parsing fails
218
177
 
219
- ```yaml
220
- # PRD Configuration
221
- prdFile: docs/prd.md # Path to main PRD file
222
- prdVersion: v4 # PRD version (optional)
223
- prdSharded: true # Whether PRD is split across multiple files
224
- prdShardedLocation: docs/prd # Directory containing PRD shards
178
+ ---
225
179
 
226
- # Epic Configuration
227
- epicFilePattern: epic-{n}*.md # Pattern for epic filenames ({n} = epic number)
180
+ ### `decompose` — Task Graph Decomposition
228
181
 
229
- # Architecture Configuration
230
- architectureFile: docs/architecture.md # Path to main architecture file (optional)
231
- architectureVersion: v4 # Architecture version (optional)
232
- architectureSharded: true # Whether architecture is split across files
233
- architectureShardedLocation: docs/architecture # Directory containing architecture files
182
+ Break large goals into executable task graphs with dependency management:
234
183
 
235
- # Story Configuration
236
- devStoryLocation: docs/stories # Directory for active stories
184
+ ```bash
185
+ # Basic decomposition
186
+ bmad-workflow decompose "Add user authentication"
237
187
 
238
- # QA Configuration
239
- qaLocation: docs/qa # Directory for QA artifacts
188
+ # Per-file mode (great for migrations)
189
+ bmad-workflow decompose "Convert to TypeScript" \
190
+ --per-file --file-pattern "src/**/*.js"
240
191
 
241
- # Development Configuration (Optional)
242
- devLoadAlwaysFiles: # Files loaded during development
243
- - docs/architecture/coding-standards.md
244
- - docs/architecture/tech-stack.md
245
- - docs/architecture/source-tree.md
192
+ # Output as BMAD stories
193
+ bmad-workflow decompose "Refactor API layer" \
194
+ --story-format --story-prefix "REFACTOR"
246
195
 
247
- # Markdown Exploder (Optional)
248
- markdownExploder: true # Enable markdown section splitting
196
+ # Plan only (don't execute)
197
+ bmad-workflow decompose "Redesign database schema" --plan-only
249
198
 
250
- # Debug Log (Optional)
251
- devDebugLog: .ai/debug-log.md # Path to debug log file
199
+ # Execute immediately
200
+ bmad-workflow decompose "Add dark mode" --execute --max-parallel 5
252
201
 
253
- # Slash Command Prefix (Optional)
254
- slashPrefix: BMad # Prefix for slash commands
202
+ # Use specific BMAD agent
203
+ bmad-workflow decompose "Design new API" --agent architect --plan-only
255
204
  ```
256
205
 
257
- ### Validating Configuration
258
-
259
- Validate your configuration file:
206
+ **Flags:**
207
+ - `--per-file` — Create one task per file
208
+ - `--file-pattern <glob>` — Files to process in per-file mode
209
+ - `--story-format` — Output tasks as BMAD stories
210
+ - `--story-prefix <prefix>` — Story ID prefix (e.g., "MIGRATE")
211
+ - `--plan-only` — Generate graph without executing
212
+ - `--execute` — Execute immediately (skip confirmation)
213
+ - `--max-parallel <n>` — Concurrent tasks (default: 3)
214
+ - `--agent <name>` — BMAD agent for planning (analyst, architect, dev, pm, etc.)
215
+ - `--context <file>` — Additional context files (repeatable)
260
216
 
261
- ```bash
262
- bmad-workflow config validate
217
+ **Session Output:**
218
+ ```
219
+ docs/decompose-sessions/session-2024-01-15T10-30-00/
220
+ ├── SESSION_README.md # Overview and instructions
221
+ ├── goal.yaml # Original goal and options
222
+ ├── task-graph.yaml # Full dependency graph
223
+ ├── master-prompt.md # Combined prompt for all tasks
224
+ ├── prompts/ # Individual task prompts
225
+ │ ├── task-001.md
226
+ │ ├── task-002.md
227
+ │ └── ...
228
+ ├── outputs/ # Task execution outputs
229
+ └── execution-report.yaml # Results and metrics
263
230
  ```
264
231
 
265
- This command will:
266
-
267
- - Check if the configuration file exists
268
- - Validate YAML syntax
269
- - Verify required fields are present
270
- - Check field types and values
271
- - Report specific errors with suggestions
232
+ ---
272
233
 
273
- ### Viewing Configuration
234
+ ### `prd` — PRD Tools
274
235
 
275
- Display your current configuration:
236
+ #### `prd validate` — Check PRD Structure
276
237
 
277
238
  ```bash
278
- # Display as YAML (human-readable)
279
- bmad-workflow config show
239
+ # Validate and preview extraction
240
+ bmad-workflow prd validate docs/PRD-feature.md
280
241
 
281
- # Display as JSON (machine-readable)
282
- bmad-workflow config show --json
242
+ # Output as JSON
243
+ bmad-workflow prd validate docs/PRD-feature.md --json
283
244
  ```
284
245
 
285
- ## Commands
286
-
287
- ### Workflow Commands
246
+ Shows: epic count, existing files, story counts, what would be created.
288
247
 
289
- #### `workflow` - Complete PRD → Epic → Story → Dev Orchestration
290
-
291
- Execute the complete workflow from a single entry point:
248
+ #### `prd fix` — Auto-Fix PRD Format
292
249
 
293
250
  ```bash
294
- # Start workflow from PRD
295
- bmad-workflow workflow docs/PRD-feature.md
296
-
297
- # Start from epic, skip development
298
- bmad-workflow workflow docs/epics/epic-1.md --skip-dev
299
-
300
- # Dry run to preview actions
301
- bmad-workflow workflow docs/PRD-feature.md --dry-run
251
+ # Fix PRD format with AI
252
+ bmad-workflow prd fix docs/PRD-feature.md
302
253
 
303
- # Custom parallelization and intervals
304
- bmad-workflow workflow docs/PRD-feature.md --parallel 5 --prd-interval 60
254
+ # With architecture context
255
+ bmad-workflow prd fix docs/PRD-feature.md --reference docs/architecture.md
305
256
 
306
- # Use sequential mode for backward compatibility
307
- bmad-workflow workflow docs/PRD-feature.md --no-pipeline
308
-
309
- # Pipelined mode (default) - story creation and dev run in parallel
310
- bmad-workflow workflow docs/PRD-feature.md --pipeline
257
+ # Use Gemini instead of Claude
258
+ bmad-workflow prd fix docs/PRD-feature.md --provider gemini
311
259
  ```
312
260
 
313
- **Flags:**
314
-
315
- - `--dry-run` - Preview actions without execution
316
- - `--parallel <n>` - Max concurrent epic/story creations (default: 3)
317
- - `--prd-interval <seconds>` - Seconds between epic creation batches (default: 60)
318
- - `--epic-interval <seconds>` - Seconds between story creation batches (default: 60)
319
- - `--story-interval <seconds>` - Seconds between story development (default: 60)
320
- - `--skip-epics` - Skip epic creation phase
321
- - `--skip-stories` - Skip story creation phase
322
- - `--skip-dev` - Skip development phase
323
- - `--reference <file>` - Additional context files for AI agents (repeatable)
324
- - `--prefix <string>` - Filename prefix for generated files
325
- - `--verbose` - Detailed output mode
326
- - `--pipeline` - Enable pipelined workflow (story and dev phases in parallel, default: true)
327
- - `--no-pipeline` - Disable pipelined mode (execute phases sequentially)
261
+ Creates backup (`.bak`) before modifying.
328
262
 
329
- ### Epic Commands
263
+ ---
330
264
 
331
- #### `epics create` - Create Epic Files from PRD
265
+ ### `epics` Epic Management
332
266
 
333
- Generate epic files from a PRD document:
267
+ #### `epics create` — Generate Epics from PRD
334
268
 
335
269
  ```bash
336
- # Create all epics from PRD
270
+ # Create all epics
337
271
  bmad-workflow epics create docs/prd.md
338
272
 
339
- # Create specific range of epics
273
+ # Create specific range
340
274
  bmad-workflow epics create docs/prd.md --start 2 --count 3
341
275
 
342
- # Create with additional context
343
- bmad-workflow epics create docs/prd.md --reference docs/architecture.md --interval 5
276
+ # With context files
277
+ bmad-workflow epics create docs/prd.md --reference docs/architecture.md
344
278
  ```
345
279
 
346
- **Flags:**
347
-
348
- - `--start <n>` - Start from epic number N (default: 1)
349
- - `--count <n>` - Number of epics to create (default: all remaining)
350
- - `--interval <seconds>` - Seconds to wait between epic creations (default: 0)
351
- - `--prefix <string>` - Filename prefix for epic files
352
- - `--reference <file>` - Reference file paths for AI agent context (repeatable)
353
-
354
- #### `epics list` - List All Epics
355
-
356
- Display all epic files with metadata:
280
+ #### `epics list` — List All Epics
357
281
 
358
282
  ```bash
359
- # Display epics in table format
360
283
  bmad-workflow epics list
361
-
362
- # Output as JSON
363
284
  bmad-workflow epics list --json
364
285
  ```
365
286
 
366
- **Flags:**
367
-
368
- - `--json` - Output as JSON array
287
+ ---
369
288
 
370
- ### Story Commands
289
+ ### `stories` — Story Lifecycle
371
290
 
372
- #### `stories create` - Create Story Files from Epic
373
-
374
- Generate story files from an epic:
291
+ #### `stories create` Generate Stories from Epic
375
292
 
376
293
  ```bash
377
- # Create all stories from epic
378
- bmad-workflow stories create docs/epics/epic-1-foundation.md
294
+ # Create all stories
295
+ bmad-workflow stories create docs/epics/epic-1.md
379
296
 
380
- # Create with high concurrency
297
+ # High concurrency
381
298
  bmad-workflow stories create epic.md --parallel 10
382
299
 
383
- # Create starting from specific story
300
+ # Start from specific story
384
301
  bmad-workflow stories create epic.md --start 3
385
302
 
386
- # Create with additional context
387
- bmad-workflow stories create epic.md --reference docs/architecture.md --reference docs/api-spec.md
303
+ # Use specific BMAD agent
304
+ bmad-workflow stories create epic.md --agent sm --task create-next-story
388
305
  ```
389
306
 
390
- **Flags:**
391
-
392
- - `--parallel <n>` - Max concurrent story creations (default: 7)
393
- - `--interval <seconds>` - Seconds between batches (default: 30)
394
- - `--start <n>` - Story number to start from
395
- - `--prefix <string>` - Filename prefix for stories
396
- - `--reference <file>` - Additional context files for AI agents (repeatable)
397
-
398
- #### `stories develop` - Execute Development Workflow
399
-
400
- Develop stories using Claude AI dev agents:
307
+ #### `stories develop` — Execute Development
401
308
 
402
309
  ```bash
403
- # Develop all AUTH stories
310
+ # Develop matching stories
404
311
  bmad-workflow stories develop "docs/stories/AUTH-*.md"
405
312
 
406
- # Develop with custom interval
407
- bmad-workflow stories develop "**/*-auth-*.md" --interval 60
313
+ # With interval between stories
314
+ bmad-workflow stories develop "stories/*.md" --interval 60
408
315
 
409
- # Develop with architecture reference
316
+ # With architecture reference
410
317
  bmad-workflow stories develop "stories/*.md" --reference docs/architecture.md
411
318
  ```
412
319
 
413
- **Flags:**
414
-
415
- - `--interval <seconds>` - Seconds to wait between stories (default: 30)
416
- - `--reference <file>` - Additional context files for dev agents (repeatable)
417
-
418
- **Note:** Stories are developed sequentially (one at a time) to prevent conflicts.
320
+ #### `stories qa` — QA Workflow with Fix-Forward
419
321
 
420
- #### `stories list` - List All Stories
421
-
422
- Display all stories with filtering options:
322
+ The QA command runs a complete quality assurance workflow:
423
323
 
424
324
  ```bash
425
- # List all stories
426
- bmad-workflow stories list
325
+ # QA all AUTH stories
326
+ bmad-workflow stories qa "docs/qa/stories/AUTH-*.md"
427
327
 
428
- # List only draft stories
429
- bmad-workflow stories list --status=draft
328
+ # With retry cycles
329
+ bmad-workflow stories qa "stories/*.md" --max-retries 3
430
330
 
431
- # List stories from epic 4
432
- bmad-workflow stories list --epic=4
331
+ # Custom QA focus
332
+ bmad-workflow stories qa "stories/*.md" --qa-prompt "Focus on security"
433
333
 
434
- # List ready stories from epic 4 as JSON
435
- bmad-workflow stories list --status=ready --epic=4 --json
334
+ # Custom dev instructions
335
+ bmad-workflow stories qa "stories/*.md" --dev-prompt "Prioritize performance fixes"
436
336
  ```
437
337
 
438
- **Flags:**
439
-
440
- - `--status <value>` - Filter by story status (draft, ready, done, inprogress, failed)
441
- - `--epic <n>` - Filter by epic number
442
- - `--json` - Output results as JSON
338
+ **QA Workflow Phases:**
339
+ 1. **QA Deep Dive** — Tea agent reviews implementation against acceptance criteria
340
+ 2. **Dev Fix-Forward** Dev agent addresses findings (if CONCERNS/FAIL)
341
+ 3. **Re-Validation** Repeat until PASS/WAIVED or max retries
342
+ 4. **Movement** PASS/WAIVED `done/`, FAIL/CONCERNS → `stories/`
443
343
 
444
- #### `stories move` - Move Stories to QA Directory
344
+ **Gate Statuses:**
345
+ - `PASS` — All criteria met, moved to done
346
+ - `CONCERNS` — Minor issues, may need fixes
347
+ - `FAIL` — Significant issues, needs rework
348
+ - `WAIVED` — Accepted as-is with known limitations
445
349
 
446
- Move completed story files to QA directory:
350
+ #### `stories list` List Stories
447
351
 
448
352
  ```bash
449
- # Move all stories matching pattern
450
- bmad-workflow stories move "4.7-*.md"
451
-
452
- # Move without confirmation
453
- bmad-workflow stories move "4.*-*.md" --force
454
-
455
- # Move specific story
456
- bmad-workflow stories move "STORY-123-*.md"
457
- ```
458
-
459
- **Flags:**
460
-
461
- - `--force` - Skip confirmation prompt
462
-
463
- ### Config Commands
464
-
465
- #### `config show` - Display Current Configuration
466
-
467
- ```bash
468
- # Display as YAML
469
- bmad-workflow config show
470
-
471
- # Display as JSON
472
- bmad-workflow config show --json
353
+ bmad-workflow stories list
354
+ bmad-workflow stories list --status=ready --epic=4
355
+ bmad-workflow stories list --json
473
356
  ```
474
357
 
475
- #### `config validate` - Validate Configuration File
358
+ #### `stories move` Move to QA Directory
476
359
 
477
360
  ```bash
478
- bmad-workflow config validate
361
+ bmad-workflow stories move "4.7-*.md"
362
+ bmad-workflow stories move "STORY-*.md" --force
479
363
  ```
480
364
 
481
- ## Common Workflows
365
+ ---
482
366
 
483
- ### Complete PRD Implementation
367
+ ### `config` Configuration
484
368
 
485
- Execute the full PRD → Epic → Story → Dev pipeline:
369
+ #### `config validate`
486
370
 
487
371
  ```bash
488
- bmad-workflow workflow docs/PRD-new-feature.md --parallel 5
372
+ bmad-workflow config validate
489
373
  ```
490
374
 
491
- ### Incremental Epic Creation
492
-
493
- Create epics one batch at a time with delays:
375
+ #### `config show`
494
376
 
495
377
  ```bash
496
- # Create first 3 epics
497
- bmad-workflow epics create docs/prd.md --start 1 --count 3 --interval 60
498
-
499
- # Create next batch
500
- bmad-workflow epics create docs/prd.md --start 4 --count 3 --interval 60
378
+ bmad-workflow config show
379
+ bmad-workflow config show --json
501
380
  ```
502
381
 
503
- ### Parallel Story Generation
382
+ ---
504
383
 
505
- Generate all stories from an epic with high concurrency:
384
+ ## Configuration
506
385
 
507
- ```bash
508
- bmad-workflow stories create docs/epics/epic-2-backend.md --parallel 10 --interval 30
509
- ```
386
+ Create `.bmad-core/core-config.yaml` in your project root:
510
387
 
511
- ### Sequential Story Development
388
+ ```yaml
389
+ # PRD Configuration
390
+ prdFile: docs/prd.md
391
+ prdSharded: true
392
+ prdShardedLocation: docs/prd
512
393
 
513
- Develop stories one at a time with delays:
394
+ # Epic Configuration
395
+ epicFilePattern: epic-{n}*.md
514
396
 
515
- ```bash
516
- bmad-workflow stories develop "docs/stories/FEAT-*.md" --interval 120
517
- ```
397
+ # Architecture
398
+ architectureSharded: true
399
+ architectureShardedLocation: docs/architecture
518
400
 
519
- ### Dry Run Preview
401
+ # Story Configuration
402
+ devStoryLocation: docs/stories
520
403
 
521
- Preview workflow actions without executing:
404
+ # QA Configuration
405
+ qaLocation: docs/qa
522
406
 
523
- ```bash
524
- bmad-workflow workflow docs/PRD-feature.md --dry-run --verbose
407
+ # Development Context (always loaded by agents)
408
+ devLoadAlwaysFiles:
409
+ - docs/architecture.md
410
+ - docs/coding-standards.md
411
+ - project-context.md
525
412
  ```
526
413
 
527
- ## Troubleshooting
528
-
529
- ### Common Errors and Solutions
414
+ ---
530
415
 
531
- #### "Configuration file not found"
416
+ ## Pipelined Execution
532
417
 
533
- **Error:**
418
+ By default, story creation and development run **concurrently**:
534
419
 
535
420
  ```
536
- Configuration file not found at '.bmad-core/core-config.yaml'.
537
- Ensure you're running this command from the project root directory.
538
- ```
539
-
540
- **Solutions:**
541
-
542
- 1. Check that you're in the project root directory:
543
-
544
- ```bash
545
- pwd # Should show your project root
546
- ls .bmad-core/core-config.yaml # Should exist
547
- ```
548
-
549
- 2. Create the configuration file if it doesn't exist:
550
-
551
- ```bash
552
- mkdir -p .bmad-core
553
- # Copy the configuration example from the Configuration section above
554
- ```
555
-
556
- 3. Verify file permissions:
557
- ```bash
558
- ls -la .bmad-core/core-config.yaml
559
- # Ensure you have read permissions
560
- ```
561
-
562
- #### "Invalid YAML syntax in configuration file"
563
-
564
- **Error:**
421
+ Sequential: [Create All Stories] ──────────→ [Develop All Stories]
422
+ 900s 1800s
423
+ Total: 2700s (45 minutes)
565
424
 
425
+ Pipelined: [Create Stories ─────────────────────┐
426
+ └→ [Dev Worker 1] → Done │ Concurrent!
427
+ └→ [Dev Worker 2] → Done │
428
+ └→ [Dev Worker 3] → Done ┘
429
+ Total: ~1500s (25 minutes) — 44% faster
566
430
  ```
567
- Invalid YAML syntax in '.bmad-core/core-config.yaml' at line 5:
568
- unexpected end of the stream within a double quoted scalar
569
- ```
570
-
571
- **Solutions:**
572
-
573
- 1. Check YAML syntax using an online validator
574
- 2. Common YAML errors:
575
- - Missing quotes around strings with special characters
576
- - Incorrect indentation (use spaces, not tabs)
577
- - Unclosed quotes or brackets
578
-
579
- 3. Validate your configuration:
580
- ```bash
581
- bmad-workflow config validate
582
- ```
583
-
584
- #### "Claude CLI not found"
585
-
586
- **Error:**
587
-
588
- ```
589
- Agent execution failed
590
- → Exit code: 127
591
- → Error output: claude: command not found
592
- 💡 Suggestion: Ensure Claude CLI is installed and accessible in your PATH.
593
- Run "claude --version" to verify.
594
- ```
595
-
596
- **Solutions:**
597
-
598
- 1. Install Claude CLI:
599
-
600
- ```bash
601
- # Follow Anthropic's official installation guide
602
- # https://docs.anthropic.com/claude/docs/claude-cli
603
- ```
604
431
 
605
- 2. Authenticate Claude CLI:
432
+ Control with `--pipeline` (default) or `--no-pipeline`.
606
433
 
607
- ```bash
608
- claude auth login
609
- ```
434
+ ---
610
435
 
611
- 3. Verify installation:
436
+ ## AI Providers
612
437
 
613
- ```bash
614
- claude --version
615
- which claude
616
- ```
438
+ Supports multiple AI providers:
617
439
 
618
- 4. Add Claude CLI to PATH (if not already):
619
- ```bash
620
- # For bash/zsh
621
- export PATH="/path/to/claude:$PATH"
622
- # Add to ~/.bashrc or ~/.zshrc for persistence
623
- ```
624
-
625
- #### "File not found: docs/prd.md"
626
-
627
- **Error:**
440
+ ```bash
441
+ # Claude (default)
442
+ bmad-workflow workflow docs/prd.md --provider claude
628
443
 
629
- ```
630
- Error: File not found: docs/prd.md
631
- 💡 Suggestion: Check that you're in the project root directory and
632
- the path 'docs/prd.md' is correct.
444
+ # Gemini
445
+ bmad-workflow decompose "Add feature" --provider gemini
633
446
  ```
634
447
 
635
- **Solutions:**
448
+ ---
636
449
 
637
- 1. Verify the file exists:
450
+ ## BMAD Agent Integration
638
451
 
639
- ```bash
640
- ls -la docs/prd.md
641
- ```
452
+ Use any BMAD agent for specialized tasks:
642
453
 
643
- 2. Check your current directory:
454
+ | Agent | Use Case |
455
+ |-------|----------|
456
+ | `analyst` | Requirements analysis, research |
457
+ | `architect` | System design, technical decisions |
458
+ | `dev` | Implementation, coding |
459
+ | `pm` | Product management, prioritization |
460
+ | `sm` | Scrum master, story refinement |
461
+ | `tea` | QA, testing, validation |
462
+ | `tech-writer` | Documentation |
463
+ | `ux-designer` | User experience design |
464
+ | `quick-flow-solo-dev` | Rapid prototyping |
644
465
 
645
- ```bash
646
- pwd
647
- cd /path/to/your/project
648
- ```
649
-
650
- 3. Use absolute path if needed:
651
- ```bash
652
- bmad-workflow workflow /absolute/path/to/docs/prd.md
653
- ```
654
-
655
- #### "Permission denied" on File Operations
656
-
657
- **Error:**
658
-
659
- ```
660
- ✗ Error: Permission denied: docs/stories
661
- 💡 Suggestion: Check that you're in the project root directory and
662
- the path 'docs/stories' is correct.
466
+ ```bash
467
+ bmad-workflow decompose "Design API" --agent architect
468
+ bmad-workflow stories create epic.md --agent sm
663
469
  ```
664
470
 
665
- **Solutions:**
666
-
667
- 1. Check file/directory permissions:
668
-
669
- ```bash
670
- ls -la docs/stories
671
- ```
471
+ ---
672
472
 
673
- 2. Fix permissions if needed:
674
-
675
- ```bash
676
- chmod 755 docs/stories
677
- ```
678
-
679
- 3. Ensure you have write access to the directory:
680
- ```bash
681
- # Create directory if it doesn't exist
682
- mkdir -p docs/stories
683
- ```
684
-
685
- #### "Invalid epic format at line 42"
686
-
687
- **Error:**
473
+ ## Project Structure
688
474
 
689
475
  ```
690
- ✗ Error: Invalid epic format at line 42
691
- 💡 Suggestion: Problem at line 42: "## Epic A: Title".
692
- Check the expected format for this section.
476
+ src/
477
+ ├── commands/
478
+ │ ├── workflow.ts # Main pipeline orchestrator
479
+ │ ├── decompose.ts # Task graph decomposition
480
+ │ ├── config/ # Config commands
481
+ │ ├── epics/ # Epic commands
482
+ │ ├── prd/ # PRD tools
483
+ │ └── stories/ # Story lifecycle
484
+ ├── services/
485
+ │ ├── agents/ # AI provider runners
486
+ │ ├── orchestration/ # Pipeline, batch, dependency management
487
+ │ ├── parsers/ # PRD, epic, story parsers
488
+ │ └── scaffolding/ # File/session scaffolders
489
+ ├── models/ # TypeScript interfaces
490
+ └── utils/ # Colors, formatters, progress
693
491
  ```
694
492
 
695
- **Solutions:**
696
-
697
- 1. Check the epic numbering format - must use numbers:
698
-
699
- ```markdown
700
- <!-- ✓ Correct -->
701
-
702
- ## Epic 1: Foundation
493
+ ---
703
494
 
704
- ## Epic 2: Backend Services
495
+ ## Contributing
705
496
 
706
- <!-- Incorrect -->
497
+ ### Contributing to the CLI (this repo)
707
498
 
708
- ## Epic A: Foundation
709
-
710
- ## Epic B: Backend Services
711
- ```
712
-
713
- 2. Verify markdown structure in PRD/epic files
714
-
715
- 3. Use consistent heading levels (## for epics)
716
-
717
- #### "Configuration validation failed"
718
-
719
- **Error:**
720
-
721
- ```
722
- ✗ Error: Invalid field "prdFile"
723
- 💡 Suggestion: Field 'prdFile' expects string, got number.
724
- Example: 'docs/prd.md'
499
+ ```bash
500
+ git clone git@gitlab.com:dev_squad/repo/cli/bmad-orchestrator.git
501
+ cd bmad-orchestrator
502
+ npm install
503
+ npm run build
504
+ ./bin/dev --help
505
+ npm test
725
506
  ```
726
507
 
727
- **Solutions:**
728
-
729
- 1. Check field types in configuration:
508
+ ### Contributing to the BMAD Method
730
509
 
731
- ```yaml
732
- # ✓ Correct
733
- prdFile: docs/prd.md
734
- prdSharded: true
510
+ Want to improve agent personas, templates, or workflows?
735
511
 
736
- # Incorrect
737
- prdFile: 123
738
- prdSharded: "yes"
739
- ```
512
+ 👉 [**BMAD-METHOD Contributing Guide**](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/CONTRIBUTING.md)
740
513
 
741
- 2. Run validation to see all errors:
514
+ ### Development Scripts
742
515
 
743
- ```bash
744
- bmad-workflow config validate
745
- ```
516
+ | Script | Description |
517
+ |--------|-------------|
518
+ | `npm run build` | Compile TypeScript |
519
+ | `npm run lint` | Run ESLint |
520
+ | `npm test` | Run test suite |
521
+ | `npm run test:coverage` | Tests with coverage |
522
+ | `./bin/dev` | Run locally without building |
746
523
 
747
- 3. Refer to the Configuration section for field requirements
524
+ ---
748
525
 
749
- #### "Workflow completed with failures"
526
+ ## Troubleshooting
750
527
 
751
- When workflows complete with failures, check the summary output for specific error details:
528
+ ### "Claude CLI not found"
752
529
 
753
530
  ```bash
754
- # Run with verbose mode for detailed error output
755
- bmad-workflow workflow docs/prd.md --verbose
531
+ claude auth login
532
+ claude --version
756
533
  ```
757
534
 
758
- **Common causes:**
759
-
760
- - Agent timeout (increase intervals with --interval flags)
761
- - API rate limits (reduce --parallel count)
762
- - Invalid file formats (check PRD/epic structure)
763
- - Missing dependencies (verify configuration files exist)
764
-
765
- ### Pipeline-Specific Issues
766
-
767
- #### "Pipeline mode enabled but running sequentially"
768
-
769
- If you notice the pipeline is not executing concurrently:
770
-
771
- **Possible causes:**
772
-
773
- 1. **Dry-run mode enabled** - Pipeline only works in execution mode:
774
-
775
- ```bash
776
- # Remove --dry-run to use pipeline
777
- bmad-workflow workflow docs/prd.md
778
- ```
779
-
780
- 2. **Only one phase enabled** - Pipeline requires both story and dev phases:
781
-
782
- ```bash
783
- # Correct: both phases enabled (default)
784
- bmad-workflow workflow docs/prd.md
785
-
786
- # Won't pipeline: dev phase skipped
787
- bmad-workflow workflow docs/prd.md --skip-dev
788
- ```
789
-
790
- 3. **Explicitly disabled** - Check for `--no-pipeline` flag:
791
- ```bash
792
- # Use --pipeline or omit flag (default is pipeline mode)
793
- bmad-workflow workflow docs/prd.md --pipeline
794
- ```
795
-
796
- #### Pipeline Performance Not as Expected
797
-
798
- If pipeline mode isn't showing performance improvements:
799
-
800
- 1. **Low story count** - Pipeline benefits scale with story count:
801
- - 1-2 stories: Minimal benefit
802
- - 3-5 stories: ~30% improvement
803
- - 10+ stories: ~40-44% improvement
804
-
805
- 2. **Worker pool size too small** - Increase concurrency:
806
-
807
- ```bash
808
- # Increase to 5 workers (default is 3)
809
- bmad-workflow workflow docs/prd.md --parallel 5
810
- ```
811
-
812
- 3. **Story creation bottleneck** - If stories create slowly, increase story creation parallelism:
535
+ ### "Configuration file not found"
813
536
 
814
- ```bash
815
- bmad-workflow stories create epic.md --parallel 10
816
- ```
817
-
818
- 4. **API rate limits** - Monitor for rate limit errors and adjust intervals:
819
- ```bash
820
- bmad-workflow workflow docs/prd.md --story-interval 90
821
- ```
822
-
823
- #### Workers Not Processing Stories
824
-
825
- If dev workers appear idle while stories are queued:
826
-
827
- **Solutions:**
828
-
829
- 1. Check verbose output for worker status:
830
-
831
- ```bash
832
- bmad-workflow workflow docs/prd.md --verbose
833
- ```
834
-
835
- 2. Verify stories are completing creation successfully
836
-
837
- 3. Check for errors in story phase that prevent queue enqueuing
838
-
839
- 4. Monitor worker logs for processing errors
840
-
841
- ### Performance Issues
842
-
843
- #### Slow Epic/Story Creation
844
-
845
- If creation is slow:
846
-
847
- 1. **Increase parallelization:**
848
-
849
- ```bash
850
- bmad-workflow workflow docs/prd.md --parallel 10
851
- ```
852
-
853
- 2. **Reduce intervals:**
854
-
855
- ```bash
856
- bmad-workflow workflow docs/prd.md --prd-interval 30 --epic-interval 30
857
- ```
858
-
859
- 3. **Process in batches:**
860
- ```bash
861
- bmad-workflow epics create docs/prd.md --start 1 --count 5
862
- bmad-workflow epics create docs/prd.md --start 6 --count 5
863
- ```
864
-
865
- #### High Memory Usage
866
-
867
- If experiencing high memory usage:
868
-
869
- 1. **Reduce concurrency:**
870
-
871
- ```bash
872
- bmad-workflow workflow docs/prd.md --parallel 3
873
- ```
874
-
875
- 2. **Process smaller batches**
876
- 3. **Monitor with verbose mode:**
877
- ```bash
878
- bmad-workflow workflow docs/prd.md --verbose
879
- ```
880
-
881
- ### Getting Help
882
-
883
- If you encounter issues not covered here:
884
-
885
- 1. **Run with verbose mode** for detailed logs:
886
-
887
- ```bash
888
- bmad-workflow workflow docs/prd.md --verbose
889
- ```
890
-
891
- 2. **Check configuration validation:**
892
-
893
- ```bash
894
- bmad-workflow config validate
895
- ```
896
-
897
- 3. **Verify prerequisites:**
898
-
899
- ```bash
900
- node --version # Should be 18.x or higher
901
- claude --version # Should return Claude CLI version
902
- ```
903
-
904
- 4. **Report issues** with:
905
- - Error message and suggestion
906
- - Command used
907
- - Configuration file (sanitized)
908
- - Node.js and CLI versions
909
-
910
- ## Documentation
911
-
912
- ### Architecture & API Documentation
913
-
914
- For in-depth technical documentation:
915
-
916
- - **[Architecture Overview](docs/ARCHITECTURE.md)** - System design, components, and data flow
917
- - **[API Documentation](docs/api/README.md)** - Complete API reference for all services, commands, and models
918
- - **[Contributing Guide](docs/CONTRIBUTING.md)** - Development guidelines and contribution process
919
-
920
- ### Documentation Structure
921
-
922
- ```
923
- docs/
924
- ├── ARCHITECTURE.md # System architecture and design patterns
925
- ├── CONTRIBUTING.md # Contribution guidelines and standards
926
- └── api/ # API reference documentation
927
- ├── README.md # API overview and conventions
928
- ├── commands/ # Command API documentation
929
- ├── services/ # Service layer API docs
930
- └── models/ # Type definitions and interfaces
537
+ ```bash
538
+ ls .bmad-core/core-config.yaml
539
+ bmad-workflow config validate
931
540
  ```
932
541
 
933
- ## Development
934
-
935
- ### Local Development Setup
936
-
937
- If you're contributing to the BMAD Orchestrator CLI:
542
+ ### Decompose session issues
938
543
 
544
+ Check the session directory:
939
545
  ```bash
940
- # Clone the repository
941
- cd packages/cli/bmad-workflow
942
-
943
- # Install dependencies
944
- npm install
945
-
946
- # Build from source
947
- npm run build
948
-
949
- # Run locally using dev script
950
- ./bin/dev --help
546
+ ls docs/decompose-sessions/session-*/
547
+ cat docs/decompose-sessions/session-*/SESSION_README.md
951
548
  ```
952
549
 
953
- For detailed development guidelines, testing practices, and coding standards, see **[CONTRIBUTING.md](docs/CONTRIBUTING.md)**.
550
+ ### QA gate not updating
954
551
 
955
- ### Project Structure
552
+ Ensure stories have proper markdown structure with `## QA Results` section.
956
553
 
957
- ```
958
- packages/cli/bmad-workflow/
959
- ├── src/
960
- │ ├── commands/ # oclif command classes
961
- │ ├── services/ # Business logic layer
962
- │ ├── models/ # TypeScript types and interfaces
963
- │ └── utils/ # Pure utility functions
964
- ├── test/
965
- │ ├── commands/ # Command integration tests
966
- │ ├── services/ # Service unit tests
967
- │ ├── fixtures/ # Test data
968
- │ └── helpers/ # Test utilities
969
- ├── tsconfig.json # TypeScript configuration (strict mode)
970
- ├── package.json # Project manifest
971
- └── README.md # This file
972
- ```
554
+ ---
973
555
 
974
- ### Build
556
+ ## Roadmap
975
557
 
976
- Compile TypeScript to JavaScript:
558
+ - [ ] OpenAI GPT-4 provider support
559
+ - [ ] Web UI for workflow visualization
560
+ - [ ] GitHub Actions integration
561
+ - [ ] VS Code extension
562
+ - [ ] Custom agent templates
563
+ - [ ] Parallel QA execution
977
564
 
978
- ```bash
979
- npm run build
980
- ```
565
+ Have an idea? [Open an issue](https://gitlab.com/dev_squad/repo/cli/bmad-orchestrator/-/issues)!
981
566
 
982
- ### Linting
567
+ ---
983
568
 
984
- Run ESLint to check code quality:
569
+ ## Community & Resources
985
570
 
986
- ```bash
987
- npm run lint
988
- ```
571
+ ### BMAD Ecosystem
989
572
 
990
- ### Testing
573
+ | Repository | Description |
574
+ |------------|-------------|
575
+ | [**BMAD-METHOD**](https://github.com/bmad-code-org/BMAD-METHOD) | 🧠 The core methodology — agents, templates, workflows |
576
+ | [**bmad-workflow**](https://gitlab.com/dev_squad/repo/cli/bmad-orchestrator) (this repo) | ⚡ CLI automation engine |
991
577
 
992
- Run the test suite:
578
+ ### Get Help
993
579
 
994
- ```bash
995
- npm run test
996
- ```
580
+ - **BMAD Method Questions:** [BMAD Discussions](https://github.com/bmad-code-org/BMAD-METHOD/discussions)
581
+ - **CLI Issues:** [GitLab Issues](https://gitlab.com/dev_squad/repo/cli/bmad-orchestrator/-/issues)
997
582
 
998
- Run tests with coverage:
583
+ ### Learn More
999
584
 
1000
- ```bash
1001
- npm run test:coverage
1002
- ```
585
+ - 📖 [BMAD Method Documentation](https://github.com/bmad-code-org/BMAD-METHOD#readme)
586
+ - 🎓 [Getting Started Guide](https://github.com/bmad-code-org/BMAD-METHOD/blob/main/docs/getting-started.md)
587
+ - 🤖 [Agent Personas Reference](https://github.com/bmad-code-org/BMAD-METHOD/tree/main/bmad-agent)
1003
588
 
1004
- ### TypeScript Configuration
589
+ ---
1005
590
 
1006
- This project uses TypeScript strict mode with the following flags enabled:
591
+ ## License
1007
592
 
1008
- - `noImplicitAny`
1009
- - `strictNullChecks`
1010
- - `strictFunctionTypes`
1011
- - `strictPropertyInitialization`
1012
- - `noImplicitThis`
1013
- - `alwaysStrict`
593
+ MIT - see [LICENSE](LICENSE)
1014
594
 
1015
- ## License
595
+ ---
1016
596
 
1017
- MIT
597
+ <p align="center">
598
+ <b>Built on the <a href="https://github.com/bmad-code-org/BMAD-METHOD">BMAD Method</a></b><br>
599
+ <i>AI handles the lifecycle. You handle the vision.</i>
600
+ </p>