bmad-plus 0.12.1 → 0.12.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 (156) hide show
  1. package/CHANGELOG.md +612 -580
  2. package/README.md +90 -115
  3. package/osint-agent-package/agents/osint-investigator.md +12 -0
  4. package/osint-agent-package/skills/bmad-osint-investigate/osint/SKILL.md +491 -482
  5. package/osint-agent-package/skills/bmad-osint-investigate/osint/assets/dossier-template.md +126 -126
  6. package/osint-agent-package/skills/bmad-osint-investigate/osint/assets/lawful-basis-record.md +48 -48
  7. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/content-extraction.md +100 -100
  8. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/gdpr-osint.md +48 -48
  9. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/platforms.md +130 -130
  10. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/psychoprofile.md +69 -69
  11. package/osint-agent-package/skills/bmad-osint-investigate/osint/references/tools.md +281 -281
  12. package/osint-agent-package/skills/bmad-osint-investigate/osint/scripts/mcp-client.py +136 -136
  13. package/package.json +104 -91
  14. package/readme-international/README.de.md +596 -594
  15. package/readme-international/README.es.md +613 -611
  16. package/readme-international/README.fr.md +611 -609
  17. package/src/bmad-plus/agents/agent-shadow/SKILL.md +18 -0
  18. package/src/bmad-plus/data/role-triggers.yaml +52 -0
  19. package/src/bmad-plus/module.yaml +283 -283
  20. package/src/bmad-plus/packs/pack-animated/animated-website-agent.md +325 -325
  21. package/src/bmad-plus/packs/pack-animated/templates/animated-website-workflow.md +55 -55
  22. package/src/bmad-plus/packs/pack-backup/backup-agent.md +71 -71
  23. package/src/bmad-plus/packs/pack-backup/templates/backup-workflow.md +51 -51
  24. package/src/bmad-plus/packs/pack-dev-studio/README.md +162 -162
  25. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/analyst-agent.md +73 -73
  26. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/document-project.md +61 -61
  27. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/domain-research.md +95 -95
  28. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/market-research.md +95 -95
  29. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/prfaq.md +134 -134
  30. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/product-brief.md +80 -80
  31. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/tech-writer-agent.md +73 -73
  32. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/technical-research.md +95 -95
  33. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/architect-agent.md +73 -73
  34. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-architecture.md +73 -73
  35. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-epics-stories.md +92 -92
  36. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/generate-project-context.md +80 -80
  37. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/implementation-readiness.md +90 -90
  38. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01-init.md +153 -153
  39. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01b-continue.md +173 -173
  40. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-02-context.md +224 -224
  41. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-03-starter.md +329 -329
  42. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-04-decisions.md +318 -318
  43. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-05-patterns.md +359 -359
  44. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-06-structure.md +379 -379
  45. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-07-validation.md +361 -361
  46. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-08-complete.md +81 -81
  47. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/checkpoint-preview.md +67 -67
  48. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-01-gather-context.md +85 -85
  49. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-02-review.md +35 -35
  50. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-03-triage.md +49 -49
  51. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-04-present.md +131 -131
  52. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review.md +89 -89
  53. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/correct-course.md +300 -300
  54. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/create-story.md +428 -428
  55. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-agent.md +73 -73
  56. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story-checklist.md +80 -80
  57. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story.md +484 -484
  58. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/investigate.md +193 -193
  59. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/qa-e2e-tests.md +175 -175
  60. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/quick-dev.md +110 -110
  61. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/retrospective.md +1511 -1511
  62. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-planning.md +298 -298
  63. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-status.md +296 -296
  64. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-prd.md +29 -29
  65. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-ux-design.md +74 -74
  66. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/edit-prd.md +29 -29
  67. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/pm-agent.md +73 -73
  68. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/prd.md +89 -89
  69. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/ux-designer-agent.md +73 -73
  70. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/validate-prd.md +29 -29
  71. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/advanced-elicitation.md +141 -141
  72. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/adversarial-review.md +37 -37
  73. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/bmad-help.md +75 -75
  74. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/brainstorming.md +6 -6
  75. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/customize.md +110 -110
  76. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/distillator.md +176 -176
  77. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/edge-case-hunter.md +67 -67
  78. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-prose.md +86 -86
  79. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-structure.md +179 -179
  80. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/index-docs.md +66 -66
  81. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/party-mode.md +127 -127
  82. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/shard-doc.md +105 -105
  83. package/src/bmad-plus/packs/pack-dev-studio/dev-studio-orchestrator.md +120 -120
  84. package/src/bmad-plus/packs/pack-dev-studio/shared/architecture-decision-template.md +12 -12
  85. package/src/bmad-plus/packs/pack-dev-studio/shared/bwml-spec.md +328 -328
  86. package/src/bmad-plus/packs/pack-dev-studio/shared/module-help.csv +32 -32
  87. package/src/bmad-plus/packs/pack-dev-studio/upstream-sync.yaml +81 -81
  88. package/src/bmad-plus/packs/pack-seo/SKILL.md +171 -171
  89. package/src/bmad-plus/packs/pack-seo/checklist.md +140 -140
  90. package/src/bmad-plus/packs/pack-seo/pagespeed-playbook.md +320 -320
  91. package/src/bmad-plus/packs/pack-seo/ref/audit-schema.json +187 -187
  92. package/src/bmad-plus/packs/pack-seo/ref/cwv-thresholds.md +87 -87
  93. package/src/bmad-plus/packs/pack-seo/ref/eeat-criteria.md +123 -123
  94. package/src/bmad-plus/packs/pack-seo/ref/geo-signals.md +167 -167
  95. package/src/bmad-plus/packs/pack-seo/ref/hreflang-rules.md +153 -153
  96. package/src/bmad-plus/packs/pack-seo/ref/quality-gates.md +133 -133
  97. package/src/bmad-plus/packs/pack-seo/ref/schema-catalog.md +91 -91
  98. package/src/bmad-plus/packs/pack-seo/ref/schema-templates.json +356 -356
  99. package/src/bmad-plus/packs/pack-seo/requirements.txt +17 -0
  100. package/src/bmad-plus/packs/pack-seo/scripts/seo_apis.py +456 -0
  101. package/src/bmad-plus/packs/pack-seo/scripts/seo_crawl.py +359 -0
  102. package/src/bmad-plus/packs/pack-seo/scripts/seo_fetch.py +304 -0
  103. package/src/bmad-plus/packs/pack-seo/scripts/seo_parse.py +255 -0
  104. package/src/bmad-plus/packs/pack-seo/scripts/seo_report.py +410 -0
  105. package/src/bmad-plus/packs/pack-seo/scripts/seo_screenshot.py +202 -0
  106. package/src/bmad-plus/packs/pack-seo/seo-chief.md +294 -294
  107. package/src/bmad-plus/packs/pack-seo/seo-judge.md +241 -241
  108. package/src/bmad-plus/packs/pack-seo/seo-scout.md +171 -171
  109. package/src/bmad-plus/packs/pack-seo/templates/seo-audit-workflow.md +241 -241
  110. package/src/bmad-plus/packs/pack-shield/README.md +6 -6
  111. package/src/bmad-plus/packs/pack-shield/SKILL.md +2 -2
  112. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/csrd-agent.md +11 -11
  113. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/section508-agent.md +11 -11
  114. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/wcag-agent.md +11 -11
  115. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/eu-ai-act-agent.md +11 -11
  116. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/iso42001-agent.md +11 -11
  117. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/nist-ai-rmf-agent.md +11 -11
  118. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/cis-controls-agent.md +11 -11
  119. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/ism-agent.md +11 -11
  120. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/iso27001-agent.md +11 -11
  121. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nis2-agent.md +11 -11
  122. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-800-53-agent.md +11 -11
  123. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-csf-agent.md +11 -11
  124. package/src/bmad-plus/packs/pack-shield/categories/defense-export/cmmc-agent.md +11 -11
  125. package/src/bmad-plus/packs/pack-shield/categories/defense-export/ear-agent.md +11 -11
  126. package/src/bmad-plus/packs/pack-shield/categories/defense-export/itar-agent.md +11 -11
  127. package/src/bmad-plus/packs/pack-shield/categories/defense-export/tsa-agent.md +11 -11
  128. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/dora-agent.md +11 -11
  129. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/fedramp-agent.md +11 -11
  130. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/hipaa-agent.md +11 -11
  131. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/pci-dss-agent.md +11 -11
  132. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/soc2-agent.md +11 -11
  133. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/swift-csp-agent.md +11 -11
  134. package/src/bmad-plus/packs/pack-shield/shield-orchestrator.md +1 -1
  135. package/tools/build/check-counts.js +628 -0
  136. package/tools/build/generated-adapters/.codex/AGENTS.md +1 -1
  137. package/tools/build/generated-adapters/.cursor/rules/bmad-plus.mdc +1 -1
  138. package/tools/build/generated-adapters/.opencode/AGENTS.md +1 -1
  139. package/tools/build/generated-adapters/AGENTS.md +1 -1
  140. package/tools/build/generated-adapters/CLAUDE.md +1 -1
  141. package/tools/build/generated-adapters/CONVENTIONS.md +1 -1
  142. package/tools/build/generated-adapters/GEMINI.md +1 -1
  143. package/tools/cli/commands/autoconfig.js +470 -470
  144. package/tools/cli/commands/doctor.js +233 -233
  145. package/tools/cli/commands/install.js +598 -501
  146. package/tools/cli/commands/memory-journal-cmd.js +311 -311
  147. package/tools/cli/commands/memory.js +195 -195
  148. package/tools/cli/commands/scan.js +348 -348
  149. package/tools/cli/commands/uninstall.js +101 -101
  150. package/tools/cli/commands/update.js +134 -134
  151. package/tools/cli/i18n.js +845 -845
  152. package/tools/cli/lib/README-memory-journal.md +125 -125
  153. package/tools/cli/lib/ide-config.js +267 -259
  154. package/tools/cli/lib/python-provision.js +508 -508
  155. package/tools/cli/lib/stack-detect.js +102 -102
  156. package/tools/cli/lib/validate.js +50 -50
