bmad-method 6.0.0-alpha.17 → 6.0.0-alpha.18

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 (186) hide show
  1. package/CHANGELOG.md +97 -0
  2. package/package.json +1 -1
  3. package/src/modules/bmgd/_module-installer/installer.js +160 -0
  4. package/src/modules/bmgd/_module-installer/platform-specifics/claude-code.js +23 -0
  5. package/src/modules/bmgd/_module-installer/platform-specifics/windsurf.js +18 -0
  6. package/src/modules/bmgd/agents/game-architect.agent.yaml +23 -8
  7. package/src/modules/bmgd/agents/game-designer.agent.yaml +38 -18
  8. package/src/modules/bmgd/agents/game-dev.agent.yaml +30 -14
  9. package/src/modules/bmgd/agents/game-qa.agent.yaml +64 -0
  10. package/src/modules/bmgd/agents/game-scrum-master.agent.yaml +27 -39
  11. package/src/modules/bmgd/agents/game-solo-dev.agent.yaml +56 -0
  12. package/src/modules/bmgd/docs/README.md +180 -0
  13. package/src/modules/bmgd/docs/agents-guide.md +407 -0
  14. package/src/modules/bmgd/docs/game-types-guide.md +503 -0
  15. package/src/modules/bmgd/docs/glossary.md +294 -0
  16. package/src/modules/bmgd/docs/quick-flow-guide.md +288 -0
  17. package/src/modules/bmgd/docs/quick-start.md +250 -0
  18. package/src/modules/bmgd/docs/troubleshooting.md +259 -0
  19. package/src/modules/bmgd/docs/workflow-overview.jpg +0 -0
  20. package/src/modules/bmgd/docs/workflows-guide.md +463 -0
  21. package/src/modules/bmgd/gametest/knowledge/balance-testing.md +220 -0
  22. package/src/modules/bmgd/gametest/knowledge/certification-testing.md +319 -0
  23. package/src/modules/bmgd/gametest/knowledge/compatibility-testing.md +228 -0
  24. package/src/modules/bmgd/gametest/knowledge/godot-testing.md +376 -0
  25. package/src/modules/bmgd/gametest/knowledge/input-testing.md +315 -0
  26. package/src/modules/bmgd/gametest/knowledge/localization-testing.md +304 -0
  27. package/src/modules/bmgd/gametest/knowledge/multiplayer-testing.md +322 -0
  28. package/src/modules/bmgd/gametest/knowledge/performance-testing.md +204 -0
  29. package/src/modules/bmgd/gametest/knowledge/playtesting.md +384 -0
  30. package/src/modules/bmgd/gametest/knowledge/qa-automation.md +190 -0
  31. package/src/modules/bmgd/gametest/knowledge/regression-testing.md +280 -0
  32. package/src/modules/bmgd/gametest/knowledge/save-testing.md +280 -0
  33. package/src/modules/bmgd/gametest/knowledge/smoke-testing.md +404 -0
  34. package/src/modules/bmgd/gametest/knowledge/test-priorities.md +271 -0
  35. package/src/modules/bmgd/gametest/knowledge/unity-testing.md +383 -0
  36. package/src/modules/bmgd/gametest/knowledge/unreal-testing.md +388 -0
  37. package/src/modules/bmgd/gametest/qa-index.csv +17 -0
  38. package/src/modules/bmgd/module.yaml +25 -9
  39. package/src/modules/bmgd/teams/default-party.csv +2 -0
  40. package/src/modules/bmgd/teams/team-gamedev.yaml +12 -1
  41. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-01-init.md +164 -0
  42. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-02-context.md +210 -0
  43. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-03-ideation.md +289 -0
  44. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-04-complete.md +275 -0
  45. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/workflow.md +49 -0
  46. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/workflow.yaml +29 -8
  47. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01-init.md +223 -0
  48. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-01b-continue.md +151 -0
  49. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-02-vision.md +218 -0
  50. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-03-market.md +218 -0
  51. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-04-fundamentals.md +231 -0
  52. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-05-scope.md +242 -0
  53. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-06-references.md +224 -0
  54. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-07-content.md +282 -0
  55. package/src/modules/bmgd/workflows/1-preproduction/game-brief/steps/step-08-complete.md +296 -0
  56. package/src/modules/bmgd/workflows/1-preproduction/game-brief/workflow.md +62 -0
  57. package/src/modules/bmgd/workflows/1-preproduction/game-brief/workflow.yaml +40 -9
  58. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-01-init.md +248 -0
  59. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-01b-continue.md +173 -0
  60. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-02-context.md +332 -0
  61. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-03-platforms.md +245 -0
  62. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-04-vision.md +229 -0
  63. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-05-core-gameplay.md +258 -0
  64. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-06-mechanics.md +249 -0
  65. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-07-game-type.md +266 -0
  66. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-08-progression.md +272 -0
  67. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-09-levels.md +264 -0
  68. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-10-art-audio.md +255 -0
  69. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-11-technical.md +275 -0
  70. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-12-epics.md +284 -0
  71. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-13-metrics.md +250 -0
  72. package/src/modules/bmgd/workflows/2-design/gdd/steps/step-14-complete.md +335 -0
  73. package/src/modules/bmgd/workflows/2-design/gdd/workflow.md +61 -0
  74. package/src/modules/bmgd/workflows/2-design/gdd/workflow.yaml +27 -7
  75. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-01-init.md +228 -0
  76. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-01b-continue.md +163 -0
  77. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-02-foundation.md +262 -0
  78. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-03-story.md +238 -0
  79. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-04-characters.md +297 -0
  80. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-05-world.md +262 -0
  81. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-06-dialogue.md +250 -0
  82. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-07-environmental.md +244 -0
  83. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-08-delivery.md +264 -0
  84. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-09-integration.md +254 -0
  85. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-10-production.md +262 -0
  86. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-11-complete.md +331 -0
  87. package/src/modules/bmgd/workflows/2-design/narrative/workflow.md +57 -0
  88. package/src/modules/bmgd/workflows/2-design/narrative/workflow.yaml +53 -8
  89. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01-init.md +223 -0
  90. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-01b-continue.md +153 -0
  91. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-02-context.md +262 -0
  92. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-03-starter.md +290 -0
  93. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-04-decisions.md +300 -0
  94. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-05-crosscutting.md +319 -0
  95. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-06-structure.md +304 -0
  96. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-07-patterns.md +349 -0
  97. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-08-validation.md +293 -0
  98. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-09-complete.md +302 -0
  99. package/src/modules/bmgd/workflows/3-technical/game-architecture/workflow.md +55 -0
  100. package/src/modules/bmgd/workflows/3-technical/game-architecture/workflow.yaml +50 -21
  101. package/src/modules/bmgd/workflows/4-production/code-review/checklist.md +23 -0
  102. package/src/modules/bmgd/workflows/4-production/code-review/instructions.xml +225 -0
  103. package/src/modules/bmgd/workflows/4-production/code-review/workflow.yaml +18 -15
  104. package/src/modules/bmgd/workflows/4-production/correct-course/checklist.md +1 -1
  105. package/src/modules/bmgd/workflows/4-production/correct-course/instructions.md +1 -1
  106. package/src/modules/bmgd/workflows/4-production/correct-course/workflow.yaml +11 -6
  107. package/src/modules/bmgd/workflows/4-production/create-story/checklist.md +332 -214
  108. package/src/modules/bmgd/workflows/4-production/create-story/instructions.xml +298 -0
  109. package/src/modules/bmgd/workflows/4-production/create-story/template.md +3 -5
  110. package/src/modules/bmgd/workflows/4-production/create-story/workflow.yaml +12 -7
  111. package/src/modules/bmgd/workflows/4-production/dev-story/checklist.md +65 -23
  112. package/src/modules/bmgd/workflows/4-production/dev-story/instructions.xml +409 -0
  113. package/src/modules/bmgd/workflows/4-production/dev-story/workflow.yaml +13 -3
  114. package/src/modules/bmgd/workflows/4-production/retrospective/instructions.md +4 -4
  115. package/src/modules/bmgd/workflows/4-production/retrospective/workflow.yaml +12 -7
  116. package/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md +32 -41
  117. package/src/modules/bmgd/workflows/4-production/sprint-planning/sprint-status-template.yaml +13 -13
  118. package/src/modules/bmgd/workflows/4-production/sprint-planning/workflow.yaml +6 -1
  119. package/src/modules/bmgd/workflows/4-production/sprint-status/instructions.md +229 -0
  120. package/src/modules/bmgd/workflows/4-production/sprint-status/workflow.yaml +35 -0
  121. package/src/modules/bmgd/workflows/bmgd-quick-flow/create-tech-spec/instructions.md +140 -0
  122. package/src/modules/bmgd/workflows/bmgd-quick-flow/create-tech-spec/workflow.yaml +27 -0
  123. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-dev/checklist.md +37 -0
  124. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-dev/instructions.md +220 -0
  125. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-dev/workflow.yaml +45 -0
  126. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-prototype/checklist.md +26 -0
  127. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-prototype/instructions.md +156 -0
  128. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-prototype/workflow.yaml +36 -0
  129. package/src/modules/bmgd/workflows/gametest/automate/checklist.md +93 -0
  130. package/src/modules/bmgd/workflows/gametest/automate/instructions.md +317 -0
  131. package/src/modules/bmgd/workflows/gametest/automate/workflow.yaml +50 -0
  132. package/src/modules/bmgd/workflows/gametest/performance/checklist.md +96 -0
  133. package/src/modules/bmgd/workflows/gametest/performance/instructions.md +323 -0
  134. package/src/modules/bmgd/workflows/gametest/performance/performance-template.md +256 -0
  135. package/src/modules/bmgd/workflows/gametest/performance/workflow.yaml +48 -0
  136. package/src/modules/bmgd/workflows/gametest/playtest-plan/checklist.md +93 -0
  137. package/src/modules/bmgd/workflows/gametest/playtest-plan/instructions.md +297 -0
  138. package/src/modules/bmgd/workflows/gametest/playtest-plan/playtest-template.md +208 -0
  139. package/src/modules/bmgd/workflows/gametest/playtest-plan/workflow.yaml +59 -0
  140. package/src/modules/bmgd/workflows/gametest/test-design/checklist.md +98 -0
  141. package/src/modules/bmgd/workflows/gametest/test-design/instructions.md +280 -0
  142. package/src/modules/bmgd/workflows/gametest/test-design/test-design-template.md +205 -0
  143. package/src/modules/bmgd/workflows/gametest/test-design/workflow.yaml +47 -0
  144. package/src/modules/bmgd/workflows/gametest/test-framework/checklist.md +103 -0
  145. package/src/modules/bmgd/workflows/gametest/test-framework/instructions.md +348 -0
  146. package/src/modules/bmgd/workflows/gametest/test-framework/workflow.yaml +48 -0
  147. package/src/modules/bmgd/workflows/gametest/test-review/checklist.md +87 -0
  148. package/src/modules/bmgd/workflows/gametest/test-review/instructions.md +272 -0
  149. package/src/modules/bmgd/workflows/gametest/test-review/test-review-template.md +203 -0
  150. package/src/modules/bmgd/workflows/gametest/test-review/workflow.yaml +48 -0
  151. package/src/modules/bmgd/workflows/workflow-status/init/instructions.md +299 -0
  152. package/src/modules/bmgd/workflows/workflow-status/init/workflow.yaml +29 -0
  153. package/src/modules/bmgd/workflows/workflow-status/instructions.md +395 -0
  154. package/src/modules/bmgd/workflows/workflow-status/paths/gamedev-brownfield.yaml +65 -0
  155. package/src/modules/bmgd/workflows/workflow-status/paths/gamedev-greenfield.yaml +71 -0
  156. package/src/modules/bmgd/workflows/workflow-status/paths/quickflow-brownfield.yaml +29 -0
  157. package/src/modules/bmgd/workflows/workflow-status/paths/quickflow-greenfield.yaml +39 -0
  158. package/src/modules/bmgd/workflows/workflow-status/project-levels.yaml +63 -0
  159. package/src/modules/bmgd/workflows/workflow-status/workflow-status-template.yaml +24 -0
  160. package/src/modules/bmgd/workflows/workflow-status/workflow.yaml +30 -0
  161. package/tools/cli/commands/install.js +9 -0
  162. package/tools/cli/installers/lib/core/installer.js +109 -109
  163. package/tools/cli/installers/lib/core/installer.js.bak +3204 -0
  164. package/tools/cli/installers/lib/modules/manager.js +16 -4
  165. package/tools/cli/lib/agent/compiler.js +99 -0
  166. package/tools/cli/lib/ui.js +78 -27
  167. package/src/modules/bmgd/workflows/2-design/gdd/instructions-gdd.md +0 -502
  168. package/src/modules/bmgd/workflows/4-production/code-review/instructions.md +0 -398
  169. package/src/modules/bmgd/workflows/4-production/create-story/instructions.md +0 -256
  170. package/src/modules/bmgd/workflows/4-production/dev-story/instructions.md +0 -267
  171. package/src/modules/bmgd/workflows/4-production/epic-tech-context/checklist.md +0 -17
  172. package/src/modules/bmgd/workflows/4-production/epic-tech-context/instructions.md +0 -164
  173. package/src/modules/bmgd/workflows/4-production/epic-tech-context/template.md +0 -76
  174. package/src/modules/bmgd/workflows/4-production/epic-tech-context/workflow.yaml +0 -58
  175. package/src/modules/bmgd/workflows/4-production/story-context/checklist.md +0 -16
  176. package/src/modules/bmgd/workflows/4-production/story-context/context-template.xml +0 -34
  177. package/src/modules/bmgd/workflows/4-production/story-context/instructions.md +0 -209
  178. package/src/modules/bmgd/workflows/4-production/story-context/workflow.yaml +0 -63
  179. package/src/modules/bmgd/workflows/4-production/story-done/instructions.md +0 -111
  180. package/src/modules/bmgd/workflows/4-production/story-done/workflow.yaml +0 -28
  181. package/src/modules/bmgd/workflows/4-production/story-ready/instructions.md +0 -117
  182. package/src/modules/bmgd/workflows/4-production/story-ready/workflow.yaml +0 -25
  183. /package/src/modules/bmgd/workflows/1-preproduction/game-brief/{template.md → templates/game-brief-template.md} +0 -0
  184. /package/src/modules/bmgd/workflows/2-design/gdd/{gdd-template.md → templates/gdd-template.md} +0 -0
  185. /package/src/modules/bmgd/workflows/2-design/narrative/{narrative-template.md → templates/narrative-template.md} +0 -0
  186. /package/src/modules/bmgd/workflows/3-technical/game-architecture/{architecture-template.md → templates/architecture-template.md} +0 -0
