bmad-method 5.0.0 → 5.0.1
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/FUNDING.yaml +15 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +22 -0
- package/.github/workflows/discord.yaml +25 -0
- package/.github/workflows/format-check.yaml +42 -0
- package/.github/workflows/manual-release.yaml +173 -0
- package/.husky/pre-commit +3 -2
- package/.vscode/settings.json +67 -74
- package/CHANGELOG.md +564 -19
- package/CONTRIBUTING.md +168 -5
- package/LICENSE +1 -1
- package/README.md +146 -218
- package/bmad-core/agent-teams/team-all.yaml +14 -0
- package/bmad-core/agent-teams/team-fullstack.yaml +18 -0
- package/bmad-core/agent-teams/team-ide-minimal.yaml +10 -0
- package/bmad-core/agent-teams/team-no-ui.yaml +13 -0
- package/bmad-core/agents/analyst.md +81 -0
- package/bmad-core/agents/architect.md +83 -0
- package/bmad-core/agents/bmad-master.md +107 -0
- package/bmad-core/agents/bmad-orchestrator.md +149 -0
- package/bmad-core/agents/dev.md +75 -0
- package/bmad-core/agents/pm.md +81 -0
- package/bmad-core/agents/po.md +76 -0
- package/bmad-core/agents/qa.md +88 -0
- package/bmad-core/agents/sm.md +62 -0
- package/bmad-core/agents/ux-expert.md +66 -0
- package/{.bmad-core → bmad-core}/checklists/architect-checklist.md +0 -5
- package/{.bmad-core → bmad-core}/checklists/change-checklist.md +2 -2
- package/{.bmad-core → bmad-core}/checklists/pm-checklist.md +0 -5
- package/{.bmad-core → bmad-core}/checklists/po-master-checklist.md +0 -9
- package/{.bmad-core → bmad-core}/checklists/story-dod-checklist.md +0 -7
- package/{.bmad-core → bmad-core}/checklists/story-draft-checklist.md +1 -4
- package/bmad-core/core-config.yaml +20 -0
- package/bmad-core/data/bmad-kb.md +806 -0
- package/bmad-core/data/brainstorming-techniques.md +36 -0
- package/bmad-core/data/elicitation-methods.md +154 -0
- package/bmad-core/data/test-levels-framework.md +146 -0
- package/bmad-core/data/test-priorities-matrix.md +172 -0
- package/bmad-core/tasks/advanced-elicitation.md +117 -0
- package/{.bmad-core → bmad-core}/tasks/correct-course.md +9 -12
- package/bmad-core/tasks/create-brownfield-story.md +312 -0
- package/{.bmad-core → bmad-core}/tasks/create-deep-research-prompt.md +4 -27
- package/bmad-core/tasks/create-next-story.md +112 -0
- package/bmad-core/tasks/document-project.md +343 -0
- package/bmad-core/tasks/facilitate-brainstorming-session.md +136 -0
- package/bmad-core/tasks/generate-ai-frontend-prompt.md +51 -0
- package/{.bmad-core → bmad-core}/tasks/index-docs.md +3 -13
- package/bmad-core/tasks/kb-mode-interaction.md +75 -0
- package/bmad-core/tasks/nfr-assess.md +343 -0
- package/bmad-core/tasks/qa-gate.md +159 -0
- package/bmad-core/tasks/review-story.md +314 -0
- package/bmad-core/tasks/risk-profile.md +353 -0
- package/{.bmad-core → bmad-core}/tasks/shard-doc.md +27 -15
- package/bmad-core/tasks/test-design.md +174 -0
- package/bmad-core/tasks/trace-requirements.md +264 -0
- package/bmad-core/tasks/validate-next-story.md +134 -0
- package/bmad-core/templates/architecture-tmpl.yaml +650 -0
- package/bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
- package/bmad-core/templates/brownfield-architecture-tmpl.yaml +476 -0
- package/bmad-core/templates/brownfield-prd-tmpl.yaml +280 -0
- package/bmad-core/templates/competitor-analysis-tmpl.yaml +306 -0
- package/bmad-core/templates/front-end-architecture-tmpl.yaml +218 -0
- package/bmad-core/templates/front-end-spec-tmpl.yaml +349 -0
- package/bmad-core/templates/fullstack-architecture-tmpl.yaml +823 -0
- package/bmad-core/templates/market-research-tmpl.yaml +252 -0
- package/bmad-core/templates/prd-tmpl.yaml +202 -0
- package/bmad-core/templates/project-brief-tmpl.yaml +221 -0
- package/bmad-core/templates/qa-gate-tmpl.yaml +102 -0
- package/bmad-core/templates/story-tmpl.yaml +137 -0
- package/bmad-core/workflows/brownfield-fullstack.yaml +297 -0
- package/bmad-core/workflows/brownfield-service.yaml +187 -0
- package/bmad-core/workflows/brownfield-ui.yaml +197 -0
- package/{.bmad-core/workflows/greenfield-fullstack.yml → bmad-core/workflows/greenfield-fullstack.yaml} +140 -77
- package/bmad-core/workflows/greenfield-service.yaml +206 -0
- package/bmad-core/workflows/greenfield-ui.yaml +235 -0
- package/common/tasks/create-doc.md +101 -0
- package/{.bmad-core → common}/tasks/execute-checklist.md +2 -13
- package/common/utils/bmad-doc-template.md +325 -0
- package/common/utils/workflow-management.md +69 -0
- package/dist/agents/analyst.txt +2889 -0
- package/dist/agents/architect.txt +3552 -0
- package/dist/agents/bmad-master.txt +8769 -0
- package/dist/agents/bmad-orchestrator.txt +1513 -0
- package/dist/agents/dev.txt +414 -0
- package/{.bmad-core/web-bundles → dist}/agents/pm.txt +668 -1119
- package/{.bmad-core/web-bundles → dist}/agents/po.txt +341 -484
- package/dist/agents/qa.txt +1987 -0
- package/dist/agents/sm.txt +658 -0
- package/dist/agents/ux-expert.txt +694 -0
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2371 -0
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +1620 -0
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +815 -0
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +10952 -0
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4012 -0
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +3698 -0
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +450 -0
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +973 -0
- package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +15376 -0
- package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2075 -0
- package/dist/teams/team-all.txt +12682 -0
- package/dist/teams/team-fullstack.txt +10421 -0
- package/dist/teams/team-ide-minimal.txt +5103 -0
- package/dist/teams/team-no-ui.txt +8980 -0
- package/docs/GUIDING-PRINCIPLES.md +91 -0
- package/docs/core-architecture.md +219 -0
- package/docs/enhanced-ide-development-workflow.md +248 -0
- package/docs/expansion-packs.md +280 -0
- package/docs/how-to-contribute-with-pull-requests.md +158 -0
- package/docs/user-guide.md +504 -0
- package/docs/versioning-and-releases.md +115 -53
- package/docs/versions.md +4 -5
- package/docs/working-in-the-brownfield.md +597 -0
- package/eslint.config.mjs +119 -0
- package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/Complete AI Agent System - Flowchart.svg +102 -0
- package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.1 Google Cloud Project Setup/1.1.1 - Initial Project Configuration - bash copy.txt +13 -0
- package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.1 Google Cloud Project Setup/1.1.1 - Initial Project Configuration - bash.txt +13 -0
- package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.2 Agent Development Kit Installation/1.2.2 - Basic Project Structure - txt.txt +25 -0
- package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.3 Core Configuration Files/1.3.1 - settings.py +34 -0
- package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.3 Core Configuration Files/1.3.2 - main.py - Base Application.py +70 -0
- package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/PART 1 - Google Cloud Vertex AI Setup Documentation/1.4 Deployment Configuration/1.4.2 - cloudbuild.yaml +26 -0
- package/expansion-packs/Complete AI Agent System - Blank Templates & Google Cloud Setup/README.md +109 -0
- package/expansion-packs/README.md +2 -112
- package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +13 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +71 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +78 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +64 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +201 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +160 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +8 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +250 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +647 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +110 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +216 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +290 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +613 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +356 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +343 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +253 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +484 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +183 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +175 -0
- package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +14 -0
- package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +80 -0
- package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +77 -0
- package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +78 -0
- package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +65 -0
- package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +391 -0
- package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +203 -0
- package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +201 -0
- package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +124 -0
- package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +6 -0
- package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +769 -0
- package/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +586 -0
- package/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +110 -0
- package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +141 -0
- package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +184 -0
- package/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +290 -0
- package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +200 -0
- package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +1030 -0
- package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +356 -0
- package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +705 -0
- package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +256 -0
- package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +484 -0
- package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +183 -0
- package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +175 -0
- package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/README.md +9 -9
- package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/agents/infra-devops-platform.md +30 -18
- package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/checklists/infrastructure-checklist.md +1 -1
- package/expansion-packs/bmad-infrastructure-devops/config.yaml +9 -0
- package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +305 -0
- package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/tasks/review-infrastructure.md +4 -5
- package/expansion-packs/{infrastructure-devops → bmad-infrastructure-devops}/tasks/validate-infrastructure.md +4 -5
- package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +424 -0
- package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +629 -0
- package/package.json +74 -42
- package/prettier.config.mjs +32 -0
- package/release_notes.md +30 -0
- package/tools/bmad-npx-wrapper.js +13 -15
- package/tools/builders/web-builder.js +544 -15
- package/tools/bump-all-versions.js +115 -0
- package/tools/bump-expansion-version.js +90 -0
- package/tools/cli.js +65 -32
- package/tools/flattener/aggregate.js +76 -0
- package/tools/flattener/binary.js +80 -0
- package/tools/flattener/discovery.js +71 -0
- package/tools/flattener/files.js +35 -0
- package/tools/flattener/ignoreRules.js +176 -0
- package/tools/flattener/main.js +573 -0
- package/tools/flattener/projectRoot.js +206 -0
- package/tools/flattener/prompts.js +44 -0
- package/tools/flattener/stats.helpers.js +395 -0
- package/tools/flattener/stats.js +80 -0
- package/tools/flattener/test-matrix.js +413 -0
- package/tools/flattener/xml.js +88 -0
- package/tools/installer/README.md +3 -53
- package/tools/installer/bin/bmad.js +475 -90
- package/tools/installer/config/ide-agent-config.yaml +58 -0
- package/tools/installer/config/install.config.yaml +123 -0
- package/tools/installer/lib/config-loader.js +208 -40
- package/tools/installer/lib/file-manager.js +258 -55
- package/tools/installer/lib/ide-base-setup.js +228 -0
- package/tools/installer/lib/ide-setup.js +1265 -253
- package/tools/installer/lib/installer.js +1651 -310
- package/tools/installer/lib/memory-profiler.js +225 -0
- package/tools/installer/lib/module-manager.js +114 -0
- package/tools/installer/lib/resource-locator.js +308 -0
- package/tools/installer/package.json +25 -24
- package/tools/lib/dependency-resolver.js +44 -48
- package/tools/lib/yaml-utils.js +29 -0
- package/tools/md-assets/web-agent-startup-instructions.md +39 -0
- package/tools/preview-release-notes.js +66 -0
- package/tools/shared/bannerArt.js +105 -0
- package/tools/sync-installer-version.js +7 -9
- package/tools/update-expansion-version.js +53 -0
- package/tools/upgraders/v3-to-v4-upgrader.js +221 -320
- package/tools/version-bump.js +42 -27
- package/tools/yaml-format.js +57 -44
- package/.bmad-core/agent-teams/team-all.yml +0 -16
- package/.bmad-core/agent-teams/team-fullstack.yml +0 -26
- package/.bmad-core/agent-teams/team-no-ui.yml +0 -15
- package/.bmad-core/agents/analyst.md +0 -59
- package/.bmad-core/agents/architect.md +0 -66
- package/.bmad-core/agents/bmad-master.md +0 -104
- package/.bmad-core/agents/bmad-orchestrator.md +0 -81
- package/.bmad-core/agents/dev.md +0 -70
- package/.bmad-core/agents/pm.md +0 -59
- package/.bmad-core/agents/po.md +0 -60
- package/.bmad-core/agents/qa.md +0 -52
- package/.bmad-core/agents/sm.md +0 -55
- package/.bmad-core/agents/ux-expert.md +0 -66
- package/.bmad-core/data/bmad-kb.md +0 -47
- package/.bmad-core/schemas/agent-team-schema.yml +0 -153
- package/.bmad-core/tasks/advanced-elicitation.md +0 -92
- package/.bmad-core/tasks/brainstorming-techniques.md +0 -238
- package/.bmad-core/tasks/core-dump.md +0 -74
- package/.bmad-core/tasks/create-agent.md +0 -202
- package/.bmad-core/tasks/create-doc.md +0 -74
- package/.bmad-core/tasks/create-expansion-pack.md +0 -425
- package/.bmad-core/tasks/create-next-story.md +0 -206
- package/.bmad-core/tasks/create-team.md +0 -229
- package/.bmad-core/tasks/doc-migration-task.md +0 -143
- package/.bmad-core/tasks/generate-ai-frontend-prompt.md +0 -58
- package/.bmad-core/templates/agent-tmpl.md +0 -58
- package/.bmad-core/templates/architecture-tmpl.md +0 -771
- package/.bmad-core/templates/brownfield-architecture-tmpl.md +0 -542
- package/.bmad-core/templates/brownfield-prd-tmpl.md +0 -240
- package/.bmad-core/templates/competitor-analysis-tmpl.md +0 -289
- package/.bmad-core/templates/expansion-pack-plan-tmpl.md +0 -91
- package/.bmad-core/templates/front-end-architecture-tmpl.md +0 -173
- package/.bmad-core/templates/front-end-spec-tmpl.md +0 -411
- package/.bmad-core/templates/fullstack-architecture-tmpl.md +0 -1016
- package/.bmad-core/templates/market-research-tmpl.md +0 -261
- package/.bmad-core/templates/prd-tmpl.md +0 -200
- package/.bmad-core/templates/project-brief-tmpl.md +0 -228
- package/.bmad-core/templates/simple-project-prd-tmpl.md +0 -461
- package/.bmad-core/templates/story-tmpl.md +0 -61
- package/.bmad-core/templates/web-agent-startup-instructions-template.md +0 -39
- package/.bmad-core/utils/agent-switcher.ide.md +0 -112
- package/.bmad-core/utils/template-format.md +0 -26
- package/.bmad-core/utils/workflow-management.md +0 -224
- package/.bmad-core/web-bundles/agents/analyst.txt +0 -1684
- package/.bmad-core/web-bundles/agents/architect.txt +0 -3584
- package/.bmad-core/web-bundles/agents/bmad-master.txt +0 -9491
- package/.bmad-core/web-bundles/agents/bmad-orchestrator.txt +0 -1466
- package/.bmad-core/web-bundles/agents/dev.txt +0 -316
- package/.bmad-core/web-bundles/agents/qa.txt +0 -129
- package/.bmad-core/web-bundles/agents/sm.txt +0 -658
- package/.bmad-core/web-bundles/agents/ux-expert.txt +0 -1099
- package/.bmad-core/web-bundles/teams/team-all.txt +0 -10757
- package/.bmad-core/web-bundles/teams/team-fullstack.txt +0 -10109
- package/.bmad-core/web-bundles/teams/team-no-ui.txt +0 -8950
- package/.bmad-core/workflows/brownfield-fullstack.yml +0 -116
- package/.bmad-core/workflows/brownfield-service.yml +0 -117
- package/.bmad-core/workflows/brownfield-ui.yml +0 -127
- package/.bmad-core/workflows/greenfield-service.yml +0 -143
- package/.bmad-core/workflows/greenfield-ui.yml +0 -172
- package/.claude/commands/analyst.md +0 -63
- package/.claude/commands/architect.md +0 -70
- package/.claude/commands/bmad-master.md +0 -108
- package/.claude/commands/bmad-orchestrator.md +0 -85
- package/.claude/commands/dev.md +0 -74
- package/.claude/commands/pm.md +0 -63
- package/.claude/commands/po.md +0 -64
- package/.claude/commands/qa.md +0 -56
- package/.claude/commands/sm.md +0 -59
- package/.claude/commands/ux-expert.md +0 -70
- package/.cursor/rules/analyst.mdc +0 -77
- package/.cursor/rules/architect.mdc +0 -84
- package/.cursor/rules/bmad-master.mdc +0 -122
- package/.cursor/rules/bmad-orchestrator.mdc +0 -99
- package/.cursor/rules/dev.mdc +0 -88
- package/.cursor/rules/pm.mdc +0 -77
- package/.cursor/rules/po.mdc +0 -78
- package/.cursor/rules/qa.mdc +0 -70
- package/.cursor/rules/sm.mdc +0 -73
- package/.cursor/rules/ux-expert.mdc +0 -84
- package/.github/workflows/release.yml +0 -59
- package/.releaserc.json +0 -18
- package/.roo/.roomodes +0 -95
- package/.roo/README.md +0 -38
- package/.vscode/extensions.json +0 -6
- package/.windsurf/rules/analyst.md +0 -71
- package/.windsurf/rules/architect.md +0 -78
- package/.windsurf/rules/bmad-master.md +0 -116
- package/.windsurf/rules/bmad-orchestrator.md +0 -93
- package/.windsurf/rules/dev.md +0 -82
- package/.windsurf/rules/pm.md +0 -71
- package/.windsurf/rules/po.md +0 -72
- package/.windsurf/rules/qa.md +0 -64
- package/.windsurf/rules/sm.md +0 -67
- package/.windsurf/rules/ux-expert.md +0 -78
- package/docs/bmad-workflow-guide.md +0 -161
- package/docs/claude-code-guide.md +0 -119
- package/docs/cursor-guide.md +0 -127
- package/docs/roo-code-guide.md +0 -140
- package/docs/sample-output/simple-fullstack-greenfield/prd.md +0 -42
- package/docs/windsurf-guide.md +0 -127
- package/expansion-packs/infrastructure-devops/manifest.yml +0 -38
- package/expansion-packs/infrastructure-devops/templates/infrastructure-architecture-tmpl.md +0 -415
- package/expansion-packs/infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.md +0 -0
- package/tools/installer/config/install.config.yml +0 -139
- package/tools/installer/package-lock.json +0 -906
- package/tools/installer/templates/claude-commands.md +0 -7
- package/tools/installer/templates/cursor-rules.md +0 -22
- package/tools/installer/templates/windsurf-rules.md +0 -22
- package/tools/semantic-release-sync-installer.js +0 -31
- /package/{.bmad-core → bmad-core}/data/technical-preferences.md +0 -0
- /package/{.bmad-core → bmad-core}/tasks/brownfield-create-epic.md +0 -0
- /package/{.bmad-core → bmad-core}/tasks/brownfield-create-story.md +0 -0
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
# Create Brownfield Story Task
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Create detailed, implementation-ready stories for brownfield projects where traditional sharded PRD/architecture documents may not exist. This task bridges the gap between various documentation formats (document-project output, brownfield PRDs, epics, or user documentation) and executable stories for the Dev agent.
|
|
6
|
+
|
|
7
|
+
## When to Use This Task
|
|
8
|
+
|
|
9
|
+
**Use this task when:**
|
|
10
|
+
|
|
11
|
+
- Working on brownfield projects with non-standard documentation
|
|
12
|
+
- Stories need to be created from document-project output
|
|
13
|
+
- Working from brownfield epics without full PRD/architecture
|
|
14
|
+
- Existing project documentation doesn't follow BMad v4+ structure
|
|
15
|
+
- Need to gather additional context from user during story creation
|
|
16
|
+
|
|
17
|
+
**Use create-next-story when:**
|
|
18
|
+
|
|
19
|
+
- Working with properly sharded PRD and v4 architecture documents
|
|
20
|
+
- Following standard greenfield or well-documented brownfield workflow
|
|
21
|
+
- All technical context is available in structured format
|
|
22
|
+
|
|
23
|
+
## Task Execution Instructions
|
|
24
|
+
|
|
25
|
+
### 0. Documentation Context
|
|
26
|
+
|
|
27
|
+
Check for available documentation in this order:
|
|
28
|
+
|
|
29
|
+
1. **Sharded PRD/Architecture** (docs/prd/, docs/architecture/)
|
|
30
|
+
- If found, recommend using create-next-story task instead
|
|
31
|
+
|
|
32
|
+
2. **Brownfield Architecture Document** (docs/brownfield-architecture.md or similar)
|
|
33
|
+
- Created by document-project task
|
|
34
|
+
- Contains actual system state, technical debt, workarounds
|
|
35
|
+
|
|
36
|
+
3. **Brownfield PRD** (docs/prd.md)
|
|
37
|
+
- May contain embedded technical details
|
|
38
|
+
|
|
39
|
+
4. **Epic Files** (docs/epics/ or similar)
|
|
40
|
+
- Created by brownfield-create-epic task
|
|
41
|
+
|
|
42
|
+
5. **User-Provided Documentation**
|
|
43
|
+
- Ask user to specify location and format
|
|
44
|
+
|
|
45
|
+
### 1. Story Identification and Context Gathering
|
|
46
|
+
|
|
47
|
+
#### 1.1 Identify Story Source
|
|
48
|
+
|
|
49
|
+
Based on available documentation:
|
|
50
|
+
|
|
51
|
+
- **From Brownfield PRD**: Extract stories from epic sections
|
|
52
|
+
- **From Epic Files**: Read epic definition and story list
|
|
53
|
+
- **From User Direction**: Ask user which specific enhancement to implement
|
|
54
|
+
- **No Clear Source**: Work with user to define the story scope
|
|
55
|
+
|
|
56
|
+
#### 1.2 Gather Essential Context
|
|
57
|
+
|
|
58
|
+
CRITICAL: For brownfield stories, you MUST gather enough context for safe implementation. Be prepared to ask the user for missing information.
|
|
59
|
+
|
|
60
|
+
**Required Information Checklist:**
|
|
61
|
+
|
|
62
|
+
- [ ] What existing functionality might be affected?
|
|
63
|
+
- [ ] What are the integration points with current code?
|
|
64
|
+
- [ ] What patterns should be followed (with examples)?
|
|
65
|
+
- [ ] What technical constraints exist?
|
|
66
|
+
- [ ] Are there any "gotchas" or workarounds to know about?
|
|
67
|
+
|
|
68
|
+
If any required information is missing, list the missing information and ask the user to provide it.
|
|
69
|
+
|
|
70
|
+
### 2. Extract Technical Context from Available Sources
|
|
71
|
+
|
|
72
|
+
#### 2.1 From Document-Project Output
|
|
73
|
+
|
|
74
|
+
If using brownfield-architecture.md from document-project:
|
|
75
|
+
|
|
76
|
+
- **Technical Debt Section**: Note any workarounds affecting this story
|
|
77
|
+
- **Key Files Section**: Identify files that will need modification
|
|
78
|
+
- **Integration Points**: Find existing integration patterns
|
|
79
|
+
- **Known Issues**: Check if story touches problematic areas
|
|
80
|
+
- **Actual Tech Stack**: Verify versions and constraints
|
|
81
|
+
|
|
82
|
+
#### 2.2 From Brownfield PRD
|
|
83
|
+
|
|
84
|
+
If using brownfield PRD:
|
|
85
|
+
|
|
86
|
+
- **Technical Constraints Section**: Extract all relevant constraints
|
|
87
|
+
- **Integration Requirements**: Note compatibility requirements
|
|
88
|
+
- **Code Organization**: Follow specified patterns
|
|
89
|
+
- **Risk Assessment**: Understand potential impacts
|
|
90
|
+
|
|
91
|
+
#### 2.3 From User Documentation
|
|
92
|
+
|
|
93
|
+
Ask the user to help identify:
|
|
94
|
+
|
|
95
|
+
- Relevant technical specifications
|
|
96
|
+
- Existing code examples to follow
|
|
97
|
+
- Integration requirements
|
|
98
|
+
- Testing approaches used in the project
|
|
99
|
+
|
|
100
|
+
### 3. Story Creation with Progressive Detail Gathering
|
|
101
|
+
|
|
102
|
+
#### 3.1 Create Initial Story Structure
|
|
103
|
+
|
|
104
|
+
Start with the story template, filling in what's known:
|
|
105
|
+
|
|
106
|
+
```markdown
|
|
107
|
+
# Story {{Enhancement Title}}
|
|
108
|
+
|
|
109
|
+
## Status: Draft
|
|
110
|
+
|
|
111
|
+
## Story
|
|
112
|
+
|
|
113
|
+
As a {{user_type}},
|
|
114
|
+
I want {{enhancement_capability}},
|
|
115
|
+
so that {{value_delivered}}.
|
|
116
|
+
|
|
117
|
+
## Context Source
|
|
118
|
+
|
|
119
|
+
- Source Document: {{document name/type}}
|
|
120
|
+
- Enhancement Type: {{single feature/bug fix/integration/etc}}
|
|
121
|
+
- Existing System Impact: {{brief assessment}}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
#### 3.2 Develop Acceptance Criteria
|
|
125
|
+
|
|
126
|
+
Critical: For brownfield, ALWAYS include criteria about maintaining existing functionality
|
|
127
|
+
|
|
128
|
+
Standard structure:
|
|
129
|
+
|
|
130
|
+
1. New functionality works as specified
|
|
131
|
+
2. Existing {{affected feature}} continues to work unchanged
|
|
132
|
+
3. Integration with {{existing system}} maintains current behavior
|
|
133
|
+
4. No regression in {{related area}}
|
|
134
|
+
5. Performance remains within acceptable bounds
|
|
135
|
+
|
|
136
|
+
#### 3.3 Gather Technical Guidance
|
|
137
|
+
|
|
138
|
+
Critical: This is where you'll need to be interactive with the user if information is missing
|
|
139
|
+
|
|
140
|
+
Create Dev Technical Guidance section with available information:
|
|
141
|
+
|
|
142
|
+
````markdown
|
|
143
|
+
## Dev Technical Guidance
|
|
144
|
+
|
|
145
|
+
### Existing System Context
|
|
146
|
+
|
|
147
|
+
[Extract from available documentation]
|
|
148
|
+
|
|
149
|
+
### Integration Approach
|
|
150
|
+
|
|
151
|
+
[Based on patterns found or ask user]
|
|
152
|
+
|
|
153
|
+
### Technical Constraints
|
|
154
|
+
|
|
155
|
+
[From documentation or user input]
|
|
156
|
+
|
|
157
|
+
### Missing Information
|
|
158
|
+
|
|
159
|
+
Critical: List anything you couldn't find that dev will need and ask for the missing information
|
|
160
|
+
|
|
161
|
+
### 4. Task Generation with Safety Checks
|
|
162
|
+
|
|
163
|
+
#### 4.1 Generate Implementation Tasks
|
|
164
|
+
|
|
165
|
+
Based on gathered context, create tasks that:
|
|
166
|
+
|
|
167
|
+
- Include exploration tasks if system understanding is incomplete
|
|
168
|
+
- Add verification tasks for existing functionality
|
|
169
|
+
- Include rollback considerations
|
|
170
|
+
- Reference specific files/patterns when known
|
|
171
|
+
|
|
172
|
+
Example task structure for brownfield:
|
|
173
|
+
|
|
174
|
+
```markdown
|
|
175
|
+
## Tasks / Subtasks
|
|
176
|
+
|
|
177
|
+
- [ ] Task 1: Analyze existing {{component/feature}} implementation
|
|
178
|
+
- [ ] Review {{specific files}} for current patterns
|
|
179
|
+
- [ ] Document integration points
|
|
180
|
+
- [ ] Identify potential impacts
|
|
181
|
+
|
|
182
|
+
- [ ] Task 2: Implement {{new functionality}}
|
|
183
|
+
- [ ] Follow pattern from {{example file}}
|
|
184
|
+
- [ ] Integrate with {{existing component}}
|
|
185
|
+
- [ ] Maintain compatibility with {{constraint}}
|
|
186
|
+
|
|
187
|
+
- [ ] Task 3: Verify existing functionality
|
|
188
|
+
- [ ] Test {{existing feature 1}} still works
|
|
189
|
+
- [ ] Verify {{integration point}} behavior unchanged
|
|
190
|
+
- [ ] Check performance impact
|
|
191
|
+
|
|
192
|
+
- [ ] Task 4: Add tests
|
|
193
|
+
- [ ] Unit tests following {{project test pattern}}
|
|
194
|
+
- [ ] Integration test for {{integration point}}
|
|
195
|
+
- [ ] Update existing tests if needed
|
|
196
|
+
```
|
|
197
|
+
````
|
|
198
|
+
|
|
199
|
+
### 5. Risk Assessment and Mitigation
|
|
200
|
+
|
|
201
|
+
CRITICAL: for brownfield - always include risk assessment
|
|
202
|
+
|
|
203
|
+
Add section for brownfield-specific risks:
|
|
204
|
+
|
|
205
|
+
```markdown
|
|
206
|
+
## Risk Assessment
|
|
207
|
+
|
|
208
|
+
### Implementation Risks
|
|
209
|
+
|
|
210
|
+
- **Primary Risk**: {{main risk to existing system}}
|
|
211
|
+
- **Mitigation**: {{how to address}}
|
|
212
|
+
- **Verification**: {{how to confirm safety}}
|
|
213
|
+
|
|
214
|
+
### Rollback Plan
|
|
215
|
+
|
|
216
|
+
- {{Simple steps to undo changes if needed}}
|
|
217
|
+
|
|
218
|
+
### Safety Checks
|
|
219
|
+
|
|
220
|
+
- [ ] Existing {{feature}} tested before changes
|
|
221
|
+
- [ ] Changes can be feature-flagged or isolated
|
|
222
|
+
- [ ] Rollback procedure documented
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### 6. Final Story Validation
|
|
226
|
+
|
|
227
|
+
Before finalizing:
|
|
228
|
+
|
|
229
|
+
1. **Completeness Check**:
|
|
230
|
+
- [ ] Story has clear scope and acceptance criteria
|
|
231
|
+
- [ ] Technical context is sufficient for implementation
|
|
232
|
+
- [ ] Integration approach is defined
|
|
233
|
+
- [ ] Risks are identified with mitigation
|
|
234
|
+
|
|
235
|
+
2. **Safety Check**:
|
|
236
|
+
- [ ] Existing functionality protection included
|
|
237
|
+
- [ ] Rollback plan is feasible
|
|
238
|
+
- [ ] Testing covers both new and existing features
|
|
239
|
+
|
|
240
|
+
3. **Information Gaps**:
|
|
241
|
+
- [ ] All critical missing information gathered from user
|
|
242
|
+
- [ ] Remaining unknowns documented for dev agent
|
|
243
|
+
- [ ] Exploration tasks added where needed
|
|
244
|
+
|
|
245
|
+
### 7. Story Output Format
|
|
246
|
+
|
|
247
|
+
Save the story with appropriate naming:
|
|
248
|
+
|
|
249
|
+
- If from epic: `docs/stories/epic-{n}-story-{m}.md`
|
|
250
|
+
- If standalone: `docs/stories/brownfield-{feature-name}.md`
|
|
251
|
+
- If sequential: Follow existing story numbering
|
|
252
|
+
|
|
253
|
+
Include header noting documentation context:
|
|
254
|
+
|
|
255
|
+
```markdown
|
|
256
|
+
# Story: {{Title}}
|
|
257
|
+
|
|
258
|
+
<!-- Source: {{documentation type used}} -->
|
|
259
|
+
<!-- Context: Brownfield enhancement to {{existing system}} -->
|
|
260
|
+
|
|
261
|
+
## Status: Draft
|
|
262
|
+
|
|
263
|
+
[Rest of story content...]
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### 8. Handoff Communication
|
|
267
|
+
|
|
268
|
+
Provide clear handoff to the user:
|
|
269
|
+
|
|
270
|
+
```text
|
|
271
|
+
Brownfield story created: {{story title}}
|
|
272
|
+
|
|
273
|
+
Source Documentation: {{what was used}}
|
|
274
|
+
Story Location: {{file path}}
|
|
275
|
+
|
|
276
|
+
Key Integration Points Identified:
|
|
277
|
+
- {{integration point 1}}
|
|
278
|
+
- {{integration point 2}}
|
|
279
|
+
|
|
280
|
+
Risks Noted:
|
|
281
|
+
- {{primary risk}}
|
|
282
|
+
|
|
283
|
+
{{If missing info}}:
|
|
284
|
+
Note: Some technical details were unclear. The story includes exploration tasks to gather needed information during implementation.
|
|
285
|
+
|
|
286
|
+
Next Steps:
|
|
287
|
+
1. Review story for accuracy
|
|
288
|
+
2. Verify integration approach aligns with your system
|
|
289
|
+
3. Approve story or request adjustments
|
|
290
|
+
4. Dev agent can then implement with safety checks
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
## Success Criteria
|
|
294
|
+
|
|
295
|
+
The brownfield story creation is successful when:
|
|
296
|
+
|
|
297
|
+
1. Story can be implemented without requiring dev to search multiple documents
|
|
298
|
+
2. Integration approach is clear and safe for existing system
|
|
299
|
+
3. All available technical context has been extracted and organized
|
|
300
|
+
4. Missing information has been identified and addressed
|
|
301
|
+
5. Risks are documented with mitigation strategies
|
|
302
|
+
6. Story includes verification of existing functionality
|
|
303
|
+
7. Rollback approach is defined
|
|
304
|
+
|
|
305
|
+
## Important Notes
|
|
306
|
+
|
|
307
|
+
- This task is specifically for brownfield projects with non-standard documentation
|
|
308
|
+
- Always prioritize existing system stability over new features
|
|
309
|
+
- When in doubt, add exploration and verification tasks
|
|
310
|
+
- It's better to ask the user for clarification than make assumptions
|
|
311
|
+
- Each story should be self-contained for the dev agent
|
|
312
|
+
- Include references to existing code patterns when available
|
|
@@ -14,78 +14,67 @@ Generate well-structured research prompts that:
|
|
|
14
14
|
|
|
15
15
|
## Research Type Selection
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
CRITICAL: First, help the user select the most appropriate research focus based on their needs and any input documents they've provided.
|
|
18
18
|
|
|
19
19
|
### 1. Research Focus Options
|
|
20
20
|
|
|
21
21
|
Present these numbered options to the user:
|
|
22
22
|
|
|
23
23
|
1. **Product Validation Research**
|
|
24
|
-
|
|
25
24
|
- Validate product hypotheses and market fit
|
|
26
25
|
- Test assumptions about user needs and solutions
|
|
27
26
|
- Assess technical and business feasibility
|
|
28
27
|
- Identify risks and mitigation strategies
|
|
29
28
|
|
|
30
29
|
2. **Market Opportunity Research**
|
|
31
|
-
|
|
32
30
|
- Analyze market size and growth potential
|
|
33
31
|
- Identify market segments and dynamics
|
|
34
32
|
- Assess market entry strategies
|
|
35
33
|
- Evaluate timing and market readiness
|
|
36
34
|
|
|
37
35
|
3. **User & Customer Research**
|
|
38
|
-
|
|
39
36
|
- Deep dive into user personas and behaviors
|
|
40
37
|
- Understand jobs-to-be-done and pain points
|
|
41
38
|
- Map customer journeys and touchpoints
|
|
42
39
|
- Analyze willingness to pay and value perception
|
|
43
40
|
|
|
44
41
|
4. **Competitive Intelligence Research**
|
|
45
|
-
|
|
46
42
|
- Detailed competitor analysis and positioning
|
|
47
43
|
- Feature and capability comparisons
|
|
48
44
|
- Business model and strategy analysis
|
|
49
45
|
- Identify competitive advantages and gaps
|
|
50
46
|
|
|
51
47
|
5. **Technology & Innovation Research**
|
|
52
|
-
|
|
53
48
|
- Assess technology trends and possibilities
|
|
54
49
|
- Evaluate technical approaches and architectures
|
|
55
50
|
- Identify emerging technologies and disruptions
|
|
56
51
|
- Analyze build vs. buy vs. partner options
|
|
57
52
|
|
|
58
53
|
6. **Industry & Ecosystem Research**
|
|
59
|
-
|
|
60
54
|
- Map industry value chains and dynamics
|
|
61
55
|
- Identify key players and relationships
|
|
62
56
|
- Analyze regulatory and compliance factors
|
|
63
57
|
- Understand partnership opportunities
|
|
64
58
|
|
|
65
59
|
7. **Strategic Options Research**
|
|
66
|
-
|
|
67
60
|
- Evaluate different strategic directions
|
|
68
61
|
- Assess business model alternatives
|
|
69
62
|
- Analyze go-to-market strategies
|
|
70
63
|
- Consider expansion and scaling paths
|
|
71
64
|
|
|
72
65
|
8. **Risk & Feasibility Research**
|
|
73
|
-
|
|
74
66
|
- Identify and assess various risk factors
|
|
75
67
|
- Evaluate implementation challenges
|
|
76
68
|
- Analyze resource requirements
|
|
77
69
|
- Consider regulatory and legal implications
|
|
78
70
|
|
|
79
71
|
9. **Custom Research Focus**
|
|
80
|
-
[[LLM: Allow user to define their own specific research focus.]]
|
|
81
72
|
- User-defined research objectives
|
|
82
73
|
- Specialized domain investigation
|
|
83
74
|
- Cross-functional research needs
|
|
84
75
|
|
|
85
76
|
### 2. Input Processing
|
|
86
77
|
|
|
87
|
-
[[LLM: Based on the selected research type and any provided inputs (project brief, brainstorming results, etc.), extract relevant context and constraints.]]
|
|
88
|
-
|
|
89
78
|
**If Project Brief provided:**
|
|
90
79
|
|
|
91
80
|
- Extract key product concepts and goals
|
|
@@ -118,11 +107,11 @@ Present these numbered options to the user:
|
|
|
118
107
|
|
|
119
108
|
### 3. Research Prompt Structure
|
|
120
109
|
|
|
121
|
-
|
|
110
|
+
CRITICAL: collaboratively develop a comprehensive research prompt with these components.
|
|
122
111
|
|
|
123
112
|
#### A. Research Objectives
|
|
124
113
|
|
|
125
|
-
|
|
114
|
+
CRITICAL: collaborate with the user to articulate clear, specific objectives for the research.
|
|
126
115
|
|
|
127
116
|
- Primary research goal and purpose
|
|
128
117
|
- Key decisions the research will inform
|
|
@@ -131,7 +120,7 @@ Present these numbered options to the user:
|
|
|
131
120
|
|
|
132
121
|
#### B. Research Questions
|
|
133
122
|
|
|
134
|
-
|
|
123
|
+
CRITICAL: collaborate with the user to develop specific, actionable research questions organized by theme.
|
|
135
124
|
|
|
136
125
|
**Core Questions:**
|
|
137
126
|
|
|
@@ -147,8 +136,6 @@ Present these numbered options to the user:
|
|
|
147
136
|
|
|
148
137
|
#### C. Research Methodology
|
|
149
138
|
|
|
150
|
-
[[LLM: Specify appropriate research methods based on the type and objectives.]]
|
|
151
|
-
|
|
152
139
|
**Data Collection Methods:**
|
|
153
140
|
|
|
154
141
|
- Secondary research sources
|
|
@@ -165,8 +152,6 @@ Present these numbered options to the user:
|
|
|
165
152
|
|
|
166
153
|
#### D. Output Requirements
|
|
167
154
|
|
|
168
|
-
[[LLM: Define how research findings should be structured and presented.]]
|
|
169
|
-
|
|
170
155
|
**Format Specifications:**
|
|
171
156
|
|
|
172
157
|
- Executive summary requirements
|
|
@@ -183,8 +168,6 @@ Present these numbered options to the user:
|
|
|
183
168
|
|
|
184
169
|
### 4. Prompt Generation
|
|
185
170
|
|
|
186
|
-
[[LLM: Synthesize all elements into a comprehensive, ready-to-use research prompt.]]
|
|
187
|
-
|
|
188
171
|
**Research Prompt Template:**
|
|
189
172
|
|
|
190
173
|
```markdown
|
|
@@ -253,16 +236,12 @@ Present these numbered options to the user:
|
|
|
253
236
|
|
|
254
237
|
### 5. Review and Refinement
|
|
255
238
|
|
|
256
|
-
[[LLM: Present the draft research prompt for user review and refinement.]]
|
|
257
|
-
|
|
258
239
|
1. **Present Complete Prompt**
|
|
259
|
-
|
|
260
240
|
- Show the full research prompt
|
|
261
241
|
- Explain key elements and rationale
|
|
262
242
|
- Highlight any assumptions made
|
|
263
243
|
|
|
264
244
|
2. **Gather Feedback**
|
|
265
|
-
|
|
266
245
|
- Are the objectives clear and correct?
|
|
267
246
|
- Do the questions address all concerns?
|
|
268
247
|
- Is the scope appropriate?
|
|
@@ -276,8 +255,6 @@ Present these numbered options to the user:
|
|
|
276
255
|
|
|
277
256
|
### 6. Next Steps Guidance
|
|
278
257
|
|
|
279
|
-
[[LLM: Provide clear guidance on how to use the research prompt.]]
|
|
280
|
-
|
|
281
258
|
**Execution Options:**
|
|
282
259
|
|
|
283
260
|
1. **Use with AI Research Assistant**: Provide this prompt to an AI model with research capabilities
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Create Next Story Task
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
To identify the next logical story based on project progress and epic definitions, and then to prepare a comprehensive, self-contained, and actionable story file using the `Story Template`. This task ensures the story is enriched with all necessary technical context, requirements, and acceptance criteria, making it ready for efficient implementation by a Developer Agent with minimal need for additional research or finding its own context.
|
|
6
|
+
|
|
7
|
+
## SEQUENTIAL Task Execution (Do not proceed until current Task is complete)
|
|
8
|
+
|
|
9
|
+
### 0. Load Core Configuration and Check Workflow
|
|
10
|
+
|
|
11
|
+
- Load `{root}/core-config.yaml` from the project root
|
|
12
|
+
- If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy it from GITHUB bmad-core/core-config.yaml and configure it for your project OR 2) Run the BMad installer against your project to upgrade and add the file automatically. Please add and configure core-config.yaml before proceeding."
|
|
13
|
+
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
|
|
14
|
+
|
|
15
|
+
### 1. Identify Next Story for Preparation
|
|
16
|
+
|
|
17
|
+
#### 1.1 Locate Epic Files and Review Existing Stories
|
|
18
|
+
|
|
19
|
+
- Based on `prdSharded` from config, locate epic files (sharded location/pattern or monolithic PRD sections)
|
|
20
|
+
- If `devStoryLocation` has story files, load the highest `{epicNum}.{storyNum}.story.md` file
|
|
21
|
+
- **If highest story exists:**
|
|
22
|
+
- Verify status is 'Done'. If not, alert user: "ALERT: Found incomplete story! File: {lastEpicNum}.{lastStoryNum}.story.md Status: [current status] You should fix this story first, but would you like to accept risk & override to create the next story in draft?"
|
|
23
|
+
- If proceeding, select next sequential story in the current epic
|
|
24
|
+
- If epic is complete, prompt user: "Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. Would you like to: 1) Begin Epic {epicNum + 1} with story 1 2) Select a specific story to work on 3) Cancel story creation"
|
|
25
|
+
- **CRITICAL**: NEVER automatically skip to another epic. User MUST explicitly instruct which story to create.
|
|
26
|
+
- **If no story files exist:** The next story is ALWAYS 1.1 (first story of first epic)
|
|
27
|
+
- Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}"
|
|
28
|
+
|
|
29
|
+
### 2. Gather Story Requirements and Previous Story Context
|
|
30
|
+
|
|
31
|
+
- Extract story requirements from the identified epic file
|
|
32
|
+
- If previous story exists, review Dev Agent Record sections for:
|
|
33
|
+
- Completion Notes and Debug Log References
|
|
34
|
+
- Implementation deviations and technical decisions
|
|
35
|
+
- Challenges encountered and lessons learned
|
|
36
|
+
- Extract relevant insights that inform the current story's preparation
|
|
37
|
+
|
|
38
|
+
### 3. Gather Architecture Context
|
|
39
|
+
|
|
40
|
+
#### 3.1 Determine Architecture Reading Strategy
|
|
41
|
+
|
|
42
|
+
- **If `architectureVersion: >= v4` and `architectureSharded: true`**: Read `{architectureShardedLocation}/index.md` then follow structured reading order below
|
|
43
|
+
- **Else**: Use monolithic `architectureFile` for similar sections
|
|
44
|
+
|
|
45
|
+
#### 3.2 Read Architecture Documents Based on Story Type
|
|
46
|
+
|
|
47
|
+
**For ALL Stories:** tech-stack.md, unified-project-structure.md, coding-standards.md, testing-strategy.md
|
|
48
|
+
|
|
49
|
+
**For Backend/API Stories, additionally:** data-models.md, database-schema.md, backend-architecture.md, rest-api-spec.md, external-apis.md
|
|
50
|
+
|
|
51
|
+
**For Frontend/UI Stories, additionally:** frontend-architecture.md, components.md, core-workflows.md, data-models.md
|
|
52
|
+
|
|
53
|
+
**For Full-Stack Stories:** Read both Backend and Frontend sections above
|
|
54
|
+
|
|
55
|
+
#### 3.3 Extract Story-Specific Technical Details
|
|
56
|
+
|
|
57
|
+
Extract ONLY information directly relevant to implementing the current story. Do NOT invent new libraries, patterns, or standards not in the source documents.
|
|
58
|
+
|
|
59
|
+
Extract:
|
|
60
|
+
|
|
61
|
+
- Specific data models, schemas, or structures the story will use
|
|
62
|
+
- API endpoints the story must implement or consume
|
|
63
|
+
- Component specifications for UI elements in the story
|
|
64
|
+
- File paths and naming conventions for new code
|
|
65
|
+
- Testing requirements specific to the story's features
|
|
66
|
+
- Security or performance considerations affecting the story
|
|
67
|
+
|
|
68
|
+
ALWAYS cite source documents: `[Source: architecture/{filename}.md#{section}]`
|
|
69
|
+
|
|
70
|
+
### 4. Verify Project Structure Alignment
|
|
71
|
+
|
|
72
|
+
- Cross-reference story requirements with Project Structure Guide from `docs/architecture/unified-project-structure.md`
|
|
73
|
+
- Ensure file paths, component locations, or module names align with defined structures
|
|
74
|
+
- Document any structural conflicts in "Project Structure Notes" section within the story draft
|
|
75
|
+
|
|
76
|
+
### 5. Populate Story Template with Full Context
|
|
77
|
+
|
|
78
|
+
- Create new story file: `{devStoryLocation}/{epicNum}.{storyNum}.story.md` using Story Template
|
|
79
|
+
- Fill in basic story information: Title, Status (Draft), Story statement, Acceptance Criteria from Epic
|
|
80
|
+
- **`Dev Notes` section (CRITICAL):**
|
|
81
|
+
- CRITICAL: This section MUST contain ONLY information extracted from architecture documents. NEVER invent or assume technical details.
|
|
82
|
+
- Include ALL relevant technical details from Steps 2-3, organized by category:
|
|
83
|
+
- **Previous Story Insights**: Key learnings from previous story
|
|
84
|
+
- **Data Models**: Specific schemas, validation rules, relationships [with source references]
|
|
85
|
+
- **API Specifications**: Endpoint details, request/response formats, auth requirements [with source references]
|
|
86
|
+
- **Component Specifications**: UI component details, props, state management [with source references]
|
|
87
|
+
- **File Locations**: Exact paths where new code should be created based on project structure
|
|
88
|
+
- **Testing Requirements**: Specific test cases or strategies from testing-strategy.md
|
|
89
|
+
- **Technical Constraints**: Version requirements, performance considerations, security rules
|
|
90
|
+
- Every technical detail MUST include its source reference: `[Source: architecture/{filename}.md#{section}]`
|
|
91
|
+
- If information for a category is not found in the architecture docs, explicitly state: "No specific guidance found in architecture docs"
|
|
92
|
+
- **`Tasks / Subtasks` section:**
|
|
93
|
+
- Generate detailed, sequential list of technical tasks based ONLY on: Epic Requirements, Story AC, Reviewed Architecture Information
|
|
94
|
+
- Each task must reference relevant architecture documentation
|
|
95
|
+
- Include unit testing as explicit subtasks based on the Testing Strategy
|
|
96
|
+
- Link tasks to ACs where applicable (e.g., `Task 1 (AC: 1, 3)`)
|
|
97
|
+
- Add notes on project structure alignment or discrepancies found in Step 4
|
|
98
|
+
|
|
99
|
+
### 6. Story Draft Completion and Review
|
|
100
|
+
|
|
101
|
+
- Review all sections for completeness and accuracy
|
|
102
|
+
- Verify all source references are included for technical details
|
|
103
|
+
- Ensure tasks align with both epic requirements and architecture constraints
|
|
104
|
+
- Update status to "Draft" and save the story file
|
|
105
|
+
- Execute `{root}/tasks/execute-checklist` `{root}/checklists/story-draft-checklist`
|
|
106
|
+
- Provide summary to user including:
|
|
107
|
+
- Story created: `{devStoryLocation}/{epicNum}.{storyNum}.story.md`
|
|
108
|
+
- Status: Draft
|
|
109
|
+
- Key technical components included from architecture docs
|
|
110
|
+
- Any deviations or conflicts noted between epic and architecture
|
|
111
|
+
- Checklist Results
|
|
112
|
+
- Next steps: For Complex stories, suggest the user carefully review the story draft and also optionally have the PO run the task `{root}/tasks/validate-next-story`
|