@rdmind/rdmind 0.0.9-alpha.0 → 0.0.9-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/.knowledge/.ext/.bmad-core/agent-teams/team-all.yaml +15 -0
  2. package/.knowledge/.ext/.bmad-core/agent-teams/team-fullstack.yaml +19 -0
  3. package/.knowledge/.ext/.bmad-core/agent-teams/team-ide-minimal.yaml +11 -0
  4. package/.knowledge/.ext/.bmad-core/agent-teams/team-no-ui.yaml +14 -0
  5. package/.knowledge/.ext/.bmad-core/agents/analyst.md +84 -0
  6. package/.knowledge/.ext/.bmad-core/agents/architect.md +85 -0
  7. package/.knowledge/.ext/.bmad-core/agents/bmad-master.md +110 -0
  8. package/.knowledge/.ext/.bmad-core/agents/bmad-orchestrator.md +147 -0
  9. package/.knowledge/.ext/.bmad-core/agents/dev.md +81 -0
  10. package/.knowledge/.ext/.bmad-core/agents/pm.md +84 -0
  11. package/.knowledge/.ext/.bmad-core/agents/po.md +79 -0
  12. package/.knowledge/.ext/.bmad-core/agents/qa.md +90 -0
  13. package/.knowledge/.ext/.bmad-core/agents/ra.md +74 -0
  14. package/.knowledge/.ext/.bmad-core/agents/sm.md +65 -0
  15. package/.knowledge/.ext/.bmad-core/agents/ux-expert.md +69 -0
  16. package/.knowledge/.ext/.bmad-core/checklists/architect-checklist.md +440 -0
  17. package/.knowledge/.ext/.bmad-core/checklists/change-checklist.md +184 -0
  18. package/.knowledge/.ext/.bmad-core/checklists/pm-checklist.md +372 -0
  19. package/.knowledge/.ext/.bmad-core/checklists/po-master-checklist.md +434 -0
  20. package/.knowledge/.ext/.bmad-core/checklists/story-dod-checklist.md +96 -0
  21. package/.knowledge/.ext/.bmad-core/checklists/story-draft-checklist.md +155 -0
  22. package/.knowledge/.ext/.bmad-core/checklists/trd-checklist.md +226 -0
  23. package/.knowledge/.ext/.bmad-core/core-config.yaml +22 -0
  24. package/.knowledge/.ext/.bmad-core/data/bmad-kb.md +809 -0
  25. package/.knowledge/.ext/.bmad-core/data/brainstorming-techniques.md +38 -0
  26. package/.knowledge/.ext/.bmad-core/data/elicitation-methods.md +156 -0
  27. package/.knowledge/.ext/.bmad-core/data/technical-preferences.md +5 -0
  28. package/.knowledge/.ext/.bmad-core/data/test-levels-framework.md +148 -0
  29. package/.knowledge/.ext/.bmad-core/data/test-priorities-matrix.md +174 -0
  30. package/.knowledge/.ext/.bmad-core/enhanced-ide-development-workflow.md +248 -0
  31. package/.knowledge/.ext/.bmad-core/install-manifest.yaml +512 -0
  32. package/.knowledge/.ext/.bmad-core/tasks/advanced-elicitation.md +119 -0
  33. package/.knowledge/.ext/.bmad-core/tasks/analyze-prd.md +123 -0
  34. package/.knowledge/.ext/.bmad-core/tasks/apply-qa-fixes.md +150 -0
  35. package/.knowledge/.ext/.bmad-core/tasks/brownfield-create-epic.md +162 -0
  36. package/.knowledge/.ext/.bmad-core/tasks/brownfield-create-story.md +149 -0
  37. package/.knowledge/.ext/.bmad-core/tasks/correct-course.md +72 -0
  38. package/.knowledge/.ext/.bmad-core/tasks/create-brownfield-story.md +314 -0
  39. package/.knowledge/.ext/.bmad-core/tasks/create-deep-research-prompt.md +280 -0
  40. package/.knowledge/.ext/.bmad-core/tasks/create-doc.md +103 -0
  41. package/.knowledge/.ext/.bmad-core/tasks/create-next-story.md +114 -0
  42. package/.knowledge/.ext/.bmad-core/tasks/document-project.md +345 -0
  43. package/.knowledge/.ext/.bmad-core/tasks/execute-checklist.md +88 -0
  44. package/.knowledge/.ext/.bmad-core/tasks/facilitate-brainstorming-session.md +138 -0
  45. package/.knowledge/.ext/.bmad-core/tasks/generate-ai-frontend-prompt.md +53 -0
  46. package/.knowledge/.ext/.bmad-core/tasks/index-docs.md +175 -0
  47. package/.knowledge/.ext/.bmad-core/tasks/kb-mode-interaction.md +77 -0
  48. package/.knowledge/.ext/.bmad-core/tasks/nfr-assess.md +345 -0
  49. package/.knowledge/.ext/.bmad-core/tasks/qa-gate.md +163 -0
  50. package/.knowledge/.ext/.bmad-core/tasks/review-story.md +316 -0
  51. package/.knowledge/.ext/.bmad-core/tasks/risk-profile.md +355 -0
  52. package/.knowledge/.ext/.bmad-core/tasks/shard-doc.md +187 -0
  53. package/.knowledge/.ext/.bmad-core/tasks/test-design.md +176 -0
  54. package/.knowledge/.ext/.bmad-core/tasks/trace-requirements.md +266 -0
  55. package/.knowledge/.ext/.bmad-core/tasks/validate-next-story.md +136 -0
  56. package/.knowledge/.ext/.bmad-core/tasks/validate-trd.md +158 -0
  57. package/.knowledge/.ext/.bmad-core/templates/architecture-tmpl.yaml +651 -0
  58. package/.knowledge/.ext/.bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
  59. package/.knowledge/.ext/.bmad-core/templates/brownfield-architecture-tmpl.yaml +478 -0
  60. package/.knowledge/.ext/.bmad-core/templates/brownfield-prd-tmpl.yaml +281 -0
  61. package/.knowledge/.ext/.bmad-core/templates/competitor-analysis-tmpl.yaml +349 -0
  62. package/.knowledge/.ext/.bmad-core/templates/front-end-architecture-tmpl.yaml +273 -0
  63. package/.knowledge/.ext/.bmad-core/templates/front-end-spec-tmpl.yaml +360 -0
  64. package/.knowledge/.ext/.bmad-core/templates/fullstack-architecture-tmpl.yaml +947 -0
  65. package/.knowledge/.ext/.bmad-core/templates/market-research-tmpl.yaml +253 -0
  66. package/.knowledge/.ext/.bmad-core/templates/prd-tmpl.yaml +203 -0
  67. package/.knowledge/.ext/.bmad-core/templates/project-brief-tmpl.yaml +222 -0
  68. package/.knowledge/.ext/.bmad-core/templates/qa-gate-tmpl.yaml +103 -0
  69. package/.knowledge/.ext/.bmad-core/templates/story-tmpl.yaml +138 -0
  70. package/.knowledge/.ext/.bmad-core/templates/trd-tmpl.yaml +198 -0
  71. package/.knowledge/.ext/.bmad-core/user-guide.md +530 -0
  72. package/.knowledge/.ext/.bmad-core/utils/bmad-doc-template.md +327 -0
  73. package/.knowledge/.ext/.bmad-core/utils/workflow-management.md +71 -0
  74. package/.knowledge/.ext/.bmad-core/workflows/brownfield-fullstack.yaml +298 -0
  75. package/.knowledge/.ext/.bmad-core/workflows/brownfield-service.yaml +188 -0
  76. package/.knowledge/.ext/.bmad-core/workflows/brownfield-ui.yaml +198 -0
  77. package/.knowledge/.ext/.bmad-core/workflows/greenfield-fullstack.yaml +241 -0
  78. package/.knowledge/.ext/.bmad-core/workflows/greenfield-service.yaml +207 -0
  79. package/.knowledge/.ext/.bmad-core/workflows/greenfield-ui.yaml +236 -0
  80. package/.knowledge/.ext/.bmad-core/working-in-the-brownfield.md +606 -0
  81. package/.knowledge/.ext/coding/ddd-architecture.md +223 -0
  82. package/.knowledge/.ext/coding/java-standards.md +308 -0
  83. package/.knowledge/.ext/coding/mybatis-standards.md +407 -0
  84. package/.knowledge/.ext/coding/sql-standards.md +263 -0
  85. package/.knowledge/.ext/coding/thrift-service.md +292 -0
  86. package/.knowledge/BMAD.md +255 -0
  87. package/.knowledge/coding.md +135 -0
  88. package/dist/package.json +4 -3
  89. package/dist/src/generated/git-commit.d.ts +2 -2
  90. package/dist/src/generated/git-commit.js +2 -2
  91. package/dist/src/ui/components/Tips.js +1 -1
  92. package/dist/src/ui/components/Tips.js.map +1 -1
  93. package/dist/src/ui/hooks/usePhraseCycler.js +2 -2
  94. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
  95. package/dist/tsconfig.tsbuildinfo +1 -1
  96. package/package.json +4 -3
  97. package/template/sns-demo-app/src/main/java/com/xiaohongshu/sns/demo/app/.gitkeep +0 -0
  98. package/template/sns-demo-common/src/main/java/com/xiaohongshu/sns/demo/common/enums/.gitkeep +0 -0
  99. package/template/sns-demo-common/src/main/java/com/xiaohongshu/sns/demo/common/model/.gitkeep +0 -0
  100. package/template/sns-demo-domain/src/main/java/com/xiaohongshu/sns/demo/domain/facade/.gitkeep +0 -0
  101. package/template/sns-demo-domain/src/main/java/com/xiaohongshu/sns/demo/domain/gateway/.gitkeep +0 -0
  102. package/template/sns-demo-infrastructure/src/main/java/com/xiaohongshu/sns/demo/infrastructure/config/threadpool/.gitkeep +0 -0
  103. package/template/sns-demo-infrastructure/src/main/java/com/xiaohongshu/sns/demo/infrastructure/gatewayimpl/.gitkeep +0 -0
  104. package/template/sns-demo-infrastructure/src/main/resources/mapper/.gitkeep +0 -0
  105. package/template/sns-demo-start/src/main/java/com/xiaohongshu/sns/demo/start/config/.gitkeep +0 -0
  106. package/template/sns-demo-start/src/main/java/com/xiaohongshu/sns/demo/start/provider/.gitkeep +0 -0
