bmad-method 6.0.0-alpha.19 → 6.0.0-alpha.20

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 (280) hide show
  1. package/.github/workflows/docs.yaml +72 -0
  2. package/.github/workflows/quality.yaml +0 -3
  3. package/CHANGELOG.md +125 -0
  4. package/CONTRIBUTING.md +1 -3
  5. package/README.md +8 -7
  6. package/docs/agent-customization-guide.md +3 -3
  7. package/docs/custom-content-installation.md +1 -1
  8. package/docs/document-sharding-guide.md +2 -2
  9. package/docs/getting-started/installation.md +76 -0
  10. package/docs/ide-info/index.md +24 -0
  11. package/docs/ide-info/rovo-dev.md +14 -380
  12. package/docs/index.md +36 -45
  13. package/eslint.config.mjs +7 -2
  14. package/package.json +14 -8
  15. package/{docs → samples}/sample-custom-modules/README.md +1 -1
  16. package/{docs → samples}/sample-custom-modules/sample-unitary-module/agents/toolsmith/toolsmith-sidecar/knowledge/installers.md +2 -2
  17. package/{docs → samples}/sample-custom-modules/sample-unitary-module/agents/toolsmith/toolsmith-sidecar/knowledge/modules.md +1 -1
  18. package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-01-init.md +1 -1
  19. package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/workflow.md +1 -1
  20. package/src/core/tasks/review-adversarial-general.xml +41 -0
  21. package/src/modules/bmb/README.md +25 -0
  22. package/src/modules/bmb/docs/agents/expert-agent-architecture.md +3 -3
  23. package/src/modules/bmb/docs/agents/index.md +9 -9
  24. package/src/modules/bmb/docs/agents/simple-agent-architecture.md +1 -1
  25. package/src/modules/bmb/docs/agents/understanding-agent-types.md +1 -1
  26. package/src/modules/bmb/docs/{README.md → index.md} +10 -12
  27. package/src/modules/bmb/docs/workflows/index.md +6 -6
  28. package/src/modules/bmb/docs/workflows/templates/step-01-init-continuable-template.md +7 -7
  29. package/src/modules/bmb/docs/workflows/templates/step-1b-template.md +1 -1
  30. package/src/modules/bmb/docs/workflows/templates/step-template.md +7 -7
  31. package/src/modules/bmb/docs/workflows/templates/workflow-template.md +1 -1
  32. package/src/modules/bmb/docs/workflows/templates/workflow.md +1 -1
  33. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md +1 -1
  34. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/workflow.md +1 -1
  35. package/src/modules/bmb/workflows/create-agent/templates/expert-agent.template.md +3 -3
  36. package/src/modules/bmb/workflows/create-module/steps/step-04-structure.md +1 -1
  37. package/src/modules/bmb/workflows/create-module/steps/step-08-installer.md +5 -5
  38. package/src/modules/bmb/workflows/create-module/templates/agent.template.md +1 -1
  39. package/src/modules/bmb/workflows/create-module/validation.md +2 -2
  40. package/src/modules/bmb/workflows/create-module/workflow.md +1 -1
  41. package/src/modules/bmb/workflows/create-workflow/steps/step-07-build.md +2 -2
  42. package/src/modules/bmb/workflows/create-workflow/workflow.md +1 -1
  43. package/src/modules/bmb/workflows/edit-agent/workflow.md +1 -1
  44. package/src/modules/bmb/workflows/edit-workflow/workflow.md +1 -1
  45. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +1 -1
  46. package/src/modules/bmb/workflows/workflow-compliance-check/workflow.md +1 -1
  47. package/src/modules/bmb/workflows-legacy/edit-module/checklist.md +1 -1
  48. package/src/modules/bmb/workflows-legacy/edit-module/instructions.md +3 -3
  49. package/src/modules/bmb/workflows-legacy/module-brief/instructions.md +2 -2
  50. package/src/modules/bmgd/_module-installer/installer.js +2 -2
  51. package/src/modules/bmgd/agents/game-architect.agent.yaml +4 -0
  52. package/src/modules/bmgd/docs/{README.md → index.md} +2 -2
  53. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/instructions.md +4 -4
  54. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-01-init.md +1 -1
  55. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-04-complete.md +1 -1
  56. package/src/modules/bmgd/workflows/1-preproduction/game-brief/instructions.md +4 -4
  57. package/src/modules/bmgd/workflows/2-design/narrative/instructions-narrative.md +4 -4
  58. package/src/modules/bmgd/workflows/2-design/narrative/steps/step-11-complete.md +1 -1
  59. package/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md +5 -5
  60. package/src/modules/bmgd/workflows/3-technical/game-architecture/steps/step-09-complete.md +60 -6
  61. package/src/modules/bmgd/workflows/3-technical/generate-project-context/project-context-template.md +20 -0
  62. package/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-01-discover.md +201 -0
  63. package/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-02-generate.md +373 -0
  64. package/src/modules/bmgd/workflows/3-technical/generate-project-context/steps/step-03-complete.md +279 -0
  65. package/src/modules/bmgd/workflows/3-technical/generate-project-context/workflow.md +48 -0
  66. package/src/modules/bmgd/workflows/4-production/code-review/workflow.yaml +3 -3
  67. package/src/modules/bmgd/workflows/4-production/correct-course/checklist.md +1 -1
  68. package/src/modules/bmgd/workflows/4-production/correct-course/instructions.md +2 -2
  69. package/src/modules/bmgd/workflows/4-production/correct-course/workflow.yaml +2 -2
  70. package/src/modules/bmgd/workflows/4-production/create-story/workflow.yaml +3 -3
  71. package/src/modules/bmgd/workflows/4-production/dev-story/workflow.yaml +4 -4
  72. package/src/modules/bmgd/workflows/4-production/retrospective/instructions.md +2 -2
  73. package/src/modules/bmgd/workflows/4-production/retrospective/workflow.yaml +5 -5
  74. package/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md +11 -2
  75. package/src/modules/bmgd/workflows/4-production/sprint-planning/workflow.yaml +4 -4
  76. package/src/modules/bmgd/workflows/4-production/sprint-status/instructions.md +2 -2
  77. package/src/modules/bmgd/workflows/4-production/sprint-status/workflow.yaml +3 -3
  78. package/src/modules/bmgd/workflows/bmgd-quick-flow/create-tech-spec/instructions.md +3 -3
  79. package/src/modules/bmgd/workflows/bmgd-quick-flow/create-tech-spec/workflow.yaml +1 -1
  80. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-dev/workflow.yaml +1 -1
  81. package/src/modules/bmgd/workflows/bmgd-quick-flow/quick-prototype/workflow.yaml +1 -1
  82. package/src/modules/bmgd/workflows/workflow-status/init/instructions.md +2 -2
  83. package/src/modules/bmgd/workflows/workflow-status/init/workflow.yaml +1 -1
  84. package/src/modules/bmgd/workflows/workflow-status/instructions.md +2 -2
  85. package/src/modules/bmm/README.md +5 -6
  86. package/src/modules/bmm/_module-installer/installer.js +2 -2
  87. package/src/modules/bmm/agents/analyst.agent.yaml +1 -1
  88. package/src/modules/bmm/agents/dev.agent.yaml +8 -4
  89. package/src/modules/bmm/agents/quick-flow-solo-dev.agent.yaml +8 -17
  90. package/src/modules/bmm/agents/sm.agent.yaml +6 -3
  91. package/src/modules/bmm/agents/tech-writer.agent.yaml +1 -1
  92. package/src/modules/bmm/agents/ux-designer.agent.yaml +6 -3
  93. package/src/modules/bmm/docs/agents-guide.md +83 -1026
  94. package/src/modules/bmm/docs/bmad-quick-flow.md +10 -32
  95. package/src/modules/bmm/docs/brownfield-guide.md +1 -1
  96. package/src/modules/bmm/docs/enterprise-agentic-development.md +1 -1
  97. package/src/modules/bmm/docs/{README.md → index.md} +7 -88
  98. package/src/modules/bmm/docs/quick-spec-flow.md +1 -1
  99. package/src/modules/bmm/docs/quick-start.md +7 -7
  100. package/src/modules/bmm/docs/scale-adaptive-system.md +1 -1
  101. package/src/modules/bmm/docs/test-architecture.md +13 -12
  102. package/src/modules/bmm/docs/workflows-solutioning.md +1 -1
  103. package/src/modules/bmm/module.yaml +11 -10
  104. package/src/modules/bmm/workflows/1-analysis/create-product-brief/product-brief.template.md +7 -5
  105. package/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-01-init.md +2 -2
  106. package/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-01b-continue.md +2 -4
  107. package/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-02-vision.md +2 -2
  108. package/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-03-users.md +2 -2
  109. package/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-04-metrics.md +2 -2
  110. package/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-05-scope.md +2 -2
  111. package/src/modules/bmm/workflows/1-analysis/create-product-brief/steps/step-06-complete.md +7 -10
  112. package/src/modules/bmm/workflows/1-analysis/create-product-brief/workflow.md +3 -3
  113. package/src/modules/bmm/workflows/1-analysis/research/research.template.md +14 -0
  114. package/src/modules/bmm/workflows/1-analysis/research/workflow.md +8 -39
  115. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +15 -15
  116. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +5 -25
  117. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +5 -5
  118. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +5 -5
  119. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +6 -6
  120. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +5 -5
  121. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +5 -5
  122. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +5 -5
  123. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +5 -5
  124. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +5 -5
  125. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +5 -5
  126. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +5 -5
  127. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +5 -5
  128. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +2 -2
  129. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +3 -5
  130. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +4 -4
  131. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +4 -4
  132. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +4 -4
  133. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +4 -4
  134. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +4 -4
  135. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +4 -4
  136. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +4 -4
  137. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +4 -4
  138. package/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-01-document-discovery.md +1 -1
  139. package/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-02-prd-analysis.md +1 -1
  140. package/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-03-epic-coverage-validation.md +1 -1
  141. package/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-04-ux-alignment.md +1 -1
  142. package/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-05-epic-quality-review.md +1 -1
  143. package/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/steps/step-06-final-assessment.md +1 -1
  144. package/src/modules/bmm/workflows/3-solutioning/check-implementation-readiness/workflow.md +2 -2
  145. package/src/modules/bmm/workflows/3-solutioning/create-architecture/architecture-decision-template.md +0 -1
  146. package/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-01-init.md +9 -21
  147. package/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-02-context.md +4 -4
  148. package/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-03-starter.md +2 -2
  149. package/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-04-decisions.md +4 -4
  150. package/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-05-patterns.md +4 -4
  151. package/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-06-structure.md +4 -4
  152. package/src/modules/bmm/workflows/3-solutioning/create-architecture/steps/step-07-validation.md +4 -4
  153. package/src/modules/bmm/workflows/3-solutioning/create-architecture/workflow.md +1 -1
  154. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +8 -8
  155. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +1 -1
  156. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +1 -1
  157. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +1 -1
  158. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +2 -2
  159. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +4 -4
  160. package/src/modules/bmm/workflows/4-implementation/correct-course/checklist.md +1 -1
  161. package/src/modules/bmm/workflows/4-implementation/correct-course/instructions.md +2 -2
  162. package/src/modules/bmm/workflows/4-implementation/correct-course/workflow.yaml +16 -14
  163. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.xml +2 -12
  164. package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +4 -4
  165. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.xml +1 -1
  166. package/src/modules/bmm/workflows/4-implementation/dev-story/workflow.yaml +3 -3
  167. package/src/modules/bmm/workflows/4-implementation/retrospective/instructions.md +2 -2
  168. package/src/modules/bmm/workflows/4-implementation/retrospective/workflow.yaml +5 -5
  169. package/src/modules/bmm/workflows/4-implementation/sprint-planning/instructions.md +2 -2
  170. package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +7 -6
  171. package/src/modules/bmm/workflows/4-implementation/sprint-status/instructions.md +2 -2
  172. package/src/modules/bmm/workflows/4-implementation/sprint-status/workflow.yaml +4 -3
  173. package/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/instructions.md +4 -4
  174. package/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.yaml +4 -2
  175. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-01-mode-detection.md +156 -0
  176. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-02-context-gathering.md +120 -0
  177. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-03-execute.md +113 -0
  178. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-04-self-check.md +113 -0
  179. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-05-adversarial-review.md +106 -0
  180. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/steps/step-06-resolve-findings.md +140 -0
  181. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.md +51 -0
  182. package/src/modules/bmm/workflows/document-project/instructions.md +27 -28
  183. package/src/modules/bmm/workflows/document-project/workflow.yaml +2 -3
  184. package/src/modules/bmm/workflows/generate-project-context/project-context-template.md +2 -1
  185. package/src/modules/bmm/workflows/generate-project-context/steps/step-01-discover.md +5 -15
  186. package/src/modules/bmm/workflows/generate-project-context/steps/step-02-generate.md +2 -2
  187. package/src/modules/bmm/workflows/testarch/atdd/atdd-checklist-template.md +8 -7
  188. package/src/modules/bmm/workflows/testarch/atdd/checklist.md +1 -0
  189. package/src/modules/bmm/workflows/testarch/atdd/instructions.md +1 -0
  190. package/src/modules/bmm/workflows/testarch/automate/checklist.md +2 -0
  191. package/src/modules/bmm/workflows/testarch/ci/checklist.md +2 -0
  192. package/src/modules/bmm/workflows/testarch/ci/instructions.md +2 -0
  193. package/src/modules/bmm/workflows/testarch/nfr-assess/checklist.md +2 -0
  194. package/src/modules/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +2 -0
  195. package/src/modules/bmm/workflows/testarch/test-design/checklist.md +3 -2
  196. package/src/modules/bmm/workflows/testarch/test-design/instructions.md +1 -1
  197. package/src/modules/bmm/workflows/testarch/test-design/test-design-template.md +9 -0
  198. package/src/modules/bmm/workflows/testarch/test-review/checklist.md +2 -0
  199. package/src/modules/bmm/workflows/testarch/test-review/test-review-template.md +2 -0
  200. package/src/modules/bmm/workflows/testarch/trace/checklist.md +1 -0
  201. package/src/modules/bmm/workflows/testarch/trace/instructions.md +2 -0
  202. package/src/modules/bmm/workflows/testarch/trace/trace-template.md +2 -0
  203. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +2 -2
  204. package/src/modules/bmm/workflows/workflow-status/init/workflow.yaml +1 -1
  205. package/src/modules/bmm/workflows/workflow-status/instructions.md +2 -2
  206. package/src/modules/bmm/workflows/workflow-status/workflow.yaml +3 -1
  207. package/src/modules/cis/{readme.md → docs/index.md} +2 -6
  208. package/src/modules/cis/workflows/design-thinking/instructions.md +2 -2
  209. package/src/modules/cis/workflows/innovation-strategy/instructions.md +2 -2
  210. package/src/modules/cis/workflows/problem-solving/instructions.md +2 -2
  211. package/test/fixtures/agent-schema/invalid/menu-triggers/compound-invalid-format.agent.yaml +24 -0
  212. package/test/fixtures/agent-schema/invalid/menu-triggers/compound-mismatched-kebab.agent.yaml +24 -0
  213. package/test/fixtures/agent-schema/invalid/menu-triggers/compound-wrong-shortcut.agent.yaml +24 -0
  214. package/test/fixtures/agent-schema/valid/menu-triggers/compound-triggers.agent.yaml +30 -0
  215. package/tools/build-docs.js +630 -0
  216. package/tools/cli/commands/install.js +11 -5
  217. package/tools/cli/installers/install-messages.yaml +52 -0
  218. package/tools/cli/installers/lib/core/config-collector.js +25 -30
  219. package/tools/cli/installers/lib/message-loader.js +85 -0
  220. package/tools/cli/lib/ui.js +221 -41
  221. package/tools/schema/agent.js +68 -5
  222. package/website/css/custom.css +52 -0
  223. package/website/docusaurus.config.js +179 -0
  224. package/website/sidebars.js +157 -0
  225. package/website/src/pages/downloads.md +81 -0
  226. package/website/src/pages/index.js +50 -0
  227. package/website/static/favicon.ico +0 -0
  228. package/website/static/img/logo.svg +4 -0
  229. package/website/static/robots.txt +37 -0
  230. package/docs/installers-bundlers/ide-injections.md +0 -186
  231. package/docs/installers-bundlers/installers-modules-platforms-reference.md +0 -389
  232. package/src/modules/bmgd/README.md +0 -209
  233. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/checklist.md +0 -25
  234. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/instructions.md +0 -202
  235. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml +0 -33
  236. package/tools/cli/commands/build.js +0 -283
  237. package/tools/cli/commands/list.js +0 -40
  238. package/tools/cli/commands/status.js +0 -47
  239. package/tools/cli/commands/uninstall.js +0 -44
  240. package/tools/cli/commands/update.js +0 -28
  241. package/tools/validate-bundles.js +0 -87
  242. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/README.md +0 -0
  243. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/agents/commit-poet/commit-poet.agent.yaml +0 -0
  244. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/agents/toolsmith/toolsmith-sidecar/instructions.md +0 -0
  245. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/agents/toolsmith/toolsmith-sidecar/knowledge/bundlers.md +0 -0
  246. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/agents/toolsmith/toolsmith-sidecar/knowledge/deploy.md +0 -0
  247. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/agents/toolsmith/toolsmith-sidecar/knowledge/docs.md +0 -0
  248. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/agents/toolsmith/toolsmith-sidecar/knowledge/tests.md +0 -0
  249. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/agents/toolsmith/toolsmith-sidecar/memories.md +0 -0
  250. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/agents/toolsmith/toolsmith.agent.yaml +0 -0
  251. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/module.yaml +0 -0
  252. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-02-q1.md +0 -0
  253. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-03-q2.md +0 -0
  254. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-04-q3.md +0 -0
  255. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-05-q4.md +0 -0
  256. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-06-q5.md +0 -0
  257. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-07-q6.md +0 -0
  258. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-08-q7.md +0 -0
  259. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-09-q8.md +0 -0
  260. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-10-q9.md +0 -0
  261. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-11-q10.md +0 -0
  262. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/steps/step-12-results.md +0 -0
  263. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/quiz-master/templates/csv-headers.template +0 -0
  264. /package/{docs → samples}/sample-custom-modules/sample-unitary-module/workflows/wassup/workflow.md +0 -0
  265. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/README.md +0 -0
  266. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/agents/meditation-guide.agent.yaml +0 -0
  267. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/agents/wellness-companion/foo.md +0 -0
  268. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/agents/wellness-companion/wellness-companion-sidecar/addition1.md +0 -0
  269. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/agents/wellness-companion/wellness-companion-sidecar/insights.md +0 -0
  270. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/agents/wellness-companion/wellness-companion-sidecar/instructions.md +0 -0
  271. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/agents/wellness-companion/wellness-companion-sidecar/memories.md +0 -0
  272. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/agents/wellness-companion/wellness-companion-sidecar/patterns.md +0 -0
  273. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/agents/wellness-companion/wellness-companion.agent.yaml +0 -0
  274. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/module.yaml +0 -0
  275. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/workflows/daily-checkin/README.md +0 -0
  276. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/workflows/daily-checkin/workflow.md +0 -0
  277. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/workflows/guided-meditation/README.md +0 -0
  278. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/workflows/guided-meditation/workflow.md +0 -0
  279. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/workflows/wellness-journal/README.md +0 -0
  280. /package/{docs → samples}/sample-custom-modules/sample-wellness-module/workflows/wellness-journal/workflow.md +0 -0
