@zeyue0329/xiaoma-cli 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +686 -0
- package/LICENSE +6 -1
- package/README.md +173 -460
- package/common/tasks/create-doc.md +3 -1
- package/common/tasks/execute-checklist.md +2 -7
- package/common/utils/bmad-doc-template.md +7 -5
- package/common/utils/workflow-management.md +2 -0
- package/dist/agents/analyst.txt +1143 -1118
- package/dist/agents/architect.txt +1555 -1531
- package/dist/agents/dev.txt +170 -22
- package/dist/agents/pm.txt +1103 -1106
- package/dist/agents/po.txt +329 -334
- package/dist/agents/qa.txt +1773 -154
- package/dist/agents/sm.txt +101 -102
- package/dist/agents/ux-expert.txt +93 -91
- package/dist/agents/xiaoma-master.txt +745 -673
- package/dist/agents/xiaoma-orchestrator.txt +107 -77
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2386 -0
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +1627 -0
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +822 -0
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +11008 -0
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +4031 -0
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +3717 -0
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +456 -0
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +982 -0
- package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +15450 -0
- package/dist/expansion-packs/bmad-creative-writing/agents/beta-reader.txt +921 -0
- package/dist/expansion-packs/bmad-creative-writing/agents/book-critic.txt +81 -0
- package/dist/expansion-packs/bmad-creative-writing/agents/character-psychologist.txt +886 -0
- package/dist/expansion-packs/bmad-creative-writing/agents/cover-designer.txt +85 -0
- package/dist/expansion-packs/bmad-creative-writing/agents/dialog-specialist.txt +903 -0
- package/dist/expansion-packs/bmad-creative-writing/agents/editor.txt +837 -0
- package/dist/expansion-packs/bmad-creative-writing/agents/genre-specialist.txt +989 -0
- package/dist/expansion-packs/bmad-creative-writing/agents/narrative-designer.txt +888 -0
- package/dist/expansion-packs/bmad-creative-writing/agents/plot-architect.txt +1173 -0
- package/dist/expansion-packs/bmad-creative-writing/agents/world-builder.txt +914 -0
- package/dist/expansion-packs/bmad-creative-writing/teams/agent-team.txt +6511 -0
- package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2087 -0
- package/dist/teams/team-all.txt +5710 -3857
- package/dist/teams/team-fullstack.txt +3242 -3157
- package/dist/teams/team-ide-minimal.txt +2330 -534
- package/dist/teams/team-no-ui.txt +2935 -2857
- 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 +200 -0
- package/docs/how-to-contribute-with-pull-requests.md +158 -0
- package/docs/user-guide.md +530 -0
- package/docs/versioning-and-releases.md +155 -0
- package/docs/versions.md +48 -0
- package/docs/working-in-the-brownfield.md +597 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +14 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +73 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +80 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +66 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +203 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +162 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +9 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +252 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +649 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +112 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +218 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +292 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +614 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +357 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +344 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +254 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +184 -0
- package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +176 -0
- package/expansion-packs/bmad-2d-unity-game-dev/agent-teams/unity-2d-game-team.yaml +15 -0
- package/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.md +82 -0
- package/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.md +79 -0
- package/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.md +80 -0
- package/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.md +67 -0
- package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-architect-checklist.md +393 -0
- package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-change-checklist.md +205 -0
- package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-design-checklist.md +203 -0
- package/expansion-packs/bmad-2d-unity-game-dev/checklists/game-story-dod-checklist.md +126 -0
- package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +7 -0
- package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +771 -0
- package/expansion-packs/bmad-2d-unity-game-dev/data/development-guidelines.md +588 -0
- package/expansion-packs/bmad-2d-unity-game-dev/tasks/advanced-elicitation.md +112 -0
- package/expansion-packs/bmad-2d-unity-game-dev/tasks/correct-course-game.md +143 -0
- package/expansion-packs/bmad-2d-unity-game-dev/tasks/create-game-story.md +186 -0
- package/expansion-packs/bmad-2d-unity-game-dev/tasks/game-design-brainstorming.md +292 -0
- package/expansion-packs/bmad-2d-unity-game-dev/tasks/validate-game-story.md +202 -0
- package/expansion-packs/bmad-2d-unity-game-dev/templates/game-architecture-tmpl.yaml +1031 -0
- package/expansion-packs/bmad-2d-unity-game-dev/templates/game-brief-tmpl.yaml +357 -0
- package/expansion-packs/bmad-2d-unity-game-dev/templates/game-design-doc-tmpl.yaml +706 -0
- package/expansion-packs/bmad-2d-unity-game-dev/templates/game-story-tmpl.yaml +257 -0
- package/expansion-packs/bmad-2d-unity-game-dev/templates/level-design-doc-tmpl.yaml +485 -0
- package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-dev-greenfield.yaml +184 -0
- package/expansion-packs/bmad-2d-unity-game-dev/workflows/game-prototype.yaml +176 -0
- package/expansion-packs/bmad-creative-writing/README.md +146 -0
- package/expansion-packs/bmad-creative-writing/agent-teams/agent-team.yaml +20 -0
- package/expansion-packs/bmad-creative-writing/agents/beta-reader.md +94 -0
- package/expansion-packs/bmad-creative-writing/agents/book-critic.md +40 -0
- package/expansion-packs/bmad-creative-writing/agents/character-psychologist.md +93 -0
- package/expansion-packs/bmad-creative-writing/agents/cover-designer.md +46 -0
- package/expansion-packs/bmad-creative-writing/agents/dialog-specialist.md +92 -0
- package/expansion-packs/bmad-creative-writing/agents/editor.md +93 -0
- package/expansion-packs/bmad-creative-writing/agents/genre-specialist.md +95 -0
- package/expansion-packs/bmad-creative-writing/agents/narrative-designer.md +93 -0
- package/expansion-packs/bmad-creative-writing/agents/plot-architect.md +95 -0
- package/expansion-packs/bmad-creative-writing/agents/world-builder.md +94 -0
- package/expansion-packs/bmad-creative-writing/checklists/beta-feedback-closure-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/character-consistency-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/comedic-timing-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/cyberpunk-aesthetic-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/ebook-formatting-checklist.md +21 -0
- package/expansion-packs/bmad-creative-writing/checklists/epic-poetry-meter-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/fantasy-magic-system-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/foreshadowing-payoff-checklist.md +22 -0
- package/expansion-packs/bmad-creative-writing/checklists/genre-tropes-checklist.md +22 -0
- package/expansion-packs/bmad-creative-writing/checklists/historical-accuracy-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/horror-suspense-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/kdp-cover-ready-checklist.md +25 -0
- package/expansion-packs/bmad-creative-writing/checklists/line-edit-quality-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/marketing-copy-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/mystery-clue-trail-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/orbital-mechanics-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/plot-structure-checklist.md +59 -0
- package/expansion-packs/bmad-creative-writing/checklists/publication-readiness-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/romance-emotional-beats-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/scene-quality-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/scifi-technology-plausibility-checklist.md +22 -0
- package/expansion-packs/bmad-creative-writing/checklists/sensitivity-representation-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/steampunk-gadget-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/thriller-pacing-stakes-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/timeline-continuity-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/world-building-continuity-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/checklists/ya-appropriateness-checklist.md +23 -0
- package/expansion-packs/bmad-creative-writing/config.yaml +12 -0
- package/expansion-packs/bmad-creative-writing/data/bmad-kb.md +209 -0
- package/expansion-packs/bmad-creative-writing/data/story-structures.md +67 -0
- package/expansion-packs/bmad-creative-writing/docs/brief.md +212 -0
- package/expansion-packs/bmad-creative-writing/tasks/advanced-elicitation.md +119 -0
- package/expansion-packs/bmad-creative-writing/tasks/analyze-reader-feedback.md +23 -0
- package/expansion-packs/bmad-creative-writing/tasks/analyze-story-structure.md +67 -0
- package/expansion-packs/bmad-creative-writing/tasks/assemble-kdp-package.md +29 -0
- package/expansion-packs/bmad-creative-writing/tasks/brainstorm-premise.md +23 -0
- package/expansion-packs/bmad-creative-writing/tasks/build-world.md +24 -0
- package/expansion-packs/bmad-creative-writing/tasks/character-depth-pass.md +22 -0
- package/expansion-packs/bmad-creative-writing/tasks/create-doc.md +103 -0
- package/expansion-packs/bmad-creative-writing/tasks/create-draft-section.md +26 -0
- package/expansion-packs/bmad-creative-writing/tasks/critical-review.md +26 -0
- package/expansion-packs/bmad-creative-writing/tasks/develop-character.md +24 -0
- package/expansion-packs/bmad-creative-writing/tasks/execute-checklist.md +88 -0
- package/expansion-packs/bmad-creative-writing/tasks/expand-premise.md +23 -0
- package/expansion-packs/bmad-creative-writing/tasks/expand-synopsis.md +23 -0
- package/expansion-packs/bmad-creative-writing/tasks/final-polish.md +23 -0
- package/expansion-packs/bmad-creative-writing/tasks/generate-cover-brief.md +25 -0
- package/expansion-packs/bmad-creative-writing/tasks/generate-cover-prompts.md +26 -0
- package/expansion-packs/bmad-creative-writing/tasks/generate-scene-list.md +23 -0
- package/expansion-packs/bmad-creative-writing/tasks/incorporate-feedback.md +25 -0
- package/expansion-packs/bmad-creative-writing/tasks/outline-scenes.md +23 -0
- package/expansion-packs/bmad-creative-writing/tasks/provide-feedback.md +24 -0
- package/expansion-packs/bmad-creative-writing/tasks/publish-chapter.md +23 -0
- package/expansion-packs/bmad-creative-writing/tasks/quick-feedback.md +22 -0
- package/expansion-packs/bmad-creative-writing/tasks/select-next-arc.md +23 -0
- package/expansion-packs/bmad-creative-writing/tasks/workshop-dialog.md +64 -0
- package/expansion-packs/bmad-creative-writing/templates/beta-feedback-form.yaml +97 -0
- package/expansion-packs/bmad-creative-writing/templates/chapter-draft-tmpl.yaml +82 -0
- package/expansion-packs/bmad-creative-writing/templates/character-profile-tmpl.yaml +92 -0
- package/expansion-packs/bmad-creative-writing/templates/cover-design-brief-tmpl.yaml +98 -0
- package/expansion-packs/bmad-creative-writing/templates/premise-brief-tmpl.yaml +78 -0
- package/expansion-packs/bmad-creative-writing/templates/scene-list-tmpl.yaml +55 -0
- package/expansion-packs/bmad-creative-writing/templates/story-outline-tmpl.yaml +96 -0
- package/expansion-packs/bmad-creative-writing/templates/world-guide-tmpl.yaml +89 -0
- package/expansion-packs/bmad-creative-writing/workflows/book-cover-design-workflow.md +218 -0
- package/expansion-packs/bmad-creative-writing/workflows/novel-greenfield-workflow.yaml +56 -0
- package/expansion-packs/bmad-creative-writing/workflows/novel-serial-workflow.yaml +50 -0
- package/expansion-packs/bmad-creative-writing/workflows/novel-snowflake-workflow.yaml +69 -0
- package/expansion-packs/bmad-creative-writing/workflows/novel-writing.yaml +91 -0
- package/expansion-packs/bmad-creative-writing/workflows/screenplay-development.yaml +85 -0
- package/expansion-packs/bmad-creative-writing/workflows/series-planning.yaml +78 -0
- package/expansion-packs/bmad-creative-writing/workflows/short-story-creation.yaml +64 -0
- package/expansion-packs/bmad-infrastructure-devops/README.md +147 -0
- package/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.md +73 -0
- package/expansion-packs/bmad-infrastructure-devops/checklists/infrastructure-checklist.md +486 -0
- package/expansion-packs/bmad-infrastructure-devops/config.yaml +10 -0
- package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +307 -0
- package/expansion-packs/bmad-infrastructure-devops/tasks/review-infrastructure.md +161 -0
- package/expansion-packs/bmad-infrastructure-devops/tasks/validate-infrastructure.md +155 -0
- package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +425 -0
- package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +630 -0
- package/implement-fork-friendly-ci.sh +229 -0
- package/package.json +75 -45
- package/prettier.config.mjs +32 -0
- package/test.md +1 -0
- package/tools/builders/web-builder.js +128 -129
- package/tools/bump-all-versions.js +42 -33
- package/tools/bump-expansion-version.js +23 -16
- package/tools/cli.js +15 -15
- 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 +458 -460
- 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 +1 -1
- package/tools/installer/bin/xiaoma.js +377 -137
- package/tools/installer/config/ide-agent-config.yaml +3 -3
- package/tools/installer/config/install.config.yaml +73 -22
- package/tools/installer/lib/config-loader.js +48 -44
- package/tools/installer/lib/file-manager.js +91 -116
- package/tools/installer/lib/ide-base-setup.js +57 -56
- package/tools/installer/lib/ide-setup.js +816 -407
- package/tools/installer/lib/installer.js +915 -690
- package/tools/installer/lib/memory-profiler.js +54 -53
- package/tools/installer/lib/module-manager.js +19 -15
- package/tools/installer/lib/resource-locator.js +26 -28
- package/tools/installer/package-lock.json +67 -56
- package/tools/installer/package.json +24 -23
- package/tools/lib/dependency-resolver.js +30 -34
- package/tools/lib/yaml-utils.js +7 -7
- package/tools/md-assets/web-agent-startup-instructions.md +1 -1
- package/tools/preview-release-notes.js +66 -0
- package/tools/setup-hooks.sh +37 -0
- package/tools/shared/bannerArt.js +105 -0
- package/tools/sync-installer-version.js +7 -9
- package/tools/sync-version.sh +23 -0
- package/tools/update-expansion-version.js +14 -15
- package/tools/upgraders/v3-to-v4-upgrader.js +208 -299
- package/tools/version-bump.js +41 -26
- package/tools/xiaoma-npx-wrapper.js +11 -11
- package/tools/yaml-format.js +56 -43
- package/xiaoma-core/agent-teams/team-all.yaml +2 -1
- package/xiaoma-core/agent-teams/team-fullstack.yaml +1 -0
- package/xiaoma-core/agent-teams/team-ide-minimal.yaml +1 -0
- package/xiaoma-core/agent-teams/team-no-ui.yaml +1 -0
- package/xiaoma-core/agents/analyst.md +20 -17
- package/xiaoma-core/agents/architect.md +15 -14
- package/xiaoma-core/agents/dev.md +23 -18
- package/xiaoma-core/agents/pm.md +18 -15
- package/xiaoma-core/agents/po.md +13 -10
- package/xiaoma-core/agents/qa.md +46 -24
- package/xiaoma-core/agents/sm.md +11 -8
- package/xiaoma-core/agents/ux-expert.md +10 -7
- package/xiaoma-core/agents/xiaoma-master.md +24 -22
- package/xiaoma-core/agents/xiaoma-orchestrator.md +30 -33
- package/xiaoma-core/checklists/architect-checklist.md +2 -5
- package/xiaoma-core/checklists/change-checklist.md +4 -2
- package/xiaoma-core/checklists/pm-checklist.md +2 -5
- package/xiaoma-core/checklists/po-master-checklist.md +2 -9
- package/xiaoma-core/checklists/story-dod-checklist.md +2 -7
- package/xiaoma-core/checklists/story-draft-checklist.md +2 -3
- package/xiaoma-core/core-config.yaml +4 -1
- package/xiaoma-core/data/{xiaoma-kb.md → bmad-kb.md} +43 -37
- package/xiaoma-core/data/brainstorming-techniques.md +2 -0
- package/xiaoma-core/data/elicitation-methods.md +22 -0
- package/xiaoma-core/data/technical-preferences.md +2 -0
- package/xiaoma-core/data/test-levels-framework.md +148 -0
- package/xiaoma-core/data/test-priorities-matrix.md +174 -0
- package/xiaoma-core/tasks/advanced-elicitation.md +2 -0
- package/xiaoma-core/tasks/apply-qa-fixes.md +150 -0
- package/xiaoma-core/tasks/brownfield-create-epic.md +2 -0
- package/xiaoma-core/tasks/brownfield-create-story.md +2 -0
- package/xiaoma-core/tasks/correct-course.md +2 -0
- package/xiaoma-core/tasks/create-brownfield-story.md +14 -4
- package/xiaoma-core/tasks/create-deep-research-prompt.md +2 -11
- package/xiaoma-core/tasks/create-next-story.md +3 -1
- package/xiaoma-core/tasks/document-project.md +17 -13
- package/xiaoma-core/tasks/facilitate-brainstorming-session.md +5 -3
- package/xiaoma-core/tasks/generate-ai-frontend-prompt.md +2 -0
- package/xiaoma-core/tasks/index-docs.md +2 -6
- package/xiaoma-core/tasks/kb-mode-interaction.md +17 -15
- package/xiaoma-core/tasks/nfr-assess.md +345 -0
- package/xiaoma-core/tasks/qa-gate.md +163 -0
- package/xiaoma-core/tasks/review-story.md +245 -74
- package/xiaoma-core/tasks/risk-profile.md +355 -0
- package/xiaoma-core/tasks/shard-doc.md +2 -2
- package/xiaoma-core/tasks/test-design.md +176 -0
- package/xiaoma-core/tasks/trace-requirements.md +266 -0
- package/xiaoma-core/tasks/validate-next-story.md +2 -0
- package/xiaoma-core/templates/architecture-tmpl.yaml +50 -49
- package/xiaoma-core/templates/brainstorming-output-tmpl.yaml +5 -5
- package/xiaoma-core/templates/brownfield-architecture-tmpl.yaml +32 -31
- package/xiaoma-core/templates/brownfield-prd-tmpl.yaml +14 -13
- package/xiaoma-core/templates/competitor-analysis-tmpl.yaml +20 -6
- package/xiaoma-core/templates/front-end-architecture-tmpl.yaml +22 -9
- package/xiaoma-core/templates/front-end-spec-tmpl.yaml +25 -24
- package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +123 -104
- package/xiaoma-core/templates/market-research-tmpl.yaml +3 -2
- package/xiaoma-core/templates/prd-tmpl.yaml +10 -9
- package/xiaoma-core/templates/project-brief-tmpl.yaml +5 -4
- package/xiaoma-core/templates/qa-gate-tmpl.yaml +103 -0
- package/xiaoma-core/templates/story-tmpl.yaml +13 -12
- package/xiaoma-core/workflows/brownfield-fullstack.yaml +13 -12
- package/xiaoma-core/workflows/brownfield-service.yaml +5 -4
- package/xiaoma-core/workflows/brownfield-ui.yaml +5 -4
- package/xiaoma-core/workflows/greenfield-fullstack.yaml +7 -6
- package/xiaoma-core/workflows/greenfield-service.yaml +5 -4
- package/xiaoma-core/workflows/greenfield-ui.yaml +6 -5
- package/.releaserc.json +0 -18
- package/.vscode/settings.json +0 -44
- package/XiaoMa-Web/345/244/232/346/231/272/350/203/275/344/275/2230-1/351/241/271/347/233/256/345/274/200/345/217/221/345/256/214/346/225/264/346/214/207/345/215/227.md +0 -977
- package/XiaoMa-Web/347/216/260/346/234/211/351/241/271/347/233/256/351/234/200/346/261/202/345/274/200/345/217/221/345/256/214/346/225/264/346/214/207/345/215/227.md +0 -873
- package/XiaoMa-Web/347/272/257/345/211/215/347/253/257/351/241/271/347/233/256Claude-Code/345/274/200/345/217/221/345/256/214/346/225/264/346/214/207/345/215/227.md +0 -372
- package/XiaoMa-Web/351/241/271/347/233/256/346/200/273/347/273/223/346/212/245/345/221/212.md +0 -310
- package/dist/agents/dev-cn.txt +0 -428
- package/docs/quick-start.md +0 -179
- package/tools/bmad-npx-wrapper.js +0 -39
- package/tools/semantic-release-sync-installer.js +0 -30
- package/xiaoma-core/bmad-core/user-guide.md +0 -0
- package/xiaoma-core/enhanced-ide-development-workflow.md +0 -43
- package/xiaoma-core/user-guide.md +0 -251
- package/xiaoma-core/working-in-the-brownfield.md +0 -364
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
<!-- Powered by BMAD™ Core -->
|
|
2
|
+
|
|
3
|
+
# Test Levels Framework
|
|
4
|
+
|
|
5
|
+
Comprehensive guide for determining appropriate test levels (unit, integration, E2E) for different scenarios.
|
|
6
|
+
|
|
7
|
+
## Test Level Decision Matrix
|
|
8
|
+
|
|
9
|
+
### Unit Tests
|
|
10
|
+
|
|
11
|
+
**When to use:**
|
|
12
|
+
|
|
13
|
+
- Testing pure functions and business logic
|
|
14
|
+
- Algorithm correctness
|
|
15
|
+
- Input validation and data transformation
|
|
16
|
+
- Error handling in isolated components
|
|
17
|
+
- Complex calculations or state machines
|
|
18
|
+
|
|
19
|
+
**Characteristics:**
|
|
20
|
+
|
|
21
|
+
- Fast execution (immediate feedback)
|
|
22
|
+
- No external dependencies (DB, API, file system)
|
|
23
|
+
- Highly maintainable and stable
|
|
24
|
+
- Easy to debug failures
|
|
25
|
+
|
|
26
|
+
**Example scenarios:**
|
|
27
|
+
|
|
28
|
+
```yaml
|
|
29
|
+
unit_test:
|
|
30
|
+
component: 'PriceCalculator'
|
|
31
|
+
scenario: 'Calculate discount with multiple rules'
|
|
32
|
+
justification: 'Complex business logic with multiple branches'
|
|
33
|
+
mock_requirements: 'None - pure function'
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Integration Tests
|
|
37
|
+
|
|
38
|
+
**When to use:**
|
|
39
|
+
|
|
40
|
+
- Component interaction verification
|
|
41
|
+
- Database operations and transactions
|
|
42
|
+
- API endpoint contracts
|
|
43
|
+
- Service-to-service communication
|
|
44
|
+
- Middleware and interceptor behavior
|
|
45
|
+
|
|
46
|
+
**Characteristics:**
|
|
47
|
+
|
|
48
|
+
- Moderate execution time
|
|
49
|
+
- Tests component boundaries
|
|
50
|
+
- May use test databases or containers
|
|
51
|
+
- Validates system integration points
|
|
52
|
+
|
|
53
|
+
**Example scenarios:**
|
|
54
|
+
|
|
55
|
+
```yaml
|
|
56
|
+
integration_test:
|
|
57
|
+
components: ['UserService', 'AuthRepository']
|
|
58
|
+
scenario: 'Create user with role assignment'
|
|
59
|
+
justification: 'Critical data flow between service and persistence'
|
|
60
|
+
test_environment: 'In-memory database'
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### End-to-End Tests
|
|
64
|
+
|
|
65
|
+
**When to use:**
|
|
66
|
+
|
|
67
|
+
- Critical user journeys
|
|
68
|
+
- Cross-system workflows
|
|
69
|
+
- Visual regression testing
|
|
70
|
+
- Compliance and regulatory requirements
|
|
71
|
+
- Final validation before release
|
|
72
|
+
|
|
73
|
+
**Characteristics:**
|
|
74
|
+
|
|
75
|
+
- Slower execution
|
|
76
|
+
- Tests complete workflows
|
|
77
|
+
- Requires full environment setup
|
|
78
|
+
- Most realistic but most brittle
|
|
79
|
+
|
|
80
|
+
**Example scenarios:**
|
|
81
|
+
|
|
82
|
+
```yaml
|
|
83
|
+
e2e_test:
|
|
84
|
+
journey: 'Complete checkout process'
|
|
85
|
+
scenario: 'User purchases with saved payment method'
|
|
86
|
+
justification: 'Revenue-critical path requiring full validation'
|
|
87
|
+
environment: 'Staging with test payment gateway'
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Test Level Selection Rules
|
|
91
|
+
|
|
92
|
+
### Favor Unit Tests When:
|
|
93
|
+
|
|
94
|
+
- Logic can be isolated
|
|
95
|
+
- No side effects involved
|
|
96
|
+
- Fast feedback needed
|
|
97
|
+
- High cyclomatic complexity
|
|
98
|
+
|
|
99
|
+
### Favor Integration Tests When:
|
|
100
|
+
|
|
101
|
+
- Testing persistence layer
|
|
102
|
+
- Validating service contracts
|
|
103
|
+
- Testing middleware/interceptors
|
|
104
|
+
- Component boundaries critical
|
|
105
|
+
|
|
106
|
+
### Favor E2E Tests When:
|
|
107
|
+
|
|
108
|
+
- User-facing critical paths
|
|
109
|
+
- Multi-system interactions
|
|
110
|
+
- Regulatory compliance scenarios
|
|
111
|
+
- Visual regression important
|
|
112
|
+
|
|
113
|
+
## Anti-patterns to Avoid
|
|
114
|
+
|
|
115
|
+
- E2E testing for business logic validation
|
|
116
|
+
- Unit testing framework behavior
|
|
117
|
+
- Integration testing third-party libraries
|
|
118
|
+
- Duplicate coverage across levels
|
|
119
|
+
|
|
120
|
+
## Duplicate Coverage Guard
|
|
121
|
+
|
|
122
|
+
**Before adding any test, check:**
|
|
123
|
+
|
|
124
|
+
1. Is this already tested at a lower level?
|
|
125
|
+
2. Can a unit test cover this instead of integration?
|
|
126
|
+
3. Can an integration test cover this instead of E2E?
|
|
127
|
+
|
|
128
|
+
**Coverage overlap is only acceptable when:**
|
|
129
|
+
|
|
130
|
+
- Testing different aspects (unit: logic, integration: interaction, e2e: user experience)
|
|
131
|
+
- Critical paths requiring defense in depth
|
|
132
|
+
- Regression prevention for previously broken functionality
|
|
133
|
+
|
|
134
|
+
## Test Naming Conventions
|
|
135
|
+
|
|
136
|
+
- Unit: `test_{component}_{scenario}`
|
|
137
|
+
- Integration: `test_{flow}_{interaction}`
|
|
138
|
+
- E2E: `test_{journey}_{outcome}`
|
|
139
|
+
|
|
140
|
+
## Test ID Format
|
|
141
|
+
|
|
142
|
+
`{EPIC}.{STORY}-{LEVEL}-{SEQ}`
|
|
143
|
+
|
|
144
|
+
Examples:
|
|
145
|
+
|
|
146
|
+
- `1.3-UNIT-001`
|
|
147
|
+
- `1.3-INT-002`
|
|
148
|
+
- `1.3-E2E-001`
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
<!-- Powered by BMAD™ Core -->
|
|
2
|
+
|
|
3
|
+
# Test Priorities Matrix
|
|
4
|
+
|
|
5
|
+
Guide for prioritizing test scenarios based on risk, criticality, and business impact.
|
|
6
|
+
|
|
7
|
+
## Priority Levels
|
|
8
|
+
|
|
9
|
+
### P0 - Critical (Must Test)
|
|
10
|
+
|
|
11
|
+
**Criteria:**
|
|
12
|
+
|
|
13
|
+
- Revenue-impacting functionality
|
|
14
|
+
- Security-critical paths
|
|
15
|
+
- Data integrity operations
|
|
16
|
+
- Regulatory compliance requirements
|
|
17
|
+
- Previously broken functionality (regression prevention)
|
|
18
|
+
|
|
19
|
+
**Examples:**
|
|
20
|
+
|
|
21
|
+
- Payment processing
|
|
22
|
+
- Authentication/authorization
|
|
23
|
+
- User data creation/deletion
|
|
24
|
+
- Financial calculations
|
|
25
|
+
- GDPR/privacy compliance
|
|
26
|
+
|
|
27
|
+
**Testing Requirements:**
|
|
28
|
+
|
|
29
|
+
- Comprehensive coverage at all levels
|
|
30
|
+
- Both happy and unhappy paths
|
|
31
|
+
- Edge cases and error scenarios
|
|
32
|
+
- Performance under load
|
|
33
|
+
|
|
34
|
+
### P1 - High (Should Test)
|
|
35
|
+
|
|
36
|
+
**Criteria:**
|
|
37
|
+
|
|
38
|
+
- Core user journeys
|
|
39
|
+
- Frequently used features
|
|
40
|
+
- Features with complex logic
|
|
41
|
+
- Integration points between systems
|
|
42
|
+
- Features affecting user experience
|
|
43
|
+
|
|
44
|
+
**Examples:**
|
|
45
|
+
|
|
46
|
+
- User registration flow
|
|
47
|
+
- Search functionality
|
|
48
|
+
- Data import/export
|
|
49
|
+
- Notification systems
|
|
50
|
+
- Dashboard displays
|
|
51
|
+
|
|
52
|
+
**Testing Requirements:**
|
|
53
|
+
|
|
54
|
+
- Primary happy paths required
|
|
55
|
+
- Key error scenarios
|
|
56
|
+
- Critical edge cases
|
|
57
|
+
- Basic performance validation
|
|
58
|
+
|
|
59
|
+
### P2 - Medium (Nice to Test)
|
|
60
|
+
|
|
61
|
+
**Criteria:**
|
|
62
|
+
|
|
63
|
+
- Secondary features
|
|
64
|
+
- Admin functionality
|
|
65
|
+
- Reporting features
|
|
66
|
+
- Configuration options
|
|
67
|
+
- UI polish and aesthetics
|
|
68
|
+
|
|
69
|
+
**Examples:**
|
|
70
|
+
|
|
71
|
+
- Admin settings panels
|
|
72
|
+
- Report generation
|
|
73
|
+
- Theme customization
|
|
74
|
+
- Help documentation
|
|
75
|
+
- Analytics tracking
|
|
76
|
+
|
|
77
|
+
**Testing Requirements:**
|
|
78
|
+
|
|
79
|
+
- Happy path coverage
|
|
80
|
+
- Basic error handling
|
|
81
|
+
- Can defer edge cases
|
|
82
|
+
|
|
83
|
+
### P3 - Low (Test if Time Permits)
|
|
84
|
+
|
|
85
|
+
**Criteria:**
|
|
86
|
+
|
|
87
|
+
- Rarely used features
|
|
88
|
+
- Nice-to-have functionality
|
|
89
|
+
- Cosmetic issues
|
|
90
|
+
- Non-critical optimizations
|
|
91
|
+
|
|
92
|
+
**Examples:**
|
|
93
|
+
|
|
94
|
+
- Advanced preferences
|
|
95
|
+
- Legacy feature support
|
|
96
|
+
- Experimental features
|
|
97
|
+
- Debug utilities
|
|
98
|
+
|
|
99
|
+
**Testing Requirements:**
|
|
100
|
+
|
|
101
|
+
- Smoke tests only
|
|
102
|
+
- Can rely on manual testing
|
|
103
|
+
- Document known limitations
|
|
104
|
+
|
|
105
|
+
## Risk-Based Priority Adjustments
|
|
106
|
+
|
|
107
|
+
### Increase Priority When:
|
|
108
|
+
|
|
109
|
+
- High user impact (affects >50% of users)
|
|
110
|
+
- High financial impact (>$10K potential loss)
|
|
111
|
+
- Security vulnerability potential
|
|
112
|
+
- Compliance/legal requirements
|
|
113
|
+
- Customer-reported issues
|
|
114
|
+
- Complex implementation (>500 LOC)
|
|
115
|
+
- Multiple system dependencies
|
|
116
|
+
|
|
117
|
+
### Decrease Priority When:
|
|
118
|
+
|
|
119
|
+
- Feature flag protected
|
|
120
|
+
- Gradual rollout planned
|
|
121
|
+
- Strong monitoring in place
|
|
122
|
+
- Easy rollback capability
|
|
123
|
+
- Low usage metrics
|
|
124
|
+
- Simple implementation
|
|
125
|
+
- Well-isolated component
|
|
126
|
+
|
|
127
|
+
## Test Coverage by Priority
|
|
128
|
+
|
|
129
|
+
| Priority | Unit Coverage | Integration Coverage | E2E Coverage |
|
|
130
|
+
| -------- | ------------- | -------------------- | ------------------ |
|
|
131
|
+
| P0 | >90% | >80% | All critical paths |
|
|
132
|
+
| P1 | >80% | >60% | Main happy paths |
|
|
133
|
+
| P2 | >60% | >40% | Smoke tests |
|
|
134
|
+
| P3 | Best effort | Best effort | Manual only |
|
|
135
|
+
|
|
136
|
+
## Priority Assignment Rules
|
|
137
|
+
|
|
138
|
+
1. **Start with business impact** - What happens if this fails?
|
|
139
|
+
2. **Consider probability** - How likely is failure?
|
|
140
|
+
3. **Factor in detectability** - Would we know if it failed?
|
|
141
|
+
4. **Account for recoverability** - Can we fix it quickly?
|
|
142
|
+
|
|
143
|
+
## Priority Decision Tree
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
Is it revenue-critical?
|
|
147
|
+
├─ YES → P0
|
|
148
|
+
└─ NO → Does it affect core user journey?
|
|
149
|
+
├─ YES → Is it high-risk?
|
|
150
|
+
│ ├─ YES → P0
|
|
151
|
+
│ └─ NO → P1
|
|
152
|
+
└─ NO → Is it frequently used?
|
|
153
|
+
├─ YES → P1
|
|
154
|
+
└─ NO → Is it customer-facing?
|
|
155
|
+
├─ YES → P2
|
|
156
|
+
└─ NO → P3
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Test Execution Order
|
|
160
|
+
|
|
161
|
+
1. Execute P0 tests first (fail fast on critical issues)
|
|
162
|
+
2. Execute P1 tests second (core functionality)
|
|
163
|
+
3. Execute P2 tests if time permits
|
|
164
|
+
4. P3 tests only in full regression cycles
|
|
165
|
+
|
|
166
|
+
## Continuous Adjustment
|
|
167
|
+
|
|
168
|
+
Review and adjust priorities based on:
|
|
169
|
+
|
|
170
|
+
- Production incident patterns
|
|
171
|
+
- User feedback and complaints
|
|
172
|
+
- Usage analytics
|
|
173
|
+
- Test failure history
|
|
174
|
+
- Business priority changes
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
<!-- Powered by BMAD™ Core -->
|
|
2
|
+
|
|
3
|
+
# apply-qa-fixes
|
|
4
|
+
|
|
5
|
+
Implement fixes based on QA results (gate and assessments) for a specific story. This task is for the Dev agent to systematically consume QA outputs and apply code/test changes while only updating allowed sections in the story file.
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
- Read QA outputs for a story (gate YAML + assessment markdowns)
|
|
10
|
+
- Create a prioritized, deterministic fix plan
|
|
11
|
+
- Apply code and test changes to close gaps and address issues
|
|
12
|
+
- Update only the allowed story sections for the Dev agent
|
|
13
|
+
|
|
14
|
+
## Inputs
|
|
15
|
+
|
|
16
|
+
```yaml
|
|
17
|
+
required:
|
|
18
|
+
- story_id: '{epic}.{story}' # e.g., "2.2"
|
|
19
|
+
- qa_root: from `xiaoma-core/core-config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
|
|
20
|
+
- story_root: from `xiaoma-core/core-config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
|
|
21
|
+
|
|
22
|
+
optional:
|
|
23
|
+
- story_title: '{title}' # derive from story H1 if missing
|
|
24
|
+
- story_slug: '{slug}' # derive from title (lowercase, hyphenated) if missing
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## QA Sources to Read
|
|
28
|
+
|
|
29
|
+
- Gate (YAML): `{qa_root}/gates/{epic}.{story}-*.yml`
|
|
30
|
+
- If multiple, use the most recent by modified time
|
|
31
|
+
- Assessments (Markdown):
|
|
32
|
+
- Test Design: `{qa_root}/assessments/{epic}.{story}-test-design-*.md`
|
|
33
|
+
- Traceability: `{qa_root}/assessments/{epic}.{story}-trace-*.md`
|
|
34
|
+
- Risk Profile: `{qa_root}/assessments/{epic}.{story}-risk-*.md`
|
|
35
|
+
- NFR Assessment: `{qa_root}/assessments/{epic}.{story}-nfr-*.md`
|
|
36
|
+
|
|
37
|
+
## Prerequisites
|
|
38
|
+
|
|
39
|
+
- Repository builds and tests run locally (Deno 2)
|
|
40
|
+
- Lint and test commands available:
|
|
41
|
+
- `deno lint`
|
|
42
|
+
- `deno test -A`
|
|
43
|
+
|
|
44
|
+
## Process (Do not skip steps)
|
|
45
|
+
|
|
46
|
+
### 0) Load Core Config & Locate Story
|
|
47
|
+
|
|
48
|
+
- Read `xiaoma-core/core-config.yaml` and resolve `qa_root` and `story_root`
|
|
49
|
+
- Locate story file in `{story_root}/{epic}.{story}.*.md`
|
|
50
|
+
- HALT if missing and ask for correct story id/path
|
|
51
|
+
|
|
52
|
+
### 1) Collect QA Findings
|
|
53
|
+
|
|
54
|
+
- Parse the latest gate YAML:
|
|
55
|
+
- `gate` (PASS|CONCERNS|FAIL|WAIVED)
|
|
56
|
+
- `top_issues[]` with `id`, `severity`, `finding`, `suggested_action`
|
|
57
|
+
- `nfr_validation.*.status` and notes
|
|
58
|
+
- `trace` coverage summary/gaps
|
|
59
|
+
- `test_design.coverage_gaps[]`
|
|
60
|
+
- `risk_summary.recommendations.must_fix[]` (if present)
|
|
61
|
+
- Read any present assessment markdowns and extract explicit gaps/recommendations
|
|
62
|
+
|
|
63
|
+
### 2) Build Deterministic Fix Plan (Priority Order)
|
|
64
|
+
|
|
65
|
+
Apply in order, highest priority first:
|
|
66
|
+
|
|
67
|
+
1. High severity items in `top_issues` (security/perf/reliability/maintainability)
|
|
68
|
+
2. NFR statuses: all FAIL must be fixed → then CONCERNS
|
|
69
|
+
3. Test Design `coverage_gaps` (prioritize P0 scenarios if specified)
|
|
70
|
+
4. Trace uncovered requirements (AC-level)
|
|
71
|
+
5. Risk `must_fix` recommendations
|
|
72
|
+
6. Medium severity issues, then low
|
|
73
|
+
|
|
74
|
+
Guidance:
|
|
75
|
+
|
|
76
|
+
- Prefer tests closing coverage gaps before/with code changes
|
|
77
|
+
- Keep changes minimal and targeted; follow project architecture and TS/Deno rules
|
|
78
|
+
|
|
79
|
+
### 3) Apply Changes
|
|
80
|
+
|
|
81
|
+
- Implement code fixes per plan
|
|
82
|
+
- Add missing tests to close coverage gaps (unit first; integration where required by AC)
|
|
83
|
+
- Keep imports centralized via `deps.ts` (see `docs/project/typescript-rules.md`)
|
|
84
|
+
- Follow DI boundaries in `src/core/di.ts` and existing patterns
|
|
85
|
+
|
|
86
|
+
### 4) Validate
|
|
87
|
+
|
|
88
|
+
- Run `deno lint` and fix issues
|
|
89
|
+
- Run `deno test -A` until all tests pass
|
|
90
|
+
- Iterate until clean
|
|
91
|
+
|
|
92
|
+
### 5) Update Story (Allowed Sections ONLY)
|
|
93
|
+
|
|
94
|
+
CRITICAL: Dev agent is ONLY authorized to update these sections of the story file. Do not modify any other sections (e.g., QA Results, Story, Acceptance Criteria, Dev Notes, Testing):
|
|
95
|
+
|
|
96
|
+
- Tasks / Subtasks Checkboxes (mark any fix subtask you added as done)
|
|
97
|
+
- Dev Agent Record →
|
|
98
|
+
- Agent Model Used (if changed)
|
|
99
|
+
- Debug Log References (commands/results, e.g., lint/tests)
|
|
100
|
+
- Completion Notes List (what changed, why, how)
|
|
101
|
+
- File List (all added/modified/deleted files)
|
|
102
|
+
- Change Log (new dated entry describing applied fixes)
|
|
103
|
+
- Status (see Rule below)
|
|
104
|
+
|
|
105
|
+
Status Rule:
|
|
106
|
+
|
|
107
|
+
- If gate was PASS and all identified gaps are closed → set `Status: Ready for Done`
|
|
108
|
+
- Otherwise → set `Status: Ready for Review` and notify QA to re-run the review
|
|
109
|
+
|
|
110
|
+
### 6) Do NOT Edit Gate Files
|
|
111
|
+
|
|
112
|
+
- Dev does not modify gate YAML. If fixes address issues, request QA to re-run `review-story` to update the gate
|
|
113
|
+
|
|
114
|
+
## Blocking Conditions
|
|
115
|
+
|
|
116
|
+
- Missing `xiaoma-core/core-config.yaml`
|
|
117
|
+
- Story file not found for `story_id`
|
|
118
|
+
- No QA artifacts found (neither gate nor assessments)
|
|
119
|
+
- HALT and request QA to generate at least a gate file (or proceed only with clear developer-provided fix list)
|
|
120
|
+
|
|
121
|
+
## Completion Checklist
|
|
122
|
+
|
|
123
|
+
- deno lint: 0 problems
|
|
124
|
+
- deno test -A: all tests pass
|
|
125
|
+
- All high severity `top_issues` addressed
|
|
126
|
+
- NFR FAIL → resolved; CONCERNS minimized or documented
|
|
127
|
+
- Coverage gaps closed or explicitly documented with rationale
|
|
128
|
+
- Story updated (allowed sections only) including File List and Change Log
|
|
129
|
+
- Status set according to Status Rule
|
|
130
|
+
|
|
131
|
+
## Example: Story 2.2
|
|
132
|
+
|
|
133
|
+
Given gate `docs/project/qa/gates/2.2-*.yml` shows
|
|
134
|
+
|
|
135
|
+
- `coverage_gaps`: Back action behavior untested (AC2)
|
|
136
|
+
- `coverage_gaps`: Centralized dependencies enforcement untested (AC4)
|
|
137
|
+
|
|
138
|
+
Fix plan:
|
|
139
|
+
|
|
140
|
+
- Add a test ensuring the Toolkit Menu "Back" action returns to Main Menu
|
|
141
|
+
- Add a static test verifying imports for service/view go through `deps.ts`
|
|
142
|
+
- Re-run lint/tests and update Dev Agent Record + File List accordingly
|
|
143
|
+
|
|
144
|
+
## Key Principles
|
|
145
|
+
|
|
146
|
+
- Deterministic, risk-first prioritization
|
|
147
|
+
- Minimal, maintainable changes
|
|
148
|
+
- Tests validate behavior and close gaps
|
|
149
|
+
- Strict adherence to allowed story update areas
|
|
150
|
+
- Gate ownership remains with QA; Dev signals readiness via Status
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<!-- Powered by BMAD™ Core -->
|
|
2
|
+
|
|
1
3
|
# Create Brownfield Story Task
|
|
2
4
|
|
|
3
5
|
## Purpose
|
|
@@ -11,7 +13,7 @@ Create detailed, implementation-ready stories for brownfield projects where trad
|
|
|
11
13
|
- Working on brownfield projects with non-standard documentation
|
|
12
14
|
- Stories need to be created from document-project output
|
|
13
15
|
- Working from brownfield epics without full PRD/architecture
|
|
14
|
-
- Existing project documentation doesn't follow
|
|
16
|
+
- Existing project documentation doesn't follow BMad v4+ structure
|
|
15
17
|
- Need to gather additional context from user during story creation
|
|
16
18
|
|
|
17
19
|
**Use create-next-story when:**
|
|
@@ -128,7 +130,7 @@ Critical: For brownfield, ALWAYS include criteria about maintaining existing fun
|
|
|
128
130
|
Standard structure:
|
|
129
131
|
|
|
130
132
|
1. New functionality works as specified
|
|
131
|
-
2. Existing {{affected feature}} continues to work unchanged
|
|
133
|
+
2. Existing {{affected feature}} continues to work unchanged
|
|
132
134
|
3. Integration with {{existing system}} maintains current behavior
|
|
133
135
|
4. No regression in {{related area}}
|
|
134
136
|
5. Performance remains within acceptable bounds
|
|
@@ -139,16 +141,19 @@ Critical: This is where you'll need to be interactive with the user if informati
|
|
|
139
141
|
|
|
140
142
|
Create Dev Technical Guidance section with available information:
|
|
141
143
|
|
|
142
|
-
|
|
144
|
+
````markdown
|
|
143
145
|
## Dev Technical Guidance
|
|
144
146
|
|
|
145
147
|
### Existing System Context
|
|
148
|
+
|
|
146
149
|
[Extract from available documentation]
|
|
147
150
|
|
|
148
151
|
### Integration Approach
|
|
152
|
+
|
|
149
153
|
[Based on patterns found or ask user]
|
|
150
154
|
|
|
151
155
|
### Technical Constraints
|
|
156
|
+
|
|
152
157
|
[From documentation or user input]
|
|
153
158
|
|
|
154
159
|
### Missing Information
|
|
@@ -191,6 +196,7 @@ Example task structure for brownfield:
|
|
|
191
196
|
- [ ] Integration test for {{integration point}}
|
|
192
197
|
- [ ] Update existing tests if needed
|
|
193
198
|
```
|
|
199
|
+
````
|
|
194
200
|
|
|
195
201
|
### 5. Risk Assessment and Mitigation
|
|
196
202
|
|
|
@@ -202,14 +208,17 @@ Add section for brownfield-specific risks:
|
|
|
202
208
|
## Risk Assessment
|
|
203
209
|
|
|
204
210
|
### Implementation Risks
|
|
211
|
+
|
|
205
212
|
- **Primary Risk**: {{main risk to existing system}}
|
|
206
213
|
- **Mitigation**: {{how to address}}
|
|
207
214
|
- **Verification**: {{how to confirm safety}}
|
|
208
215
|
|
|
209
216
|
### Rollback Plan
|
|
217
|
+
|
|
210
218
|
- {{Simple steps to undo changes if needed}}
|
|
211
219
|
|
|
212
220
|
### Safety Checks
|
|
221
|
+
|
|
213
222
|
- [ ] Existing {{feature}} tested before changes
|
|
214
223
|
- [ ] Changes can be feature-flagged or isolated
|
|
215
224
|
- [ ] Rollback procedure documented
|
|
@@ -252,6 +261,7 @@ Include header noting documentation context:
|
|
|
252
261
|
<!-- Context: Brownfield enhancement to {{existing system}} -->
|
|
253
262
|
|
|
254
263
|
## Status: Draft
|
|
264
|
+
|
|
255
265
|
[Rest of story content...]
|
|
256
266
|
```
|
|
257
267
|
|
|
@@ -272,7 +282,7 @@ Key Integration Points Identified:
|
|
|
272
282
|
Risks Noted:
|
|
273
283
|
- {{primary risk}}
|
|
274
284
|
|
|
275
|
-
{{If missing info}}:
|
|
285
|
+
{{If missing info}}:
|
|
276
286
|
Note: Some technical details were unclear. The story includes exploration tasks to gather needed information during implementation.
|
|
277
287
|
|
|
278
288
|
Next Steps:
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<!-- Powered by BMAD™ Core -->
|
|
2
|
+
|
|
1
3
|
# Create Deep Research Prompt Task
|
|
2
4
|
|
|
3
5
|
This task helps create comprehensive research prompts for various types of deep analysis. It can process inputs from brainstorming sessions, project briefs, market research, or specific research questions to generate targeted prompts for deeper investigation.
|
|
@@ -21,63 +23,54 @@ CRITICAL: First, help the user select the most appropriate research focus based
|
|
|
21
23
|
Present these numbered options to the user:
|
|
22
24
|
|
|
23
25
|
1. **Product Validation Research**
|
|
24
|
-
|
|
25
26
|
- Validate product hypotheses and market fit
|
|
26
27
|
- Test assumptions about user needs and solutions
|
|
27
28
|
- Assess technical and business feasibility
|
|
28
29
|
- Identify risks and mitigation strategies
|
|
29
30
|
|
|
30
31
|
2. **Market Opportunity Research**
|
|
31
|
-
|
|
32
32
|
- Analyze market size and growth potential
|
|
33
33
|
- Identify market segments and dynamics
|
|
34
34
|
- Assess market entry strategies
|
|
35
35
|
- Evaluate timing and market readiness
|
|
36
36
|
|
|
37
37
|
3. **User & Customer Research**
|
|
38
|
-
|
|
39
38
|
- Deep dive into user personas and behaviors
|
|
40
39
|
- Understand jobs-to-be-done and pain points
|
|
41
40
|
- Map customer journeys and touchpoints
|
|
42
41
|
- Analyze willingness to pay and value perception
|
|
43
42
|
|
|
44
43
|
4. **Competitive Intelligence Research**
|
|
45
|
-
|
|
46
44
|
- Detailed competitor analysis and positioning
|
|
47
45
|
- Feature and capability comparisons
|
|
48
46
|
- Business model and strategy analysis
|
|
49
47
|
- Identify competitive advantages and gaps
|
|
50
48
|
|
|
51
49
|
5. **Technology & Innovation Research**
|
|
52
|
-
|
|
53
50
|
- Assess technology trends and possibilities
|
|
54
51
|
- Evaluate technical approaches and architectures
|
|
55
52
|
- Identify emerging technologies and disruptions
|
|
56
53
|
- Analyze build vs. buy vs. partner options
|
|
57
54
|
|
|
58
55
|
6. **Industry & Ecosystem Research**
|
|
59
|
-
|
|
60
56
|
- Map industry value chains and dynamics
|
|
61
57
|
- Identify key players and relationships
|
|
62
58
|
- Analyze regulatory and compliance factors
|
|
63
59
|
- Understand partnership opportunities
|
|
64
60
|
|
|
65
61
|
7. **Strategic Options Research**
|
|
66
|
-
|
|
67
62
|
- Evaluate different strategic directions
|
|
68
63
|
- Assess business model alternatives
|
|
69
64
|
- Analyze go-to-market strategies
|
|
70
65
|
- Consider expansion and scaling paths
|
|
71
66
|
|
|
72
67
|
8. **Risk & Feasibility Research**
|
|
73
|
-
|
|
74
68
|
- Identify and assess various risk factors
|
|
75
69
|
- Evaluate implementation challenges
|
|
76
70
|
- Analyze resource requirements
|
|
77
71
|
- Consider regulatory and legal implications
|
|
78
72
|
|
|
79
73
|
9. **Custom Research Focus**
|
|
80
|
-
|
|
81
74
|
- User-defined research objectives
|
|
82
75
|
- Specialized domain investigation
|
|
83
76
|
- Cross-functional research needs
|
|
@@ -246,13 +239,11 @@ CRITICAL: collaborate with the user to develop specific, actionable research que
|
|
|
246
239
|
### 5. Review and Refinement
|
|
247
240
|
|
|
248
241
|
1. **Present Complete Prompt**
|
|
249
|
-
|
|
250
242
|
- Show the full research prompt
|
|
251
243
|
- Explain key elements and rationale
|
|
252
244
|
- Highlight any assumptions made
|
|
253
245
|
|
|
254
246
|
2. **Gather Feedback**
|
|
255
|
-
|
|
256
247
|
- Are the objectives clear and correct?
|
|
257
248
|
- Do the questions address all concerns?
|
|
258
249
|
- Is the scope appropriate?
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<!-- Powered by BMAD™ Core -->
|
|
2
|
+
|
|
1
3
|
# Create Next Story Task
|
|
2
4
|
|
|
3
5
|
## Purpose
|
|
@@ -9,7 +11,7 @@ To identify the next logical story based on project progress and epic definition
|
|
|
9
11
|
### 0. Load Core Configuration and Check Workflow
|
|
10
12
|
|
|
11
13
|
- 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 xiaoma-core/core-config.yaml and configure it for your project OR 2) Run the
|
|
14
|
+
- 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 xiaoma-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
15
|
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
|
|
14
16
|
|
|
15
17
|
### 1. Identify Next Story for Preparation
|