Phase 4: Implementation Workflows
The Implementation phase executes your planned work through structured sprints. These workflows manage sprint planning, story development, code review, and continuous improvement.Available Workflows
Sprint Planning
Generate sprint status tracking from epics
Create Story
Create detailed story specification files
Dev Story
Implement stories following specifications
Code Review
Perform adversarial code reviews
Sprint Status
Track sprint progress and story states
Correct Course
Manage sprint changes and course corrections
Retrospective
Conduct epic retrospectives
Sprint Planning Workflow
Purpose
Generate comprehensive sprint status tracking from epic files. This workflow creates a YAML file that tracks the status of all epics, stories, and retrospectives throughout development.Trigger Commands
How It Works
The workflow:- Discovers all epic files (whole or sharded)
- Extracts all epics and stories
- Creates status tracking entries
- Detects existing story files to set initial status
- Generates sprint-status.yaml
Status Definitions
Epic Status Flow:backlog: Epic not yet startedin-progress: Epic actively being worked ondone: All stories in epic completed
backlog: Story only exists in epic fileready-for-dev: Story file created in stories folderin-progress: Developer actively workingreview: Ready for code reviewdone: Completed
optional: Can be completed but not requireddone: Finished
Inputs
- Epic files from
{planning_artifacts}/epic*.md - Project context (if exists)
- Configuration from
config.yaml
Outputs
File Location:{implementation_artifacts}/sprint-status.yaml
File Structure:
Example Invocation
Source Files
- Workflow:
src/bmm/workflows/4-implementation/sprint-planning/workflow.yaml - Instructions:
src/bmm/workflows/4-implementation/sprint-planning/instructions.md - Template:
src/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml
Create Story Workflow
Purpose
Create detailed story specification files from epic stories. This workflow generates implementation-ready story files with full context, technical notes, and acceptance criteria.Trigger Commands
Workflow Process
- Story Selection - Identify story from epic
- Context Gathering - Load PRD, Architecture, UX
- Technical Planning - Add implementation details
- File Generation - Create story markdown file
- Status Update - Update sprint-status.yaml
Inputs
- Story from epic file
- PRD (requirements context)
- Architecture (technical decisions)
- UX Design (for UI stories)
- Project context
Outputs
File Location:{implementation_artifacts}/{story-key}.md
Example: stories/1-2-account-management.md
Story File Structure:
Example Invocation
Source Files
- Workflow:
src/bmm/workflows/4-implementation/create-story/workflow.yaml - Template:
src/bmm/workflows/4-implementation/create-story/template.md - Checklist:
src/bmm/workflows/4-implementation/create-story/checklist.md
Dev Story Workflow
Purpose
Execute story implementation following the detailed story specification file. This workflow implements features with full context from PRD, Architecture, and UX design.Trigger Commands
Workflow Process
- Story Discovery - Load story file or auto-discover next story
- Context Loading - Load all relevant planning documents
- Implementation - Write code following specifications
- Testing - Verify acceptance criteria
- Status Update - Mark story as in-progress/review/done
Auto-Discovery
If no story file specified, the workflow:- Reads sprint-status.yaml
- Finds next story with status
ready-for-dev - Loads that story automatically
Inputs
- Story specification file
- PRD (business requirements)
- Architecture (technical decisions)
- UX Design (design specs)
- Project context (patterns, conventions)
Implementation Guidelines
The AI developer:- Follows architecture decisions strictly
- Implements according to acceptance criteria
- Adheres to project patterns and conventions
- Writes tests to verify acceptance criteria
- Updates story status as work progresses
Outputs
- Implemented code (files created/modified)
- Tests for acceptance criteria
- Updated sprint-status.yaml
- Implementation notes (if needed)
Example Invocation
Source Files
- Workflow:
src/bmm/workflows/4-implementation/dev-story/workflow.yaml - Instructions:
src/bmm/workflows/4-implementation/dev-story/instructions.xml - Checklist:
src/bmm/workflows/4-implementation/dev-story/checklist.md
Code Review Workflow
Purpose
Perform adversarial code review to find specific issues in implementation. This workflow provides fresh-eyes review to catch bugs, security issues, and architectural violations.Trigger Commands
Review Focus Areas
- Acceptance Criteria - All criteria met?
- Architecture Compliance - Follows ADRs?
- Code Quality - Clean, maintainable code?
- Security - No vulnerabilities?
- Performance - Efficient implementation?
- Testing - Adequate test coverage?
- UX Alignment - Matches design specs?
Review Process
- Context Loading - Load story, architecture, PRD, UX
- Code Analysis - Review implementation files
- Issue Identification - Find problems and risks
- Severity Assessment - Categorize findings
- Report Generation - Document issues and recommendations
Issue Severity Levels
- Critical - Blocks release (security, data loss, crashes)
- Major - Violates requirements or architecture
- Minor - Code quality, maintainability issues
- Suggestion - Improvements and optimizations
Inputs
- Implemented code
- Story specification
- Architecture decisions
- PRD requirements
- UX Design (for UI stories)
Outputs
Review Report including:- Issues found (by severity)
- Architecture compliance check
- Security findings
- Test coverage analysis
- Recommendations
- Overall assessment (Pass/Fail/Conditional)
Example Invocation
Source Files
- Workflow:
src/bmm/workflows/4-implementation/code-review/workflow.yaml - Instructions:
src/bmm/workflows/4-implementation/code-review/instructions.xml - Checklist:
src/bmm/workflows/4-implementation/code-review/checklist.md
Sprint Status Workflow
Purpose
View current sprint progress and story states. This workflow provides a summary of sprint health and whatโs in progress.Trigger Commands
Report Contents
- Overall sprint progress
- Stories by status
- Epics progress
- Blocked items
- Next recommended actions
Example Output
Source Files
- Workflow:
src/bmm/workflows/4-implementation/sprint-status/workflow.yaml - Instructions:
src/bmm/workflows/4-implementation/sprint-status/instructions.md
Correct Course Workflow
Purpose
Manage significant changes during sprint execution. This workflow helps handle scope changes, technical pivots, and other course corrections while maintaining alignment.Trigger Commands
When to Use
Use this workflow when:- Requirements need significant changes
- Technical approach needs pivoting
- Dependencies change unexpectedly
- Priorities need reordering
- Scope needs adjustment
Workflow Process
- Change Identification - What needs to change?
- Impact Analysis - Whatโs affected?
- Proposal Generation - Document the change
- Stakeholder Review - Get approval
- Artifact Updates - Update PRD, epics, stories
- Sprint Adjustment - Replan affected work
Inputs
- Proposed change description
- All planning artifacts (PRD, Architecture, Epics)
- Current sprint status
- Project context
Outputs
File Location:{planning_artifacts}/sprint-change-proposal-{date}.md
Proposal Includes:
- Change description
- Rationale and context
- Impact analysis (stories, epics, architecture)
- Updated requirements
- Revised timeline
- Recommendations
Example Invocation
Source Files
- Workflow:
src/bmm/workflows/4-implementation/correct-course/workflow.yaml - Instructions:
src/bmm/workflows/4-implementation/correct-course/instructions.md - Checklist:
src/bmm/workflows/4-implementation/correct-course/checklist.md
Retrospective Workflow
Purpose
Conduct epic retrospectives to capture learnings and improve processes. This workflow helps teams reflect on completed epics and plan improvements.Trigger Commands
Retrospective Format
Follows the classic retrospective structure:- What went well? - Celebrate successes
- What didnโt go well? - Identify problems
- What did we learn? - Extract insights
- What will we change? - Action items
Workflow Process
- Epic Selection - Choose completed epic
- Data Gathering - Review epic stories and outcomes
- Facilitated Discussion - Guide retrospective conversation
- Action Items - Identify concrete improvements
- Documentation - Record learnings
- Status Update - Mark retrospective as done
Inputs
- Completed epic and its stories
- Sprint status history
- Userโs observations and feedback
Outputs
File Location:{implementation_artifacts}/retrospective-epic-{num}-{date}.md
Document Includes:
- Epic summary
- What went well
- What didnโt go well
- Key learnings
- Action items for next epic
- Metrics (velocity, completion time, etc.)
Example Invocation
Source Files
- Workflow:
src/bmm/workflows/4-implementation/retrospective/workflow.yaml - Instructions:
src/bmm/workflows/4-implementation/retrospective/instructions.md
Implementation Best Practices
Sprint Flow
- Sprint Planning - Generate sprint-status.yaml
- Story Creation - Create story files as needed
- Development - Implement stories
- Review - Code review each story
- Retrospective - Review epic when done
- Repeat - Continue through epics
Status Management
- Let workflows manage status automatically
- Re-run sprint planning to refresh status detection
- Use correct course for significant changes
- Keep sprint-status.yaml as single source of truth
Team Collaboration
- Fresh AI context recommended for code review
- Use different LLM for reviewer vs. developer
- Document learnings in retrospectives
- Apply action items to next epic
Next Steps
- Quick Flow - For small changes during implementation
- Document Project - Generate project documentation
