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