agentvibes 2.4.3-beta.2 → 2.4.3

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 (129) hide show
  1. package/README.md +7 -7
  2. package/RELEASE_NOTES.md +94 -119
  3. package/package.json +1 -1
  4. package/.bmad-core/agent-teams/team-all.yaml +0 -15
  5. package/.bmad-core/agent-teams/team-fullstack.yaml +0 -19
  6. package/.bmad-core/agent-teams/team-ide-minimal.yaml +0 -11
  7. package/.bmad-core/agent-teams/team-no-ui.yaml +0 -14
  8. package/.bmad-core/agents/analyst.md +0 -84
  9. package/.bmad-core/agents/architect.md +0 -85
  10. package/.bmad-core/agents/bmad-master.md +0 -110
  11. package/.bmad-core/agents/bmad-orchestrator.md +0 -147
  12. package/.bmad-core/agents/dev.md +0 -81
  13. package/.bmad-core/agents/pm.md +0 -84
  14. package/.bmad-core/agents/po.md +0 -79
  15. package/.bmad-core/agents/qa.md +0 -87
  16. package/.bmad-core/agents/sm.md +0 -65
  17. package/.bmad-core/agents/ux-expert.md +0 -69
  18. package/.bmad-core/checklists/architect-checklist.md +0 -440
  19. package/.bmad-core/checklists/change-checklist.md +0 -184
  20. package/.bmad-core/checklists/pm-checklist.md +0 -372
  21. package/.bmad-core/checklists/po-master-checklist.md +0 -434
  22. package/.bmad-core/checklists/story-dod-checklist.md +0 -96
  23. package/.bmad-core/checklists/story-draft-checklist.md +0 -155
  24. package/.bmad-core/core-config.yaml +0 -22
  25. package/.bmad-core/data/bmad-kb.md +0 -809
  26. package/.bmad-core/data/brainstorming-techniques.md +0 -38
  27. package/.bmad-core/data/elicitation-methods.md +0 -156
  28. package/.bmad-core/data/technical-preferences.md +0 -5
  29. package/.bmad-core/data/test-levels-framework.md +0 -148
  30. package/.bmad-core/data/test-priorities-matrix.md +0 -174
  31. package/.bmad-core/enhanced-ide-development-workflow.md +0 -248
  32. package/.bmad-core/install-manifest.yaml +0 -230
  33. package/.bmad-core/tasks/advanced-elicitation.md +0 -119
  34. package/.bmad-core/tasks/apply-qa-fixes.md +0 -150
  35. package/.bmad-core/tasks/brownfield-create-epic.md +0 -162
  36. package/.bmad-core/tasks/brownfield-create-story.md +0 -149
  37. package/.bmad-core/tasks/correct-course.md +0 -72
  38. package/.bmad-core/tasks/create-brownfield-story.md +0 -314
  39. package/.bmad-core/tasks/create-deep-research-prompt.md +0 -280
  40. package/.bmad-core/tasks/create-doc.md +0 -103
  41. package/.bmad-core/tasks/create-next-story.md +0 -114
  42. package/.bmad-core/tasks/document-project.md +0 -345
  43. package/.bmad-core/tasks/execute-checklist.md +0 -88
  44. package/.bmad-core/tasks/facilitate-brainstorming-session.md +0 -138
  45. package/.bmad-core/tasks/generate-ai-frontend-prompt.md +0 -53
  46. package/.bmad-core/tasks/index-docs.md +0 -175
  47. package/.bmad-core/tasks/kb-mode-interaction.md +0 -77
  48. package/.bmad-core/tasks/nfr-assess.md +0 -345
  49. package/.bmad-core/tasks/qa-gate.md +0 -163
  50. package/.bmad-core/tasks/review-story.md +0 -316
  51. package/.bmad-core/tasks/risk-profile.md +0 -355
  52. package/.bmad-core/tasks/shard-doc.md +0 -187
  53. package/.bmad-core/tasks/test-design.md +0 -176
  54. package/.bmad-core/tasks/trace-requirements.md +0 -266
  55. package/.bmad-core/tasks/validate-next-story.md +0 -136
  56. package/.bmad-core/templates/architecture-tmpl.yaml +0 -651
  57. package/.bmad-core/templates/brainstorming-output-tmpl.yaml +0 -156
  58. package/.bmad-core/templates/brownfield-architecture-tmpl.yaml +0 -477
  59. package/.bmad-core/templates/brownfield-prd-tmpl.yaml +0 -281
  60. package/.bmad-core/templates/competitor-analysis-tmpl.yaml +0 -307
  61. package/.bmad-core/templates/front-end-architecture-tmpl.yaml +0 -219
  62. package/.bmad-core/templates/front-end-spec-tmpl.yaml +0 -350
  63. package/.bmad-core/templates/fullstack-architecture-tmpl.yaml +0 -824
  64. package/.bmad-core/templates/market-research-tmpl.yaml +0 -253
  65. package/.bmad-core/templates/prd-tmpl.yaml +0 -203
  66. package/.bmad-core/templates/project-brief-tmpl.yaml +0 -222
  67. package/.bmad-core/templates/qa-gate-tmpl.yaml +0 -103
  68. package/.bmad-core/templates/story-tmpl.yaml +0 -138
  69. package/.bmad-core/user-guide.md +0 -577
  70. package/.bmad-core/utils/bmad-doc-template.md +0 -327
  71. package/.bmad-core/utils/workflow-management.md +0 -71
  72. package/.bmad-core/workflows/brownfield-fullstack.yaml +0 -298
  73. package/.bmad-core/workflows/brownfield-service.yaml +0 -188
  74. package/.bmad-core/workflows/brownfield-ui.yaml +0 -198
  75. package/.bmad-core/workflows/greenfield-fullstack.yaml +0 -241
  76. package/.bmad-core/workflows/greenfield-service.yaml +0 -207
  77. package/.bmad-core/workflows/greenfield-ui.yaml +0 -236
  78. package/.bmad-core/working-in-the-brownfield.md +0 -606
  79. package/.claude/commands/BMad/analyst.md +0 -88
  80. package/.claude/commands/BMad/architect.md +0 -89
  81. package/.claude/commands/BMad/bmad-master.md +0 -114
  82. package/.claude/commands/BMad/bmad-orchestrator.md +0 -151
  83. package/.claude/commands/BMad/dev.md +0 -85
  84. package/.claude/commands/BMad/pm.md +0 -88
  85. package/.claude/commands/BMad/po.md +0 -83
  86. package/.claude/commands/BMad/qa.md +0 -91
  87. package/.claude/commands/BMad/sm.md +0 -69
  88. package/.claude/commands/BMad/tasks/advanced-elicitation.md +0 -123
  89. package/.claude/commands/BMad/tasks/apply-qa-fixes.md +0 -154
  90. package/.claude/commands/BMad/tasks/brownfield-create-epic.md +0 -166
  91. package/.claude/commands/BMad/tasks/brownfield-create-story.md +0 -153
  92. package/.claude/commands/BMad/tasks/correct-course.md +0 -76
  93. package/.claude/commands/BMad/tasks/create-brownfield-story.md +0 -318
  94. package/.claude/commands/BMad/tasks/create-deep-research-prompt.md +0 -284
  95. package/.claude/commands/BMad/tasks/create-doc.md +0 -107
  96. package/.claude/commands/BMad/tasks/create-next-story.md +0 -118
  97. package/.claude/commands/BMad/tasks/document-project.md +0 -349
  98. package/.claude/commands/BMad/tasks/execute-checklist.md +0 -92
  99. package/.claude/commands/BMad/tasks/facilitate-brainstorming-session.md +0 -142
  100. package/.claude/commands/BMad/tasks/generate-ai-frontend-prompt.md +0 -57
  101. package/.claude/commands/BMad/tasks/index-docs.md +0 -179
  102. package/.claude/commands/BMad/tasks/kb-mode-interaction.md +0 -81
  103. package/.claude/commands/BMad/tasks/nfr-assess.md +0 -349
  104. package/.claude/commands/BMad/tasks/qa-gate.md +0 -167
  105. package/.claude/commands/BMad/tasks/review-story.md +0 -320
  106. package/.claude/commands/BMad/tasks/risk-profile.md +0 -359
  107. package/.claude/commands/BMad/tasks/shard-doc.md +0 -191
  108. package/.claude/commands/BMad/tasks/test-design.md +0 -180
  109. package/.claude/commands/BMad/tasks/trace-requirements.md +0 -270
  110. package/.claude/commands/BMad/tasks/validate-next-story.md +0 -140
  111. package/.claude/commands/BMad/ux-expert.md +0 -73
  112. package/.claude/github-star-reminder.txt +0 -1
  113. package/.claude/piper-voices-dir.txt +0 -1
  114. package/.claude/plugins/bmad-voices-enabled.flag +0 -0
  115. package/.mcp.json +0 -88
  116. package/RELEASE_NOTES_v2.4.0_DRAFT.md +0 -116
  117. package/RELEASE_NOTES_v2.4.1_DRAFT.md +0 -61
  118. package/docs/2025-11-15_15-14-33.snagx +0 -0
  119. package/docs/Screenshot 2025-11-15 151325.png +0 -0
  120. package/docs/Screenshot 2025-11-15 151432.png +0 -0
  121. package/docs/macos-piper-issue.md +0 -172
  122. package/docs/stargazer-cms-prd.md +0 -1918
  123. package/docs/whatsapp-plugin-github-issue.md +0 -393
  124. package/docs/whatsapp-tts-plugin-feasibility.md +0 -418
  125. package/docs/whatsapp-tts-standalone-plugin.md +0 -628
  126. package/github-profile-draft.md +0 -57
  127. package/linkedin/vibe-coding-and-pulseaudio.md +0 -121
  128. package/mcp-server/agentvibes.db +0 -0
  129. package/scripts/audio-tunnel.config +0 -17
