brownfield-ui.yaml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. # <!-- Powered by BMAD™ Core -->
  2. workflow:
  3. id: brownfield-ui
  4. name: Brownfield UI/Frontend Enhancement
  5. description: >-
  6. Agent workflow for enhancing existing frontend applications with new features,
  7. modernization, or design improvements. Handles existing UI analysis and safe integration.
  8. type: brownfield
  9. project_types:
  10. - ui-modernization
  11. - framework-migration
  12. - design-refresh
  13. - frontend-enhancement
  14. sequence:
  15. - step: ui_analysis
  16. agent: architect
  17. action: analyze existing project and use task document-project
  18. creates: multiple documents per the document-project template
  19. notes: "Review existing frontend application, user feedback, analytics data, and identify improvement areas."
  20. - agent: pm
  21. creates: prd.md
  22. uses: brownfield-prd-tmpl
  23. requires: existing_ui_analysis
  24. notes: "Creates comprehensive PRD focused on UI enhancement with existing system analysis. SAVE OUTPUT: Copy final prd.md to your project's docs/ folder."
  25. - agent: ux-expert
  26. creates: front-end-spec.md
  27. uses: front-end-spec-tmpl
  28. requires: prd.md
  29. notes: "Creates UI/UX specification that integrates with existing design patterns. SAVE OUTPUT: Copy final front-end-spec.md to your project's docs/ folder."
  30. - agent: architect
  31. creates: architecture.md
  32. uses: brownfield-architecture-tmpl
  33. requires:
  34. - prd.md
  35. - front-end-spec.md
  36. notes: "Creates frontend architecture with component integration strategy and migration planning. SAVE OUTPUT: Copy final architecture.md to your project's docs/ folder."
  37. - agent: po
  38. validates: all_artifacts
  39. uses: po-master-checklist
  40. notes: "Validates all documents for UI integration safety and design consistency. May require updates to any document."
  41. - agent: various
  42. updates: any_flagged_documents
  43. condition: po_checklist_issues
  44. notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
  45. - agent: po
  46. action: shard_documents
  47. creates: sharded_docs
  48. requires: all_artifacts_in_project
  49. notes: |
  50. Shard documents for IDE development:
  51. - Option A: Use PO agent to shard: @po then ask to shard docs/prd.md
  52. - Option B: Manual: Drag shard-doc task + docs/prd.md into chat
  53. - Creates docs/prd/ and docs/architecture/ folders with sharded content
  54. - agent: sm
  55. action: create_story
  56. creates: story.md
  57. requires: sharded_docs
  58. repeats: for_each_epic
  59. notes: |
  60. Story creation cycle:
  61. - SM Agent (New Chat): @sm → *create
  62. - Creates next story from sharded docs
  63. - Story starts in "Draft" status
  64. - agent: analyst/pm
  65. action: review_draft_story
  66. updates: story.md
  67. requires: story.md
  68. optional: true
  69. condition: user_wants_story_review
  70. notes: |
  71. OPTIONAL: Review and approve draft story
  72. - NOTE: story-review task coming soon
  73. - Review story completeness and alignment
  74. - Update story status: Draft → Approved
  75. - agent: dev
  76. action: implement_story
  77. creates: implementation_files
  78. requires: story.md
  79. notes: |
  80. Dev Agent (New Chat): @dev
  81. - Implements approved story
  82. - Updates File List with all changes
  83. - Marks story as "Review" when complete
  84. - agent: qa
  85. action: review_implementation
  86. updates: implementation_files
  87. requires: implementation_files
  88. optional: true
  89. notes: |
  90. OPTIONAL: QA Agent (New Chat): @qa → review-story
  91. - Senior dev review with refactoring ability
  92. - Fixes small issues directly
  93. - Leaves checklist for remaining items
  94. - Updates story status (Review → Done or stays Review)
  95. - agent: dev
  96. action: address_qa_feedback
  97. updates: implementation_files
  98. condition: qa_left_unchecked_items
  99. notes: |
  100. If QA left unchecked items:
  101. - Dev Agent (New Chat): Address remaining items
  102. - Return to QA for final approval
  103. - step: repeat_development_cycle
  104. action: continue_for_all_stories
  105. notes: |
  106. Repeat story cycle (SM → Dev → QA) for all epic stories
  107. Continue until all stories in PRD are complete
  108. - agent: po
  109. action: epic_retrospective
  110. creates: epic-retrospective.md
  111. condition: epic_complete
  112. optional: true
  113. notes: |
  114. OPTIONAL: After epic completion
  115. - NOTE: epic-retrospective task coming soon
  116. - Validate epic was completed correctly
  117. - Document learnings and improvements
  118. - step: workflow_end
  119. action: project_complete
  120. notes: |
  121. All stories implemented and reviewed!
  122. Project development phase complete.
  123. Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
  124. flow_diagram: |
  125. ```mermaid
  126. graph TD
  127. A[Start: UI Enhancement] --> B[analyst: analyze existing UI]
  128. B --> C[pm: prd.md]
  129. C --> D[ux-expert: front-end-spec.md]
  130. D --> E[architect: architecture.md]
  131. E --> F[po: validate with po-master-checklist]
  132. F --> G{PO finds issues?}
  133. G -->|Yes| H[Return to relevant agent for fixes]
  134. G -->|No| I[po: shard documents]
  135. H --> F
  136. I --> J[sm: create story]
  137. J --> K{Review draft story?}
  138. K -->|Yes| L[analyst/pm: review & approve story]
  139. K -->|No| M[dev: implement story]
  140. L --> M
  141. M --> N{QA review?}
  142. N -->|Yes| O[qa: review implementation]
  143. N -->|No| P{More stories?}
  144. O --> Q{QA found issues?}
  145. Q -->|Yes| R[dev: address QA feedback]
  146. Q -->|No| P
  147. R --> O
  148. P -->|Yes| J
  149. P -->|No| S{Epic retrospective?}
  150. S -->|Yes| T[po: epic retrospective]
  151. S -->|No| U[Project Complete]
  152. T --> U
  153. style U fill:#90EE90
  154. style I fill:#ADD8E6
  155. style J fill:#ADD8E6
  156. style M fill:#ADD8E6
  157. style C fill:#FFE4B5
  158. style D fill:#FFE4B5
  159. style E fill:#FFE4B5
  160. style L fill:#F0E68C
  161. style O fill:#F0E68C
  162. style T fill:#F0E68C
  163. ```
  164. decision_guidance:
  165. when_to_use:
  166. - UI enhancement requires coordinated stories
  167. - Design system changes needed
  168. - New component patterns required
  169. - User research and testing needed
  170. - Multiple team members will work on related changes
  171. handoff_prompts:
  172. analyst_to_pm: "UI analysis complete. Create comprehensive PRD with UI integration strategy."
  173. pm_to_ux: "PRD ready. Save it as docs/prd.md, then create the UI/UX specification."
  174. ux_to_architect: "UI/UX spec complete. Save it as docs/front-end-spec.md, then create the frontend architecture."
  175. architect_to_po: "Architecture complete. Save it as docs/architecture.md. Please validate all artifacts for UI integration safety."
  176. po_issues: "PO found issues with [document]. Please return to [agent] to fix and re-save the updated document."
  177. complete: "All planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development."