2025-11-02 21:18:33 -06:00
# BMM Implementation Workflows (Phase 4)
2025-11-04 15:02:19 -06:00
**Reading Time:** ~8 minutes
2025-11-02 21:18:33 -06:00
## Overview
2025-11-04 15:02:19 -06:00
Phase 4 (Implementation) workflows manage the iterative sprint-based development cycle using a **story-centric workflow** where each story moves through a defined lifecycle from creation to completion.
2025-11-02 21:18:33 -06:00
**Key principle:** One story at a time, move it through the entire lifecycle before starting the next.
---
refactor(bmm,cis,core): Align diagram workflows with agile roles and distribute capabilities
## The Tale of the Frame Expert
Once upon a time, BMad Method had a specialized agent called Frame Expert.
This agent was the master of all visual artifacts - flowcharts, diagrams,
wireframes, data flows. Whenever anyone needed a diagram, they called upon
Frame Expert. The agent lived in its own isolated domain with four dedicated
workflows and a library of shared templates.
## The Awakening
But something felt wrong. Teams using BMad Method were meant to mirror real
agile teams - Product Managers, Architects, UX Designers, Tech Writers,
Developers. Each agent represented an authentic role you'd find in any
software team.
Except Frame Expert.
No real agile team has a "Frame Expert" or "Diagram Specialist" who creates
all visual artifacts. In real teams, Architects diagram system architecture.
PMs flowchart processes. UX Designers wireframe interfaces. Tech Writers
create documentation diagrams. The visuals emerge from the domain experts
who need them, not from a centralized diagram factory.
Frame Expert was an abstraction that made technical sense but violated the
very soul of BMad Method - authentic agile role modeling.
## The Transformation
And so Frame Expert was dissolved, its knowledge distributed to those who
truly needed it:
**The Architect** inherited system architecture diagrams and data flows -
the blueprints of technical systems they design.
**The Product Manager** received process flowcharts - the visual maps of
features and workflows they orchestrate.
**The UX Designer** claimed wireframes - the interface sketches that bring
their vision to life.
**The Tech Writer** gained all diagram types - the visual aids that clarify
their documentation.
Each agent now creates diagrams in their domain, using their expertise,
serving their purpose.
## The Shared Knowledge
But the wisdom of diagram creation itself - the Excalidraw templates, the
component libraries, the validation patterns - this knowledge was too
valuable to scatter. It was elevated to core resources, where both BMM
agents AND the new CIS presentation-master agent could draw upon it.
Shared infrastructure for common needs. Distributed execution for domain
expertise.
## The Ripple Effects
With diagrams now properly distributed, other misalignments became visible:
Epic creation was happening in Phase 2 (Planning), before Architecture
existed. But epics need architectural context - API contracts, data models,
technical decisions. So epic creation migrated to Phase 3 (Solutioning),
after Architecture provides that foundation.
Workflow paths were updated. Documentation gained visual flowcharts showing
the complete journey. Agent naming standards were clarified - filenames are
stable roles, persona names are user dreams.
## What Changed
**Removed:**
- frame-expert.agent.yaml (the centralized specialist)
- All frame-expert workflows and shared resources
- Phase 2 epic creation workflow (wrong timing)
- game-design workflow path (consolidated to method track)
- v6-open-items.md (planning doc, now complete)
**Distributed Diagram Capabilities:**
- Architect: create-excalidraw-diagram, create-excalidraw-dataflow
- PM: create-excalidraw-flowchart
- Tech Writer: create-excalidraw-{diagram,dataflow,flowchart}, generate-mermaid
- UX Designer: create-excalidraw-wireframe
**Created:**
- src/core/resources/ (shared diagram context for all modules)
- src/modules/cis/agents/presentation-master.agent.yaml (visual comms specialist)
- src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/ (epic creation's new home)
- src/modules/bmm/workflows/diagrams/ (distributed diagram implementations)
- src/modules/bmm/docs/images/ (workflow visualization assets)
**Enhanced:**
- All agent definitions with domain-appropriate diagram workflows
- Documentation with embedded workflow diagrams and visual guides
- Agent compilation docs with critical naming convention rules
- All 4 workflow paths (enterprise/method × brownfield/greenfield)
**Fixed:**
- Epic creation now in Phase 3 after Architecture
- Story context path variables in BMGD module
- PRD workflow descriptions (epics moved to Phase 3)
## For Users
The Frame Expert commands are gone. In their place:
- Need architecture diagrams? Ask `/architect`
- Need process flows? Ask `/pm`
- Need wireframes? Ask `/ux-designer`
- Need documentation visuals? Ask `/tech-writer`
Each expert creates diagrams in their domain, with their context, using
their judgment.
This is how real teams work.
2025-11-18 21:54:48 -06:00
## Complete Workflow Context
Phase 4 is the final phase of the BMad Method workflow. To see how implementation fits into the complete methodology:

_Complete workflow showing Phases 1-4. Phase 4 (Implementation) is the rightmost column, showing the iterative epic and story cycles detailed below._
---
2025-11-04 15:02:19 -06:00
## Phase 4 Workflow Lifecycle
```mermaid
%%{init: {'theme':'base', 'themeVariables': { 'primaryColor':'#fff ','primaryTextColor':'#000 ','primaryBorderColor':'#000 ','lineColor':'#000 ','fontSize':'16px','fontFamily':'arial'}}}%%
graph TB
subgraph Setup["< b > SPRINT SETUP - Run Once< / b > "]
direction TB
SprintPlanning["< b > SM: sprint-planning< / b > < br / > Initialize sprint status file"]
end
subgraph EpicCycle["< b > EPIC CYCLE - Repeat Per Epic< / b > "]
direction TB
EpicContext["< b > SM: epic-tech-context< / b > < br / > Generate epic technical guidance"]
ValidateEpic["< b > SM: validate-epic-tech-context< / b > < br / > (Optional validation)"]
EpicContext -.->|Optional| ValidateEpic
ValidateEpic -.-> StoryLoopStart
EpicContext --> StoryLoopStart[Start Story Loop]
end
subgraph StoryLoop["< b > STORY LIFECYCLE - Repeat Per Story< / b > "]
direction TB
CreateStory["< b > SM: create-story< / b > < br / > Create next story from queue"]
ValidateStory["< b > SM: validate-create-story< / b > < br / > (Optional validation)"]
StoryContext["< b > SM: story-context< / b > < br / > Assemble dynamic context"]
StoryReady["< b > SM: story-ready-for-dev< / b > < br / > Mark ready without context"]
ValidateContext["< b > SM: validate-story-context< / b > < br / > (Optional validation)"]
DevStory["< b > DEV: develop-story< / b > < br / > Implement with tests"]
CodeReview["< b > DEV: code-review< / b > < br / > Senior dev review"]
StoryDone["< b > DEV: story-done< / b > < br / > Mark complete, advance queue"]
CreateStory -.->|Optional| ValidateStory
ValidateStory -.-> StoryContext
CreateStory --> StoryContext
CreateStory -.->|Alternative| StoryReady
StoryContext -.->|Optional| ValidateContext
ValidateContext -.-> DevStory
StoryContext --> DevStory
StoryReady -.-> DevStory
DevStory --> CodeReview
CodeReview -.->|Needs fixes| DevStory
CodeReview --> StoryDone
StoryDone -.->|Next story| CreateStory
end
subgraph EpicClose["< b > EPIC COMPLETION< / b > "]
direction TB
Retrospective["< b > SM: epic-retrospective< / b > < br / > Post-epic lessons learned"]
end
subgraph Support["< b > SUPPORTING WORKFLOWS< / b > "]
direction TB
CorrectCourse["< b > SM: correct-course< / b > < br / > Handle mid-sprint changes"]
WorkflowStatus["< b > Any Agent: workflow-status< / b > < br / > Check what's next"]
end
Setup --> EpicCycle
EpicCycle --> StoryLoop
StoryLoop --> EpicClose
EpicClose -.->|Next epic| EpicCycle
StoryLoop -.->|If issues arise| CorrectCourse
StoryLoop -.->|Anytime| WorkflowStatus
EpicCycle -.->|Anytime| WorkflowStatus
style Setup fill:#e3f2fd ,stroke:#1565c0 ,stroke-width:3px,color:#000
style EpicCycle fill:#c5e1a5 ,stroke:#33691e ,stroke-width:3px,color:#000
style StoryLoop fill:#f3e5f5 ,stroke:#6a1b9a ,stroke-width:3px,color:#000
style EpicClose fill:#ffcc80 ,stroke:#e65100 ,stroke-width:3px,color:#000
style Support fill:#fff3e0 ,stroke:#e65100 ,stroke-width:3px,color:#000
style SprintPlanning fill:#90caf9 ,stroke:#0d47a1 ,stroke-width:2px,color:#000
style EpicContext fill:#aed581 ,stroke:#1b5e20 ,stroke-width:2px,color:#000
style ValidateEpic fill:#c5e1a5 ,stroke:#33691e ,stroke-width:1px,color:#000
style CreateStory fill:#ce93d8 ,stroke:#4a148c ,stroke-width:2px,color:#000
style ValidateStory fill:#e1bee7 ,stroke:#6a1b9a ,stroke-width:1px,color:#000
style StoryContext fill:#ce93d8 ,stroke:#4a148c ,stroke-width:2px,color:#000
style StoryReady fill:#ce93d8 ,stroke:#4a148c ,stroke-width:2px,color:#000
style ValidateContext fill:#e1bee7 ,stroke:#6a1b9a ,stroke-width:1px,color:#000
style DevStory fill:#a5d6a7 ,stroke:#1b5e20 ,stroke-width:2px,color:#000
style CodeReview fill:#a5d6a7 ,stroke:#1b5e20 ,stroke-width:2px,color:#000
style StoryDone fill:#a5d6a7 ,stroke:#1b5e20 ,stroke-width:2px,color:#000
style Retrospective fill:#ffb74d ,stroke:#e65100 ,stroke-width:2px,color:#000
2025-11-02 21:18:33 -06:00
```
---
2025-11-04 15:02:19 -06:00
## Quick Reference
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
| Workflow | Agent | When | Purpose |
| ------------------------------ | ----- | -------------------------------- | ------------------------------------------- |
| **sprint-planning** | SM | Once at Phase 4 start | Initialize sprint tracking file |
| **epic-tech-context** | SM | Per epic | Generate epic-specific technical guidance |
| **validate-epic-tech-context** | SM | Optional after epic-tech-context | Validate tech spec against checklist |
| **create-story** | SM | Per story | Create next story from epic backlog |
| **validate-create-story** | SM | Optional after create-story | Independent validation of story draft |
| **story-context** | SM | Optional per story | Assemble dynamic story context XML |
| **validate-story-context** | SM | Optional after story-context | Validate story context against checklist |
| **story-ready-for-dev** | SM | Optional per story | Mark story ready without generating context |
| **develop-story** | DEV | Per story | Implement story with tests |
| **code-review** | DEV | Per story | Senior dev quality review |
| **story-done** | DEV | Per story | Mark complete and advance queue |
| **epic-retrospective** | SM | After epic complete | Review lessons and extract insights |
| **correct-course** | SM | When issues arise | Handle significant mid-sprint changes |
| **workflow-status** | Any | Anytime | Check "what should I do now?" |
2025-11-02 21:18:33 -06:00
---
2025-11-04 15:02:19 -06:00
## Agent Roles
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
### SM (Scrum Master) - Primary Implementation Orchestrator
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Workflows:** sprint-planning, epic-tech-context, validate-epic-tech-context, create-story, validate-create-story, story-context, validate-story-context, story-ready-for-dev, epic-retrospective, correct-course
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Responsibilities:**
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
- Initialize and maintain sprint tracking
- Generate technical context (epic and story level)
- Orchestrate story lifecycle with optional validations
- Mark stories ready for development
- Handle course corrections
- Facilitate retrospectives
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
### DEV (Developer) - Implementation and Quality
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Workflows:** develop-story, code-review, story-done
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Responsibilities:**
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
- Implement stories with tests
- Perform senior developer code reviews
- Mark stories complete and advance queue
- Ensure quality and adherence to standards
2025-11-02 21:18:33 -06:00
---
2025-11-04 15:02:19 -06:00
## Story Lifecycle States
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
Stories move through these states in the sprint status file:
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
1. **TODO** - Story identified but not started
2. **IN PROGRESS** - Story being implemented (create-story → story-context → dev-story)
3. **READY FOR REVIEW** - Implementation complete, awaiting code review
4. **DONE** - Accepted and complete
2025-11-02 21:18:33 -06:00
---
2025-11-04 15:02:19 -06:00
## Typical Sprint Flow
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
### Sprint 0 (Planning Phase)
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
- Complete Phases 1-3 (Analysis, Planning, Solutioning)
refactor: Major v6 epic creation improvements and documentation overhaul
## Key Changes
### 1. Epic Creation Workflow Enhancements
- Added user-value focused epic structure principles (NO technical layer breakdown)
- Implemented multi-mode detection: CONTINUE, REPLACE, or UPDATE existing epics
- Added comprehensive anti-pattern examples showing wrong vs right epic breakdown
- Epics now created AFTER architecture for technically-informed story breakdown
- Added checkpoint protocol for interactive workflow progression
### 2. Removed Deprecated Solutioning Gate Check
- Deleted entire solutioning-gate-check workflow (682 lines)
- Replaced by new implementation-readiness workflow
- Cleaner separation of concerns in solutioning phase
### 3. PRD Template Simplification
- Removed hardcoded "Implementation Planning", "References", and "Next Steps" sections
- PRD now focuses purely on requirements, not workflow orchestration
- Epics/stories created as separate step after architecture
### 4. Documentation Overhaul (15+ docs updated)
- Updated quick-start guide with v6 workflow sequence
- Clarified that epics are created AFTER architecture, not during PRD
- Updated solutioning docs to reflect implementation-readiness pattern
- Improved agents-guide, brownfield-guide, enterprise docs
- Enhanced glossary, FAQ, and workflow reference documentation
### 5. Workflow Path Adjustments
- All 4 paths updated (enterprise/method × brownfield/greenfield)
- Version bumps across BMGD, BMM, and CIS workflow YAMLs
- Minor instruction file updates for consistency
### Files Changed
- 65 files total: 468 insertions, 978 deletions (net reduction of 510 lines)
- 4 files deleted (entire solutioning-gate-check workflow)
- 1 new directory added (implementation-readiness placeholder)
2025-11-16 00:23:47 -06:00
- PRD/GDD + Architecture complete
- **V6: Epics+Stories created via create-epics-and-stories workflow (runs AFTER architecture)**
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
### Sprint 1+ (Implementation Phase)
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Start of Phase 4:**
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
1. SM runs `sprint-planning` (once)
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Per Epic:**
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
1. SM runs `epic-tech-context`
2. SM optionally runs `validate-epic-tech-context`
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Per Story (repeat until epic complete):**
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
1. SM runs `create-story`
2. SM optionally runs `validate-create-story`
3. SM runs `story-context` OR `story-ready-for-dev` (choose one)
4. SM optionally runs `validate-story-context` (if story-context was used)
5. DEV runs `develop-story`
6. DEV runs `code-review`
7. If code review passes: DEV runs `story-done`
8. If code review finds issues: DEV fixes in `develop-story` , then back to code-review
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**After Epic Complete:**
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
- SM runs `epic-retrospective`
- Move to next epic (start with `epic-tech-context` again)
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**As Needed:**
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
- Run `workflow-status` anytime to check progress
- Run `correct-course` if significant changes needed
2025-11-02 21:18:33 -06:00
---
2025-11-04 15:02:19 -06:00
## Key Principles
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
### One Story at a Time
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
Complete each story's full lifecycle before starting the next. This prevents context switching and ensures quality.
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
### Epic-Level Technical Context
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
Generate detailed technical guidance per epic (not per story) using `epic-tech-context` . This provides just-in-time architecture without upfront over-planning.
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
### Story Context (Optional)
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
Use `story-context` to assemble focused context XML for each story, pulling from PRD, architecture, epic context, and codebase docs. Alternatively, use `story-ready-for-dev` to mark a story ready without generating context XML.
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
### Quality Gates
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
Every story goes through `code-review` before being marked done. No exceptions.
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
### Continuous Tracking
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
The `sprint-status.yaml` file is the single source of truth for all implementation progress.
2025-11-02 21:18:33 -06:00
---
2025-11-04 15:02:19 -06:00
## Common Patterns
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
### Level 0-1 (Quick Flow)
2025-11-02 21:18:33 -06:00
```
2025-11-04 15:02:19 -06:00
tech-spec (PM)
→ sprint-planning (SM)
→ story loop (SM/DEV)
2025-11-02 21:18:33 -06:00
```
2025-11-04 15:02:19 -06:00
### Level 2-4 (BMad Method / Enterprise)
2025-11-02 21:18:33 -06:00
```
refactor: Major v6 epic creation improvements and documentation overhaul
## Key Changes
### 1. Epic Creation Workflow Enhancements
- Added user-value focused epic structure principles (NO technical layer breakdown)
- Implemented multi-mode detection: CONTINUE, REPLACE, or UPDATE existing epics
- Added comprehensive anti-pattern examples showing wrong vs right epic breakdown
- Epics now created AFTER architecture for technically-informed story breakdown
- Added checkpoint protocol for interactive workflow progression
### 2. Removed Deprecated Solutioning Gate Check
- Deleted entire solutioning-gate-check workflow (682 lines)
- Replaced by new implementation-readiness workflow
- Cleaner separation of concerns in solutioning phase
### 3. PRD Template Simplification
- Removed hardcoded "Implementation Planning", "References", and "Next Steps" sections
- PRD now focuses purely on requirements, not workflow orchestration
- Epics/stories created as separate step after architecture
### 4. Documentation Overhaul (15+ docs updated)
- Updated quick-start guide with v6 workflow sequence
- Clarified that epics are created AFTER architecture, not during PRD
- Updated solutioning docs to reflect implementation-readiness pattern
- Improved agents-guide, brownfield-guide, enterprise docs
- Enhanced glossary, FAQ, and workflow reference documentation
### 5. Workflow Path Adjustments
- All 4 paths updated (enterprise/method × brownfield/greenfield)
- Version bumps across BMGD, BMM, and CIS workflow YAMLs
- Minor instruction file updates for consistency
### Files Changed
- 65 files total: 468 insertions, 978 deletions (net reduction of 510 lines)
- 4 files deleted (entire solutioning-gate-check workflow)
- 1 new directory added (implementation-readiness placeholder)
2025-11-16 00:23:47 -06:00
PRD (PM) → Architecture (Architect)
→ create-epics-and-stories (PM) ← V6: After architecture!
→ implementation-readiness (Architect)
2025-11-04 15:02:19 -06:00
→ sprint-planning (SM, once)
→ [Per Epic]:
epic-tech-context (SM)
→ story loop (SM/DEV)
→ epic-retrospective (SM)
→ [Next Epic]
2025-11-02 21:18:33 -06:00
```
---
2025-11-04 15:02:19 -06:00
## Related Documentation
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
- [Phase 2: Planning Workflows ](./workflows-planning.md )
- [Phase 3: Solutioning Workflows ](./workflows-solutioning.md )
- [Quick Spec Flow ](./quick-spec-flow.md ) - Level 0-1 fast track
- [Scale Adaptive System ](./scale-adaptive-system.md ) - Understanding project levels
2025-11-02 21:18:33 -06:00
---
2025-11-04 15:02:19 -06:00
## Troubleshooting
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Q: Which workflow should I run next?**
A: Run `workflow-status` - it reads the sprint status file and tells you exactly what to do.
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Q: Story needs significant changes mid-implementation?**
A: Run `correct-course` to analyze impact and route appropriately.
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Q: Do I run epic-tech-context for every story?**
A: No! Run once per epic, not per story. Use `story-context` or `story-ready-for-dev` per story instead.
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Q: Do I have to use story-context for every story?**
A: No, it's optional. You can use `story-ready-for-dev` to mark a story ready without generating context XML.
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Q: Can I work on multiple stories in parallel?**
A: Not recommended. Complete one story's full lifecycle before starting the next. Prevents context switching and ensures quality.
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Q: What if code review finds issues?**
A: DEV runs `develop-story` to make fixes, re-runs tests, then runs `code-review` again until it passes.
2025-11-02 21:18:33 -06:00
2025-11-04 15:02:19 -06:00
**Q: When do I run validations?**
A: Validations are optional quality gates. Use them when you want independent review of epic tech specs, story drafts, or story context before proceeding.
2025-11-02 21:18:33 -06:00
---
2025-11-04 15:02:19 -06:00
_Phase 4 Implementation - One story at a time, done right._