@rdmind/rdmind 0.0.9-alpha.1 → 0.0.9-alpha.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 (96) hide show
  1. package/.knowledge/.ext/.bmad-core/agent-teams/team-all.yaml +15 -0
  2. package/.knowledge/.ext/.bmad-core/agent-teams/team-fullstack.yaml +19 -0
  3. package/.knowledge/.ext/.bmad-core/agent-teams/team-ide-minimal.yaml +11 -0
  4. package/.knowledge/.ext/.bmad-core/agent-teams/team-no-ui.yaml +14 -0
  5. package/.knowledge/.ext/.bmad-core/agents/analyst.md +84 -0
  6. package/.knowledge/.ext/.bmad-core/agents/architect.md +85 -0
  7. package/.knowledge/.ext/.bmad-core/agents/bmad-master.md +110 -0
  8. package/.knowledge/.ext/.bmad-core/agents/bmad-orchestrator.md +147 -0
  9. package/.knowledge/.ext/.bmad-core/agents/dev.md +81 -0
  10. package/.knowledge/.ext/.bmad-core/agents/pm.md +84 -0
  11. package/.knowledge/.ext/.bmad-core/agents/po.md +79 -0
  12. package/.knowledge/.ext/.bmad-core/agents/qa.md +90 -0
  13. package/.knowledge/.ext/.bmad-core/agents/ra.md +74 -0
  14. package/.knowledge/.ext/.bmad-core/agents/sm.md +65 -0
  15. package/.knowledge/.ext/.bmad-core/agents/ux-expert.md +69 -0
  16. package/.knowledge/.ext/.bmad-core/checklists/architect-checklist.md +440 -0
  17. package/.knowledge/.ext/.bmad-core/checklists/change-checklist.md +184 -0
  18. package/.knowledge/.ext/.bmad-core/checklists/pm-checklist.md +372 -0
  19. package/.knowledge/.ext/.bmad-core/checklists/po-master-checklist.md +434 -0
  20. package/.knowledge/.ext/.bmad-core/checklists/story-dod-checklist.md +96 -0
  21. package/.knowledge/.ext/.bmad-core/checklists/story-draft-checklist.md +155 -0
  22. package/.knowledge/.ext/.bmad-core/checklists/trd-checklist.md +226 -0
  23. package/.knowledge/.ext/.bmad-core/core-config.yaml +22 -0
  24. package/.knowledge/.ext/.bmad-core/data/bmad-kb.md +809 -0
  25. package/.knowledge/.ext/.bmad-core/data/brainstorming-techniques.md +38 -0
  26. package/.knowledge/.ext/.bmad-core/data/elicitation-methods.md +156 -0
  27. package/.knowledge/.ext/.bmad-core/data/technical-preferences.md +5 -0
  28. package/.knowledge/.ext/.bmad-core/data/test-levels-framework.md +148 -0
  29. package/.knowledge/.ext/.bmad-core/data/test-priorities-matrix.md +174 -0
  30. package/.knowledge/.ext/.bmad-core/enhanced-ide-development-workflow.md +248 -0
  31. package/.knowledge/.ext/.bmad-core/install-manifest.yaml +512 -0
  32. package/.knowledge/.ext/.bmad-core/tasks/advanced-elicitation.md +119 -0
  33. package/.knowledge/.ext/.bmad-core/tasks/analyze-prd.md +123 -0
  34. package/.knowledge/.ext/.bmad-core/tasks/apply-qa-fixes.md +150 -0
  35. package/.knowledge/.ext/.bmad-core/tasks/brownfield-create-epic.md +162 -0
  36. package/.knowledge/.ext/.bmad-core/tasks/brownfield-create-story.md +149 -0
  37. package/.knowledge/.ext/.bmad-core/tasks/correct-course.md +72 -0
  38. package/.knowledge/.ext/.bmad-core/tasks/create-brownfield-story.md +314 -0
  39. package/.knowledge/.ext/.bmad-core/tasks/create-deep-research-prompt.md +280 -0
  40. package/.knowledge/.ext/.bmad-core/tasks/create-doc.md +103 -0
  41. package/.knowledge/.ext/.bmad-core/tasks/create-next-story.md +114 -0
  42. package/.knowledge/.ext/.bmad-core/tasks/document-project.md +345 -0
  43. package/.knowledge/.ext/.bmad-core/tasks/execute-checklist.md +88 -0
  44. package/.knowledge/.ext/.bmad-core/tasks/facilitate-brainstorming-session.md +138 -0
  45. package/.knowledge/.ext/.bmad-core/tasks/generate-ai-frontend-prompt.md +53 -0
  46. package/.knowledge/.ext/.bmad-core/tasks/index-docs.md +175 -0
  47. package/.knowledge/.ext/.bmad-core/tasks/kb-mode-interaction.md +77 -0
  48. package/.knowledge/.ext/.bmad-core/tasks/nfr-assess.md +345 -0
  49. package/.knowledge/.ext/.bmad-core/tasks/qa-gate.md +163 -0
  50. package/.knowledge/.ext/.bmad-core/tasks/review-story.md +316 -0
  51. package/.knowledge/.ext/.bmad-core/tasks/risk-profile.md +355 -0
  52. package/.knowledge/.ext/.bmad-core/tasks/shard-doc.md +187 -0
  53. package/.knowledge/.ext/.bmad-core/tasks/test-design.md +176 -0
  54. package/.knowledge/.ext/.bmad-core/tasks/trace-requirements.md +266 -0
  55. package/.knowledge/.ext/.bmad-core/tasks/validate-next-story.md +136 -0
  56. package/.knowledge/.ext/.bmad-core/tasks/validate-trd.md +158 -0
  57. package/.knowledge/.ext/.bmad-core/templates/architecture-tmpl.yaml +651 -0
  58. package/.knowledge/.ext/.bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
  59. package/.knowledge/.ext/.bmad-core/templates/brownfield-architecture-tmpl.yaml +478 -0
  60. package/.knowledge/.ext/.bmad-core/templates/brownfield-prd-tmpl.yaml +281 -0
  61. package/.knowledge/.ext/.bmad-core/templates/competitor-analysis-tmpl.yaml +349 -0
  62. package/.knowledge/.ext/.bmad-core/templates/front-end-architecture-tmpl.yaml +273 -0
  63. package/.knowledge/.ext/.bmad-core/templates/front-end-spec-tmpl.yaml +360 -0
  64. package/.knowledge/.ext/.bmad-core/templates/fullstack-architecture-tmpl.yaml +947 -0
  65. package/.knowledge/.ext/.bmad-core/templates/market-research-tmpl.yaml +253 -0
  66. package/.knowledge/.ext/.bmad-core/templates/prd-tmpl.yaml +203 -0
  67. package/.knowledge/.ext/.bmad-core/templates/project-brief-tmpl.yaml +222 -0
  68. package/.knowledge/.ext/.bmad-core/templates/qa-gate-tmpl.yaml +103 -0
  69. package/.knowledge/.ext/.bmad-core/templates/story-tmpl.yaml +138 -0
  70. package/.knowledge/.ext/.bmad-core/templates/trd-tmpl.yaml +198 -0
  71. package/.knowledge/.ext/.bmad-core/user-guide.md +530 -0
  72. package/.knowledge/.ext/.bmad-core/utils/bmad-doc-template.md +327 -0
  73. package/.knowledge/.ext/.bmad-core/utils/workflow-management.md +71 -0
  74. package/.knowledge/.ext/.bmad-core/workflows/brownfield-fullstack.yaml +298 -0
  75. package/.knowledge/.ext/.bmad-core/workflows/brownfield-service.yaml +188 -0
  76. package/.knowledge/.ext/.bmad-core/workflows/brownfield-ui.yaml +198 -0
  77. package/.knowledge/.ext/.bmad-core/workflows/greenfield-fullstack.yaml +241 -0
  78. package/.knowledge/.ext/.bmad-core/workflows/greenfield-service.yaml +207 -0
  79. package/.knowledge/.ext/.bmad-core/workflows/greenfield-ui.yaml +236 -0
  80. package/.knowledge/.ext/.bmad-core/working-in-the-brownfield.md +606 -0
  81. package/.knowledge/.ext/coding/ddd-architecture.md +223 -0
  82. package/.knowledge/.ext/coding/java-standards.md +308 -0
  83. package/.knowledge/.ext/coding/mybatis-standards.md +407 -0
  84. package/.knowledge/.ext/coding/sql-standards.md +263 -0
  85. package/.knowledge/.ext/coding/thrift-service.md +292 -0
  86. package/.knowledge/BMAD.md +255 -0
  87. package/.knowledge/coding.md +135 -0
  88. package/dist/package.json +4 -3
  89. package/dist/src/generated/git-commit.d.ts +2 -2
  90. package/dist/src/generated/git-commit.js +2 -2
  91. package/dist/src/ui/components/Tips.js +1 -1
  92. package/dist/src/ui/components/Tips.js.map +1 -1
  93. package/dist/src/ui/hooks/usePhraseCycler.js +2 -2
  94. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
  95. package/dist/tsconfig.tsbuildinfo +1 -1
  96. package/package.json +4 -3