@@ -1,240 +1,358 @@
1
- # Create Story Quality Validation Checklist
2
-
3
- ```xml
4
- <critical>This validation runs in a FRESH CONTEXT by an independent validator agent</critical>
5
- <critical>The validator audits story quality and offers to improve if issues are found</critical>
6
- <critical>Load only the story file and necessary source documents - do NOT load workflow instructions</critical>
7
-
8
- <validation-checklist>
9
-
10
- <expectations>
11
- **What create-story workflow should have accomplished:**
12
-
13
- 1. **Previous Story Continuity:** If a previous story exists (status: done/review/in-progress), current story should have "Learnings from Previous Story" subsection in Dev Notes that references: new files created, completion notes, architectural decisions, unresolved review items
14
- 2. **Source Document Coverage:** Story should cite tech spec (if exists), epics, PRD, and relevant architecture docs (architecture.md, testing-strategy.md, coding-standards.md, unified-project-structure.md)
15
- 3. **Requirements Traceability:** ACs sourced from tech spec (preferred) or epics, not invented
16
- 4. **Dev Notes Quality:** Specific guidance with citations, not generic advice
17
- 5. **Task-AC Mapping:** Every AC has tasks, every task references AC, testing subtasks present
18
- 6. **Structure:** Status="drafted", proper story statement, Dev Agent Record sections initialized
19
- </expectations>
20
-
21
- ## Validation Steps
22
-
23
- ### 1. Load Story and Extract Metadata
24
- - [ ] Load story file: {{story_file_path}}
25
- - [ ] Parse sections: Status, Story, ACs, Tasks, Dev Notes, Dev Agent Record, Change Log
26
- - [ ] Extract: epic_num, story_num, story_key, story_title
27
- - [ ] Initialize issue tracker (Critical/Major/Minor)
28
-
29
- ### 2. Previous Story Continuity Check
30
-
31
- **Find previous story:**
32
- - [ ] Load {output_folder}/sprint-status.yaml
33
- - [ ] Find current {{story_key}} in development_status
34
- - [ ] Identify story entry immediately above (previous story)
35
- - [ ] Check previous story status
36
-
37
- **If previous story status is done/review/in-progress:**
38
- - [ ] Load previous story file: {story_dir}/{{previous_story_key}}.md
39
- - [ ] Extract: Dev Agent Record (Completion Notes, File List with NEW/MODIFIED)
40
- - [ ] Extract: Senior Developer Review section if present
41
- - [ ] Count unchecked [ ] items in Review Action Items
42
- - [ ] Count unchecked [ ] items in Review Follow-ups (AI)
43
-
44
- **Validate current story captured continuity:**
45
- - [ ] Check: "Learnings from Previous Story" subsection exists in Dev Notes
46
- - If MISSING and previous story has content → **CRITICAL ISSUE**
47
- - [ ] If subsection exists, verify it includes:
48
- - [ ] References to NEW files from previous story → If missing → **MAJOR ISSUE**
49
- - [ ] Mentions completion notes/warnings → If missing → **MAJOR ISSUE**
50
- - [ ] Calls out unresolved review items (if any exist) → If missing → **CRITICAL ISSUE**
51
- - [ ] Cites previous story: [Source: stories/{{previous_story_key}}.md]
52
-
53
- **If previous story status is backlog/drafted:**
54
- - [ ] No continuity expected (note this)
55
-
56
- **If no previous story exists:**
57
- - [ ] First story in epic, no continuity expected
58
-
59
- ### 3. Source Document Coverage Check
60
-
61
- **Build available docs list:**
62
- - [ ] Check exists: tech-spec-epic-{{epic_num}}*.md in {tech_spec_search_dir}
63
- - [ ] Check exists: {output_folder}/epics.md
64
- - [ ] Check exists: {output_folder}/PRD.md
65
- - [ ] Check exists in {output_folder}/ or {project-root}/docs/:
66
- - architecture.md, testing-strategy.md, coding-standards.md
67
- - unified-project-structure.md, tech-stack.md
68
- - backend-architecture.md, frontend-architecture.md, data-models.md
69
-
70
- **Validate story references available docs:**
71
- - [ ] Extract all [Source: ...] citations from story Dev Notes
72
- - [ ] Tech spec exists but not cited → **CRITICAL ISSUE**
73
- - [ ] Epics exists but not cited → **CRITICAL ISSUE**
74
- - [ ] Architecture.md exists → Read for relevance → If relevant but not cited → **MAJOR ISSUE**
75
- - [ ] Testing-strategy.md exists Check Dev Notes mentions testing standards If not → **MAJOR ISSUE**
76
- - [ ] Testing-strategy.md exists Check Tasks have testing subtasks If not → **MAJOR ISSUE**
77
- - [ ] Coding-standards.md exists → Check Dev Notes references standards → If not → **MAJOR ISSUE**
78
- - [ ] Unified-project-structure.md exists Check Dev Notes has "Project Structure Notes" subsection → If not → **MAJOR ISSUE**
79
-
80
- **Validate citation quality:**
81
- - [ ] Verify cited file paths are correct and files exist → Bad citations → **MAJOR ISSUE**
82
- - [ ] Check citations include section names, not just file paths → Vague citations → **MINOR ISSUE**
83
-
84
- ### 4. Acceptance Criteria Quality Check
85
-
86
- - [ ] Extract Acceptance Criteria from story
87
- - [ ] Count ACs: {{ac_count}} (if 0 → **CRITICAL ISSUE** and halt)
88
- - [ ] Check story indicates AC source (tech spec, epics, PRD)
89
-
90
- **If tech spec exists:**
91
- - [ ] Load tech spec
92
- - [ ] Search for this story number
93
- - [ ] Extract tech spec ACs for this story
94
- - [ ] Compare story ACs vs tech spec ACs → If mismatch → **MAJOR ISSUE**
95
-
96
- **If no tech spec but epics.md exists:**
97
- - [ ] Load epics.md
98
- - [ ] Search for Epic {{epic_num}}, Story {{story_num}}
99
- - [ ] Story not found in epics → **CRITICAL ISSUE** (should have halted)
100
- - [ ] Extract epics ACs
101
- - [ ] Compare story ACs vs epics ACs → If mismatch without justification → **MAJOR ISSUE**
102
-
103
- **Validate AC quality:**
104
- - [ ] Each AC is testable (measurable outcome)
105
- - [ ] Each AC is specific (not vague)
106
- - [ ] Each AC is atomic (single concern)
107
- - [ ] Vague ACs found → **MINOR ISSUE**
108
-
109
- ### 5. Task-AC Mapping Check
110
-
111
- - [ ] Extract Tasks/Subtasks from story
112
- - [ ] For each AC: Search tasks for "(AC: #{{ac_num}})" reference
113
- - [ ] AC has no tasks → **MAJOR ISSUE**
114
- - [ ] For each task: Check if references an AC number
115
- - [ ] Tasks without AC refs (and not testing/setup) → **MINOR ISSUE**
116
- - [ ] Count tasks with testing subtasks
117
- - [ ] Testing subtasks < ac_count → **MAJOR ISSUE**
118
-
119
- ### 6. Dev Notes Quality Check
120
-
121
- **Check required subsections exist:**
122
- - [ ] Architecture patterns and constraints
123
- - [ ] References (with citations)
124
- - [ ] Project Structure Notes (if unified-project-structure.md exists)
125
- - [ ] Learnings from Previous Story (if previous story has content)
126
- - [ ] Missing required subsections → **MAJOR ISSUE**
127
-
128
- **Validate content quality:**
129
- - [ ] Architecture guidance is specific (not generic "follow architecture docs") → If generic → **MAJOR ISSUE**
130
- - [ ] Count citations in References subsection
131
- - [ ] No citations → **MAJOR ISSUE**
132
- - [ ] < 3 citations and multiple arch docs exist **MINOR ISSUE**
133
- - [ ] Scan for suspicious specifics without citations:
134
- - API endpoints, schema details, business rules, tech choices
135
- - [ ] Likely invented details found → **MAJOR ISSUE**
136
-
137
- ### 7. Story Structure Check
138
-
139
- - [ ] Status = "drafted" → If not → **MAJOR ISSUE**
140
- - [ ] Story section has "As a / I want / so that" format → If malformed → **MAJOR ISSUE**
141
- - [ ] Dev Agent Record has required sections:
142
- - Context Reference, Agent Model Used, Debug Log References, Completion Notes List, File List
143
- - [ ] Missing sections **MAJOR ISSUE**
144
- - [ ] Change Log initialized If missing → **MINOR ISSUE**
145
- - [ ] File in correct location: {story_dir}/{{story_key}}.md If not → **MAJOR ISSUE**
146
-
147
- ### 8. Unresolved Review Items Alert
148
-
149
- **CRITICAL CHECK for incomplete review items from previous story:**
150
-
151
- - [ ] If previous story has "Senior Developer Review (AI)" section:
152
- - [ ] Count unchecked [ ] items in "Action Items"
153
- - [ ] Count unchecked [ ] items in "Review Follow-ups (AI)"
154
- - [ ] If unchecked items > 0:
155
- - [ ] Check current story "Learnings from Previous Story" mentions these
156
- - [ ] If NOT mentioned → **CRITICAL ISSUE** with details:
157
- - List all unchecked items with severity
158
- - Note: "These may represent epic-wide concerns"
159
- - Required: Add to Learnings section with note about pending items
160
-
161
- ## Validation Report Generation
162
-
163
- **Calculate severity counts:**
164
- - Critical: {{critical_count}}
165
- - Major: {{major_count}}
166
- - Minor: {{minor_count}}
167
-
168
- **Determine outcome:**
169
- - Critical > 0 OR Major > 3 → **FAIL**
170
- - Major ≤ 3 and Critical = 0 → **PASS with issues**
171
- - All = 0 **PASS**
172
-
173
- **Generate report:**
1
+ # 🎯 Story Context Quality Competition Prompt
2
+
3
+ ## **🔥 CRITICAL MISSION: Outperform and Fix the Original Create-Story LLM**
4
+
5
+ You are an independent quality validator in a **FRESH CONTEXT**. Your mission is to **thoroughly review** a story file that was generated by the create-story workflow and **systematically identify any mistakes, omissions, or disasters** that the original LLM missed.
6
+
7
+ **Your purpose is NOT just to validate - it's to FIX and PREVENT LLM developer mistakes, omissions, or disasters!**
8
+
9
+ ### **🚨 CRITICAL MISTAKES TO PREVENT:**
10
+
11
+ - **Reinventing wheels** - Creating duplicate functionality instead of reusing existing
12
+ - **Wrong libraries** - Using incorrect frameworks, versions, or dependencies
13
+ - **Wrong file locations** - Violating project structure and organization
14
+ - **Breaking regressions** - Implementing changes that break existing functionality
15
+ - **Ignoring UX** - Not following user experience design requirements
16
+ - **Vague implementations** - Creating unclear, ambiguous implementations
17
+ - **Lying about completion** - Implementing incorrectly or incompletely
18
+ - **Not learning from past work** - Ignoring previous story learnings and patterns
19
+
20
+ ### **🚨 EXHAUSTIVE ANALYSIS REQUIRED:**
21
+
22
+ You must thoroughly analyze **ALL artifacts** to extract critical context - do NOT be lazy or skim! This is the most important quality control function in the entire development process!
23
+
24
+ ### **🔬 UTILIZE SUBPROCESSES AND SUBAGENTS:**
25
+
26
+ Use research subagents, subprocesses, or parallel processing if available to thoroughly analyze different artifacts **simultaneously and thoroughly**. Leave no stone unturned!
27
+
28
+ ### **🎯 COMPETITIVE EXCELLENCE:**
29
+
30
+ This is a COMPETITION to create the **ULTIMATE story context** that makes LLM developer mistakes **IMPOSSIBLE**!
31
+
32
+ ## **🚀 HOW TO USE THIS CHECKLIST**
33
+
34
+ ### **When Running from Create-Story Workflow:**
35
+
36
+ - The `{project_root}/_bmad/core/tasks/validate-workflow.xml` framework will automatically:
37
+ - Load this checklist file
38
+ - Load the newly created story file (`{story_file_path}`)
39
+ - Load workflow variables from `{installed_path}/workflow.yaml`
40
+ - Execute the validation process
41
+
42
+ ### **When Running in Fresh Context:**
43
+
44
+ - User should provide the story file path being reviewed
45
+ - Load the story file directly
46
+ - Load the corresponding workflow.yaml for variable context
47
+ - Proceed with systematic analysis
48
+
49
+ ### **Required Inputs:**
50
+
51
+ - **Story file**: The story file to review and improve
52
+ - **Workflow variables**: From workflow.yaml (story_dir, output_folder, epics_file, etc.)
53
+ - **Source documents**: Epics, architecture, etc. (discovered or provided)
54
+ - **Validation framework**: `validate-workflow.xml` (handles checklist execution)
55
+
56
+ ---
57
+
58
+ ## **🔬 SYSTEMATIC RE-ANALYSIS APPROACH**
59
+
60
+ You will systematically re-do the entire story creation process, but with a critical eye for what the original LLM might have missed:
61
+
62
+ ### **Step 1: Load and Understand the Target**
63
+
64
+ 1. **Load the workflow configuration**: `{installed_path}/workflow.yaml` for variable inclusion
65
+ 2. **Load the story file**: `{story_file_path}` (provided by user or discovered)
66
+ 3. **Load validation framework**: `{project_root}/_bmad/core/tasks/validate-workflow.xml`
67
+ 4. **Extract metadata**: epic_num, story_num, story_key, story_title from story file
68
+ 5. **Resolve all workflow variables**: story_dir, output_folder, epics_file, architecture_file, etc.
69
+ 6. **Understand current status**: What story implementation guidance is currently provided?
70
+
71
+ **Note:** If running in fresh context, user should provide the story file path being reviewed. If running from create-story workflow, the validation framework will automatically discover the checklist and story file.
72
+
73
+ ### **Step 2: Exhaustive Source Document Analysis**
74
+
75
+ **🔥 CRITICAL: Treat this like YOU are creating the story from scratch to PREVENT DISASTERS!**
76
+ **Discover everything the original LLM missed that could cause developer mistakes, omissions, or disasters!**
77
+
78
+ #### **2.1 Epics and Stories Analysis**
79
+
80
+ - Load `{epics_file}` (or sharded equivalents)
81
+ - Extract **COMPLETE Epic {{epic_num}} context**:
82
+ - Epic objectives and business value
83
+ - ALL stories in this epic (for cross-story context)
84
+ - Our specific story's requirements, acceptance criteria
85
+ - Technical requirements and constraints
86
+ - Cross-story dependencies and prerequisites
87
+
88
+ #### **2.2 Architecture Deep-Dive**
89
+
90
+ - Load `{architecture_file}` (single or sharded)
91
+ - **Systematically scan for ANYTHING relevant to this story:**
92
+ - Technical stack with versions (languages, frameworks, libraries)
93
+ - Code structure and organization patterns
94
+ - API design patterns and contracts
95
+ - Database schemas and relationships
96
+ - Security requirements and patterns
97
+ - Performance requirements and optimization strategies
98
+ - Testing standards and frameworks
99
+ - Deployment and environment patterns
100
+ - Integration patterns and external services
101
+
102
+ #### **2.3 Previous Story Intelligence (if applicable)**
103
+
104
+ - If `story_num > 1`, load the previous story file
105
+ - Extract **actionable intelligence**:
106
+ - Dev notes and learnings
107
+ - Review feedback and corrections needed
108
+ - Files created/modified and their patterns
109
+ - Testing approaches that worked/didn't work
110
+ - Problems encountered and solutions found
111
+ - Code patterns and conventions established
112
+
113
+ #### **2.4 Git History Analysis (if available)**
114
+
115
+ - Analyze recent commits for patterns:
116
+ - Files created/modified in previous work
117
+ - Code patterns and conventions used
118
+ - Library dependencies added/changed
119
+ - Architecture decisions implemented
120
+ - Testing approaches used
121
+
122
+ #### **2.5 Latest Technical Research**
123
+
124
+ - Identify any libraries/frameworks mentioned
125
+ - Research latest versions and critical information:
126
+ - Breaking changes or security updates
127
+ - Performance improvements or deprecations
128
+ - Best practices for current versions
129
+
130
+ ### **Step 3: Disaster Prevention Gap Analysis**
131
+
132
+ **🚨 CRITICAL: Identify every mistake the original LLM missed that could cause DISASTERS!**
133
+
134
+ #### **3.1 Reinvention Prevention Gaps**
135
+
136
+ - **Wheel reinvention:** Areas where developer might create duplicate functionality
137
+ - **Code reuse opportunities** not identified that could prevent redundant work
138
+ - **Existing solutions** not mentioned that developer should extend instead of replace
139
+
140
+ #### **3.2 Technical Specification DISASTERS**
141
+
142
+ - **Wrong libraries/frameworks:** Missing version requirements that could cause compatibility issues
143
+ - **API contract violations:** Missing endpoint specifications that could break integrations
144
+ - **Database schema conflicts:** Missing requirements that could corrupt data
145
+ - **Security vulnerabilities:** Missing security requirements that could expose the system
146
+ - **Performance disasters:** Missing requirements that could cause system failures
147
+
148
+ #### **3.3 File Structure DISASTERS**
149
+
150
+ - **Wrong file locations:** Missing organization requirements that could break build processes
151
+ - **Coding standard violations:** Missing conventions that could create inconsistent codebase
152
+ - **Integration pattern breaks:** Missing data flow requirements that could cause system failures
153
+ - **Deployment failures:** Missing environment requirements that could prevent deployment
154
+
155
+ #### **3.4 Regression DISASTERS**
156
+
157
+ - **Breaking changes:** Missing requirements that could break existing functionality
158
+ - **Test failures:** Missing test requirements that could allow bugs to reach production
159
+ - **UX violations:** Missing user experience requirements that could ruin the product
160
+ - **Learning failures:** Missing previous story context that could repeat same mistakes
161
+
162
+ #### **3.5 Implementation DISASTERS**
163
+
164
+ - **Vague implementations:** Missing details that could lead to incorrect or incomplete work
165
+ - **Completion lies:** Missing acceptance criteria that could allow fake implementations
166
+ - **Scope creep:** Missing boundaries that could cause unnecessary work
167
+ - **Quality failures:** Missing quality requirements that could deliver broken features
168
+
169
+ ### **Step 4: LLM-Dev-Agent Optimization Analysis**
170
+
171
+ **CRITICAL STEP: Optimize story context for LLM developer agent consumption**
172
+
173
+ **Analyze current story for LLM optimization issues:**
174
+
175
+ - **Verbosity problems:** Excessive detail that wastes tokens without adding value
176
+ - **Ambiguity issues:** Vague instructions that could lead to multiple interpretations
177
+ - **Context overload:** Too much information not directly relevant to implementation
178
+ - **Missing critical signals:** Key requirements buried in verbose text
179
+ - **Poor structure:** Information not organized for efficient LLM processing
180
+
181
+ **Apply LLM Optimization Principles:**
182
+
183
+ - **Clarity over verbosity:** Be precise and direct, eliminate fluff
184
+ - **Actionable instructions:** Every sentence should guide implementation
185
+ - **Scannable structure:** Use clear headings, bullet points, and emphasis
186
+ - **Token efficiency:** Pack maximum information into minimum text
187
+ - **Unambiguous language:** Clear requirements with no room for interpretation
188
+
189
+ ### **Step 5: Improvement Recommendations**
190
+
191
+ **For each gap identified, provide specific, actionable improvements:**
192
+
193
+ #### **5.1 Critical Misses (Must Fix)**
194
+
195
+ - Missing essential technical requirements
196
+ - Missing previous story context that could cause errors
197
+ - Missing anti-pattern prevention that could lead to duplicate code
198
+ - Missing security or performance requirements
199
+
200
+ #### **5.2 Enhancement Opportunities (Should Add)**
201
+
202
+ - Additional architectural guidance that would help developer
203
+ - More detailed technical specifications
204
+ - Better code reuse opportunities
205
+ - Enhanced testing guidance
206
+
207
+ #### **5.3 Optimization Suggestions (Nice to Have)**
208
+
209
+ - Performance optimization hints
210
+ - Additional context for complex scenarios
211
+ - Enhanced debugging or development tips
212
+
213
+ #### **5.4 LLM Optimization Improvements**
214
+
215
+ - Token-efficient phrasing of existing content
216
+ - Clearer structure for LLM processing
217
+ - More actionable and direct instructions
218
+ - Reduced verbosity while maintaining completeness
219
+
220
+ ---
221
+
222
+ ## **🎯 COMPETITION SUCCESS METRICS**
223
+
224
+ **You WIN against the original LLM if you identify:**
225
+
226
+ ### **Category 1: Critical Misses (Blockers)**
227
+
228
+ - Essential technical requirements the developer needs but aren't provided
229
+ - Previous story learnings that would prevent errors if ignored
230
+ - Anti-pattern prevention that would prevent code duplication
231
+ - Security or performance requirements that must be followed
232
+
233
+ ### **Category 2: Enhancement Opportunities**
234
+
235
+ - Architecture guidance that would significantly help implementation
236
+ - Technical specifications that would prevent wrong approaches
237
+ - Code reuse opportunities the developer should know about
238
+ - Testing guidance that would improve quality
239
+
240
+ ### **Category 3: Optimization Insights**
241
+
242
+ - Performance or efficiency improvements
243
+ - Development workflow optimizations
244
+ - Additional context for complex scenarios
245
+
246
+ ---
247
+
248
+ ## **📋 INTERACTIVE IMPROVEMENT PROCESS**
249
+
250
+ After completing your systematic analysis, present your findings to the user interactively:
251
+
252
+ ### **Step 5: Present Improvement Suggestions**
253
+
174
254
  ```