@@ -1,361 +1,361 @@
1
- # Step 7: Architecture Validation & Completion
2
-
3
- ## MANDATORY EXECUTION RULES (READ FIRST):
4
-
5
- - 🛑 NEVER generate content without user input
6
-
7
- - 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
8
- - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
9
- - ✅ ALWAYS treat this as collaborative discovery between architectural peers
10
- - 📋 YOU ARE A FACILITATOR, not a content generator
11
- - 💬 FOCUS on validating architectural coherence and completeness
12
- - ✅ VALIDATE all requirements are covered by architectural decisions
13
- - ⚠️ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed
14
- - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
15
-
16
- ## EXECUTION PROTOCOLS:
17
-
18
- - 🎯 Show your analysis before taking any action
19
- - ✅ Run comprehensive validation checks on the complete architecture
20
- - ⚠️ Present A/P/C menu after generating validation results
21
- - 💾 ONLY save when user chooses C (Continue)
22
- - 📖 Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5, 6, 7]` before loading next step
23
- - 🚫 FORBIDDEN to load next step until C is selected
24
-
25
- ## COLLABORATION MENUS (A/P/C):
26
-
27
- This step will generate content and present choices:
28
-
29
- - **A (Advanced Elicitation)**: Use discovery protocols to address complex architectural issues found during validation
30
- - **P (Party Mode)**: Bring multiple perspectives to resolve validation concerns
31
- - **C (Continue)**: Save the validation results and complete the architecture
32
-
33
- ## PROTOCOL INTEGRATION:
34
-
35
- - When 'A' selected: Invoke the `bmad-advanced-elicitation` skill
36
- - When 'P' selected: Invoke the `bmad-party-mode` skill
37
- - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed
38
- - User accepts/rejects protocol changes before proceeding
39
-
40
- ## CONTEXT BOUNDARIES:
41
-
42
- - Complete architecture document with all sections is available
43
- - All architectural decisions, patterns, and structure are defined
44
- - Focus on validation, gap analysis, and coherence checking
45
- - Prepare for handoff to implementation phase
46
-
47
- ## YOUR TASK:
48
-
49
- Validate the complete architecture for coherence, completeness, and readiness to guide AI agents through consistent implementation.
50
-
51
- ## VALIDATION SEQUENCE:
52
-
53
- ### 1. Coherence Validation
54
-
55
- Check that all architectural decisions work together:
56
-
57
- **Decision Compatibility:**
58
-
59
- - Do all technology choices work together without conflicts?
60
- - Are all versions compatible with each other?
61
- - Do patterns align with technology choices?
62
- - Are there any contradictory decisions?
63
-
64
- **Pattern Consistency:**
65
-
66
- - Do implementation patterns support the architectural decisions?
67
- - Are naming conventions consistent across all areas?
68
- - Do structure patterns align with technology stack?
69
- - Are communication patterns coherent?
70
-
71
- **Structure Alignment:**
72
-
73
- - Does the project structure support all architectural decisions?
74
- - Are boundaries properly defined and respected?
75
- - Does the structure enable the chosen patterns?
76
- - Are integration points properly structured?
77
-
78
- ### 2. Requirements Coverage Validation
79
-
80
- Verify all project requirements are architecturally supported:
81
-
82
- **From Epics (if available):**
83
-
84
- - Does every epic have architectural support?
85
- - Are all user stories implementable with these decisions?
86
- - Are cross-epic dependencies handled architecturally?
87
- - Are there any gaps in epic coverage?
88
-
89
- **From FR Categories (if no epics):**
90
-
91
- - Does every functional requirement have architectural support?
92
- - Are all FR categories fully covered by architectural decisions?
93
- - Are cross-cutting FRs properly addressed?
94
- - Are there any missing architectural capabilities?
95
-
96
- **Non-Functional Requirements:**
97
-
98
- - Are performance requirements addressed architecturally?
99
- - Are security requirements fully covered?
100
- - Are scalability considerations properly handled?
101
- - Are compliance requirements architecturally supported?
102
-
103
- ### 3. Implementation Readiness Validation
104
-
105
- Assess if AI agents can implement consistently:
106
-
107
- **Decision Completeness:**
108
-
109
- - Are all critical decisions documented with versions?
110
- - Are implementation patterns comprehensive enough?
111
- - Are consistency rules clear and enforceable?
112
- - Are examples provided for all major patterns?
113
-
114
- **Structure Completeness:**
115
-
116
- - Is the project structure complete and specific?
117
- - Are all files and directories defined?
118
- - Are integration points clearly specified?
119
- - Are component boundaries well-defined?
120
-
121
- **Pattern Completeness:**
122
-
123
- - Are all potential conflict points addressed?
124
- - Are naming conventions comprehensive?
125
- - Are communication patterns fully specified?
126
- - Are process patterns (error handling, etc.) complete?
127
-
128
- ### 4. Gap Analysis
129
-
130
- Identify and document any missing elements:
131
-
132
- **Critical Gaps:**
133
-
134
- - Missing architectural decisions that block implementation
135
- - Incomplete patterns that could cause conflicts
136
- - Missing structural elements needed for development
137
- - Undefined integration points
138
-
139
- **Important Gaps:**
140
-
141
- - Areas that need more detailed specification
142
- - Patterns that could be more comprehensive
143
- - Documentation that would help implementation
144
- - Examples that would clarify complex decisions
145
-
146
- **Nice-to-Have Gaps:**
147
-
148
- - Additional patterns that would be helpful
149
- - Supplementary documentation
150
- - Tooling recommendations
151
- - Development workflow optimizations
152
-
153
- ### 5. Address Validation Issues
154
-
155
- For any issues found, facilitate resolution:
156
-
157
- **Critical Issues:**
158
- "I found some issues that need to be addressed before implementation:
159
-
160
- {{critical_issue_description}}
161
-
162
- These could cause implementation problems. How would you like to resolve this?"
163
-
164
- **Important Issues:**
165
- "I noticed a few areas that could be improved:
166
-
167
- {{important_issue_description}}
168
-
169
- These aren't blocking, but addressing them would make implementation smoother. Should we work on these?"
170
-
171
- **Minor Issues:**
172
- "Here are some minor suggestions for improvement:
173
-
174
- {{minor_issue_description}}
175
-
176
- These are optional refinements. Would you like to address any of these?"
177
-
178
- ### 6. Generate Validation Content
179
-
180
- Prepare the content to append to the document:
181
-
182
- #### Content Structure:
183
-
184
- ```markdown
185
- ## Architecture Validation Results
186
-
187
- ### Coherence Validation ✅
188
-
189
- **Decision Compatibility:**
190
- {{assessment_of_how_all_decisions_work_together}}
191
-
192
- **Pattern Consistency:**
193
- {{verification_that_patterns_support_decisions}}
194
-
195
- **Structure Alignment:**
196
- {{confirmation_that_structure_supports_architecture}}
197
-
198
- ### Requirements Coverage Validation ✅
199
-
200
- **Epic/Feature Coverage:**
201
- {{verification_that_all_epics_or_features_are_supported}}
202
-
203
- **Functional Requirements Coverage:**
204
- {{confirmation_that_all_FRs_are_architecturally_supported}}
205
-
206
- **Non-Functional Requirements Coverage:**
207
- {{verification_that_NFRs_are_addressed}}
208
-
209
- ### Implementation Readiness Validation ✅
210
-
211
- **Decision Completeness:**
212
- {{assessment_of_decision_documentation_completeness}}
213
-
214
- **Structure Completeness:**
215
- {{evaluation_of_project_structure_completeness}}
216
-
217
- **Pattern Completeness:**
218
- {{verification_of_implementation_patterns_completeness}}
219
-
220
- ### Gap Analysis Results
221
-
222
- {{gap_analysis_findings_with_priority_levels}}
223
-
224
- ### Validation Issues Addressed
225
-
226
- {{description_of_any_issues_found_and_resolutions}}
227
-
228
- ### Architecture Completeness Checklist
229
-
230
- Mark each item `[x]` only if validation confirms it; leave `[ ]` if it is missing, partial, or unverified. Any unchecked item must be reflected in the Gap Analysis above and in the Overall Status below.
231
-
232
- **Requirements Analysis**
233
-
234
- - [ ] Project context thoroughly analyzed
235
- - [ ] Scale and complexity assessed
236
- - [ ] Technical constraints identified
237
- - [ ] Cross-cutting concerns mapped
238
-
239
- **Architectural Decisions**
240
-
241
- - [ ] Critical decisions documented with versions
242
- - [ ] Technology stack fully specified
243
- - [ ] Integration patterns defined
244
- - [ ] Performance considerations addressed
245
-
246
- **Implementation Patterns**
247
-
248
- - [ ] Naming conventions established
249
- - [ ] Structure patterns defined
250
- - [ ] Communication patterns specified
251
- - [ ] Process patterns documented
252
-
253
- **Project Structure**
254
-
255
- - [ ] Complete directory structure defined
256
- - [ ] Component boundaries established
257
- - [ ] Integration points mapped
258
- - [ ] Requirements to structure mapping complete
259
-
260
- ### Architecture Readiness Assessment
261
-
262
- **Overall Status:** {{READY FOR IMPLEMENTATION | READY WITH MINOR GAPS | NOT READY}} (choose READY FOR IMPLEMENTATION only when all 16 checklist items are `[x]` and no Critical Gaps remain; choose NOT READY when any Critical Gap is open or any Requirements Analysis or Architectural Decisions item is unchecked; otherwise READY WITH MINOR GAPS)
263
-
264
- **Confidence Level:** {{high/medium/low}} based on validation results
265
-
266
- **Key Strengths:**
267
- {{list_of_architecture_strengths}}
268
-
269
- **Areas for Future Enhancement:**
270
- {{areas_that_could_be_improved_later}}
271
-
272
- ### Implementation Handoff
273
-
274
- **AI Agent Guidelines:**
275
-
276
- - Follow all architectural decisions exactly as documented
277
- - Use implementation patterns consistently across all components
278
- - Respect project structure and boundaries
279
- - Refer to this document for all architectural questions
280
-
281
- **First Implementation Priority:**
282
- {{starter_template_command_or_first_architectural_step}}
283
- ```
284
-
285
- ### 7. Present Content and Menu
286
-
287
- Show the validation results and present choices:
288
-
289
- "I've completed a comprehensive validation of your architecture.
290
-
291
- **Validation Summary:**
292
-
293
- - ✅ Coherence: All decisions work together
294
- - ✅ Coverage: All requirements are supported
295
- - ✅ Readiness: AI agents can implement consistently
296
-
297
- **Here's what I'll add to complete the architecture document:**
298
-
299
- [Show the complete markdown content from step 6]
300
-
301
- **What would you like to do?**
302
- [A] Advanced Elicitation - Address any complex architectural concerns
303
- [P] Party Mode - Review validation from different implementation perspectives
304
- [C] Continue - Complete the architecture and finish workflow
305
-
306
- ### 8. Handle Menu Selection
307
-
308
- #### If 'A' (Advanced Elicitation):
309
-
310
- - Invoke the `bmad-advanced-elicitation` skill with validation issues
311
- - Process enhanced solutions for complex concerns
312
- - Ask user: "Accept these architectural improvements? (y/n)"
313
- - If yes: Update content, then return to A/P/C menu
314
- - If no: Keep original content, then return to A/P/C menu
315
-
316
- #### If 'P' (Party Mode):
317
-
318
- - Invoke the `bmad-party-mode` skill with validation context
319
- - Process collaborative insights on implementation readiness
320
- - Ask user: "Accept these changes to the validation results? (y/n)"
321
- - If yes: Update content, then return to A/P/C menu
322
- - If no: Keep original content, then return to A/P/C menu
323
-
324
- #### If 'C' (Continue):
325
-
326
- - Append the final content to `{planning_artifacts}/architecture.md`
327
- - Update frontmatter: `stepsCompleted: [1, 2, 3, 4, 5, 6, 7]`
328
- - Load `./step-08-complete.md`
329
-
330
- ## APPEND TO DOCUMENT:
331
-
332
- When user selects 'C', append the content directly to the document using the structure from step 6.
333
-
334
- ## SUCCESS METRICS:
335
-
336
- ✅ All architectural decisions validated for coherence
337
- ✅ Complete requirements coverage verified
338
- ✅ Implementation readiness confirmed
339
- ✅ All gaps identified and addressed
340
- ✅ Comprehensive validation checklist completed
341
- ✅ A/P/C menu presented and handled correctly
342
- ✅ Content properly appended to document when C selected
343
-
344
- ## FAILURE MODES:
345
-
346
- ❌ Skipping validation of decision compatibility
347
- ❌ Not verifying all requirements are architecturally supported
348
- ❌ Missing potential implementation conflicts
349
- ❌ Not addressing gaps found during validation
350
- ❌ Providing incomplete validation checklist
351
- ❌ Not presenting A/P/C menu after content generation
352
-
353
- ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
354
- ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
355
- ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
356
-
357
- ## NEXT STEP:
358
-
359
- After user selects 'C' and content is saved to document, load `./step-08-complete.md` to complete the workflow and provide implementation guidance.
360
-
361
- Remember: Do NOT proceed to step-08 until user explicitly selects 'C' from the A/P/C menu and content is saved!
1
+ # Step 7: Architecture Validation & Completion
2
+
3
+ ## MANDATORY EXECUTION RULES (READ FIRST):
4
+
5
+ - 🛑 NEVER generate content without user input
6
+
7
+ - 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
8
+ - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
9
+ - ✅ ALWAYS treat this as collaborative discovery between architectural peers
10
+ - 📋 YOU ARE A FACILITATOR, not a content generator
11
+ - 💬 FOCUS on validating architectural coherence and completeness
12
+ - ✅ VALIDATE all requirements are covered by architectural decisions
13
+ - ⚠️ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed
14
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
15
+
16
+ ## EXECUTION PROTOCOLS:
17
+
18
+ - 🎯 Show your analysis before taking any action
19
+ - ✅ Run comprehensive validation checks on the complete architecture
20
+ - ⚠️ Present A/P/C menu after generating validation results
21
+ - 💾 ONLY save when user chooses C (Continue)
22
+ - 📖 Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5, 6, 7]` before loading next step
23
+ - 🚫 FORBIDDEN to load next step until C is selected
24
+
25
+ ## COLLABORATION MENUS (A/P/C):
26
+
27
+ This step will generate content and present choices:
28
+
29
+ - **A (Advanced Elicitation)**: Use discovery protocols to address complex architectural issues found during validation
30
+ - **P (Party Mode)**: Bring multiple perspectives to resolve validation concerns
31
+ - **C (Continue)**: Save the validation results and complete the architecture
32
+
33
+ ## PROTOCOL INTEGRATION:
34
+
35
+ - When 'A' selected: Invoke the `bmad-advanced-elicitation` skill
36
+ - When 'P' selected: Invoke the `bmad-party-mode` skill
37
+ - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed
38
+ - User accepts/rejects protocol changes before proceeding
39
+
40
+ ## CONTEXT BOUNDARIES:
41
+
42
+ - Complete architecture document with all sections is available
43
+ - All architectural decisions, patterns, and structure are defined
44
+ - Focus on validation, gap analysis, and coherence checking
45
+ - Prepare for handoff to implementation phase
46
+
47
+ ## YOUR TASK:
48
+
49
+ Validate the complete architecture for coherence, completeness, and readiness to guide AI agents through consistent implementation.
50
+
51
+ ## VALIDATION SEQUENCE:
52
+
53
+ ### 1. Coherence Validation
54
+
55
+ Check that all architectural decisions work together:
56
+
57
+ **Decision Compatibility:**
58
+
59
+ - Do all technology choices work together without conflicts?
60
+ - Are all versions compatible with each other?
61
+ - Do patterns align with technology choices?
62
+ - Are there any contradictory decisions?
63
+
64
+ **Pattern Consistency:**
65
+
66
+ - Do implementation patterns support the architectural decisions?
67
+ - Are naming conventions consistent across all areas?
68
+ - Do structure patterns align with technology stack?
69
+ - Are communication patterns coherent?
70
+
71
+ **Structure Alignment:**
72
+
73
+ - Does the project structure support all architectural decisions?
74
+ - Are boundaries properly defined and respected?
75
+ - Does the structure enable the chosen patterns?
76
+ - Are integration points properly structured?
77
+
78
+ ### 2. Requirements Coverage Validation
79
+
80
+ Verify all project requirements are architecturally supported:
81
+
82
+ **From Epics (if available):**
83
+
84
+ - Does every epic have architectural support?
85
+ - Are all user stories implementable with these decisions?
86
+ - Are cross-epic dependencies handled architecturally?
87
+ - Are there any gaps in epic coverage?
88
+
89
+ **From FR Categories (if no epics):**
90
+
91
+ - Does every functional requirement have architectural support?
92
+ - Are all FR categories fully covered by architectural decisions?
93
+ - Are cross-cutting FRs properly addressed?
94
+ - Are there any missing architectural capabilities?
95
+
96
+ **Non-Functional Requirements:**
97
+
98
+ - Are performance requirements addressed architecturally?
99
+ - Are security requirements fully covered?
100
+ - Are scalability considerations properly handled?
101
+ - Are compliance requirements architecturally supported?
102
+
103
+ ### 3. Implementation Readiness Validation
104
+
105
+ Assess if AI agents can implement consistently:
106
+
107
+ **Decision Completeness:**
108
+
109
+ - Are all critical decisions documented with versions?
110
+ - Are implementation patterns comprehensive enough?
111
+ - Are consistency rules clear and enforceable?
112
+ - Are examples provided for all major patterns?
113
+
114
+ **Structure Completeness:**
115
+
116
+ - Is the project structure complete and specific?
117
+ - Are all files and directories defined?
118
+ - Are integration points clearly specified?
119
+ - Are component boundaries well-defined?
120
+
121
+ **Pattern Completeness:**
122
+
123
+ - Are all potential conflict points addressed?
124
+ - Are naming conventions comprehensive?
125
+ - Are communication patterns fully specified?
126
+ - Are process patterns (error handling, etc.) complete?
127
+
128
+ ### 4. Gap Analysis
129
+
130
+ Identify and document any missing elements:
131
+
132
+ **Critical Gaps:**
133
+
134
+ - Missing architectural decisions that block implementation
135
+ - Incomplete patterns that could cause conflicts
136
+ - Missing structural elements needed for development
137
+ - Undefined integration points
138
+
139
+ **Important Gaps:**
140
+
141
+ - Areas that need more detailed specification
142
+ - Patterns that could be more comprehensive
143
+ - Documentation that would help implementation
144
+ - Examples that would clarify complex decisions
145
+
146
+ **Nice-to-Have Gaps:**
147
+
148
+ - Additional patterns that would be helpful
149
+ - Supplementary documentation
150
+ - Tooling recommendations
151
+ - Development workflow optimizations
152
+
153
+ ### 5. Address Validation Issues
154
+
155
+ For any issues found, facilitate resolution:
156
+
157
+ **Critical Issues:**
158
+ "I found some issues that need to be addressed before implementation:
159
+
160
+ {{critical_issue_description}}
161
+
162
+ These could cause implementation problems. How would you like to resolve this?"
163
+
164
+ **Important Issues:**
165
+ "I noticed a few areas that could be improved:
166
+
167
+ {{important_issue_description}}
168
+
169
+ These aren't blocking, but addressing them would make implementation smoother. Should we work on these?"
170
+
171
+ **Minor Issues:**
172
+ "Here are some minor suggestions for improvement:
173
+
174
+ {{minor_issue_description}}
175
+
176
+ These are optional refinements. Would you like to address any of these?"
177
+
178
+ ### 6. Generate Validation Content
179
+
180
+ Prepare the content to append to the document:
181
+
182
+ #### Content Structure:
183
+
184
+ ```markdown
185
+ ## Architecture Validation Results
186
+
187
+ ### Coherence Validation ✅
188
+
189
+ **Decision Compatibility:**
190
+ {{assessment_of_how_all_decisions_work_together}}
191
+
192
+ **Pattern Consistency:**
193
+ {{verification_that_patterns_support_decisions}}
194
+
195
+ **Structure Alignment:**
196
+ {{confirmation_that_structure_supports_architecture}}
197
+
198
+ ### Requirements Coverage Validation ✅
199
+
200
+ **Epic/Feature Coverage:**
201
+ {{verification_that_all_epics_or_features_are_supported}}
202
+
203
+ **Functional Requirements Coverage:**
204
+ {{confirmation_that_all_FRs_are_architecturally_supported}}
205
+
206
+ **Non-Functional Requirements Coverage:**
207
+ {{verification_that_NFRs_are_addressed}}
208
+
209
+ ### Implementation Readiness Validation ✅
210
+
211
+ **Decision Completeness:**
212
+ {{assessment_of_decision_documentation_completeness}}
213
+
214
+ **Structure Completeness:**
215
+ {{evaluation_of_project_structure_completeness}}
216
+
217
+ **Pattern Completeness:**
218
+ {{verification_of_implementation_patterns_completeness}}
219
+
220
+ ### Gap Analysis Results
221
+
222
+ {{gap_analysis_findings_with_priority_levels}}
223
+
224
+ ### Validation Issues Addressed
225
+
226
+ {{description_of_any_issues_found_and_resolutions}}
227
+
228
+ ### Architecture Completeness Checklist
229
+
230
+ Mark each item `[x]` only if validation confirms it; leave `[ ]` if it is missing, partial, or unverified. Any unchecked item must be reflected in the Gap Analysis above and in the Overall Status below.
231
+
232
+ **Requirements Analysis**
233
+
234
+ - [ ] Project context thoroughly analyzed
235
+ - [ ] Scale and complexity assessed
236
+ - [ ] Technical constraints identified
237
+ - [ ] Cross-cutting concerns mapped
238
+
239
+ **Architectural Decisions**
240
+
241
+ - [ ] Critical decisions documented with versions
242
+ - [ ] Technology stack fully specified
243
+ - [ ] Integration patterns defined
244
+ - [ ] Performance considerations addressed
245
+
246
+ **Implementation Patterns**
247
+
248
+ - [ ] Naming conventions established
249
+ - [ ] Structure patterns defined
250
+ - [ ] Communication patterns specified
251
+ - [ ] Process patterns documented
252
+
253
+ **Project Structure**
254
+
255
+ - [ ] Complete directory structure defined
256
+ - [ ] Component boundaries established
257
+ - [ ] Integration points mapped
258
+ - [ ] Requirements to structure mapping complete
259
+
260
+ ### Architecture Readiness Assessment
261
+
262
+ **Overall Status:** {{READY FOR IMPLEMENTATION | READY WITH MINOR GAPS | NOT READY}} (choose READY FOR IMPLEMENTATION only when all 16 checklist items are `[x]` and no Critical Gaps remain; choose NOT READY when any Critical Gap is open or any Requirements Analysis or Architectural Decisions item is unchecked; otherwise READY WITH MINOR GAPS)
263
+
264
+ **Confidence Level:** {{high/medium/low}} based on validation results
265
+
266
+ **Key Strengths:**
267
+ {{list_of_architecture_strengths}}
268
+
269
+ **Areas for Future Enhancement:**
270
+ {{areas_that_could_be_improved_later}}
271
+
272
+ ### Implementation Handoff
273
+
274
+ **AI Agent Guidelines:**
275
+
276
+ - Follow all architectural decisions exactly as documented
277
+ - Use implementation patterns consistently across all components
278
+ - Respect project structure and boundaries
279
+ - Refer to this document for all architectural questions
280
+
281
+ **First Implementation Priority:**
282
+ {{starter_template_command_or_first_architectural_step}}
283
+ ```
284
+
285
+ ### 7. Present Content and Menu
286
+
287
+ Show the validation results and present choices:
288
+
289
+ "I've completed a comprehensive validation of your architecture.
290
+
291
+ **Validation Summary:**
292
+
293
+ - ✅ Coherence: All decisions work together
294
+ - ✅ Coverage: All requirements are supported
295
+ - ✅ Readiness: AI agents can implement consistently
296
+
297
+ **Here's what I'll add to complete the architecture document:**
298
+
299
+ [Show the complete markdown content from step 6]
300
+
301
+ **What would you like to do?**
302
+ [A] Advanced Elicitation - Address any complex architectural concerns
303
+ [P] Party Mode - Review validation from different implementation perspectives
304
+ [C] Continue - Complete the architecture and finish workflow
305
+
306
+ ### 8. Handle Menu Selection
307
+
308
+ #### If 'A' (Advanced Elicitation):
309
+
310
+ - Invoke the `bmad-advanced-elicitation` skill with validation issues
311
+ - Process enhanced solutions for complex concerns
312
+ - Ask user: "Accept these architectural improvements? (y/n)"
313
+ - If yes: Update content, then return to A/P/C menu
314
+ - If no: Keep original content, then return to A/P/C menu
315
+
316
+ #### If 'P' (Party Mode):
317
+
318
+ - Invoke the `bmad-party-mode` skill with validation context
319
+ - Process collaborative insights on implementation readiness
320
+ - Ask user: "Accept these changes to the validation results? (y/n)"
321
+ - If yes: Update content, then return to A/P/C menu
322
+ - If no: Keep original content, then return to A/P/C menu
323
+
324
+ #### If 'C' (Continue):
325
+
326
+ - Append the final content to `{planning_artifacts}/architecture.md`
327
+ - Update frontmatter: `stepsCompleted: [1, 2, 3, 4, 5, 6, 7]`
328
+ - Load `./step-08-complete.md`
329
+
330
+ ## APPEND TO DOCUMENT:
331
+
332
+ When user selects 'C', append the content directly to the document using the structure from step 6.
333
+
334
+ ## SUCCESS METRICS:
335
+
336
+ ✅ All architectural decisions validated for coherence
337
+ ✅ Complete requirements coverage verified
338
+ ✅ Implementation readiness confirmed
339
+ ✅ All gaps identified and addressed
340
+ ✅ Comprehensive validation checklist completed
341
+ ✅ A/P/C menu presented and handled correctly
342
+ ✅ Content properly appended to document when C selected
343
+
344
+ ## FAILURE MODES:
345
+
346
+ ❌ Skipping validation of decision compatibility
347
+ ❌ Not verifying all requirements are architecturally supported
348
+ ❌ Missing potential implementation conflicts
349
+ ❌ Not addressing gaps found during validation
350
+ ❌ Providing incomplete validation checklist
351
+ ❌ Not presenting A/P/C menu after content generation
352
+
353
+ ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
354
+ ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
355
+ ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
356
+
357
+ ## NEXT STEP:
358
+
359
+ After user selects 'C' and content is saved to document, load `./step-08-complete.md` to complete the workflow and provide implementation guidance.
360
+
361
+ Remember: Do NOT proceed to step-08 until user explicitly selects 'C' from the A/P/C menu and content is saved!