@@ -0,0 +1,314 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # Create Brownfield Story Task
4
+
5
+ ## Purpose
6
+
7
+ Create detailed, implementation-ready stories for brownfield projects where traditional sharded PRD/architecture documents may not exist. This task bridges the gap between various documentation formats (document-project output, brownfield PRDs, epics, or user documentation) and executable stories for the Dev agent.
8
+
9
+ ## When to Use This Task
10
+
11
+ **Use this task when:**
12
+
13
+ - Working on brownfield projects with non-standard documentation
14
+ - Stories need to be created from document-project output
15
+ - Working from brownfield epics without full PRD/architecture
16
+ - Existing project documentation doesn't follow BMad v4+ structure
17
+ - Need to gather additional context from user during story creation
18
+
19
+ **Use create-next-story when:**
20
+
21
+ - Working with properly sharded PRD and v4 architecture documents
22
+ - Following standard greenfield or well-documented brownfield workflow
23
+ - All technical context is available in structured format
24
+
25
+ ## Task Execution Instructions
26
+
27
+ ### 0. Documentation Context
28
+
29
+ Check for available documentation in this order:
30
+
31
+ 1. **Sharded PRD/Architecture** (docs/prd/, docs/architecture/)
32
+ - If found, recommend using create-next-story task instead
33
+
34
+ 2. **Brownfield Architecture Document** (docs/brownfield-architecture.md or similar)
35
+ - Created by document-project task
36
+ - Contains actual system state, technical debt, workarounds
37
+
38
+ 3. **Brownfield PRD** (docs/prd.md)
39
+ - May contain embedded technical details
40
+
41
+ 4. **Epic Files** (docs/epics/ or similar)
42
+ - Created by brownfield-create-epic task
43
+
44
+ 5. **User-Provided Documentation**
45
+ - Ask user to specify location and format
46
+
47
+ ### 1. Story Identification and Context Gathering
48
+
49
+ #### 1.1 Identify Story Source
50
+
51
+ Based on available documentation:
52
+
53
+ - **From Brownfield PRD**: Extract stories from epic sections
54
+ - **From Epic Files**: Read epic definition and story list
55
+ - **From User Direction**: Ask user which specific enhancement to implement
56
+ - **No Clear Source**: Work with user to define the story scope
57
+
58
+ #### 1.2 Gather Essential Context
59
+
60
+ CRITICAL: For brownfield stories, you MUST gather enough context for safe implementation. Be prepared to ask the user for missing information.
61
+
62
+ **Required Information Checklist:**
63
+
64
+ - [ ] What existing functionality might be affected?
65
+ - [ ] What are the integration points with current code?
66
+ - [ ] What patterns should be followed (with examples)?
67
+ - [ ] What technical constraints exist?
68
+ - [ ] Are there any "gotchas" or workarounds to know about?
69
+
70
+ If any required information is missing, list the missing information and ask the user to provide it.
71
+
72
+ ### 2. Extract Technical Context from Available Sources
73
+
74
+ #### 2.1 From Document-Project Output
75
+
76
+ If using brownfield-architecture.md from document-project:
77
+
78
+ - **Technical Debt Section**: Note any workarounds affecting this story
79
+ - **Key Files Section**: Identify files that will need modification
80
+ - **Integration Points**: Find existing integration patterns
81
+ - **Known Issues**: Check if story touches problematic areas
82
+ - **Actual Tech Stack**: Verify versions and constraints
83
+
84
+ #### 2.2 From Brownfield PRD
85
+
86
+ If using brownfield PRD:
87
+
88
+ - **Technical Constraints Section**: Extract all relevant constraints
89
+ - **Integration Requirements**: Note compatibility requirements
90
+ - **Code Organization**: Follow specified patterns
91
+ - **Risk Assessment**: Understand potential impacts
92
+
93
+ #### 2.3 From User Documentation
94
+
95
+ Ask the user to help identify:
96
+
97
+ - Relevant technical specifications
98
+ - Existing code examples to follow
99
+ - Integration requirements
100
+ - Testing approaches used in the project
101
+
102
+ ### 3. Story Creation with Progressive Detail Gathering
103
+
104
+ #### 3.1 Create Initial Story Structure
105
+
106
+ Start with the story template, filling in what's known:
107
+
108
+ ```markdown
109
+ # Story {{Enhancement Title}}
110
+
111
+ ## Status: Draft
112
+
113
+ ## Story
114
+
115
+ As a {{user_type}},
116
+ I want {{enhancement_capability}},
117
+ so that {{value_delivered}}.
118
+
119
+ ## Context Source
120
+
121
+ - Source Document: {{document name/type}}
122
+ - Enhancement Type: {{single feature/bug fix/integration/etc}}
123
+ - Existing System Impact: {{brief assessment}}
124
+ ```
125
+
126
+ #### 3.2 Develop Acceptance Criteria
127
+
128
+ Critical: For brownfield, ALWAYS include criteria about maintaining existing functionality
129
+
130
+ Standard structure:
131
+
132
+ 1. New functionality works as specified
133
+ 2. Existing {{affected feature}} continues to work unchanged
134
+ 3. Integration with {{existing system}} maintains current behavior
135
+ 4. No regression in {{related area}}
136
+ 5. Performance remains within acceptable bounds
137
+
138
+ #### 3.3 Gather Technical Guidance
139
+
140
+ Critical: This is where you'll need to be interactive with the user if information is missing
141
+
142
+ Create Dev Technical Guidance section with available information:
143
+
144
+ ````markdown
145
+ ## Dev Technical Guidance
146
+
147
+ ### Existing System Context
148
+
149
+ [Extract from available documentation]
150
+
151
+ ### Integration Approach
152
+
153
+ [Based on patterns found or ask user]
154
+
155
+ ### Technical Constraints
156
+
157
+ [From documentation or user input]
158
+
159
+ ### Missing Information
160
+
161
+ Critical: List anything you couldn't find that dev will need and ask for the missing information
162
+
163
+ ### 4. Task Generation with Safety Checks
164
+
165
+ #### 4.1 Generate Implementation Tasks
166
+
167
+ Based on gathered context, create tasks that:
168
+
169
+ - Include exploration tasks if system understanding is incomplete
170
+ - Add verification tasks for existing functionality
171
+ - Include rollback considerations
172
+ - Reference specific files/patterns when known
173
+
174
+ Example task structure for brownfield:
175
+
176
+ ```markdown
177
+ ## Tasks / Subtasks
178
+
179
+ - [ ] Task 1: Analyze existing {{component/feature}} implementation
180
+ - [ ] Review {{specific files}} for current patterns
181
+ - [ ] Document integration points
182
+ - [ ] Identify potential impacts
183
+
184
+ - [ ] Task 2: Implement {{new functionality}}
185
+ - [ ] Follow pattern from {{example file}}
186
+ - [ ] Integrate with {{existing component}}
187
+ - [ ] Maintain compatibility with {{constraint}}
188
+
189
+ - [ ] Task 3: Verify existing functionality
190
+ - [ ] Test {{existing feature 1}} still works
191
+ - [ ] Verify {{integration point}} behavior unchanged
192
+ - [ ] Check performance impact
193
+
194
+ - [ ] Task 4: Add tests
195
+ - [ ] Unit tests following {{project test pattern}}
196
+ - [ ] Integration test for {{integration point}}
197
+ - [ ] Update existing tests if needed
198
+ ```
199
+ ````
200
+
201
+ ### 5. Risk Assessment and Mitigation
202
+
203
+ CRITICAL: for brownfield - always include risk assessment
204
+
205
+ Add section for brownfield-specific risks:
206
+
207
+ ```markdown
208
+ ## Risk Assessment
209
+
210
+ ### Implementation Risks
211
+
212
+ - **Primary Risk**: {{main risk to existing system}}
213
+ - **Mitigation**: {{how to address}}
214
+ - **Verification**: {{how to confirm safety}}
215
+
216
+ ### Rollback Plan
217
+
218
+ - {{Simple steps to undo changes if needed}}
219
+
220
+ ### Safety Checks
221
+
222
+ - [ ] Existing {{feature}} tested before changes
223
+ - [ ] Changes can be feature-flagged or isolated
224
+ - [ ] Rollback procedure documented
225
+ ```
226
+
227
+ ### 6. Final Story Validation
228
+
229
+ Before finalizing:
230
+
231
+ 1. **Completeness Check**:
232
+ - [ ] Story has clear scope and acceptance criteria
233
+ - [ ] Technical context is sufficient for implementation
234
+ - [ ] Integration approach is defined
235
+ - [ ] Risks are identified with mitigation
236
+
237
+ 2. **Safety Check**:
238
+ - [ ] Existing functionality protection included
239
+ - [ ] Rollback plan is feasible
240
+ - [ ] Testing covers both new and existing features
241
+
242
+ 3. **Information Gaps**:
243
+ - [ ] All critical missing information gathered from user
244
+ - [ ] Remaining unknowns documented for dev agent
245
+ - [ ] Exploration tasks added where needed
246
+
247
+ ### 7. Story Output Format
248
+
249
+ Save the story with appropriate naming:
250
+
251
+ - If from epic: `docs/stories/epic-{n}-story-{m}.md`
252
+ - If standalone: `docs/stories/brownfield-{feature-name}.md`
253
+ - If sequential: Follow existing story numbering
254
+
255
+ Include header noting documentation context:
256
+
257
+ ```markdown
258
+ # Story: {{Title}}
259
+
260
+ <!-- Source: {{documentation type used}} -->
261
+ <!-- Context: Brownfield enhancement to {{existing system}} -->
262
+
263
+ ## Status: Draft
264
+
265
+ [Rest of story content...]
266
+ ```
267
+
268
+ ### 8. Handoff Communication
269
+
270
+ Provide clear handoff to the user:
271
+
272
+ ```text
273
+ Brownfield story created: {{story title}}
274
+
275
+ Source Documentation: {{what was used}}
276
+ Story Location: {{file path}}
277
+
278
+ Key Integration Points Identified:
279
+ - {{integration point 1}}
280
+ - {{integration point 2}}
281
+
282
+ Risks Noted:
283
+ - {{primary risk}}
284
+
285
+ {{If missing info}}:
286
+ Note: Some technical details were unclear. The story includes exploration tasks to gather needed information during implementation.
287
+
288
+ Next Steps:
289
+ 1. Review story for accuracy
290
+ 2. Verify integration approach aligns with your system
291
+ 3. Approve story or request adjustments
292
+ 4. Dev agent can then implement with safety checks
293
+ ```
294
+
295
+ ## Success Criteria
296
+
297
+ The brownfield story creation is successful when:
298
+
299
+ 1. Story can be implemented without requiring dev to search multiple documents
300
+ 2. Integration approach is clear and safe for existing system
301
+ 3. All available technical context has been extracted and organized
302
+ 4. Missing information has been identified and addressed
303
+ 5. Risks are documented with mitigation strategies
304
+ 6. Story includes verification of existing functionality
305
+ 7. Rollback approach is defined
306
+
307
+ ## Important Notes
308
+
309
+ - This task is specifically for brownfield projects with non-standard documentation
310
+ - Always prioritize existing system stability over new features
311
+ - When in doubt, add exploration and verification tasks
312
+ - It's better to ask the user for clarification than make assumptions
313
+ - Each story should be self-contained for the dev agent
314
+ - Include references to existing code patterns when available
@@ -0,0 +1,280 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # 深度研究提示任务
4
+
5
+ 这个任务帮你创建各种深度分析的研究提示。可以处理头脑风暴、项目brief、市场调研或具体研究问题的输入,生成有针对性的深度调研提示。
6
+
7
+ ## 目标
8
+
9
+ 生成结构清晰的研究提示,能够:
10
+
11
+ - 明确研究目标和范围
12
+ - 指定合适的研究方法
13
+ - 明确预期交付物和格式
14
+ - 指导复杂问题的系统性调研
15
+ - 确保获得可落地的洞察
16
+
17
+ ## 研究类型选择
18
+
19
+ 关键:先帮用户根据需求和提供的输入文档选择最合适的研究重点。
20
+
21
+ ### 1. 研究重点选项
22
+
23
+ 给用户展示以下选项:
24
+
25
+ 1. **产品验证研究**
26
+ - 验证产品假设和市场匹配度
27
+ - 测试用户需求和解决方案的假设
28
+ - 评估技术和商业可行性
29
+ - 识别风险和应对策略
30
+
31
+ 2. **市场机会研究**
32
+ - 分析市场规模和增长潜力
33
+ - 识别市场细分和动态
34
+ - 评估市场进入策略
35
+ - 判断时机和市场准备度
36
+
37
+ 3. **用户和客户研究**
38
+ - 深入分析用户画像和行为
39
+ - 理解用户需求和痛点
40
+ - 绘制用户旅程和触点
41
+ - 分析付费意愿和价值感知
42
+
43
+ 4. **竞品情报研究**
44
+ - 详细的竞品分析和定位
45
+ - 功能和能力对比
46
+ - 商业模式和策略分析
47
+ - 识别竞争优势和差距
48
+
49
+ 5. **技术和创新研究**
50
+ - 评估技术趋势和可能性
51
+ - 评估技术方案和架构
52
+ - 识别新兴技术和颠覆性变化
53
+ - 分析自建vs采购vs合作选项
54
+
55
+ 6. **行业和生态研究**
56
+ - 梳理行业价值链和动态
57
+ - 识别关键参与者和关系
58
+ - 分析监管和合规因素
59
+ - 挖掘合作机会
60
+
61
+ 7. **战略选项研究**
62
+ - 评估不同战略方向
63
+ - 评估商业模式替代方案
64
+ - 分析市场进入策略
65
+ - 考虑扩张和规模化路径
66
+
67
+ 8. **风险和可行性研究**
68
+ - 识别和评估各种风险因素
69
+ - 评估实施挑战
70
+ - 分析资源需求
71
+ - 考虑监管和法律影响
72
+
73
+ 9. **自定义研究重点**
74
+ - 用户自定义的研究目标
75
+ - 专业领域调研
76
+ - 跨职能研究需求
77
+
78
+ ### 2. 输入处理
79
+
80
+ **如果提供了项目brief:**
81
+
82
+ - 提取关键产品概念和目标
83
+ - 识别目标用户和使用场景
84
+ - 记录技术约束和偏好
85
+ - 突出不确定性和假设
86
+
87
+ **如果提供了头脑风暴结果:**
88
+
89
+ - 梳理主要想法和主题
90
+ - 识别需要验证的领域
91
+ - 提取待测试的假设
92
+ - 记录要探索的创意方向
93
+
94
+ **如果提供了市场研究:**
95
+
96
+ - 基于已识别的机会
97
+ - 深化特定市场洞察
98
+ - 验证初步发现
99
+ - 探索相邻可能性
100
+
101
+ **如果从零开始:**
102
+
103
+ - 通过问题收集必要背景
104
+ - 定义问题空间
105
+ - 明确研究目标
106
+ - 建立成功标准
107
+
108
+ ## 流程
109
+
110
+ ### 3. 研究提示结构
111
+
112
+ 关键:和用户一起开发包含以下组件的综合研究提示。
113
+
114
+ #### A. 研究目标
115
+
116
+ 关键:和用户一起明确研究的具体目标。
117
+
118
+ - 主要研究目标和目的
119
+ - 研究要支持的关键决策
120
+ - 研究的成功标准
121
+ - 约束和边界
122
+
123
+ #### B. 研究问题
124
+
125
+ 关键:和用户一起开发按主题组织的具体、可执行的研究问题。
126
+
127
+ **核心问题:**
128
+
129
+ - 必须回答的核心问题
130
+ - 问题优先级排序
131
+ - 问题间的依赖关系
132
+
133
+ **支持性问题:**
134
+
135
+ - 额外的背景构建问题
136
+ - 锦上添花的洞察
137
+ - 面向未来的考虑
138
+
139
+ #### C. 研究方法
140
+
141
+ **数据收集方法:**
142
+
143
+ - 二手研究来源
144
+ - 一手研究方法(如适用)
145
+ - 数据质量要求
146
+ - 来源可信度标准
147
+
148
+ **分析框架:**
149
+
150
+ - 要应用的具体框架
151
+ - 对比标准
152
+ - 评估方法
153
+ - 综合方法
154
+
155
+ #### D. 输出要求
156
+
157
+ **格式规范:**
158
+
159
+ - 执行摘要要求
160
+ - 详细发现结构
161
+ - 可视化/表格展示
162
+ - 支持文档
163
+
164
+ **关键交付物:**
165
+
166
+ - 必备章节和洞察
167
+ - 决策支持要素
168
+ - 可落地的建议
169
+ - 风险和不确定性文档
170
+
171
+ ### 4. 提示生成
172
+
173
+ **研究提示模板:**
174
+
175
+ ```markdown
176
+ ## 研究目标
177
+
178
+ [明确说明这项研究旨在实现什么]
179
+
180
+ ## 背景信息
181
+
182
+ [来自项目brief、头脑风暴或其他输入的相关信息]
183
+
184
+ ## 研究问题
185
+
186
+ ### 主要问题(必须回答)
187
+
188
+ 1. [具体、可执行的问题]
189
+ 2. [具体、可执行的问题]
190
+ ...
191
+
192
+ ### 次要问题(锦上添花)
193
+
194
+ 1. [支持性问题]
195
+ 2. [支持性问题]
196
+ ...
197
+
198
+ ## 研究方法
199
+
200
+ ### 信息来源
201
+
202
+ - [具体来源类型和优先级]
203
+
204
+ ### 分析框架
205
+
206
+ - [要应用的具体框架]
207
+
208
+ ### 数据要求
209
+
210
+ - [质量、时效性、可信度需求]
211
+
212
+ ## 预期交付物
213
+
214
+ ### 执行摘要
215
+
216
+ - 关键发现和洞察
217
+ - 关键影响
218
+ - 推荐行动
219
+
220
+ ### 详细分析
221
+
222
+ [基于研究类型需要的具体章节]
223
+
224
+ ### 支持材料
225
+
226
+ - 数据表格
227
+ - 对比矩阵
228
+ - 来源文档
229
+
230
+ ## 成功标准
231
+
232
+ [如何评估研究是否实现了目标]
233
+
234
+ ## 时间线和优先级
235
+
236
+ [如适用,任何时间约束或分阶段安排]
237
+ ```
238
+
239
+ ### 5. 审查和优化
240
+
241
+ 1. **展示完整提示**
242
+ - 显示完整的研究提示
243
+ - 解释关键要素和理由
244
+ - 突出任何假设
245
+
246
+ 2. **收集反馈**
247
+ - 目标是否清晰正确?
248
+ - 问题是否解决了所有关切?
249
+ - 范围是否合适?
250
+ - 输出要求是否充分?
251
+
252
+ 3. **根据需要优化**
253
+ - 融入用户反馈
254
+ - 调整范围或重点
255
+ - 添加缺失要素
256
+ - 澄清模糊之处
257
+
258
+ ### 6. 下一步指导
259
+
260
+ **执行选项:**
261
+
262
+ 1. **与AI研究助手配合使用**:把这个提示给有研究能力的AI模型
263
+ 2. **指导人工研究**:作为手动研究工作的框架
264
+ 3. **混合方法**:用这个结构结合AI和人工研究
265
+
266
+ **整合要点:**
267
+
268
+ - 发现如何输入到下一阶段
269
+ - 哪些团队成员应该review结果
270
+ - 如何验证发现
271
+ - 何时重新审视或扩展研究
272
+
273
+ ## 重要说明
274
+
275
+ - 研究提示的质量直接影响收集洞察的质量
276
+ - 研究问题要具体,别太泛泛而谈
277
+ - 考虑当前状态和未来影响
278
+ - 平衡全面性和重点
279
+ - 清楚记录假设和限制
280
+ - 基于初步发现规划迭代优化
@@ -0,0 +1,103 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # 用模板创建文档(YAML 驱动)
4
+
5
+ ## ⚠️ 重要提醒 ⚠️
6
+
7
+ **这是个可执行的工作流程,不是参考文档**
8
+
9
+ 用这个任务时:
10
+
11
+ 1. **别想着偷懒** - 这个流程必须和用户互动
12
+ 2. **必须一步步来** - 每个部分都要按顺序处理,需要用户反馈
13
+ 3. **需要引导用户** - 当 `elicit: true` 时,必须用 1-9 格式等用户回应
14
+ 4. **不能走捷径** - 不按这个流程来就创建不了完整文档
15
+
16
+ **违规警告:** 如果没和用户互动就创建完整文档,那就是违规了。
17
+
18
+ ## 重要:找模板
19
+
20
+ 如果没给 YAML 模板,就把 `.bmad-core/templates` 里的所有模板列出来,或者让用户再提供一个。
21
+
22
+ ## 重要:必须用引导格式
23
+
24
+ **当 `elicit: true` 时,必须停下来等用户:**
25
+
26
+ **你必须这样做:**
27
+
28
+ 1. 把内容展示出来
29
+ 2. 说明理由(解释为什么这么选、做了哪些假设、怎么决定的)
30
+ 3. **停下来,给出 1-9 选项:**
31
+ - **选项 1:** 总是"继续下一部分"
32
+ - **选项 2-9:** 从 data/elicitation-methods 里选 8 种方法
33
+ - 最后写"选择 1-9 或直接输入你的问题/反馈:"
34
+ 4. **等用户回应** - 用户没选选项或给反馈就别继续
35
+
36
+ **违规警告:** 如果 elicit=true 的部分没和用户互动就创建内容,那就是违规。
37
+
38
+ **千万别问是/否问题,也别用其他格式。**
39
+
40
+ ## 处理步骤
41
+
42
+ 1. **解析 YAML 模板** - 把模板的元数据和各个部分加载进来
43
+ 2. **设置偏好** - 显示当前模式(交互式),确认输出文件
44
+ 3. **处理每个部分:**
45
+ - 条件不满足就跳过
46
+ - 检查代理权限(谁拥有/谁可以编辑)- 注意这个部分是不是只给特定代理用
47
+ - 按部分指令来写内容
48
+ - 展示内容 + 详细理由
49
+ - **如果 elicit: true** → 必须用 1-9 选项格式
50
+ - 能保存到文件就保存
51
+ 4. **一直做到完成为止**
52
+
53
+ ## 理由说明要求
54
+
55
+ 展示部分内容时,一定要说明:
56
+
57
+ - 为什么这么选(选了哪个,没选哪个,为什么)
58
+ - 写的时候做了哪些假设
59
+ - 有什么需要用户注意的决策
60
+ - 哪些地方可能需要验证
61
+
62
+ ## 引导结果处理
63
+
64
+ 用户选了引导方法(2-9)后:
65
+
66
+ 1. 从 data/elicitation-methods 执行方法
67
+ 2. 把结果和洞察展示出来
68
+ 3. 给用户选项:
69
+ - **1. 应用更改并更新部分**
70
+ - **2. 返回引导菜单**
71
+ - **3. 提问题或继续参与引导**
72
+
73
+ ## 代理权限
74
+
75
+ 处理有代理权限字段的部分时:
76
+
77
+ - **owner**:注意哪个代理角色最初创建/填充这个部分
78
+ - **editors**:列出可以修改这个部分的代理角色
79
+ - **readonly**:标记创建后不能修改的部分
80
+
81
+ **对于有访问限制的部分:**
82
+
83
+ - 在生成的文档里加上说明负责代理的注释
84
+ - 比如:"_(这个部分由 dev-agent 拥有,只能由 dev-agent 修改)_"
85
+
86
+ ## YOLO 模式
87
+
88
+ 用户输入 `#yolo` 就能切换到 YOLO 模式(一次性处理所有部分)。
89
+
90
+ ## 重要提醒
91
+
92
+ **❌ 千万别:**
93
+
94
+ - 引导时问是/否问题
95
+ - 用除了 1-9 编号选项之外的任何格式
96
+ - 创建新的引导方法
97
+
98
+ **✅ 一定要:**
99
+
100
+ - elicit: true 时用精确的 1-9 格式
101
+ - 只从 data/elicitation-methods 里选选项 2-9
102
+ - 提供解释决策的详细理由
103
+ - 最后写"选择 1-9 或直接输入你的问题/反馈:"