@posx/core 5.5.166 → 5.5.167

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 (107) hide show
  1. package/build/index.js +1 -1
  2. package/package.json +1 -1
  3. package/package.publish.json +1 -1
  4. package/.bmad-core/agent-teams/team-all.yaml +0 -14
  5. package/.bmad-core/agent-teams/team-fullstack.yaml +0 -18
  6. package/.bmad-core/agent-teams/team-ide-minimal.yaml +0 -10
  7. package/.bmad-core/agent-teams/team-no-ui.yaml +0 -13
  8. package/.bmad-core/agents/analyst.md +0 -81
  9. package/.bmad-core/agents/architect.md +0 -83
  10. package/.bmad-core/agents/bmad-master.md +0 -107
  11. package/.bmad-core/agents/bmad-orchestrator.md +0 -149
  12. package/.bmad-core/agents/dev.md +0 -75
  13. package/.bmad-core/agents/pm.md +0 -81
  14. package/.bmad-core/agents/po.md +0 -76
  15. package/.bmad-core/agents/qa.md +0 -69
  16. package/.bmad-core/agents/sm.md +0 -62
  17. package/.bmad-core/agents/ux-expert.md +0 -66
  18. package/.bmad-core/bmad-core/user-guide.md +0 -0
  19. package/.bmad-core/checklists/architect-checklist.md +0 -443
  20. package/.bmad-core/checklists/change-checklist.md +0 -182
  21. package/.bmad-core/checklists/pm-checklist.md +0 -375
  22. package/.bmad-core/checklists/po-master-checklist.md +0 -441
  23. package/.bmad-core/checklists/story-dod-checklist.md +0 -101
  24. package/.bmad-core/checklists/story-draft-checklist.md +0 -156
  25. package/.bmad-core/core-config.yaml +0 -20
  26. package/.bmad-core/data/bmad-kb.md +0 -813
  27. package/.bmad-core/data/brainstorming-techniques.md +0 -36
  28. package/.bmad-core/data/elicitation-methods.md +0 -154
  29. package/.bmad-core/data/technical-preferences.md +0 -3
  30. package/.bmad-core/enhanced-ide-development-workflow.md +0 -43
  31. package/.bmad-core/install-manifest.yaml +0 -207
  32. package/.bmad-core/tasks/advanced-elicitation.md +0 -119
  33. package/.bmad-core/tasks/brownfield-create-epic.md +0 -160
  34. package/.bmad-core/tasks/brownfield-create-story.md +0 -147
  35. package/.bmad-core/tasks/correct-course.md +0 -70
  36. package/.bmad-core/tasks/create-brownfield-story.md +0 -321
  37. package/.bmad-core/tasks/create-deep-research-prompt.md +0 -289
  38. package/.bmad-core/tasks/create-doc.md +0 -101
  39. package/.bmad-core/tasks/create-next-story.md +0 -112
  40. package/.bmad-core/tasks/document-project.md +0 -347
  41. package/.bmad-core/tasks/execute-checklist.md +0 -93
  42. package/.bmad-core/tasks/facilitate-brainstorming-session.md +0 -136
  43. package/.bmad-core/tasks/generate-ai-frontend-prompt.md +0 -51
  44. package/.bmad-core/tasks/index-docs.md +0 -178
  45. package/.bmad-core/tasks/kb-mode-interaction.md +0 -75
  46. package/.bmad-core/tasks/review-story.md +0 -162
  47. package/.bmad-core/tasks/shard-doc.md +0 -187
  48. package/.bmad-core/tasks/validate-next-story.md +0 -134
  49. package/.bmad-core/templates/architecture-tmpl.yaml +0 -650
  50. package/.bmad-core/templates/brainstorming-output-tmpl.yaml +0 -156
  51. package/.bmad-core/templates/brownfield-architecture-tmpl.yaml +0 -476
  52. package/.bmad-core/templates/brownfield-prd-tmpl.yaml +0 -280
  53. package/.bmad-core/templates/competitor-analysis-tmpl.yaml +0 -293
  54. package/.bmad-core/templates/front-end-architecture-tmpl.yaml +0 -206
  55. package/.bmad-core/templates/front-end-spec-tmpl.yaml +0 -349
  56. package/.bmad-core/templates/fullstack-architecture-tmpl.yaml +0 -805
  57. package/.bmad-core/templates/market-research-tmpl.yaml +0 -252
  58. package/.bmad-core/templates/prd-tmpl.yaml +0 -202
  59. package/.bmad-core/templates/project-brief-tmpl.yaml +0 -221
  60. package/.bmad-core/templates/story-tmpl.yaml +0 -137
  61. package/.bmad-core/user-guide.md +0 -251
  62. package/.bmad-core/utils/bmad-doc-template.md +0 -325
  63. package/.bmad-core/utils/workflow-management.md +0 -69
  64. package/.bmad-core/workflows/brownfield-fullstack.yaml +0 -297
  65. package/.bmad-core/workflows/brownfield-service.yaml +0 -187
  66. package/.bmad-core/workflows/brownfield-ui.yaml +0 -197
  67. package/.bmad-core/workflows/greenfield-fullstack.yaml +0 -240
  68. package/.bmad-core/workflows/greenfield-service.yaml +0 -206
  69. package/.bmad-core/workflows/greenfield-ui.yaml +0 -235
  70. package/.bmad-core/working-in-the-brownfield.md +0 -364
  71. package/.claude/commands/BMad/agents/analyst.md +0 -85
  72. package/.claude/commands/BMad/agents/architect.md +0 -87
  73. package/.claude/commands/BMad/agents/bmad-master.md +0 -111
  74. package/.claude/commands/BMad/agents/bmad-orchestrator.md +0 -153
  75. package/.claude/commands/BMad/agents/dev.md +0 -79
  76. package/.claude/commands/BMad/agents/pm.md +0 -85
  77. package/.claude/commands/BMad/agents/po.md +0 -80
  78. package/.claude/commands/BMad/agents/qa.md +0 -73
  79. package/.claude/commands/BMad/agents/sm.md +0 -66
  80. package/.claude/commands/BMad/agents/ux-expert.md +0 -70
  81. package/.claude/commands/BMad/tasks/advanced-elicitation.md +0 -123
  82. package/.claude/commands/BMad/tasks/brownfield-create-epic.md +0 -164
  83. package/.claude/commands/BMad/tasks/brownfield-create-story.md +0 -151
  84. package/.claude/commands/BMad/tasks/correct-course.md +0 -74
  85. package/.claude/commands/BMad/tasks/create-brownfield-story.md +0 -325
  86. package/.claude/commands/BMad/tasks/create-deep-research-prompt.md +0 -293
  87. package/.claude/commands/BMad/tasks/create-doc.md +0 -105
  88. package/.claude/commands/BMad/tasks/create-next-story.md +0 -116
  89. package/.claude/commands/BMad/tasks/document-project.md +0 -351
  90. package/.claude/commands/BMad/tasks/execute-checklist.md +0 -97
  91. package/.claude/commands/BMad/tasks/facilitate-brainstorming-session.md +0 -140
  92. package/.claude/commands/BMad/tasks/generate-ai-frontend-prompt.md +0 -55
  93. package/.claude/commands/BMad/tasks/index-docs.md +0 -182
  94. package/.claude/commands/BMad/tasks/kb-mode-interaction.md +0 -79
  95. package/.claude/commands/BMad/tasks/review-story.md +0 -166
  96. package/.claude/commands/BMad/tasks/shard-doc.md +0 -191
  97. package/.claude/commands/BMad/tasks/validate-next-story.md +0 -138
  98. package/.cursor/rules/analyst.mdc +0 -95
  99. package/.cursor/rules/architect.mdc +0 -97
  100. package/.cursor/rules/bmad-master.mdc +0 -121
  101. package/.cursor/rules/bmad-orchestrator.mdc +0 -163
  102. package/.cursor/rules/dev.mdc +0 -89
  103. package/.cursor/rules/pm.mdc +0 -95
  104. package/.cursor/rules/po.mdc +0 -90
  105. package/.cursor/rules/qa.mdc +0 -83
  106. package/.cursor/rules/sm.mdc +0 -76
  107. package/.cursor/rules/ux-expert.mdc +0 -80
