bmad-plus 0.12.0 → 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 (160) hide show
  1. package/CHANGELOG.md +612 -554
  2. package/README.md +557 -577
  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 -589
  15. package/readme-international/README.es.md +613 -606
  16. package/readme-international/README.fr.md +611 -604
  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-memory/shared/memory-protocol.md +14 -0
  89. package/src/bmad-plus/packs/pack-seo/SKILL.md +171 -171
  90. package/src/bmad-plus/packs/pack-seo/checklist.md +140 -140
  91. package/src/bmad-plus/packs/pack-seo/pagespeed-playbook.md +320 -320
  92. package/src/bmad-plus/packs/pack-seo/ref/audit-schema.json +187 -187
  93. package/src/bmad-plus/packs/pack-seo/ref/cwv-thresholds.md +87 -87
  94. package/src/bmad-plus/packs/pack-seo/ref/eeat-criteria.md +123 -123
  95. package/src/bmad-plus/packs/pack-seo/ref/geo-signals.md +167 -167
  96. package/src/bmad-plus/packs/pack-seo/ref/hreflang-rules.md +153 -153
  97. package/src/bmad-plus/packs/pack-seo/ref/quality-gates.md +133 -133
  98. package/src/bmad-plus/packs/pack-seo/ref/schema-catalog.md +91 -91
  99. package/src/bmad-plus/packs/pack-seo/ref/schema-templates.json +356 -356
  100. package/src/bmad-plus/packs/pack-seo/requirements.txt +17 -0
  101. package/src/bmad-plus/packs/pack-seo/scripts/seo_apis.py +456 -0
  102. package/src/bmad-plus/packs/pack-seo/scripts/seo_crawl.py +359 -0
  103. package/src/bmad-plus/packs/pack-seo/scripts/seo_fetch.py +304 -0
  104. package/src/bmad-plus/packs/pack-seo/scripts/seo_parse.py +255 -0
  105. package/src/bmad-plus/packs/pack-seo/scripts/seo_report.py +410 -0
  106. package/src/bmad-plus/packs/pack-seo/scripts/seo_screenshot.py +202 -0
  107. package/src/bmad-plus/packs/pack-seo/seo-chief.md +294 -294
  108. package/src/bmad-plus/packs/pack-seo/seo-judge.md +241 -241
  109. package/src/bmad-plus/packs/pack-seo/seo-scout.md +171 -171
  110. package/src/bmad-plus/packs/pack-seo/templates/seo-audit-workflow.md +241 -241
  111. package/src/bmad-plus/packs/pack-shield/README.md +6 -6
  112. package/src/bmad-plus/packs/pack-shield/SKILL.md +2 -2
  113. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/csrd-agent.md +11 -11
  114. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/section508-agent.md +11 -11
  115. package/src/bmad-plus/packs/pack-shield/categories/accessibility-esg/wcag-agent.md +11 -11
  116. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/eu-ai-act-agent.md +11 -11
  117. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/iso42001-agent.md +11 -11
  118. package/src/bmad-plus/packs/pack-shield/categories/ai-governance/nist-ai-rmf-agent.md +11 -11
  119. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/cis-controls-agent.md +11 -11
  120. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/ism-agent.md +11 -11
  121. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/iso27001-agent.md +11 -11
  122. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nis2-agent.md +11 -11
  123. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-800-53-agent.md +11 -11
  124. package/src/bmad-plus/packs/pack-shield/categories/cybersecurity/nist-csf-agent.md +11 -11
  125. package/src/bmad-plus/packs/pack-shield/categories/defense-export/cmmc-agent.md +11 -11
  126. package/src/bmad-plus/packs/pack-shield/categories/defense-export/ear-agent.md +11 -11
  127. package/src/bmad-plus/packs/pack-shield/categories/defense-export/itar-agent.md +11 -11
  128. package/src/bmad-plus/packs/pack-shield/categories/defense-export/tsa-agent.md +11 -11
  129. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/dora-agent.md +11 -11
  130. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/fedramp-agent.md +11 -11
  131. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/hipaa-agent.md +11 -11
  132. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/pci-dss-agent.md +11 -11
  133. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/soc2-agent.md +11 -11
  134. package/src/bmad-plus/packs/pack-shield/categories/industry-compliance/swift-csp-agent.md +11 -11
  135. package/src/bmad-plus/packs/pack-shield/shield-orchestrator.md +1 -1
  136. package/tools/build/check-counts.js +628 -0
  137. package/tools/build/generated-adapters/.codex/AGENTS.md +1 -1
  138. package/tools/build/generated-adapters/.cursor/rules/bmad-plus.mdc +1 -1
  139. package/tools/build/generated-adapters/.opencode/AGENTS.md +1 -1
  140. package/tools/build/generated-adapters/AGENTS.md +1 -1
  141. package/tools/build/generated-adapters/CLAUDE.md +1 -1
  142. package/tools/build/generated-adapters/CONVENTIONS.md +1 -1
  143. package/tools/build/generated-adapters/GEMINI.md +1 -1
  144. package/tools/cli/commands/autoconfig.js +470 -472
  145. package/tools/cli/commands/doctor.js +233 -233
  146. package/tools/cli/commands/install.js +598 -495
  147. package/tools/cli/commands/memory-journal-cmd.js +311 -311
  148. package/tools/cli/commands/memory.js +195 -195
  149. package/tools/cli/commands/scan.js +348 -364
  150. package/tools/cli/commands/uninstall.js +101 -101
  151. package/tools/cli/commands/update.js +134 -134
  152. package/tools/cli/i18n.js +845 -845
  153. package/tools/cli/lib/README-memory-journal.md +125 -125
  154. package/tools/cli/lib/ide-config.js +267 -259
  155. package/tools/cli/lib/memory-init.js +204 -113
  156. package/tools/cli/lib/packs.js +209 -209
  157. package/tools/cli/lib/path-hash.js +39 -0
  158. package/tools/cli/lib/python-provision.js +508 -508
  159. package/tools/cli/lib/stack-detect.js +102 -102
  160. package/tools/cli/lib/validate.js +50 -50
