@rdmind/rdmind 0.0.9-alpha.0 → 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 (106) 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
  97. package/template/sns-demo-app/src/main/java/com/xiaohongshu/sns/demo/app/.gitkeep +0 -0
  98. package/template/sns-demo-common/src/main/java/com/xiaohongshu/sns/demo/common/enums/.gitkeep +0 -0
  99. package/template/sns-demo-common/src/main/java/com/xiaohongshu/sns/demo/common/model/.gitkeep +0 -0
  100. package/template/sns-demo-domain/src/main/java/com/xiaohongshu/sns/demo/domain/facade/.gitkeep +0 -0
  101. package/template/sns-demo-domain/src/main/java/com/xiaohongshu/sns/demo/domain/gateway/.gitkeep +0 -0
  102. package/template/sns-demo-infrastructure/src/main/java/com/xiaohongshu/sns/demo/infrastructure/config/threadpool/.gitkeep +0 -0
  103. package/template/sns-demo-infrastructure/src/main/java/com/xiaohongshu/sns/demo/infrastructure/gatewayimpl/.gitkeep +0 -0
  104. package/template/sns-demo-infrastructure/src/main/resources/mapper/.gitkeep +0 -0
  105. package/template/sns-demo-start/src/main/java/com/xiaohongshu/sns/demo/start/config/.gitkeep +0 -0
  106. package/template/sns-demo-start/src/main/java/com/xiaohongshu/sns/demo/start/provider/.gitkeep +0 -0
