@mark-gozner/aigile-method 0.4.5

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.
Files changed (143) hide show
  1. package/LICENSE.md +26 -0
  2. package/README.md +300 -0
  3. package/core/agent-teams/team-all.yaml +24 -0
  4. package/core/agent-teams/team-company.yaml +17 -0
  5. package/core/agent-teams/team-enterprise.yaml +17 -0
  6. package/core/agent-teams/team-fullstack.yaml +16 -0
  7. package/core/agent-teams/team-ide-minimal.yaml +10 -0
  8. package/core/agents/aigile-master.md +476 -0
  9. package/core/agents/aigile-orchestrator.agent.md +200 -0
  10. package/core/agents/analyst.md +45 -0
  11. package/core/agents/architect.md +43 -0
  12. package/core/agents/code-tour.agent.md +208 -0
  13. package/core/agents/dev.agent.md +145 -0
  14. package/core/agents/dev.md +130 -0
  15. package/core/agents/expert-react-frontend-engineer.agent.md +741 -0
  16. package/core/agents/pm.md +33 -0
  17. package/core/agents/po.md +35 -0
  18. package/core/agents/qa.md +38 -0
  19. package/core/agents/sm.md +31 -0
  20. package/core/agents/ui-expert.md +39 -0
  21. package/core/agents/ux-expert.md +31 -0
  22. package/core/checklists/architect-checklist.md +246 -0
  23. package/core/checklists/change-checklist.md +182 -0
  24. package/core/checklists/pm-checklist.md +286 -0
  25. package/core/checklists/po-master-checklist.md +291 -0
  26. package/core/checklists/story-dod-checklist.md +94 -0
  27. package/core/checklists/story-draft-checklist.md +153 -0
  28. package/core/core-config.yaml +22 -0
  29. package/core/data/aigile-kb.md +112 -0
  30. package/core/data/brainstorming-techniques.md +73 -0
  31. package/core/data/elicitation-methods.md +42 -0
  32. package/core/data/technical-preferences.md +52 -0
  33. package/core/data/test-levels-framework.md +43 -0
  34. package/core/data/test-priorities-matrix.md +26 -0
  35. package/core/instructions/csharp.instructions.md +656 -0
  36. package/core/instructions/dotnet/csharp.instructions.md +656 -0
  37. package/core/instructions/java/java.instructions.md +67 -0
  38. package/core/instructions/java/spring-boot.instructions.md +122 -0
  39. package/core/instructions/java.instructions.md +67 -0
  40. package/core/instructions/spring-boot.instructions.md +122 -0
  41. package/core/prompts/README.md +11 -0
  42. package/core/prompts/architecture/architecture-blueprint-generator.prompt.md +322 -0
  43. package/core/prompts/architecture/architecture-validation.prompt.md +71 -0
  44. package/core/prompts/architecture/file-tree-generator.prompt.md +405 -0
  45. package/core/prompts/architecture/technical-project-analyze.prompt.md +43 -0
  46. package/core/prompts/architecture-blueprint-generator.prompt.md +322 -0
  47. package/core/prompts/architecture-validation.prompt.md +71 -0
  48. package/core/prompts/code-review.prompt.md +107 -0
  49. package/core/prompts/confluence-in-md.prompt.md +167 -0
  50. package/core/prompts/copilot-instructions-blueprint-generator.prompt.md +294 -0
  51. package/core/prompts/create-implementation-plan.prompt.md +157 -0
  52. package/core/prompts/create-oo-component-documentation.prompt.md +193 -0
  53. package/core/prompts/file-tree-generator.prompt.md +405 -0
  54. package/core/prompts/generate-unit-tests.prompt.md +291 -0
  55. package/core/prompts/java/java-doc.prompt.md +24 -0
  56. package/core/prompts/java/java-junit.prompt.md +64 -0
  57. package/core/prompts/java/junit-5.prompt.md +64 -0
  58. package/core/prompts/java-doc.prompt.md +24 -0
  59. package/core/prompts/java-junit.prompt.md +64 -0
  60. package/core/prompts/junit-5.prompt.md +64 -0
  61. package/core/prompts/release-notes/README.md +11 -0
  62. package/core/prompts/release-notes/release-notes.prompt.md +723 -0
  63. package/core/prompts/release-notes.prompt.md +723 -0
  64. package/core/prompts/technical-project-analyze.prompt.md +43 -0
  65. package/core/tasks/advanced-elicitation.md +119 -0
  66. package/core/tasks/check-story-implemented.md +44 -0
  67. package/core/tasks/code-arch-review-with-github.md +40 -0
  68. package/core/tasks/create-architecture-doc.md +55 -0
  69. package/core/tasks/create-jira-epic-from-confluence.md +70 -0
  70. package/core/tasks/create-jira-story-from-confluence.md +39 -0
  71. package/core/tasks/create-jira-story-from-text.md +39 -0
  72. package/core/tasks/create-next-story.md +35 -0
  73. package/core/tasks/create-prd-doc.md +54 -0
  74. package/core/tasks/create-stories-from-epic.md +66 -0
  75. package/core/tasks/create-tasks-for-story.md +60 -0
  76. package/core/tasks/document-project.md +69 -0
  77. package/core/tasks/execute-checklist.md +37 -0
  78. package/core/tasks/explain-story-from-jira.md +44 -0
  79. package/core/tasks/facilitate-brainstorming-session.md +69 -0
  80. package/core/tasks/figma-audit-design-system.md +20 -0
  81. package/core/tasks/front-end-spec-from-design.md +33 -0
  82. package/core/tasks/gate.md +64 -0
  83. package/core/tasks/groom-jira-story.md +52 -0
  84. package/core/tasks/help.md +27 -0
  85. package/core/tasks/implement-freeform-work-item.md +30 -0
  86. package/core/tasks/implement-story-from-jira.md +63 -0
  87. package/core/tasks/implement-unit-tests.md +45 -0
  88. package/core/tasks/market-research-from-context7.md +37 -0
  89. package/core/tasks/review-story.md +30 -0
  90. package/core/tasks/sonarqube-hotspot-review.md +39 -0
  91. package/core/tasks/standup-digest.md +21 -0
  92. package/core/tasks/sync-jira-backlog.md +32 -0
  93. package/core/tasks/test-design.md +68 -0
  94. package/core/tasks/validate-next-story.md +37 -0
  95. package/core/tasks/verify-jira-story-e2e.md +45 -0
  96. package/core/templates/architecture-tmpl.yaml +651 -0
  97. package/core/templates/brainstorming-output-tmpl.yaml +156 -0
  98. package/core/templates/brownfield-architecture-tmpl.yaml +477 -0
  99. package/core/templates/brownfield-prd-tmpl.yaml +281 -0
  100. package/core/templates/front-end-architecture-tmpl.yaml +219 -0
  101. package/core/templates/front-end-spec-tmpl.yaml +350 -0
  102. package/core/templates/fullstack-architecture-tmpl.yaml +824 -0
  103. package/core/templates/market-research-tmpl.yaml +253 -0
  104. package/core/templates/prd-tmpl.yaml +203 -0
  105. package/core/templates/project-brief-tmpl.yaml +222 -0
  106. package/core/templates/qa-gate-tmpl.yaml +103 -0
  107. package/core/templates/story-tmpl.yaml +138 -0
  108. package/core/workflows/brownfield-fullstack.yaml +298 -0
  109. package/core/workflows/brownfield-service.yaml +188 -0
  110. package/core/workflows/brownfield-ui.yaml +198 -0
  111. package/core/workflows/greenfield-fullstack.yaml +241 -0
  112. package/core/workflows/greenfield-service.yaml +207 -0
  113. package/core/workflows/greenfield-ui.yaml +236 -0
  114. package/dist/agents/aigile-master.txt +500 -0
  115. package/dist/agents/aigile-orchestrator.agent.txt +224 -0
  116. package/dist/agents/analyst.txt +69 -0
  117. package/dist/agents/architect.txt +67 -0
  118. package/dist/agents/code-tour.agent.txt +232 -0
  119. package/dist/agents/dev.agent.txt +169 -0
  120. package/dist/agents/dev.txt +154 -0
  121. package/dist/agents/expert-react-frontend-engineer.agent.txt +765 -0
  122. package/dist/agents/pm.txt +57 -0
  123. package/dist/agents/po.txt +59 -0
  124. package/dist/agents/qa.txt +62 -0
  125. package/dist/agents/sm.txt +55 -0
  126. package/dist/agents/ui-expert.txt +63 -0
  127. package/dist/agents/ux-expert.txt +55 -0
  128. package/dist/dev-agent-bundle.txt +154 -0
  129. package/dist/teams/team-company.txt +10789 -0
  130. package/docs/mcp-servers.md +102 -0
  131. package/docs/orchestrator-guide.md +526 -0
  132. package/mcp/servers.json +108 -0
  133. package/mcp/servers.yaml +124 -0
  134. package/package.json +72 -0
  135. package/tools/cli.js +1864 -0
  136. package/tools/installer/README.md +24 -0
  137. package/tools/installer/lib/ide-setup.js +295 -0
  138. package/tools/installer/lib/installer.js +131 -0
  139. package/tools/md-assets/web-agent-startup-instructions.md +21 -0
  140. package/tools/postinstall.js +72 -0
  141. package/tools/shared/bannerArt.js +68 -0
  142. package/tools/validate-bundles.js +54 -0
  143. package/tools/verify-publish-registry.js +34 -0
