bmad-method 6.0.0-alpha.4 → 6.0.0-alpha.5

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 (162) hide show
  1. package/.claude/commands/bmad/bmm/agents/architect.md +0 -1
  2. package/.claude/commands/bmad/bmm/agents/sm.md +1 -1
  3. package/.claude/commands/bmad/bmm/agents/tech-writer.md +82 -0
  4. package/.claude/commands/bmad/bmm/workflows/README.md +1 -1
  5. package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +15 -0
  6. package/.claude/commands/bmad/core/workflows/README.md +10 -0
  7. package/.claude/settings.local.json +4 -8
  8. package/CHANGELOG.md +305 -0
  9. package/README.md +88 -39
  10. package/bmad/_cfg/agent-manifest.csv +2 -1
  11. package/bmad/_cfg/agents/bmm-tech-writer.customize.yaml +42 -0
  12. package/bmad/_cfg/files-manifest.csv +40 -62
  13. package/bmad/_cfg/ides/claude-code.yaml +1 -1
  14. package/bmad/_cfg/manifest.yaml +4 -3
  15. package/bmad/_cfg/task-manifest.csv +4 -1
  16. package/bmad/_cfg/tool-manifest.csv +1 -0
  17. package/bmad/_cfg/workflow-manifest.csv +3 -1
  18. package/bmad/bmb/config.yaml +2 -2
  19. package/bmad/bmb/workflows/audit-workflow/instructions.md +1 -1
  20. package/bmad/bmm/README.md +79 -120
  21. package/bmad/bmm/README.md.bak +169 -0
  22. package/bmad/bmm/agents/analyst.md.bak +67 -0
  23. package/bmad/bmm/agents/architect.md +0 -1
  24. package/bmad/bmm/agents/architect.md.bak +73 -0
  25. package/bmad/bmm/agents/dev.md.bak +69 -0
  26. package/bmad/bmm/agents/pm.md.bak +76 -0
  27. package/bmad/bmm/agents/sm.md +1 -1
  28. package/bmad/bmm/agents/sm.md.bak +85 -0
  29. package/bmad/bmm/agents/tea.md.bak +72 -0
  30. package/bmad/bmm/agents/tech-writer.md +82 -0
  31. package/bmad/bmm/agents/ux-designer.md.bak +71 -0
  32. package/bmad/bmm/config.yaml +2 -2
  33. package/bmad/bmm/docs/README.md +235 -0
  34. package/bmad/bmm/docs/agents-guide.md +1057 -0
  35. package/bmad/bmm/docs/brownfield-guide.md +471 -972
  36. package/bmad/bmm/docs/enterprise-agentic-development.md +680 -0
  37. package/bmad/bmm/docs/faq.md +589 -0
  38. package/bmad/bmm/docs/glossary.md +321 -0
  39. package/bmad/bmm/docs/party-mode.md +224 -0
  40. package/bmad/bmm/docs/quick-spec-flow.md +64 -57
  41. package/bmad/bmm/docs/quick-start.md +72 -47
  42. package/bmad/bmm/docs/scale-adaptive-system.md +332 -778
  43. package/bmad/bmm/docs/troubleshooting.md +680 -0
  44. package/bmad/bmm/{workflows/3-solutioning/architecture/README.md → docs/workflow-architecture-reference.md} +130 -77
  45. package/bmad/bmm/{workflows/document-project/README.md → docs/workflow-document-project-reference.md} +45 -2
  46. package/bmad/bmm/docs/workflows-analysis.md +670 -0
  47. package/bmad/bmm/docs/workflows-implementation.md +1758 -0
  48. package/bmad/bmm/docs/workflows-planning.md +1086 -0
  49. package/bmad/bmm/docs/workflows-solutioning.md +726 -0
  50. package/bmad/bmm/tasks/daily-standup.xml +1 -1
  51. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml.bak +60 -0
  52. package/bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
  53. package/bmad/bmm/workflows/techdoc/documentation-standards.md +2 -1
  54. package/bmad/bmm/workflows/techdoc/documentation-standards.md.bak +238 -0
  55. package/bmad/bmm/workflows/workflow-status/init/instructions.md +623 -242
  56. package/bmad/bmm/workflows/workflow-status/init/workflow.yaml.bak +27 -0
  57. package/bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
  58. package/bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
  59. package/{src/modules/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml → bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml} +33 -31
  60. package/{src/modules/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
  61. package/{src/modules/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml → bmad/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml} +18 -18
  62. package/bmad/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
  63. package/bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
  64. package/bmad/cis/agents/brainstorming-coach.md.bak +62 -0
  65. package/bmad/cis/agents/creative-problem-solver.md.bak +62 -0
  66. package/bmad/cis/agents/design-thinking-coach.md.bak +62 -0
  67. package/bmad/cis/agents/innovation-strategist.md.bak +62 -0
  68. package/bmad/cis/agents/storyteller.md.bak +59 -0
  69. package/bmad/cis/config.yaml +2 -2
  70. package/bmad/core/agents/bmad-master.md.bak +15 -13
  71. package/bmad/core/config.yaml +2 -2
  72. package/bmad/core/tasks/workflow.xml +1 -11
  73. package/package.json +1 -1
  74. package/src/core/tasks/workflow.xml +1 -11
  75. package/src/modules/bmb/workflows/audit-workflow/instructions.md +1 -1
  76. package/src/modules/bmm/README.md +1 -1
  77. package/src/modules/bmm/agents/architect.agent.yaml +0 -4
  78. package/src/modules/bmm/agents/game-dev.agent.yaml +8 -12
  79. package/src/modules/bmm/agents/sm.agent.yaml +1 -1
  80. package/src/modules/bmm/agents/{paige.agent.yaml → tech-writer.agent.yaml} +4 -4
  81. package/src/modules/bmm/docs/README.md +9 -9
  82. package/src/modules/bmm/docs/agents-guide.md +46 -98
  83. package/src/modules/bmm/docs/brownfield-guide.md +211 -90
  84. package/src/modules/bmm/docs/enterprise-agentic-development.md +380 -740
  85. package/src/modules/bmm/docs/faq.md +10 -10
  86. package/src/modules/bmm/docs/glossary.md +36 -42
  87. package/src/modules/bmm/docs/party-mode.md +110 -1122
  88. package/src/modules/bmm/docs/quick-spec-flow.md +33 -33
  89. package/src/modules/bmm/docs/quick-start.md +29 -29
  90. package/src/modules/bmm/docs/scale-adaptive-system.md +303 -453
  91. package/src/modules/bmm/docs/troubleshooting.md +1 -1
  92. package/src/modules/bmm/docs/workflows-implementation.md +20 -21
  93. package/src/modules/bmm/docs/workflows-solutioning.md +1 -1
  94. package/src/modules/bmm/tasks/daily-standup.xml +1 -1
  95. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1 -19
  96. package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +10 -9
  97. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +23 -34
  98. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +105 -331
  99. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +23 -11
  100. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +23 -38
  101. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +2 -2
  102. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +38 -16
  103. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1 -19
  104. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +35 -32
  105. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +2 -2
  106. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +7 -18
  107. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +1 -18
  108. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +6 -6
  109. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +1 -1
  110. package/src/modules/bmm/workflows/techdoc/documentation-standards.md +1 -1
  111. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +623 -242
  112. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
  113. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
  114. package/{bmad/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml → src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml} +33 -31
  115. package/{bmad/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
  116. package/{bmad/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml → src/modules/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml} +18 -18
  117. package/src/modules/bmm/workflows/workflow-status/paths/{greenfield-level-1.yaml → quick-flow-greenfield.yaml} +16 -18
  118. package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
  119. package/bmad/bmm/tasks/retrospective.xml +0 -104
  120. package/bmad/bmm/testarch/README.md +0 -311
  121. package/bmad/bmm/workflows/1-analysis/brainstorm-project/README.md +0 -113
  122. package/bmad/bmm/workflows/1-analysis/product-brief/README.md +0 -180
  123. package/bmad/bmm/workflows/1-analysis/research/README.md +0 -454
  124. package/bmad/bmm/workflows/2-plan-workflows/README.md +0 -258
  125. package/bmad/bmm/workflows/3-solutioning/README.md +0 -1
  126. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/README.md +0 -177
  127. package/bmad/bmm/workflows/4-implementation/README.md +0 -221
  128. package/bmad/bmm/workflows/4-implementation/code-review/README.md +0 -69
  129. package/bmad/bmm/workflows/4-implementation/correct-course/README.md +0 -73
  130. package/bmad/bmm/workflows/4-implementation/create-story/README.md +0 -146
  131. package/bmad/bmm/workflows/4-implementation/dev-story/README.md +0 -206
  132. package/bmad/bmm/workflows/4-implementation/epic-tech-context/README.md +0 -195
  133. package/bmad/bmm/workflows/4-implementation/retrospective/README.md +0 -77
  134. package/bmad/bmm/workflows/4-implementation/sprint-planning/README.md +0 -156
  135. package/bmad/bmm/workflows/4-implementation/story-context/README.md +0 -234
  136. package/bmad/bmm/workflows/README.md +0 -256
  137. package/bmad/bmm/workflows/document-project/templates/README.md +0 -38
  138. package/bmad/bmm/workflows/testarch/README.md +0 -26
  139. package/bmad/bmm/workflows/testarch/atdd/README.md +0 -672
  140. package/bmad/bmm/workflows/testarch/automate/README.md +0 -869
  141. package/bmad/bmm/workflows/testarch/ci/README.md +0 -493
  142. package/bmad/bmm/workflows/testarch/framework/README.md +0 -340
  143. package/bmad/bmm/workflows/testarch/nfr-assess/README.md +0 -469
  144. package/bmad/bmm/workflows/testarch/test-design/README.md +0 -493
  145. package/bmad/bmm/workflows/testarch/test-review/README.md +0 -775
  146. package/bmad/bmm/workflows/testarch/trace/README.md +0 -802
  147. package/bmad/bmm/workflows/workflow-status/README.md +0 -260
  148. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
  149. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
  150. package/bmad/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
  151. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
  152. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
  153. package/bmad/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
  154. package/src/modules/bmm/docs/brownfield-guide.md.backup +0 -1324
  155. package/src/modules/bmm/docs/workflows-testing.md +0 -1572
  156. package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +0 -54
  157. package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
  158. package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +0 -88
  159. package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +0 -45
  160. package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +0 -73
  161. package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
  162. /package/bmad/bmm/agents/{paige.md → paige.md.bak} +0 -0
@@ -0,0 +1,726 @@
1
+ # BMM Solutioning Workflows (Phase 3)
2
+
3
+ **Reading Time:** ~8 minutes
4
+
5
+ ## Overview
6
+
7
+ Phase 3 (Solutioning) workflows translate **what** to build (from Planning) into **how** to build it (technical design). This phase is **required for Levels 3-4** and **optional for Level 2** projects.
8
+
9
+ **Key principle:** Prevent agent conflicts by making architectural decisions explicit and documented before implementation begins.
10
+
11
+ ## Quick Reference
12
+
13
+ | Workflow | Project Levels | Duration | Purpose |
14
+ | -------------------------- | -------------- | --------- | ------------------------------------------- |
15
+ | **architecture** | 2-4 | 2-6 hours | Technical architecture and design decisions |
16
+ | **solutioning-gate-check** | 3-4 | 15-30 min | Validate planning/solutioning completeness |
17
+
18
+ **When to Skip Solutioning:**
19
+
20
+ - **Level 0-1**: Simple changes don't need architecture → Skip to Phase 4 (Implementation)
21
+ - **Level 2**: Optional - use if technically complex, skip if straightforward
22
+
23
+ **When Solutioning is Required:**
24
+
25
+ - **Level 3-4**: Multi-epic, multi-agent projects → Architecture prevents conflicts
26
+
27
+ ---
28
+
29
+ ## Understanding the Solutioning Phase
30
+
31
+ ### Why Solutioning Matters
32
+
33
+ **Problem Without Solutioning:**
34
+
35
+ 1. DEV agent implements Epic 1 using REST API
36
+ 2. DEV agent implements Epic 2 using GraphQL
37
+ 3. **Conflict**: Inconsistent API design, integration nightmare
38
+
39
+ **Solution With Solutioning:**
40
+
41
+ 1. **architecture** workflow decides: "Use GraphQL for all APIs"
42
+ 2. All DEV agents follow architecture decisions
43
+ 3. **Result**: Consistent implementation, no conflicts
44
+
45
+ ### Solutioning vs Planning
46
+
47
+ | Aspect | Planning (Phase 2) | Solutioning (Phase 3) |
48
+ | -------- | ------------------ | ------------------------ |
49
+ | Question | What and Why? | How? |
50
+ | Output | Requirements | Technical Design |
51
+ | Agent | PM | Architect |
52
+ | Audience | Stakeholders | Developers |
53
+ | Document | PRD/GDD | Architecture + Tech Spec |
54
+ | Level | Business logic | Implementation detail |
55
+
56
+ ### Scale-Adaptive Solutioning
57
+
58
+ **Level 0-1 (Skip Solutioning):**
59
+
60
+ - Planning: Quick Spec (tech-spec workflow)
61
+ - Solutioning: **None**
62
+ - Implementation: dev-story directly
63
+
64
+ **Level 2 (Optional Solutioning):**
65
+
66
+ - Planning: Lightweight PRD
67
+ - Solutioning: **Optional** architecture
68
+ - Implementation: dev-story with or without architecture
69
+
70
+ **Level 3-4 (Required Solutioning):**
71
+
72
+ - Planning: Standard/Comprehensive PRD
73
+ - Solutioning: **Required** architecture + epic-tech-context
74
+ - Gate Check: **Required** solutioning-gate-check
75
+ - Implementation: dev-story guided by architecture
76
+
77
+ ---
78
+
79
+ ## architecture
80
+
81
+ ### Purpose
82
+
83
+ Collaborative architectural decision facilitation that produces a decision-focused architecture document optimized for preventing agent conflicts. Replaces template-driven architecture with intelligent, adaptive conversation.
84
+
85
+ **Agent:** Architect
86
+ **Phase:** 3 (Solutioning)
87
+ **Project Levels:** 2-4
88
+ **Required:** Level 3-4, Optional Level 2
89
+ **Typical Duration:**
90
+
91
+ - Level 2: 1-2 hours (Simple architecture)
92
+ - Level 3: 2-4 hours (Standard architecture)
93
+ - Level 4: 4-8 hours (Complex architecture with ADRs)
94
+
95
+ ### When to Use
96
+
97
+ - Multi-epic projects (Level 3-4)
98
+ - Cross-cutting technical concerns
99
+ - Multiple agents will implement different parts
100
+ - Integration complexity exists
101
+ - Technology choices need alignment
102
+
103
+ **When to Skip:**
104
+
105
+ - Level 0-1 (simple changes)
106
+ - Level 2 with straightforward tech stack
107
+ - Single epic with clear technical approach
108
+
109
+ ### Adaptive Conversation Approach
110
+
111
+ **This is NOT a template filler.** The architecture workflow:
112
+
113
+ 1. **Discovers** your technical needs through conversation
114
+ 2. **Proposes** architectural options with trade-offs
115
+ 3. **Documents** decisions that prevent agent conflicts
116
+ 4. **Focuses** on decision points, not exhaustive documentation
117
+
118
+ ### Process Overview
119
+
120
+ **Phase 1: Context Discovery (Steps 1-3)**
121
+
122
+ - Load PRD/GDD for requirements
123
+ - Understand project level and complexity
124
+ - Identify technical constraints
125
+ - Determine existing architecture (if brownfield)
126
+
127
+ **Phase 2: Architecture Definition (Steps 4-10)**
128
+
129
+ - System architecture (monolith, microservices, etc.)
130
+ - Data architecture (database, state management)
131
+ - API design (REST, GraphQL, gRPC)
132
+ - Frontend architecture (if applicable)
133
+ - Integration patterns
134
+ - Security architecture
135
+ - Deployment architecture
136
+
137
+ **Phase 3: Decision Documentation (Steps 11-13)**
138
+
139
+ - Architecture Decision Records (ADRs)
140
+ - Trade-off analysis
141
+ - Technology selections with rationale
142
+ - Non-negotiable standards
143
+
144
+ **Phase 4: Implementation Guidance (Step 14)**
145
+
146
+ - Epic-specific technical notes
147
+ - Directory structure
148
+ - Coding standards
149
+ - Testing strategy
150
+
151
+ ### Inputs
152
+
153
+ Required:
154
+
155
+ - **PRD.md** or **GDD.md** (from Phase 2)
156
+ - **epics.md** (epic breakdown)
157
+
158
+ Optional:
159
+
160
+ - Existing architecture documentation (brownfield)
161
+ - Technical constraints document
162
+ - Infrastructure requirements
163
+ - Security requirements
164
+
165
+ ### Outputs
166
+
167
+ **Primary Output:** `architecture-{project-name}-{date}.md`
168
+
169
+ **Document Structure:**
170
+
171
+ **1. Architecture Overview**
172
+
173
+ - System context
174
+ - Key principles
175
+ - Architectural style
176
+
177
+ **2. System Architecture**
178
+
179
+ - High-level system diagram
180
+ - Component interactions
181
+ - Communication patterns
182
+
183
+ **3. Data Architecture**
184
+
185
+ - Database design approach
186
+ - State management
187
+ - Caching strategy
188
+ - Data flow
189
+
190
+ **4. API Architecture**
191
+
192
+ - API style (REST/GraphQL/gRPC)
193
+ - Authentication/authorization
194
+ - Versioning strategy
195
+ - Error handling patterns
196
+
197
+ **5. Frontend Architecture** (if applicable)
198
+
199
+ - Framework selection
200
+ - State management
201
+ - Component architecture
202
+ - Routing approach
203
+
204
+ **6. Integration Architecture**
205
+
206
+ - Third-party integrations
207
+ - Message queuing
208
+ - Event-driven patterns
209
+ - API gateways
210
+
211
+ **7. Security Architecture**
212
+
213
+ - Authentication/authorization
214
+ - Data protection
215
+ - Security boundaries
216
+ - Compliance requirements
217
+
218
+ **8. Deployment Architecture**
219
+
220
+ - Deployment model
221
+ - CI/CD pipeline
222
+ - Environment strategy
223
+ - Monitoring and observability
224
+
225
+ **9. Architecture Decision Records (ADRs)**
226
+
227
+ - Key decisions with context
228
+ - Options considered
229
+ - Trade-off analysis
230
+ - Rationale for choices
231
+
232
+ **10. Epic-Specific Guidance**
233
+
234
+ - Technical notes per epic
235
+ - Implementation priorities
236
+ - Dependency sequencing
237
+
238
+ **11. Standards and Conventions**
239
+
240
+ - Directory structure
241
+ - Naming conventions
242
+ - Code organization
243
+ - Testing requirements
244
+
245
+ ### Architecture Decision Records (ADRs)
246
+
247
+ **Purpose:** Document **why** decisions were made, not just what was decided.
248
+
249
+ **ADR Template:**
250
+
251
+ ```markdown
252
+ ## ADR-001: Use GraphQL for All APIs
253
+
254
+ **Status:** Accepted
255
+ **Date:** 2025-11-02
256
+ **Context:** PRD requires flexible querying across multiple epics
257
+
258
+ **Decision:** Use GraphQL for all client-server communication
259
+
260
+ **Options Considered:**
261
+
262
+ 1. REST API - Familiar, well-understood, but requires multiple endpoints
263
+ 2. GraphQL - Flexible querying, single endpoint, learning curve
264
+ 3. gRPC - High performance, but poor browser support
265
+
266
+ **Rationale:**
267
+
268
+ - PRD requires flexible data fetching (Epic 1, Epic 3)
269
+ - Mobile app needs bandwidth optimization (Epic 2)
270
+ - Team has GraphQL experience from previous project
271
+ - Allows frontend flexibility without backend changes
272
+
273
+ **Consequences:**
274
+
275
+ - Positive: Flexible querying, reduced API versioning
276
+ - Negative: Caching complexity, N+1 query risk
277
+ - Mitigation: Use DataLoader for batching
278
+
279
+ **Implications for Epics:**
280
+
281
+ - Epic 1: User Management → GraphQL mutations
282
+ - Epic 2: Mobile App → Optimized queries
283
+ - Epic 3: Admin Dashboard → Complex nested queries
284
+ ```
285
+
286
+ ### Example: Level 3 Architecture for E-Commerce Platform
287
+
288
+ **System Architecture:**
289
+
290
+ - Monolith (early stage, < 50K users)
291
+ - PostgreSQL database
292
+ - Redis for caching and sessions
293
+ - Next.js for frontend
294
+ - Deployed on Vercel + Railway
295
+
296
+ **Key ADRs:**
297
+
298
+ 1. **ADR-001**: Use Next.js (vs React + Express)
299
+ - Rationale: SEO critical, SSR needed, unified codebase
300
+ 2. **ADR-002**: Use GraphQL (vs REST)
301
+ - Rationale: Flexible querying for dashboard, mobile optimization
302
+ 3. **ADR-003**: Use Stripe (vs PayPal + Stripe)
303
+ - Rationale: Simpler integration, lower fees, better UX
304
+
305
+ **Epic Guidance:**
306
+
307
+ - **Epic 1 (Auth)**: NextAuth.js with PostgreSQL adapter
308
+ - **Epic 2 (Products)**: GraphQL with DataLoader for categories
309
+ - **Epic 3 (Cart)**: Redis for session-based cart (no DB writes)
310
+ - **Epic 4 (Checkout)**: Stripe webhooks for payment confirmation
311
+
312
+ **Standards:**
313
+
314
+ ```
315
+ Directory Structure:
316
+ /pages - Next.js routes
317
+ /components - Reusable UI components
318
+ /lib - Business logic
319
+ /graphql - GraphQL schema and resolvers
320
+ /db - Prisma models and migrations
321
+ /services - Third-party integrations
322
+ /tests - Test files mirror /lib
323
+ ```
324
+
325
+ ### Related Workflows
326
+
327
+ - **prd/gdd** (Phase 2) - Requirements input
328
+ - **solutioning-gate-check** (Phase 3) - Validate completeness
329
+ - **tech-spec** (Phase 3) - Epic-level specifications (optional)
330
+ - **sprint-planning** (Phase 4) - Implementation tracking
331
+
332
+ ---
333
+
334
+ ## solutioning-gate-check
335
+
336
+ ### Purpose
337
+
338
+ Systematically validate that all planning and solutioning phases are complete and properly aligned before transitioning to Phase 4 implementation. Ensures PRD, architecture, and stories are cohesive with no gaps or contradictions.
339
+
340
+ **Agent:** SM (Scrum Master)
341
+ **Phase:** 3 (Solutioning)
342
+ **Project Levels:** 3-4
343
+ **Required:** Level 3-4 only
344
+ **Typical Duration:** 15-30 minutes
345
+
346
+ ### When to Use
347
+
348
+ **Always run before starting Phase 4** for Level 3-4 projects.
349
+
350
+ **Trigger Points:**
351
+
352
+ - After architecture workflow completes
353
+ - Before sprint-planning workflow
354
+ - When stakeholders request readiness check
355
+ - Before kicking off implementation
356
+
357
+ **Skip if:**
358
+
359
+ - Level 0-2 (no solutioning phase)
360
+ - Exploratory prototype (no formal planning)
361
+
362
+ ### Purpose of Gate Check
363
+
364
+ **Prevents Common Issues:**
365
+
366
+ - ❌ Architecture doesn't address all epics
367
+ - ❌ Stories conflict with architecture decisions
368
+ - ❌ Requirements ambiguous or contradictory
369
+ - ❌ Missing critical dependencies
370
+ - ❌ Unclear success criteria
371
+
372
+ **Ensures:**
373
+
374
+ - ✅ PRD → Architecture → Stories alignment
375
+ - ✅ All epics have clear technical approach
376
+ - ✅ No contradictions or gaps
377
+ - ✅ Team ready to implement
378
+ - ✅ Stakeholders aligned
379
+
380
+ ### Process Overview
381
+
382
+ **Phase 1: Document Loading (Step 1)**
383
+
384
+ - Load PRD/GDD
385
+ - Load architecture document
386
+ - Load epic files
387
+ - Load story files (if created)
388
+
389
+ **Phase 2: Completeness Check (Steps 2-4)**
390
+
391
+ - **PRD Completeness**: All required sections present
392
+ - **Architecture Completeness**: All technical areas addressed
393
+ - **Epic Completeness**: All epics from PRD have stories
394
+
395
+ **Phase 3: Alignment Check (Steps 5-7)**
396
+
397
+ - **PRD ↔ Architecture**: Architecture addresses all requirements
398
+ - **Architecture ↔ Epics**: Epics align with architecture decisions
399
+ - **Cross-Epic**: No contradictions between epics
400
+
401
+ **Phase 4: Quality Check (Steps 8-10)**
402
+
403
+ - **Acceptance Criteria**: All stories have clear AC
404
+ - **Dependencies**: Dependencies identified and sequenced
405
+ - **Risks**: High-risk items have mitigation plans
406
+
407
+ **Phase 5: Reporting (Step 11)**
408
+
409
+ - Generate gate check report
410
+ - List gaps and blockers
411
+ - Provide recommendations
412
+ - Issue PASS/CONCERNS/FAIL decision
413
+
414
+ ### Gate Check Criteria
415
+
416
+ **PRD/GDD Completeness:**
417
+
418
+ - [ ] Problem statement clear and evidence-based
419
+ - [ ] Success metrics defined
420
+ - [ ] User personas identified
421
+ - [ ] Feature requirements complete
422
+ - [ ] All epics defined with objectives
423
+ - [ ] Non-functional requirements (NFRs) specified
424
+ - [ ] Risks and assumptions documented
425
+
426
+ **Architecture Completeness:**
427
+
428
+ - [ ] System architecture defined
429
+ - [ ] Data architecture specified
430
+ - [ ] API architecture decided
431
+ - [ ] Key ADRs documented
432
+ - [ ] Security architecture addressed
433
+ - [ ] Epic-specific guidance provided
434
+ - [ ] Standards and conventions defined
435
+
436
+ **Epic/Story Completeness:**
437
+
438
+ - [ ] All PRD features mapped to stories
439
+ - [ ] Stories have acceptance criteria
440
+ - [ ] Stories prioritized (P0/P1/P2/P3)
441
+ - [ ] Dependencies identified
442
+ - [ ] Story sequencing logical
443
+
444
+ **Alignment Checks:**
445
+
446
+ - [ ] Architecture addresses all PRD requirements
447
+ - [ ] Stories align with architecture decisions
448
+ - [ ] No contradictions between epics
449
+ - [ ] NFRs have technical approach
450
+ - [ ] Integration points clear
451
+
452
+ **Quality Checks:**
453
+
454
+ - [ ] Acceptance criteria testable
455
+ - [ ] Stories appropriately sized (<5 days)
456
+ - [ ] High-risk items have mitigation
457
+ - [ ] Success metrics measurable
458
+
459
+ ### Gate Decision Logic
460
+
461
+ **PASS** ✅
462
+
463
+ - All critical criteria met (PRD, Architecture, Epic completeness)
464
+ - Minor gaps acceptable with documented plan
465
+ - **Action**: Proceed to Phase 4 (Implementation)
466
+
467
+ **CONCERNS** ⚠️
468
+
469
+ - Some criteria not met but not blockers
470
+ - Gaps identified with clear resolution path
471
+ - Risks documented with mitigation
472
+ - **Action**: Proceed with caution, address gaps in parallel
473
+
474
+ **FAIL** ❌
475
+
476
+ - Critical gaps or contradictions
477
+ - Architecture missing key decisions
478
+ - Stories conflict with PRD/architecture
479
+ - **Action**: BLOCK Phase 4, resolve issues first
480
+
481
+ ### Inputs
482
+
483
+ Required:
484
+
485
+ - PRD.md or GDD.md
486
+ - architecture.md
487
+ - epics.md
488
+ - Epic files (epic-1-_.md, epic-2-_.md, etc.)
489
+
490
+ Optional:
491
+
492
+ - Story files (if already created)
493
+ - Tech spec documents
494
+
495
+ ### Outputs
496
+
497
+ **Primary Output:** `solutioning-gate-check-{date}.md`
498
+
499
+ **Document Structure:**
500
+
501
+ 1. Executive Summary (PASS/CONCERNS/FAIL)
502
+ 2. Completeness Assessment
503
+ - PRD/GDD Score
504
+ - Architecture Score
505
+ - Epic/Story Score
506
+ 3. Alignment Assessment
507
+ - PRD ↔ Architecture alignment
508
+ - Architecture ↔ Epic alignment
509
+ - Cross-epic consistency
510
+ 4. Quality Assessment
511
+ - Story quality
512
+ - Dependency clarity
513
+ - Risk mitigation
514
+ 5. Gaps and Recommendations
515
+ - Critical gaps (blockers)
516
+ - Minor gaps (address in parallel)
517
+ - Recommendations for remediation
518
+ 6. Gate Decision (PASS/CONCERNS/FAIL)
519
+ 7. Next Steps
520
+
521
+ ### Example: Gate Check for E-Commerce Platform
522
+
523
+ **Result:** CONCERNS ⚠️
524
+
525
+ **Completeness:**
526
+
527
+ - ✅ PRD complete (18/18 criteria)
528
+ - ⚠️ Architecture missing security section (15/18 criteria)
529
+ - ✅ Epics complete (24/24 criteria)
530
+
531
+ **Alignment:**
532
+
533
+ - ✅ PRD ↔ Architecture aligned
534
+ - ⚠️ Epic 4 (Checkout) has payment gateway undefined in architecture
535
+ - ✅ No cross-epic contradictions
536
+
537
+ **Quality:**
538
+
539
+ - ✅ Stories have acceptance criteria
540
+ - ⚠️ Epic 2, Story 3 is too large (10 day estimate)
541
+ - ✅ Dependencies identified
542
+
543
+ **Gaps Identified:**
544
+
545
+ 1. **Critical**: Architecture missing security architecture section
546
+ - **Impact**: Epic 1 (Auth) and Epic 4 (Checkout) lack security guidance
547
+ - **Recommendation**: Complete security architecture (2 hours)
548
+
549
+ 2. **High**: Payment gateway not selected
550
+ - **Impact**: Epic 4 (Checkout) cannot proceed
551
+ - **Recommendation**: Add ADR for payment gateway selection (1 hour)
552
+
553
+ 3. **Medium**: Epic 2, Story 3 too large
554
+ - **Impact**: Risk of story scope creep
555
+ - **Recommendation**: Split into 2 stories (30 min)
556
+
557
+ **Gate Decision:** CONCERNS ⚠️
558
+
559
+ - **Rationale**: Critical and high gaps block Epic 1 and Epic 4
560
+ - **Action**: Resolve gaps #1 and #2 before starting implementation
561
+ - **Timeline**: Address in 3 hours, then re-run gate check
562
+
563
+ **Next Steps:**
564
+
565
+ 1. Complete security architecture section
566
+ 2. Document payment gateway ADR
567
+ 3. Split Epic 2, Story 3
568
+ 4. Re-run solutioning-gate-check
569
+ 5. If PASS → Proceed to sprint-planning
570
+
571
+ ### Related Workflows
572
+
573
+ - **architecture** (Phase 3) - Must complete before gate check
574
+ - **prd/gdd** (Phase 2) - Input to gate check
575
+ - **sprint-planning** (Phase 4) - Runs after PASS decision
576
+
577
+ ---
578
+
579
+ ## Integration with Phase 2 (Planning) and Phase 4 (Implementation)
580
+
581
+ ### Planning → Solutioning Flow
582
+
583
+ **Level 0-1:**
584
+
585
+ ```
586
+ Planning (tech-spec Quick Spec)
587
+ → Skip Solutioning
588
+ → Implementation (dev-story)
589
+ ```
590
+
591
+ **Level 2:**
592
+
593
+ ```
594
+ Planning (prd Lightweight)
595
+ → Optional: architecture (if complex)
596
+ → Implementation (sprint-planning → dev-story)
597
+ ```
598
+
599
+ **Level 3-4:**
600
+
601
+ ```
602
+ Planning (prd Standard/Comprehensive)
603
+ → architecture (Required)
604
+ → solutioning-gate-check (Required)
605
+ → Implementation (sprint-planning → dev-story)
606
+ ```
607
+
608
+ ### Solutioning → Implementation Handoff
609
+
610
+ **Documents Produced:**
611
+
612
+ 1. `architecture.md` → Guides all dev-story workflows
613
+ 2. `ADRs` (in architecture) → Referenced by agents during implementation
614
+ 3. `solutioning-gate-check.md` → Confirms readiness
615
+
616
+ **How Implementation Uses Solutioning:**
617
+
618
+ - **sprint-planning**: Loads architecture for epic sequencing
619
+ - **dev-story**: References architecture decisions and ADRs
620
+ - **code-review**: Validates code follows architectural standards
621
+
622
+ ---
623
+
624
+ ## Best Practices for Phase 3
625
+
626
+ ### 1. Make Decisions Explicit
627
+
628
+ Don't leave technology choices implicit. Document decisions with rationale so future agents understand context.
629
+
630
+ ### 2. Focus on Agent Conflicts
631
+
632
+ Architecture's primary job is preventing conflicting implementations by different agents. Focus on cross-cutting concerns.
633
+
634
+ ### 3. Use ADRs for Key Decisions
635
+
636
+ Every significant technology choice should have an ADR explaining the "why", not just the "what".
637
+
638
+ ### 4. Keep It Practical
639
+
640
+ Don't over-architect Level 2 projects. Simple projects need simple architecture.
641
+
642
+ ### 5. Run Gate Check Before Implementation
643
+
644
+ Catching alignment issues in solutioning is 10× faster than discovering them mid-implementation.
645
+
646
+ ### 6. Iterate Architecture
647
+
648
+ Architecture documents are living. Update them as you learn during implementation.
649
+
650
+ ---
651
+
652
+ ## Common Anti-Patterns
653
+
654
+ ### ❌ Skipping Architecture for Level 3-4
655
+
656
+ "Architecture slows us down, let's just start coding."
657
+ → **Result**: Agent conflicts, inconsistent design, rework
658
+
659
+ ### ❌ Over-Architecting Level 2
660
+
661
+ "Let me design this simple feature like a distributed system."
662
+ → **Result**: Wasted time, over-engineering
663
+
664
+ ### ❌ Template-Driven Architecture
665
+
666
+ "Fill out every section of this architecture template."
667
+ → **Result**: Documentation theater, no real decisions made
668
+
669
+ ### ❌ Skipping Gate Check
670
+
671
+ "PRD and architecture look good enough, let's start."
672
+ → **Result**: Gaps discovered mid-sprint, wasted implementation time
673
+
674
+ ### ✅ Correct Approach
675
+
676
+ - Use architecture for Level 3-4 (required)
677
+ - Keep Level 2 architecture simple (if used)
678
+ - Focus on decisions, not documentation volume
679
+ - Always run gate check before implementation
680
+
681
+ ---
682
+
683
+ ## Decision Guide: When to Use Solutioning Workflows
684
+
685
+ ### Level 0-1 Projects
686
+
687
+ - **Planning**: tech-spec (Quick Spec)
688
+ - **Solutioning**: **Skip entirely**
689
+ - **Implementation**: dev-story directly
690
+
691
+ ### Level 2 Projects (Simple)
692
+
693
+ - **Planning**: prd (Lightweight)
694
+ - **Solutioning**: **Skip** if straightforward tech
695
+ - **Implementation**: sprint-planning → dev-story
696
+
697
+ ### Level 2 Projects (Technically Complex)
698
+
699
+ - **Planning**: prd (Lightweight)
700
+ - **Solutioning**: architecture (simplified)
701
+ - **Gate Check**: Optional
702
+ - **Implementation**: sprint-planning → dev-story
703
+
704
+ ### Level 3-4 Projects
705
+
706
+ - **Planning**: prd/gdd (Standard/Comprehensive)
707
+ - **Solutioning**: architecture (comprehensive) → **Required**
708
+ - **Gate Check**: solutioning-gate-check → **Required**
709
+ - **Implementation**: sprint-planning → epic-tech-context → dev-story
710
+
711
+ ---
712
+
713
+ ## Summary
714
+
715
+ Phase 3 Solutioning workflows bridge planning and implementation:
716
+
717
+ | Workflow | Purpose | When Required |
718
+ | -------------------------- | ------------------------------------- | ---------------------------------------- |
719
+ | **architecture** | Make technical decisions explicit | Level 3-4 (required), Level 2 (optional) |
720
+ | **solutioning-gate-check** | Validate readiness for implementation | Level 3-4 only |
721
+
722
+ **Key Takeaway:** Solutioning prevents agent conflicts in multi-epic projects by documenting architectural decisions before implementation begins.
723
+
724
+ **Next Phase:** Implementation (Phase 4) - Sprint-based story development
725
+
726
+ See: [workflows-implementation.md](./workflows-implementation.md)