agentvibes 2.0.21 → 2.0.22

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 (134) hide show
  1. package/.bmad-core/agent-teams/team-all.yaml +15 -0
  2. package/.bmad-core/agent-teams/team-fullstack.yaml +19 -0
  3. package/.bmad-core/agent-teams/team-ide-minimal.yaml +11 -0
  4. package/.bmad-core/agent-teams/team-no-ui.yaml +14 -0
  5. package/.bmad-core/agents/analyst.md +84 -0
  6. package/.bmad-core/agents/architect.md +85 -0
  7. package/.bmad-core/agents/bmad-master.md +110 -0
  8. package/.bmad-core/agents/bmad-orchestrator.md +147 -0
  9. package/.bmad-core/agents/dev.md +81 -0
  10. package/.bmad-core/agents/pm.md +84 -0
  11. package/.bmad-core/agents/po.md +79 -0
  12. package/.bmad-core/agents/qa.md +87 -0
  13. package/.bmad-core/agents/sm.md +65 -0
  14. package/.bmad-core/agents/ux-expert.md +69 -0
  15. package/.bmad-core/checklists/architect-checklist.md +440 -0
  16. package/.bmad-core/checklists/change-checklist.md +184 -0
  17. package/.bmad-core/checklists/pm-checklist.md +372 -0
  18. package/.bmad-core/checklists/po-master-checklist.md +434 -0
  19. package/.bmad-core/checklists/story-dod-checklist.md +96 -0
  20. package/.bmad-core/checklists/story-draft-checklist.md +155 -0
  21. package/.bmad-core/core-config.yaml +22 -0
  22. package/.bmad-core/data/bmad-kb.md +809 -0
  23. package/.bmad-core/data/brainstorming-techniques.md +38 -0
  24. package/.bmad-core/data/elicitation-methods.md +156 -0
  25. package/.bmad-core/data/technical-preferences.md +5 -0
  26. package/.bmad-core/data/test-levels-framework.md +148 -0
  27. package/.bmad-core/data/test-priorities-matrix.md +174 -0
  28. package/.bmad-core/enhanced-ide-development-workflow.md +248 -0
  29. package/.bmad-core/install-manifest.yaml +230 -0
  30. package/.bmad-core/tasks/advanced-elicitation.md +119 -0
  31. package/.bmad-core/tasks/apply-qa-fixes.md +150 -0
  32. package/.bmad-core/tasks/brownfield-create-epic.md +162 -0
  33. package/.bmad-core/tasks/brownfield-create-story.md +149 -0
  34. package/.bmad-core/tasks/correct-course.md +72 -0
  35. package/.bmad-core/tasks/create-brownfield-story.md +314 -0
  36. package/.bmad-core/tasks/create-deep-research-prompt.md +280 -0
  37. package/.bmad-core/tasks/create-doc.md +103 -0
  38. package/.bmad-core/tasks/create-next-story.md +114 -0
  39. package/.bmad-core/tasks/document-project.md +345 -0
  40. package/.bmad-core/tasks/execute-checklist.md +88 -0
  41. package/.bmad-core/tasks/facilitate-brainstorming-session.md +138 -0
  42. package/.bmad-core/tasks/generate-ai-frontend-prompt.md +53 -0
  43. package/.bmad-core/tasks/index-docs.md +175 -0
  44. package/.bmad-core/tasks/kb-mode-interaction.md +77 -0
  45. package/.bmad-core/tasks/nfr-assess.md +345 -0
  46. package/.bmad-core/tasks/qa-gate.md +163 -0
  47. package/.bmad-core/tasks/review-story.md +316 -0
  48. package/.bmad-core/tasks/risk-profile.md +355 -0
  49. package/.bmad-core/tasks/shard-doc.md +187 -0
  50. package/.bmad-core/tasks/test-design.md +176 -0
  51. package/.bmad-core/tasks/trace-requirements.md +266 -0
  52. package/.bmad-core/tasks/validate-next-story.md +136 -0
  53. package/.bmad-core/templates/architecture-tmpl.yaml +651 -0
  54. package/.bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
  55. package/.bmad-core/templates/brownfield-architecture-tmpl.yaml +477 -0
  56. package/.bmad-core/templates/brownfield-prd-tmpl.yaml +281 -0
  57. package/.bmad-core/templates/competitor-analysis-tmpl.yaml +307 -0
  58. package/.bmad-core/templates/front-end-architecture-tmpl.yaml +219 -0
  59. package/.bmad-core/templates/front-end-spec-tmpl.yaml +350 -0
  60. package/.bmad-core/templates/fullstack-architecture-tmpl.yaml +824 -0
  61. package/.bmad-core/templates/market-research-tmpl.yaml +253 -0
  62. package/.bmad-core/templates/prd-tmpl.yaml +203 -0
  63. package/.bmad-core/templates/project-brief-tmpl.yaml +222 -0
  64. package/.bmad-core/templates/qa-gate-tmpl.yaml +103 -0
  65. package/.bmad-core/templates/story-tmpl.yaml +138 -0
  66. package/.bmad-core/user-guide.md +577 -0
  67. package/.bmad-core/utils/bmad-doc-template.md +327 -0
  68. package/.bmad-core/utils/workflow-management.md +71 -0
  69. package/.bmad-core/workflows/brownfield-fullstack.yaml +298 -0
  70. package/.bmad-core/workflows/brownfield-service.yaml +188 -0
  71. package/.bmad-core/workflows/brownfield-ui.yaml +198 -0
  72. package/.bmad-core/workflows/greenfield-fullstack.yaml +241 -0
  73. package/.bmad-core/workflows/greenfield-service.yaml +207 -0
  74. package/.bmad-core/workflows/greenfield-ui.yaml +236 -0
  75. package/.bmad-core/working-in-the-brownfield.md +606 -0
  76. package/.claude/agents/health-coach.md +154 -0
  77. package/.claude/agents/motivator.md +171 -0
  78. package/.claude/agents/negotiator.md +97 -0
  79. package/.claude/commands/BMad/agents/analyst.md +88 -0
  80. package/.claude/commands/BMad/agents/architect.md +89 -0
  81. package/.claude/commands/BMad/agents/bmad-master.md +114 -0
  82. package/.claude/commands/BMad/agents/bmad-orchestrator.md +151 -0
  83. package/.claude/commands/BMad/agents/dev.md +85 -0
  84. package/.claude/commands/BMad/agents/pm.md +88 -0
  85. package/.claude/commands/BMad/agents/po.md +83 -0
  86. package/.claude/commands/BMad/agents/qa.md +91 -0
  87. package/.claude/commands/BMad/agents/sm.md +69 -0
  88. package/.claude/commands/BMad/agents/ux-expert.md +73 -0
  89. package/.claude/commands/BMad/tasks/advanced-elicitation.md +123 -0
  90. package/.claude/commands/BMad/tasks/apply-qa-fixes.md +154 -0
  91. package/.claude/commands/BMad/tasks/brownfield-create-epic.md +166 -0
  92. package/.claude/commands/BMad/tasks/brownfield-create-story.md +153 -0
  93. package/.claude/commands/BMad/tasks/correct-course.md +76 -0
  94. package/.claude/commands/BMad/tasks/create-brownfield-story.md +318 -0
  95. package/.claude/commands/BMad/tasks/create-deep-research-prompt.md +284 -0
  96. package/.claude/commands/BMad/tasks/create-doc.md +107 -0
  97. package/.claude/commands/BMad/tasks/create-next-story.md +118 -0
  98. package/.claude/commands/BMad/tasks/document-project.md +349 -0
  99. package/.claude/commands/BMad/tasks/execute-checklist.md +92 -0
  100. package/.claude/commands/BMad/tasks/facilitate-brainstorming-session.md +142 -0
  101. package/.claude/commands/BMad/tasks/generate-ai-frontend-prompt.md +57 -0
  102. package/.claude/commands/BMad/tasks/index-docs.md +179 -0
  103. package/.claude/commands/BMad/tasks/kb-mode-interaction.md +81 -0
  104. package/.claude/commands/BMad/tasks/nfr-assess.md +349 -0
  105. package/.claude/commands/BMad/tasks/qa-gate.md +167 -0
  106. package/.claude/commands/BMad/tasks/review-story.md +320 -0
  107. package/.claude/commands/BMad/tasks/risk-profile.md +359 -0
  108. package/.claude/commands/BMad/tasks/shard-doc.md +191 -0
  109. package/.claude/commands/BMad/tasks/test-design.md +180 -0
  110. package/.claude/commands/BMad/tasks/trace-requirements.md +270 -0
  111. package/.claude/commands/BMad/tasks/validate-next-story.md +140 -0
  112. package/.claude/commands/agent-vibes/agent-health-coach.md +15 -0
  113. package/.claude/commands/agent-vibes/agent-motivator.md +15 -0
  114. package/.claude/commands/agent-vibes/agent-negotiator.md +15 -0
  115. package/.claude/commands/agent-vibes/agent.md +79 -0
  116. package/README.md +2 -2
  117. package/docs/agents.md +485 -0
  118. package/fix-vscode-colors.sh +88 -0
  119. package/fixcolors +88 -0
  120. package/generate-all-agent-voices.sh +174 -0
  121. package/generate-new-voices.sh +108 -0
  122. package/generate-piper-agent-intros.sh +85 -0
  123. package/generate-provider-and-agent-intros.sh +136 -0
  124. package/linkedin/vibe-coding-and-pulseaudio.md +121 -0
  125. package/logo/fav_icon_128x128.png +0 -0
  126. package/logo/fav_icon_128x128.png:Zone.Identifier +4 -0
  127. package/logo/logo1.webp +0 -0
  128. package/logo/logo1.webp:Zone.Identifier +4 -0
  129. package/logo/social.png +0 -0
  130. package/logo/social.png:Zone.Identifier +4 -0
  131. package/mcp-server/agentvibes.db +0 -0
  132. package/package.json +1 -1
  133. package/regenerate-agent-voices.sh +79 -0
  134. package/scripts/audio-tunnel.config +17 -0
