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
|
@@ -1,425 +0,0 @@
|
|
|
1
|
-
# Create Expansion Pack Task
|
|
2
|
-
|
|
3
|
-
This task helps you create a comprehensive BMAD expansion pack that can include new agents, tasks, templates, and checklists for a specific domain.
|
|
4
|
-
|
|
5
|
-
## Understanding Expansion Packs
|
|
6
|
-
|
|
7
|
-
Expansion packs extend BMAD with domain-specific capabilities. They are self-contained packages that can be installed into any BMAD project. Every expansion pack MUST include a custom BMAD orchestrator agent that manages the domain-specific workflow.
|
|
8
|
-
|
|
9
|
-
## CRITICAL REQUIREMENTS
|
|
10
|
-
|
|
11
|
-
1. **Create Planning Document First**: Before any implementation, create a concise task list for user approval
|
|
12
|
-
2. **Verify All References**: Any task, template, or data file referenced in an agent MUST exist in the pack
|
|
13
|
-
3. **Include Orchestrator**: Every pack needs a custom BMAD-style orchestrator agent
|
|
14
|
-
4. **User Data Requirements**: Clearly specify any files users must provide in their data folder
|
|
15
|
-
|
|
16
|
-
## Process Overview
|
|
17
|
-
|
|
18
|
-
### Phase 1: Discovery and Planning
|
|
19
|
-
|
|
20
|
-
#### 1.1 Define the Domain
|
|
21
|
-
|
|
22
|
-
Ask the user:
|
|
23
|
-
|
|
24
|
-
- **Pack Name**: Short identifier (e.g., `healthcare`, `fintech`, `gamedev`)
|
|
25
|
-
- **Display Name**: Full name (e.g., "Healthcare Compliance Pack")
|
|
26
|
-
- **Description**: What domain or industry does this serve?
|
|
27
|
-
- **Key Problems**: What specific challenges will this pack solve?
|
|
28
|
-
- **Target Users**: Who will benefit from this expansion?
|
|
29
|
-
|
|
30
|
-
#### 1.2 Gather Examples
|
|
31
|
-
|
|
32
|
-
Request from the user:
|
|
33
|
-
|
|
34
|
-
- **Sample Documents**: Any existing documents in this domain
|
|
35
|
-
- **Workflow Examples**: How work currently flows in this domain
|
|
36
|
-
- **Compliance Needs**: Any regulatory or standards requirements
|
|
37
|
-
- **Output Examples**: What final deliverables look like
|
|
38
|
-
- **Data Requirements**: What reference data files users will need to provide
|
|
39
|
-
|
|
40
|
-
#### 1.3 Create Planning Document
|
|
41
|
-
|
|
42
|
-
IMPORTANT: STOP HERE AND CREATE PLAN FIRST
|
|
43
|
-
|
|
44
|
-
Create `expansion-packs/{pack-name}/plan.md` with:
|
|
45
|
-
|
|
46
|
-
```markdown
|
|
47
|
-
# {Pack Name} Expansion Pack Plan
|
|
48
|
-
|
|
49
|
-
## Overview
|
|
50
|
-
|
|
51
|
-
- Pack Name: {name}
|
|
52
|
-
- Description: {description}
|
|
53
|
-
- Target Domain: {domain}
|
|
54
|
-
|
|
55
|
-
## Components to Create
|
|
56
|
-
|
|
57
|
-
### Agents
|
|
58
|
-
|
|
59
|
-
- [ ] {pack-name}-orchestrator (REQUIRED: Custom BMAD orchestrator)
|
|
60
|
-
- [ ] {agent-1-name}
|
|
61
|
-
- [ ] {agent-2-name}
|
|
62
|
-
|
|
63
|
-
### Tasks
|
|
64
|
-
|
|
65
|
-
- [ ] {task-1} (referenced by: {agent})
|
|
66
|
-
- [ ] {task-2} (referenced by: {agent})
|
|
67
|
-
|
|
68
|
-
### Templates
|
|
69
|
-
|
|
70
|
-
- [ ] {template-1} (used by: {agent/task})
|
|
71
|
-
- [ ] {template-2} (used by: {agent/task})
|
|
72
|
-
|
|
73
|
-
### Checklists
|
|
74
|
-
|
|
75
|
-
- [ ] {checklist-1}
|
|
76
|
-
- [ ] {checklist-2}
|
|
77
|
-
|
|
78
|
-
### Data Files Required from User
|
|
79
|
-
|
|
80
|
-
- [ ] {filename}.{ext} - {description of content needed}
|
|
81
|
-
- [ ] {filename2}.{ext} - {description of content needed}
|
|
82
|
-
|
|
83
|
-
## Approval
|
|
84
|
-
|
|
85
|
-
User approval received: [ ] Yes
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
Important: Wait for user approval before proceeding to Phase 2
|
|
89
|
-
|
|
90
|
-
### Phase 2: Component Design
|
|
91
|
-
|
|
92
|
-
#### 2.1 Create Orchestrator Agent
|
|
93
|
-
|
|
94
|
-
**FIRST PRIORITY**: Design the custom BMAD orchestrator:
|
|
95
|
-
|
|
96
|
-
- **Name**: `{pack-name}-orchestrator`
|
|
97
|
-
- **Purpose**: Master coordinator for domain-specific workflow
|
|
98
|
-
- **Key Commands**: Domain-specific orchestration commands
|
|
99
|
-
- **Integration**: How it leverages other pack agents
|
|
100
|
-
- **Workflow**: The complete process it manages
|
|
101
|
-
|
|
102
|
-
#### 2.2 Identify Specialist Agents
|
|
103
|
-
|
|
104
|
-
For each additional agent:
|
|
105
|
-
|
|
106
|
-
- **Role**: What specialist is needed?
|
|
107
|
-
- **Expertise**: Domain-specific knowledge required
|
|
108
|
-
- **Interactions**: How they work with orchestrator and BMAD agents
|
|
109
|
-
- **Unique Value**: What can't existing agents handle?
|
|
110
|
-
- **Required Tasks**: List ALL tasks this agent references
|
|
111
|
-
- **Required Templates**: List ALL templates this agent uses
|
|
112
|
-
- **Required Data**: List ALL data files this agent needs
|
|
113
|
-
|
|
114
|
-
#### 2.3 Design Specialized Tasks
|
|
115
|
-
|
|
116
|
-
For each task:
|
|
117
|
-
|
|
118
|
-
- **Purpose**: What specific action does it enable?
|
|
119
|
-
- **Inputs**: What information is needed?
|
|
120
|
-
- **Process**: Step-by-step instructions
|
|
121
|
-
- **Outputs**: What gets produced?
|
|
122
|
-
- **Agent Usage**: Which agents will use this task?
|
|
123
|
-
|
|
124
|
-
#### 2.4 Create Document Templates
|
|
125
|
-
|
|
126
|
-
For each template:
|
|
127
|
-
|
|
128
|
-
- **Document Type**: What kind of document?
|
|
129
|
-
- **Structure**: Sections and organization
|
|
130
|
-
- **Placeholders**: Variable content areas
|
|
131
|
-
- **Instructions**: How to complete each section
|
|
132
|
-
- **Standards**: Any format requirements
|
|
133
|
-
|
|
134
|
-
#### 2.5 Define Checklists
|
|
135
|
-
|
|
136
|
-
For each checklist:
|
|
137
|
-
|
|
138
|
-
- **Purpose**: What quality aspect does it verify?
|
|
139
|
-
- **Scope**: When should it be used?
|
|
140
|
-
- **Items**: Specific things to check
|
|
141
|
-
- **Criteria**: Pass/fail conditions
|
|
142
|
-
|
|
143
|
-
### Phase 3: Implementation
|
|
144
|
-
|
|
145
|
-
IMPORTANT: Only proceed after plan.md is approved
|
|
146
|
-
|
|
147
|
-
#### 3.1 Create Directory Structure
|
|
148
|
-
|
|
149
|
-
```text
|
|
150
|
-
expansion-packs/
|
|
151
|
-
└── {pack-name}/
|
|
152
|
-
├── plan.md (ALREADY CREATED)
|
|
153
|
-
├── manifest.yml
|
|
154
|
-
├── README.md
|
|
155
|
-
├── agents/
|
|
156
|
-
│ ├── {pack-name}-orchestrator.yml (REQUIRED)
|
|
157
|
-
│ └── {agent-id}.yml
|
|
158
|
-
├── personas/
|
|
159
|
-
│ ├── {pack-name}-orchestrator.md (REQUIRED)
|
|
160
|
-
│ └── {agent-id}.md
|
|
161
|
-
├── tasks/
|
|
162
|
-
│ └── {task-name}.md
|
|
163
|
-
├── templates/
|
|
164
|
-
│ └── {template-name}.md
|
|
165
|
-
├── checklists/
|
|
166
|
-
│ └── {checklist-name}.md
|
|
167
|
-
└── ide-agents/
|
|
168
|
-
├── {pack-name}-orchestrator.ide.md (REQUIRED)
|
|
169
|
-
└── {agent-id}.ide.md
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
#### 3.2 Create Manifest
|
|
173
|
-
|
|
174
|
-
Create `manifest.yml`:
|
|
175
|
-
|
|
176
|
-
```yaml
|
|
177
|
-
name: {pack-name}
|
|
178
|
-
version: 1.0.0
|
|
179
|
-
description: >-
|
|
180
|
-
{Detailed description of the expansion pack}
|
|
181
|
-
author: {Your name or organization}
|
|
182
|
-
bmad_version: "4.0.0"
|
|
183
|
-
|
|
184
|
-
# Files to create in the expansion pack
|
|
185
|
-
files:
|
|
186
|
-
agents:
|
|
187
|
-
- {pack-name}-orchestrator.yml
|
|
188
|
-
- {agent-name}.yml
|
|
189
|
-
|
|
190
|
-
personas:
|
|
191
|
-
- {pack-name}-orchestrator.md
|
|
192
|
-
- {agent-name}.md
|
|
193
|
-
|
|
194
|
-
ide-agents:
|
|
195
|
-
- {pack-name}-orchestrator.ide.md
|
|
196
|
-
- {agent-name}.ide.md
|
|
197
|
-
|
|
198
|
-
tasks:
|
|
199
|
-
- {task-name}.md
|
|
200
|
-
|
|
201
|
-
templates:
|
|
202
|
-
- {template-name}.md
|
|
203
|
-
|
|
204
|
-
checklists:
|
|
205
|
-
- {checklist-name}.md
|
|
206
|
-
|
|
207
|
-
# Data files users must provide
|
|
208
|
-
required_data:
|
|
209
|
-
- filename: {data-file}.{ext}
|
|
210
|
-
description: {What this file should contain}
|
|
211
|
-
location: bmad-core/data/
|
|
212
|
-
|
|
213
|
-
# Dependencies on core BMAD components
|
|
214
|
-
dependencies:
|
|
215
|
-
- {core-agent-name}
|
|
216
|
-
- {core-task-name}
|
|
217
|
-
|
|
218
|
-
# Post-install message
|
|
219
|
-
post_install_message: |
|
|
220
|
-
{Pack Name} expansion pack ready!
|
|
221
|
-
|
|
222
|
-
Required data files:
|
|
223
|
-
- {data-file}.{ext}: {description}
|
|
224
|
-
|
|
225
|
-
To use: npm run agent {pack-name}-orchestrator
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
### Phase 4: Content Creation
|
|
229
|
-
|
|
230
|
-
IMPORTANT: Work through plan.md checklist systematically!
|
|
231
|
-
|
|
232
|
-
#### 4.1 Create Orchestrator First
|
|
233
|
-
|
|
234
|
-
1. Create `personas/{pack-name}-orchestrator.md` with BMAD-style commands
|
|
235
|
-
2. Create `agents/{pack-name}-orchestrator.yml` configuration
|
|
236
|
-
3. Create `ide-agents/{pack-name}-orchestrator.ide.md`
|
|
237
|
-
4. Verify ALL referenced tasks exist
|
|
238
|
-
5. Verify ALL referenced templates exist
|
|
239
|
-
6. Document data file requirements
|
|
240
|
-
|
|
241
|
-
#### 4.2 Agent Creation Order
|
|
242
|
-
|
|
243
|
-
For each additional agent:
|
|
244
|
-
|
|
245
|
-
1. Create persona file with domain expertise
|
|
246
|
-
2. Create agent configuration YAML
|
|
247
|
-
3. Create IDE-optimized version
|
|
248
|
-
4. **STOP** - Verify all referenced tasks/templates exist
|
|
249
|
-
5. Create any missing tasks/templates immediately
|
|
250
|
-
6. Mark agent as complete in plan.md
|
|
251
|
-
|
|
252
|
-
#### 4.3 Task Creation Guidelines
|
|
253
|
-
|
|
254
|
-
Each task should:
|
|
255
|
-
|
|
256
|
-
1. Have a clear, single purpose
|
|
257
|
-
2. Include step-by-step instructions
|
|
258
|
-
3. Provide examples when helpful
|
|
259
|
-
4. Reference domain standards
|
|
260
|
-
5. Be reusable across agents
|
|
261
|
-
|
|
262
|
-
#### 4.4 Template Best Practices
|
|
263
|
-
|
|
264
|
-
Templates should:
|
|
265
|
-
|
|
266
|
-
1. Include clear section headers
|
|
267
|
-
2. Provide inline instructions
|
|
268
|
-
3. Show example content
|
|
269
|
-
4. Mark required vs optional sections
|
|
270
|
-
5. Include domain-specific terminology
|
|
271
|
-
|
|
272
|
-
### Phase 5: Verification and Documentation
|
|
273
|
-
|
|
274
|
-
#### 5.1 Final Verification Checklist
|
|
275
|
-
|
|
276
|
-
Before declaring complete:
|
|
277
|
-
|
|
278
|
-
1. [ ] All items in plan.md marked complete
|
|
279
|
-
2. [ ] Orchestrator agent created and tested
|
|
280
|
-
3. [ ] All agent references validated
|
|
281
|
-
4. [ ] All required data files documented
|
|
282
|
-
5. [ ] manifest.yml lists all components
|
|
283
|
-
6. [ ] No orphaned tasks or templates
|
|
284
|
-
|
|
285
|
-
#### 5.2 Create README
|
|
286
|
-
|
|
287
|
-
Include:
|
|
288
|
-
|
|
289
|
-
- Overview of the pack's purpose
|
|
290
|
-
- **Orchestrator usage instructions**
|
|
291
|
-
- Required data files and formats
|
|
292
|
-
- List of all components
|
|
293
|
-
- Integration with BMAD workflow
|
|
294
|
-
- Example scenarios
|
|
295
|
-
|
|
296
|
-
#### 5.3 Data File Documentation
|
|
297
|
-
|
|
298
|
-
For each required data file:
|
|
299
|
-
|
|
300
|
-
```markdown
|
|
301
|
-
## Required Data Files
|
|
302
|
-
|
|
303
|
-
### {filename}.{ext}
|
|
304
|
-
|
|
305
|
-
- **Purpose**: {why this file is needed}
|
|
306
|
-
- **Format**: {file format and structure}
|
|
307
|
-
- **Location**: Place in `bmad-core/data/`
|
|
308
|
-
- **Example**:
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
## Example: Healthcare Expansion Pack
|
|
312
|
-
|
|
313
|
-
```text
|
|
314
|
-
healthcare/
|
|
315
|
-
├── plan.md (Created first for approval)
|
|
316
|
-
├── manifest.yml
|
|
317
|
-
├── README.md
|
|
318
|
-
├── agents/
|
|
319
|
-
│ ├── healthcare-orchestrator.yml (REQUIRED)
|
|
320
|
-
│ ├── clinical-analyst.yml
|
|
321
|
-
│ └── compliance-officer.yml
|
|
322
|
-
├── personas/
|
|
323
|
-
│ ├── healthcare-orchestrator.md (REQUIRED)
|
|
324
|
-
│ ├── clinical-analyst.md
|
|
325
|
-
│ └── compliance-officer.md
|
|
326
|
-
├── ide-agents/
|
|
327
|
-
│ ├── healthcare-orchestrator.ide.md (REQUIRED)
|
|
328
|
-
│ ├── clinical-analyst.ide.md
|
|
329
|
-
│ └── compliance-officer.ide.md
|
|
330
|
-
├── tasks/
|
|
331
|
-
│ ├── hipaa-assessment.md
|
|
332
|
-
│ ├── clinical-protocol-review.md
|
|
333
|
-
│ └── patient-data-analysis.md
|
|
334
|
-
├── templates/
|
|
335
|
-
│ ├── clinical-trial-protocol.md
|
|
336
|
-
│ ├── hipaa-compliance-report.md
|
|
337
|
-
│ └── patient-outcome-report.md
|
|
338
|
-
└── checklists/
|
|
339
|
-
├── hipaa-checklist.md
|
|
340
|
-
└── clinical-data-quality.md
|
|
341
|
-
|
|
342
|
-
Required user data files:
|
|
343
|
-
- bmad-core/data/medical-terminology.md
|
|
344
|
-
- bmad-core/data/hipaa-requirements.md
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
## Interactive Questions Flow
|
|
348
|
-
|
|
349
|
-
### Initial Discovery
|
|
350
|
-
|
|
351
|
-
1. "What domain or industry will this expansion pack serve?"
|
|
352
|
-
2. "What are the main challenges or workflows in this domain?"
|
|
353
|
-
3. "Do you have any example documents or outputs? (Please share)"
|
|
354
|
-
4. "What specialized roles/experts exist in this domain?"
|
|
355
|
-
5. "What reference data will users need to provide?"
|
|
356
|
-
|
|
357
|
-
### Planning Phase
|
|
358
|
-
|
|
359
|
-
1. "Here's the proposed plan. Please review and approve before we continue."
|
|
360
|
-
|
|
361
|
-
### Orchestrator Design
|
|
362
|
-
|
|
363
|
-
1. "What key commands should the {pack-name} orchestrator support?"
|
|
364
|
-
2. "What's the typical workflow from start to finish?"
|
|
365
|
-
3. "How should it integrate with core BMAD agents?"
|
|
366
|
-
|
|
367
|
-
### Agent Planning
|
|
368
|
-
|
|
369
|
-
1. "For agent '{name}', what is their specific expertise?"
|
|
370
|
-
2. "What tasks will this agent reference? (I'll create them)"
|
|
371
|
-
3. "What templates will this agent use? (I'll create them)"
|
|
372
|
-
4. "What data files will this agent need? (You'll provide these)"
|
|
373
|
-
|
|
374
|
-
### Task Design
|
|
375
|
-
|
|
376
|
-
1. "Describe the '{task}' process step-by-step"
|
|
377
|
-
2. "What information is needed to complete this task?"
|
|
378
|
-
3. "What should the output look like?"
|
|
379
|
-
|
|
380
|
-
### Template Creation
|
|
381
|
-
|
|
382
|
-
1. "What sections should the '{template}' document have?"
|
|
383
|
-
2. "Are there any required formats or standards?"
|
|
384
|
-
3. "Can you provide an example of a completed document?"
|
|
385
|
-
|
|
386
|
-
### Data Requirements
|
|
387
|
-
|
|
388
|
-
1. "For {data-file}, what information should it contain?"
|
|
389
|
-
2. "What format should this data be in?"
|
|
390
|
-
3. "Can you provide a sample?"
|
|
391
|
-
|
|
392
|
-
## Important Considerations
|
|
393
|
-
|
|
394
|
-
- **Plan First**: ALWAYS create and get approval for plan.md before implementing
|
|
395
|
-
- **Orchestrator Required**: Every pack MUST have a custom BMAD orchestrator
|
|
396
|
-
- **Verify References**: ALL referenced tasks/templates MUST exist
|
|
397
|
-
- **Document Data Needs**: Clearly specify what users must provide
|
|
398
|
-
- **Domain Expertise**: Ensure accuracy in specialized fields
|
|
399
|
-
- **Compliance**: Include necessary regulatory requirements
|
|
400
|
-
|
|
401
|
-
## Tips for Success
|
|
402
|
-
|
|
403
|
-
1. **Plan Thoroughly**: The plan.md prevents missing components
|
|
404
|
-
2. **Build Orchestrator First**: It defines the overall workflow
|
|
405
|
-
3. **Verify As You Go**: Check off items in plan.md
|
|
406
|
-
4. **Test References**: Ensure no broken dependencies
|
|
407
|
-
5. **Document Data**: Users need clear data file instructions
|
|
408
|
-
|
|
409
|
-
## Common Mistakes to Avoid
|
|
410
|
-
|
|
411
|
-
1. **Missing Orchestrator**: Every pack needs its own BMAD-style orchestrator
|
|
412
|
-
2. **Orphaned References**: Agent references task that doesn't exist
|
|
413
|
-
3. **Unclear Data Needs**: Not specifying required user data files
|
|
414
|
-
4. **Skipping Plan**: Going straight to implementation
|
|
415
|
-
5. **Generic Orchestrator**: Not making it domain-specific
|
|
416
|
-
|
|
417
|
-
## Completion Checklist
|
|
418
|
-
|
|
419
|
-
- [ ] plan.md created and approved
|
|
420
|
-
- [ ] All plan.md items checked off
|
|
421
|
-
- [ ] Orchestrator agent created
|
|
422
|
-
- [ ] All agent references verified
|
|
423
|
-
- [ ] Data requirements documented or added
|
|
424
|
-
- [ ] README includes all setup instructions
|
|
425
|
-
- [ ] manifest.yml reflects actual files
|
|
@@ -1,206 +0,0 @@
|
|
|
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.
|
|
6
|
-
|
|
7
|
-
## Inputs for this Task
|
|
8
|
-
|
|
9
|
-
- Access to the project's documentation repository, specifically:
|
|
10
|
-
- `docs/index.md` (hereafter "Index Doc")
|
|
11
|
-
- All Epic files - located in one of these locations:
|
|
12
|
-
- Primary: `docs/prd/epic-{n}-{description}.md` (e.g., `epic-1-foundation-core-infrastructure.md`)
|
|
13
|
-
- Secondary: `docs/epics/epic-{n}-{description}.md`
|
|
14
|
-
- User-specified location if not found in above paths
|
|
15
|
-
- Existing story files in `docs/stories/`
|
|
16
|
-
- Main PRD (hereafter "PRD Doc")
|
|
17
|
-
- Main Architecture Document (hereafter "Main Arch Doc")
|
|
18
|
-
- Frontend Architecture Document (hereafter "Frontend Arch Doc," if relevant)
|
|
19
|
-
- Project Structure Guide (`docs/project-structure.md`)
|
|
20
|
-
- Operational Guidelines Document (`docs/operational-guidelines.md`)
|
|
21
|
-
- Technology Stack Document (`docs/tech-stack.md`)
|
|
22
|
-
- Data Models Document (as referenced in Index Doc)
|
|
23
|
-
- API Reference Document (as referenced in Index Doc)
|
|
24
|
-
- UI/UX Specifications, Style Guides, Component Guides (if relevant, as referenced in Index Doc)
|
|
25
|
-
- The `bmad-core/templates/story-tmpl.md` (hereafter "Story Template")
|
|
26
|
-
- The `bmad-core/checklists/story-draft-checklist.md` (hereafter "Story Draft Checklist")
|
|
27
|
-
- User confirmation to proceed with story identification and, if needed, to override warnings about incomplete prerequisite stories.
|
|
28
|
-
|
|
29
|
-
## Task Execution Instructions
|
|
30
|
-
|
|
31
|
-
### 1. Identify Next Story for Preparation
|
|
32
|
-
|
|
33
|
-
#### 1.1 Locate Epic Files
|
|
34
|
-
|
|
35
|
-
- First, determine where epic files are located:
|
|
36
|
-
- Check `docs/prd/` for files matching pattern `epic-{n}-*.md`
|
|
37
|
-
- If not found, check `docs/epics/` for files matching pattern `epic-{n}-*.md`
|
|
38
|
-
- If still not found, ask user: "Unable to locate epic files. Please specify the path where epic files are stored."
|
|
39
|
-
- Note: Epic files follow naming convention `epic-{n}-{description}.md` (e.g., `epic-1-foundation-core-infrastructure.md`)
|
|
40
|
-
|
|
41
|
-
#### 1.2 Review Existing Stories
|
|
42
|
-
|
|
43
|
-
- Review `docs/stories/` to find the highest-numbered story file.
|
|
44
|
-
- **If a highest story file exists (`{lastEpicNum}.{lastStoryNum}.story.md`):**
|
|
45
|
-
|
|
46
|
-
- Verify its `Status` is 'Done' (or equivalent).
|
|
47
|
-
- If not 'Done', present an alert to the user:
|
|
48
|
-
|
|
49
|
-
```plaintext
|
|
50
|
-
ALERT: Found incomplete story:
|
|
51
|
-
File: {lastEpicNum}.{lastStoryNum}.story.md
|
|
52
|
-
Status: [current status]
|
|
53
|
-
|
|
54
|
-
Would you like to:
|
|
55
|
-
1. View the incomplete story details (instructs user to do so, agent does not display)
|
|
56
|
-
2. Cancel new story creation at this time
|
|
57
|
-
3. Accept risk & Override to create the next story in draft
|
|
58
|
-
|
|
59
|
-
Please choose an option (1/2/3):
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
- Proceed only if user selects option 3 (Override) or if the last story was 'Done'.
|
|
63
|
-
- If proceeding: Look for the Epic File for `{lastEpicNum}` (e.g., `epic-{lastEpicNum}-*.md`) and check for a story numbered `{lastStoryNum + 1}`. If it exists and its prerequisites (per Epic File) are met, this is the next story.
|
|
64
|
-
- Else (story not found or prerequisites not met): The next story is the first story in the next Epic File (e.g., look for `epic-{lastEpicNum + 1}-*.md`, then `epic-{lastEpicNum + 2}-*.md`, etc.) whose prerequisites are met.
|
|
65
|
-
|
|
66
|
-
- **If no story files exist in `docs/stories/`:**
|
|
67
|
-
- The next story is the first story in the first epic file (look for `epic-1-*.md`, then `epic-2-*.md`, etc.) whose prerequisites are met.
|
|
68
|
-
- If no suitable story with met prerequisites is found, report to the user that story creation is blocked, specifying what prerequisites are pending. HALT task.
|
|
69
|
-
- Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}".
|
|
70
|
-
|
|
71
|
-
### 2. Gather Core Story Requirements (from Epic File)
|
|
72
|
-
|
|
73
|
-
- For the identified story, open its parent Epic File (e.g., `epic-{epicNum}-*.md` from the location identified in step 1.1).
|
|
74
|
-
- Extract: Exact Title, full Goal/User Story statement, initial list of Requirements, all Acceptance Criteria (ACs), and any predefined high-level Tasks.
|
|
75
|
-
- Keep a record of this original epic-defined scope for later deviation analysis.
|
|
76
|
-
|
|
77
|
-
### 3. Review Previous Story and Extract Dev Notes
|
|
78
|
-
|
|
79
|
-
[[LLM: This step is CRITICAL for continuity and learning from implementation experience]]
|
|
80
|
-
|
|
81
|
-
- If this is not the first story (i.e., previous story exists):
|
|
82
|
-
- Read the previous story file: `docs/stories/{prevEpicNum}.{prevStoryNum}.story.md`
|
|
83
|
-
- Pay special attention to:
|
|
84
|
-
- Dev Agent Record sections (especially Completion Notes and Debug Log References)
|
|
85
|
-
- Any deviations from planned implementation
|
|
86
|
-
- Technical decisions made during implementation
|
|
87
|
-
- Challenges encountered and solutions applied
|
|
88
|
-
- Any "lessons learned" or notes for future stories
|
|
89
|
-
- Extract relevant insights that might inform the current story's preparation
|
|
90
|
-
|
|
91
|
-
### 4. Gather & Synthesize Architecture Context from Sharded Docs
|
|
92
|
-
|
|
93
|
-
[[LLM: CRITICAL - You MUST gather technical details from the sharded architecture documents. NEVER make up technical details not found in these documents.]]
|
|
94
|
-
|
|
95
|
-
#### 4.1 Start with Architecture Index
|
|
96
|
-
|
|
97
|
-
- Read `docs/architecture/index.md` to understand the full scope of available documentation
|
|
98
|
-
- Identify which sharded documents are most relevant to the current story
|
|
99
|
-
|
|
100
|
-
#### 4.2 Recommended Reading Order Based on Story Type
|
|
101
|
-
|
|
102
|
-
[[LLM: Read documents in this order, but ALWAYS verify relevance to the specific story. Skip irrelevant sections but NEVER skip documents that contain information needed for the story.]]
|
|
103
|
-
|
|
104
|
-
**For ALL Stories:**
|
|
105
|
-
|
|
106
|
-
1. `docs/architecture/tech-stack.md` - Understand technology constraints and versions
|
|
107
|
-
2. `docs/architecture/unified-project-structure.md` - Know where code should be placed
|
|
108
|
-
3. `docs/architecture/coding-standards.md` - Ensure dev follows project conventions
|
|
109
|
-
4. `docs/architecture/testing-strategy.md` - Include testing requirements in tasks
|
|
110
|
-
|
|
111
|
-
**For Backend/API Stories, additionally read:** 5. `docs/architecture/data-models.md` - Data structures and validation rules 6. `docs/architecture/database-schema.md` - Database design and relationships 7. `docs/architecture/backend-architecture.md` - Service patterns and structure 8. `docs/architecture/rest-api-spec.md` - API endpoint specifications 9. `docs/architecture/external-apis.md` - Third-party integrations (if relevant)
|
|
112
|
-
|
|
113
|
-
**For Frontend/UI Stories, additionally read:** 5. `docs/architecture/frontend-architecture.md` - Component structure and patterns 6. `docs/architecture/components.md` - Specific component designs 7. `docs/architecture/core-workflows.md` - User interaction flows 8. `docs/architecture/data-models.md` - Frontend data handling
|
|
114
|
-
|
|
115
|
-
**For Full-Stack Stories:**
|
|
116
|
-
|
|
117
|
-
- Read both Backend and Frontend sections above
|
|
118
|
-
|
|
119
|
-
#### 4.3 Extract Story-Specific Technical Details
|
|
120
|
-
|
|
121
|
-
[[LLM: As you read each document, extract ONLY the information directly relevant to implementing the current story. Do NOT include general information unless it directly impacts the story implementation.]]
|
|
122
|
-
|
|
123
|
-
For each relevant document, extract:
|
|
124
|
-
|
|
125
|
-
- Specific data models, schemas, or structures the story will use
|
|
126
|
-
- API endpoints the story must implement or consume
|
|
127
|
-
- Component specifications for UI elements in the story
|
|
128
|
-
- File paths and naming conventions for new code
|
|
129
|
-
- Testing requirements specific to the story's features
|
|
130
|
-
- Security or performance considerations affecting the story
|
|
131
|
-
|
|
132
|
-
#### 4.4 Document Source References
|
|
133
|
-
|
|
134
|
-
[[LLM: ALWAYS cite the source document and section for each technical detail you include. This helps the dev agent verify information if needed.]]
|
|
135
|
-
|
|
136
|
-
Format references as: `[Source: architecture/{filename}.md#{section}]`
|
|
137
|
-
|
|
138
|
-
### 5. Verify Project Structure Alignment
|
|
139
|
-
|
|
140
|
-
- Cross-reference the story's requirements and anticipated file manipulations with the Project Structure Guide from `docs/architecture/unified-project-structure.md`.
|
|
141
|
-
- Ensure any file paths, component locations, or module names implied by the story align with defined structures.
|
|
142
|
-
- Document any structural conflicts, necessary clarifications, or undefined components/paths in a "Project Structure Notes" section within the story draft.
|
|
143
|
-
|
|
144
|
-
### 6. Populate Story Template with Full Context
|
|
145
|
-
|
|
146
|
-
- Create a new story file: `docs/stories/{epicNum}.{storyNum}.story.md`.
|
|
147
|
-
- Use the Story Template to structure the file.
|
|
148
|
-
- Fill in:
|
|
149
|
-
- Story `{EpicNum}.{StoryNum}: {Short Title Copied from Epic File}`
|
|
150
|
-
- `Status: Draft`
|
|
151
|
-
- `Story` (User Story statement from Epic)
|
|
152
|
-
- `Acceptance Criteria (ACs)` (from Epic, to be refined if needed based on context)
|
|
153
|
-
- **`Dev Technical Guidance` section (CRITICAL):**
|
|
154
|
-
|
|
155
|
-
[[LLM: This section MUST contain ONLY information extracted from the architecture shards. NEVER invent or assume technical details.]]
|
|
156
|
-
|
|
157
|
-
- Include ALL relevant technical details gathered from Steps 3 and 4, organized by category:
|
|
158
|
-
- **Previous Story Insights**: Key learnings or considerations from the previous story
|
|
159
|
-
- **Data Models**: Specific schemas, validation rules, relationships [with source references]
|
|
160
|
-
- **API Specifications**: Endpoint details, request/response formats, auth requirements [with source references]
|
|
161
|
-
- **Component Specifications**: UI component details, props, state management [with source references]
|
|
162
|
-
- **File Locations**: Exact paths where new code should be created based on project structure
|
|
163
|
-
- **Testing Requirements**: Specific test cases or strategies from testing-strategy.md
|
|
164
|
-
- **Technical Constraints**: Version requirements, performance considerations, security rules
|
|
165
|
-
- Every technical detail MUST include its source reference: `[Source: architecture/{filename}.md#{section}]`
|
|
166
|
-
- If information for a category is not found in the architecture docs, explicitly state: "No specific guidance found in architecture docs"
|
|
167
|
-
|
|
168
|
-
- **`Tasks / Subtasks` section:**
|
|
169
|
-
- Generate a detailed, sequential list of technical tasks based ONLY on:
|
|
170
|
-
- Requirements from the Epic
|
|
171
|
-
- Technical constraints from architecture shards
|
|
172
|
-
- Project structure from unified-project-structure.md
|
|
173
|
-
- Testing requirements from testing-strategy.md
|
|
174
|
-
- Each task must reference relevant architecture documentation
|
|
175
|
-
- Include unit testing as explicit subtasks based on testing-strategy.md
|
|
176
|
-
- Link tasks to ACs where applicable (e.g., `Task 1 (AC: 1, 3)`)
|
|
177
|
-
- Add notes on project structure alignment or discrepancies found in Step 5.
|
|
178
|
-
- Prepare content for the "Deviation Analysis" based on any conflicts between epic requirements and architecture constraints.
|
|
179
|
-
|
|
180
|
-
### 7. Run Story Draft Checklist
|
|
181
|
-
|
|
182
|
-
- Execute the Story Draft Checklist against the prepared story
|
|
183
|
-
- Document any issues or gaps identified
|
|
184
|
-
- Make necessary adjustments to meet quality standards
|
|
185
|
-
- Ensure all technical guidance is properly sourced from architecture docs
|
|
186
|
-
|
|
187
|
-
### 8. Finalize Story File
|
|
188
|
-
|
|
189
|
-
- Review all sections for completeness and accuracy
|
|
190
|
-
- Verify all source references are included for technical details
|
|
191
|
-
- Ensure tasks align with both epic requirements and architecture constraints
|
|
192
|
-
- Update status to "Draft"
|
|
193
|
-
- Save the story file to `docs/stories/{epicNum}.{storyNum}.story.md`
|
|
194
|
-
|
|
195
|
-
### 9. Report Completion
|
|
196
|
-
|
|
197
|
-
Provide a summary to the user including:
|
|
198
|
-
|
|
199
|
-
- Story created: `{epicNum}.{storyNum} - {Story Title}`
|
|
200
|
-
- Status: Draft
|
|
201
|
-
- Key technical components included from architecture docs
|
|
202
|
-
- Any deviations or conflicts noted between epic and architecture
|
|
203
|
-
- Recommendations for story review before approval
|
|
204
|
-
- Next steps: Story should be reviewed by PO for approval before dev work begins
|
|
205
|
-
|
|
206
|
-
[[LLM: Remember - The success of this task depends on extracting real, specific technical details from the architecture shards. The dev agent should have everything they need in the story file without having to search through multiple documents.]]
|