2025-06-08 17:34:38 -05:00
workflow :
2025-06-08 19:22:57 -05:00
id : brownfield-fullstack
name : Brownfield Full-Stack Enhancement
2025-06-08 17:34:38 -05:00
description : >-
2025-06-08 20:34:07 -05:00
Agent workflow for enhancing existing full-stack applications with new features,
modernization, or significant changes. Handles existing system analysis and safe integration.
2025-06-08 17:34:38 -05:00
type : brownfield
project_types :
- feature-addition
- refactoring
- modernization
2025-06-08 20:34:07 -05:00
- integration-enhancement
2025-06-08 17:34:38 -05:00
2025-06-08 20:34:07 -05:00
# For Complex Enhancements (Multiple Stories, Architectural Changes)
complex_enhancement_sequence :
- step : scope_assessment
agent : any
action : assess complexity
notes : "First, assess if this is a simple change (use simple_enhancement_sequence) or complex enhancement requiring full planning."
2025-06-08 17:34:38 -05:00
2025-06-08 20:34:07 -05:00
- step : project_analysis
agent : analyst
action : analyze existing project
notes : "Review existing documentation, codebase structure, and identify integration points. Document current system understanding before proceeding."
2025-06-08 17:34:38 -05:00
2025-06-08 20:34:07 -05:00
- agent : pm
creates : brownfield-prd.md
uses : brownfield-prd-tmpl
requires : existing_project_analysis
notes : "Creates comprehensive brownfield PRD with existing system analysis and enhancement planning. SAVE OUTPUT: Copy final brownfield-prd.md to your project's docs/ folder."
2025-06-08 17:34:38 -05:00
2025-06-10 07:17:19 -05:00
- agent : architect
2025-06-08 20:34:07 -05:00
creates : brownfield-architecture.md
uses : brownfield-architecture-tmpl
requires : brownfield-prd.md
notes : "Creates brownfield architecture with integration strategy and existing system constraints. SAVE OUTPUT: Copy final brownfield-architecture.md to your project's docs/ folder."
2025-06-08 17:34:38 -05:00
2025-06-08 20:34:07 -05:00
- agent : po
validates : all_artifacts
2025-06-10 07:17:19 -05:00
uses : po-master-checklist
2025-06-08 20:34:07 -05:00
notes : "Validates all brownfield documents for integration safety and completeness. May require updates to any document."
2025-06-08 17:34:38 -05:00
2025-06-08 20:34:07 -05:00
- agent : various
updates : any_flagged_documents
condition : po_checklist_issues
notes : "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
2025-06-08 17:34:38 -05:00
2025-06-08 20:34:07 -05:00
- workflow_end :
action : move_to_ide
notes : "All planning artifacts complete. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
2025-06-08 17:34:38 -05:00
2025-06-08 20:34:07 -05:00
# For Simple Enhancements (1-3 Stories, Following Existing Patterns)
simple_enhancement_sequence :
- step : enhancement_type
action : choose approach
notes : "Choose between creating single story (very small change) or epic (1-3 related stories)."
2025-06-08 17:34:38 -05:00
2025-06-08 20:34:07 -05:00
- agent : pm|po|sm
creates : brownfield_epic OR brownfield_story
uses : brownfield-create-epic OR brownfield-create-story
notes : "Create focused enhancement with existing system integration. Choose agent based on team preference and context."
2025-06-08 17:34:38 -05:00
2025-06-08 20:34:07 -05:00
- workflow_end :
action : move_to_ide
notes : "Enhancement defined. Move to IDE environment to begin development. Explain to the user the IDE Development Workflow next steps: data#bmad-kb:IDE Development Workflow"
2025-06-08 17:34:38 -05:00
2025-06-08 20:34:07 -05:00
flow_diagram : |
```mermaid
graph TD
A[Start : Brownfield Enhancement] --> B{Enhancement Complexity?}
B -->|Complex/Significant| C[analyst : analyze existing project]
B -->|Simple| D{1 Story or 2-3 Stories?}
C --> E[pm : brownfield-prd.md]
2025-06-10 07:17:19 -05:00
E --> F[architect : brownfield-architecture.md]
F --> G[po : validate with po-master-checklist]
2025-06-08 20:34:07 -05:00
G --> H{PO finds issues?}
H -->|Yes| I[Return to relevant agent for fixes]
H -->|No| J[Move to IDE Environment]
I --> G
D -->|1 Story| K[pm/po/sm : brownfield-create-story]
D -->|2-3 Stories| L[pm/po/sm : brownfield-create-epic]
K --> M[Move to IDE Environment]
L --> M
style J fill:#90EE90
style M fill:#90EE90
style E fill:#FFE4B5
style F fill:#FFE4B5
style K fill:#FFB6C1
style L fill:#FFB6C1
```
decision_guidance :
use_complex_sequence_when :
- Enhancement requires multiple coordinated stories (4+)
- Architectural changes are needed
- Significant integration work required
- Risk assessment and mitigation planning necessary
- Multiple team members will work on related changes
use_simple_sequence_when :
- Enhancement can be completed in 1-3 stories
- Follows existing project patterns
- Integration complexity is minimal
- Risk to existing system is low
- Change is isolated with clear boundaries
handoff_prompts :
analyst_to_pm : "Existing project analysis complete. Create comprehensive brownfield PRD with integration strategy."
pm_to_architect : "Brownfield PRD ready. Save it as docs/brownfield-prd.md, then create the integration architecture."
architect_to_po : "Architecture complete. Save it as docs/brownfield-architecture.md. Please validate all artifacts for integration safety."
po_issues : "PO found issues with [document]. Please return to [agent] to fix and re-save the updated document."
simple_to_ide : "Enhancement defined with existing system integration. Move to IDE environment to begin development."
complex_complete : "All brownfield planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development."