@@ -0,0 +1,188 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ workflow:
3
+ id: brownfield-service
4
+ name: Brownfield Service/API Enhancement
5
+ description: >-
6
+ Agent workflow for enhancing existing backend services and APIs with new features,
7
+ modernization, or performance improvements. Handles existing system analysis and safe integration.
8
+ type: brownfield
9
+ project_types:
10
+ - service-modernization
11
+ - api-enhancement
12
+ - microservice-extraction
13
+ - performance-optimization
14
+ - integration-enhancement
15
+
16
+ sequence:
17
+ - step: service_analysis
18
+ agent: architect
19
+ action: analyze existing project and use task document-project
20
+ creates: multiple documents per the document-project template
21
+ notes: 'Review existing service documentation, codebase, performance metrics, and identify integration dependencies.'
22
+
23
+ - agent: pm
24
+ creates: prd.md
25
+ uses: brownfield-prd-tmpl
26
+ requires: existing_service_analysis
27
+ notes: "Creates comprehensive PRD focused on service enhancement with existing system analysis. SAVE OUTPUT: Copy final prd.md to your project's docs/ folder."
28
+
29
+ - agent: architect
30
+ creates: architecture.md
31
+ uses: brownfield-architecture-tmpl
32
+ requires: prd.md
33
+ notes: "Creates architecture with service integration strategy and API evolution planning. SAVE OUTPUT: Copy final architecture.md to your project's docs/ folder."
34
+
35
+ - agent: po
36
+ validates: all_artifacts
37
+ uses: po-master-checklist
38
+ notes: 'Validates all documents for service integration safety and API compatibility. May require updates to any document.'
39
+
40
+ - agent: various
41
+ updates: any_flagged_documents
42
+ condition: po_checklist_issues
43
+ notes: 'If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder.'
44
+
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
+
55
+ - agent: sm
56
+ action: create_story
57
+ creates: story.md
58
+ requires: sharded_docs
59
+ repeats: for_each_epic
60
+ notes: |
61
+ Story creation cycle:
62
+ - SM Agent (New Chat): @sm → *create
63
+ - Creates next story from sharded docs
64
+ - Story starts in "Draft" status
65
+
66
+ - agent: analyst/pm
67
+ action: review_draft_story
68
+ updates: story.md
69
+ requires: story.md
70
+ optional: true
71
+ condition: user_wants_story_review
72
+ notes: |
73
+ OPTIONAL: Review and approve draft story
74
+ - NOTE: story-review task coming soon
75
+ - Review story completeness and alignment
76
+ - Update story status: Draft → Approved
77
+
78
+ - agent: dev
79
+ action: implement_story
80
+ creates: implementation_files
81
+ requires: story.md
82
+ notes: |
83
+ Dev Agent (New Chat): @dev
84
+ - Implements approved story
85
+ - Updates File List with all changes
86
+ - Marks story as "Review" when complete
87
+
88
+ - agent: qa
89
+ action: review_implementation
90
+ updates: implementation_files
91
+ requires: implementation_files
92
+ optional: true
93
+ notes: |
94
+ OPTIONAL: QA Agent (New Chat): @qa → review-story
95
+ - Senior dev review with refactoring ability
96
+ - Fixes small issues directly
97
+ - Leaves checklist for remaining items
98
+ - Updates story status (Review → Done or stays Review)
99
+
100
+ - agent: dev
101
+ action: address_qa_feedback
102
+ updates: implementation_files
103
+ condition: qa_left_unchecked_items
104
+ notes: |
105
+ If QA left unchecked items:
106
+ - Dev Agent (New Chat): Address remaining items
107
+ - Return to QA for final approval
108
+
109
+ - step: repeat_development_cycle
110
+ action: continue_for_all_stories
111
+ notes: |
112
+ Repeat story cycle (SM → Dev → QA) for all epic stories
113
+ Continue until all stories in PRD are complete
114
+
115
+ - agent: po
116
+ action: epic_retrospective
117
+ creates: epic-retrospective.md
118
+ condition: epic_complete
119
+ optional: true
120
+ notes: |
121
+ OPTIONAL: After epic completion
122
+ - NOTE: epic-retrospective task coming soon
123
+ - Validate epic was completed correctly
124
+ - Document learnings and improvements
125
+
126
+ - step: workflow_end
127
+ action: project_complete
128
+ notes: |
129
+ All stories implemented and reviewed!
130
+ Project development phase complete.
131
+
132
+ Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
133
+
134
+ flow_diagram: |
135
+ ```mermaid
136
+ graph TD
137
+ A[Start: Service Enhancement] --> B[analyst: analyze existing service]
138
+ B --> C[pm: prd.md]
139
+ C --> D[architect: architecture.md]
140
+ D --> E[po: validate with po-master-checklist]
141
+ E --> F{PO finds issues?}
142
+ F -->|Yes| G[Return to relevant agent for fixes]
143
+ F -->|No| H[po: shard documents]
144
+ G --> E
145
+
146
+ H --> I[sm: create story]
147
+ I --> J{Review draft story?}
148
+ J -->|Yes| K[analyst/pm: review & approve story]
149
+ J -->|No| L[dev: implement story]
150
+ K --> L
151
+ L --> M{QA review?}
152
+ M -->|Yes| N[qa: review implementation]
153
+ M -->|No| O{More stories?}
154
+ N --> P{QA found issues?}
155
+ P -->|Yes| Q[dev: address QA feedback]
156
+ P -->|No| O
157
+ Q --> N
158
+ O -->|Yes| I
159
+ O -->|No| R{Epic retrospective?}
160
+ R -->|Yes| S[po: epic retrospective]
161
+ R -->|No| T[Project Complete]
162
+ S --> T
163
+
164
+ style T fill:#90EE90
165
+ style H fill:#ADD8E6
166
+ style I fill:#ADD8E6
167
+ style L fill:#ADD8E6
168
+ style C fill:#FFE4B5
169
+ style D fill:#FFE4B5
170
+ style K fill:#F0E68C
171
+ style N fill:#F0E68C
172
+ style S fill:#F0E68C
173
+ ```
174
+
175
+ decision_guidance:
176
+ when_to_use:
177
+ - Service enhancement requires coordinated stories
178
+ - API versioning or breaking changes needed
179
+ - Database schema changes required
180
+ - Performance or scalability improvements needed
181
+ - Multiple integration points affected
182
+
183
+ handoff_prompts:
184
+ analyst_to_pm: 'Service analysis complete. Create comprehensive PRD with service integration strategy.'
185
+ pm_to_architect: 'PRD ready. Save it as docs/prd.md, then create the service architecture.'
186
+ architect_to_po: 'Architecture complete. Save it as docs/architecture.md. Please validate all artifacts for service integration safety.'
187
+ po_issues: 'PO found issues with [document]. Please return to [agent] to fix and re-save the updated document.'
188
+ complete: 'All planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development.'
@@ -0,0 +1,198 @@
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
+
15
+ sequence:
16
+ - step: ui_analysis
17
+ agent: architect
18
+ action: analyze existing project and use task document-project
19
+ creates: multiple documents per the document-project template
20
+ notes: 'Review existing frontend application, user feedback, analytics data, and identify improvement areas.'
21
+
22
+ - agent: pm
23
+ creates: prd.md
24
+ uses: brownfield-prd-tmpl
25
+ requires: existing_ui_analysis
26
+ notes: "Creates comprehensive PRD focused on UI enhancement with existing system analysis. SAVE OUTPUT: Copy final prd.md to your project's docs/ folder."
27
+
28
+ - agent: ux-expert
29
+ creates: front-end-spec.md
30
+ uses: front-end-spec-tmpl
31
+ requires: prd.md
32
+ 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."
33
+
34
+ - agent: architect
35
+ creates: architecture.md
36
+ uses: brownfield-architecture-tmpl
37
+ requires:
38
+ - prd.md
39
+ - front-end-spec.md
40
+ notes: "Creates frontend architecture with component integration strategy and migration planning. SAVE OUTPUT: Copy final architecture.md to your project's docs/ folder."
41
+
42
+ - agent: po
43
+ validates: all_artifacts
44
+ uses: po-master-checklist
45
+ notes: 'Validates all documents for UI integration safety and design consistency. May require updates to any document.'
46
+
47
+ - agent: various
48
+ updates: any_flagged_documents
49
+ condition: po_checklist_issues
50
+ notes: 'If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder.'
51
+
52
+ - agent: po
53
+ action: shard_documents
54
+ creates: sharded_docs
55
+ requires: all_artifacts_in_project
56
+ notes: |
57
+ Shard documents for IDE development:
58
+ - Option A: Use PO agent to shard: @po then ask to shard docs/prd.md
59
+ - Option B: Manual: Drag shard-doc task + docs/prd.md into chat
60
+ - Creates docs/prd/ and docs/architecture/ folders with sharded content
61
+
62
+ - agent: sm
63
+ action: create_story
64
+ creates: story.md
65
+ requires: sharded_docs
66
+ repeats: for_each_epic
67
+ notes: |
68
+ Story creation cycle:
69
+ - SM Agent (New Chat): @sm → *create
70
+ - Creates next story from sharded docs
71
+ - Story starts in "Draft" status
72
+
73
+ - agent: analyst/pm
74
+ action: review_draft_story
75
+ updates: story.md
76
+ requires: story.md
77
+ optional: true
78
+ condition: user_wants_story_review
79
+ notes: |
80
+ OPTIONAL: Review and approve draft story
81
+ - NOTE: story-review task coming soon
82
+ - Review story completeness and alignment
83
+ - Update story status: Draft → Approved
84
+
85
+ - agent: dev
86
+ action: implement_story
87
+ creates: implementation_files
88
+ requires: story.md
89
+ notes: |
90
+ Dev Agent (New Chat): @dev
91
+ - Implements approved story
92
+ - Updates File List with all changes
93
+ - Marks story as "Review" when complete
94
+
95
+ - agent: qa
96
+ action: review_implementation
97
+ updates: implementation_files
98
+ requires: implementation_files
99
+ optional: true
100
+ notes: |
101
+ OPTIONAL: QA Agent (New Chat): @qa → review-story
102
+ - Senior dev review with refactoring ability
103
+ - Fixes small issues directly
104
+ - Leaves checklist for remaining items
105
+ - Updates story status (Review → Done or stays Review)
106
+
107
+ - agent: dev
108
+ action: address_qa_feedback
109
+ updates: implementation_files
110
+ condition: qa_left_unchecked_items
111
+ notes: |
112
+ If QA left unchecked items:
113
+ - Dev Agent (New Chat): Address remaining items
114
+ - Return to QA for final approval
115
+
116
+ - step: repeat_development_cycle
117
+ action: continue_for_all_stories
118
+ notes: |
119
+ Repeat story cycle (SM → Dev → QA) for all epic stories
120
+ Continue until all stories in PRD are complete
121
+
122
+ - agent: po
123
+ action: epic_retrospective
124
+ creates: epic-retrospective.md
125
+ condition: epic_complete
126
+ optional: true
127
+ notes: |
128
+ OPTIONAL: After epic completion
129
+ - NOTE: epic-retrospective task coming soon
130
+ - Validate epic was completed correctly
131
+ - Document learnings and improvements
132
+
133
+ - step: workflow_end
134
+ action: project_complete
135
+ notes: |
136
+ All stories implemented and reviewed!
137
+ Project development phase complete.
138
+
139
+ Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
140
+
141
+ flow_diagram: |
142
+ ```mermaid
143
+ graph TD
144
+ A[Start: UI Enhancement] --> B[analyst: analyze existing UI]
145
+ B --> C[pm: prd.md]
146
+ C --> D[ux-expert: front-end-spec.md]
147
+ D --> E[architect: architecture.md]
148
+ E --> F[po: validate with po-master-checklist]
149
+ F --> G{PO finds issues?}
150
+ G -->|Yes| H[Return to relevant agent for fixes]
151
+ G -->|No| I[po: shard documents]
152
+ H --> F
153
+
154
+ I --> J[sm: create story]
155
+ J --> K{Review draft story?}
156
+ K -->|Yes| L[analyst/pm: review & approve story]
157
+ K -->|No| M[dev: implement story]
158
+ L --> M
159
+ M --> N{QA review?}
160
+ N -->|Yes| O[qa: review implementation]
161
+ N -->|No| P{More stories?}
162
+ O --> Q{QA found issues?}
163
+ Q -->|Yes| R[dev: address QA feedback]
164
+ Q -->|No| P
165
+ R --> O
166
+ P -->|Yes| J
167
+ P -->|No| S{Epic retrospective?}
168
+ S -->|Yes| T[po: epic retrospective]
169
+ S -->|No| U[Project Complete]
170
+ T --> U
171
+
172
+ style U fill:#90EE90
173
+ style I fill:#ADD8E6
174
+ style J fill:#ADD8E6
175
+ style M fill:#ADD8E6
176
+ style C fill:#FFE4B5
177
+ style D fill:#FFE4B5
178
+ style E fill:#FFE4B5
179
+ style L fill:#F0E68C
180
+ style O fill:#F0E68C
181
+ style T fill:#F0E68C
182
+ ```
183
+
184
+ decision_guidance:
185
+ when_to_use:
186
+ - UI enhancement requires coordinated stories
187
+ - Design system changes needed
188
+ - New component patterns required
189
+ - User research and testing needed
190
+ - Multiple team members will work on related changes
191
+
192
+ handoff_prompts:
193
+ analyst_to_pm: 'UI analysis complete. Create comprehensive PRD with UI integration strategy.'
194
+ pm_to_ux: 'PRD ready. Save it as docs/prd.md, then create the UI/UX specification.'
195
+ ux_to_architect: 'UI/UX spec complete. Save it as docs/front-end-spec.md, then create the frontend architecture.'
196
+ architect_to_po: 'Architecture complete. Save it as docs/architecture.md. Please validate all artifacts for UI integration safety.'
197
+ po_issues: 'PO found issues with [document]. Please return to [agent] to fix and re-save the updated document.'
198
+ complete: 'All planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development.'
@@ -0,0 +1,241 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ workflow:
3
+ id: greenfield-fullstack
4
+ name: Greenfield Full-Stack Application Development
5
+ description: >-
6
+ Agent workflow for building full-stack applications from concept to development.
7
+ Supports both comprehensive planning for complex projects and rapid prototyping for simple ones.
8
+ type: greenfield
9
+ project_types:
10
+ - web-app
11
+ - saas
12
+ - enterprise-app
13
+ - prototype
14
+ - mvp
15
+
16
+ sequence:
17
+ - agent: analyst
18
+ creates: project-brief.md
19
+ optional_steps:
20
+ - brainstorming_session
21
+ - market_research_prompt
22
+ notes: "Can do brainstorming first, then optional deep research before creating project brief. SAVE OUTPUT: Copy final project-brief.md to your project's docs/ folder."
23
+
24
+ - agent: pm
25
+ creates: prd.md
26
+ requires: project-brief.md
27
+ notes: "Creates PRD from project brief using prd-tmpl. SAVE OUTPUT: Copy final prd.md to your project's docs/ folder."
28
+
29
+ - agent: ux-expert
30
+ creates: front-end-spec.md
31
+ requires: prd.md
32
+ optional_steps:
33
+ - user_research_prompt
34
+ notes: "Creates UI/UX specification using front-end-spec-tmpl. SAVE OUTPUT: Copy final front-end-spec.md to your project's docs/ folder."
35
+
36
+ - agent: ux-expert
37
+ creates: v0_prompt (optional)
38
+ requires: front-end-spec.md
39
+ condition: user_wants_ai_generation
40
+ notes: 'OPTIONAL BUT RECOMMENDED: Generate AI UI prompt for tools like v0, Lovable, etc. Use the generate-ai-frontend-prompt task. User can then generate UI in external tool and download project structure.'
41
+
42
+ - agent: architect
43
+ creates: fullstack-architecture.md
44
+ requires:
45
+ - prd.md
46
+ - front-end-spec.md
47
+ optional_steps:
48
+ - technical_research_prompt
49
+ - review_generated_ui_structure
50
+ notes: "Creates comprehensive architecture using fullstack-architecture-tmpl. If user generated UI with v0/Lovable, can incorporate the project structure into architecture. May suggest changes to PRD stories or new stories. SAVE OUTPUT: Copy final fullstack-architecture.md to your project's docs/ folder."
51
+
52
+ - agent: pm
53
+ updates: prd.md (if needed)
54
+ requires: fullstack-architecture.md
55
+ condition: architecture_suggests_prd_changes
56
+ notes: 'If architect suggests story changes, update PRD and re-export the complete unredacted prd.md to docs/ folder.'
57
+
58
+ - agent: po
59
+ validates: all_artifacts
60
+ uses: po-master-checklist
61
+ notes: 'Validates all documents for consistency and completeness. May require updates to any document.'
62
+
63
+ - agent: various
64
+ updates: any_flagged_documents
65
+ condition: po_checklist_issues
66
+ notes: 'If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder.'
67
+
68
+ - step: project_setup_guidance
69
+ action: guide_project_structure
70
+ condition: user_has_generated_ui
71
+ notes: 'If user generated UI with v0/Lovable: For polyrepo setup, place downloaded project in separate frontend repo alongside backend repo. For monorepo, place in apps/web or packages/frontend directory. Review architecture document for specific guidance.'
72
+
73
+ - step: development_order_guidance
74
+ action: guide_development_sequence
75
+ notes: 'Based on PRD stories: If stories are frontend-heavy, start with frontend project/directory first. If backend-heavy or API-first, start with backend. For tightly coupled features, follow story sequence in monorepo setup. Reference sharded PRD epics for development order.'
76
+
77
+ - agent: po
78
+ action: shard_documents
79
+ creates: sharded_docs
80
+ requires: all_artifacts_in_project
81
+ notes: |
82
+ Shard documents for IDE development:
83
+ - Option A: Use PO agent to shard: @po then ask to shard docs/prd.md
84
+ - Option B: Manual: Drag shard-doc task + docs/prd.md into chat
85
+ - Creates docs/prd/ and docs/architecture/ folders with sharded content
86
+
87
+ - agent: sm
88
+ action: create_story
89
+ creates: story.md
90
+ requires: sharded_docs
91
+ repeats: for_each_epic
92
+ notes: |
93
+ Story creation cycle:
94
+ - SM Agent (New Chat): @sm → *create
95
+ - Creates next story from sharded docs
96
+ - Story starts in "Draft" status
97
+
98
+ - agent: analyst/pm
99
+ action: review_draft_story
100
+ updates: story.md
101
+ requires: story.md
102
+ optional: true
103
+ condition: user_wants_story_review
104
+ notes: |
105
+ OPTIONAL: Review and approve draft story
106
+ - NOTE: story-review task coming soon
107
+ - Review story completeness and alignment
108
+ - Update story status: Draft → Approved
109
+
110
+ - agent: dev
111
+ action: implement_story
112
+ creates: implementation_files
113
+ requires: story.md
114
+ notes: |
115
+ Dev Agent (New Chat): @dev
116
+ - Implements approved story
117
+ - Updates File List with all changes
118
+ - Marks story as "Review" when complete
119
+
120
+ - agent: qa
121
+ action: review_implementation
122
+ updates: implementation_files
123
+ requires: implementation_files
124
+ optional: true
125
+ notes: |
126
+ OPTIONAL: QA Agent (New Chat): @qa → review-story
127
+ - Senior dev review with refactoring ability
128
+ - Fixes small issues directly
129
+ - Leaves checklist for remaining items
130
+ - Updates story status (Review → Done or stays Review)
131
+
132
+ - agent: dev
133
+ action: address_qa_feedback
134
+ updates: implementation_files
135
+ condition: qa_left_unchecked_items
136
+ notes: |
137
+ If QA left unchecked items:
138
+ - Dev Agent (New Chat): Address remaining items
139
+ - Return to QA for final approval
140
+
141
+ - step: repeat_development_cycle
142
+ action: continue_for_all_stories
143
+ notes: |
144
+ Repeat story cycle (SM → Dev → QA) for all epic stories
145
+ Continue until all stories in PRD are complete
146
+
147
+ - agent: po
148
+ action: epic_retrospective
149
+ creates: epic-retrospective.md
150
+ condition: epic_complete
151
+ optional: true
152
+ notes: |
153
+ OPTIONAL: After epic completion
154
+ - NOTE: epic-retrospective task coming soon
155
+ - Validate epic was completed correctly
156
+ - Document learnings and improvements
157
+
158
+ - step: workflow_end
159
+ action: project_complete
160
+ notes: |
161
+ All stories implemented and reviewed!
162
+ Project development phase complete.
163
+
164
+ Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
165
+
166
+ flow_diagram: |
167
+ ```mermaid
168
+ graph TD
169
+ A[Start: Greenfield Project] --> B[analyst: project-brief.md]
170
+ B --> C[pm: prd.md]
171
+ C --> D[ux-expert: front-end-spec.md]
172
+ D --> D2{Generate v0 prompt?}
173
+ D2 -->|Yes| D3[ux-expert: create v0 prompt]
174
+ D2 -->|No| E[architect: fullstack-architecture.md]
175
+ D3 --> D4[User: generate UI in v0/Lovable]
176
+ D4 --> E
177
+ E --> F{Architecture suggests PRD changes?}
178
+ F -->|Yes| G[pm: update prd.md]
179
+ F -->|No| H[po: validate all artifacts]
180
+ G --> H
181
+ H --> I{PO finds issues?}
182
+ I -->|Yes| J[Return to relevant agent for fixes]
183
+ I -->|No| K[po: shard documents]
184
+ J --> H
185
+
186
+ K --> L[sm: create story]
187
+ L --> M{Review draft story?}
188
+ M -->|Yes| N[analyst/pm: review & approve story]
189
+ M -->|No| O[dev: implement story]
190
+ N --> O
191
+ O --> P{QA review?}
192
+ P -->|Yes| Q[qa: review implementation]
193
+ P -->|No| R{More stories?}
194
+ Q --> S{QA found issues?}
195
+ S -->|Yes| T[dev: address QA feedback]
196
+ S -->|No| R
197
+ T --> Q
198
+ R -->|Yes| L
199
+ R -->|No| U{Epic retrospective?}
200
+ U -->|Yes| V[po: epic retrospective]
201
+ U -->|No| W[Project Complete]
202
+ V --> W
203
+
204
+ B -.-> B1[Optional: brainstorming]
205
+ B -.-> B2[Optional: market research]
206
+ D -.-> D1[Optional: user research]
207
+ E -.-> E1[Optional: technical research]
208
+
209
+ style W fill:#90EE90
210
+ style K fill:#ADD8E6
211
+ style L fill:#ADD8E6
212
+ style O fill:#ADD8E6
213
+ style D3 fill:#E6E6FA
214
+ style D4 fill:#E6E6FA
215
+ style B fill:#FFE4B5
216
+ style C fill:#FFE4B5
217
+ style D fill:#FFE4B5
218
+ style E fill:#FFE4B5
219
+ style N fill:#F0E68C
220
+ style Q fill:#F0E68C
221
+ style V fill:#F0E68C
222
+ ```
223
+
224
+ decision_guidance:
225
+ when_to_use:
226
+ - Building production-ready applications
227
+ - Multiple team members will be involved
228
+ - Complex feature requirements
229
+ - Need comprehensive documentation
230
+ - Long-term maintenance expected
231
+ - Enterprise or customer-facing applications
232
+
233
+ handoff_prompts:
234
+ analyst_to_pm: 'Project brief is complete. Save it as docs/project-brief.md in your project, then create the PRD.'
235
+ pm_to_ux: 'PRD is ready. Save it as docs/prd.md in your project, then create the UI/UX specification.'
236
+ ux_to_architect: 'UI/UX spec complete. Save it as docs/front-end-spec.md in your project, then create the fullstack architecture.'
237
+ architect_review: 'Architecture complete. Save it as docs/fullstack-architecture.md. Do you suggest any changes to the PRD stories or need new stories added?'
238
+ architect_to_pm: 'Please update the PRD with the suggested story changes, then re-export the complete prd.md to docs/.'
239
+ updated_to_po: 'All documents ready in docs/ folder. Please validate all artifacts for consistency.'
240
+ po_issues: 'PO found issues with [document]. Please return to [agent] to fix and re-save the updated document.'
241
+ complete: 'All planning artifacts validated and saved in docs/ folder. Move to IDE environment to begin development.'