@@ -1,160 +0,0 @@
1
- # Create Brownfield Epic Task
2
-
3
- ## Purpose
4
-
5
- Create a single epic for smaller brownfield enhancements that don't require the full PRD and Architecture documentation process. This task is for isolated features or modifications that can be completed within a focused scope.
6
-
7
- ## When to Use This Task
8
-
9
- **Use this task when:**
10
-
11
- - The enhancement can be completed in 1-3 stories
12
- - No significant architectural changes are required
13
- - The enhancement follows existing project patterns
14
- - Integration complexity is minimal
15
- - Risk to existing system is low
16
-
17
- **Use the full brownfield PRD/Architecture process when:**
18
-
19
- - The enhancement requires multiple coordinated stories
20
- - Architectural planning is needed
21
- - Significant integration work is required
22
- - Risk assessment and mitigation planning is necessary
23
-
24
- ## Instructions
25
-
26
- ### 1. Project Analysis (Required)
27
-
28
- Before creating the epic, gather essential information about the existing project:
29
-
30
- **Existing Project Context:**
31
-
32
- - [ ] Project purpose and current functionality understood
33
- - [ ] Existing technology stack identified
34
- - [ ] Current architecture patterns noted
35
- - [ ] Integration points with existing system identified
36
-
37
- **Enhancement Scope:**
38
-
39
- - [ ] Enhancement clearly defined and scoped
40
- - [ ] Impact on existing functionality assessed
41
- - [ ] Required integration points identified
42
- - [ ] Success criteria established
43
-
44
- ### 2. Epic Creation
45
-
46
- Create a focused epic following this structure:
47
-
48
- #### Epic Title
49
-
50
- {{Enhancement Name}} - Brownfield Enhancement
51
-
52
- #### Epic Goal
53
-
54
- {{1-2 sentences describing what the epic will accomplish and why it adds value}}
55
-
56
- #### Epic Description
57
-
58
- **Existing System Context:**
59
-
60
- - Current relevant functionality: {{brief description}}
61
- - Technology stack: {{relevant existing technologies}}
62
- - Integration points: {{where new work connects to existing system}}
63
-
64
- **Enhancement Details:**
65
-
66
- - What's being added/changed: {{clear description}}
67
- - How it integrates: {{integration approach}}
68
- - Success criteria: {{measurable outcomes}}
69
-
70
- #### Stories
71
-
72
- List 1-3 focused stories that complete the epic:
73
-
74
- 1. **Story 1:** {{Story title and brief description}}
75
- 2. **Story 2:** {{Story title and brief description}}
76
- 3. **Story 3:** {{Story title and brief description}}
77
-
78
- #### Compatibility Requirements
79
-
80
- - [ ] Existing APIs remain unchanged
81
- - [ ] Database schema changes are backward compatible
82
- - [ ] UI changes follow existing patterns
83
- - [ ] Performance impact is minimal
84
-
85
- #### Risk Mitigation
86
-
87
- - **Primary Risk:** {{main risk to existing system}}
88
- - **Mitigation:** {{how risk will be addressed}}
89
- - **Rollback Plan:** {{how to undo changes if needed}}
90
-
91
- #### Definition of Done
92
-
93
- - [ ] All stories completed with acceptance criteria met
94
- - [ ] Existing functionality verified through testing
95
- - [ ] Integration points working correctly
96
- - [ ] Documentation updated appropriately
97
- - [ ] No regression in existing features
98
-
99
- ### 3. Validation Checklist
100
-
101
- Before finalizing the epic, ensure:
102
-
103
- **Scope Validation:**
104
-
105
- - [ ] Epic can be completed in 1-3 stories maximum
106
- - [ ] No architectural documentation is required
107
- - [ ] Enhancement follows existing patterns
108
- - [ ] Integration complexity is manageable
109
-
110
- **Risk Assessment:**
111
-
112
- - [ ] Risk to existing system is low
113
- - [ ] Rollback plan is feasible
114
- - [ ] Testing approach covers existing functionality
115
- - [ ] Team has sufficient knowledge of integration points
116
-
117
- **Completeness Check:**
118
-
119
- - [ ] Epic goal is clear and achievable
120
- - [ ] Stories are properly scoped
121
- - [ ] Success criteria are measurable
122
- - [ ] Dependencies are identified
123
-
124
- ### 4. Handoff to Story Manager
125
-
126
- Once the epic is validated, provide this handoff to the Story Manager:
127
-
128
- ---
129
-
130
- **Story Manager Handoff:**
131
-
132
- "Please develop detailed user stories for this brownfield epic. Key considerations:
133
-
134
- - This is an enhancement to an existing system running {{technology stack}}
135
- - Integration points: {{list key integration points}}
136
- - Existing patterns to follow: {{relevant existing patterns}}
137
- - Critical compatibility requirements: {{key requirements}}
138
- - Each story must include verification that existing functionality remains intact
139
-
140
- The epic should maintain system integrity while delivering {{epic goal}}."
141
-
142
- ---
143
-
144
- ## Success Criteria
145
-
146
- The epic creation is successful when:
147
-
148
- 1. Enhancement scope is clearly defined and appropriately sized
149
- 2. Integration approach respects existing system architecture
150
- 3. Risk to existing functionality is minimized
151
- 4. Stories are logically sequenced for safe implementation
152
- 5. Compatibility requirements are clearly specified
153
- 6. Rollback plan is feasible and documented
154
-
155
- ## Important Notes
156
-
157
- - This task is specifically for SMALL brownfield enhancements
158
- - If the scope grows beyond 3 stories, consider the full brownfield PRD process
159
- - Always prioritize existing system integrity over new functionality
160
- - When in doubt about scope or complexity, escalate to full brownfield planning
@@ -1,147 +0,0 @@
1
- # Create Brownfield Story Task
2
-
3
- ## Purpose
4
-
5
- Create a single user story for very small brownfield enhancements that can be completed in one focused development session. This task is for minimal additions or bug fixes that require existing system integration awareness.
6
-
7
- ## When to Use This Task
8
-
9
- **Use this task when:**
10
-
11
- - The enhancement can be completed in a single story
12
- - No new architecture or significant design is required
13
- - The change follows existing patterns exactly
14
- - Integration is straightforward with minimal risk
15
- - Change is isolated with clear boundaries
16
-
17
- **Use brownfield-create-epic when:**
18
-
19
- - The enhancement requires 2-3 coordinated stories
20
- - Some design work is needed
21
- - Multiple integration points are involved
22
-
23
- **Use the full brownfield PRD/Architecture process when:**
24
-
25
- - The enhancement requires multiple coordinated stories
26
- - Architectural planning is needed
27
- - Significant integration work is required
28
-
29
- ## Instructions
30
-
31
- ### 1. Quick Project Assessment
32
-
33
- Gather minimal but essential context about the existing project:
34
-
35
- **Current System Context:**
36
-
37
- - [ ] Relevant existing functionality identified
38
- - [ ] Technology stack for this area noted
39
- - [ ] Integration point(s) clearly understood
40
- - [ ] Existing patterns for similar work identified
41
-
42
- **Change Scope:**
43
-
44
- - [ ] Specific change clearly defined
45
- - [ ] Impact boundaries identified
46
- - [ ] Success criteria established
47
-
48
- ### 2. Story Creation
49
-
50
- Create a single focused story following this structure:
51
-
52
- #### Story Title
53
-
54
- {{Specific Enhancement}} - Brownfield Addition
55
-
56
- #### User Story
57
-
58
- As a {{user type}},
59
- I want {{specific action/capability}},
60
- So that {{clear benefit/value}}.
61
-
62
- #### Story Context
63
-
64
- **Existing System Integration:**
65
-
66
- - Integrates with: {{existing component/system}}
67
- - Technology: {{relevant tech stack}}
68
- - Follows pattern: {{existing pattern to follow}}
69
- - Touch points: {{specific integration points}}
70
-
71
- #### Acceptance Criteria
72
-
73
- **Functional Requirements:**
74
-
75
- 1. {{Primary functional requirement}}
76
- 2. {{Secondary functional requirement (if any)}}
77
- 3. {{Integration requirement}}
78
-
79
- **Integration Requirements:** 4. Existing {{relevant functionality}} continues to work unchanged 5. New functionality follows existing {{pattern}} pattern 6. Integration with {{system/component}} maintains current behavior
80
-
81
- **Quality Requirements:** 7. Change is covered by appropriate tests 8. Documentation is updated if needed 9. No regression in existing functionality verified
82
-
83
- #### Technical Notes
84
-
85
- - **Integration Approach:** {{how it connects to existing system}}
86
- - **Existing Pattern Reference:** {{link or description of pattern to follow}}
87
- - **Key Constraints:** {{any important limitations or requirements}}
88
-
89
- #### Definition of Done
90
-
91
- - [ ] Functional requirements met
92
- - [ ] Integration requirements verified
93
- - [ ] Existing functionality regression tested
94
- - [ ] Code follows existing patterns and standards
95
- - [ ] Tests pass (existing and new)
96
- - [ ] Documentation updated if applicable
97
-
98
- ### 3. Risk and Compatibility Check
99
-
100
- **Minimal Risk Assessment:**
101
-
102
- - **Primary Risk:** {{main risk to existing system}}
103
- - **Mitigation:** {{simple mitigation approach}}
104
- - **Rollback:** {{how to undo if needed}}
105
-
106
- **Compatibility Verification:**
107
-
108
- - [ ] No breaking changes to existing APIs
109
- - [ ] Database changes (if any) are additive only
110
- - [ ] UI changes follow existing design patterns
111
- - [ ] Performance impact is negligible
112
-
113
- ### 4. Validation Checklist
114
-
115
- Before finalizing the story, confirm:
116
-
117
- **Scope Validation:**
118
-
119
- - [ ] Story can be completed in one development session
120
- - [ ] Integration approach is straightforward
121
- - [ ] Follows existing patterns exactly
122
- - [ ] No design or architecture work required
123
-
124
- **Clarity Check:**
125
-
126
- - [ ] Story requirements are unambiguous
127
- - [ ] Integration points are clearly specified
128
- - [ ] Success criteria are testable
129
- - [ ] Rollback approach is simple
130
-
131
- ## Success Criteria
132
-
133
- The story creation is successful when:
134
-
135
- 1. Enhancement is clearly defined and appropriately scoped for single session
136
- 2. Integration approach is straightforward and low-risk
137
- 3. Existing system patterns are identified and will be followed
138
- 4. Rollback plan is simple and feasible
139
- 5. Acceptance criteria include existing functionality verification
140
-
141
- ## Important Notes
142
-
143
- - This task is for VERY SMALL brownfield changes only
144
- - If complexity grows during analysis, escalate to brownfield-create-epic
145
- - Always prioritize existing system integrity
146
- - When in doubt about integration complexity, use brownfield-create-epic instead
147
- - Stories should take no more than 4 hours of focused development work
@@ -1,70 +0,0 @@
1
- # Correct Course Task
2
-
3
- ## Purpose
4
-
5
- - Guide a structured response to a change trigger using the `.bmad-core/checklists/change-checklist`.
6
- - Analyze the impacts of the change on epics, project artifacts, and the MVP, guided by the checklist's structure.
7
- - Explore potential solutions (e.g., adjust scope, rollback elements, re-scope features) as prompted by the checklist.
8
- - Draft specific, actionable proposed updates to any affected project artifacts (e.g., epics, user stories, PRD sections, architecture document sections) based on the analysis.
9
- - Produce a consolidated "Sprint Change Proposal" document that contains the impact analysis and the clearly drafted proposed edits for user review and approval.
10
- - Ensure a clear handoff path if the nature of the changes necessitates fundamental replanning by other core agents (like PM or Architect).
11
-
12
- ## Instructions
13
-
14
- ### 1. Initial Setup & Mode Selection
15
-
16
- - **Acknowledge Task & Inputs:**
17
- - Confirm with the user that the "Correct Course Task" (Change Navigation & Integration) is being initiated.
18
- - Verify the change trigger and ensure you have the user's initial explanation of the issue and its perceived impact.
19
- - Confirm access to all relevant project artifacts (e.g., PRD, Epics/Stories, Architecture Documents, UI/UX Specifications) and, critically, the `.bmad-core/checklists/change-checklist`.
20
- - **Establish Interaction Mode:**
21
- - Ask the user their preferred interaction mode for this task:
22
- - **"Incrementally (Default & Recommended):** Shall we work through the change-checklist section by section, discussing findings and collaboratively drafting proposed changes for each relevant part before moving to the next? This allows for detailed, step-by-step refinement."
23
- - **"YOLO Mode (Batch Processing):** Or, would you prefer I conduct a more batched analysis based on the checklist and then present a consolidated set of findings and proposed changes for a broader review? This can be quicker for initial assessment but might require more extensive review of the combined proposals."
24
- - Once the user chooses, confirm the selected mode and then inform the user: "We will now use the change-checklist to analyze the change and draft proposed updates. I will guide you through the checklist items based on our chosen interaction mode."
25
-
26
- ### 2. Execute Checklist Analysis (Iteratively or Batched, per Interaction Mode)
27
-
28
- - Systematically work through Sections 1-4 of the change-checklist (typically covering Change Context, Epic/Story Impact Analysis, Artifact Conflict Resolution, and Path Evaluation/Recommendation).
29
- - For each checklist item or logical group of items (depending on interaction mode):
30
- - Present the relevant prompt(s) or considerations from the checklist to the user.
31
- - Request necessary information and actively analyze the relevant project artifacts (PRD, epics, architecture documents, story history, etc.) to assess the impact.
32
- - Discuss your findings for each item with the user.
33
- - Record the status of each checklist item (e.g., `[x] Addressed`, `[N/A]`, `[!] Further Action Needed`) and any pertinent notes or decisions.
34
- - Collaboratively agree on the "Recommended Path Forward" as prompted by Section 4 of the checklist.
35
-
36
- ### 3. Draft Proposed Changes (Iteratively or Batched)
37
-
38
- - Based on the completed checklist analysis (Sections 1-4) and the agreed "Recommended Path Forward" (excluding scenarios requiring fundamental replans that would necessitate immediate handoff to PM/Architect):
39
- - Identify the specific project artifacts that require updates (e.g., specific epics, user stories, PRD sections, architecture document components, diagrams).
40
- - **Draft the proposed changes directly and explicitly for each identified artifact.** Examples include:
41
- - Revising user story text, acceptance criteria, or priority.
42
- - Adding, removing, reordering, or splitting user stories within epics.
43
- - Proposing modified architecture diagram snippets (e.g., providing an updated Mermaid diagram block or a clear textual description of the change to an existing diagram).
44
- - Updating technology lists, configuration details, or specific sections within the PRD or architecture documents.
45
- - Drafting new, small supporting artifacts if necessary (e.g., a brief addendum for a specific decision).
46
- - If in "Incremental Mode," discuss and refine these proposed edits for each artifact or small group of related artifacts with the user as they are drafted.
47
- - If in "YOLO Mode," compile all drafted edits for presentation in the next step.
48
-
49
- ### 4. Generate "Sprint Change Proposal" with Edits
50
-
51
- - Synthesize the complete change-checklist analysis (covering findings from Sections 1-4) and all the agreed-upon proposed edits (from Instruction 3) into a single document titled "Sprint Change Proposal." This proposal should align with the structure suggested by Section 5 of the change-checklist.
52
- - The proposal must clearly present:
53
- - **Analysis Summary:** A concise overview of the original issue, its analyzed impact (on epics, artifacts, MVP scope), and the rationale for the chosen path forward.
54
- - **Specific Proposed Edits:** For each affected artifact, clearly show or describe the exact changes (e.g., "Change Story X.Y from: [old text] To: [new text]", "Add new Acceptance Criterion to Story A.B: [new AC]", "Update Section 3.2 of Architecture Document as follows: [new/modified text or diagram description]").
55
- - Present the complete draft of the "Sprint Change Proposal" to the user for final review and feedback. Incorporate any final adjustments requested by the user.
56
-
57
- ### 5. Finalize & Determine Next Steps
58
-
59
- - Obtain explicit user approval for the "Sprint Change Proposal," including all the specific edits documented within it.
60
- - Provide the finalized "Sprint Change Proposal" document to the user.
61
- - **Based on the nature of the approved changes:**
62
- - **If the approved edits sufficiently address the change and can be implemented directly or organized by a PO/SM:** State that the "Correct Course Task" is complete regarding analysis and change proposal, and the user can now proceed with implementing or logging these changes (e.g., updating actual project documents, backlog items). Suggest handoff to a PO/SM agent for backlog organization if appropriate.
63
- - **If the analysis and proposed path (as per checklist Section 4 and potentially Section 6) indicate that the change requires a more fundamental replan (e.g., significant scope change, major architectural rework):** Clearly state this conclusion. Advise the user that the next step involves engaging the primary PM or Architect agents, using the "Sprint Change Proposal" as critical input and context for that deeper replanning effort.
64
-
65
- ## Output Deliverables
66
-
67
- - **Primary:** A "Sprint Change Proposal" document (in markdown format). This document will contain:
68
- - A summary of the change-checklist analysis (issue, impact, rationale for the chosen path).
69
- - Specific, clearly drafted proposed edits for all affected project artifacts.
70
- - **Implicit:** An annotated change-checklist (or the record of its completion) reflecting the discussions, findings, and decisions made during the process.
@@ -1,321 +0,0 @@
1
- # Create Brownfield Story Task
2
-
3
- ## Purpose
4
-
5
- Create detailed, implementation-ready stories for brownfield projects where traditional sharded PRD/architecture documents may not exist. This task bridges the gap between various documentation formats (document-project output, brownfield PRDs, epics, or user documentation) and executable stories for the Dev agent.
6
-
7
- ## When to Use This Task
8
-
9
- **Use this task when:**
10
-
11
- - Working on brownfield projects with non-standard documentation
12
- - Stories need to be created from document-project output
13
- - Working from brownfield epics without full PRD/architecture
14
- - Existing project documentation doesn't follow BMad v4+ structure
15
- - Need to gather additional context from user during story creation
16
-
17
- **Use create-next-story when:**
18
-
19
- - Working with properly sharded PRD and v4 architecture documents
20
- - Following standard greenfield or well-documented brownfield workflow
21
- - All technical context is available in structured format
22
-
23
- ## Task Execution Instructions
24
-
25
- ### 0. Documentation Context
26
-
27
- Check for available documentation in this order:
28
-
29
- 1. **Sharded PRD/Architecture** (docs/prd/, docs/architecture/)
30
-
31
- - If found, recommend using create-next-story task instead
32
-
33
- 2. **Brownfield Architecture Document** (docs/brownfield-architecture.md or similar)
34
-
35
- - Created by document-project task
36
- - Contains actual system state, technical debt, workarounds
37
-
38
- 3. **Brownfield PRD** (docs/prd.md)
39
-
40
- - May contain embedded technical details
41
-
42
- 4. **Epic Files** (docs/epics/ or similar)
43
-
44
- - Created by brownfield-create-epic task
45
-
46
- 5. **User-Provided Documentation**
47
- - Ask user to specify location and format
48
-
49
- ### 1. Story Identification and Context Gathering
50
-
51
- #### 1.1 Identify Story Source
52
-
53
- Based on available documentation:
54
-
55
- - **From Brownfield PRD**: Extract stories from epic sections
56
- - **From Epic Files**: Read epic definition and story list
57
- - **From User Direction**: Ask user which specific enhancement to implement
58
- - **No Clear Source**: Work with user to define the story scope
59
-
60
- #### 1.2 Gather Essential Context
61
-
62
- CRITICAL: For brownfield stories, you MUST gather enough context for safe implementation. Be prepared to ask the user for missing information.
63
-
64
- **Required Information Checklist:**
65
-
66
- - [ ] What existing functionality might be affected?
67
- - [ ] What are the integration points with current code?
68
- - [ ] What patterns should be followed (with examples)?
69
- - [ ] What technical constraints exist?
70
- - [ ] Are there any "gotchas" or workarounds to know about?
71
-
72
- If any required information is missing, list the missing information and ask the user to provide it.
73
-
74
- ### 2. Extract Technical Context from Available Sources
75
-
76
- #### 2.1 From Document-Project Output
77
-
78
- If using brownfield-architecture.md from document-project:
79
-
80
- - **Technical Debt Section**: Note any workarounds affecting this story
81
- - **Key Files Section**: Identify files that will need modification
82
- - **Integration Points**: Find existing integration patterns
83
- - **Known Issues**: Check if story touches problematic areas
84
- - **Actual Tech Stack**: Verify versions and constraints
85
-
86
- #### 2.2 From Brownfield PRD
87
-
88
- If using brownfield PRD:
89
-
90
- - **Technical Constraints Section**: Extract all relevant constraints
91
- - **Integration Requirements**: Note compatibility requirements
92
- - **Code Organization**: Follow specified patterns
93
- - **Risk Assessment**: Understand potential impacts
94
-
95
- #### 2.3 From User Documentation
96
-
97
- Ask the user to help identify:
98
-
99
- - Relevant technical specifications
100
- - Existing code examples to follow
101
- - Integration requirements
102
- - Testing approaches used in the project
103
-
104
- ### 3. Story Creation with Progressive Detail Gathering
105
-
106
- #### 3.1 Create Initial Story Structure
107
-
108
- Start with the story template, filling in what's known:
109
-
110
- ```markdown
111
- # Story {{Enhancement Title}}
112
-
113
- ## Status: Draft
114
-
115
- ## Story
116
-
117
- As a {{user_type}},
118
- I want {{enhancement_capability}},
119
- so that {{value_delivered}}.
120
-
121
- ## Context Source
122
-
123
- - Source Document: {{document name/type}}
124
- - Enhancement Type: {{single feature/bug fix/integration/etc}}
125
- - Existing System Impact: {{brief assessment}}
126
- ```
127
-
128
- #### 3.2 Develop Acceptance Criteria
129
-
130
- Critical: For brownfield, ALWAYS include criteria about maintaining existing functionality
131
-
132
- Standard structure:
133
-
134
- 1. New functionality works as specified
135
- 2. Existing {{affected feature}} continues to work unchanged
136
- 3. Integration with {{existing system}} maintains current behavior
137
- 4. No regression in {{related area}}
138
- 5. Performance remains within acceptable bounds
139
-
140
- #### 3.3 Gather Technical Guidance
141
-
142
- Critical: This is where you'll need to be interactive with the user if information is missing
143
-
144
- Create Dev Technical Guidance section with available information:
145
-
146
- ````markdown
147
- ## Dev Technical Guidance
148
-
149
- ### Existing System Context
150
-
151
- [Extract from available documentation]
152
-
153
- ### Integration Approach
154
-
155
- [Based on patterns found or ask user]
156
-
157
- ### Technical Constraints
158
-
159
- [From documentation or user input]
160
-
161
- ### Missing Information
162
-
163
- Critical: List anything you couldn't find that dev will need and ask for the missing information
164
-
165
- ### 4. Task Generation with Safety Checks
166
-
167
- #### 4.1 Generate Implementation Tasks
168
-
169
- Based on gathered context, create tasks that:
170
-
171
- - Include exploration tasks if system understanding is incomplete
172
- - Add verification tasks for existing functionality
173
- - Include rollback considerations
174
- - Reference specific files/patterns when known
175
-
176
- Example task structure for brownfield:
177
-
178
- ```markdown
179
- ## Tasks / Subtasks
180
-
181
- - [ ] Task 1: Analyze existing {{component/feature}} implementation
182
-
183
- - [ ] Review {{specific files}} for current patterns
184
- - [ ] Document integration points
185
- - [ ] Identify potential impacts
186
-
187
- - [ ] Task 2: Implement {{new functionality}}
188
-
189
- - [ ] Follow pattern from {{example file}}
190
- - [ ] Integrate with {{existing component}}
191
- - [ ] Maintain compatibility with {{constraint}}
192
-
193
- - [ ] Task 3: Verify existing functionality
194
-
195
- - [ ] Test {{existing feature 1}} still works
196
- - [ ] Verify {{integration point}} behavior unchanged
197
- - [ ] Check performance impact
198
-
199
- - [ ] Task 4: Add tests
200
- - [ ] Unit tests following {{project test pattern}}
201
- - [ ] Integration test for {{integration point}}
202
- - [ ] Update existing tests if needed
203
- ```
204
- ````
205
-
206
- ### 5. Risk Assessment and Mitigation
207
-
208
- CRITICAL: for brownfield - always include risk assessment
209
-
210
- Add section for brownfield-specific risks:
211
-
212
- ```markdown
213
- ## Risk Assessment
214
-
215
- ### Implementation Risks
216
-
217
- - **Primary Risk**: {{main risk to existing system}}
218
- - **Mitigation**: {{how to address}}
219
- - **Verification**: {{how to confirm safety}}
220
-
221
- ### Rollback Plan
222
-
223
- - {{Simple steps to undo changes if needed}}
224
-
225
- ### Safety Checks
226
-
227
- - [ ] Existing {{feature}} tested before changes
228
- - [ ] Changes can be feature-flagged or isolated
229
- - [ ] Rollback procedure documented
230
- ```
231
-
232
- ### 6. Final Story Validation
233
-
234
- Before finalizing:
235
-
236
- 1. **Completeness Check**:
237
-
238
- - [ ] Story has clear scope and acceptance criteria
239
- - [ ] Technical context is sufficient for implementation
240
- - [ ] Integration approach is defined
241
- - [ ] Risks are identified with mitigation
242
-
243
- 2. **Safety Check**:
244
-
245
- - [ ] Existing functionality protection included
246
- - [ ] Rollback plan is feasible
247
- - [ ] Testing covers both new and existing features
248
-
249
- 3. **Information Gaps**:
250
- - [ ] All critical missing information gathered from user
251
- - [ ] Remaining unknowns documented for dev agent
252
- - [ ] Exploration tasks added where needed
253
-
254
- ### 7. Story Output Format
255
-
256
- Save the story with appropriate naming:
257
-
258
- - If from epic: `docs/stories/epic-{n}-story-{m}.md`
259
- - If standalone: `docs/stories/brownfield-{feature-name}.md`
260
- - If sequential: Follow existing story numbering
261
-
262
- Include header noting documentation context:
263
-
264
- ```markdown
265
- # Story: {{Title}}
266
-
267
- <!-- Source: {{documentation type used}} -->
268
- <!-- Context: Brownfield enhancement to {{existing system}} -->
269
-
270
- ## Status: Draft
271
-
272
- [Rest of story content...]
273
- ```
274
-
275
- ### 8. Handoff Communication
276
-
277
- Provide clear handoff to the user:
278
-
279
- ```text
280
- Brownfield story created: {{story title}}
281
-
282
- Source Documentation: {{what was used}}
283
- Story Location: {{file path}}
284
-
285
- Key Integration Points Identified:
286
- - {{integration point 1}}
287
- - {{integration point 2}}
288
-
289
- Risks Noted:
290
- - {{primary risk}}
291
-
292
- {{If missing info}}:
293
- Note: Some technical details were unclear. The story includes exploration tasks to gather needed information during implementation.
294
-
295
- Next Steps:
296
- 1. Review story for accuracy
297
- 2. Verify integration approach aligns with your system
298
- 3. Approve story or request adjustments
299
- 4. Dev agent can then implement with safety checks
300
- ```
301
-
302
- ## Success Criteria
303
-
304
- The brownfield story creation is successful when:
305
-
306
- 1. Story can be implemented without requiring dev to search multiple documents
307
- 2. Integration approach is clear and safe for existing system
308
- 3. All available technical context has been extracted and organized
309
- 4. Missing information has been identified and addressed
310
- 5. Risks are documented with mitigation strategies
311
- 6. Story includes verification of existing functionality
312
- 7. Rollback approach is defined
313
-
314
- ## Important Notes
315
-
316
- - This task is specifically for brownfield projects with non-standard documentation
317
- - Always prioritize existing system stability over new features
318
- - When in doubt, add exploration and verification tasks
319
- - It's better to ask the user for clarification than make assumptions
320
- - Each story should be self-contained for the dev agent
321
- - Include references to existing code patterns when available