255
+ 🎯 **STORY CONTEXT QUALITY REVIEW COMPLETE**
256
+
257
+ **Story:** {{story_key}} - {{story_title}}
175
258
 
176
- # Story Quality Validation Report
259
+ I found {{critical_count}} critical issues, {{enhancement_count}} enhancements, and {{optimization_count}} optimizations.
177
260
 
178
- Story: {{story_key}} - {{story_title}}
179
- Outcome: {{outcome}} (Critical: {{critical_count}}, Major: {{major_count}}, Minor: {{minor_count}})
261
+ ## **🚨 CRITICAL ISSUES (Must Fix)**
180
262
 
181
- ## Critical Issues (Blockers)
263
+ {{list each critical issue with clear, actionable description}}
182
264
 
183
- {{list_each_with_description_and_evidence}}
265
+ ## **⚡ ENHANCEMENT OPPORTUNITIES (Should Add)**
184
266
 
185
- ## Major Issues (Should Fix)
267
+ {{list each enhancement with clear benefit description}}
186
268
 
187
- {{list_each_with_description_and_evidence}}
269
+ ## **✨ OPTIMIZATIONS (Nice to Have)**
188
270
 
189
- ## Minor Issues (Nice to Have)
271
+ {{list each optimization with benefit description}}
190
272
 