@@ -0,0 +1,284 @@
1
+ # /create-deep-research-prompt Task
2
+
3
+ When this command is used, execute the following task:
4
+
5
+ <!-- Powered by BMAD™ Core -->
6
+
7
+ # Create Deep Research Prompt Task
8
+
9
+ This task helps create comprehensive research prompts for various types of deep analysis. It can process inputs from brainstorming sessions, project briefs, market research, or specific research questions to generate targeted prompts for deeper investigation.
10
+
11
+ ## Purpose
12
+
13
+ Generate well-structured research prompts that:
14
+
15
+ - Define clear research objectives and scope
16
+ - Specify appropriate research methodologies
17
+ - Outline expected deliverables and formats
18
+ - Guide systematic investigation of complex topics
19
+ - Ensure actionable insights are captured
20
+
21
+ ## Research Type Selection
22
+
23
+ CRITICAL: First, help the user select the most appropriate research focus based on their needs and any input documents they've provided.
24
+
25
+ ### 1. Research Focus Options
26
+
27
+ Present these numbered options to the user:
28
+
29
+ 1. **Product Validation Research**
30
+ - Validate product hypotheses and market fit
31
+ - Test assumptions about user needs and solutions
32
+ - Assess technical and business feasibility
33
+ - Identify risks and mitigation strategies
34
+
35
+ 2. **Market Opportunity Research**
36
+ - Analyze market size and growth potential
37
+ - Identify market segments and dynamics
38
+ - Assess market entry strategies
39
+ - Evaluate timing and market readiness
40
+
41
+ 3. **User & Customer Research**
42
+ - Deep dive into user personas and behaviors
43
+ - Understand jobs-to-be-done and pain points
44
+ - Map customer journeys and touchpoints
45
+ - Analyze willingness to pay and value perception
46
+
47
+ 4. **Competitive Intelligence Research**
48
+ - Detailed competitor analysis and positioning
49
+ - Feature and capability comparisons
50
+ - Business model and strategy analysis
51
+ - Identify competitive advantages and gaps
52
+
53
+ 5. **Technology & Innovation Research**
54
+ - Assess technology trends and possibilities
55
+ - Evaluate technical approaches and architectures
56
+ - Identify emerging technologies and disruptions
57
+ - Analyze build vs. buy vs. partner options
58
+
59
+ 6. **Industry & Ecosystem Research**
60
+ - Map industry value chains and dynamics
61
+ - Identify key players and relationships
62
+ - Analyze regulatory and compliance factors
63
+ - Understand partnership opportunities
64
+
65
+ 7. **Strategic Options Research**
66
+ - Evaluate different strategic directions
67
+ - Assess business model alternatives
68
+ - Analyze go-to-market strategies
69
+ - Consider expansion and scaling paths
70
+
71
+ 8. **Risk & Feasibility Research**
72
+ - Identify and assess various risk factors
73
+ - Evaluate implementation challenges
74
+ - Analyze resource requirements
75
+ - Consider regulatory and legal implications
76
+
77
+ 9. **Custom Research Focus**
78
+ - User-defined research objectives
79
+ - Specialized domain investigation
80
+ - Cross-functional research needs
81
+
82
+ ### 2. Input Processing
83
+
84
+ **If Project Brief provided:**
85
+
86
+ - Extract key product concepts and goals
87
+ - Identify target users and use cases
88
+ - Note technical constraints and preferences
89
+ - Highlight uncertainties and assumptions
90
+
91
+ **If Brainstorming Results provided:**
92
+
93
+ - Synthesize main ideas and themes
94
+ - Identify areas needing validation
95
+ - Extract hypotheses to test
96
+ - Note creative directions to explore
97
+
98
+ **If Market Research provided:**
99
+
100
+ - Build on identified opportunities
101
+ - Deepen specific market insights
102
+ - Validate initial findings
103
+ - Explore adjacent possibilities
104
+
105
+ **If Starting Fresh:**
106
+
107
+ - Gather essential context through questions
108
+ - Define the problem space
109
+ - Clarify research objectives
110
+ - Establish success criteria
111
+
112
+ ## Process
113
+
114
+ ### 3. Research Prompt Structure
115
+
116
+ CRITICAL: collaboratively develop a comprehensive research prompt with these components.
117
+
118
+ #### A. Research Objectives
119
+
120
+ CRITICAL: collaborate with the user to articulate clear, specific objectives for the research.
121
+
122
+ - Primary research goal and purpose
123
+ - Key decisions the research will inform
124
+ - Success criteria for the research
125
+ - Constraints and boundaries
126
+
127
+ #### B. Research Questions
128
+
129
+ CRITICAL: collaborate with the user to develop specific, actionable research questions organized by theme.
130
+
131
+ **Core Questions:**
132
+
133
+ - Central questions that must be answered
134
+ - Priority ranking of questions
135
+ - Dependencies between questions
136
+
137
+ **Supporting Questions:**
138
+
139
+ - Additional context-building questions
140
+ - Nice-to-have insights
141
+ - Future-looking considerations
142
+
143
+ #### C. Research Methodology
144
+
145
+ **Data Collection Methods:**
146
+
147
+ - Secondary research sources
148
+ - Primary research approaches (if applicable)
149
+ - Data quality requirements
150
+ - Source credibility criteria
151
+
152
+ **Analysis Frameworks:**
153
+
154
+ - Specific frameworks to apply
155
+ - Comparison criteria
156
+ - Evaluation methodologies
157
+ - Synthesis approaches
158
+
159
+ #### D. Output Requirements
160
+
161
+ **Format Specifications:**
162
+
163
+ - Executive summary requirements
164
+ - Detailed findings structure
165
+ - Visual/tabular presentations
166
+ - Supporting documentation
167
+
168
+ **Key Deliverables:**
169
+
170
+ - Must-have sections and insights
171
+ - Decision-support elements
172
+ - Action-oriented recommendations
173
+ - Risk and uncertainty documentation
174
+
175
+ ### 4. Prompt Generation
176
+
177
+ **Research Prompt Template:**
178
+
179
+ ```markdown
180
+ ## Research Objective
181
+
182
+ [Clear statement of what this research aims to achieve]
183
+
184
+ ## Background Context
185
+
186
+ [Relevant information from project brief, brainstorming, or other inputs]
187
+
188
+ ## Research Questions
189
+
190
+ ### Primary Questions (Must Answer)
191
+
192
+ 1. [Specific, actionable question]
193
+ 2. [Specific, actionable question]
194
+ ...
195
+
196
+ ### Secondary Questions (Nice to Have)
197
+
198
+ 1. [Supporting question]
199
+ 2. [Supporting question]
200
+ ...
201
+
202
+ ## Research Methodology
203
+
204
+ ### Information Sources
205
+
206
+ - [Specific source types and priorities]
207
+
208
+ ### Analysis Frameworks
209
+
210
+ - [Specific frameworks to apply]
211
+
212
+ ### Data Requirements
213
+
214
+ - [Quality, recency, credibility needs]
215
+
216
+ ## Expected Deliverables
217
+
218
+ ### Executive Summary
219
+
220
+ - Key findings and insights
221
+ - Critical implications
222
+ - Recommended actions
223
+
224
+ ### Detailed Analysis
225
+
226
+ [Specific sections needed based on research type]
227
+
228
+ ### Supporting Materials
229
+
230
+ - Data tables
231
+ - Comparison matrices
232
+ - Source documentation
233
+
234
+ ## Success Criteria
235
+
236
+ [How to evaluate if research achieved its objectives]
237
+
238
+ ## Timeline and Priority
239
+
240
+ [If applicable, any time constraints or phasing]
241
+ ```
242
+
243
+ ### 5. Review and Refinement
244
+
245
+ 1. **Present Complete Prompt**
246
+ - Show the full research prompt
247
+ - Explain key elements and rationale
248
+ - Highlight any assumptions made
249
+
250
+ 2. **Gather Feedback**
251
+ - Are the objectives clear and correct?
252
+ - Do the questions address all concerns?
253
+ - Is the scope appropriate?
254
+ - Are output requirements sufficient?
255
+
256
+ 3. **Refine as Needed**
257
+ - Incorporate user feedback
258
+ - Adjust scope or focus
259
+ - Add missing elements
260
+ - Clarify ambiguities
261
+
262
+ ### 6. Next Steps Guidance
263
+
264
+ **Execution Options:**
265
+
266
+ 1. **Use with AI Research Assistant**: Provide this prompt to an AI model with research capabilities
267
+ 2. **Guide Human Research**: Use as a framework for manual research efforts
268
+ 3. **Hybrid Approach**: Combine AI and human research using this structure
269
+
270
+ **Integration Points:**
271
+
272
+ - How findings will feed into next phases
273
+ - Which team members should review results
274
+ - How to validate findings
275
+ - When to revisit or expand research
276
+
277
+ ## Important Notes
278
+
279
+ - The quality of the research prompt directly impacts the quality of insights gathered
280
+ - Be specific rather than general in research questions
281
+ - Consider both current state and future implications
282
+ - Balance comprehensiveness with focus
283
+ - Document assumptions and limitations clearly
284
+ - Plan for iterative refinement based on initial findings
@@ -0,0 +1,107 @@
1
+ # /create-doc Task
2
+
3
+ When this command is used, execute the following task:
4
+
5
+ <!-- Powered by BMAD™ Core -->
6
+
7
+ # Create Document from Template (YAML Driven)
8
+
9
+ ## ⚠️ CRITICAL EXECUTION NOTICE ⚠️
10
+
11
+ **THIS IS AN EXECUTABLE WORKFLOW - NOT REFERENCE MATERIAL**
12
+
13
+ When this task is invoked:
14
+
15
+ 1. **DISABLE ALL EFFICIENCY OPTIMIZATIONS** - This workflow requires full user interaction
16
+ 2. **MANDATORY STEP-BY-STEP EXECUTION** - Each section must be processed sequentially with user feedback
17
+ 3. **ELICITATION IS REQUIRED** - When `elicit: true`, you MUST use the 1-9 format and wait for user response
18
+ 4. **NO SHORTCUTS ALLOWED** - Complete documents cannot be created without following this workflow
19
+
20
+ **VIOLATION INDICATOR:** If you create a complete document without user interaction, you have violated this workflow.
21
+
22
+ ## Critical: Template Discovery
23
+
24
+ If a YAML Template has not been provided, list all templates from .bmad-core/templates or ask the user to provide another.
25
+
26
+ ## CRITICAL: Mandatory Elicitation Format
27
+
28
+ **When `elicit: true`, this is a HARD STOP requiring user interaction:**
29
+
30
+ **YOU MUST:**
31
+
32
+ 1. Present section content
33
+ 2. Provide detailed rationale (explain trade-offs, assumptions, decisions made)
34
+ 3. **STOP and present numbered options 1-9:**
35
+ - **Option 1:** Always "Proceed to next section"
36
+ - **Options 2-9:** Select 8 methods from data/elicitation-methods
37
+ - End with: "Select 1-9 or just type your question/feedback:"
38
+ 4. **WAIT FOR USER RESPONSE** - Do not proceed until user selects option or provides feedback
39
+
40
+ **WORKFLOW VIOLATION:** Creating content for elicit=true sections without user interaction violates this task.
41
+
42
+ **NEVER ask yes/no questions or use any other format.**
43
+
44
+ ## Processing Flow
45
+
46
+ 1. **Parse YAML template** - Load template metadata and sections
47
+ 2. **Set preferences** - Show current mode (Interactive), confirm output file
48
+ 3. **Process each section:**
49
+ - Skip if condition unmet
50
+ - Check agent permissions (owner/editors) - note if section is restricted to specific agents
51
+ - Draft content using section instruction
52
+ - Present content + detailed rationale
53
+ - **IF elicit: true** → MANDATORY 1-9 options format
54
+ - Save to file if possible
55
+ 4. **Continue until complete**
56
+
57
+ ## Detailed Rationale Requirements
58
+
59
+ When presenting section content, ALWAYS include rationale that explains:
60
+
61
+ - Trade-offs and choices made (what was chosen over alternatives and why)
62
+ - Key assumptions made during drafting
63
+ - Interesting or questionable decisions that need user attention
64
+ - Areas that might need validation
65
+
66
+ ## Elicitation Results Flow
67
+
68
+ After user selects elicitation method (2-9):
69
+
70
+ 1. Execute method from data/elicitation-methods
71
+ 2. Present results with insights
72
+ 3. Offer options:
73
+ - **1. Apply changes and update section**
74
+ - **2. Return to elicitation menu**
75
+ - **3. Ask any questions or engage further with this elicitation**
76
+
77
+ ## Agent Permissions
78
+
79
+ When processing sections with agent permission fields:
80
+
81
+ - **owner**: Note which agent role initially creates/populates the section
82
+ - **editors**: List agent roles allowed to modify the section
83
+ - **readonly**: Mark sections that cannot be modified after creation
84
+
85
+ **For sections with restricted access:**
86
+
87
+ - Include a note in the generated document indicating the responsible agent
88
+ - Example: "_(This section is owned by dev-agent and can only be modified by dev-agent)_"
89
+
90
+ ## YOLO Mode
91
+
92
+ User can type `#yolo` to toggle to YOLO mode (process all sections at once).
93
+
94
+ ## CRITICAL REMINDERS
95
+
96
+ **❌ NEVER:**
97
+
98
+ - Ask yes/no questions for elicitation
99
+ - Use any format other than 1-9 numbered options
100
+ - Create new elicitation methods
101
+
102
+ **✅ ALWAYS:**
103
+
104
+ - Use exact 1-9 format when elicit: true
105
+ - Select options 2-9 from data/elicitation-methods only
106
+ - Provide detailed rationale explaining decisions
107
+ - End with "Select 1-9 or just type your question/feedback:"
@@ -0,0 +1,118 @@
1
+ # /create-next-story Task
2
+
3
+ When this command is used, execute the following task:
4
+
5
+ <!-- Powered by BMAD™ Core -->
6
+
7
+ # Create Next Story Task
8
+
9
+ ## Purpose
10
+
11
+ To identify the next logical story based on project progress and epic definitions, and then to prepare a comprehensive, self-contained, and actionable story file using the `Story Template`. This task ensures the story is enriched with all necessary technical context, requirements, and acceptance criteria, making it ready for efficient implementation by a Developer Agent with minimal need for additional research or finding its own context.
12
+
13
+ ## SEQUENTIAL Task Execution (Do not proceed until current Task is complete)
14
+
15
+ ### 0. Load Core Configuration and Check Workflow
16
+
17
+ - Load `.bmad-core/core-config.yaml` from the project root
18
+ - If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy it from GITHUB bmad-core/core-config.yaml and configure it for your project OR 2) Run the BMad installer against your project to upgrade and add the file automatically. Please add and configure core-config.yaml before proceeding."
19
+ - Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
20
+
21
+ ### 1. Identify Next Story for Preparation
22
+
23
+ #### 1.1 Locate Epic Files and Review Existing Stories
24
+
25
+ - Based on `prdSharded` from config, locate epic files (sharded location/pattern or monolithic PRD sections)
26
+ - If `devStoryLocation` has story files, load the highest `{epicNum}.{storyNum}.story.md` file
27
+ - **If highest story exists:**
28
+ - Verify status is 'Done'. If not, alert user: "ALERT: Found incomplete story! File: {lastEpicNum}.{lastStoryNum}.story.md Status: [current status] You should fix this story first, but would you like to accept risk & override to create the next story in draft?"
29
+ - If proceeding, select next sequential story in the current epic
30
+ - If epic is complete, prompt user: "Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. Would you like to: 1) Begin Epic {epicNum + 1} with story 1 2) Select a specific story to work on 3) Cancel story creation"
31
+ - **CRITICAL**: NEVER automatically skip to another epic. User MUST explicitly instruct which story to create.
32
+ - **If no story files exist:** The next story is ALWAYS 1.1 (first story of first epic)
33
+ - Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}"
34
+
35
+ ### 2. Gather Story Requirements and Previous Story Context
36
+
37
+ - Extract story requirements from the identified epic file
38
+ - If previous story exists, review Dev Agent Record sections for:
39
+ - Completion Notes and Debug Log References
40
+ - Implementation deviations and technical decisions
41
+ - Challenges encountered and lessons learned
42
+ - Extract relevant insights that inform the current story's preparation
43
+
44
+ ### 3. Gather Architecture Context
45
+
46
+ #### 3.1 Determine Architecture Reading Strategy
47
+
48
+ - **If `architectureVersion: >= v4` and `architectureSharded: true`**: Read `{architectureShardedLocation}/index.md` then follow structured reading order below
49
+ - **Else**: Use monolithic `architectureFile` for similar sections
50
+
51
+ #### 3.2 Read Architecture Documents Based on Story Type
52
+
53
+ **For ALL Stories:** tech-stack.md, unified-project-structure.md, coding-standards.md, testing-strategy.md
54
+
55
+ **For Backend/API Stories, additionally:** data-models.md, database-schema.md, backend-architecture.md, rest-api-spec.md, external-apis.md
56
+
57
+ **For Frontend/UI Stories, additionally:** frontend-architecture.md, components.md, core-workflows.md, data-models.md
58
+
59
+ **For Full-Stack Stories:** Read both Backend and Frontend sections above
60
+
61
+ #### 3.3 Extract Story-Specific Technical Details
62
+
63
+ Extract ONLY information directly relevant to implementing the current story. Do NOT invent new libraries, patterns, or standards not in the source documents.
64
+
65
+ Extract:
66
+
67
+ - Specific data models, schemas, or structures the story will use
68
+ - API endpoints the story must implement or consume
69
+ - Component specifications for UI elements in the story
70
+ - File paths and naming conventions for new code
71
+ - Testing requirements specific to the story's features
72
+ - Security or performance considerations affecting the story
73
+
74
+ ALWAYS cite source documents: `[Source: architecture/{filename}.md#{section}]`
75
+
76
+ ### 4. Verify Project Structure Alignment
77
+
78
+ - Cross-reference story requirements with Project Structure Guide from `docs/architecture/unified-project-structure.md`
79
+ - Ensure file paths, component locations, or module names align with defined structures
80
+ - Document any structural conflicts in "Project Structure Notes" section within the story draft
81
+
82
+ ### 5. Populate Story Template with Full Context
83
+
84
+ - Create new story file: `{devStoryLocation}/{epicNum}.{storyNum}.story.md` using Story Template
85
+ - Fill in basic story information: Title, Status (Draft), Story statement, Acceptance Criteria from Epic
86
+ - **`Dev Notes` section (CRITICAL):**
87
+ - CRITICAL: This section MUST contain ONLY information extracted from architecture documents. NEVER invent or assume technical details.
88
+ - Include ALL relevant technical details from Steps 2-3, organized by category:
89
+ - **Previous Story Insights**: Key learnings from previous story
90
+ - **Data Models**: Specific schemas, validation rules, relationships [with source references]
91
+ - **API Specifications**: Endpoint details, request/response formats, auth requirements [with source references]
92
+ - **Component Specifications**: UI component details, props, state management [with source references]
93
+ - **File Locations**: Exact paths where new code should be created based on project structure
94
+ - **Testing Requirements**: Specific test cases or strategies from testing-strategy.md
95
+ - **Technical Constraints**: Version requirements, performance considerations, security rules
96
+ - Every technical detail MUST include its source reference: `[Source: architecture/{filename}.md#{section}]`
97
+ - If information for a category is not found in the architecture docs, explicitly state: "No specific guidance found in architecture docs"
98
+ - **`Tasks / Subtasks` section:**
99
+ - Generate detailed, sequential list of technical tasks based ONLY on: Epic Requirements, Story AC, Reviewed Architecture Information
100
+ - Each task must reference relevant architecture documentation
101
+ - Include unit testing as explicit subtasks based on the Testing Strategy
102
+ - Link tasks to ACs where applicable (e.g., `Task 1 (AC: 1, 3)`)
103
+ - Add notes on project structure alignment or discrepancies found in Step 4
104
+
105
+ ### 6. Story Draft Completion and Review
106
+
107
+ - Review all sections for completeness and accuracy
108
+ - Verify all source references are included for technical details
109
+ - Ensure tasks align with both epic requirements and architecture constraints
110
+ - Update status to "Draft" and save the story file
111
+ - Execute `.bmad-core/tasks/execute-checklist` `.bmad-core/checklists/story-draft-checklist`
112
+ - Provide summary to user including:
113
+ - Story created: `{devStoryLocation}/{epicNum}.{storyNum}.story.md`
114
+ - Status: Draft
115
+ - Key technical components included from architecture docs
116
+ - Any deviations or conflicts noted between epic and architecture
117
+ - Checklist Results
118
+ - Next steps: For Complex stories, suggest the user carefully review the story draft and also optionally have the PO run the task `.bmad-core/tasks/validate-next-story`