@@ -0,0 +1,103 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ template:
3
+ id: qa-gate-template-v1
4
+ name: Quality Gate Decision
5
+ version: 1.0
6
+ output:
7
+ format: yaml
8
+ filename: qa.qaLocation/gates/{{epic_num}}.{{story_num}}-{{story_slug}}.yml
9
+ title: "Quality Gate: {{epic_num}}.{{story_num}}"
10
+
11
+ # Required fields (keep these first)
12
+ schema: 1
13
+ story: "{{epic_num}}.{{story_num}}"
14
+ story_title: "{{story_title}}"
15
+ gate: "{{gate_status}}" # PASS|CONCERNS|FAIL|WAIVED
16
+ status_reason: "{{status_reason}}" # 1-2 sentence summary of why this gate decision
17
+ reviewer: "Quinn (Test Architect)"
18
+ updated: "{{iso_timestamp}}"
19
+
20
+ # Always present but only active when WAIVED
21
+ waiver: { active: false }
22
+
23
+ # Issues (if any) - Use fixed severity: low | medium | high
24
+ top_issues: []
25
+
26
+ # Risk summary (from risk-profile task if run)
27
+ risk_summary:
28
+ totals: { critical: 0, high: 0, medium: 0, low: 0 }
29
+ recommendations:
30
+ must_fix: []
31
+ monitor: []
32
+
33
+ # Examples section using block scalars for clarity
34
+ examples:
35
+ with_issues: |
36
+ top_issues:
37
+ - id: "SEC-001"
38
+ severity: high # ONLY: low|medium|high
39
+ finding: "No rate limiting on login endpoint"
40
+ suggested_action: "Add rate limiting middleware before production"
41
+ - id: "TEST-001"
42
+ severity: medium
43
+ finding: "Missing integration tests for auth flow"
44
+ suggested_action: "Add test coverage for critical paths"
45
+
46
+ when_waived: |
47
+ waiver:
48
+ active: true
49
+ reason: "Accepted for MVP release - will address in next sprint"
50
+ approved_by: "Product Owner"
51
+
52
+ # ============ Optional Extended Fields ============
53
+ # Uncomment and use if your team wants more detail
54
+
55
+ optional_fields_examples:
56
+ quality_and_expiry: |
57
+ quality_score: 75 # 0-100 (optional scoring)
58
+ expires: "2025-01-26T00:00:00Z" # Optional gate freshness window
59
+
60
+ evidence: |
61
+ evidence:
62
+ tests_reviewed: 15
63
+ risks_identified: 3
64
+ trace:
65
+ ac_covered: [1, 2, 3] # AC numbers with test coverage
66
+ ac_gaps: [4] # AC numbers lacking coverage
67
+
68
+ nfr_validation: |
69
+ nfr_validation:
70
+ security: { status: CONCERNS, notes: "Rate limiting missing" }
71
+ performance: { status: PASS, notes: "" }
72
+ reliability: { status: PASS, notes: "" }
73
+ maintainability: { status: PASS, notes: "" }
74
+
75
+ history: |
76
+ history: # Append-only audit trail
77
+ - at: "2025-01-12T10:00:00Z"
78
+ gate: FAIL
79
+ note: "Initial review - missing tests"
80
+ - at: "2025-01-12T15:00:00Z"
81
+ gate: CONCERNS
82
+ note: "Tests added but rate limiting still missing"
83
+
84
+ risk_summary: |
85
+ risk_summary: # From risk-profile task
86
+ totals:
87
+ critical: 0
88
+ high: 0
89
+ medium: 0
90
+ low: 0
91
+ # 'highest' is emitted only when risks exist
92
+ recommendations:
93
+ must_fix: []
94
+ monitor: []
95
+
96
+ recommendations: |
97
+ recommendations:
98
+ immediate: # Must fix before production
99
+ - action: "Add rate limiting to auth endpoints"
100
+ refs: ["api/auth/login.ts:42-68"]
101
+ future: # Can be addressed later
102
+ - action: "Consider caching for better performance"
103
+ refs: ["services/data.service.ts"]
@@ -0,0 +1,138 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ template:
3
+ id: story-template-v2
4
+ name: Story Document
5
+ version: 2.0
6
+ output:
7
+ format: markdown
8
+ filename: docs/stories/{{epic_num}}.{{story_num}}.{{story_title_short}}.md
9
+ title: "Story {{epic_num}}.{{story_num}}: {{story_title_short}}"
10
+
11
+ workflow:
12
+ mode: interactive
13
+ elicitation: advanced-elicitation
14
+
15
+ agent_config:
16
+ editable_sections:
17
+ - Status
18
+ - Story
19
+ - Acceptance Criteria
20
+ - Tasks / Subtasks
21
+ - Dev Notes
22
+ - Testing
23
+ - Change Log
24
+
25
+ sections:
26
+ - id: status
27
+ title: Status
28
+ type: choice
29
+ choices: [Draft, Approved, InProgress, Review, Done]
30
+ instruction: Select the current status of the story
31
+ owner: scrum-master
32
+ editors: [scrum-master, dev-agent]
33
+
34
+ - id: story
35
+ title: Story
36
+ type: template-text
37
+ template: |
38
+ **As a** {{role}},
39
+ **I want** {{action}},
40
+ **so that** {{benefit}}
41
+ instruction: Define the user story using the standard format with role, action, and benefit
42
+ elicit: true
43
+ owner: scrum-master
44
+ editors: [scrum-master]
45
+
46
+ - id: acceptance-criteria
47
+ title: Acceptance Criteria
48
+ type: numbered-list
49
+ instruction: Copy the acceptance criteria numbered list from the epic file
50
+ elicit: true
51
+ owner: scrum-master
52
+ editors: [scrum-master]
53
+
54
+ - id: tasks-subtasks
55
+ title: Tasks / Subtasks
56
+ type: bullet-list
57
+ instruction: |
58
+ Break down the story into specific tasks and subtasks needed for implementation.
59
+ Reference applicable acceptance criteria numbers where relevant.
60
+ template: |
61
+ - [ ] Task 1 (AC: # if applicable)
62
+ - [ ] Subtask1.1...
63
+ - [ ] Task 2 (AC: # if applicable)
64
+ - [ ] Subtask 2.1...
65
+ - [ ] Task 3 (AC: # if applicable)
66
+ - [ ] Subtask 3.1...
67
+ elicit: true
68
+ owner: scrum-master
69
+ editors: [scrum-master, dev-agent]
70
+
71
+ - id: dev-notes
72
+ title: Dev Notes
73
+ instruction: |
74
+ Populate relevant information, only what was pulled from actual artifacts from docs folder, relevant to this story:
75
+ - Do not invent information
76
+ - If known add Relevant Source Tree info that relates to this story
77
+ - If there were important notes from previous story that are relevant to this one, include them here
78
+ - Put enough information in this section so that the dev agent should NEVER need to read the architecture documents, these notes along with the tasks and subtasks must give the Dev Agent the complete context it needs to comprehend with the least amount of overhead the information to complete the story, meeting all AC and completing all tasks+subtasks
79
+ elicit: true
80
+ owner: scrum-master
81
+ editors: [scrum-master]
82
+ sections:
83
+ - id: testing-standards
84
+ title: Testing
85
+ instruction: |
86
+ List Relevant Testing Standards from Architecture the Developer needs to conform to:
87
+ - Test file location
88
+ - Test standards
89
+ - Testing frameworks and patterns to use
90
+ - Any specific testing requirements for this story
91
+ elicit: true
92
+ owner: scrum-master
93
+ editors: [scrum-master]
94
+
95
+ - id: change-log
96
+ title: Change Log
97
+ type: table
98
+ columns: [Date, Version, Description, Author]
99
+ instruction: Track changes made to this story document
100
+ owner: scrum-master
101
+ editors: [scrum-master, dev-agent, qa-agent]
102
+
103
+ - id: dev-agent-record
104
+ title: Dev Agent Record
105
+ instruction: This section is populated by the development agent during implementation
106
+ owner: dev-agent
107
+ editors: [dev-agent]
108
+ sections:
109
+ - id: agent-model
110
+ title: Agent Model Used
111
+ template: "{{agent_model_name_version}}"
112
+ instruction: Record the specific AI agent model and version used for development
113
+ owner: dev-agent
114
+ editors: [dev-agent]
115
+
116
+ - id: debug-log-references
117
+ title: Debug Log References
118
+ instruction: Reference any debug logs or traces generated during development
119
+ owner: dev-agent
120
+ editors: [dev-agent]
121
+
122
+ - id: completion-notes
123
+ title: Completion Notes List
124
+ instruction: Notes about the completion of tasks and any issues encountered
125
+ owner: dev-agent
126
+ editors: [dev-agent]
127
+
128
+ - id: file-list
129
+ title: File List
130
+ instruction: List all files created, modified, or affected during story implementation
131
+ owner: dev-agent
132
+ editors: [dev-agent]
133
+
134
+ - id: qa-results
135
+ title: QA Results
136
+ instruction: Results from QA Agent QA review of the completed story implementation
137
+ owner: qa-agent
138
+ editors: [qa-agent]
@@ -0,0 +1,298 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ workflow:
3
+ id: brownfield-fullstack
4
+ name: Brownfield Full-Stack Enhancement
5
+ description: >-
6
+ Agent workflow for enhancing existing full-stack applications with new features,
7
+ modernization, or significant changes. Handles existing system analysis and safe integration.
8
+ type: brownfield
9
+ project_types:
10
+ - feature-addition
11
+ - refactoring
12
+ - modernization
13
+ - integration-enhancement
14
+
15
+ sequence:
16
+ - step: enhancement_classification
17
+ agent: analyst
18
+ action: classify enhancement scope
19
+ notes: |
20
+ Determine enhancement complexity to route to appropriate path:
21
+ - Single story (< 4 hours) → Use brownfield-create-story task
22
+ - Small feature (1-3 stories) → Use brownfield-create-epic task
23
+ - Major enhancement (multiple epics) → Continue with full workflow
24
+
25
+ Ask user: "Can you describe the enhancement scope? Is this a small fix, a feature addition, or a major enhancement requiring architectural changes?"
26
+
27
+ - step: routing_decision
28
+ condition: based_on_classification
29
+ routes:
30
+ single_story:
31
+ agent: pm
32
+ uses: brownfield-create-story
33
+ notes: "Create single story for immediate implementation. Exit workflow after story creation."
34
+ small_feature:
35
+ agent: pm
36
+ uses: brownfield-create-epic
37
+ notes: "Create focused epic with 1-3 stories. Exit workflow after epic creation."
38
+ major_enhancement:
39
+ continue: to_next_step
40
+ notes: "Continue with comprehensive planning workflow below."
41
+
42
+ - step: documentation_check
43
+ agent: analyst
44
+ action: check existing documentation
45
+ condition: major_enhancement_path
46
+ notes: |
47
+ Check if adequate project documentation exists:
48
+ - Look for existing architecture docs, API specs, coding standards
49
+ - Assess if documentation is current and comprehensive
50
+ - If adequate: Skip document-project, proceed to PRD
51
+ - If inadequate: Run document-project first
52
+
53
+ - step: project_analysis
54
+ agent: architect
55
+ action: analyze existing project and use task document-project
56
+ creates: brownfield-architecture.md (or multiple documents)
57
+ condition: documentation_inadequate
58
+ notes: "Run document-project to capture current system state, technical debt, and constraints. Pass findings to PRD creation."
59
+
60
+ - agent: pm
61
+ creates: prd.md
62
+ uses: brownfield-prd-tmpl
63
+ requires: existing_documentation_or_analysis
64
+ notes: |
65
+ Creates PRD for major enhancement. If document-project was run, reference its output to avoid re-analysis.
66
+ If skipped, use existing project documentation.
67
+ SAVE OUTPUT: Copy final prd.md to your project's docs/ folder.
68
+
69
+ - step: architecture_decision
70
+ agent: pm/architect
71
+ action: determine if architecture document needed
72
+ condition: after_prd_creation
73
+ notes: |
74
+ Review PRD to determine if architectural planning is needed:
75
+ - New architectural patterns → Create architecture doc
76
+ - New libraries/frameworks → Create architecture doc
77
+ - Platform/infrastructure changes → Create architecture doc
78
+ - Following existing patterns → Skip to story creation
79
+
80
+ - agent: architect
81
+ creates: architecture.md
82
+ uses: brownfield-architecture-tmpl
83
+ requires: prd.md
84
+ condition: architecture_changes_needed
85
+ notes: "Creates architecture ONLY for significant architectural changes. SAVE OUTPUT: Copy final architecture.md to your project's docs/ folder."
86
+
87
+ - agent: po
88
+ validates: all_artifacts
89
+ uses: po-master-checklist
90
+ notes: "Validates all documents for integration safety and completeness. May require updates to any document."
91
+
92
+ - agent: various
93
+ updates: any_flagged_documents
94
+ condition: po_checklist_issues
95
+ notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
96
+
97
+ - agent: po
98
+ action: shard_documents
99
+ creates: sharded_docs
100
+ requires: all_artifacts_in_project
101
+ notes: |
102
+ Shard documents for IDE development:
103
+ - Option A: Use PO agent to shard: @po then ask to shard docs/prd.md
104
+ - Option B: Manual: Drag shard-doc task + docs/prd.md into chat
105
+ - Creates docs/prd/ and docs/architecture/ folders with sharded content
106
+
107
+ - agent: sm
108
+ action: create_story
109
+ creates: story.md
110
+ requires: sharded_docs_or_brownfield_docs
111
+ repeats: for_each_epic_or_enhancement
112
+ notes: |
113
+ Story creation cycle:
114
+ - For sharded PRD: @sm → *create (uses create-next-story)
115
+ - For brownfield docs: @sm → use create-brownfield-story task
116
+ - Creates story from available documentation
117
+ - Story starts in "Draft" status
118
+ - May require additional context gathering for brownfield
119
+
120
+ - agent: analyst/pm
121
+ action: review_draft_story
122
+ updates: story.md
123
+ requires: story.md
124
+ optional: true
125
+ condition: user_wants_story_review
126
+ notes: |
127
+ OPTIONAL: Review and approve draft story
128
+ - NOTE: story-review task coming soon
129
+ - Review story completeness and alignment
130
+ - Update story status: Draft → Approved
131
+
132
+ - agent: dev
133
+ action: implement_story
134
+ creates: implementation_files
135
+ requires: story.md
136
+ notes: |
137
+ Dev Agent (New Chat): @dev
138
+ - Implements approved story
139
+ - Updates File List with all changes
140
+ - Marks story as "Review" when complete
141
+
142
+ - agent: qa
143
+ action: review_implementation
144
+ updates: implementation_files
145
+ requires: implementation_files
146
+ optional: true
147
+ notes: |
148
+ OPTIONAL: QA Agent (New Chat): @qa → review-story
149
+ - Senior dev review with refactoring ability
150
+ - Fixes small issues directly
151
+ - Leaves checklist for remaining items
152
+ - Updates story status (Review → Done or stays Review)
153
+
154
+ - agent: dev
155
+ action: address_qa_feedback
156
+ updates: implementation_files
157
+ condition: qa_left_unchecked_items
158
+ notes: |
159
+ If QA left unchecked items:
160
+ - Dev Agent (New Chat): Address remaining items
161
+ - Return to QA for final approval
162
+
163
+ - step: repeat_development_cycle
164
+ action: continue_for_all_stories
165
+ notes: |
166
+ Repeat story cycle (SM → Dev → QA) for all epic stories
167
+ Continue until all stories in PRD are complete
168
+
169
+ - agent: po
170
+ action: epic_retrospective
171
+ creates: epic-retrospective.md
172
+ condition: epic_complete
173
+ optional: true
174
+ notes: |
175
+ OPTIONAL: After epic completion
176
+ - NOTE: epic-retrospective task coming soon
177
+ - Validate epic was completed correctly
178
+ - Document learnings and improvements
179
+
180
+ - step: workflow_end
181
+ action: project_complete
182
+ notes: |
183
+ All stories implemented and reviewed!
184
+ Project development phase complete.
185
+
186
+ Reference: .bmad-core/data/bmad-kb.md#IDE Development Workflow
187
+
188
+ flow_diagram: |
189
+ ```mermaid
190
+ graph TD
191
+ A[Start: Brownfield Enhancement] --> B[analyst: classify enhancement scope]
192
+ B --> C{Enhancement Size?}
193
+
194
+ C -->|Single Story| D[pm: brownfield-create-story]
195
+ C -->|1-3 Stories| E[pm: brownfield-create-epic]
196
+ C -->|Major Enhancement| F[analyst: check documentation]
197
+
198
+ D --> END1[To Dev Implementation]
199
+ E --> END2[To Story Creation]
200
+
201
+ F --> G{Docs Adequate?}
202
+ G -->|No| H[architect: document-project]
203
+ G -->|Yes| I[pm: brownfield PRD]
204
+ H --> I
205
+
206
+ I --> J{Architecture Needed?}
207
+ J -->|Yes| K[architect: architecture.md]
208
+ J -->|No| L[po: validate artifacts]
209
+ K --> L
210
+
211
+ L --> M{PO finds issues?}
212
+ M -->|Yes| N[Fix issues]
213
+ M -->|No| O[po: shard documents]
214
+ N --> L
215
+
216
+ O --> P[sm: create story]
217
+ P --> Q{Story Type?}
218
+ Q -->|Sharded PRD| R[create-next-story]
219
+ Q -->|Brownfield Docs| S[create-brownfield-story]
220
+
221
+ R --> T{Review draft?}
222
+ S --> T
223
+ T -->|Yes| U[review & approve]
224
+ T -->|No| V[dev: implement]
225
+ U --> V
226
+
227
+ V --> W{QA review?}
228
+ W -->|Yes| X[qa: review]
229
+ W -->|No| Y{More stories?}
230
+ X --> Z{Issues?}
231
+ Z -->|Yes| AA[dev: fix]
232
+ Z -->|No| Y
233
+ AA --> X
234
+ Y -->|Yes| P
235
+ Y -->|No| AB{Retrospective?}
236
+ AB -->|Yes| AC[po: retrospective]
237
+ AB -->|No| AD[Complete]
238
+ AC --> AD
239
+
240
+ style AD fill:#90EE90
241
+ style END1 fill:#90EE90
242
+ style END2 fill:#90EE90
243
+ style D fill:#87CEEB
244
+ style E fill:#87CEEB
245
+ style I fill:#FFE4B5
246
+ style K fill:#FFE4B5
247
+ style O fill:#ADD8E6
248
+ style P fill:#ADD8E6
249
+ style V fill:#ADD8E6
250
+ style U fill:#F0E68C
251
+ style X fill:#F0E68C
252
+ style AC fill:#F0E68C
253
+ ```
254
+
255
+ decision_guidance:
256
+ when_to_use:
257
+ - Enhancement requires coordinated stories
258
+ - Architectural changes are needed
259
+ - Significant integration work required
260
+ - Risk assessment and mitigation planning necessary
261
+ - Multiple team members will work on related changes
262
+
263
+ handoff_prompts:
264
+ classification_complete: |
265
+ Enhancement classified as: {{enhancement_type}}
266
+ {{if single_story}}: Proceeding with brownfield-create-story task for immediate implementation.
267
+ {{if small_feature}}: Creating focused epic with brownfield-create-epic task.
268
+ {{if major_enhancement}}: Continuing with comprehensive planning workflow.
269
+
270
+ documentation_assessment: |
271
+ Documentation assessment complete:
272
+ {{if adequate}}: Existing documentation is sufficient. Proceeding directly to PRD creation.
273
+ {{if inadequate}}: Running document-project to capture current system state before PRD.
274
+
275
+ document_project_to_pm: |
276
+ Project analysis complete. Key findings documented in:
277
+ - {{document_list}}
278
+ Use these findings to inform PRD creation and avoid re-analyzing the same aspects.
279
+
280
+ pm_to_architect_decision: |
281
+ PRD complete and saved as docs/prd.md.
282
+ Architectural changes identified: {{yes/no}}
283
+ {{if yes}}: Proceeding to create architecture document for: {{specific_changes}}
284
+ {{if no}}: No architectural changes needed. Proceeding to validation.
285
+
286
+ architect_to_po: "Architecture complete. Save it as docs/architecture.md. Please validate all artifacts for integration safety."
287
+
288
+ po_to_sm: |
289
+ All artifacts validated.
290
+ Documentation type available: {{sharded_prd / brownfield_docs}}
291
+ {{if sharded}}: Use standard create-next-story task.
292
+ {{if brownfield}}: Use create-brownfield-story task to handle varied documentation formats.
293
+
294
+ sm_story_creation: |
295
+ Creating story from {{documentation_type}}.
296
+ {{if missing_context}}: May need to gather additional context from user during story creation.
297
+
298
+ complete: "All planning artifacts validated and development can begin. Stories will be created based on available documentation format."