@@ -0,0 +1,253 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ template:
3
+ id: market-research-template-v2
4
+ name: Market Research Report
5
+ version: 2.0
6
+ output:
7
+ format: markdown
8
+ filename: docs/market-research.md
9
+ title: 'Market Research Report: {{project_product_name}}'
10
+
11
+ workflow:
12
+ mode: interactive
13
+ elicitation: advanced-elicitation
14
+ custom_elicitation:
15
+ title: 'Market Research Elicitation Actions'
16
+ options:
17
+ - 'Expand market sizing calculations with sensitivity analysis'
18
+ - 'Deep dive into a specific customer segment'
19
+ - 'Analyze an emerging market trend in detail'
20
+ - 'Compare this market to an analogous market'
21
+ - 'Stress test market assumptions'
22
+ - 'Explore adjacent market opportunities'
23
+ - 'Challenge market definition and boundaries'
24
+ - 'Generate strategic scenarios (best/base/worst case)'
25
+ - 'If only we had considered [X market factor]...'
26
+ - 'Proceed to next section'
27
+
28
+ sections:
29
+ - id: executive-summary
30
+ title: Executive Summary
31
+ instruction: Provide a high-level overview of key findings, market opportunity assessment, and strategic recommendations. Write this section LAST after completing all other sections.
32
+
33
+ - id: research-objectives
34
+ title: Research Objectives & Methodology
35
+ instruction: This template guides the creation of a comprehensive market research report. Begin by understanding what market insights the user needs and why. Work through each section systematically, using the appropriate analytical frameworks based on the research objectives.
36
+ sections:
37
+ - id: objectives
38
+ title: Research Objectives
39
+ instruction: |
40
+ List the primary objectives of this market research:
41
+ - What decisions will this research inform?
42
+ - What specific questions need to be answered?
43
+ - What are the success criteria for this research?
44
+ - id: methodology
45
+ title: Research Methodology
46
+ instruction: |
47
+ Describe the research approach:
48
+ - Data sources used (primary/secondary)
49
+ - Analysis frameworks applied
50
+ - Data collection timeframe
51
+ - Limitations and assumptions
52
+
53
+ - id: market-overview
54
+ title: Market Overview
55
+ sections:
56
+ - id: market-definition
57
+ title: Market Definition
58
+ instruction: |
59
+ Define the market being analyzed:
60
+ - Product/service category
61
+ - Geographic scope
62
+ - Customer segments included
63
+ - Value chain position
64
+ - id: market-size-growth
65
+ title: Market Size & Growth
66
+ instruction: |
67
+ Guide through TAM, SAM, SOM calculations with clear assumptions. Use one or more approaches:
68
+ - Top-down: Start with industry data, narrow down
69
+ - Bottom-up: Build from customer/unit economics
70
+ - Value theory: Based on value provided vs. alternatives
71
+ sections:
72
+ - id: tam
73
+ title: Total Addressable Market (TAM)
74
+ instruction: Calculate and explain the total market opportunity
75
+ - id: sam
76
+ title: Serviceable Addressable Market (SAM)
77
+ instruction: Define the portion of TAM you can realistically reach
78
+ - id: som
79
+ title: Serviceable Obtainable Market (SOM)
80
+ instruction: Estimate the portion you can realistically capture
81
+ - id: market-trends
82
+ title: Market Trends & Drivers
83
+ instruction: Analyze key trends shaping the market using appropriate frameworks like PESTEL
84
+ sections:
85
+ - id: key-trends
86
+ title: Key Market Trends
87
+ instruction: |
88
+ List and explain 3-5 major trends:
89
+ - Trend 1: Description and impact
90
+ - Trend 2: Description and impact
91
+ - etc.
92
+ - id: growth-drivers
93
+ title: Growth Drivers
94
+ instruction: Identify primary factors driving market growth
95
+ - id: market-inhibitors
96
+ title: Market Inhibitors
97
+ instruction: Identify factors constraining market growth
98
+
99
+ - id: customer-analysis
100
+ title: Customer Analysis
101
+ sections:
102
+ - id: segment-profiles
103
+ title: Target Segment Profiles
104
+ instruction: For each segment, create detailed profiles including demographics/firmographics, psychographics, behaviors, needs, and willingness to pay
105
+ repeatable: true
106
+ sections:
107
+ - id: segment
108
+ title: 'Segment {{segment_number}}: {{segment_name}}'
109
+ template: |
110
+ - **Description:** {{brief_overview}}
111
+ - **Size:** {{number_of_customers_market_value}}
112
+ - **Characteristics:** {{key_demographics_firmographics}}
113
+ - **Needs & Pain Points:** {{primary_problems}}
114
+ - **Buying Process:** {{purchasing_decisions}}
115
+ - **Willingness to Pay:** {{price_sensitivity}}
116
+ - id: jobs-to-be-done
117
+ title: Jobs-to-be-Done Analysis
118
+ instruction: Uncover what customers are really trying to accomplish
119
+ sections:
120
+ - id: functional-jobs
121
+ title: Functional Jobs
122
+ instruction: List practical tasks and objectives customers need to complete
123
+ - id: emotional-jobs
124
+ title: Emotional Jobs
125
+ instruction: Describe feelings and perceptions customers seek
126
+ - id: social-jobs
127
+ title: Social Jobs
128
+ instruction: Explain how customers want to be perceived by others
129
+ - id: customer-journey
130
+ title: Customer Journey Mapping
131
+ instruction: Map the end-to-end customer experience for primary segments
132
+ template: |
133
+ For primary customer segment:
134
+
135
+ 1. **Awareness:** {{discovery_process}}
136
+ 2. **Consideration:** {{evaluation_criteria}}
137
+ 3. **Purchase:** {{decision_triggers}}
138
+ 4. **Onboarding:** {{initial_expectations}}
139
+ 5. **Usage:** {{interaction_patterns}}
140
+ 6. **Advocacy:** {{referral_behaviors}}
141
+
142
+ - id: competitive-landscape
143
+ title: Competitive Landscape
144
+ sections:
145
+ - id: market-structure
146
+ title: Market Structure
147
+ instruction: |
148
+ Describe the overall competitive environment:
149
+ - Number of competitors
150
+ - Market concentration
151
+ - Competitive intensity
152
+ - id: major-players
153
+ title: Major Players Analysis
154
+ instruction: |
155
+ For top 3-5 competitors:
156
+ - Company name and brief description
157
+ - Market share estimate
158
+ - Key strengths and weaknesses
159
+ - Target customer focus
160
+ - Pricing strategy
161
+ - id: competitive-positioning
162
+ title: Competitive Positioning
163
+ instruction: |
164
+ Analyze how competitors are positioned:
165
+ - Value propositions
166
+ - Differentiation strategies
167
+ - Market gaps and opportunities
168
+
169
+ - id: industry-analysis
170
+ title: Industry Analysis
171
+ sections:
172
+ - id: porters-five-forces
173
+ title: Porter's Five Forces Assessment
174
+ instruction: Analyze each force with specific evidence and implications
175
+ sections:
176
+ - id: supplier-power
177
+ title: 'Supplier Power: {{power_level}}'
178
+ template: '{{analysis_and_implications}}'
179
+ - id: buyer-power
180
+ title: 'Buyer Power: {{power_level}}'
181
+ template: '{{analysis_and_implications}}'
182
+ - id: competitive-rivalry
183
+ title: 'Competitive Rivalry: {{intensity_level}}'
184
+ template: '{{analysis_and_implications}}'
185
+ - id: threat-new-entry
186
+ title: 'Threat of New Entry: {{threat_level}}'
187
+ template: '{{analysis_and_implications}}'
188
+ - id: threat-substitutes
189
+ title: 'Threat of Substitutes: {{threat_level}}'
190
+ template: '{{analysis_and_implications}}'
191
+ - id: adoption-lifecycle
192
+ title: Technology Adoption Lifecycle Stage
193
+ instruction: |
194
+ Identify where the market is in the adoption curve:
195
+ - Current stage and evidence
196
+ - Implications for strategy
197
+ - Expected progression timeline
198
+
199
+ - id: opportunity-assessment
200
+ title: Opportunity Assessment
201
+ sections:
202
+ - id: market-opportunities
203
+ title: Market Opportunities
204
+ instruction: Identify specific opportunities based on the analysis
205
+ repeatable: true
206
+ sections:
207
+ - id: opportunity
208
+ title: 'Opportunity {{opportunity_number}}: {{name}}'
209
+ template: |
210
+ - **Description:** {{what_is_the_opportunity}}
211
+ - **Size/Potential:** {{quantified_potential}}
212
+ - **Requirements:** {{needed_to_capture}}
213
+ - **Risks:** {{key_challenges}}
214
+ - id: strategic-recommendations
215
+ title: Strategic Recommendations
216
+ sections:
217
+ - id: go-to-market
218
+ title: Go-to-Market Strategy
219
+ instruction: |
220
+ Recommend approach for market entry/expansion:
221
+ - Target segment prioritization
222
+ - Positioning strategy
223
+ - Channel strategy
224
+ - Partnership opportunities
225
+ - id: pricing-strategy
226
+ title: Pricing Strategy
227
+ instruction: |
228
+ Based on willingness to pay analysis and competitive landscape:
229
+ - Recommended pricing model
230
+ - Price points/ranges
231
+ - Value metric
232
+ - Competitive positioning
233
+ - id: risk-mitigation
234
+ title: Risk Mitigation
235
+ instruction: |
236
+ Key risks and mitigation strategies:
237
+ - Market risks
238
+ - Competitive risks
239
+ - Execution risks
240
+ - Regulatory/compliance risks
241
+
242
+ - id: appendices
243
+ title: Appendices
244
+ sections:
245
+ - id: data-sources
246
+ title: A. Data Sources
247
+ instruction: List all sources used in the research
248
+ - id: calculations
249
+ title: B. Detailed Calculations
250
+ instruction: Include any complex calculations or models
251
+ - id: additional-analysis
252
+ title: C. Additional Analysis
253
+ instruction: Any supplementary analysis not included in main body
@@ -0,0 +1,203 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ template:
3
+ id: prd-template-v2
4
+ name: 产品需求文档
5
+ version: 2.0
6
+ output:
7
+ format: markdown
8
+ filename: docs/prd.md
9
+ title: '{{project_name}} 产品需求文档 (PRD)'
10
+
11
+ workflow:
12
+ mode: interactive
13
+ elicitation: advanced-elicitation
14
+
15
+ sections:
16
+ - id: goals-context
17
+ title: 目标和背景
18
+ instruction: |
19
+ 问问有没有项目brief文档。如果没有项目brief,强烈建议先用project-brief-tmpl建一个(它提供必要的基础:问题陈述、目标用户、成功指标、MVP范围、约束条件)。如果用户坚持不用brief就写PRD,在目标章节收集这些信息。如果有项目brief,review并用它来填充目标(期望结果的bullet列表)和背景(1-2段关于解决什么问题以及为什么),这样我们能确定PRD MVP的范围。无论如何这对确定需求都很关键。包含变更日志表格。
20
+ sections:
21
+ - id: goals
22
+ title: 目标
23
+ type: bullet-list
24
+ instruction: 一行期望结果的bullet列表,PRD成功后会交付的 - 用户和项目期望
25
+ - id: background
26
+ title: 背景
27
+ type: paragraphs
28
+ instruction: 1-2段简短总结背景,比如brief中学到的,不重复目标,解决什么问题以及为什么,当前情况或需求是什么
29
+ - id: changelog
30
+ title: 变更日志
31
+ type: table
32
+ columns: [Date, Version, Description, Author]
33
+ instruction: 跟踪文档版本和变更
34
+
35
+ - id: requirements
36
+ title: 需求
37
+ instruction: 在两个子章节下起草功能和非功能需求列表
38
+ elicit: true
39
+ sections:
40
+ - id: functional
41
+ title: 功能需求
42
+ type: numbered-list
43
+ prefix: FR
44
+ instruction: 每个需求都是一个bullet markdown和以FR开头的标识符序列
45
+ examples:
46
+ - 'FR6: Todo List使用AI检测并警告可能重复但措辞不同的todo项。'
47
+ - id: non-functional
48
+ title: 非功能需求
49
+ type: numbered-list
50
+ prefix: NFR
51
+ instruction: 每个需求都是一个bullet markdown和以NFR开头的标识符序列
52
+ examples:
53
+ - 'NFR1: AWS服务使用应尽量保持在免费额度内。'
54
+
55
+ - id: ui-goals
56
+ title: 用户界面设计目标
57
+ condition: PRD has UX/UI requirements
58
+ instruction: |
59
+ 捕获高级UI/UX愿景来指导设计架构师并告知story创建。步骤:
60
+
61
+ 1. 基于项目上下文用有根据的猜测预填充所有子章节
62
+ 2. 向用户展示完整的渲染章节
63
+ 3. 清楚告诉用户哪里做了假设
64
+ 4. 对不清楚/缺失的元素或需要更多规格的领域问针对性问题
65
+ 5. 这不是详细的UI规格 - 专注于产品愿景和用户目标
66
+ elicit: true
67
+ choices:
68
+ accessibility: [None, WCAG AA, WCAG AAA]
69
+ platforms: [Web Responsive, Mobile Only, Desktop Only, Cross-Platform]
70
+ sections:
71
+ - id: ux-vision
72
+ title: 整体UX愿景
73
+ - id: interaction-paradigms
74
+ title: 关键交互范式
75
+ - id: core-screens
76
+ title: 核心页面和视图
77
+ instruction: 从产品角度看,交付PRD价值和目标需要哪些最关键的页面或视图?这应该是概念性的高级别,用来驱动粗略的Epic或User Stories
78
+ examples:
79
+ - '登录页面'
80
+ - '主仪表板'
81
+ - '项目详情页'
82
+ - '设置页面'
83
+ - id: accessibility
84
+ title: '无障碍性: {None|WCAG AA|WCAG AAA|自定义需求}'
85
+ - id: branding
86
+ title: 品牌
87
+ instruction: 任何必须融入的已知品牌元素或风格指南?
88
+ examples:
89
+ - '复制1900年代早期黑白电影的外观和感觉,包括页面或状态转换时复制胶片损坏或投影机故障的动画效果。'
90
+ - '附上我们企业品牌的完整调色板和tokens。'
91
+ - id: target-platforms
92
+ title: '目标设备和平台: {Web响应式|仅移动端|仅桌面端|跨平台}'
93
+ examples:
94
+ - 'Web响应式,以及所有移动平台'
95
+ - '仅iPhone'
96
+ - 'ASCII Windows桌面'
97
+
98
+ - id: technical-assumptions
99
+ title: 技术假设
100
+ instruction: |
101
+ 收集将指导架构师的技术决策。步骤:
102
+
103
+ 1. 检查.bmad-core/data/technical-preferences.yaml或附加的technical-preferences文件是否存在 - 用它预填充选择
104
+ 2. 询问用户:语言、框架、启动模板、库、API、部署目标
105
+ 3. 对未知的,基于项目目标和MVP范围提供指导
106
+ 4. 记录所有技术选择及理由(为什么这个选择适合项目)
107
+ 5. 这些成为架构师的约束 - 要具体和完整
108
+ elicit: true
109
+ choices:
110
+ repository: [Monorepo, Polyrepo]
111
+ architecture: [Monolith, Microservices, Serverless]
112
+ testing: [Unit Only, Unit + Integration, Full Testing Pyramid]
113
+ sections:
114
+ - id: repository-structure
115
+ title: '仓库结构: {Monorepo|Polyrepo|Multi-repo}'
116
+ - id: service-architecture
117
+ title: 服务架构
118
+ instruction: '关键决策 - 记录高级服务架构(如,单体、微服务、Monorepo内的Serverless函数)。'
119
+ - id: testing-requirements
120
+ title: 测试需求
121
+ instruction: '关键决策 - 记录测试需求,仅单元测试、集成测试、e2e、手动测试、需要手动测试便利方法)。'
122
+ - id: additional-assumptions
123
+ title: 额外技术假设和请求
124
+ instruction: 在起草这个文档的整个过程中,如果提出或发现任何其他适合架构师的技术假设,在这里添加为额外的bullet项
125
+
126
+ - id: epic-list
127
+ title: Epic列表
128
+ instruction: |
129
+ 展示所有epic的高级列表供用户批准。每个epic应该有标题和简短(1句话)的目标陈述。这让用户在深入细节前review整体结构。
130
+
131
+ 关键:Epic必须按敏捷最佳实践逻辑顺序:
132
+
133
+ - 每个epic应该交付重要的、端到端的、完全可部署的可测试功能增量
134
+ - Epic 1必须建立基础项目基础设施(app设置、Git、CI/CD、核心服务),除非我们在现有app上添加新功能,同时也要交付初始功能,即使简单如健康检查路由或显示简单canary页面 - 记住这点当我们为第一个epic生成stories时!
135
+ - 每个后续epic基于之前epic的功能构建,交付部署时为用户或业务提供有形价值的主要功能块
136
+ - 不是每个项目都需要多个epic,epic需要交付价值。例如,完成的API可以交付价值,即使UI未完成并计划在单独的epic中。
137
+ - 倾向于更少的epic,但让用户知道你的理由,如果某些看起来太大或专注于不同事物,提供拆分选项。
138
+ - 横切关注点应该贯穿epic和stories,而不是最终的stories。例如,将日志框架作为epic的最后一个story,或作为项目的最终epic或story会很糟糕,因为我们从一开始就没有日志。
139
+ elicit: true
140
+ examples:
141
+ - 'Epic 1: 基础和核心基础设施:建立项目设置、认证和基本用户管理'
142
+ - 'Epic 2: 核心业务实体:创建和管理主要领域对象的CRUD操作'
143
+ - 'Epic 3: 用户工作流和交互:启用关键用户旅程和业务流程'
144
+ - 'Epic 4: 报告和分析:为用户提供洞察和数据可视化'
145
+
146
+ - id: epic-details
147
+ title: Epic {{epic_number}} {{epic_title}}
148
+ repeatable: true
149
+ instruction: |
150
+ epic列表批准后,将每个epic及其所有stories和验收标准作为一个完整的review单元展示。
151
+
152
+ 为每个epic提供扩展目标(2-3句话描述所有stories将实现的目标和价值)。
153
+
154
+ 关键Story排序需求:
155
+
156
+ - 每个epic内的Stories必须逻辑顺序
157
+ - 每个story应该是"垂直切片",除了项目基础的早期使能stories外,交付完整功能
158
+ - 没有story应该依赖后续story或epic的工作
159
+ - 识别并记录任何直接先决条件stories
160
+ - 专注于"什么"和"为什么"而不是"如何"(将技术实现留给架构师),但要足够精确以支持story到story的逻辑顺序操作。
161
+ - 确保每个story交付明确的用户或业务价值,尽量避免使能器并将它们构建到交付价值的stories中。
162
+ - 为AI代理执行调整story大小:每个story必须可由单个AI代理在一个专注会话中完成,无上下文溢出
163
+ - 想想"初级开发者工作2-4小时" - stories必须小、专注和自包含
164
+ - 如果story看起来复杂,进一步分解,只要它能交付垂直切片
165
+ elicit: true
166
+ template: '{{epic_goal}}'
167
+ sections:
168
+ - id: story
169
+ title: Story {{epic_number}}.{{story_number}} {{story_title}}
170
+ repeatable: true
171
+ template: |
172
+ 作为{{user_type}},
173
+ 我想要{{action}},
174
+ 以便{{benefit}}。
175
+ sections:
176
+ - id: acceptance-criteria
177
+ title: 验收标准
178
+ type: numbered-list
179
+ item_template: '{{criterion_number}}: {{criteria}}'
180
+ repeatable: true
181
+ instruction: |
182
+ 定义清晰、全面和可测试的验收标准:
183
+
184
+ - 从功能角度精确定义"完成"意味着什么
185
+ - 明确无误并作为验证基础
186
+ - 包含PRD中的任何关键非功能需求
187
+ - 考虑后端/数据组件的本地可测试性
188
+ - 在适用时指定UI/UX需求和框架遵循
189
+ - 避免应该在其他stories或PRD章节中的横切关注点
190
+
191
+ - id: checklist-results
192
+ title: Checklist结果报告
193
+ instruction: 在运行checklist和起草提示之前,提供输出完整更新的PRD。如果输出,向用户确认你将继续运行checklist并生成报告。用户确认后,执行pm-checklist并在此章节中填充结果。
194
+
195
+ - id: next-steps
196
+ title: 下一步
197
+ sections:
198
+ - id: ux-expert-prompt
199
+ title: UX专家提示
200
+ instruction: 这个章节将包含UX专家的提示,保持简短和切题,以使用此文档作为输入启动创建架构模式。
201
+ - id: architect-prompt
202
+ title: 架构师提示
203
+ instruction: 这个章节将包含架构师的提示,保持简短和切题,以使用此文档作为输入启动创建架构模式。
@@ -0,0 +1,222 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ template:
3
+ id: project-brief-template-v2
4
+ name: Project Brief
5
+ version: 2.0
6
+ output:
7
+ format: markdown
8
+ filename: docs/brief.md
9
+ title: 'Project Brief: {{project_name}}'
10
+
11
+ workflow:
12
+ mode: interactive
13
+ elicitation: advanced-elicitation
14
+ custom_elicitation:
15
+ title: 'Project Brief 启发行动'
16
+ options:
17
+ - '扩展部分,增加更具体的细节'
18
+ - '与类似成功产品进行验证'
19
+ - '用边缘情况压力测试假设'
20
+ - '探索替代解决方案'
21
+ - '分析资源/约束权衡'
22
+ - '生成风险缓解策略'
23
+ - '从MVP最小化视角挑战范围'
24
+ - '头脑风暴创意功能可能性'
25
+ - '如果我们有[资源/能力/时间]...'
26
+ - '继续下一部分'
27
+
28
+ sections:
29
+ - id: introduction
30
+ instruction: |
31
+ 这个模板指导创建全面的Project Brief,作为产品开发的基础输入。
32
+
33
+ 首先询问用户喜欢哪种模式:
34
+
35
+ 1. **交互模式** - 协作完成每个部分
36
+ 2. **YOLO模式** - 生成完整草稿供审查和优化
37
+
38
+ 开始前,了解有哪些输入可用(头脑风暴结果、市场研究、竞品分析、初步想法)并收集项目上下文。
39
+
40
+ - id: executive-summary
41
+ title: Executive Summary
42
+ instruction: |
43
+ 创建简洁的概述,抓住项目的本质。包括:
44
+ - 用1-2句话描述产品概念
45
+ - 要解决的主要问题
46
+ - 目标市场识别
47
+ - 关键价值主张
48
+ template: '{{executive_summary_content}}'
49
+
50
+ - id: problem-statement
51
+ title: Problem Statement
52
+ instruction: |
53
+ 清晰且有证据地阐述问题。解决:
54
+ - 当前状态和痛点
55
+ - 问题的影响(如果可能,量化)
56
+ - 为什么现有解决方案不够好
57
+ - 现在解决这个问题的紧迫性和重要性
58
+ template: '{{detailed_problem_description}}'
59
+
60
+ - id: proposed-solution
61
+ title: Proposed Solution
62
+ instruction: |
63
+ 从高层次描述解决方案。包括:
64
+ - 核心概念和方法
65
+ - 与现有解决方案的关键差异化
66
+ - 为什么这个解决方案会在其他地方失败的地方成功
67
+ - 产品的高层次愿景
68
+ template: '{{solution_description}}'
69
+
70
+ - id: target-users
71
+ title: Target Users
72
+ instruction: |
73
+ 具体定义和描述目标用户。对每个用户细分包括:
74
+ - 人口统计/企业统计档案
75
+ - 当前行为和工作流
76
+ - 具体需求和痛点
77
+ - 他们想要实现的目标
78
+ sections:
79
+ - id: primary-segment
80
+ title: '主要用户细分: {{segment_name}}'
81
+ template: '{{primary_user_description}}'
82
+ - id: secondary-segment
83
+ title: '次要用户细分: {{segment_name}}'
84
+ condition: Has secondary user segment
85
+ template: '{{secondary_user_description}}'
86
+
87
+ - id: goals-metrics
88
+ title: Goals & Success Metrics
89
+ instruction: 建立清晰的目标和如何衡量成功。让目标变得SMART(具体、可衡量、可实现、相关、有时限)
90
+ sections:
91
+ - id: business-objectives
92
+ title: Business Objectives
93
+ type: bullet-list
94
+ template: '- {{objective_with_metric}}'
95
+ - id: user-success-metrics
96
+ title: User Success Metrics
97
+ type: bullet-list
98
+ template: '- {{user_metric}}'
99
+ - id: kpis
100
+ title: Key Performance Indicators (KPIs)
101
+ type: bullet-list
102
+ template: '- {{kpi}}: {{definition_and_target}}'
103
+
104
+ - id: mvp-scope
105
+ title: MVP Scope
106
+ instruction: 清楚定义最小可行产品。明确什么包含在内,什么不包含。帮助用户区分必须有的和锦上添花的。
107
+ sections:
108
+ - id: core-features
109
+ title: Core Features (Must Have)
110
+ type: bullet-list
111
+ template: '- **{{feature}}:** {{description_and_rationale}}'
112
+ - id: out-of-scope
113
+ title: Out of Scope for MVP
114
+ type: bullet-list
115
+ template: '- {{feature_or_capability}}'
116
+ - id: mvp-success-criteria
117
+ title: MVP Success Criteria
118
+ template: '{{mvp_success_definition}}'
119
+
120
+ - id: post-mvp-vision
121
+ title: Post-MVP Vision
122
+ instruction: 概述长期产品方向,不要过度承诺具体细节
123
+ sections:
124
+ - id: phase-2-features
125
+ title: Phase 2 Features
126
+ template: '{{next_priority_features}}'
127
+ - id: long-term-vision
128
+ title: Long-term Vision
129
+ template: '{{one_two_year_vision}}'
130
+ - id: expansion-opportunities
131
+ title: Expansion Opportunities
132
+ template: '{{potential_expansions}}'
133
+
134
+ - id: technical-considerations
135
+ title: Technical Considerations
136
+ instruction: 记录已知的技术约束和偏好。注意这些是初步想法,不是最终决定。
137
+ sections:
138
+ - id: platform-requirements
139
+ title: Platform Requirements
140
+ template: |
141
+ - **目标平台:** {{platforms}}
142
+ - **浏览器/操作系统支持:** {{specific_requirements}}
143
+ - **性能要求:** {{performance_specs}}
144
+ - id: technology-preferences
145
+ title: Technology Preferences
146
+ template: |
147
+ - **前端:** {{frontend_preferences}}
148
+ - **后端:** {{backend_preferences}}
149
+ - **数据库:** {{database_preferences}}
150
+ - **托管/基础设施:** {{infrastructure_preferences}}
151
+ - id: architecture-considerations
152
+ title: Architecture Considerations
153
+ template: |
154
+ - **仓库结构:** {{repo_thoughts}}
155
+ - **服务架构:** {{service_thoughts}}
156
+ - **集成要求:** {{integration_needs}}
157
+ - **安全/合规:** {{security_requirements}}
158
+
159
+ - id: constraints-assumptions
160
+ title: Constraints & Assumptions
161
+ instruction: 清楚说明限制和假设,设定现实的期望
162
+ sections:
163
+ - id: constraints
164
+ title: Constraints
165
+ template: |
166
+ - **预算:** {{budget_info}}
167
+ - **时间线:** {{timeline_info}}
168
+ - **资源:** {{resource_info}}
169
+ - **技术:** {{technical_constraints}}
170
+ - id: key-assumptions
171
+ title: Key Assumptions
172
+ type: bullet-list
173
+ template: '- {{assumption}}'
174
+
175
+ - id: risks-questions
176
+ title: Risks & Open Questions
177
+ instruction: 主动识别未知和潜在挑战
178
+ sections:
179
+ - id: key-risks
180
+ title: Key Risks
181
+ type: bullet-list
182
+ template: '- **{{risk}}:** {{description_and_impact}}'
183
+ - id: open-questions
184
+ title: Open Questions
185
+ type: bullet-list
186
+ template: '- {{question}}'
187
+ - id: research-areas
188
+ title: Areas Needing Further Research
189
+ type: bullet-list
190
+ template: '- {{research_topic}}'
191
+
192
+ - id: appendices
193
+ title: Appendices
194
+ sections:
195
+ - id: research-summary
196
+ title: A. Research Summary
197
+ condition: Has research findings
198
+ instruction: |
199
+ 如果适用,总结以下关键发现:
200
+ - 市场研究
201
+ - 竞品分析
202
+ - 用户访谈
203
+ - 技术可行性研究
204
+ - id: stakeholder-input
205
+ title: B. Stakeholder Input
206
+ condition: Has stakeholder feedback
207
+ template: '{{stakeholder_feedback}}'
208
+ - id: references
209
+ title: C. References
210
+ template: '{{relevant_links_and_docs}}'
211
+
212
+ - id: next-steps
213
+ title: Next Steps
214
+ sections:
215
+ - id: immediate-actions
216
+ title: Immediate Actions
217
+ type: numbered-list
218
+ template: '{{action_item}}'
219
+ - id: pm-handoff
220
+ title: PM Handoff
221
+ content: |
222
+ 这个Project Brief为{{project_name}}提供了完整的上下文。请以'PRD生成模式'开始,彻底审查brief,与用户协作按模板指示逐部分创建PRD,询问任何必要的澄清或建议改进。