bmad-method 6.0.0-alpha.8 → 6.0.0-alpha.9
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.
- package/.github/ISSUE_TEMPLATE/idea_submission.md +1 -1
- package/.github/workflows/bundle-latest.yaml +277 -0
- package/.github/workflows/manual-release.yaml +55 -16
- package/CHANGELOG.md +439 -1
- package/README.md +12 -4
- package/docs/BUNDLE_DISTRIBUTION_SETUP.md +95 -0
- package/docs/agent-customization-guide.md +208 -0
- package/docs/ide-info/crush.md +1 -1
- package/docs/ide-info/cursor.md +7 -7
- package/docs/ide-info/iflow.md +3 -3
- package/docs/ide-info/opencode.md +1 -1
- package/docs/index.md +3 -1
- package/docs/installers-bundlers/ide-injections.md +2 -2
- package/docs/installers-bundlers/installers-modules-platforms-reference.md +23 -23
- package/docs/v4-to-v6-upgrade.md +12 -12
- package/docs/web-bundles-gemini-gpt-guide.md +473 -0
- package/package.json +1 -1
- package/src/core/_module-installer/install-config.yaml +2 -1
- package/src/core/agents/bmad-web-orchestrator.agent.xml +1 -1
- package/src/core/tasks/{adv-elicit.xml → advanced-elicitation.xml} +3 -3
- package/src/core/tasks/workflow.xml +124 -10
- package/src/core/tools/shard-doc.xml +44 -0
- package/src/core/workflows/brainstorming/README.md +5 -15
- package/src/core/workflows/brainstorming/instructions.md +4 -3
- package/src/core/workflows/brainstorming/template.md +4 -0
- package/src/modules/bmb/workflows/audit-workflow/checklist.md +3 -4
- package/src/modules/bmb/workflows/convert-legacy/README.md +1 -1
- package/src/modules/bmb/workflows/convert-legacy/checklist.md +1 -1
- package/src/modules/bmb/workflows/convert-legacy/instructions.md +2 -2
- package/src/modules/bmb/workflows/create-agent/agent-architecture.md +0 -4
- package/src/modules/bmb/workflows/create-agent/instructions.md +13 -16
- package/src/modules/bmb/workflows/create-module/checklist.md +0 -9
- package/src/modules/bmb/workflows/create-module/instructions.md +5 -10
- package/src/modules/bmb/workflows/create-module/module-structure.md +3 -3
- package/src/modules/bmb/workflows/create-workflow/instructions.md +1 -1
- package/src/modules/bmb/workflows/create-workflow/workflow-creation-guide.md +0 -2
- package/src/modules/bmb/workflows/module-brief/checklist.md +2 -2
- package/src/modules/bmgd/_module-installer/install-config.yaml +4 -17
- package/src/modules/bmgd/agents/game-architect.agent.yaml +2 -2
- package/src/modules/bmgd/agents/game-designer.agent.yaml +2 -2
- package/src/modules/bmgd/agents/game-dev.agent.yaml +2 -2
- package/src/modules/bmgd/agents/game-scrum-master.agent.yaml +2 -2
- package/src/modules/bmgd/workflows/2-design/gdd/instructions-gdd.md +1 -6
- package/src/modules/bmgd/workflows/2-design/narrative/instructions-narrative.md +0 -5
- package/src/modules/bmgd/workflows/3-technical/game-architecture/architecture-patterns.yaml +0 -26
- package/src/modules/bmgd/workflows/3-technical/game-architecture/checklist.md +2 -6
- package/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md +1 -6
- package/src/modules/bmgd/workflows/4-production/code-review/instructions.md +21 -43
- package/src/modules/bmgd/workflows/4-production/code-review/workflow.yaml +11 -21
- package/src/modules/bmgd/workflows/4-production/correct-course/instructions.md +5 -0
- package/src/modules/bmgd/workflows/4-production/correct-course/workflow.yaml +29 -22
- package/src/modules/bmgd/workflows/4-production/create-story/instructions.md +18 -45
- package/src/modules/bmgd/workflows/4-production/create-story/workflow.yaml +14 -22
- package/src/modules/bmgd/workflows/4-production/dev-story/instructions.md +6 -1
- package/src/modules/bmgd/workflows/4-production/dev-story/workflow.yaml +28 -3
- package/src/modules/bmgd/workflows/4-production/epic-tech-context/instructions.md +8 -33
- package/src/modules/bmgd/workflows/4-production/epic-tech-context/workflow.yaml +14 -22
- package/src/modules/bmgd/workflows/4-production/retrospective/instructions.md +16 -34
- package/src/modules/bmgd/workflows/4-production/retrospective/workflow.yaml +13 -34
- package/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md +9 -13
- package/src/modules/bmgd/workflows/4-production/sprint-planning/sprint-status-template.yaml +1 -1
- package/src/modules/bmgd/workflows/4-production/sprint-planning/workflow.yaml +6 -5
- package/src/modules/bmgd/workflows/4-production/story-context/instructions.md +18 -43
- package/src/modules/bmgd/workflows/4-production/story-context/workflow.yaml +13 -15
- package/src/modules/bmgd/workflows/4-production/story-done/workflow.yaml +3 -2
- package/src/modules/bmgd/workflows/4-production/story-ready/instructions.md +5 -5
- package/src/modules/bmgd/workflows/4-production/story-ready/workflow.yaml +3 -5
- package/src/modules/bmm/_module-installer/install-config.yaml +3 -8
- package/src/modules/bmm/_module-installer/installer.js +2 -2
- package/src/modules/bmm/agents/analyst.agent.yaml +2 -2
- package/src/modules/bmm/agents/architect.agent.yaml +2 -2
- package/src/modules/bmm/agents/pm.agent.yaml +2 -2
- package/src/modules/bmm/agents/sm.agent.yaml +2 -2
- package/src/modules/bmm/agents/tea.agent.yaml +2 -2
- package/src/modules/bmm/agents/tech-writer.agent.yaml +3 -3
- package/src/modules/bmm/agents/ux-designer.agent.yaml +2 -2
- package/src/modules/bmm/workflows/1-analysis/domain-research/workflow.yaml +0 -13
- package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +9 -11
- package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.yaml +4 -0
- package/src/modules/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +2 -2
- package/src/modules/bmm/workflows/1-analysis/research/checklist-technical.md +2 -2
- package/src/modules/bmm/workflows/1-analysis/research/checklist.md +2 -2
- package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +0 -2
- package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +1 -6
- package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +0 -5
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +6 -1
- package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +6 -0
- package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +8 -12
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +28 -0
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +145 -22
- package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +1 -3
- package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +151 -34
- package/src/modules/bmm/workflows/2-plan-workflows/prd/prd-template.md +2 -2
- package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +6 -2
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +12 -9
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +0 -6
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-generate-stories.md +434 -0
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +128 -265
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +13 -35
- package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +0 -26
- package/src/modules/bmm/workflows/3-solutioning/architecture/checklist.md +3 -7
- package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +29 -37
- package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.yaml +9 -27
- package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/checklist.md +7 -13
- package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +55 -58
- package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +8 -8
- package/src/modules/bmm/workflows/4-implementation/code-review/instructions.md +10 -32
- package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +11 -13
- package/src/modules/bmm/workflows/4-implementation/correct-course/instructions.md +5 -0
- package/src/modules/bmm/workflows/4-implementation/correct-course/workflow.yaml +29 -22
- package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +12 -37
- package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +12 -7
- package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.md +6 -1
- package/src/modules/bmm/workflows/4-implementation/dev-story/workflow.yaml +28 -3
- package/src/modules/bmm/workflows/4-implementation/epic-tech-context/instructions.md +7 -30
- package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +13 -9
- package/src/modules/bmm/workflows/4-implementation/retrospective/instructions.md +8 -26
- package/src/modules/bmm/workflows/4-implementation/retrospective/workflow.yaml +13 -31
- package/src/modules/bmm/workflows/4-implementation/sprint-planning/instructions.md +5 -0
- package/src/modules/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +1 -1
- package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +6 -6
- package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +12 -36
- package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +12 -6
- package/src/modules/bmm/workflows/4-implementation/story-done/workflow.yaml +3 -2
- package/src/modules/bmm/workflows/4-implementation/story-ready/instructions.md +5 -5
- package/src/modules/bmm/workflows/4-implementation/story-ready/workflow.yaml +3 -5
- package/src/modules/bmm/workflows/document-project/checklist.md +1 -1
- package/src/modules/bmm/workflows/document-project/workflows/deep-dive-instructions.md +4 -4
- package/src/modules/bmm/workflows/document-project/workflows/full-scan-instructions.md +13 -13
- package/src/modules/bmm/workflows/testarch/ci/checklist.md +4 -4
- package/src/modules/bmm/workflows/testarch/framework/checklist.md +4 -4
- package/src/modules/bmm/workflows/testarch/test-design/checklist.md +4 -4
- package/src/modules/bmm/workflows/testarch/test-design/instructions.md +173 -12
- package/src/modules/bmm/workflows/testarch/test-design/test-design-template.md +3 -3
- package/src/modules/bmm/workflows/testarch/test-design/workflow.yaml +5 -1
- package/src/modules/bmm/workflows/workflow-status/init/instructions.md +9 -9
- package/src/modules/bmm/workflows/workflow-status/init/workflow.yaml +1 -1
- package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +9 -16
- package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +11 -18
- package/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +8 -1
- package/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +9 -2
- package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +2 -9
- package/src/modules/cis/agents/brainstorming-coach.agent.yaml +2 -2
- package/src/modules/cis/agents/creative-problem-solver.agent.yaml +2 -2
- package/src/modules/cis/agents/design-thinking-coach.agent.yaml +2 -2
- package/src/modules/cis/agents/innovation-strategist.agent.yaml +2 -2
- package/src/modules/cis/agents/storyteller.agent.yaml +2 -2
- package/tools/cli/README.md +50 -32
- package/tools/cli/bundlers/web-bundler.js +1 -1
- package/tools/cli/installers/lib/core/installer.js +17 -10
- package/tools/cli/lib/ui.js +14 -4
- package/tools/cli/lib/yaml-xml-builder.js +20 -2
- package/.bmad/_cfg/agent-manifest.csv +0 -11
- package/.bmad/_cfg/agents/bmb-bmad-builder.customize.yaml +0 -42
- package/.bmad/_cfg/agents/bmm-analyst.customize.yaml +0 -42
- package/.bmad/_cfg/agents/bmm-architect.customize.yaml +0 -42
- package/.bmad/_cfg/agents/bmm-dev.customize.yaml +0 -42
- package/.bmad/_cfg/agents/bmm-pm.customize.yaml +0 -42
- package/.bmad/_cfg/agents/bmm-sm.customize.yaml +0 -42
- package/.bmad/_cfg/agents/bmm-tea.customize.yaml +0 -42
- package/.bmad/_cfg/agents/bmm-tech-writer.customize.yaml +0 -42
- package/.bmad/_cfg/agents/bmm-ux-designer.customize.yaml +0 -42
- package/.bmad/_cfg/agents/core-bmad-master.customize.yaml +0 -42
- package/.bmad/_cfg/files-manifest.csv +0 -289
- package/.bmad/_cfg/ides/claude-code.yaml +0 -7
- package/.bmad/_cfg/manifest.yaml +0 -10
- package/.bmad/_cfg/task-manifest.csv +0 -6
- package/.bmad/_cfg/tool-manifest.csv +0 -2
- package/.bmad/_cfg/workflow-manifest.csv +0 -44
- package/.bmad/bmb/README.md +0 -194
- package/.bmad/bmb/agents/bmad-builder.md +0 -70
- package/.bmad/bmb/config.yaml +0 -16
- package/.bmad/bmb/workflows/audit-workflow/checklist.md +0 -143
- package/.bmad/bmb/workflows/audit-workflow/instructions.md +0 -341
- package/.bmad/bmb/workflows/audit-workflow/template.md +0 -118
- package/.bmad/bmb/workflows/audit-workflow/workflow.yaml +0 -23
- package/.bmad/bmb/workflows/convert-legacy/README.md +0 -262
- package/.bmad/bmb/workflows/convert-legacy/checklist.md +0 -205
- package/.bmad/bmb/workflows/convert-legacy/instructions.md +0 -377
- package/.bmad/bmb/workflows/convert-legacy/workflow.yaml +0 -32
- package/.bmad/bmb/workflows/create-agent/README.md +0 -203
- package/.bmad/bmb/workflows/create-agent/agent-architecture.md +0 -419
- package/.bmad/bmb/workflows/create-agent/agent-command-patterns.md +0 -759
- package/.bmad/bmb/workflows/create-agent/agent-types.md +0 -292
- package/.bmad/bmb/workflows/create-agent/brainstorm-context.md +0 -174
- package/.bmad/bmb/workflows/create-agent/checklist.md +0 -62
- package/.bmad/bmb/workflows/create-agent/communication-styles.md +0 -202
- package/.bmad/bmb/workflows/create-agent/instructions.md +0 -459
- package/.bmad/bmb/workflows/create-agent/workflow.yaml +0 -37
- package/.bmad/bmb/workflows/create-module/README.md +0 -229
- package/.bmad/bmb/workflows/create-module/brainstorm-context.md +0 -137
- package/.bmad/bmb/workflows/create-module/checklist.md +0 -244
- package/.bmad/bmb/workflows/create-module/installer-templates/install-config.yaml +0 -92
- package/.bmad/bmb/workflows/create-module/installer-templates/installer.js +0 -231
- package/.bmad/bmb/workflows/create-module/instructions.md +0 -581
- package/.bmad/bmb/workflows/create-module/module-structure.md +0 -400
- package/.bmad/bmb/workflows/create-module/workflow.yaml +0 -42
- package/.bmad/bmb/workflows/create-workflow/README.md +0 -277
- package/.bmad/bmb/workflows/create-workflow/brainstorm-context.md +0 -197
- package/.bmad/bmb/workflows/create-workflow/checklist.md +0 -94
- package/.bmad/bmb/workflows/create-workflow/instructions.md +0 -724
- package/.bmad/bmb/workflows/create-workflow/workflow-creation-guide.md +0 -1308
- package/.bmad/bmb/workflows/create-workflow/workflow-template/checklist.md +0 -24
- package/.bmad/bmb/workflows/create-workflow/workflow-template/instructions.md +0 -13
- package/.bmad/bmb/workflows/create-workflow/workflow-template/template.md +0 -9
- package/.bmad/bmb/workflows/create-workflow/workflow-template/workflow.yaml +0 -39
- package/.bmad/bmb/workflows/create-workflow/workflow.yaml +0 -40
- package/.bmad/bmb/workflows/edit-agent/README.md +0 -112
- package/.bmad/bmb/workflows/edit-agent/checklist.md +0 -112
- package/.bmad/bmb/workflows/edit-agent/instructions.md +0 -290
- package/.bmad/bmb/workflows/edit-agent/workflow.yaml +0 -33
- package/.bmad/bmb/workflows/edit-module/README.md +0 -187
- package/.bmad/bmb/workflows/edit-module/checklist.md +0 -165
- package/.bmad/bmb/workflows/edit-module/instructions.md +0 -339
- package/.bmad/bmb/workflows/edit-module/workflow.yaml +0 -34
- package/.bmad/bmb/workflows/edit-workflow/README.md +0 -119
- package/.bmad/bmb/workflows/edit-workflow/checklist.md +0 -70
- package/.bmad/bmb/workflows/edit-workflow/instructions.md +0 -342
- package/.bmad/bmb/workflows/edit-workflow/workflow.yaml +0 -27
- package/.bmad/bmb/workflows/module-brief/README.md +0 -264
- package/.bmad/bmb/workflows/module-brief/checklist.md +0 -116
- package/.bmad/bmb/workflows/module-brief/instructions.md +0 -267
- package/.bmad/bmb/workflows/module-brief/template.md +0 -275
- package/.bmad/bmb/workflows/module-brief/workflow.yaml +0 -29
- package/.bmad/bmb/workflows/redoc/README.md +0 -87
- package/.bmad/bmb/workflows/redoc/checklist.md +0 -99
- package/.bmad/bmb/workflows/redoc/instructions.md +0 -265
- package/.bmad/bmb/workflows/redoc/workflow.yaml +0 -32
- package/.bmad/bmm/README.md +0 -128
- package/.bmad/bmm/agents/analyst.md +0 -75
- package/.bmad/bmm/agents/architect.md +0 -80
- package/.bmad/bmm/agents/dev.md +0 -69
- package/.bmad/bmm/agents/pm.md +0 -84
- package/.bmad/bmm/agents/sm.md +0 -93
- package/.bmad/bmm/agents/tea.md +0 -80
- package/.bmad/bmm/agents/tech-writer.md +0 -90
- package/.bmad/bmm/agents/ux-designer.md +0 -79
- package/.bmad/bmm/config.yaml +0 -18
- package/.bmad/bmm/docs/README.md +0 -235
- package/.bmad/bmm/docs/agents-guide.md +0 -1056
- package/.bmad/bmm/docs/brownfield-guide.md +0 -754
- package/.bmad/bmm/docs/enterprise-agentic-development.md +0 -680
- package/.bmad/bmm/docs/faq.md +0 -587
- package/.bmad/bmm/docs/glossary.md +0 -320
- package/.bmad/bmm/docs/party-mode.md +0 -224
- package/.bmad/bmm/docs/quick-spec-flow.md +0 -652
- package/.bmad/bmm/docs/quick-start.md +0 -366
- package/.bmad/bmm/docs/scale-adaptive-system.md +0 -599
- package/.bmad/bmm/docs/test-architecture.md +0 -394
- package/.bmad/bmm/docs/workflow-architecture-reference.md +0 -371
- package/.bmad/bmm/docs/workflow-document-project-reference.md +0 -487
- package/.bmad/bmm/docs/workflows-analysis.md +0 -370
- package/.bmad/bmm/docs/workflows-implementation.md +0 -284
- package/.bmad/bmm/docs/workflows-planning.md +0 -601
- package/.bmad/bmm/docs/workflows-solutioning.md +0 -501
- package/.bmad/bmm/tasks/daily-standup.xml +0 -85
- package/.bmad/bmm/teams/default-party.csv +0 -19
- package/.bmad/bmm/teams/team-fullstack.yaml +0 -12
- package/.bmad/bmm/testarch/knowledge/ci-burn-in.md +0 -675
- package/.bmad/bmm/testarch/knowledge/component-tdd.md +0 -486
- package/.bmad/bmm/testarch/knowledge/contract-testing.md +0 -957
- package/.bmad/bmm/testarch/knowledge/data-factories.md +0 -500
- package/.bmad/bmm/testarch/knowledge/email-auth.md +0 -721
- package/.bmad/bmm/testarch/knowledge/error-handling.md +0 -725
- package/.bmad/bmm/testarch/knowledge/feature-flags.md +0 -750
- package/.bmad/bmm/testarch/knowledge/fixture-architecture.md +0 -401
- package/.bmad/bmm/testarch/knowledge/network-first.md +0 -486
- package/.bmad/bmm/testarch/knowledge/nfr-criteria.md +0 -670
- package/.bmad/bmm/testarch/knowledge/playwright-config.md +0 -730
- package/.bmad/bmm/testarch/knowledge/probability-impact.md +0 -601
- package/.bmad/bmm/testarch/knowledge/risk-governance.md +0 -615
- package/.bmad/bmm/testarch/knowledge/selective-testing.md +0 -732
- package/.bmad/bmm/testarch/knowledge/selector-resilience.md +0 -527
- package/.bmad/bmm/testarch/knowledge/test-healing-patterns.md +0 -644
- package/.bmad/bmm/testarch/knowledge/test-levels-framework.md +0 -473
- package/.bmad/bmm/testarch/knowledge/test-priorities-matrix.md +0 -373
- package/.bmad/bmm/testarch/knowledge/test-quality.md +0 -664
- package/.bmad/bmm/testarch/knowledge/timing-debugging.md +0 -372
- package/.bmad/bmm/testarch/knowledge/visual-debugging.md +0 -524
- package/.bmad/bmm/testarch/tea-index.csv +0 -22
- package/.bmad/bmm/workflows/1-analysis/brainstorm-project/instructions.md +0 -110
- package/.bmad/bmm/workflows/1-analysis/brainstorm-project/project-context.md +0 -25
- package/.bmad/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +0 -26
- package/.bmad/bmm/workflows/1-analysis/domain-research/instructions.md +0 -423
- package/.bmad/bmm/workflows/1-analysis/domain-research/template.md +0 -180
- package/.bmad/bmm/workflows/1-analysis/domain-research/workflow.yaml +0 -40
- package/.bmad/bmm/workflows/1-analysis/product-brief/checklist.md +0 -115
- package/.bmad/bmm/workflows/1-analysis/product-brief/instructions.md +0 -524
- package/.bmad/bmm/workflows/1-analysis/product-brief/template.md +0 -181
- package/.bmad/bmm/workflows/1-analysis/product-brief/workflow.yaml +0 -45
- package/.bmad/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +0 -144
- package/.bmad/bmm/workflows/1-analysis/research/checklist-technical.md +0 -249
- package/.bmad/bmm/workflows/1-analysis/research/checklist.md +0 -299
- package/.bmad/bmm/workflows/1-analysis/research/claude-code/injections.yaml +0 -114
- package/.bmad/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +0 -439
- package/.bmad/bmm/workflows/1-analysis/research/instructions-market.md +0 -679
- package/.bmad/bmm/workflows/1-analysis/research/instructions-router.md +0 -133
- package/.bmad/bmm/workflows/1-analysis/research/instructions-technical.md +0 -538
- package/.bmad/bmm/workflows/1-analysis/research/template-deep-prompt.md +0 -94
- package/.bmad/bmm/workflows/1-analysis/research/template-market.md +0 -347
- package/.bmad/bmm/workflows/1-analysis/research/template-technical.md +0 -245
- package/.bmad/bmm/workflows/1-analysis/research/workflow.yaml +0 -44
- package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/checklist.md +0 -310
- package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +0 -1301
- package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +0 -145
- package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +0 -60
- package/.bmad/bmm/workflows/2-plan-workflows/prd/checklist.md +0 -350
- package/.bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +0 -52
- package/.bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +0 -169
- package/.bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +0 -45
- package/.bmad/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +0 -13
- package/.bmad/bmm/workflows/2-plan-workflows/prd/instructions.md +0 -408
- package/.bmad/bmm/workflows/2-plan-workflows/prd/prd-template.md +0 -237
- package/.bmad/bmm/workflows/2-plan-workflows/prd/project-types.csv +0 -11
- package/.bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml +0 -46
- package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +0 -214
- package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +0 -80
- package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +0 -200
- package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +0 -451
- package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +0 -1115
- package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +0 -181
- package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +0 -90
- package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +0 -60
- package/.bmad/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +0 -347
- package/.bmad/bmm/workflows/3-solutioning/architecture/architecture-template.md +0 -103
- package/.bmad/bmm/workflows/3-solutioning/architecture/checklist.md +0 -244
- package/.bmad/bmm/workflows/3-solutioning/architecture/decision-catalog.yaml +0 -222
- package/.bmad/bmm/workflows/3-solutioning/architecture/instructions.md +0 -704
- package/.bmad/bmm/workflows/3-solutioning/architecture/pattern-categories.csv +0 -13
- package/.bmad/bmm/workflows/3-solutioning/architecture/workflow.yaml +0 -68
- package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/checklist.md +0 -175
- package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +0 -305
- package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/template.md +0 -146
- package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/validation-criteria.yaml +0 -189
- package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +0 -64
- package/.bmad/bmm/workflows/4-implementation/code-review/backlog_template.md +0 -12
- package/.bmad/bmm/workflows/4-implementation/code-review/checklist.md +0 -22
- package/.bmad/bmm/workflows/4-implementation/code-review/instructions.md +0 -420
- package/.bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +0 -65
- package/.bmad/bmm/workflows/4-implementation/correct-course/checklist.md +0 -279
- package/.bmad/bmm/workflows/4-implementation/correct-course/instructions.md +0 -201
- package/.bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +0 -43
- package/.bmad/bmm/workflows/4-implementation/create-story/checklist.md +0 -240
- package/.bmad/bmm/workflows/4-implementation/create-story/instructions.md +0 -283
- package/.bmad/bmm/workflows/4-implementation/create-story/template.md +0 -51
- package/.bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +0 -74
- package/.bmad/bmm/workflows/4-implementation/dev-story/AUDIT-REPORT.md +0 -367
- package/.bmad/bmm/workflows/4-implementation/dev-story/checklist.md +0 -38
- package/.bmad/bmm/workflows/4-implementation/dev-story/instructions.md +0 -262
- package/.bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +0 -26
- package/.bmad/bmm/workflows/4-implementation/epic-tech-context/checklist.md +0 -17
- package/.bmad/bmm/workflows/4-implementation/epic-tech-context/instructions.md +0 -189
- package/.bmad/bmm/workflows/4-implementation/epic-tech-context/template.md +0 -76
- package/.bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +0 -58
- package/.bmad/bmm/workflows/4-implementation/retrospective/instructions.md +0 -1460
- package/.bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +0 -71
- package/.bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +0 -33
- package/.bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +0 -238
- package/.bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +0 -55
- package/.bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +0 -47
- package/.bmad/bmm/workflows/4-implementation/story-context/checklist.md +0 -16
- package/.bmad/bmm/workflows/4-implementation/story-context/context-template.xml +0 -34
- package/.bmad/bmm/workflows/4-implementation/story-context/instructions.md +0 -234
- package/.bmad/bmm/workflows/4-implementation/story-context/workflow.yaml +0 -57
- package/.bmad/bmm/workflows/4-implementation/story-done/instructions.md +0 -111
- package/.bmad/bmm/workflows/4-implementation/story-done/workflow.yaml +0 -25
- package/.bmad/bmm/workflows/4-implementation/story-ready/instructions.md +0 -117
- package/.bmad/bmm/workflows/4-implementation/story-ready/workflow.yaml +0 -25
- package/.bmad/bmm/workflows/document-project/checklist.md +0 -245
- package/.bmad/bmm/workflows/document-project/documentation-requirements.csv +0 -12
- package/.bmad/bmm/workflows/document-project/instructions.md +0 -222
- package/.bmad/bmm/workflows/document-project/templates/deep-dive-template.md +0 -345
- package/.bmad/bmm/workflows/document-project/templates/index-template.md +0 -169
- package/.bmad/bmm/workflows/document-project/templates/project-overview-template.md +0 -103
- package/.bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +0 -160
- package/.bmad/bmm/workflows/document-project/templates/source-tree-template.md +0 -135
- package/.bmad/bmm/workflows/document-project/workflow.yaml +0 -34
- package/.bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +0 -298
- package/.bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +0 -31
- package/.bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +0 -1106
- package/.bmad/bmm/workflows/document-project/workflows/full-scan.yaml +0 -31
- package/.bmad/bmm/workflows/techdoc/documentation-standards.md +0 -262
- package/.bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +0 -363
- package/.bmad/bmm/workflows/testarch/atdd/checklist.md +0 -373
- package/.bmad/bmm/workflows/testarch/atdd/instructions.md +0 -785
- package/.bmad/bmm/workflows/testarch/atdd/workflow.yaml +0 -52
- package/.bmad/bmm/workflows/testarch/automate/checklist.md +0 -580
- package/.bmad/bmm/workflows/testarch/automate/instructions.md +0 -1303
- package/.bmad/bmm/workflows/testarch/automate/workflow.yaml +0 -61
- package/.bmad/bmm/workflows/testarch/ci/checklist.md +0 -246
- package/.bmad/bmm/workflows/testarch/ci/github-actions-template.yaml +0 -165
- package/.bmad/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +0 -128
- package/.bmad/bmm/workflows/testarch/ci/instructions.md +0 -517
- package/.bmad/bmm/workflows/testarch/ci/workflow.yaml +0 -53
- package/.bmad/bmm/workflows/testarch/framework/checklist.md +0 -321
- package/.bmad/bmm/workflows/testarch/framework/instructions.md +0 -455
- package/.bmad/bmm/workflows/testarch/framework/workflow.yaml +0 -53
- package/.bmad/bmm/workflows/testarch/nfr-assess/checklist.md +0 -405
- package/.bmad/bmm/workflows/testarch/nfr-assess/instructions.md +0 -722
- package/.bmad/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +0 -443
- package/.bmad/bmm/workflows/testarch/nfr-assess/workflow.yaml +0 -56
- package/.bmad/bmm/workflows/testarch/test-design/checklist.md +0 -234
- package/.bmad/bmm/workflows/testarch/test-design/instructions.md +0 -621
- package/.bmad/bmm/workflows/testarch/test-design/test-design-template.md +0 -285
- package/.bmad/bmm/workflows/testarch/test-design/workflow.yaml +0 -52
- package/.bmad/bmm/workflows/testarch/test-review/checklist.md +0 -470
- package/.bmad/bmm/workflows/testarch/test-review/instructions.md +0 -608
- package/.bmad/bmm/workflows/testarch/test-review/test-review-template.md +0 -388
- package/.bmad/bmm/workflows/testarch/test-review/workflow.yaml +0 -53
- package/.bmad/bmm/workflows/testarch/trace/checklist.md +0 -654
- package/.bmad/bmm/workflows/testarch/trace/instructions.md +0 -1045
- package/.bmad/bmm/workflows/testarch/trace/trace-template.md +0 -673
- package/.bmad/bmm/workflows/testarch/trace/workflow.yaml +0 -66
- package/.bmad/bmm/workflows/workflow-status/init/instructions.md +0 -822
- package/.bmad/bmm/workflows/workflow-status/init/workflow.yaml +0 -27
- package/.bmad/bmm/workflows/workflow-status/instructions.md +0 -387
- package/.bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +0 -127
- package/.bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +0 -115
- package/.bmad/bmm/workflows/workflow-status/paths/game-design.yaml +0 -52
- package/.bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml +0 -97
- package/.bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml +0 -88
- package/.bmad/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml +0 -58
- package/.bmad/bmm/workflows/workflow-status/paths/quick-flow-greenfield.yaml +0 -47
- package/.bmad/bmm/workflows/workflow-status/project-levels.yaml +0 -59
- package/.bmad/bmm/workflows/workflow-status/sample-level-3-workflow.yaml +0 -49
- package/.bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +0 -31
- package/.bmad/bmm/workflows/workflow-status/workflow.yaml +0 -28
- package/.bmad/core/agents/bmad-master.md +0 -71
- package/.bmad/core/agents/bmad-web-orchestrator.agent.xml +0 -113
- package/.bmad/core/config.yaml +0 -11
- package/.bmad/core/tasks/adv-elicit-methods.csv +0 -39
- package/.bmad/core/tasks/adv-elicit.xml +0 -106
- package/.bmad/core/tasks/index-docs.xml +0 -65
- package/.bmad/core/tasks/validate-workflow.xml +0 -89
- package/.bmad/core/tasks/workflow.xml +0 -156
- package/.bmad/core/tools/shard-doc.xml +0 -65
- package/.bmad/core/workflows/brainstorming/README.md +0 -271
- package/.bmad/core/workflows/brainstorming/brain-methods.csv +0 -36
- package/.bmad/core/workflows/brainstorming/instructions.md +0 -314
- package/.bmad/core/workflows/brainstorming/template.md +0 -102
- package/.bmad/core/workflows/brainstorming/workflow.yaml +0 -43
- package/.bmad/core/workflows/party-mode/instructions.md +0 -183
- package/.bmad/core/workflows/party-mode/workflow.yaml +0 -27
- package/.bmad/docs/claude-code-instructions.md +0 -25
- package/.claude/commands/bmad/bmb/agents/bmad-builder.md +0 -70
- package/.claude/commands/bmad/bmb/workflows/audit-workflow.md +0 -15
- package/.claude/commands/bmad/bmb/workflows/convert-legacy.md +0 -15
- package/.claude/commands/bmad/bmb/workflows/create-agent.md +0 -15
- package/.claude/commands/bmad/bmb/workflows/create-module.md +0 -15
- package/.claude/commands/bmad/bmb/workflows/create-workflow.md +0 -15
- package/.claude/commands/bmad/bmb/workflows/edit-agent.md +0 -15
- package/.claude/commands/bmad/bmb/workflows/edit-module.md +0 -15
- package/.claude/commands/bmad/bmb/workflows/edit-workflow.md +0 -15
- package/.claude/commands/bmad/bmb/workflows/module-brief.md +0 -15
- package/.claude/commands/bmad/bmb/workflows/redoc.md +0 -15
- package/.claude/commands/bmad/bmm/agents/analyst.md +0 -75
- package/.claude/commands/bmad/bmm/agents/architect.md +0 -80
- package/.claude/commands/bmad/bmm/agents/dev.md +0 -69
- package/.claude/commands/bmad/bmm/agents/pm.md +0 -84
- package/.claude/commands/bmad/bmm/agents/sm.md +0 -93
- package/.claude/commands/bmad/bmm/agents/tea.md +0 -80
- package/.claude/commands/bmad/bmm/agents/tech-writer.md +0 -90
- package/.claude/commands/bmad/bmm/agents/ux-designer.md +0 -79
- package/.claude/commands/bmad/bmm/workflows/architecture.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/brainstorm-project.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/code-review.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/correct-course.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/create-epics-and-stories.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/create-story.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/create-ux-design.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/dev-story.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/document-project.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/domain-research.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/prd.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/product-brief.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/research.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/retrospective.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/solutioning-gate-check.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/sprint-planning.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/story-context.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/story-done.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/story-ready.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/tech-spec.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/workflow-init.md +0 -15
- package/.claude/commands/bmad/bmm/workflows/workflow-status.md +0 -15
- package/.claude/commands/bmad/core/agents/bmad-master.md +0 -71
- package/.claude/commands/bmad/core/tasks/adv-elicit.md +0 -9
- package/.claude/commands/bmad/core/tasks/index-docs.md +0 -9
- package/.claude/commands/bmad/core/tools/shard-doc.md +0 -9
- package/.claude/commands/bmad/core/workflows/brainstorming.md +0 -15
- package/.claude/commands/bmad/core/workflows/party-mode.md +0 -15
- package/.claude/settings.local.json +0 -16
- package/src/modules/bmgd/workflows/4-production/dev-story/AUDIT-REPORT.md +0 -367
- package/src/modules/bmm/sub-modules/claude-code/README.md +0 -87
- package/src/modules/bmm/sub-modules/claude-code/config.yaml +0 -5
- package/src/modules/bmm/sub-modules/claude-code/injections.yaml +0 -242
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/api-documenter.md +0 -102
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/codebase-analyzer.md +0 -82
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/data-analyst.md +0 -101
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/pattern-detector.md +0 -84
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/dependency-mapper.md +0 -83
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/epic-optimizer.md +0 -81
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/requirements-analyst.md +0 -61
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/technical-decisions-curator.md +0 -168
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/trend-spotter.md +0 -115
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/user-journey-mapper.md +0 -123
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/user-researcher.md +0 -72
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-research/market-researcher.md +0 -51
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-research/tech-debt-auditor.md +0 -106
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-review/document-reviewer.md +0 -102
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-review/technical-evaluator.md +0 -68
- package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-review/test-coverage-analyzer.md +0 -108
- package/src/modules/bmm/tasks/daily-standup.xml +0 -85
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +0 -200
- package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +0 -451
- package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/validation-criteria.yaml +0 -189
- package/src/modules/bmm/workflows/4-implementation/dev-story/AUDIT-REPORT.md +0 -367
- package/src/modules/bmm/workflows/workflow-status/sample-level-3-workflow.yaml +0 -49
- package/web-bundles/bmgd/agents/game-architect.xml +0 -664
- package/web-bundles/bmgd/agents/game-designer.xml +0 -5489
- package/web-bundles/bmgd/agents/game-dev.xml +0 -595
- package/web-bundles/bmgd/agents/game-scrum-master.xml +0 -699
- package/web-bundles/bmgd/teams/team-gamedev.xml +0 -6588
- package/web-bundles/bmm/agents/analyst.xml +0 -5263
- package/web-bundles/bmm/agents/architect.xml +0 -2378
- package/web-bundles/bmm/agents/dev.xml +0 -248
- package/web-bundles/bmm/agents/pm.xml +0 -4137
- package/web-bundles/bmm/agents/sm.xml +0 -708
- package/web-bundles/bmm/agents/tea.xml +0 -759
- package/web-bundles/bmm/agents/tech-writer.xml +0 -624
- package/web-bundles/bmm/agents/ux-designer.xml +0 -2492
- package/web-bundles/bmm/teams/team-fullstack.xml +0 -12369
- package/web-bundles/cis/agents/brainstorming-coach.xml +0 -1069
- package/web-bundles/cis/agents/creative-problem-solver.xml +0 -1060
- package/web-bundles/cis/agents/design-thinking-coach.xml +0 -955
- package/web-bundles/cis/agents/innovation-strategist.xml +0 -1108
- package/web-bundles/cis/agents/storyteller.xml +0 -598
- package/web-bundles/cis/teams/creative-squad.xml +0 -3449
|
@@ -1,1115 +0,0 @@
|
|
|
1
|
-
# Tech-Spec Workflow - Context-Aware Technical Planning (Level 0-1)
|
|
2
|
-
|
|
3
|
-
<workflow>
|
|
4
|
-
|
|
5
|
-
<critical>The workflow execution engine is governed by: {project-root}/.bmad/core/tasks/workflow.xml</critical>
|
|
6
|
-
<critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
|
|
7
|
-
<critical>Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}</critical>
|
|
8
|
-
<critical>Generate all documents in {document_output_language}</critical>
|
|
9
|
-
<critical>This is for Level 0-1 projects - tech-spec with context-rich story generation</critical>
|
|
10
|
-
<critical>Level 0: tech-spec + single user story | Level 1: tech-spec + epic/stories</critical>
|
|
11
|
-
<critical>LIVING DOCUMENT: Write to tech-spec.md continuously as you discover - never wait until the end</critical>
|
|
12
|
-
<critical>CONTEXT IS KING: Gather ALL available context before generating specs</critical>
|
|
13
|
-
<critical>DOCUMENT OUTPUT: Technical, precise, definitive. Specific versions only. User skill level ({user_skill_level}) affects conversation style ONLY, not document content.</critical>
|
|
14
|
-
<critical>Input documents specified in workflow.yaml input_file_patterns - workflow engine handles fuzzy matching, whole vs sharded document discovery automatically</critical>
|
|
15
|
-
|
|
16
|
-
<step n="0" goal="Validate workflow readiness and detect project level" tag="workflow-status">
|
|
17
|
-
<action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
|
|
18
|
-
|
|
19
|
-
<check if="status file not found">
|
|
20
|
-
<output>No workflow status file found. Tech-spec workflow can run standalone or as part of BMM workflow path.</output>
|
|
21
|
-
<output>**Recommended:** Run `workflow-init` first for project context tracking and workflow sequencing.</output>
|
|
22
|
-
<output>**Quick Start:** Continue in standalone mode - perfect for rapid prototyping and quick changes!</output>
|
|
23
|
-
<ask>Continue in standalone mode or exit to run workflow-init? (continue/exit)</ask>
|
|
24
|
-
<check if="continue">
|
|
25
|
-
<action>Set standalone_mode = true</action>
|
|
26
|
-
|
|
27
|
-
<output>Great! Let's quickly configure your project...</output>
|
|
28
|
-
|
|
29
|
-
<ask>What level is this project?
|
|
30
|
-
|
|
31
|
-
**Level 0** - Single atomic change (bug fix, small isolated feature, single file change)
|
|
32
|
-
→ Generates: 1 tech-spec + 1 story
|
|
33
|
-
→ Example: "Fix login validation bug" or "Add email field to user form"
|
|
34
|
-
|
|
35
|
-
**Level 1** - Coherent feature (multiple related changes, small feature set)
|
|
36
|
-
→ Generates: 1 tech-spec + 1 epic + 2-3 stories
|
|
37
|
-
→ Example: "Add OAuth integration" or "Build user profile page"
|
|
38
|
-
|
|
39
|
-
Enter **0** or **1**:</ask>
|
|
40
|
-
|
|
41
|
-
<action>Capture user response as project_level (0 or 1)</action>
|
|
42
|
-
<action>Validate: If not 0 or 1, ask again</action>
|
|
43
|
-
|
|
44
|
-
<ask>Is this a **greenfield** (new/empty codebase) or **brownfield** (existing codebase) project?
|
|
45
|
-
|
|
46
|
-
**Greenfield** - Starting fresh, no existing code
|
|
47
|
-
**Brownfield** - Adding to or modifying existing code
|
|
48
|
-
|
|
49
|
-
Enter **greenfield** or **brownfield**:</ask>
|
|
50
|
-
|
|
51
|
-
<action>Capture user response as field_type (greenfield or brownfield)</action>
|
|
52
|
-
<action>Validate: If not greenfield or brownfield, ask again</action>
|
|
53
|
-
|
|
54
|
-
<output>Perfect! Running as:
|
|
55
|
-
|
|
56
|
-
- **Project Level:** {{project_level}}
|
|
57
|
-
- **Field Type:** {{field_type}}
|
|
58
|
-
- **Mode:** Standalone (no status file tracking)
|
|
59
|
-
|
|
60
|
-
Let's build your tech-spec!</output>
|
|
61
|
-
</check>
|
|
62
|
-
<check if="exit">
|
|
63
|
-
<action>Exit workflow</action>
|
|
64
|
-
</check>
|
|
65
|
-
</check>
|
|
66
|
-
|
|
67
|
-
<check if="status file found">
|
|
68
|
-
<action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
|
|
69
|
-
<action>Parse workflow_status section</action>
|
|
70
|
-
<action>Check status of "tech-spec" workflow</action>
|
|
71
|
-
<action>Get project_level from YAML metadata</action>
|
|
72
|
-
<action>Get field_type from YAML metadata (greenfield or brownfield)</action>
|
|
73
|
-
<action>Find first non-completed workflow (next expected workflow)</action>
|
|
74
|
-
|
|
75
|
-
<check if="project_level >= 2">
|
|
76
|
-
<output>**Incorrect Workflow for Level {{project_level}}**
|
|
77
|
-
|
|
78
|
-
Tech-spec is for Level 0-1 projects. Level 2-4 should use PRD workflow.
|
|
79
|
-
|
|
80
|
-
**Correct workflow:** `create-prd` (PM agent)
|
|
81
|
-
</output>
|
|
82
|
-
<action>Exit and redirect to prd</action>
|
|
83
|
-
</check>
|
|
84
|
-
|
|
85
|
-
<check if="tech-spec status is file path (already completed)">
|
|
86
|
-
<output>⚠️ Tech-spec already completed: {{tech-spec status}}</output>
|
|
87
|
-
<ask>Re-running will overwrite the existing tech-spec. Continue? (y/n)</ask>
|
|
88
|
-
<check if="n">
|
|
89
|
-
<output>Exiting. Use workflow-status to see your next step.</output>
|
|
90
|
-
<action>Exit workflow</action>
|
|
91
|
-
</check>
|
|
92
|
-
</check>
|
|
93
|
-
|
|
94
|
-
<check if="tech-spec is not the next expected workflow">
|
|
95
|
-
<output>⚠️ Next expected workflow: {{next_workflow}}. Tech-spec is out of sequence.</output>
|
|
96
|
-
<ask>Continue with tech-spec anyway? (y/n)</ask>
|
|
97
|
-
<check if="n">
|
|
98
|
-
<output>Exiting. Run {{next_workflow}} instead.</output>
|
|
99
|
-
<action>Exit workflow</action>
|
|
100
|
-
</check>
|
|
101
|
-
</check>
|
|
102
|
-
|
|
103
|
-
<action>Set standalone_mode = false</action>
|
|
104
|
-
</check>
|
|
105
|
-
</step>
|
|
106
|
-
|
|
107
|
-
<step n="1" goal="Comprehensive context discovery - gather everything available">
|
|
108
|
-
|
|
109
|
-
<action>Welcome {user_name} warmly and explain what we're about to do:
|
|
110
|
-
|
|
111
|
-
"I'm going to gather all available context about your project before we dive into the technical spec. This includes:
|
|
112
|
-
|
|
113
|
-
- Any existing documentation (product briefs, research)
|
|
114
|
-
- Brownfield codebase analysis (if applicable)
|
|
115
|
-
- Your project's tech stack and dependencies
|
|
116
|
-
- Existing code patterns and structure
|
|
117
|
-
|
|
118
|
-
This ensures the tech-spec is grounded in reality and gives developers everything they need."
|
|
119
|
-
</action>
|
|
120
|
-
|
|
121
|
-
<action>**PHASE 1: Load Existing Documents**
|
|
122
|
-
|
|
123
|
-
Search for and load (using dual-strategy: whole first, then sharded):
|
|
124
|
-
|
|
125
|
-
1. **Product Brief:**
|
|
126
|
-
- Search pattern: {output*folder}/\_brief*.md
|
|
127
|
-
- Sharded: {output*folder}/\_brief*/index.md
|
|
128
|
-
- If found: Load completely and extract key context
|
|
129
|
-
|
|
130
|
-
2. **Research Documents:**
|
|
131
|
-
- Search pattern: {output*folder}/\_research*.md
|
|
132
|
-
- Sharded: {output*folder}/\_research*/index.md
|
|
133
|
-
- If found: Load completely and extract insights
|
|
134
|
-
|
|
135
|
-
3. **Document-Project Output (CRITICAL for brownfield):**
|
|
136
|
-
- Always check: {output_folder}/docs/index.md
|
|
137
|
-
- If found: This is the brownfield codebase map - load ALL shards!
|
|
138
|
-
- Extract: File structure, key modules, existing patterns, naming conventions
|
|
139
|
-
|
|
140
|
-
Create a summary of what was found:
|
|
141
|
-
|
|
142
|
-
- List of loaded documents
|
|
143
|
-
- Key insights from each
|
|
144
|
-
- Brownfield vs greenfield determination
|
|
145
|
-
</action>
|
|
146
|
-
|
|
147
|
-
<action>**PHASE 2: Detect Project Type from Setup Files**
|
|
148
|
-
|
|
149
|
-
Search for project setup files in {project-root}:
|
|
150
|
-
|
|
151
|
-
**Node.js/JavaScript:**
|
|
152
|
-
|
|
153
|
-
- package.json → Parse for framework, dependencies, scripts
|
|
154
|
-
|
|
155
|
-
**Python:**
|
|
156
|
-
|
|
157
|
-
- requirements.txt → Parse for packages
|
|
158
|
-
- pyproject.toml → Parse for modern Python projects
|
|
159
|
-
- Pipfile → Parse for pipenv projects
|
|
160
|
-
|
|
161
|
-
**Ruby:**
|
|
162
|
-
|
|
163
|
-
- Gemfile → Parse for gems and versions
|
|
164
|
-
|
|
165
|
-
**Java:**
|
|
166
|
-
|
|
167
|
-
- pom.xml → Parse for Maven dependencies
|
|
168
|
-
- build.gradle → Parse for Gradle dependencies
|
|
169
|
-
|
|
170
|
-
**Go:**
|
|
171
|
-
|
|
172
|
-
- go.mod → Parse for modules
|
|
173
|
-
|
|
174
|
-
**Rust:**
|
|
175
|
-
|
|
176
|
-
- Cargo.toml → Parse for crates
|
|
177
|
-
|
|
178
|
-
**PHP:**
|
|
179
|
-
|
|
180
|
-
- composer.json → Parse for packages
|
|
181
|
-
|
|
182
|
-
If setup file found, extract:
|
|
183
|
-
|
|
184
|
-
1. Framework name and EXACT version (e.g., "React 18.2.0", "Django 4.2.1")
|
|
185
|
-
2. All production dependencies with versions
|
|
186
|
-
3. Dev dependencies and tools (TypeScript, Jest, ESLint, pytest, etc.)
|
|
187
|
-
4. Available scripts (npm run test, npm run build, etc.)
|
|
188
|
-
5. Project type indicators (is it an API? Web app? CLI tool?)
|
|
189
|
-
6. **Test framework** (Jest, pytest, RSpec, JUnit, Mocha, etc.)
|
|
190
|
-
|
|
191
|
-
**Check for Outdated Dependencies:**
|
|
192
|
-
<check if="major framework version > 2 years old">
|
|
193
|
-
<action>Use WebSearch to find current recommended version</action>
|
|
194
|
-
<example>
|
|
195
|
-
If package.json shows "react": "16.14.0" (from 2020):
|
|
196
|
-
<WebSearch query="React latest stable version 2025 migration guide" />
|
|
197
|
-
Note both current version AND migration complexity in stack summary
|
|
198
|
-
</example>
|
|
199
|
-
</check>
|
|
200
|
-
|
|
201
|
-
**For Greenfield Projects:**
|
|
202
|
-
<check if="field_type == greenfield">
|
|
203
|
-
<action>Use WebSearch for current best practices AND starter templates</action>
|
|
204
|
-
<example>
|
|
205
|
-
<WebSearch query="{detected_framework} best practices {current_year}" />
|
|
206
|
-
<WebSearch query="{detected_framework} recommended packages {current_year}" />
|
|
207
|
-
<WebSearch query="{detected_framework} official starter template {current_year}" />
|
|
208
|
-
<WebSearch query="{project_type} {detected_framework} boilerplate {current_year}" />
|
|
209
|
-
</example>
|
|
210
|
-
|
|
211
|
-
**RECOMMEND STARTER TEMPLATES:**
|
|
212
|
-
Look for official or well-maintained starter templates:
|
|
213
|
-
|
|
214
|
-
- React: Create React App, Vite, Next.js starter
|
|
215
|
-
- Vue: create-vue, Nuxt starter
|
|
216
|
-
- Python: cookiecutter templates, FastAPI template
|
|
217
|
-
- Node.js: express-generator, NestJS CLI
|
|
218
|
-
- Ruby: Rails new, Sinatra template
|
|
219
|
-
- Go: go-blueprint, standard project layout
|
|
220
|
-
|
|
221
|
-
Benefits of starters:
|
|
222
|
-
|
|
223
|
-
- ✅ Modern best practices baked in
|
|
224
|
-
- ✅ Proper project structure
|
|
225
|
-
- ✅ Build tooling configured
|
|
226
|
-
- ✅ Testing framework set up
|
|
227
|
-
- ✅ Linting/formatting included
|
|
228
|
-
- ✅ Faster time to first feature
|
|
229
|
-
|
|
230
|
-
**Present recommendations to user:**
|
|
231
|
-
"I found these starter templates for {{framework}}:
|
|
232
|
-
|
|
233
|
-
1. {{official_template}} - Official, well-maintained
|
|
234
|
-
2. {{community_template}} - Popular community template
|
|
235
|
-
|
|
236
|
-
These provide {{benefits}}. Would you like to use one? (yes/no/show-me-more)"
|
|
237
|
-
|
|
238
|
-
<action>Capture user preference on starter template</action>
|
|
239
|
-
<action>If yes, include starter setup in implementation stack</action>
|
|
240
|
-
</check>
|
|
241
|
-
|
|
242
|
-
Store this as {{project_stack_summary}}
|
|
243
|
-
</action>
|
|
244
|
-
|
|
245
|
-
<action>**PHASE 3: Brownfield Codebase Reconnaissance** (if applicable)
|
|
246
|
-
|
|
247
|
-
<check if="field_type == brownfield OR document-project output found">
|
|
248
|
-
|
|
249
|
-
Analyze the existing project structure:
|
|
250
|
-
|
|
251
|
-
1. **Directory Structure:**
|
|
252
|
-
- Identify main code directories (src/, lib/, app/, components/, services/)
|
|
253
|
-
- Note organization patterns (feature-based, layer-based, domain-driven)
|
|
254
|
-
- Identify test directories and patterns
|
|
255
|
-
|
|
256
|
-
2. **Code Patterns:**
|
|
257
|
-
- Look for dominant patterns (class-based, functional, MVC, microservices)
|
|
258
|
-
- Identify naming conventions (camelCase, snake_case, PascalCase)
|
|
259
|
-
- Note file organization patterns
|
|
260
|
-
|
|
261
|
-
3. **Key Modules/Services:**
|
|
262
|
-
- Identify major modules or services already in place
|
|
263
|
-
- Note entry points (main.js, app.py, index.ts)
|
|
264
|
-
- Document important utilities or shared code
|
|
265
|
-
|
|
266
|
-
4. **Testing Patterns & Standards (CRITICAL):**
|
|
267
|
-
- Identify test framework in use (from package.json/requirements.txt)
|
|
268
|
-
- Note test file naming patterns (.test.js, \_test.py, .spec.ts, Test.java)
|
|
269
|
-
- Document test organization (tests/, **tests**, spec/, test/)
|
|
270
|
-
- Look for test configuration files (jest.config.js, pytest.ini, .rspec)
|
|
271
|
-
- Check for coverage requirements (in CI config, test scripts)
|
|
272
|
-
- Identify mocking/stubbing libraries (jest.mock, unittest.mock, sinon)
|
|
273
|
-
- Note assertion styles (expect, assert, should)
|
|
274
|
-
|
|
275
|
-
5. **Code Style & Conventions (MUST CONFORM):**
|
|
276
|
-
- Check for linter config (.eslintrc, .pylintrc, rubocop.yml)
|
|
277
|
-
- Check for formatter config (.prettierrc, .black, .editorconfig)
|
|
278
|
-
- Identify code style:
|
|
279
|
-
- Semicolons: yes/no (JavaScript/TypeScript)
|
|
280
|
-
- Quotes: single/double
|
|
281
|
-
- Indentation: spaces/tabs, size
|
|
282
|
-
- Line length limits
|
|
283
|
-
- Import/export patterns (named vs default, organization)
|
|
284
|
-
- Error handling patterns (try/catch, Result types, error classes)
|
|
285
|
-
- Logging patterns (console, winston, logging module, specific formats)
|
|
286
|
-
- Documentation style (JSDoc, docstrings, YARD, JavaDoc)
|
|
287
|
-
|
|
288
|
-
Store this as {{existing_structure_summary}}
|
|
289
|
-
|
|
290
|
-
**CRITICAL: Confirm Conventions with User**
|
|
291
|
-
<ask>I've detected these conventions in your codebase:
|
|
292
|
-
|
|
293
|
-
**Code Style:**
|
|
294
|
-
{{detected_code_style}}
|
|
295
|
-
|
|
296
|
-
**Test Patterns:**
|
|
297
|
-
{{detected_test_patterns}}
|
|
298
|
-
|
|
299
|
-
**File Organization:**
|
|
300
|
-
{{detected_file_organization}}
|
|
301
|
-
|
|
302
|
-
Should I follow these existing conventions for the new code?
|
|
303
|
-
|
|
304
|
-
Enter **yes** to conform to existing patterns, or **no** if you want to establish new standards:</ask>
|
|
305
|
-
|
|
306
|
-
<action>Capture user response as conform_to_conventions (yes/no)</action>
|
|
307
|
-
|
|
308
|
-
<check if="conform_to_conventions == no">
|
|
309
|
-
<ask>What conventions would you like to use instead? (Or should I suggest modern best practices?)</ask>
|
|
310
|
-
<action>Capture new conventions or use WebSearch for current best practices</action>
|
|
311
|
-
</check>
|
|
312
|
-
|
|
313
|
-
<action>Store confirmed conventions as {{existing_conventions}}</action>
|
|
314
|
-
|
|
315
|
-
</check>
|
|
316
|
-
|
|
317
|
-
<check if="field_type == greenfield">
|
|
318
|
-
<action>Note: Greenfield project - no existing code to analyze</action>
|
|
319
|
-
<action>Set {{existing_structure_summary}} = "Greenfield project - new codebase"</action>
|
|
320
|
-
</check>
|
|
321
|
-
|
|
322
|
-
</action>
|
|
323
|
-
|
|
324
|
-
<action>**PHASE 4: Synthesize Context Summary**
|
|
325
|
-
|
|
326
|
-
Create {{loaded_documents_summary}} that includes:
|
|
327
|
-
|
|
328
|
-
- Documents found and loaded
|
|
329
|
-
- Brownfield vs greenfield status
|
|
330
|
-
- Tech stack detected (or "To be determined" if greenfield)
|
|
331
|
-
- Existing patterns identified (or "None - greenfield" if applicable)
|
|
332
|
-
|
|
333
|
-
Present this summary to {user_name} conversationally:
|
|
334
|
-
|
|
335
|
-
"Here's what I found about your project:
|
|
336
|
-
|
|
337
|
-
**Documents Available:**
|
|
338
|
-
[List what was found]
|
|
339
|
-
|
|
340
|
-
**Project Type:**
|
|
341
|
-
[Brownfield with X framework Y version OR Greenfield - new project]
|
|
342
|
-
|
|
343
|
-
**Existing Stack:**
|
|
344
|
-
[Framework and dependencies OR "To be determined"]
|
|
345
|
-
|
|
346
|
-
**Code Structure:**
|
|
347
|
-
[Existing patterns OR "New codebase"]
|
|
348
|
-
|
|
349
|
-
This gives me a solid foundation for creating a context-rich tech spec!"
|
|
350
|
-
</action>
|
|
351
|
-
|
|
352
|
-
<template-output>loaded_documents_summary</template-output>
|
|
353
|
-
<template-output>project_stack_summary</template-output>
|
|
354
|
-
<template-output>existing_structure_summary</template-output>
|
|
355
|
-
|
|
356
|
-
</step>
|
|
357
|
-
|
|
358
|
-
<step n="2" goal="Conversational discovery of the change/feature">
|
|
359
|
-
|
|
360
|
-
<action>Now engage in natural conversation to understand what needs to be built.
|
|
361
|
-
|
|
362
|
-
Adapt questioning based on project_level:
|
|
363
|
-
</action>
|
|
364
|
-
|
|
365
|
-
<check if="project_level == 0">
|
|
366
|
-
<action>**Level 0: Atomic Change Discovery**
|
|
367
|
-
|
|
368
|
-
Engage warmly and get specific details:
|
|
369
|
-
|
|
370
|
-
"Let's talk about this change. I need to understand it deeply so the tech-spec gives developers everything they need."
|
|
371
|
-
|
|
372
|
-
**Core Questions (adapt naturally, don't interrogate):**
|
|
373
|
-
|
|
374
|
-
1. "What problem are you solving?"
|
|
375
|
-
- Listen for: Bug fix, missing feature, technical debt, improvement
|
|
376
|
-
- Capture as {{change_type}}
|
|
377
|
-
|
|
378
|
-
2. "Where in the codebase should this live?"
|
|
379
|
-
- If brownfield: "I see you have [existing modules]. Does this fit in any of those?"
|
|
380
|
-
- If greenfield: "Let's figure out the right structure for this."
|
|
381
|
-
- Capture affected areas
|
|
382
|
-
|
|
383
|
-
3. <check if="brownfield">
|
|
384
|
-
"Are there existing patterns or similar code I should follow?"
|
|
385
|
-
- Look for consistency requirements
|
|
386
|
-
- Identify reference implementations
|
|
387
|
-
</check>
|
|
388
|
-
|
|
389
|
-
4. "What's the expected behavior after this change?"
|
|
390
|
-
- Get specific success criteria
|
|
391
|
-
- Understand edge cases
|
|
392
|
-
|
|
393
|
-
5. "Any constraints or gotchas I should know about?"
|
|
394
|
-
- Technical limitations
|
|
395
|
-
- Dependencies on other systems
|
|
396
|
-
- Performance requirements
|
|
397
|
-
|
|
398
|
-
**Discovery Goals:**
|
|
399
|
-
|
|
400
|
-
- Understand the WHY (problem)
|
|
401
|
-
- Understand the WHAT (solution)
|
|
402
|
-
- Understand the WHERE (location in code)
|
|
403
|
-
- Understand the HOW (approach and patterns)
|
|
404
|
-
|
|
405
|
-
Synthesize into clear problem statement and solution overview.
|
|
406
|
-
</action>
|
|
407
|
-
</check>
|
|
408
|
-
|
|
409
|
-
<check if="project_level == 1">
|
|
410
|
-
<action>**Level 1: Feature Discovery**
|
|
411
|
-
|
|
412
|
-
Engage in deeper feature exploration:
|
|
413
|
-
|
|
414
|
-
"This is a Level 1 feature - coherent but focused. Let's explore what you're building."
|
|
415
|
-
|
|
416
|
-
**Core Questions (natural conversation):**
|
|
417
|
-
|
|
418
|
-
1. "What user need are you addressing?"
|
|
419
|
-
- Get to the core value
|
|
420
|
-
- Understand the user's pain point
|
|
421
|
-
|
|
422
|
-
2. "How should this integrate with existing code?"
|
|
423
|
-
- If brownfield: "I saw [existing features]. How does this relate?"
|
|
424
|
-
- Identify integration points
|
|
425
|
-
- Note dependencies
|
|
426
|
-
|
|
427
|
-
3. <check if="brownfield AND similar features exist">
|
|
428
|
-
"Can you point me to similar features I can reference for patterns?"
|
|
429
|
-
- Get example implementations
|
|
430
|
-
- Understand established patterns
|
|
431
|
-
</check>
|
|
432
|
-
|
|
433
|
-
4. "What's IN scope vs OUT of scope for this feature?"
|
|
434
|
-
- Define clear boundaries
|
|
435
|
-
- Identify MVP vs future enhancements
|
|
436
|
-
- Keep it focused (remind: Level 1 = 2-3 stories max)
|
|
437
|
-
|
|
438
|
-
5. "Are there dependencies on other systems or services?"
|
|
439
|
-
- External APIs
|
|
440
|
-
- Databases
|
|
441
|
-
- Third-party libraries
|
|
442
|
-
|
|
443
|
-
6. "What does success look like?"
|
|
444
|
-
- Measurable outcomes
|
|
445
|
-
- User-facing impact
|
|
446
|
-
- Technical validation
|
|
447
|
-
|
|
448
|
-
**Discovery Goals:**
|
|
449
|
-
|
|
450
|
-
- Feature purpose and value
|
|
451
|
-
- Integration strategy
|
|
452
|
-
- Scope boundaries
|
|
453
|
-
- Success criteria
|
|
454
|
-
- Dependencies
|
|
455
|
-
|
|
456
|
-
Synthesize into comprehensive feature description.
|
|
457
|
-
</action>
|
|
458
|
-
</check>
|
|
459
|
-
|
|
460
|
-
<template-output>problem_statement</template-output>
|
|
461
|
-
<template-output>solution_overview</template-output>
|
|
462
|
-
<template-output>change_type</template-output>
|
|
463
|
-
<template-output>scope_in</template-output>
|
|
464
|
-
<template-output>scope_out</template-output>
|
|
465
|
-
|
|
466
|
-
</step>
|
|
467
|
-
|
|
468
|
-
<step n="3" goal="Generate context-aware, definitive technical specification">
|
|
469
|
-
|
|
470
|
-
<critical>ALL TECHNICAL DECISIONS MUST BE DEFINITIVE - NO AMBIGUITY ALLOWED</critical>
|
|
471
|
-
<critical>Use existing stack info to make SPECIFIC decisions</critical>
|
|
472
|
-
<critical>Reference brownfield code to guide implementation</critical>
|
|
473
|
-
|
|
474
|
-
<action>Initialize tech-spec.md with the rich template</action>
|
|
475
|
-
|
|
476
|
-
<action>**Generate Context Section (already captured):**
|
|
477
|
-
|
|
478
|
-
These template variables are already populated from Step 1:
|
|
479
|
-
|
|
480
|
-
- {{loaded_documents_summary}}
|
|
481
|
-
- {{project_stack_summary}}
|
|
482
|
-
- {{existing_structure_summary}}
|
|
483
|
-
|
|
484
|
-
Just save them to the file.
|
|
485
|
-
</action>
|
|
486
|
-
|
|
487
|
-
<template-output file="tech-spec.md">loaded_documents_summary</template-output>
|
|
488
|
-
<template-output file="tech-spec.md">project_stack_summary</template-output>
|
|
489
|
-
<template-output file="tech-spec.md">existing_structure_summary</template-output>
|
|
490
|
-
|
|
491
|
-
<action>**Generate The Change Section:**
|
|
492
|
-
|
|
493
|
-
Already captured from Step 2:
|
|
494
|
-
|
|
495
|
-
- {{problem_statement}}
|
|
496
|
-
- {{solution_overview}}
|
|
497
|
-
- {{scope_in}}
|
|
498
|
-
- {{scope_out}}
|
|
499
|
-
|
|
500
|
-
Save to file.
|
|
501
|
-
</action>
|
|
502
|
-
|
|
503
|
-
<template-output file="tech-spec.md">problem_statement</template-output>
|
|
504
|
-
<template-output file="tech-spec.md">solution_overview</template-output>
|
|
505
|
-
<template-output file="tech-spec.md">scope_in</template-output>
|
|
506
|
-
<template-output file="tech-spec.md">scope_out</template-output>
|
|
507
|
-
|
|
508
|
-
<action>**Generate Implementation Details:**
|
|
509
|
-
|
|
510
|
-
Now make DEFINITIVE technical decisions using all the context gathered.
|
|
511
|
-
|
|
512
|
-
**Source Tree Changes - BE SPECIFIC:**
|
|
513
|
-
|
|
514
|
-
Bad (NEVER do this):
|
|
515
|
-
|
|
516
|
-
- "Update some files in the services folder"
|
|
517
|
-
- "Add tests somewhere"
|
|
518
|
-
|
|
519
|
-
Good (ALWAYS do this):
|
|
520
|
-
|
|
521
|
-
- "src/services/UserService.ts - MODIFY - Add validateEmail() method at line 45"
|
|
522
|
-
- "src/routes/api/users.ts - MODIFY - Add POST /users/validate endpoint"
|
|
523
|
-
- "tests/services/UserService.test.ts - CREATE - Test suite for email validation"
|
|
524
|
-
|
|
525
|
-
Include:
|
|
526
|
-
|
|
527
|
-
- Exact file paths
|
|
528
|
-
- Action: CREATE, MODIFY, DELETE
|
|
529
|
-
- Specific what changes (methods, classes, endpoints, components)
|
|
530
|
-
|
|
531
|
-
**Use brownfield context:**
|
|
532
|
-
|
|
533
|
-
- If modifying existing files, reference current structure
|
|
534
|
-
- Follow existing naming patterns
|
|
535
|
-
- Place new code logically based on current organization
|
|
536
|
-
</action>
|
|
537
|
-
|
|
538
|
-
<template-output file="tech-spec.md">source_tree_changes</template-output>
|
|
539
|
-
|
|
540
|
-
<action>**Technical Approach - BE DEFINITIVE:**
|
|
541
|
-
|
|
542
|
-
Bad (ambiguous):
|
|
543
|
-
|
|
544
|
-
- "Use a logging library like winston or pino"
|
|
545
|
-
- "Use Python 2 or 3"
|
|
546
|
-
- "Set up some kind of validation"
|
|
547
|
-
|
|
548
|
-
Good (definitive):
|
|
549
|
-
|
|
550
|
-
- "Use winston v3.8.2 (already in package.json) for logging"
|
|
551
|
-
- "Implement using Python 3.11 as specified in pyproject.toml"
|
|
552
|
-
- "Use Joi v17.9.0 for request validation following pattern in UserController.ts"
|
|
553
|
-
|
|
554
|
-
**Use detected stack:**
|
|
555
|
-
|
|
556
|
-
- Reference exact versions from package.json/requirements.txt
|
|
557
|
-
- Specify frameworks already in use
|
|
558
|
-
- Make decisions based on what's already there
|
|
559
|
-
|
|
560
|
-
**For greenfield:**
|
|
561
|
-
|
|
562
|
-
- Make definitive choices and justify them
|
|
563
|
-
- Specify exact versions
|
|
564
|
-
- No "or" statements allowed
|
|
565
|
-
</action>
|
|
566
|
-
|
|
567
|
-
<template-output file="tech-spec.md">technical_approach</template-output>
|
|
568
|
-
|
|
569
|
-
<action>**Existing Patterns to Follow:**
|
|
570
|
-
|
|
571
|
-
<check if="brownfield">
|
|
572
|
-
Document patterns from the existing codebase:
|
|
573
|
-
- Class structure patterns
|
|
574
|
-
- Function naming conventions
|
|
575
|
-
- Error handling approach
|
|
576
|
-
- Testing patterns
|
|
577
|
-
- Documentation style
|
|
578
|
-
|
|
579
|
-
Example:
|
|
580
|
-
"Follow the service pattern established in UserService.ts:
|
|
581
|
-
|
|
582
|
-
- Export class with constructor injection
|
|
583
|
-
- Use async/await for all asynchronous operations
|
|
584
|
-
- Throw ServiceError with error codes
|
|
585
|
-
- Include JSDoc comments for all public methods"
|
|
586
|
-
</check>
|
|
587
|
-
|
|
588
|
-
<check if="greenfield">
|
|
589
|
-
"Greenfield project - establishing new patterns:
|
|
590
|
-
- [Define the patterns to establish]"
|
|
591
|
-
</check>
|
|
592
|
-
|
|
593
|
-
</action>
|
|
594
|
-
|
|
595
|
-
<template-output file="tech-spec.md">existing_patterns</template-output>
|
|
596
|
-
|
|
597
|
-
<action>**Integration Points:**
|
|
598
|
-
|
|
599
|
-
Identify how this change connects:
|
|
600
|
-
|
|
601
|
-
- Internal modules it depends on
|
|
602
|
-
- External APIs or services
|
|
603
|
-
- Database interactions
|
|
604
|
-
- Event emitters/listeners
|
|
605
|
-
- State management
|
|
606
|
-
|
|
607
|
-
Be specific about interfaces and contracts.
|
|
608
|
-
</action>
|
|
609
|
-
|
|
610
|
-
<template-output file="tech-spec.md">integration_points</template-output>
|
|
611
|
-
|
|
612
|
-
<action>**Development Context:**
|
|
613
|
-
|
|
614
|
-
**Relevant Existing Code:**
|
|
615
|
-
<check if="brownfield">
|
|
616
|
-
Reference specific files or code sections developers should review:
|
|
617
|
-
|
|
618
|
-
- "See UserService.ts lines 120-150 for similar validation pattern"
|
|
619
|
-
- "Reference AuthMiddleware.ts for authentication approach"
|
|
620
|
-
- "Follow error handling in PaymentService.ts"
|
|
621
|
-
</check>
|
|
622
|
-
|
|
623
|
-
**Framework/Libraries:**
|
|
624
|
-
List with EXACT versions from detected stack:
|
|
625
|
-
|
|
626
|
-
- Express 4.18.2 (web framework)
|
|
627
|
-
- winston 3.8.2 (logging)
|
|
628
|
-
- Joi 17.9.0 (validation)
|
|
629
|
-
- TypeScript 5.1.6 (language)
|
|
630
|
-
|
|
631
|
-
**Internal Modules:**
|
|
632
|
-
List internal dependencies:
|
|
633
|
-
|
|
634
|
-
- @/services/UserService
|
|
635
|
-
- @/middleware/auth
|
|
636
|
-
- @/utils/validation
|
|
637
|
-
|
|
638
|
-
**Configuration Changes:**
|
|
639
|
-
Any config files to update:
|
|
640
|
-
|
|
641
|
-
- Update .env with new SMTP settings
|
|
642
|
-
- Add validation schema to config/schemas.ts
|
|
643
|
-
- Update package.json scripts if needed
|
|
644
|
-
</action>
|
|
645
|
-
|
|
646
|
-
<template-output file="tech-spec.md">existing_code_references</template-output>
|
|
647
|
-
<template-output file="tech-spec.md">framework_dependencies</template-output>
|
|
648
|
-
<template-output file="tech-spec.md">internal_dependencies</template-output>
|
|
649
|
-
<template-output file="tech-spec.md">configuration_changes</template-output>
|
|
650
|
-
|
|
651
|
-
<check if="field_type == brownfield">
|
|
652
|
-
<template-output file="tech-spec.md">existing_conventions</template-output>
|
|
653
|
-
</check>
|
|
654
|
-
|
|
655
|
-
<check if="field_type == greenfield">
|
|
656
|
-
<action>Set {{existing_conventions}} = "Greenfield project - establishing new conventions per modern best practices"</action>
|
|
657
|
-
<template-output file="tech-spec.md">existing_conventions</template-output>
|
|
658
|
-
</check>
|
|
659
|
-
|
|
660
|
-
<action>**Implementation Stack:**
|
|
661
|
-
|
|
662
|
-
Comprehensive stack with versions:
|
|
663
|
-
|
|
664
|
-
- Runtime: Node.js 20.x
|
|
665
|
-
- Framework: Express 4.18.2
|
|
666
|
-
- Language: TypeScript 5.1.6
|
|
667
|
-
- Testing: Jest 29.5.0
|
|
668
|
-
- Linting: ESLint 8.42.0
|
|
669
|
-
- Validation: Joi 17.9.0
|
|
670
|
-
|
|
671
|
-
All from detected project setup!
|
|
672
|
-
</action>
|
|
673
|
-
|
|
674
|
-
<template-output file="tech-spec.md">implementation_stack</template-output>
|
|
675
|
-
|
|
676
|
-
<action>**Technical Details:**
|
|
677
|
-
|
|
678
|
-
Deep technical specifics:
|
|
679
|
-
|
|
680
|
-
- Algorithms to implement
|
|
681
|
-
- Data structures to use
|
|
682
|
-
- Performance considerations
|
|
683
|
-
- Security considerations
|
|
684
|
-
- Error scenarios and handling
|
|
685
|
-
- Edge cases
|
|
686
|
-
|
|
687
|
-
Be thorough - developers need details!
|
|
688
|
-
</action>
|
|
689
|
-
|
|
690
|
-
<template-output file="tech-spec.md">technical_details</template-output>
|
|
691
|
-
|
|
692
|
-
<action>**Development Setup:**
|
|
693
|
-
|
|
694
|
-
What does a developer need to run this locally?
|
|
695
|
-
|
|
696
|
-
Based on detected stack and scripts:
|
|
697
|
-
|
|
698
|
-
```
|
|
699
|
-
1. Clone repo (if not already)
|
|
700
|
-
2. npm install (installs all deps from package.json)
|
|
701
|
-
3. cp .env.example .env (configure environment)
|
|
702
|
-
4. npm run dev (starts development server)
|
|
703
|
-
5. npm test (runs test suite)
|
|
704
|
-
```
|
|
705
|
-
|
|
706
|
-
Or for Python:
|
|
707
|
-
|
|
708
|
-
```
|
|
709
|
-
1. python -m venv venv
|
|
710
|
-
2. source venv/bin/activate
|
|
711
|
-
3. pip install -r requirements.txt
|
|
712
|
-
4. python manage.py runserver
|
|
713
|
-
```
|
|
714
|
-
|
|
715
|
-
Use the actual scripts from package.json/setup files!
|
|
716
|
-
</action>
|
|
717
|
-
|
|
718
|
-
<template-output file="tech-spec.md">development_setup</template-output>
|
|
719
|
-
|
|
720
|
-
<action>**Implementation Guide:**
|
|
721
|
-
|
|
722
|
-
**Setup Steps:**
|
|
723
|
-
Pre-implementation checklist:
|
|
724
|
-
|
|
725
|
-
- Create feature branch
|
|
726
|
-
- Verify dev environment running
|
|
727
|
-
- Review existing code references
|
|
728
|
-
- Set up test data if needed
|
|
729
|
-
|
|
730
|
-
**Implementation Steps:**
|
|
731
|
-
Step-by-step breakdown:
|
|
732
|
-
|
|
733
|
-
For Level 0:
|
|
734
|
-
|
|
735
|
-
1. [Step 1 with specific file and action]
|
|
736
|
-
2. [Step 2 with specific file and action]
|
|
737
|
-
3. [Write tests]
|
|
738
|
-
4. [Verify acceptance criteria]
|
|
739
|
-
|
|
740
|
-
For Level 1:
|
|
741
|
-
Organize by story/phase:
|
|
742
|
-
|
|
743
|
-
1. Phase 1: [Foundation work]
|
|
744
|
-
2. Phase 2: [Core implementation]
|
|
745
|
-
3. Phase 3: [Testing and validation]
|
|
746
|
-
|
|
747
|
-
**Testing Strategy:**
|
|
748
|
-
|
|
749
|
-
- Unit tests for [specific functions]
|
|
750
|
-
- Integration tests for [specific flows]
|
|
751
|
-
- Manual testing checklist
|
|
752
|
-
- Performance testing if applicable
|
|
753
|
-
|
|
754
|
-
**Acceptance Criteria:**
|
|
755
|
-
Specific, measurable, testable criteria:
|
|
756
|
-
|
|
757
|
-
1. Given [scenario], when [action], then [outcome]
|
|
758
|
-
2. [Metric] meets [threshold]
|
|
759
|
-
3. [Feature] works in [environment]
|
|
760
|
-
</action>
|
|
761
|
-
|
|
762
|
-
<template-output file="tech-spec.md">setup_steps</template-output>
|
|
763
|
-
<template-output file="tech-spec.md">implementation_steps</template-output>
|
|
764
|
-
<template-output file="tech-spec.md">testing_strategy</template-output>
|
|
765
|
-
<template-output file="tech-spec.md">acceptance_criteria</template-output>
|
|
766
|
-
|
|
767
|
-
<action>**Developer Resources:**
|
|
768
|
-
|
|
769
|
-
**File Paths Reference:**
|
|
770
|
-
Complete list of all files involved:
|
|
771
|
-
|
|
772
|
-
- /src/services/UserService.ts
|
|
773
|
-
- /src/routes/api/users.ts
|
|
774
|
-
- /tests/services/UserService.test.ts
|
|
775
|
-
- /src/types/user.ts
|
|
776
|
-
|
|
777
|
-
**Key Code Locations:**
|
|
778
|
-
Important functions, classes, modules:
|
|
779
|
-
|
|
780
|
-
- UserService class (src/services/UserService.ts:15)
|
|
781
|
-
- validateUser function (src/utils/validation.ts:42)
|
|
782
|
-
- User type definition (src/types/user.ts:8)
|
|
783
|
-
|
|
784
|
-
**Testing Locations:**
|
|
785
|
-
Where tests go:
|
|
786
|
-
|
|
787
|
-
- Unit: tests/services/
|
|
788
|
-
- Integration: tests/integration/
|
|
789
|
-
- E2E: tests/e2e/
|
|
790
|
-
|
|
791
|
-
**Documentation to Update:**
|
|
792
|
-
Docs that need updating:
|
|
793
|
-
|
|
794
|
-
- README.md - Add new endpoint documentation
|
|
795
|
-
- API.md - Document /users/validate endpoint
|
|
796
|
-
- CHANGELOG.md - Note the new feature
|
|
797
|
-
</action>
|
|
798
|
-
|
|
799
|
-
<template-output file="tech-spec.md">file_paths_complete</template-output>
|
|
800
|
-
<template-output file="tech-spec.md">key_code_locations</template-output>
|
|
801
|
-
<template-output file="tech-spec.md">testing_locations</template-output>
|
|
802
|
-
<template-output file="tech-spec.md">documentation_updates</template-output>
|
|
803
|
-
|
|
804
|
-
<action>**UX/UI Considerations:**
|
|
805
|
-
|
|
806
|
-
<check if="change affects user interface OR user experience">
|
|
807
|
-
**Determine if this change has UI/UX impact:**
|
|
808
|
-
- Does it change what users see?
|
|
809
|
-
- Does it change how users interact?
|
|
810
|
-
- Does it affect user workflows?
|
|
811
|
-
|
|
812
|
-
If YES, document:
|
|
813
|
-
|
|
814
|
-
**UI Components Affected:**
|
|
815
|
-
|
|
816
|
-
- List specific components (buttons, forms, modals, pages)
|
|
817
|
-
- Note which need creation vs modification
|
|
818
|
-
|
|
819
|
-
**UX Flow Changes:**
|
|
820
|
-
|
|
821
|
-
- Current flow vs new flow
|
|
822
|
-
- User journey impact
|
|
823
|
-
- Navigation changes
|
|
824
|
-
|
|
825
|
-
**Visual/Interaction Patterns:**
|
|
826
|
-
|
|
827
|
-
- Follow existing design system? (check for design tokens, component library)
|
|
828
|
-
- New patterns needed?
|
|
829
|
-
- Responsive design considerations (mobile, tablet, desktop)
|
|
830
|
-
|
|
831
|
-
**Accessibility:**
|
|
832
|
-
|
|
833
|
-
- Keyboard navigation requirements
|
|
834
|
-
- Screen reader compatibility
|
|
835
|
-
- ARIA labels needed
|
|
836
|
-
- Color contrast standards
|
|
837
|
-
|
|
838
|
-
**User Feedback:**
|
|
839
|
-
|
|
840
|
-
- Loading states
|
|
841
|
-
- Error messages
|
|
842
|
-
- Success confirmations
|
|
843
|
-
- Progress indicators
|
|
844
|
-
</check>
|
|
845
|
-
|
|
846
|
-
<check if="no UI/UX impact">
|
|
847
|
-
"No UI/UX impact - backend/API/infrastructure change only"
|
|
848
|
-
</check>
|
|
849
|
-
</action>
|
|
850
|
-
|
|
851
|
-
<template-output file="tech-spec.md">ux_ui_considerations</template-output>
|
|
852
|
-
|
|
853
|
-
<action>**Testing Approach:**
|
|
854
|
-
|
|
855
|
-
Comprehensive testing strategy using {{test_framework_info}}:
|
|
856
|
-
|
|
857
|
-
**CONFORM TO EXISTING TEST STANDARDS:**
|
|
858
|
-
<check if="conform_to_conventions == yes">
|
|
859
|
-
|
|
860
|
-
- Follow existing test file naming: {{detected_test_patterns.file_naming}}
|
|
861
|
-
- Use existing test organization: {{detected_test_patterns.organization}}
|
|
862
|
-
- Match existing assertion style: {{detected_test_patterns.assertion_style}}
|
|
863
|
-
- Meet existing coverage requirements: {{detected_test_patterns.coverage}}
|
|
864
|
-
</check>
|
|
865
|
-
|
|
866
|
-
**Test Strategy:**
|
|
867
|
-
|
|
868
|
-
- Test framework: {{detected_test_framework}} (from project dependencies)
|
|
869
|
-
- Unit tests for [specific functions/methods]
|
|
870
|
-
- Integration tests for [specific flows/APIs]
|
|
871
|
-
- E2E tests if UI changes
|
|
872
|
-
- Mock/stub strategies (use existing patterns: {{detected_test_patterns.mocking}})
|
|
873
|
-
- Performance benchmarks if applicable
|
|
874
|
-
- Accessibility tests if UI changes
|
|
875
|
-
|
|
876
|
-
**Coverage:**
|
|
877
|
-
|
|
878
|
-
- Unit test coverage: [target %]
|
|
879
|
-
- Integration coverage: [critical paths]
|
|
880
|
-
- Ensure all acceptance criteria have corresponding tests
|
|
881
|
-
</action>
|
|
882
|
-
|
|
883
|
-
<template-output file="tech-spec.md">test_framework_info</template-output>
|
|
884
|
-
<template-output file="tech-spec.md">testing_approach</template-output>
|
|
885
|
-
|
|
886
|
-
<action>**Deployment Strategy:**
|
|
887
|
-
|
|
888
|
-
**Deployment Steps:**
|
|
889
|
-
How to deploy this change:
|
|
890
|
-
|
|
891
|
-
1. Merge to main branch
|
|
892
|
-
2. Run CI/CD pipeline
|
|
893
|
-
3. Deploy to staging
|
|
894
|
-
4. Verify in staging
|
|
895
|
-
5. Deploy to production
|
|
896
|
-
6. Monitor for issues
|
|
897
|
-
|
|
898
|
-
**Rollback Plan:**
|
|
899
|
-
How to undo if problems:
|
|
900
|
-
|
|
901
|
-
1. Revert commit [hash]
|
|
902
|
-
2. Redeploy previous version
|
|
903
|
-
3. Verify rollback successful
|
|
904
|
-
|
|
905
|
-
**Monitoring:**
|
|
906
|
-
What to watch after deployment:
|
|
907
|
-
|
|
908
|
-
- Error rates in [logging service]
|
|
909
|
-
- Response times for [endpoint]
|
|
910
|
-
- User feedback on [feature]
|
|
911
|
-
</action>
|
|
912
|
-
|
|
913
|
-
<template-output file="tech-spec.md">deployment_steps</template-output>
|
|
914
|
-
<template-output file="tech-spec.md">rollback_plan</template-output>
|
|
915
|
-
<template-output file="tech-spec.md">monitoring_approach</template-output>
|
|
916
|
-
|
|
917
|
-
<invoke-task halt="true">{project-root}/.bmad/core/tasks/adv-elicit.xml</invoke-task>
|
|
918
|
-
|
|
919
|
-
</step>
|
|
920
|
-
|
|
921
|
-
<step n="4" goal="Auto-validate cohesion, completeness, and quality">
|
|
922
|
-
|
|
923
|
-
<critical>Always run validation - this is NOT optional!</critical>
|
|
924
|
-
|
|
925
|
-
<action>Tech-spec generation complete! Now running automatic validation...</action>
|
|
926
|
-
|
|
927
|
-
<action>Load {installed_path}/checklist.md</action>
|
|
928
|
-
<action>Review tech-spec.md against ALL checklist criteria:
|
|
929
|
-
|
|
930
|
-
**Section 1: Output Files Exist**
|
|
931
|
-
|
|
932
|
-
- Verify tech-spec.md created
|
|
933
|
-
- Check for unfilled template variables
|
|
934
|
-
|
|
935
|
-
**Section 2: Context Gathering**
|
|
936
|
-
|
|
937
|
-
- Validate all available documents were loaded
|
|
938
|
-
- Confirm stack detection worked
|
|
939
|
-
- Verify brownfield analysis (if applicable)
|
|
940
|
-
|
|
941
|
-
**Section 3: Tech-Spec Definitiveness**
|
|
942
|
-
|
|
943
|
-
- Scan for "or" statements (FAIL if found)
|
|
944
|
-
- Verify all versions are specific
|
|
945
|
-
- Check stack alignment
|
|
946
|
-
|
|
947
|
-
**Section 4: Context-Rich Content**
|
|
948
|
-
|
|
949
|
-
- Verify all new template sections populated
|
|
950
|
-
- Check existing code references (brownfield)
|
|
951
|
-
- Validate framework dependencies listed
|
|
952
|
-
|
|
953
|
-
**Section 5-6: Story Quality (deferred to Step 5)**
|
|
954
|
-
|
|
955
|
-
**Section 7: Workflow Status (if applicable)**
|
|
956
|
-
|
|
957
|
-
**Section 8: Implementation Readiness**
|
|
958
|
-
|
|
959
|
-
- Can developer start immediately?
|
|
960
|
-
- Is tech-spec comprehensive enough?
|
|
961
|
-
</action>
|
|
962
|
-
|
|
963
|
-
<action>Generate validation report with specific scores:
|
|
964
|
-
|
|
965
|
-
- Context Gathering: [Comprehensive/Partial/Insufficient]
|
|
966
|
-
- Definitiveness: [All definitive/Some ambiguity/Major issues]
|
|
967
|
-
- Brownfield Integration: [N/A/Excellent/Partial/Missing]
|
|
968
|
-
- Stack Alignment: [Perfect/Good/Partial/None]
|
|
969
|
-
- Implementation Readiness: [Yes/No]
|
|
970
|
-
</action>
|
|
971
|
-
|
|
972
|
-
<check if="validation issues found">
|
|
973
|
-
<output>⚠️ **Validation Issues Detected:**
|
|
974
|
-
|
|
975
|
-
{{list_of_issues}}
|
|
976
|
-
|
|
977
|
-
I can fix these automatically. Shall I proceed? (yes/no)</output>
|
|
978
|
-
|
|
979
|
-
<ask>Fix validation issues? (yes/no)</ask>
|
|
980
|
-
|
|
981
|
-
<check if="yes">
|
|
982
|
-
<action>Fix each issue and re-validate</action>
|
|
983
|
-
<output>✅ Issues fixed! Re-validation passed.</output>
|
|
984
|
-
</check>
|
|
985
|
-
|
|
986
|
-
<check if="no">
|
|
987
|
-
<output>⚠️ Proceeding with warnings. Issues should be addressed manually.</output>
|
|
988
|
-
</check>
|
|
989
|
-
</check>
|
|
990
|
-
|
|
991
|
-
<check if="validation passes">
|
|
992
|
-
<output>✅ **Validation Passed!**
|
|
993
|
-
|
|
994
|
-
**Scores:**
|
|
995
|
-
|
|
996
|
-
- Context Gathering: {{context_score}}
|
|
997
|
-
- Definitiveness: {{definitiveness_score}}
|
|
998
|
-
- Brownfield Integration: {{brownfield_score}}
|
|
999
|
-
- Stack Alignment: {{stack_score}}
|
|
1000
|
-
- Implementation Readiness: ✅ Ready
|
|
1001
|
-
|
|
1002
|
-
Tech-spec is high quality and ready for story generation!</output>
|
|
1003
|
-
</check>
|
|
1004
|
-
|
|
1005
|
-
</step>
|
|
1006
|
-
|
|
1007
|
-
<step n="5" goal="Generate context-rich user stories">
|
|
1008
|
-
|
|
1009
|
-
<action>Now generate stories that reference the rich tech-spec context</action>
|
|
1010
|
-
|
|
1011
|
-
<check if="project_level == 0">
|
|
1012
|
-
<action>Invoke {installed_path}/instructions-level0-story.md to generate single user story</action>
|
|
1013
|
-
<action>Story will leverage tech-spec.md as primary context</action>
|
|
1014
|
-
<action>Developers can skip story-context workflow since tech-spec is comprehensive</action>
|
|
1015
|
-
</check>
|
|
1016
|
-
|
|
1017
|
-
<check if="project_level == 1">
|
|
1018
|
-
<action>Invoke {installed_path}/instructions-level1-stories.md to generate epic and stories</action>
|
|
1019
|
-
<action>Stories will reference tech-spec.md for all technical details</action>
|
|
1020
|
-
<action>Epic provides organization, tech-spec provides implementation context</action>
|
|
1021
|
-
</check>
|
|
1022
|
-
|
|
1023
|
-
</step>
|
|
1024
|
-
|
|
1025
|
-
<step n="6" goal="Finalize and guide next steps">
|
|
1026
|
-
|
|
1027
|
-
<output>**✅ Tech-Spec Complete, {user_name}!**
|
|
1028
|
-
|
|
1029
|
-
**Deliverables Created:**
|
|
1030
|
-
|
|
1031
|
-
<check if="project_level == 0">
|
|
1032
|
-
- ✅ **tech-spec.md** - Context-rich technical specification
|
|
1033
|
-
- Includes: brownfield analysis, framework details, existing patterns
|
|
1034
|
-
- ✅ **story-{slug}.md** - Implementation-ready user story
|
|
1035
|
-
- References tech-spec as primary context
|
|
1036
|
-
</check>
|
|
1037
|
-
|
|
1038
|
-
<check if="project_level == 1">
|
|
1039
|
-
- ✅ **tech-spec.md** - Context-rich technical specification
|
|
1040
|
-
- ✅ **epics.md** - Epic and story organization
|
|
1041
|
-
- ✅ **story-{epic-slug}-1.md** - First story
|
|
1042
|
-
- ✅ **story-{epic-slug}-2.md** - Second story
|
|
1043
|
-
{{#if story_3}}
|
|
1044
|
-
- ✅ **story-{epic-slug}-3.md** - Third story
|
|
1045
|
-
{{/if}}
|
|
1046
|
-
</check>
|
|
1047
|
-
|
|
1048
|
-
**What Makes This Tech-Spec Special:**
|
|
1049
|
-
|
|
1050
|
-
The tech-spec is comprehensive enough to serve as the primary context document:
|
|
1051
|
-
|
|
1052
|
-
- ✨ Brownfield codebase analysis (if applicable)
|
|
1053
|
-
- ✨ Exact framework and library versions from your project
|
|
1054
|
-
- ✨ Existing patterns and code references
|
|
1055
|
-
- ✨ Specific file paths and integration points
|
|
1056
|
-
- ✨ Complete developer resources
|
|
1057
|
-
|
|
1058
|
-
**Next Steps:**
|
|
1059
|
-
|
|
1060
|
-
<check if="project_level == 0">
|
|
1061
|
-
**For Single Story (Level 0):**
|
|
1062
|
-
|
|
1063
|
-
**Option A - With Story Context (for complex changes):**
|
|
1064
|
-
|
|
1065
|
-
1. Ask SM agent to run `create-story-context` for the story
|
|
1066
|
-
- This generates additional XML context if needed
|
|
1067
|
-
2. Then ask DEV agent to run `dev-story` to implement
|
|
1068
|
-
|
|
1069
|
-
**Option B - Direct to Dev (most Level 0):**
|
|
1070
|
-
|
|
1071
|
-
1. Ask DEV agent to run `dev-story` directly
|
|
1072
|
-
- Tech-spec provides all the context needed!
|
|
1073
|
-
- Story is ready to implement
|
|
1074
|
-
|
|
1075
|
-
💡 **Tip:** Most Level 0 changes don't need separate story context since tech-spec is comprehensive!
|
|
1076
|
-
</check>
|
|
1077
|
-
|
|
1078
|
-
<check if="project_level == 1">
|
|
1079
|
-
**For Multiple Stories (Level 1):**
|
|
1080
|
-
|
|
1081
|
-
**Recommended: Story-by-Story Approach**
|
|
1082
|
-
|
|
1083
|
-
For the **first story** ({{first_story_name}}):
|
|
1084
|
-
|
|
1085
|
-
**Option A - With Story Context (recommended for first story):**
|
|
1086
|
-
|
|
1087
|
-
1. Ask SM agent to run `create-story-context` for story 1
|
|
1088
|
-
- Generates focused context for this specific story
|
|
1089
|
-
2. Then ask DEV agent to run `dev-story` to implement story 1
|
|
1090
|
-
|
|
1091
|
-
**Option B - Direct to Dev:**
|
|
1092
|
-
|
|
1093
|
-
1. Ask DEV agent to run `dev-story` for story 1
|
|
1094
|
-
- Tech-spec has most context needed
|
|
1095
|
-
|
|
1096
|
-
After completing story 1, repeat for stories 2 and 3.
|
|
1097
|
-
|
|
1098
|
-
**Alternative: Sprint Planning Approach**
|
|
1099
|
-
|
|
1100
|
-
- If managing multiple stories as a sprint, ask SM agent to run `sprint-planning`
|
|
1101
|
-
- This organizes all stories for coordinated implementation
|
|
1102
|
-
</check>
|
|
1103
|
-
|
|
1104
|
-
**Your Tech-Spec:**
|
|
1105
|
-
|
|
1106
|
-
- 📄 Saved to: `{output_folder}/tech-spec.md`
|
|
1107
|
-
- Contains: All context, decisions, patterns, and implementation guidance
|
|
1108
|
-
- Ready for: Direct development or story context generation
|
|
1109
|
-
|
|
1110
|
-
The tech-spec is your single source of truth! 🚀
|
|
1111
|
-
</output>
|
|
1112
|
-
|
|
1113
|
-
</step>
|
|
1114
|
-
|
|
1115
|
-
</workflow>
|