Skip to main content

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:
  1. Discovers all epic files (whole or sharded)
  2. Extracts all epics and stories
  3. Creates status tracking entries
  4. Detects existing story files to set initial status
  5. Generates sprint-status.yaml

Status Definitions

Epic Status Flow:
  • backlog: Epic not yet started
  • in-progress: Epic actively being worked on
  • done: All stories in epic completed
Story Status Flow:
  • backlog: Story only exists in epic file
  • ready-for-dev: Story file created in stories folder
  • in-progress: Developer actively working
  • review: Ready for code review
  • done: Completed
Retrospective Status:
  • optional: Can be completed but not required
  • done: 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

  1. Story Selection - Identify story from epic
  2. Context Gathering - Load PRD, Architecture, UX
  3. Technical Planning - Add implementation details
  4. File Generation - Create story markdown file
  5. 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

  1. Story Discovery - Load story file or auto-discover next story
  2. Context Loading - Load all relevant planning documents
  3. Implementation - Write code following specifications
  4. Testing - Verify acceptance criteria
  5. Status Update - Mark story as in-progress/review/done

Auto-Discovery

If no story file specified, the workflow:
  1. Reads sprint-status.yaml
  2. Finds next story with status ready-for-dev
  3. 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

  1. Acceptance Criteria - All criteria met?
  2. Architecture Compliance - Follows ADRs?
  3. Code Quality - Clean, maintainable code?
  4. Security - No vulnerabilities?
  5. Performance - Efficient implementation?
  6. Testing - Adequate test coverage?
  7. UX Alignment - Matches design specs?

Review Process

  1. Context Loading - Load story, architecture, PRD, UX
  2. Code Analysis - Review implementation files
  3. Issue Identification - Find problems and risks
  4. Severity Assessment - Categorize findings
  5. 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

  1. Change Identification - What needs to change?
  2. Impact Analysis - What’s affected?
  3. Proposal Generation - Document the change
  4. Stakeholder Review - Get approval
  5. Artifact Updates - Update PRD, epics, stories
  6. 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:
  1. What went well? - Celebrate successes
  2. What didn’t go well? - Identify problems
  3. What did we learn? - Extract insights
  4. What will we change? - Action items

Workflow Process

  1. Epic Selection - Choose completed epic
  2. Data Gathering - Review epic stories and outcomes
  3. Facilitated Discussion - Guide retrospective conversation
  4. Action Items - Identify concrete improvements
  5. Documentation - Record learnings
  6. 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

  1. Sprint Planning - Generate sprint-status.yaml
  2. Story Creation - Create story files as needed
  3. Development - Implement stories
  4. Review - Code review each story
  5. Retrospective - Review epic when done
  6. 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