@@ -1,224 +1,224 @@
1
- # Step 2: Project Context Analysis
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 understanding project scope and requirements for architecture
12
- - 🎯 ANALYZE loaded documents, don't assume or generate requirements
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
- - ⚠️ Present A/P/C menu after generating project context analysis
20
- - 💾 ONLY save when user chooses C (Continue)
21
- - 📖 Update frontmatter `stepsCompleted: [1, 2]` before loading next step
22
- - 🚫 FORBIDDEN to load next step until C is selected
23
-
24
- ## COLLABORATION MENUS (A/P/C):
25
-
26
- This step will generate content and present choices:
27
-
28
- - **A (Advanced Elicitation)**: Use discovery protocols to develop deeper insights about project context and architectural implications
29
- - **P (Party Mode)**: Bring multiple perspectives to analyze project requirements from different architectural angles
30
- - **C (Continue)**: Save the content to the document and proceed to next step
31
-
32
- ## PROTOCOL INTEGRATION:
33
-
34
- - When 'A' selected: Invoke the `bmad-advanced-elicitation` skill
35
- - When 'P' selected: Invoke the `bmad-party-mode` skill
36
- - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed
37
- - User accepts/rejects protocol changes before proceeding
38
-
39
- ## CONTEXT BOUNDARIES:
40
-
41
- - Current document and frontmatter from step 1 are available
42
- - Input documents already loaded are in memory (PRD, epics, UX spec, etc.)
43
- - Focus on architectural implications of requirements
44
- - No technology decisions yet - pure analysis phase
45
-
46
- ## YOUR TASK:
47
-
48
- Fully read and Analyze the loaded project documents to understand architectural scope, requirements, and constraints before beginning decision making.
49
-
50
- ## CONTEXT ANALYSIS SEQUENCE:
51
-
52
- ### 1. Review Project Requirements
53
-
54
- **From PRD Analysis:**
55
-
56
- - Extract and analyze Functional Requirements (FRs)
57
- - Identify Non-Functional Requirements (NFRs) like performance, security, compliance
58
- - Note any technical constraints or dependencies mentioned
59
- - Count and categorize requirements to understand project scale
60
-
61
- **From Epics/Stories (if available):**
62
-
63
- - Map epic structure and user stories to architectural components
64
- - Extract acceptance criteria for technical implications
65
- - Identify cross-cutting concerns that span multiple epics
66
- - Estimate story complexity for architectural planning
67
-
68
- **From UX Design (if available):**
69
-
70
- - Extract architectural implications from UX requirements:
71
- - Component complexity (simple forms vs rich interactions)
72
- - Animation/transition requirements
73
- - Real-time update needs (live data, collaborative features)
74
- - Platform-specific UI requirements
75
- - Accessibility standards (WCAG compliance level)
76
- - Responsive design breakpoints
77
- - Offline capability requirements
78
- - Performance expectations (load times, interaction responsiveness)
79
-
80
- ### 2. Project Scale Assessment
81
-
82
- Calculate and present project complexity:
83
-
84
- **Complexity Indicators:**
85
-
86
- - Real-time features requirements
87
- - Multi-tenancy needs
88
- - Regulatory compliance requirements
89
- - Integration complexity
90
- - User interaction complexity
91
- - Data complexity and volume
92
-
93
- ### 3. Reflect Understanding
94
-
95
- Present your analysis back to user for validation:
96
-
97
- "I'm reviewing your project documentation for {{project_name}}.
98
-
99
- {if_epics_loaded}I see {{epic_count}} epics with {{story_count}} total stories.{/if_epics_loaded}
100
- {if_no_epics}I found {{fr_count}} functional requirements organized into {{fr_category_list}}.{/if_no_epics}
101
- {if_ux_loaded}I also found your UX specification which defines the user experience requirements.{/if_ux_loaded}
102
-
103
- **Key architectural aspects I notice:**
104
-
105
- - [Summarize core functionality from FRs]
106
- - [Note critical NFRs that will shape architecture]
107
- - {if_ux_loaded}[Note UX complexity and technical requirements]{/if_ux_loaded}
108
- - [Identify unique technical challenges or constraints]
109
- - [Highlight any regulatory or compliance requirements]
110
-
111
- **Scale indicators:**
112
-
113
- - Project complexity appears to be: [low/medium/high/enterprise]
114
- - Primary technical domain: [web/mobile/api/backend/full-stack/etc]
115
- - Cross-cutting concerns identified: [list major ones]
116
-
117
- This analysis will help me guide you through the architectural decisions needed to ensure AI agents implement this consistently.
118
-
119
- Does this match your understanding of the project scope and requirements?"
120
-
121
- ### 4. Generate Project Context Content
122
-
123
- Prepare the content to append to the document:
124
-
125
- #### Content Structure:
126
-
127
- ```markdown
128
- ## Project Context Analysis
129
-
130
- ### Requirements Overview
131
-
132
- **Functional Requirements:**
133
- {{analysis of FRs and what they mean architecturally}}
134
-
135
- **Non-Functional Requirements:**
136
- {{NFRs that will drive architectural decisions}}
137
-
138
- **Scale & Complexity:**
139
- {{project_scale_assessment}}
140
-
141
- - Primary domain: {{technical_domain}}
142
- - Complexity level: {{complexity_level}}
143
- - Estimated architectural components: {{component_count}}
144
-
145
- ### Technical Constraints & Dependencies
146
-
147
- {{known_constraints_dependencies}}
148
-
149
- ### Cross-Cutting Concerns Identified
150
-
151
- {{concerns_that_will_affect_multiple_components}}
152
- ```
153
-
154
- ### 5. Present Content and Menu
155
-
156
- Show the generated content and present choices:
157
-
158
- "I've drafted the Project Context Analysis based on your requirements. This sets the foundation for our architectural decisions.
159
-
160
- **Here's what I'll add to the document:**
161
-
162
- [Show the complete markdown content from step 4]
163
-
164
- **What would you like to do?**
165
- [A] Advanced Elicitation - Let's dive deeper into architectural implications
166
- [P] Party Mode - Bring different perspectives to analyze requirements
167
- [C] Continue - Save this analysis and begin architectural decisions"
168
-
169
- ### 6. Handle Menu Selection
170
-
171
- #### If 'A' (Advanced Elicitation):
172
-
173
- - Invoke the `bmad-advanced-elicitation` skill with the current context analysis
174
- - Process the enhanced architectural insights that come back
175
- - Ask user: "Accept these enhancements to the project context analysis? (y/n)"
176
- - If yes: Update content with improvements, then return to A/P/C menu
177
- - If no: Keep original content, then return to A/P/C menu
178
-
179
- #### If 'P' (Party Mode):
180
-
181
- - Invoke the `bmad-party-mode` skill with the current project context
182
- - Process the collaborative improvements to architectural understanding
183
- - Ask user: "Accept these changes to the project context analysis? (y/n)"
184
- - If yes: Update content with improvements, then return to A/P/C menu
185
- - If no: Keep original content, then return to A/P/C menu
186
-
187
- #### If 'C' (Continue):
188
-
189
- - Append the final content to `{planning_artifacts}/architecture.md`
190
- - Update frontmatter: `stepsCompleted: [1, 2]`
191
- - Load `./step-03-starter.md`
192
-
193
- ## APPEND TO DOCUMENT:
194
-
195
- When user selects 'C', append the content directly to the document using the structure from step 4.
196
-
197
- ## SUCCESS METRICS:
198
-
199
- ✅ All input documents thoroughly analyzed for architectural implications
200
- ✅ Project scope and complexity clearly assessed and validated
201
- ✅ Technical constraints and dependencies identified
202
- ✅ Cross-cutting concerns mapped for architectural planning
203
- ✅ User confirmation of project understanding
204
- ✅ A/P/C menu presented and handled correctly
205
- ✅ Content properly appended to document when C selected
206
-
207
- ## FAILURE MODES:
208
-
209
- ❌ Skimming documents without deep architectural analysis
210
- ❌ Missing or misinterpreting critical NFRs
211
- ❌ Not validating project understanding with user
212
- ❌ Underestimating complexity indicators
213
- ❌ Generating content without real analysis of loaded documents
214
- ❌ Not presenting A/P/C menu after content generation
215
-
216
- ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
217
- ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
218
- ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
219
-
220
- ## NEXT STEP:
221
-
222
- After user selects 'C' and content is saved to document, load `./step-03-starter.md` to evaluate starter template options.
223
-
224
- Remember: Do NOT proceed to step-03 until user explicitly selects 'C' from the A/P/C menu and content is saved!
1
+ # Step 2: Project Context Analysis
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 understanding project scope and requirements for architecture
12
+ - 🎯 ANALYZE loaded documents, don't assume or generate requirements
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
+ - ⚠️ Present A/P/C menu after generating project context analysis
20
+ - 💾 ONLY save when user chooses C (Continue)
21
+ - 📖 Update frontmatter `stepsCompleted: [1, 2]` before loading next step
22
+ - 🚫 FORBIDDEN to load next step until C is selected
23
+
24
+ ## COLLABORATION MENUS (A/P/C):
25
+
26
+ This step will generate content and present choices:
27
+
28
+ - **A (Advanced Elicitation)**: Use discovery protocols to develop deeper insights about project context and architectural implications
29
+ - **P (Party Mode)**: Bring multiple perspectives to analyze project requirements from different architectural angles
30
+ - **C (Continue)**: Save the content to the document and proceed to next step
31
+
32
+ ## PROTOCOL INTEGRATION:
33
+
34
+ - When 'A' selected: Invoke the `bmad-advanced-elicitation` skill
35
+ - When 'P' selected: Invoke the `bmad-party-mode` skill
36
+ - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed
37
+ - User accepts/rejects protocol changes before proceeding
38
+
39
+ ## CONTEXT BOUNDARIES:
40
+
41
+ - Current document and frontmatter from step 1 are available
42
+ - Input documents already loaded are in memory (PRD, epics, UX spec, etc.)
43
+ - Focus on architectural implications of requirements
44
+ - No technology decisions yet - pure analysis phase
45
+
46
+ ## YOUR TASK:
47
+
48
+ Fully read and Analyze the loaded project documents to understand architectural scope, requirements, and constraints before beginning decision making.
49
+
50
+ ## CONTEXT ANALYSIS SEQUENCE:
51
+
52
+ ### 1. Review Project Requirements
53
+
54
+ **From PRD Analysis:**
55
+
56
+ - Extract and analyze Functional Requirements (FRs)
57
+ - Identify Non-Functional Requirements (NFRs) like performance, security, compliance
58
+ - Note any technical constraints or dependencies mentioned
59
+ - Count and categorize requirements to understand project scale
60
+
61
+ **From Epics/Stories (if available):**
62
+
63
+ - Map epic structure and user stories to architectural components
64
+ - Extract acceptance criteria for technical implications
65
+ - Identify cross-cutting concerns that span multiple epics
66
+ - Estimate story complexity for architectural planning
67
+
68
+ **From UX Design (if available):**
69
+
70
+ - Extract architectural implications from UX requirements:
71
+ - Component complexity (simple forms vs rich interactions)
72
+ - Animation/transition requirements
73
+ - Real-time update needs (live data, collaborative features)
74
+ - Platform-specific UI requirements
75
+ - Accessibility standards (WCAG compliance level)
76
+ - Responsive design breakpoints
77
+ - Offline capability requirements
78
+ - Performance expectations (load times, interaction responsiveness)
79
+
80
+ ### 2. Project Scale Assessment
81
+
82
+ Calculate and present project complexity:
83
+
84
+ **Complexity Indicators:**
85
+
86
+ - Real-time features requirements
87
+ - Multi-tenancy needs
88
+ - Regulatory compliance requirements
89
+ - Integration complexity
90
+ - User interaction complexity
91
+ - Data complexity and volume
92
+
93
+ ### 3. Reflect Understanding
94
+
95
+ Present your analysis back to user for validation:
96
+
97
+ "I'm reviewing your project documentation for {{project_name}}.
98
+
99
+ {if_epics_loaded}I see {{epic_count}} epics with {{story_count}} total stories.{/if_epics_loaded}
100
+ {if_no_epics}I found {{fr_count}} functional requirements organized into {{fr_category_list}}.{/if_no_epics}
101
+ {if_ux_loaded}I also found your UX specification which defines the user experience requirements.{/if_ux_loaded}
102
+
103
+ **Key architectural aspects I notice:**
104
+
105
+ - [Summarize core functionality from FRs]
106
+ - [Note critical NFRs that will shape architecture]
107
+ - {if_ux_loaded}[Note UX complexity and technical requirements]{/if_ux_loaded}
108
+ - [Identify unique technical challenges or constraints]
109
+ - [Highlight any regulatory or compliance requirements]
110
+
111
+ **Scale indicators:**
112
+
113
+ - Project complexity appears to be: [low/medium/high/enterprise]
114
+ - Primary technical domain: [web/mobile/api/backend/full-stack/etc]
115
+ - Cross-cutting concerns identified: [list major ones]
116
+
117
+ This analysis will help me guide you through the architectural decisions needed to ensure AI agents implement this consistently.
118
+
119
+ Does this match your understanding of the project scope and requirements?"
120
+
121
+ ### 4. Generate Project Context Content
122
+
123
+ Prepare the content to append to the document:
124
+
125
+ #### Content Structure:
126
+
127
+ ```markdown
128
+ ## Project Context Analysis
129
+
130
+ ### Requirements Overview
131
+
132
+ **Functional Requirements:**
133
+ {{analysis of FRs and what they mean architecturally}}
134
+
135
+ **Non-Functional Requirements:**
136
+ {{NFRs that will drive architectural decisions}}
137
+
138
+ **Scale & Complexity:**
139
+ {{project_scale_assessment}}
140
+
141
+ - Primary domain: {{technical_domain}}
142
+ - Complexity level: {{complexity_level}}
143
+ - Estimated architectural components: {{component_count}}
144
+
145
+ ### Technical Constraints & Dependencies
146
+
147
+ {{known_constraints_dependencies}}
148
+
149
+ ### Cross-Cutting Concerns Identified
150
+
151
+ {{concerns_that_will_affect_multiple_components}}
152
+ ```
153
+
154
+ ### 5. Present Content and Menu
155
+
156
+ Show the generated content and present choices:
157
+
158
+ "I've drafted the Project Context Analysis based on your requirements. This sets the foundation for our architectural decisions.
159
+
160
+ **Here's what I'll add to the document:**
161
+
162
+ [Show the complete markdown content from step 4]
163
+
164
+ **What would you like to do?**
165
+ [A] Advanced Elicitation - Let's dive deeper into architectural implications
166
+ [P] Party Mode - Bring different perspectives to analyze requirements
167
+ [C] Continue - Save this analysis and begin architectural decisions"
168
+
169
+ ### 6. Handle Menu Selection
170
+
171
+ #### If 'A' (Advanced Elicitation):
172
+
173
+ - Invoke the `bmad-advanced-elicitation` skill with the current context analysis
174
+ - Process the enhanced architectural insights that come back
175
+ - Ask user: "Accept these enhancements to the project context analysis? (y/n)"
176
+ - If yes: Update content with improvements, then return to A/P/C menu
177
+ - If no: Keep original content, then return to A/P/C menu
178
+
179
+ #### If 'P' (Party Mode):
180
+
181
+ - Invoke the `bmad-party-mode` skill with the current project context
182
+ - Process the collaborative improvements to architectural understanding
183
+ - Ask user: "Accept these changes to the project context analysis? (y/n)"
184
+ - If yes: Update content with improvements, then return to A/P/C menu
185
+ - If no: Keep original content, then return to A/P/C menu
186
+
187
+ #### If 'C' (Continue):
188
+
189
+ - Append the final content to `{planning_artifacts}/architecture.md`
190
+ - Update frontmatter: `stepsCompleted: [1, 2]`
191
+ - Load `./step-03-starter.md`
192
+
193
+ ## APPEND TO DOCUMENT:
194
+
195
+ When user selects 'C', append the content directly to the document using the structure from step 4.
196
+
197
+ ## SUCCESS METRICS:
198
+
199
+ ✅ All input documents thoroughly analyzed for architectural implications
200
+ ✅ Project scope and complexity clearly assessed and validated
201
+ ✅ Technical constraints and dependencies identified
202
+ ✅ Cross-cutting concerns mapped for architectural planning
203
+ ✅ User confirmation of project understanding
204
+ ✅ A/P/C menu presented and handled correctly
205
+ ✅ Content properly appended to document when C selected
206
+
207
+ ## FAILURE MODES:
208
+
209
+ ❌ Skimming documents without deep architectural analysis
210
+ ❌ Missing or misinterpreting critical NFRs
211
+ ❌ Not validating project understanding with user
212
+ ❌ Underestimating complexity indicators
213
+ ❌ Generating content without real analysis of loaded documents
214
+ ❌ Not presenting A/P/C menu after content generation
215
+
216
+ ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
217
+ ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
218
+ ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
219
+
220
+ ## NEXT STEP:
221
+
222
+ After user selects 'C' and content is saved to document, load `./step-03-starter.md` to evaluate starter template options.
223
+
224
+ Remember: Do NOT proceed to step-03 until user explicitly selects 'C' from the A/P/C menu and content is saved!