@@ -1,355 +0,0 @@
1
- <!-- Powered by BMAD™ Core -->
2
-
3
- # risk-profile
4
-
5
- Generate a comprehensive risk assessment matrix for a story implementation using probability × impact analysis.
6
-
7
- ## Inputs
8
-
9
- ```yaml
10
- required:
11
- - story_id: '{epic}.{story}' # e.g., "1.3"
12
- - story_path: 'docs/stories/{epic}.{story}.*.md'
13
- - story_title: '{title}' # If missing, derive from story file H1
14
- - story_slug: '{slug}' # If missing, derive from title (lowercase, hyphenated)
15
- ```
16
-
17
- ## Purpose
18
-
19
- Identify, assess, and prioritize risks in the story implementation. Provide risk mitigation strategies and testing focus areas based on risk levels.
20
-
21
- ## Risk Assessment Framework
22
-
23
- ### Risk Categories
24
-
25
- **Category Prefixes:**
26
-
27
- - `TECH`: Technical Risks
28
- - `SEC`: Security Risks
29
- - `PERF`: Performance Risks
30
- - `DATA`: Data Risks
31
- - `BUS`: Business Risks
32
- - `OPS`: Operational Risks
33
-
34
- 1. **Technical Risks (TECH)**
35
- - Architecture complexity
36
- - Integration challenges
37
- - Technical debt
38
- - Scalability concerns
39
- - System dependencies
40
-
41
- 2. **Security Risks (SEC)**
42
- - Authentication/authorization flaws
43
- - Data exposure vulnerabilities
44
- - Injection attacks
45
- - Session management issues
46
- - Cryptographic weaknesses
47
-
48
- 3. **Performance Risks (PERF)**
49
- - Response time degradation
50
- - Throughput bottlenecks
51
- - Resource exhaustion
52
- - Database query optimization
53
- - Caching failures
54
-
55
- 4. **Data Risks (DATA)**
56
- - Data loss potential
57
- - Data corruption
58
- - Privacy violations
59
- - Compliance issues
60
- - Backup/recovery gaps
61
-
62
- 5. **Business Risks (BUS)**
63
- - Feature doesn't meet user needs
64
- - Revenue impact
65
- - Reputation damage
66
- - Regulatory non-compliance
67
- - Market timing
68
-
69
- 6. **Operational Risks (OPS)**
70
- - Deployment failures
71
- - Monitoring gaps
72
- - Incident response readiness
73
- - Documentation inadequacy
74
- - Knowledge transfer issues
75
-
76
- ## Risk Analysis Process
77
-
78
- ### 1. Risk Identification
79
-
80
- For each category, identify specific risks:
81
-
82
- ```yaml
83
- risk:
84
- id: 'SEC-001' # Use prefixes: SEC, PERF, DATA, BUS, OPS, TECH
85
- category: security
86
- title: 'Insufficient input validation on user forms'
87
- description: 'Form inputs not properly sanitized could lead to XSS attacks'
88
- affected_components:
89
- - 'UserRegistrationForm'
90
- - 'ProfileUpdateForm'
91
- detection_method: 'Code review revealed missing validation'
92
- ```
93
-
94
- ### 2. Risk Assessment
95
-
96
- Evaluate each risk using probability × impact:
97
-
98
- **Probability Levels:**
99
-
100
- - `High (3)`: Likely to occur (>70% chance)
101
- - `Medium (2)`: Possible occurrence (30-70% chance)
102
- - `Low (1)`: Unlikely to occur (<30% chance)
103
-
104
- **Impact Levels:**
105
-
106
- - `High (3)`: Severe consequences (data breach, system down, major financial loss)
107
- - `Medium (2)`: Moderate consequences (degraded performance, minor data issues)
108
- - `Low (1)`: Minor consequences (cosmetic issues, slight inconvenience)
109
-
110
- ### Risk Score = Probability × Impact
111
-
112
- - 9: Critical Risk (Red)
113
- - 6: High Risk (Orange)
114
- - 4: Medium Risk (Yellow)
115
- - 2-3: Low Risk (Green)
116
- - 1: Minimal Risk (Blue)
117
-
118
- ### 3. Risk Prioritization
119
-
120
- Create risk matrix:
121
-
122
- ```markdown
123
- ## Risk Matrix
124
-
125
- | Risk ID | Description | Probability | Impact | Score | Priority |
126
- | -------- | ----------------------- | ----------- | ---------- | ----- | -------- |
127
- | SEC-001 | XSS vulnerability | High (3) | High (3) | 9 | Critical |
128
- | PERF-001 | Slow query on dashboard | Medium (2) | Medium (2) | 4 | Medium |
129
- | DATA-001 | Backup failure | Low (1) | High (3) | 3 | Low |
130
- ```
131
-
132
- ### 4. Risk Mitigation Strategies
133
-
134
- For each identified risk, provide mitigation:
135
-
136
- ```yaml
137
- mitigation:
138
- risk_id: 'SEC-001'
139
- strategy: 'preventive' # preventive|detective|corrective
140
- actions:
141
- - 'Implement input validation library (e.g., validator.js)'
142
- - 'Add CSP headers to prevent XSS execution'
143
- - 'Sanitize all user inputs before storage'
144
- - 'Escape all outputs in templates'
145
- testing_requirements:
146
- - 'Security testing with OWASP ZAP'
147
- - 'Manual penetration testing of forms'
148
- - 'Unit tests for validation functions'
149
- residual_risk: 'Low - Some zero-day vulnerabilities may remain'
150
- owner: 'dev'
151
- timeline: 'Before deployment'
152
- ```
153
-
154
- ## Outputs
155
-
156
- ### Output 1: Gate YAML Block
157
-
158
- Generate for pasting into gate file under `risk_summary`:
159
-
160
- **Output rules:**
161
-
162
- - Only include assessed risks; do not emit placeholders
163
- - Sort risks by score (desc) when emitting highest and any tabular lists
164
- - If no risks: totals all zeros, omit highest, keep recommendations arrays empty
165
-
166
- ```yaml
167
- # risk_summary (paste into gate file):
168
- risk_summary:
169
- totals:
170
- critical: X # score 9
171
- high: Y # score 6
172
- medium: Z # score 4
173
- low: W # score 2-3
174
- highest:
175
- id: SEC-001
176
- score: 9
177
- title: 'XSS on profile form'
178
- recommendations:
179
- must_fix:
180
- - 'Add input sanitization & CSP'
181
- monitor:
182
- - 'Add security alerts for auth endpoints'
183
- ```
184
-
185
- ### Output 2: Markdown Report
186
-
187
- **Save to:** `qa.qaLocation/assessments/{epic}.{story}-risk-{YYYYMMDD}.md`
188
-
189
- ```markdown
190
- # Risk Profile: Story {epic}.{story}
191
-
192
- Date: {date}
193
- Reviewer: Quinn (Test Architect)
194
-
195
- ## Executive Summary
196
-
197
- - Total Risks Identified: X
198
- - Critical Risks: Y
199
- - High Risks: Z
200
- - Risk Score: XX/100 (calculated)
201
-
202
- ## Critical Risks Requiring Immediate Attention
203
-
204
- ### 1. [ID]: Risk Title
205
-
206
- **Score: 9 (Critical)**
207
- **Probability**: High - Detailed reasoning
208
- **Impact**: High - Potential consequences
209
- **Mitigation**:
210
-
211
- - Immediate action required
212
- - Specific steps to take
213
- **Testing Focus**: Specific test scenarios needed
214
-
215
- ## Risk Distribution
216
-
217
- ### By Category
218
-
219
- - Security: X risks (Y critical)
220
- - Performance: X risks (Y critical)
221
- - Data: X risks (Y critical)
222
- - Business: X risks (Y critical)
223
- - Operational: X risks (Y critical)
224
-
225
- ### By Component
226
-
227
- - Frontend: X risks
228
- - Backend: X risks
229
- - Database: X risks
230
- - Infrastructure: X risks
231
-
232
- ## Detailed Risk Register
233
-
234
- [Full table of all risks with scores and mitigations]
235
-
236
- ## Risk-Based Testing Strategy
237
-
238
- ### Priority 1: Critical Risk Tests
239
-
240
- - Test scenarios for critical risks
241
- - Required test types (security, load, chaos)
242
- - Test data requirements
243
-
244
- ### Priority 2: High Risk Tests
245
-
246
- - Integration test scenarios
247
- - Edge case coverage
248
-
249
- ### Priority 3: Medium/Low Risk Tests
250
-
251
- - Standard functional tests
252
- - Regression test suite
253
-
254
- ## Risk Acceptance Criteria
255
-
256
- ### Must Fix Before Production
257
-
258
- - All critical risks (score 9)
259
- - High risks affecting security/data
260
-
261
- ### Can Deploy with Mitigation
262
-
263
- - Medium risks with compensating controls
264
- - Low risks with monitoring in place
265
-
266
- ### Accepted Risks
267
-
268
- - Document any risks team accepts
269
- - Include sign-off from appropriate authority
270
-
271
- ## Monitoring Requirements
272
-
273
- Post-deployment monitoring for:
274
-
275
- - Performance metrics for PERF risks
276
- - Security alerts for SEC risks
277
- - Error rates for operational risks
278
- - Business KPIs for business risks
279
-
280
- ## Risk Review Triggers
281
-
282
- Review and update risk profile when:
283
-
284
- - Architecture changes significantly
285
- - New integrations added
286
- - Security vulnerabilities discovered
287
- - Performance issues reported
288
- - Regulatory requirements change
289
- ```
290
-
291
- ## Risk Scoring Algorithm
292
-
293
- Calculate overall story risk score:
294
-
295
- ```text
296
- Base Score = 100
297
- For each risk:
298
- - Critical (9): Deduct 20 points
299
- - High (6): Deduct 10 points
300
- - Medium (4): Deduct 5 points
301
- - Low (2-3): Deduct 2 points
302
-
303
- Minimum score = 0 (extremely risky)
304
- Maximum score = 100 (minimal risk)
305
- ```
306
-
307
- ## Risk-Based Recommendations
308
-
309
- Based on risk profile, recommend:
310
-
311
- 1. **Testing Priority**
312
- - Which tests to run first
313
- - Additional test types needed
314
- - Test environment requirements
315
-
316
- 2. **Development Focus**
317
- - Code review emphasis areas
318
- - Additional validation needed
319
- - Security controls to implement
320
-
321
- 3. **Deployment Strategy**
322
- - Phased rollout for high-risk changes
323
- - Feature flags for risky features
324
- - Rollback procedures
325
-
326
- 4. **Monitoring Setup**
327
- - Metrics to track
328
- - Alerts to configure
329
- - Dashboard requirements
330
-
331
- ## Integration with Quality Gates
332
-
333
- **Deterministic gate mapping:**
334
-
335
- - Any risk with score ≥ 9 → Gate = FAIL (unless waived)
336
- - Else if any score ≥ 6 → Gate = CONCERNS
337
- - Else → Gate = PASS
338
- - Unmitigated risks → Document in gate
339
-
340
- ### Output 3: Story Hook Line
341
-
342
- **Print this line for review task to quote:**
343
-
344
- ```text
345
- Risk profile: qa.qaLocation/assessments/{epic}.{story}-risk-{YYYYMMDD}.md
346
- ```
347
-
348
- ## Key Principles
349
-
350
- - Identify risks early and systematically
351
- - Use consistent probability × impact scoring
352
- - Provide actionable mitigation strategies
353
- - Link risks to specific test requirements
354
- - Track residual risk after mitigation
355
- - Update risk profile as story evolves
@@ -1,187 +0,0 @@
1
- <!-- Powered by BMAD™ Core -->
2
-
3
- # Document Sharding Task
4
-
5
- ## Purpose
6
-
7
- - Split a large document into multiple smaller documents based on level 2 sections
8
- - Create a folder structure to organize the sharded documents
9
- - Maintain all content integrity including code blocks, diagrams, and markdown formatting
10
-
11
- ## Primary Method: Automatic with markdown-tree
12
-
13
- [[LLM: First, check if markdownExploder is set to true in .bmad-core/core-config.yaml. If it is, attempt to run the command: `md-tree explode {input file} {output path}`.
14
-
15
- If the command succeeds, inform the user that the document has been sharded successfully and STOP - do not proceed further.
16
-
17
- If the command fails (especially with an error indicating the command is not found or not available), inform the user: "The markdownExploder setting is enabled but the md-tree command is not available. Please either:
18
-
19
- 1. Install @kayvan/markdown-tree-parser globally with: `npm install -g @kayvan/markdown-tree-parser`
20
- 2. Or set markdownExploder to false in .bmad-core/core-config.yaml
21
-
22
- **IMPORTANT: STOP HERE - do not proceed with manual sharding until one of the above actions is taken.**"
23
-
24
- If markdownExploder is set to false, inform the user: "The markdownExploder setting is currently false. For better performance and reliability, you should:
25
-
26
- 1. Set markdownExploder to true in .bmad-core/core-config.yaml
27
- 2. Install @kayvan/markdown-tree-parser globally with: `npm install -g @kayvan/markdown-tree-parser`
28
-
29
- I will now proceed with the manual sharding process."
30
-
31
- Then proceed with the manual method below ONLY if markdownExploder is false.]]
32
-
33
- ### Installation and Usage
34
-
35
- 1. **Install globally**:
36
-
37
- ```bash
38
- npm install -g @kayvan/markdown-tree-parser
39
- ```
40
-
41
- 2. **Use the explode command**:
42
-
43
- ```bash
44
- # For PRD
45
- md-tree explode docs/prd.md docs/prd
46
-
47
- # For Architecture
48
- md-tree explode docs/architecture.md docs/architecture
49
-
50
- # For any document
51
- md-tree explode [source-document] [destination-folder]
52
- ```
53
-
54
- 3. **What it does**:
55
- - Automatically splits the document by level 2 sections
56
- - Creates properly named files
57
- - Adjusts heading levels appropriately
58
- - Handles all edge cases with code blocks and special markdown
59
-
60
- If the user has @kayvan/markdown-tree-parser installed, use it and skip the manual process below.
61
-
62
- ---
63
-
64
- ## Manual Method (if @kayvan/markdown-tree-parser is not available or user indicated manual method)
65
-
66
- ### Task Instructions
67
-
68
- 1. Identify Document and Target Location
69
-
70
- - Determine which document to shard (user-provided path)
71
- - Create a new folder under `docs/` with the same name as the document (without extension)
72
- - Example: `docs/prd.md` → create folder `docs/prd/`
73
-
74
- 2. Parse and Extract Sections
75
-
76
- CRITICAL AEGNT SHARDING RULES:
77
-
78
- 1. Read the entire document content
79
- 2. Identify all level 2 sections (## headings)
80
- 3. For each level 2 section:
81
- - Extract the section heading and ALL content until the next level 2 section
82
- - Include all subsections, code blocks, diagrams, lists, tables, etc.
83
- - Be extremely careful with:
84
- - Fenced code blocks (```) - ensure you capture the full block including closing backticks and account for potential misleading level 2's that are actually part of a fenced section example
85
- - Mermaid diagrams - preserve the complete diagram syntax
86
- - Nested markdown elements
87
- - Multi-line content that might contain ## inside code blocks
88
-
89
- CRITICAL: Use proper parsing that understands markdown context. A ## inside a code block is NOT a section header.]]
90
-
91
- ### 3. Create Individual Files
92
-
93
- For each extracted section:
94
-
95
- 1. **Generate filename**: Convert the section heading to lowercase-dash-case
96
- - Remove special characters
97
- - Replace spaces with dashes
98
- - Example: "## Tech Stack" → `tech-stack.md`
99
-
100
- 2. **Adjust heading levels**:
101
- - The level 2 heading becomes level 1 (# instead of ##) in the sharded new document
102
- - All subsection levels decrease by 1:
103
-
104
- ```txt
105
- - ### → ##
106
- - #### → ###
107
- - ##### → ####
108
- - etc.
109
- ```
110
-
111
- 3. **Write content**: Save the adjusted content to the new file
112
-
113
- ### 4. Create Index File
114
-
115
- Create an `index.md` file in the sharded folder that:
116
-
117
- 1. Contains the original level 1 heading and any content before the first level 2 section
118
- 2. Lists all the sharded files with links:
119
-
120
- ```markdown
121
- # Original Document Title
122
-
123
- [Original introduction content if any]
124
-
125
- ## Sections
126
-
127
- - [Section Name 1](./section-name-1.md)
128
- - [Section Name 2](./section-name-2.md)
129
- - [Section Name 3](./section-name-3.md)
130
- ...
131
- ```
132
-
133
- ### 5. Preserve Special Content
134
-
135
- 1. **Code blocks**: Must capture complete blocks including:
136
-
137
- ```language
138
- content
139
- ```
140
-
141
- 2. **Mermaid diagrams**: Preserve complete syntax:
142
-
143
- ```mermaid
144
- graph TD
145
- ...
146
- ```
147
-
148
- 3. **Tables**: Maintain proper markdown table formatting
149
-
150
- 4. **Lists**: Preserve indentation and nesting
151
-
152
- 5. **Inline code**: Preserve backticks
153
-
154
- 6. **Links and references**: Keep all markdown links intact
155
-
156
- 7. **Template markup**: If documents contain {{placeholders}} ,preserve exactly
157
-
158
- ### 6. Validation
159
-
160
- After sharding:
161
-
162
- 1. Verify all sections were extracted
163
- 2. Check that no content was lost
164
- 3. Ensure heading levels were properly adjusted
165
- 4. Confirm all files were created successfully
166
-
167
- ### 7. Report Results
168
-
169
- Provide a summary:
170
-
171
- ```text
172
- Document sharded successfully:
173
- - Source: [original document path]
174
- - Destination: docs/[folder-name]/
175
- - Files created: [count]
176
- - Sections:
177
- - section-name-1.md: "Section Title 1"
178
- - section-name-2.md: "Section Title 2"
179
- ...
180
- ```
181
-
182
- ## Important Notes
183
-
184
- - Never modify the actual content, only adjust heading levels
185
- - Preserve ALL formatting, including whitespace where significant
186
- - Handle edge cases like sections with code blocks containing ## symbols
187
- - Ensure the sharding is reversible (could reconstruct the original from shards)
@@ -1,176 +0,0 @@
1
- <!-- Powered by BMAD™ Core -->
2
-
3
- # test-design
4
-
5
- Create comprehensive test scenarios with appropriate test level recommendations for story implementation.
6
-
7
- ## Inputs
8
-
9
- ```yaml
10
- required:
11
- - story_id: '{epic}.{story}' # e.g., "1.3"
12
- - story_path: '{devStoryLocation}/{epic}.{story}.*.md' # Path from core-config.yaml
13
- - story_title: '{title}' # If missing, derive from story file H1
14
- - story_slug: '{slug}' # If missing, derive from title (lowercase, hyphenated)
15
- ```
16
-
17
- ## Purpose
18
-
19
- Design a complete test strategy that identifies what to test, at which level (unit/integration/e2e), and why. This ensures efficient test coverage without redundancy while maintaining appropriate test boundaries.
20
-
21
- ## Dependencies
22
-
23
- ```yaml
24
- data:
25
- - test-levels-framework.md # Unit/Integration/E2E decision criteria
26
- - test-priorities-matrix.md # P0/P1/P2/P3 classification system
27
- ```
28
-
29
- ## Process
30
-
31
- ### 1. Analyze Story Requirements
32
-
33
- Break down each acceptance criterion into testable scenarios. For each AC:
34
-
35
- - Identify the core functionality to test
36
- - Determine data variations needed
37
- - Consider error conditions
38
- - Note edge cases
39
-
40
- ### 2. Apply Test Level Framework
41
-
42
- **Reference:** Load `test-levels-framework.md` for detailed criteria
43
-
44
- Quick rules:
45
-
46
- - **Unit**: Pure logic, algorithms, calculations
47
- - **Integration**: Component interactions, DB operations
48
- - **E2E**: Critical user journeys, compliance
49
-
50
- ### 3. Assign Priorities
51
-
52
- **Reference:** Load `test-priorities-matrix.md` for classification
53
-
54
- Quick priority assignment:
55
-
56
- - **P0**: Revenue-critical, security, compliance
57
- - **P1**: Core user journeys, frequently used
58
- - **P2**: Secondary features, admin functions
59
- - **P3**: Nice-to-have, rarely used
60
-
61
- ### 4. Design Test Scenarios
62
-
63
- For each identified test need, create:
64
-
65
- ```yaml
66
- test_scenario:
67
- id: '{epic}.{story}-{LEVEL}-{SEQ}'
68
- requirement: 'AC reference'
69
- priority: P0|P1|P2|P3
70
- level: unit|integration|e2e
71
- description: 'What is being tested'
72
- justification: 'Why this level was chosen'
73
- mitigates_risks: ['RISK-001'] # If risk profile exists
74
- ```
75
-
76
- ### 5. Validate Coverage
77
-
78
- Ensure:
79
-
80
- - Every AC has at least one test
81
- - No duplicate coverage across levels
82
- - Critical paths have multiple levels
83
- - Risk mitigations are addressed
84
-
85
- ## Outputs
86
-
87
- ### Output 1: Test Design Document
88
-
89
- **Save to:** `qa.qaLocation/assessments/{epic}.{story}-test-design-{YYYYMMDD}.md`
90
-
91
- ```markdown
92
- # Test Design: Story {epic}.{story}
93
-
94
- Date: {date}
95
- Designer: Quinn (Test Architect)
96
-
97
- ## Test Strategy Overview
98
-
99
- - Total test scenarios: X
100
- - Unit tests: Y (A%)
101
- - Integration tests: Z (B%)
102
- - E2E tests: W (C%)
103
- - Priority distribution: P0: X, P1: Y, P2: Z
104
-
105
- ## Test Scenarios by Acceptance Criteria
106
-
107
- ### AC1: {description}
108
-
109
- #### Scenarios
110
-
111
- | ID | Level | Priority | Test | Justification |
112
- | ------------ | ----------- | -------- | ------------------------- | ------------------------ |
113
- | 1.3-UNIT-001 | Unit | P0 | Validate input format | Pure validation logic |
114
- | 1.3-INT-001 | Integration | P0 | Service processes request | Multi-component flow |
115
- | 1.3-E2E-001 | E2E | P1 | User completes journey | Critical path validation |
116
-
117
- [Continue for all ACs...]
118
-
119
- ## Risk Coverage
120
-
121
- [Map test scenarios to identified risks if risk profile exists]
122
-
123
- ## Recommended Execution Order
124
-
125
- 1. P0 Unit tests (fail fast)
126
- 2. P0 Integration tests
127
- 3. P0 E2E tests
128
- 4. P1 tests in order
129
- 5. P2+ as time permits
130
- ```
131
-
132
- ### Output 2: Gate YAML Block
133
-
134
- Generate for inclusion in quality gate:
135
-
136
- ```yaml
137
- test_design:
138
- scenarios_total: X
139
- by_level:
140
- unit: Y
141
- integration: Z
142
- e2e: W
143
- by_priority:
144
- p0: A
145
- p1: B
146
- p2: C
147
- coverage_gaps: [] # List any ACs without tests
148
- ```
149
-
150
- ### Output 3: Trace References
151
-
152
- Print for use by trace-requirements task:
153
-
154
- ```text
155
- Test design matrix: qa.qaLocation/assessments/{epic}.{story}-test-design-{YYYYMMDD}.md
156
- P0 tests identified: {count}
157
- ```
158
-
159
- ## Quality Checklist
160
-
161
- Before finalizing, verify:
162
-
163
- - [ ] Every AC has test coverage
164
- - [ ] Test levels are appropriate (not over-testing)
165
- - [ ] No duplicate coverage across levels
166
- - [ ] Priorities align with business risk
167
- - [ ] Test IDs follow naming convention
168
- - [ ] Scenarios are atomic and independent
169
-
170
- ## Key Principles
171
-
172
- - **Shift left**: Prefer unit over integration, integration over E2E
173
- - **Risk-based**: Focus on what could go wrong
174
- - **Efficient coverage**: Test once at the right level
175
- - **Maintainability**: Consider long-term test maintenance
176
- - **Fast feedback**: Quick tests run first