@@ -0,0 +1,373 @@
1
+ # Step 2: Context Rules Generation
2
+
3
+ ## MANDATORY EXECUTION RULES (READ FIRST):
4
+
5
+ - NEVER generate content without user input
6
+ - ALWAYS treat this as collaborative discovery between technical peers
7
+ - YOU ARE A FACILITATOR, not a content generator
8
+ - FOCUS on unobvious rules that AI agents need to be reminded of
9
+ - KEEP CONTENT LEAN - optimize for LLM context efficiency
10
+ - ABSOLUTELY NO TIME ESTIMATES
11
+
12
+ ## EXECUTION PROTOCOLS:
13
+
14
+ - Show your analysis before taking any action
15
+ - Focus on specific, actionable rules rather than general advice
16
+ - Present A/P/C menu after each major rule category
17
+ - ONLY save when user chooses C (Continue)
18
+ - Update frontmatter with completed sections
19
+ - FORBIDDEN to load next step until all sections are complete
20
+
21
+ ## COLLABORATION MENUS (A/P/C):
22
+
23
+ This step will generate content and present choices for each rule category:
24
+
25
+ - **A (Advanced Elicitation)**: Use discovery protocols to explore nuanced implementation rules
26
+ - **P (Party Mode)**: Bring multiple perspectives to identify critical edge cases
27
+ - **C (Continue)**: Save the current rules and proceed to next category
28
+
29
+ ## PROTOCOL INTEGRATION:
30
+
31
+ - When 'A' selected: Execute {project-root}/_bmad/core/tasks/advanced-elicitation.xml
32
+ - When 'P' selected: Execute {project-root}/_bmad/core/workflows/party-mode
33
+ - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed
34
+ - User accepts/rejects protocol changes before proceeding
35
+
36
+ ## CONTEXT BOUNDARIES:
37
+
38
+ - Discovery results from step-1 are available
39
+ - Game engine and existing patterns are identified
40
+ - Focus on rules that prevent implementation mistakes
41
+ - Prioritize unobvious details that AI agents might miss
42
+
43
+ ## YOUR TASK:
44
+
45
+ Collaboratively generate specific, critical rules that AI agents must follow when implementing game code in this project.
46
+
47
+ ## CONTEXT GENERATION SEQUENCE:
48
+
49
+ ### 1. Technology Stack & Versions
50
+
51
+ Document the exact technology stack from discovery:
52
+
53
+ **Core Technologies:**
54
+ Based on user skill level, present findings:
55
+
56
+ **Expert Mode:**
57
+ "Technology stack from your architecture and project files:
58
+ {{exact_technologies_with_versions}}
59
+
60
+ Any critical version constraints I should document for agents?"
61
+
62
+ **Intermediate Mode:**
63
+ "I found your technology stack:
64
+
65
+ **Game Engine:**
66
+ {{engine_with_version}}
67
+
68
+ **Key Dependencies:**
69
+ {{important_dependencies_with_versions}}
70
+
71
+ Are there any version constraints or compatibility notes agents should know about?"
72
+
73
+ **Beginner Mode:**
74
+ "Here are the technologies you're using:
75
+
76
+ **Game Engine:**
77
+ {{friendly_description_of_engine}}
78
+
79
+ **Important Notes:**
80
+ {{key_things_agents_need_to_know_about_versions}}
81
+
82
+ Should I document any special version rules or compatibility requirements?"
83
+
84
+ ### 2. Engine-Specific Rules
85
+
86
+ Focus on unobvious engine patterns agents might miss:
87
+
88
+ **Unity Rules (if applicable):**
89
+ "Based on your Unity project, I notice some specific patterns:
90
+
91
+ **Lifecycle Rules:**
92
+ {{unity_lifecycle_patterns}}
93
+
94
+ **Serialization Rules:**
95
+ {{serialization_requirements}}
96
+
97
+ **Assembly Definitions:**
98
+ {{assembly_definition_rules}}
99
+
100
+ **Coroutine/Async Patterns:**
101
+ {{async_patterns}}
102
+
103
+ Are these patterns correct? Any other Unity-specific rules agents should follow?"
104
+
105
+ **Unreal Rules (if applicable):**
106
+ "Based on your Unreal project, I notice some specific patterns:
107
+
108
+ **UPROPERTY/UFUNCTION Rules:**
109
+ {{macro_usage_patterns}}
110
+
111
+ **Blueprint Integration:**
112
+ {{blueprint_rules}}
113
+
114
+ **Garbage Collection:**
115
+ {{gc_patterns}}
116
+
117
+ **Tick Patterns:**
118
+ {{tick_optimization_rules}}
119
+
120
+ Are these patterns correct? Any other Unreal-specific rules agents should follow?"
121
+
122
+ **Godot Rules (if applicable):**
123
+ "Based on your Godot project, I notice some specific patterns:
124
+
125
+ **Node Lifecycle:**
126
+ {{node_lifecycle_patterns}}
127
+
128
+ **Signal Usage:**
129
+ {{signal_conventions}}
130
+
131
+ **Scene Instancing:**
132
+ {{scene_patterns}}
133
+
134
+ **Autoload Patterns:**
135
+ {{autoload_rules}}
136
+
137
+ Are these patterns correct? Any other Godot-specific rules agents should follow?"
138
+
139
+ ### 3. Performance Rules
140
+
141
+ Document performance-critical patterns:
142
+
143
+ **Frame Budget Rules:**
144
+ "Your game has these performance requirements:
145
+
146
+ **Target Frame Rate:**
147
+ {{target_fps}}
148
+
149
+ **Frame Budget:**
150
+ {{milliseconds_per_frame}}
151
+
152
+ **Critical Systems:**
153
+ {{systems_that_must_meet_budget}}
154
+
155
+ **Hot Path Rules:**
156
+ {{hot_path_patterns}}
157
+
158
+ Any other performance rules agents must follow?"
159
+
160
+ **Memory Management:**
161
+ "Memory patterns for your project:
162
+
163
+ **Allocation Rules:**
164
+ {{allocation_patterns}}
165
+
166
+ **Pooling Requirements:**
167
+ {{object_pooling_rules}}
168
+
169
+ **Asset Loading:**
170
+ {{asset_loading_patterns}}
171
+
172
+ Are there memory constraints agents should know about?"
173
+
174
+ ### 4. Code Organization Rules
175
+
176
+ Document project structure and organization:
177
+
178
+ **Folder Structure:**
179
+ "Your project organization:
180
+
181
+ **Script Organization:**
182
+ {{script_folder_structure}}
183
+
184
+ **Asset Organization:**
185
+ {{asset_folder_patterns}}
186
+
187
+ **Scene/Level Organization:**
188
+ {{scene_organization}}
189
+
190
+ Any organization rules agents must follow?"
191
+
192
+ **Naming Conventions:**
193
+ "Your naming patterns:
194
+
195
+ **Script/Class Names:**
196
+ {{class_naming_patterns}}
197
+
198
+ **Asset Names:**
199
+ {{asset_naming_patterns}}
200
+
201
+ **Variable/Method Names:**
202
+ {{variable_naming_patterns}}
203
+
204
+ Any other naming rules?"
205
+
206
+ ### 5. Testing Rules
207
+
208
+ Focus on testing patterns that ensure consistency:
209
+
210
+ **Test Structure Rules:**
211
+ "Your testing setup shows these patterns:
212
+
213
+ **Test Organization:**
214
+ {{test_file_organization}}
215
+
216
+ **Test Categories:**
217
+ {{unit_vs_integration_boundaries}}
218
+
219
+ **Mocking Patterns:**
220
+ {{mock_usage_conventions}}
221
+
222
+ **Play Mode Testing:**
223
+ {{play_mode_test_patterns}}
224
+
225
+ Are there testing rules agents should always follow?"
226
+
227
+ ### 6. Platform & Build Rules
228
+
229
+ Document platform-specific requirements:
230
+
231
+ **Target Platforms:**
232
+ "Your platform configuration:
233
+
234
+ **Primary Platform:**
235
+ {{primary_platform}}
236
+
237
+ **Platform-Specific Code:**
238
+ {{platform_conditional_patterns}}
239
+
240
+ **Build Configurations:**
241
+ {{build_config_rules}}
242
+
243
+ **Input Handling:**
244
+ {{input_abstraction_patterns}}
245
+
246
+ Any platform rules agents must know?"
247
+
248
+ ### 7. Critical Don't-Miss Rules
249
+
250
+ Identify rules that prevent common mistakes:
251
+
252
+ **Anti-Patterns to Avoid:**
253
+ "Based on your codebase, here are critical things agents must NOT do:
254
+
255
+ {{critical_anti_patterns_with_examples}}
256
+
257
+ **Edge Cases:**
258
+ {{specific_edge_cases_agents_should_handle}}
259
+
260
+ **Common Gotchas:**
261
+ {{engine_specific_gotchas}}
262
+
263
+ **Performance Traps:**
264
+ {{performance_patterns_to_avoid}}
265
+
266
+ Are there other 'gotchas' agents should know about?"
267
+
268
+ ### 8. Generate Context Content
269
+
270
+ For each category, prepare lean content for the project context file:
271
+
272
+ #### Content Structure:
273
+
274
+ ```markdown
275
+ ## Technology Stack & Versions
276
+
277
+ {{concise_technology_list_with_exact_versions}}
278
+
279
+ ## Critical Implementation Rules
280
+
281
+ ### Engine-Specific Rules
282
+
283
+ {{bullet_points_of_engine_rules}}
284
+
285
+ ### Performance Rules
286
+
287
+ {{bullet_points_of_performance_requirements}}
288
+
289
+ ### Code Organization Rules
290
+
291
+ {{bullet_points_of_organization_patterns}}
292
+
293
+ ### Testing Rules
294
+
295
+ {{bullet_points_of_testing_requirements}}
296
+
297
+ ### Platform & Build Rules
298
+
299
+ {{bullet_points_of_platform_requirements}}
300
+
301
+ ### Critical Don't-Miss Rules
302
+
303
+ {{bullet_points_of_anti_patterns_and_gotchas}}
304
+ ```
305
+
306
+ ### 9. Present Content and Menu
307
+
308
+ After each category, show the generated rules and present choices:
309
+
310
+ "I've drafted the {{category_name}} rules for your project context.
311
+
312
+ **Here's what I'll add:**
313
+
314
+ [Show the complete markdown content for this category]
315
+
316
+ **What would you like to do?**
317
+ [A] Advanced Elicitation - Explore nuanced rules for this category
318
+ [P] Party Mode - Review from different implementation perspectives
319
+ [C] Continue - Save these rules and move to next category"
320
+
321
+ ### 10. Handle Menu Selection
322
+
323
+ #### If 'A' (Advanced Elicitation):
324
+
325
+ - Execute advanced-elicitation.xml with current category rules
326
+ - Process enhanced rules that come back
327
+ - Ask user: "Accept these enhanced rules for {{category}}? (y/n)"
328
+ - If yes: Update content, then return to A/P/C menu
329
+ - If no: Keep original content, then return to A/P/C menu
330
+
331
+ #### If 'P' (Party Mode):
332
+
333
+ - Execute party-mode workflow with category rules context
334
+ - Process collaborative insights on implementation patterns
335
+ - Ask user: "Accept these changes to {{category}} rules? (y/n)"
336
+ - If yes: Update content, then return to A/P/C menu
337
+ - If no: Keep original content, then return to A/P/C menu
338
+
339
+ #### If 'C' (Continue):
340
+
341
+ - Save the current category content to project context file
342
+ - Update frontmatter: `sections_completed: [...]`
343
+ - Proceed to next category or step-03 if complete
344
+
345
+ ## APPEND TO PROJECT CONTEXT:
346
+
347
+ When user selects 'C' for a category, append the content directly to `{output_folder}/project-context.md` using the structure from step 8.
348
+
349
+ ## SUCCESS METRICS:
350
+
351
+ - All critical technology versions accurately documented
352
+ - Engine-specific rules cover unobvious patterns
353
+ - Performance rules capture project-specific requirements
354
+ - Code organization rules maintain project standards
355
+ - Testing rules ensure consistent test quality
356
+ - Platform rules prevent cross-platform issues
357
+ - Content is lean and optimized for LLM context
358
+ - A/P/C menu presented and handled correctly for each category
359
+
360
+ ## FAILURE MODES:
361
+
362
+ - Including obvious rules that agents already know
363
+ - Making content too verbose for LLM context efficiency
364
+ - Missing critical anti-patterns or edge cases
365
+ - Not getting user validation for each rule category
366
+ - Not documenting exact versions and configurations
367
+ - Not presenting A/P/C menu after content generation
368
+
369
+ ## NEXT STEP:
370
+
371
+ After completing all rule categories and user selects 'C' for the final category, load `./step-03-complete.md` to finalize the project context file.
372
+
373
+ Remember: Do NOT proceed to step-03 until all categories are complete and user explicitly selects 'C' for each!
@@ -0,0 +1,279 @@
1
+ # Step 3: Context Completion & Finalization
2
+
3
+ ## MANDATORY EXECUTION RULES (READ FIRST):
4
+
5
+ - NEVER generate content without user input
6
+ - ALWAYS treat this as collaborative completion between technical peers
7
+ - YOU ARE A FACILITATOR, not a content generator
8
+ - FOCUS on finalizing a lean, LLM-optimized project context
9
+ - ENSURE all critical rules are captured and actionable
10
+ - ABSOLUTELY NO TIME ESTIMATES
11
+
12
+ ## EXECUTION PROTOCOLS:
13
+
14
+ - Show your analysis before taking any action
15
+ - Review and optimize content for LLM context efficiency
16
+ - Update frontmatter with completion status
17
+ - NO MORE STEPS - this is the final step
18
+
19
+ ## CONTEXT BOUNDARIES:
20
+
21
+ - All rule categories from step-2 are complete
22
+ - Technology stack and versions are documented
23
+ - Focus on final review, optimization, and completion
24
+ - Ensure the context file is ready for AI agent consumption
25
+
26
+ ## YOUR TASK:
27
+
28
+ Complete the project context file, optimize it for LLM efficiency, and provide guidance for usage and maintenance.
29
+
30
+ ## COMPLETION SEQUENCE:
31
+
32
+ ### 1. Review Complete Context File
33
+
34
+ Read the entire project context file and analyze:
35
+
36
+ **Content Analysis:**
37
+
38
+ - Total length and readability for LLMs
39
+ - Clarity and specificity of rules
40
+ - Coverage of all critical areas
41
+ - Actionability of each rule
42
+
43
+ **Structure Analysis:**
44
+
45
+ - Logical organization of sections
46
+ - Consistency of formatting
47
+ - Absence of redundant or obvious information
48
+ - Optimization for quick scanning
49
+
50
+ ### 2. Optimize for LLM Context
51
+
52
+ Ensure the file is lean and efficient:
53
+
54
+ **Content Optimization:**
55
+
56
+ - Remove any redundant rules or obvious information
57
+ - Combine related rules into concise bullet points
58
+ - Use specific, actionable language
59
+ - Ensure each rule provides unique value
60
+
61
+ **Formatting Optimization:**
62
+
63
+ - Use consistent markdown formatting
64
+ - Implement clear section hierarchy
65
+ - Ensure scannability with strategic use of bolding
66
+ - Maintain readability while maximizing information density
67
+
68
+ ### 3. Final Content Structure
69
+
70
+ Ensure the final structure follows this optimized format:
71
+
72
+ ```markdown
73
+ # Project Context for AI Agents
74
+
75
+ _This file contains critical rules and patterns that AI agents must follow when implementing game code in this project. Focus on unobvious details that agents might otherwise miss._
76
+
77
+ ---
78
+
79
+ ## Technology Stack & Versions
80
+
81
+ {{concise_technology_list}}
82
+
83
+ ## Critical Implementation Rules
84
+
85
+ ### Engine-Specific Rules
86
+
87
+ {{engine_rules}}
88
+
89
+ ### Performance Rules
90
+
91
+ {{performance_requirements}}
92
+
93
+ ### Code Organization Rules
94
+
95
+ {{organization_patterns}}
96
+
97
+ ### Testing Rules
98
+
99
+ {{testing_requirements}}
100
+
101
+ ### Platform & Build Rules
102
+
103
+ {{platform_requirements}}
104
+
105
+ ### Critical Don't-Miss Rules
106
+
107
+ {{anti_patterns_and_gotchas}}
108
+
109
+ ---
110
+
111
+ ## Usage Guidelines
112
+
113
+ **For AI Agents:**
114
+
115
+ - Read this file before implementing any game code
116
+ - Follow ALL rules exactly as documented
117
+ - When in doubt, prefer the more restrictive option
118
+ - Update this file if new patterns emerge
119
+
120
+ **For Humans:**
121
+
122
+ - Keep this file lean and focused on agent needs
123
+ - Update when technology stack changes
124
+ - Review quarterly for outdated rules
125
+ - Remove rules that become obvious over time
126
+
127
+ Last Updated: {{date}}
128
+ ```
129
+
130
+ ### 4. Present Completion Summary
131
+
132
+ Based on user skill level, present the completion:
133
+
134
+ **Expert Mode:**
135
+ "Project context complete. Optimized for LLM consumption with {{rule_count}} critical rules across {{section_count}} sections.
136
+
137
+ File saved to: `{output_folder}/project-context.md`
138
+
139
+ Ready for AI agent integration."
140
+
141
+ **Intermediate Mode:**
142
+ "Your project context is complete and optimized for AI agents!
143
+
144
+ **What we created:**
145
+
146
+ - {{rule_count}} critical implementation rules
147
+ - Technology stack with exact versions
148
+ - Engine-specific patterns and conventions
149
+ - Performance and optimization guidelines
150
+ - Testing and platform requirements
151
+
152
+ **Key benefits:**
153
+
154
+ - AI agents will implement consistently with your standards
155
+ - Reduced context switching and implementation errors
156
+ - Clear guidance for unobvious project requirements
157
+
158
+ **Next steps:**
159
+
160
+ - AI agents should read this file before implementing
161
+ - Update as your project evolves
162
+ - Review periodically for optimization"
163
+
164
+ **Beginner Mode:**
165
+ "Excellent! Your project context guide is ready!
166
+
167
+ **What this does:**
168
+ Think of this as a 'rules of the road' guide for AI agents working on your game. It ensures they all follow the same patterns and avoid common mistakes.
169
+
170
+ **What's included:**
171
+
172
+ - Exact engine and technology versions to use
173
+ - Critical coding rules they might miss
174
+ - Performance and optimization standards
175
+ - Testing and platform requirements
176
+
177
+ **How AI agents use it:**
178
+ They read this file before writing any code, ensuring everything they create follows your project's standards perfectly.
179
+
180
+ Your project context is saved and ready to help agents implement consistently!"
181
+
182
+ ### 5. Final File Updates
183
+
184
+ Update the project context file with completion information:
185
+
186
+ **Frontmatter Update:**
187
+
188
+ ```yaml
189
+ ---
190
+ project_name: '{{project_name}}'
191
+ user_name: '{{user_name}}'
192
+ date: '{{date}}'
193
+ sections_completed:
194
+ ['technology_stack', 'engine_rules', 'performance_rules', 'organization_rules', 'testing_rules', 'platform_rules', 'anti_patterns']
195
+ status: 'complete'
196
+ rule_count: { { total_rules } }
197
+ optimized_for_llm: true
198
+ ---
199
+ ```
200
+
201
+ **Add Usage Section:**
202
+ Append the usage guidelines from step 3 to complete the document.
203
+
204
+ ### 6. Completion Validation
205
+
206
+ Final checks before completion:
207
+
208
+ **Content Validation:**
209
+
210
+ - All critical technology versions documented
211
+ - Engine-specific rules are specific and actionable
212
+ - Performance rules capture project requirements
213
+ - Code organization rules maintain standards
214
+ - Testing rules ensure consistency
215
+ - Platform rules prevent cross-platform issues
216
+ - Anti-pattern rules prevent common mistakes
217
+
218
+ **Format Validation:**
219
+
220
+ - Content is lean and optimized for LLMs
221
+ - Structure is logical and scannable
222
+ - No redundant or obvious information
223
+ - Consistent formatting throughout
224
+
225
+ ### 7. Completion Message
226
+
227
+ Present final completion to user:
228
+
229
+ "**Project Context Generation Complete!**
230
+
231
+ Your optimized project context file is ready at:
232
+ `{output_folder}/project-context.md`
233
+
234
+ **Context Summary:**
235
+
236
+ - {{rule_count}} critical rules for AI agents
237
+ - {{section_count}} comprehensive sections
238
+ - Optimized for LLM context efficiency
239
+ - Ready for immediate agent integration
240
+
241
+ **Key Benefits:**
242
+
243
+ - Consistent implementation across all AI agents
244
+ - Reduced common mistakes and edge cases
245
+ - Clear guidance for project-specific patterns
246
+ - Minimal LLM context usage
247
+
248
+ **Next Steps:**
249
+
250
+ 1. AI agents will automatically read this file when implementing
251
+ 2. Update this file when your technology stack or patterns evolve
252
+ 3. Review quarterly to optimize and remove outdated rules
253
+
254
+ Your project context will help ensure high-quality, consistent game implementation across all development work. Great work capturing your project's critical implementation requirements!"
255
+
256
+ ## SUCCESS METRICS:
257
+
258
+ - Complete project context file with all critical rules
259
+ - Content optimized for LLM context efficiency
260
+ - All technology versions and patterns documented
261
+ - File structure is logical and scannable
262
+ - Usage guidelines included for agents and humans
263
+ - Frontmatter properly updated with completion status
264
+ - User provided with clear next steps and benefits
265
+
266
+ ## FAILURE MODES:
267
+
268
+ - Final content is too verbose for LLM consumption
269
+ - Missing critical implementation rules or patterns
270
+ - Not optimizing content for agent readability
271
+ - Not providing clear usage guidelines
272
+ - Frontmatter not properly updated
273
+ - Not validating file completion before ending
274
+
275
+ ## WORKFLOW COMPLETE:
276
+
277
+ This is the final step of the Generate Project Context workflow. The user now has a comprehensive, optimized project context file that will ensure consistent, high-quality game implementation across all AI agents working on the project.
278
+
279
+ The project context file serves as the critical "rules of the road" that agents need to implement game code consistently with the project's standards and patterns.
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: generate-project-context
3
+ description: Creates a concise project-context.md file with critical rules and patterns that AI agents must follow when implementing game code. Optimized for LLM context efficiency.
4
+ ---
5
+
6
+ # Generate Project Context Workflow
7
+
8
+ **Goal:** Create a concise, optimized `project-context.md` file containing critical rules, patterns, and guidelines that AI agents must follow when implementing game code. This file focuses on unobvious details that LLMs need to be reminded of.
9
+
10
+ **Your Role:** You are a technical facilitator working with a peer to capture the essential implementation rules that will ensure consistent, high-quality game code generation across all AI agents working on the project.
11
+
12
+ ---
13
+
14
+ ## WORKFLOW ARCHITECTURE
15
+
16
+ This uses **micro-file architecture** for disciplined execution:
17
+
18
+ - Each step is a self-contained file with embedded rules
19
+ - Sequential progression with user control at each step
20
+ - Document state tracked in frontmatter
21
+ - Focus on lean, LLM-optimized content generation
22
+ - You NEVER proceed to a step file if the current step file indicates the user must approve and indicate continuation.
23
+
24
+ ---
25
+
26
+ ## INITIALIZATION
27
+
28
+ ### Configuration Loading
29
+
30
+ Load config from `{project-root}/_bmad/bmgd/config.yaml` and resolve:
31
+
32
+ - `project_name`, `output_folder`, `user_name`
33
+ - `communication_language`, `document_output_language`, `game_dev_experience`
34
+ - `date` as system-generated current datetime
35
+
36
+ ### Paths
37
+
38
+ - `installed_path` = `{project-root}/_bmad/bmgd/workflows/3-technical/generate-project-context`
39
+ - `template_path` = `{installed_path}/project-context-template.md`
40
+ - `output_file` = `{output_folder}/project-context.md`
41
+
42
+ ---
43
+
44
+ ## EXECUTION
45
+
46
+ Load and execute `steps/step-01-discover.md` to begin the workflow.
47
+
48
+ **Note:** Input document discovery and initialization protocols are handled in step-01-discover.md.
@@ -11,8 +11,8 @@ communication_language: "{config_source}:communication_language"
11
11
  user_skill_level: "{config_source}:user_skill_level"
12
12
  document_output_language: "{config_source}:document_output_language"
13
13
  date: system-generated
14
- sprint_artifacts: "{config_source}:sprint_artifacts"
15
- sprint_status: "{sprint_artifacts}/sprint-status.yaml || {output_folder}/sprint-status.yaml"
14
+ implementation_artifacts: "{config_source}:implementation_artifacts"
15
+ sprint_status: "{implementation_artifacts}/sprint-status.yaml || {output_folder}/sprint-status.yaml"
16
16
 
17
17
  # Workflow components
18
18
  installed_path: "{project-root}/_bmad/bmgd/workflows/4-production/code-review"
@@ -23,7 +23,7 @@ template: false
23
23
  variables:
24
24
  # Project context
25
25
  project_context: "**/project-context.md"
26
- story_dir: "{sprint_artifacts}"
26
+ story_dir: "{implementation_artifacts}"
27
27
 
28
28
  # Smart input file references - game-specific patterns
29
29
  # Priority: Whole document first, then sharded version