191
- {{list_each_with_description}}
273
+ ## **🤖 LLM OPTIMIZATION (Token Efficiency & Clarity)**
192
274
 
193
- ## Successes
275
+ {{list each LLM optimization that will improve dev agent performance:
276
+ - Reduce verbosity while maintaining completeness
277
+ - Improve structure for better LLM processing
278
+ - Make instructions more actionable and direct
279
+ - Enhance clarity and reduce ambiguity}}
280
+ ```
281
+
282
+ ### **Step 6: Interactive User Selection**
194
283
 
195
- {{list_what_was_done_well}}
284
+ After presenting the suggestions, ask the user:
196
285
 
197
286
  ```
287
+ **IMPROVEMENT OPTIONS:**
198
288
 
199
- ## User Alert and Remediation
289
+ Which improvements would you like me to apply to the story?
200
290
 
201
- **If FAIL:**
202
- - Show issues summary and top 3 issues
203
- - Offer options: (1) Auto-improve story, (2) Show detailed findings, (3) Fix manually, (4) Accept as-is
204
- - If option 1: Re-load source docs, regenerate affected sections, re-run validation
291
+ **Select from the numbered list above, or choose:**
292
+ - **all** - Apply all suggested improvements
293
+ - **critical** - Apply only critical issues
294
+ - **select** - I'll choose specific numbers
295
+ - **none** - Keep story as-is
296
+ - **details** - Show me more details about any suggestion
205
297
 
