bmad-method 4.27.5 → 5.0.0
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/.bmad-core/agent-teams/team-all.yml +16 -0
- package/.bmad-core/agent-teams/team-fullstack.yml +26 -0
- package/.bmad-core/agent-teams/team-no-ui.yml +15 -0
- package/{bmad-core → .bmad-core}/agents/analyst.md +23 -30
- package/.bmad-core/agents/architect.md +66 -0
- package/.bmad-core/agents/bmad-master.md +104 -0
- package/.bmad-core/agents/bmad-orchestrator.md +81 -0
- package/.bmad-core/agents/dev.md +70 -0
- package/{bmad-core → .bmad-core}/agents/pm.md +24 -25
- package/{bmad-core → .bmad-core}/agents/po.md +24 -28
- package/.bmad-core/agents/qa.md +52 -0
- package/.bmad-core/agents/sm.md +55 -0
- package/.bmad-core/agents/ux-expert.md +66 -0
- package/{bmad-core → .bmad-core}/checklists/change-checklist.md +2 -2
- package/{bmad-core → .bmad-core}/checklists/story-draft-checklist.md +1 -1
- package/.bmad-core/data/bmad-kb.md +47 -0
- package/.bmad-core/schemas/agent-team-schema.yml +153 -0
- package/.bmad-core/tasks/advanced-elicitation.md +92 -0
- package/.bmad-core/tasks/brainstorming-techniques.md +238 -0
- package/.bmad-core/tasks/core-dump.md +74 -0
- package/{expansion-packs/bmad-creator-tools → .bmad-core}/tasks/create-agent.md +11 -9
- package/.bmad-core/tasks/create-doc.md +74 -0
- package/.bmad-core/tasks/create-expansion-pack.md +425 -0
- package/.bmad-core/tasks/create-next-story.md +206 -0
- package/.bmad-core/tasks/create-team.md +229 -0
- package/{bmad-core → .bmad-core}/tasks/doc-migration-task.md +9 -9
- package/{common → .bmad-core}/tasks/execute-checklist.md +6 -2
- package/.bmad-core/tasks/generate-ai-frontend-prompt.md +58 -0
- package/{bmad-core → .bmad-core}/tasks/index-docs.md +7 -3
- package/{bmad-core → .bmad-core}/tasks/shard-doc.md +7 -25
- package/.bmad-core/templates/agent-tmpl.md +58 -0
- package/.bmad-core/templates/architecture-tmpl.md +771 -0
- package/.bmad-core/templates/brownfield-architecture-tmpl.md +542 -0
- package/.bmad-core/templates/brownfield-prd-tmpl.md +240 -0
- package/.bmad-core/templates/competitor-analysis-tmpl.md +289 -0
- package/.bmad-core/templates/expansion-pack-plan-tmpl.md +91 -0
- package/.bmad-core/templates/front-end-architecture-tmpl.md +173 -0
- package/.bmad-core/templates/front-end-spec-tmpl.md +411 -0
- package/.bmad-core/templates/fullstack-architecture-tmpl.md +1016 -0
- package/.bmad-core/templates/market-research-tmpl.md +261 -0
- package/.bmad-core/templates/prd-tmpl.md +200 -0
- package/.bmad-core/templates/project-brief-tmpl.md +228 -0
- package/.bmad-core/templates/simple-project-prd-tmpl.md +461 -0
- package/.bmad-core/templates/story-tmpl.md +61 -0
- package/.bmad-core/templates/web-agent-startup-instructions-template.md +39 -0
- package/.bmad-core/utils/agent-switcher.ide.md +112 -0
- package/.bmad-core/utils/template-format.md +26 -0
- package/.bmad-core/utils/workflow-management.md +224 -0
- package/.bmad-core/web-bundles/agents/analyst.txt +1684 -0
- package/.bmad-core/web-bundles/agents/architect.txt +3584 -0
- package/.bmad-core/web-bundles/agents/bmad-master.txt +9491 -0
- package/.bmad-core/web-bundles/agents/bmad-orchestrator.txt +1466 -0
- package/{dist → .bmad-core/web-bundles}/agents/dev.txt +71 -179
- package/{dist → .bmad-core/web-bundles}/agents/pm.txt +1058 -624
- package/{dist → .bmad-core/web-bundles}/agents/po.txt +138 -337
- package/.bmad-core/web-bundles/agents/qa.txt +129 -0
- package/.bmad-core/web-bundles/agents/sm.txt +658 -0
- package/.bmad-core/web-bundles/agents/ux-expert.txt +1099 -0
- package/.bmad-core/web-bundles/teams/team-all.txt +10757 -0
- package/.bmad-core/web-bundles/teams/team-fullstack.txt +10109 -0
- package/.bmad-core/web-bundles/teams/team-no-ui.txt +8950 -0
- package/.bmad-core/workflows/brownfield-fullstack.yml +116 -0
- package/.bmad-core/workflows/brownfield-service.yml +117 -0
- package/.bmad-core/workflows/brownfield-ui.yml +127 -0
- package/{bmad-core/workflows/greenfield-fullstack.yaml → .bmad-core/workflows/greenfield-fullstack.yml} +77 -140
- package/.bmad-core/workflows/greenfield-service.yml +143 -0
- package/.bmad-core/workflows/greenfield-ui.yml +172 -0
- package/.claude/commands/analyst.md +63 -0
- package/.claude/commands/architect.md +70 -0
- package/.claude/commands/bmad-master.md +108 -0
- package/.claude/commands/bmad-orchestrator.md +85 -0
- package/.claude/commands/dev.md +74 -0
- package/.claude/commands/pm.md +63 -0
- package/.claude/commands/po.md +64 -0
- package/.claude/commands/qa.md +56 -0
- package/.claude/commands/sm.md +59 -0
- package/.claude/commands/ux-expert.md +70 -0
- package/.cursor/rules/analyst.mdc +77 -0
- package/.cursor/rules/architect.mdc +84 -0
- package/.cursor/rules/bmad-master.mdc +122 -0
- package/.cursor/rules/bmad-orchestrator.mdc +99 -0
- package/.cursor/rules/dev.mdc +88 -0
- package/.cursor/rules/pm.mdc +77 -0
- package/.cursor/rules/po.mdc +78 -0
- package/.cursor/rules/qa.mdc +70 -0
- package/.cursor/rules/sm.mdc +73 -0
- package/.cursor/rules/ux-expert.mdc +84 -0
- package/.roo/.roomodes +95 -0
- package/.roo/README.md +38 -0
- package/.vscode/extensions.json +6 -0
- package/.vscode/settings.json +75 -49
- package/.windsurf/rules/analyst.md +71 -0
- package/.windsurf/rules/architect.md +78 -0
- package/.windsurf/rules/bmad-master.md +116 -0
- package/.windsurf/rules/bmad-orchestrator.md +93 -0
- package/.windsurf/rules/dev.md +82 -0
- package/.windsurf/rules/pm.md +71 -0
- package/.windsurf/rules/po.md +72 -0
- package/.windsurf/rules/qa.md +64 -0
- package/.windsurf/rules/sm.md +67 -0
- package/.windsurf/rules/ux-expert.md +78 -0
- package/CHANGELOG.md +16 -452
- package/CONTRIBUTING.md +5 -168
- package/LICENSE +1 -1
- package/README.md +230 -77
- package/docs/bmad-workflow-guide.md +15 -19
- package/docs/claude-code-guide.md +119 -0
- package/docs/cursor-guide.md +127 -0
- package/docs/roo-code-guide.md +140 -0
- package/docs/sample-output/simple-fullstack-greenfield/prd.md +42 -0
- package/docs/versioning-and-releases.md +16 -8
- package/docs/versions.md +5 -4
- package/docs/windsurf-guide.md +127 -0
- package/expansion-packs/README.md +112 -2
- package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/README.md +9 -9
- package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/agents/infra-devops-platform.md +15 -15
- package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/checklists/infrastructure-checklist.md +1 -1
- package/expansion-packs/infrastructure-devops/manifest.yml +38 -0
- package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/tasks/review-infrastructure.md +4 -4
- package/expansion-packs/{bmad-infrastructure-devops → infrastructure-devops}/tasks/validate-infrastructure.md +4 -4
- package/expansion-packs/infrastructure-devops/templates/infrastructure-architecture-tmpl.md +415 -0
- package/expansion-packs/infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.md +0 -0
- package/package.json +11 -19
- package/tools/bmad-npx-wrapper.js +1 -1
- package/tools/builders/web-builder.js +28 -563
- package/tools/cli.js +22 -55
- package/tools/installer/README.md +53 -3
- package/tools/installer/bin/bmad.js +56 -294
- package/tools/installer/config/install.config.yml +139 -0
- package/tools/installer/lib/config-loader.js +34 -198
- package/tools/installer/lib/file-manager.js +5 -123
- package/tools/installer/lib/ide-setup.js +189 -545
- package/tools/installer/lib/installer.js +55 -1136
- package/tools/installer/package-lock.json +3 -3
- package/tools/installer/package.json +4 -4
- package/tools/installer/templates/claude-commands.md +7 -0
- package/tools/installer/templates/cursor-rules.md +22 -0
- package/tools/installer/templates/windsurf-rules.md +22 -0
- package/tools/lib/dependency-resolver.js +22 -22
- package/tools/upgraders/v3-to-v4-upgrader.js +43 -35
- package/tools/version-bump.js +1 -1
- package/tools/yaml-format.js +2 -2
- package/.github/FUNDING.yaml +0 -15
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -22
- package/.prettierignore +0 -21
- package/.prettierrc +0 -23
- package/bmad-core/agent-teams/team-all.yaml +0 -14
- package/bmad-core/agent-teams/team-fullstack.yaml +0 -18
- package/bmad-core/agent-teams/team-ide-minimal.yaml +0 -10
- package/bmad-core/agent-teams/team-no-ui.yaml +0 -13
- package/bmad-core/agents/architect.md +0 -63
- package/bmad-core/agents/bmad-master.md +0 -110
- package/bmad-core/agents/bmad-orchestrator.md +0 -140
- package/bmad-core/agents/dev.md +0 -57
- package/bmad-core/agents/qa.md +0 -55
- package/bmad-core/agents/sm.md +0 -46
- package/bmad-core/agents/ux-expert.md +0 -54
- package/bmad-core/core-config.yaml +0 -25
- package/bmad-core/data/bmad-kb.md +0 -803
- package/bmad-core/data/brainstorming-techniques.md +0 -36
- package/bmad-core/data/elicitation-methods.md +0 -134
- package/bmad-core/tasks/advanced-elicitation.md +0 -117
- package/bmad-core/tasks/create-brownfield-story.md +0 -355
- package/bmad-core/tasks/create-next-story.md +0 -114
- package/bmad-core/tasks/create-workflow-plan.md +0 -289
- package/bmad-core/tasks/document-project.md +0 -317
- package/bmad-core/tasks/facilitate-brainstorming-session.md +0 -136
- package/bmad-core/tasks/generate-ai-frontend-prompt.md +0 -51
- package/bmad-core/tasks/kb-mode-interaction.md +0 -70
- package/bmad-core/tasks/review-story.md +0 -145
- package/bmad-core/tasks/update-workflow-plan.md +0 -248
- package/bmad-core/tasks/validate-next-story.md +0 -134
- package/bmad-core/templates/architecture-tmpl.yaml +0 -650
- package/bmad-core/templates/brainstorming-output-tmpl.yaml +0 -156
- package/bmad-core/templates/brownfield-architecture-tmpl.yaml +0 -476
- package/bmad-core/templates/brownfield-prd-tmpl.yaml +0 -280
- package/bmad-core/templates/competitor-analysis-tmpl.yaml +0 -293
- package/bmad-core/templates/front-end-architecture-tmpl.yaml +0 -206
- package/bmad-core/templates/front-end-spec-tmpl.yaml +0 -349
- package/bmad-core/templates/fullstack-architecture-tmpl.yaml +0 -805
- package/bmad-core/templates/market-research-tmpl.yaml +0 -252
- package/bmad-core/templates/prd-tmpl.yaml +0 -202
- package/bmad-core/templates/project-brief-tmpl.yaml +0 -221
- package/bmad-core/templates/story-tmpl.yaml +0 -137
- package/bmad-core/utils/plan-management.md +0 -219
- package/bmad-core/workflows/brownfield-fullstack.yaml +0 -297
- package/bmad-core/workflows/brownfield-service.yaml +0 -187
- package/bmad-core/workflows/brownfield-ui.yaml +0 -197
- package/bmad-core/workflows/greenfield-service.yaml +0 -206
- package/bmad-core/workflows/greenfield-ui.yaml +0 -235
- package/common/tasks/create-doc.md +0 -79
- package/common/utils/bmad-doc-template.md +0 -325
- package/common/utils/workflow-management.md +0 -69
- package/dist/agents/analyst.txt +0 -2849
- package/dist/agents/architect.txt +0 -3505
- package/dist/agents/bmad-master.txt +0 -9588
- package/dist/agents/bmad-orchestrator.txt +0 -2232
- package/dist/agents/qa.txt +0 -388
- package/dist/agents/sm.txt +0 -673
- package/dist/agents/ux-expert.txt +0 -987
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +0 -2401
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +0 -1635
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +0 -825
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +0 -11730
- package/dist/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.txt +0 -2023
- package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +0 -2052
- package/dist/teams/team-all.txt +0 -11799
- package/dist/teams/team-fullstack.txt +0 -11129
- package/dist/teams/team-ide-minimal.txt +0 -4573
- package/dist/teams/team-no-ui.txt +0 -9684
- package/docs/GUIDING-PRINCIPLES.md +0 -91
- package/docs/agentic-tools/claude-code-guide.md +0 -19
- package/docs/agentic-tools/cline-guide.md +0 -16
- package/docs/agentic-tools/cursor-guide.md +0 -14
- package/docs/agentic-tools/gemini-cli-guide.md +0 -32
- package/docs/agentic-tools/github-copilot-guide.md +0 -42
- package/docs/agentic-tools/roo-code-guide.md +0 -15
- package/docs/agentic-tools/trae-guide.md +0 -14
- package/docs/agentic-tools/windsurf-guide.md +0 -14
- package/docs/core-architecture.md +0 -219
- package/docs/expansion-packs.md +0 -280
- package/docs/how-to-contribute-with-pull-requests.md +0 -158
- package/docs/template-markup-references.md +0 -86
- package/docs/user-guide.md +0 -1142
- package/docs/working-in-the-brownfield.md +0 -361
- package/expansion-packs/bmad-2d-phaser-game-dev/agent-teams/phaser-2d-nodejs-game-team.yaml +0 -13
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.md +0 -60
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.md +0 -68
- package/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.md +0 -53
- package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-design-checklist.md +0 -201
- package/expansion-packs/bmad-2d-phaser-game-dev/checklists/game-story-dod-checklist.md +0 -160
- package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +0 -7
- package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +0 -254
- package/expansion-packs/bmad-2d-phaser-game-dev/data/development-guidelines.md +0 -651
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/advanced-elicitation.md +0 -111
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +0 -216
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/game-design-brainstorming.md +0 -308
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-architecture-tmpl.yaml +0 -613
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-brief-tmpl.yaml +0 -356
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-design-doc-tmpl.yaml +0 -343
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/game-story-tmpl.yaml +0 -253
- package/expansion-packs/bmad-2d-phaser-game-dev/templates/level-design-doc-tmpl.yaml +0 -484
- package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-dev-greenfield.yaml +0 -183
- package/expansion-packs/bmad-2d-phaser-game-dev/workflows/game-prototype.yaml +0 -175
- package/expansion-packs/bmad-creator-tools/README.md +0 -8
- package/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.md +0 -55
- package/expansion-packs/bmad-creator-tools/config.yaml +0 -5
- package/expansion-packs/bmad-creator-tools/tasks/generate-expansion-pack.md +0 -1020
- package/expansion-packs/bmad-creator-tools/templates/agent-teams-tmpl.yaml +0 -178
- package/expansion-packs/bmad-creator-tools/templates/agent-tmpl.yaml +0 -154
- package/expansion-packs/bmad-creator-tools/templates/expansion-pack-plan-tmpl.yaml +0 -120
- package/expansion-packs/bmad-infrastructure-devops/config.yaml +0 -8
- package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +0 -308
- package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-architecture-tmpl.yaml +0 -424
- package/expansion-packs/bmad-infrastructure-devops/templates/infrastructure-platform-from-arch-tmpl.yaml +0 -629
- package/tools/bump-all-versions.js +0 -107
- package/tools/bump-core-version.js +0 -57
- package/tools/bump-expansion-version.js +0 -78
- package/tools/installer/config/ide-agent-config.yaml +0 -58
- package/tools/installer/config/install.config.yaml +0 -91
- package/tools/lib/yaml-utils.js +0 -29
- package/tools/md-assets/web-agent-startup-instructions.md +0 -39
- package/tools/update-expansion-version.js +0 -54
- /package/{bmad-core → .bmad-core}/checklists/architect-checklist.md +0 -0
- /package/{bmad-core → .bmad-core}/checklists/pm-checklist.md +0 -0
- /package/{bmad-core → .bmad-core}/checklists/po-master-checklist.md +0 -0
- /package/{bmad-core → .bmad-core}/checklists/story-dod-checklist.md +0 -0
- /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
- /package/{bmad-core → .bmad-core}/tasks/correct-course.md +0 -0
- /package/{bmad-core → .bmad-core}/tasks/create-deep-research-prompt.md +0 -0
- /package/.github/workflows/{release.yaml → release.yml} +0 -0
|
@@ -1,114 +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 or finding its own context.
|
|
6
|
-
|
|
7
|
-
## SEQUENTIAL Task Execution (Do not proceed until current Task is complete)
|
|
8
|
-
|
|
9
|
-
### 0. Load Core Configuration and Check Workflow
|
|
10
|
-
|
|
11
|
-
- Load `.bmad-core/core-config.yaml` from the project root
|
|
12
|
-
- If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy it from GITHUB bmad-core/core-config.yaml and configure it for your project OR 2) Run the BMad installer against your project to upgrade and add the file automatically. Please add and configure core-config.yaml before proceeding."
|
|
13
|
-
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
|
|
14
|
-
- If `workflow.trackProgress: true`, use `utils/plan-management.md` to check plan sequence and warn if out of order
|
|
15
|
-
|
|
16
|
-
### 1. Identify Next Story for Preparation
|
|
17
|
-
|
|
18
|
-
#### 1.1 Locate Epic Files and Review Existing Stories
|
|
19
|
-
|
|
20
|
-
- Based on `prdSharded` from config, locate epic files (sharded location/pattern or monolithic PRD sections)
|
|
21
|
-
- If `devStoryLocation` has story files, load the highest `{epicNum}.{storyNum}.story.md` file
|
|
22
|
-
- **If highest story exists:**
|
|
23
|
-
- Verify status is 'Done'. If not, alert user: "ALERT: Found incomplete story! File: {lastEpicNum}.{lastStoryNum}.story.md Status: [current status] You should fix this story first, but would you like to accept risk & override to create the next story in draft?"
|
|
24
|
-
- If proceeding, select next sequential story in the current epic
|
|
25
|
-
- If epic is complete, prompt user: "Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. Would you like to: 1) Begin Epic {epicNum + 1} with story 1 2) Select a specific story to work on 3) Cancel story creation"
|
|
26
|
-
- **CRITICAL**: NEVER automatically skip to another epic. User MUST explicitly instruct which story to create.
|
|
27
|
-
- **If no story files exist:** The next story is ALWAYS 1.1 (first story of first epic)
|
|
28
|
-
- Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}"
|
|
29
|
-
|
|
30
|
-
### 2. Gather Story Requirements and Previous Story Context
|
|
31
|
-
|
|
32
|
-
- Extract story requirements from the identified epic file
|
|
33
|
-
- If previous story exists, review Dev Agent Record sections for:
|
|
34
|
-
- Completion Notes and Debug Log References
|
|
35
|
-
- Implementation deviations and technical decisions
|
|
36
|
-
- Challenges encountered and lessons learned
|
|
37
|
-
- Extract relevant insights that inform the current story's preparation
|
|
38
|
-
|
|
39
|
-
### 3. Gather Architecture Context
|
|
40
|
-
|
|
41
|
-
#### 3.1 Determine Architecture Reading Strategy
|
|
42
|
-
|
|
43
|
-
- **If `architectureVersion: >= v4` and `architectureSharded: true`**: Read `{architectureShardedLocation}/index.md` then follow structured reading order below
|
|
44
|
-
- **Else**: Use monolithic `architectureFile` for similar sections
|
|
45
|
-
|
|
46
|
-
#### 3.2 Read Architecture Documents Based on Story Type
|
|
47
|
-
|
|
48
|
-
**For ALL Stories:** tech-stack.md, unified-project-structure.md, coding-standards.md, testing-strategy.md
|
|
49
|
-
|
|
50
|
-
**For Backend/API Stories, additionally:** data-models.md, database-schema.md, backend-architecture.md, rest-api-spec.md, external-apis.md
|
|
51
|
-
|
|
52
|
-
**For Frontend/UI Stories, additionally:** frontend-architecture.md, components.md, core-workflows.md, data-models.md
|
|
53
|
-
|
|
54
|
-
**For Full-Stack Stories:** Read both Backend and Frontend sections above
|
|
55
|
-
|
|
56
|
-
#### 3.3 Extract Story-Specific Technical Details
|
|
57
|
-
|
|
58
|
-
Extract ONLY information directly relevant to implementing the current story. Do NOT invent new libraries, patterns, or standards not in the source documents.
|
|
59
|
-
|
|
60
|
-
Extract:
|
|
61
|
-
|
|
62
|
-
- Specific data models, schemas, or structures the story will use
|
|
63
|
-
- API endpoints the story must implement or consume
|
|
64
|
-
- Component specifications for UI elements in the story
|
|
65
|
-
- File paths and naming conventions for new code
|
|
66
|
-
- Testing requirements specific to the story's features
|
|
67
|
-
- Security or performance considerations affecting the story
|
|
68
|
-
|
|
69
|
-
ALWAYS cite source documents: `[Source: architecture/{filename}.md#{section}]`
|
|
70
|
-
|
|
71
|
-
### 4. Verify Project Structure Alignment
|
|
72
|
-
|
|
73
|
-
- Cross-reference story requirements with Project Structure Guide from `docs/architecture/unified-project-structure.md`
|
|
74
|
-
- Ensure file paths, component locations, or module names align with defined structures
|
|
75
|
-
- Document any structural conflicts in "Project Structure Notes" section within the story draft
|
|
76
|
-
|
|
77
|
-
### 5. Populate Story Template with Full Context
|
|
78
|
-
|
|
79
|
-
- Create new story file: `{devStoryLocation}/{epicNum}.{storyNum}.story.md` using Story Template
|
|
80
|
-
- Fill in basic story information: Title, Status (Draft), Story statement, Acceptance Criteria from Epic
|
|
81
|
-
- **`Dev Notes` section (CRITICAL):**
|
|
82
|
-
- CRITICAL: This section MUST contain ONLY information extracted from architecture documents. NEVER invent or assume technical details.
|
|
83
|
-
- Include ALL relevant technical details from Steps 2-3, organized by category:
|
|
84
|
-
- **Previous Story Insights**: Key learnings from previous story
|
|
85
|
-
- **Data Models**: Specific schemas, validation rules, relationships [with source references]
|
|
86
|
-
- **API Specifications**: Endpoint details, request/response formats, auth requirements [with source references]
|
|
87
|
-
- **Component Specifications**: UI component details, props, state management [with source references]
|
|
88
|
-
- **File Locations**: Exact paths where new code should be created based on project structure
|
|
89
|
-
- **Testing Requirements**: Specific test cases or strategies from testing-strategy.md
|
|
90
|
-
- **Technical Constraints**: Version requirements, performance considerations, security rules
|
|
91
|
-
- Every technical detail MUST include its source reference: `[Source: architecture/{filename}.md#{section}]`
|
|
92
|
-
- If information for a category is not found in the architecture docs, explicitly state: "No specific guidance found in architecture docs"
|
|
93
|
-
- **`Tasks / Subtasks` section:**
|
|
94
|
-
- Generate detailed, sequential list of technical tasks based ONLY on: Epic Requirements, Story AC, Reviewed Architecture Information
|
|
95
|
-
- Each task must reference relevant architecture documentation
|
|
96
|
-
- Include unit testing as explicit subtasks based on the Testing Strategy
|
|
97
|
-
- Link tasks to ACs where applicable (e.g., `Task 1 (AC: 1, 3)`)
|
|
98
|
-
- Add notes on project structure alignment or discrepancies found in Step 4
|
|
99
|
-
|
|
100
|
-
### 6. Story Draft Completion and Review
|
|
101
|
-
|
|
102
|
-
- Review all sections for completeness and accuracy
|
|
103
|
-
- Verify all source references are included for technical details
|
|
104
|
-
- Ensure tasks align with both epic requirements and architecture constraints
|
|
105
|
-
- Update status to "Draft" and save the story file
|
|
106
|
-
- If `workflow.trackProgress: true` and `workflow.updateOnCompletion: true`, call update-workflow-plan task to mark story creation step complete
|
|
107
|
-
- Execute `tasks/execute-checklist` `checklists/story-draft-checklist`
|
|
108
|
-
- Provide summary to user including:
|
|
109
|
-
- Story created: `{devStoryLocation}/{epicNum}.{storyNum}.story.md`
|
|
110
|
-
- Status: Draft
|
|
111
|
-
- Key technical components included from architecture docs
|
|
112
|
-
- Any deviations or conflicts noted between epic and architecture
|
|
113
|
-
- Checklist Results
|
|
114
|
-
- Next steps: For Complex stories, suggest the user carefully review the story draft and also optionally have the PO run the task `validate-next-story`
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
# Create Workflow Plan Task
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Guide users through workflow selection and create a detailed plan document that outlines the selected workflow steps, decision points, and expected outputs. This task helps users understand what will happen before starting a complex workflow and provides a checklist to track progress.
|
|
6
|
-
|
|
7
|
-
## Task Instructions
|
|
8
|
-
|
|
9
|
-
### 1. Understand User's Goal
|
|
10
|
-
|
|
11
|
-
[[LLM: Start with discovery questions to understand what the user wants to accomplish]]
|
|
12
|
-
|
|
13
|
-
Ask the user:
|
|
14
|
-
|
|
15
|
-
1. **Project Type**:
|
|
16
|
-
- Are you starting a new project (greenfield) or enhancing an existing one (brownfield)?
|
|
17
|
-
- What type of application? (web app, service/API, UI only, full-stack)
|
|
18
|
-
|
|
19
|
-
2. **For Greenfield**:
|
|
20
|
-
- Do you need a quick prototype or production-ready application?
|
|
21
|
-
- Will this have a UI component?
|
|
22
|
-
- Single service or multiple services?
|
|
23
|
-
|
|
24
|
-
3. **For Brownfield**:
|
|
25
|
-
- What's the scope of the enhancement?
|
|
26
|
-
- Single bug fix or small feature (few hours)
|
|
27
|
-
- Small enhancement (1-3 stories)
|
|
28
|
-
- Major feature requiring coordination
|
|
29
|
-
- Architectural changes or modernization
|
|
30
|
-
- Do you have existing documentation?
|
|
31
|
-
- Are you following existing patterns or introducing new ones?
|
|
32
|
-
|
|
33
|
-
### 2. Recommend Appropriate Workflow
|
|
34
|
-
|
|
35
|
-
Based on the answers, recommend:
|
|
36
|
-
|
|
37
|
-
**Greenfield Options:**
|
|
38
|
-
|
|
39
|
-
- `greenfield-fullstack` - Complete web application
|
|
40
|
-
- `greenfield-service` - Backend API/service only
|
|
41
|
-
- `greenfield-ui` - Frontend only
|
|
42
|
-
|
|
43
|
-
**Brownfield Options:**
|
|
44
|
-
|
|
45
|
-
- `brownfield-create-story` - Single small change
|
|
46
|
-
- `brownfield-create-epic` - Small feature (1-3 stories)
|
|
47
|
-
- `brownfield-fullstack` - Major enhancement
|
|
48
|
-
|
|
49
|
-
**Simplified Option:**
|
|
50
|
-
|
|
51
|
-
- For users unsure or wanting flexibility, suggest starting with individual agent tasks
|
|
52
|
-
|
|
53
|
-
### 3. Explain Selected Workflow
|
|
54
|
-
|
|
55
|
-
[[LLM: Once workflow is selected, provide clear explanation]]
|
|
56
|
-
|
|
57
|
-
For the selected workflow, explain:
|
|
58
|
-
|
|
59
|
-
1. **Overview**: What this workflow accomplishes
|
|
60
|
-
2. **Duration**: Estimated time for planning phase
|
|
61
|
-
3. **Outputs**: What documents will be created
|
|
62
|
-
4. **Decision Points**: Where user input will be needed
|
|
63
|
-
5. **Requirements**: What information should be ready
|
|
64
|
-
|
|
65
|
-
### 4. Create Workflow Plan Document
|
|
66
|
-
|
|
67
|
-
[[LLM: Generate a comprehensive plan document with the following structure]]
|
|
68
|
-
|
|
69
|
-
```markdown
|
|
70
|
-
# Workflow Plan: {{Workflow Name}}
|
|
71
|
-
|
|
72
|
-
<!-- WORKFLOW-PLAN-META
|
|
73
|
-
workflow-id: {{workflow-id}}
|
|
74
|
-
status: active
|
|
75
|
-
created: {{ISO-8601 timestamp}}
|
|
76
|
-
updated: {{ISO-8601 timestamp}}
|
|
77
|
-
version: 1.0
|
|
78
|
-
-->
|
|
79
|
-
|
|
80
|
-
**Created Date**: {{current date}}
|
|
81
|
-
**Project**: {{project name}}
|
|
82
|
-
**Type**: {{greenfield/brownfield}}
|
|
83
|
-
**Status**: Active
|
|
84
|
-
**Estimated Planning Duration**: {{time estimate}}
|
|
85
|
-
|
|
86
|
-
## Objective
|
|
87
|
-
|
|
88
|
-
{{Clear description of what will be accomplished}}
|
|
89
|
-
|
|
90
|
-
## Selected Workflow
|
|
91
|
-
|
|
92
|
-
**Workflow**: `{{workflow-id}}`
|
|
93
|
-
**Reason**: {{Why this workflow fits the user's needs}}
|
|
94
|
-
|
|
95
|
-
## Workflow Steps
|
|
96
|
-
|
|
97
|
-
### Planning Phase
|
|
98
|
-
|
|
99
|
-
- [ ] Step 1: {{step name}} <!-- step-id: 1.1, agent: {{agent}}, task: {{task}} -->
|
|
100
|
-
- **Agent**: {{agent name}}
|
|
101
|
-
- **Action**: {{what happens}}
|
|
102
|
-
- **Output**: {{what's created}}
|
|
103
|
-
- **User Input**: {{if any}}
|
|
104
|
-
|
|
105
|
-
- [ ] Step 2: {{step name}} <!-- step-id: 1.2, agent: {{agent}}, task: {{task}} -->
|
|
106
|
-
- **Agent**: {{agent name}}
|
|
107
|
-
- **Action**: {{what happens}}
|
|
108
|
-
- **Output**: {{what's created}}
|
|
109
|
-
- **Decision Point**: {{if any}} <!-- decision-id: D1 -->
|
|
110
|
-
|
|
111
|
-
{{Continue for all planning steps}}
|
|
112
|
-
|
|
113
|
-
### Development Phase (IDE)
|
|
114
|
-
|
|
115
|
-
- [ ] Document Sharding <!-- step-id: 2.1, agent: po, task: shard-doc -->
|
|
116
|
-
- Prepare documents for story creation
|
|
117
|
-
|
|
118
|
-
- [ ] Story Development Cycle <!-- step-id: 2.2, repeats: true -->
|
|
119
|
-
- [ ] Create story (SM agent) <!-- step-id: 2.2.1, agent: sm, task: create-next-story -->
|
|
120
|
-
- [ ] Review story (optional) <!-- step-id: 2.2.2, agent: analyst, optional: true -->
|
|
121
|
-
- [ ] Implement story (Dev agent) <!-- step-id: 2.2.3, agent: dev -->
|
|
122
|
-
- [ ] QA review (optional) <!-- step-id: 2.2.4, agent: qa, optional: true -->
|
|
123
|
-
- [ ] Repeat for all stories
|
|
124
|
-
|
|
125
|
-
- [ ] Epic Retrospective (optional) <!-- step-id: 2.3, agent: po, optional: true -->
|
|
126
|
-
|
|
127
|
-
## Key Decision Points
|
|
128
|
-
|
|
129
|
-
1. **{{Decision Name}}** (Step {{n}}): <!-- decision-id: D1, status: pending -->
|
|
130
|
-
- Trigger: {{what causes this decision}}
|
|
131
|
-
- Options: {{available choices}}
|
|
132
|
-
- Impact: {{how it affects the workflow}}
|
|
133
|
-
- Decision Made: _Pending_
|
|
134
|
-
|
|
135
|
-
{{List all decision points}}
|
|
136
|
-
|
|
137
|
-
## Expected Outputs
|
|
138
|
-
|
|
139
|
-
### Planning Documents
|
|
140
|
-
- [ ] {{document 1}} - {{description}}
|
|
141
|
-
- [ ] {{document 2}} - {{description}}
|
|
142
|
-
{{etc...}}
|
|
143
|
-
|
|
144
|
-
### Development Artifacts
|
|
145
|
-
- [ ] Stories in `docs/stories/`
|
|
146
|
-
- [ ] Implementation code
|
|
147
|
-
- [ ] Tests
|
|
148
|
-
- [ ] Updated documentation
|
|
149
|
-
|
|
150
|
-
## Prerequisites Checklist
|
|
151
|
-
|
|
152
|
-
Before starting this workflow, ensure you have:
|
|
153
|
-
|
|
154
|
-
- [ ] {{prerequisite 1}}
|
|
155
|
-
- [ ] {{prerequisite 2}}
|
|
156
|
-
- [ ] {{prerequisite 3}}
|
|
157
|
-
{{etc...}}
|
|
158
|
-
|
|
159
|
-
## Customization Options
|
|
160
|
-
|
|
161
|
-
Based on your project needs, you may:
|
|
162
|
-
- Skip {{optional step}} if {{condition}}
|
|
163
|
-
- Add {{additional step}} if {{condition}}
|
|
164
|
-
- Choose {{alternative}} instead of {{default}}
|
|
165
|
-
|
|
166
|
-
## Risk Considerations
|
|
167
|
-
|
|
168
|
-
{{For brownfield only}}
|
|
169
|
-
- Integration complexity: {{assessment}}
|
|
170
|
-
- Rollback strategy: {{approach}}
|
|
171
|
-
- Testing requirements: {{special needs}}
|
|
172
|
-
|
|
173
|
-
## Next Steps
|
|
174
|
-
|
|
175
|
-
1. Review this plan and confirm it matches your expectations
|
|
176
|
-
2. Gather any missing prerequisites
|
|
177
|
-
3. Start workflow with: `*task workflow {{workflow-id}}`
|
|
178
|
-
4. Or begin with first agent: `@{{first-agent}}`
|
|
179
|
-
|
|
180
|
-
## Notes
|
|
181
|
-
|
|
182
|
-
{{Any additional context or warnings}}
|
|
183
|
-
|
|
184
|
-
---
|
|
185
|
-
*This plan can be updated as you progress through the workflow. Check off completed items to track progress.*
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
### 5. Save and Present Plan
|
|
189
|
-
|
|
190
|
-
1. Save the plan as `docs/workflow-plan.md`
|
|
191
|
-
2. Inform user: "Workflow plan created at docs/workflow-plan.md"
|
|
192
|
-
3. Offer options:
|
|
193
|
-
- Review the plan together
|
|
194
|
-
- Start the workflow now
|
|
195
|
-
- Gather prerequisites first
|
|
196
|
-
- Modify the plan
|
|
197
|
-
|
|
198
|
-
### 6. Plan Variations
|
|
199
|
-
|
|
200
|
-
[[LLM: Adjust plan detail based on workflow complexity]]
|
|
201
|
-
|
|
202
|
-
**For Simple Workflows** (create-story, create-epic):
|
|
203
|
-
|
|
204
|
-
- Simpler checklist format
|
|
205
|
-
- Focus on immediate next steps
|
|
206
|
-
- Less detailed explanations
|
|
207
|
-
|
|
208
|
-
**For Complex Workflows** (full greenfield/brownfield):
|
|
209
|
-
|
|
210
|
-
- Detailed step breakdowns
|
|
211
|
-
- All decision points documented
|
|
212
|
-
- Comprehensive output descriptions
|
|
213
|
-
- Risk mitigation sections
|
|
214
|
-
|
|
215
|
-
**For Brownfield Workflows**:
|
|
216
|
-
|
|
217
|
-
- Include existing system impact analysis
|
|
218
|
-
- Document integration checkpoints
|
|
219
|
-
- Add rollback considerations
|
|
220
|
-
- Note documentation dependencies
|
|
221
|
-
|
|
222
|
-
### 7. Interactive Planning Mode
|
|
223
|
-
|
|
224
|
-
[[LLM: If user wants to customize the workflow]]
|
|
225
|
-
|
|
226
|
-
If user wants to modify the standard workflow:
|
|
227
|
-
|
|
228
|
-
1. Present workflow steps as options
|
|
229
|
-
2. Allow skipping optional steps
|
|
230
|
-
3. Let user reorder certain steps
|
|
231
|
-
4. Document customizations in plan
|
|
232
|
-
5. Warn about dependencies if steps are skipped
|
|
233
|
-
|
|
234
|
-
### 8. Execution Guidance
|
|
235
|
-
|
|
236
|
-
After plan is created, provide clear guidance:
|
|
237
|
-
|
|
238
|
-
```text
|
|
239
|
-
Your workflow plan is ready! Here's how to proceed:
|
|
240
|
-
|
|
241
|
-
1. **Review the plan**: Check that all steps align with your goals
|
|
242
|
-
2. **Gather prerequisites**: Use the checklist to ensure you're ready
|
|
243
|
-
3. **Start execution**:
|
|
244
|
-
- Full workflow: `*task workflow {{workflow-id}}`
|
|
245
|
-
- Step by step: Start with `@{{first-agent}}`
|
|
246
|
-
4. **Track progress**: Check off steps in the plan as completed
|
|
247
|
-
|
|
248
|
-
Would you like to:
|
|
249
|
-
a) Review the plan together
|
|
250
|
-
b) Start the workflow now
|
|
251
|
-
c) Gather prerequisites first
|
|
252
|
-
d) Modify the plan
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
## Success Criteria
|
|
256
|
-
|
|
257
|
-
The workflow plan is successful when:
|
|
258
|
-
|
|
259
|
-
1. User clearly understands what will happen
|
|
260
|
-
2. All decision points are documented
|
|
261
|
-
3. Prerequisites are identified
|
|
262
|
-
4. Expected outputs are clear
|
|
263
|
-
5. User feels confident to proceed
|
|
264
|
-
6. Plan serves as useful progress tracker
|
|
265
|
-
|
|
266
|
-
## Integration with BMad Master and Orchestrator
|
|
267
|
-
|
|
268
|
-
When used by BMad Master or BMad Orchestrator, this task should:
|
|
269
|
-
|
|
270
|
-
1. Be offered when user asks about workflows
|
|
271
|
-
2. Be suggested before starting complex workflows
|
|
272
|
-
3. Create a plan that the agent can reference during execution
|
|
273
|
-
4. Allow the agent to track progress against the plan
|
|
274
|
-
|
|
275
|
-
## Example Usage
|
|
276
|
-
|
|
277
|
-
```text
|
|
278
|
-
User: "I need to add a payment system to my existing app"
|
|
279
|
-
|
|
280
|
-
BMad Orchestrator: "Let me help you create a workflow plan for that enhancement. I'll ask a few questions to recommend the best approach..."
|
|
281
|
-
|
|
282
|
-
[Runs through discovery questions]
|
|
283
|
-
|
|
284
|
-
BMad Orchestrator: "Based on your answers, I recommend the brownfield-fullstack workflow. Let me create a detailed plan for you..."
|
|
285
|
-
|
|
286
|
-
[Creates and saves plan]
|
|
287
|
-
|
|
288
|
-
BMad Orchestrator: "I've created a workflow plan at docs/workflow-plan.md. This shows all the steps we'll go through, what documents will be created, and where you'll need to make decisions. Would you like to review it together?"
|
|
289
|
-
```
|