206
- **If PASS with issues:**
207
- - Show issues list
208
- - Ask: "Improve story? (y/n)"
209
- - If yes: Enhance story with missing items
298
+ Your choice:
299
+ ```
210
300
 
211
- **If PASS:**
212
- - Confirm: All quality standards met
213
- - List successes
214
- - Ready for story-context generation
301
+ ### **Step 7: Apply Selected Improvements**
302
+
303
+ When user accepts improvements:
304
+
305
+ - **Load the story file**
306
+ - **Apply accepted changes** (make them look natural, as if they were always there)
307
+ - **DO NOT reference** the review process, original LLM, or that changes were "added" or "enhanced"
308
+ - **Ensure clean, coherent final story** that reads as if it was created perfectly the first time
309
+
310
+ ### **Step 8: Confirmation**
311
+
312
+ After applying changes:
215
313
 
216
- </validation-checklist>
217
314
  ```
315
+ ✅ **STORY IMPROVEMENTS APPLIED**
316
+
317
+ Updated {{count}} sections in the story file.
318
+
319
+ The story now includes comprehensive developer guidance to prevent common implementation issues and ensure flawless execution.
320
+
321
+ **Next Steps:**
322
+ 1. Review the updated story
323
+ 2. Run `dev-story` for implementation
324
+ ```
325
+
326
+ ---
327
+
328
+ ## **💪 COMPETITIVE EXCELLENCE MINDSET**
329
+
330
+ **Your goal:** Improve the story file with dev agent needed context that makes flawless implementation inevitable while being optimized for LLM developer agent consumption. Remember the dev agent will ONLY have this file to use.
218
331
 
219
- ## Quick Reference
332
+ **Success Criteria:** The LLM developer agent that processes your improved story will have:
220
333
 
221
- **Validation runs in fresh context and checks:**
334
+ - Clear technical requirements they must follow
335
+ - ✅ Previous work context they can build upon
336
+ - ✅ Anti-pattern prevention to avoid common mistakes
337
+ - ✅ Comprehensive guidance for efficient implementation
338
+ - ✅ **Optimized content structure** for maximum clarity and minimum token waste
339
+ - ✅ **Actionable instructions** with no ambiguity or verbosity
340
+ - ✅ **Efficient information density** - maximum guidance in minimum text
222
341
 
223
- 1. Previous story continuity captured (files, notes, **unresolved review items**)
224
- 2. ✅ All relevant source docs discovered and cited
225
- 3. ✅ ACs match tech spec/epics exactly
226
- 4. ✅ Tasks cover all ACs with testing
227
- 5. ✅ Dev Notes have specific guidance with citations (not generic)
228
- 6. ✅ Structure and metadata complete
342
+ **Every improvement should make it IMPOSSIBLE for the developer to:**
229
343
 
230
- **Severity Levels:**
344
+ - Reinvent existing solutions
345
+ - Use wrong approaches or libraries
346
+ - Create duplicate functionality
347
+ - Miss critical requirements
348
+ - Make implementation errors
231
349
 
232
- - **CRITICAL** = Missing previous story reference, missing tech spec cite, unresolved review items not called out, story not in epics
233
- - **MAJOR** = Missing arch docs, missing files from previous story, vague Dev Notes, ACs don't match source, no testing subtasks
234
- - **MINOR** = Vague citations, orphan tasks, missing Change Log
350
+ **LLM Optimization Should Make it IMPOSSIBLE for the developer agent to:**
235
351
 
236
- **Outcome Triggers:**
352
+ - Misinterpret requirements due to ambiguity
353
+ - Waste tokens on verbose, non-actionable content
354
+ - Struggle to find critical information buried in text
355
+ - Get confused by poor structure or organization
356
+ - Miss key implementation signals due to inefficient communication
237
357
 
238
- - **FAIL** = Any critical OR >3 major issues
239
- - **PASS with issues** = ≤3 major issues, no critical
240
- - **PASS** = All checks passed
358
+ **Go create the ultimate developer implementation guide! 🚀**