siesa-agents 2.1.1 → 2.1.3-dev.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.
Files changed (147) hide show
  1. package/README.md +83 -83
  2. package/bin/install.js +400 -399
  3. package/bin/prepare-publish.js +26 -26
  4. package/bin/restore-folders.js +26 -26
  5. package/bmad-core/agent-teams/team-all.yaml +15 -15
  6. package/bmad-core/agent-teams/team-fullstack.yaml +19 -19
  7. package/bmad-core/agent-teams/team-ide-minimal.yaml +11 -11
  8. package/bmad-core/agent-teams/team-no-ui.yaml +14 -14
  9. package/bmad-core/agents/analyst.md +84 -84
  10. package/bmad-core/agents/architect.md +94 -94
  11. package/bmad-core/agents/backend-agent.md +189 -189
  12. package/bmad-core/agents/bmad-master.md +110 -110
  13. package/bmad-core/agents/bmad-orchestrator.md +147 -147
  14. package/bmad-core/agents/dev.md +81 -81
  15. package/bmad-core/agents/frontend-agent.md +168 -168
  16. package/bmad-core/agents/pm.md +84 -84
  17. package/bmad-core/agents/po.md +79 -79
  18. package/bmad-core/agents/qa.md +91 -91
  19. package/bmad-core/agents/sm.md +65 -65
  20. package/bmad-core/agents/ux-expert.md +69 -69
  21. package/bmad-core/checklists/architect-checklist.md +440 -440
  22. package/bmad-core/checklists/backend-checklist.md +142 -142
  23. package/bmad-core/checklists/change-checklist.md +184 -184
  24. package/bmad-core/checklists/frontend-checklist.md +105 -105
  25. package/bmad-core/checklists/pm-checklist.md +372 -372
  26. package/bmad-core/checklists/po-master-checklist.md +434 -434
  27. package/bmad-core/checklists/story-dod-checklist.md +96 -96
  28. package/bmad-core/checklists/story-draft-checklist.md +155 -155
  29. package/bmad-core/core-config.yaml +22 -22
  30. package/bmad-core/data/backend-standards.md +439 -439
  31. package/bmad-core/data/bmad-kb.md +809 -809
  32. package/bmad-core/data/brainstorming-techniques.md +38 -38
  33. package/bmad-core/data/elicitation-methods.md +156 -156
  34. package/bmad-core/data/frontend-standards.md +323 -323
  35. package/bmad-core/data/technical-preferences.md +5 -5
  36. package/bmad-core/data/test-levels-framework.md +148 -148
  37. package/bmad-core/data/test-priorities-matrix.md +174 -174
  38. package/bmad-core/enhanced-ide-development-workflow.md +248 -248
  39. package/bmad-core/install-manifest.yaml +230 -230
  40. package/bmad-core/tasks/advanced-elicitation.md +119 -119
  41. package/bmad-core/tasks/apply-qa-fixes.md +150 -150
  42. package/bmad-core/tasks/brownfield-create-epic.md +162 -162
  43. package/bmad-core/tasks/brownfield-create-story.md +149 -149
  44. package/bmad-core/tasks/correct-course.md +72 -72
  45. package/bmad-core/tasks/create-brownfield-story.md +314 -314
  46. package/bmad-core/tasks/create-component.md +102 -102
  47. package/bmad-core/tasks/create-deep-research-prompt.md +280 -280
  48. package/bmad-core/tasks/create-doc.md +103 -103
  49. package/bmad-core/tasks/create-entity.md +132 -132
  50. package/bmad-core/tasks/create-feature.md +90 -90
  51. package/bmad-core/tasks/create-next-story.md +114 -114
  52. package/bmad-core/tasks/create-service.md +117 -117
  53. package/bmad-core/tasks/create-use-case.md +140 -140
  54. package/bmad-core/tasks/document-project.md +345 -345
  55. package/bmad-core/tasks/execute-checklist.md +88 -88
  56. package/bmad-core/tasks/facilitate-brainstorming-session.md +138 -138
  57. package/bmad-core/tasks/generate-ai-frontend-prompt.md +53 -53
  58. package/bmad-core/tasks/index-docs.md +175 -175
  59. package/bmad-core/tasks/kb-mode-interaction.md +77 -77
  60. package/bmad-core/tasks/nfr-assess.md +345 -345
  61. package/bmad-core/tasks/qa-gate.md +163 -163
  62. package/bmad-core/tasks/review-story.md +316 -316
  63. package/bmad-core/tasks/risk-profile.md +355 -355
  64. package/bmad-core/tasks/scaffold-backend.md +110 -110
  65. package/bmad-core/tasks/scaffold-frontend.md +78 -78
  66. package/bmad-core/tasks/shard-doc.md +187 -187
  67. package/bmad-core/tasks/test-design.md +176 -176
  68. package/bmad-core/tasks/trace-requirements.md +266 -266
  69. package/bmad-core/tasks/validate-next-story.md +136 -136
  70. package/bmad-core/templates/architecture-tmpl.yaml +662 -662
  71. package/bmad-core/templates/brainstorming-output-tmpl.yaml +156 -156
  72. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +477 -477
  73. package/bmad-core/templates/brownfield-prd-tmpl.yaml +281 -281
  74. package/bmad-core/templates/competitor-analysis-tmpl.yaml +307 -307
  75. package/bmad-core/templates/front-end-architecture-tmpl.yaml +258 -258
  76. package/bmad-core/templates/front-end-spec-tmpl.yaml +350 -350
  77. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +824 -824
  78. package/bmad-core/templates/market-research-tmpl.yaml +253 -253
  79. package/bmad-core/templates/prd-tmpl.yaml +203 -203
  80. package/bmad-core/templates/project-brief-tmpl.yaml +222 -222
  81. package/bmad-core/templates/qa-gate-tmpl.yaml +103 -103
  82. package/bmad-core/templates/story-tmpl.yaml +138 -138
  83. package/bmad-core/user-guide.md +530 -530
  84. package/bmad-core/utils/bmad-doc-template.md +327 -327
  85. package/bmad-core/utils/workflow-management.md +71 -71
  86. package/bmad-core/workflows/brownfield-fullstack.yaml +298 -298
  87. package/bmad-core/workflows/brownfield-service.yaml +188 -188
  88. package/bmad-core/workflows/brownfield-ui.yaml +198 -198
  89. package/bmad-core/workflows/greenfield-fullstack.yaml +241 -241
  90. package/bmad-core/workflows/greenfield-service.yaml +207 -207
  91. package/bmad-core/workflows/greenfield-ui.yaml +236 -236
  92. package/bmad-core/working-in-the-brownfield.md +606 -606
  93. package/claude/commands/BMad/agents/analyst.md +88 -0
  94. package/claude/commands/BMad/agents/architect.md +89 -0
  95. package/claude/commands/BMad/agents/backend.md +188 -0
  96. package/claude/commands/BMad/agents/bmad-master.md +114 -0
  97. package/claude/commands/BMad/agents/bmad-orchestrator.md +151 -0
  98. package/claude/commands/BMad/agents/dev.md +85 -0
  99. package/claude/commands/BMad/agents/frontend.md +151 -0
  100. package/claude/commands/BMad/agents/pm.md +88 -0
  101. package/claude/commands/BMad/agents/po.md +83 -0
  102. package/claude/commands/BMad/agents/qa.md +95 -0
  103. package/claude/commands/BMad/agents/sm.md +69 -0
  104. package/claude/commands/BMad/agents/ux-expert.md +73 -0
  105. package/claude/commands/BMad/tasks/advanced-elicitation.md +123 -0
  106. package/claude/commands/BMad/tasks/apply-qa-fixes.md +154 -0
  107. package/claude/commands/BMad/tasks/brownfield-create-epic.md +166 -0
  108. package/claude/commands/BMad/tasks/brownfield-create-story.md +153 -0
  109. package/claude/commands/BMad/tasks/correct-course.md +76 -0
  110. package/claude/commands/BMad/tasks/create-brownfield-story.md +318 -0
  111. package/claude/commands/BMad/tasks/create-deep-research-prompt.md +284 -0
  112. package/claude/commands/BMad/tasks/create-doc.md +107 -0
  113. package/claude/commands/BMad/tasks/create-next-story.md +118 -0
  114. package/claude/commands/BMad/tasks/document-project.md +349 -0
  115. package/claude/commands/BMad/tasks/execute-checklist.md +92 -0
  116. package/claude/commands/BMad/tasks/facilitate-brainstorming-session.md +142 -0
  117. package/claude/commands/BMad/tasks/generate-ai-frontend-prompt.md +57 -0
  118. package/claude/commands/BMad/tasks/index-docs.md +179 -0
  119. package/claude/commands/BMad/tasks/kb-mode-interaction.md +81 -0
  120. package/claude/commands/BMad/tasks/nfr-assess.md +349 -0
  121. package/claude/commands/BMad/tasks/qa-gate.md +167 -0
  122. package/claude/commands/BMad/tasks/review-story.md +320 -0
  123. package/claude/commands/BMad/tasks/risk-profile.md +359 -0
  124. package/claude/commands/BMad/tasks/shard-doc.md +191 -0
  125. package/claude/commands/BMad/tasks/test-design.md +180 -0
  126. package/claude/commands/BMad/tasks/trace-requirements.md +270 -0
  127. package/claude/commands/BMad/tasks/validate-next-story.md +140 -0
  128. package/claude/hooks/file-restriction-hook.py +51 -0
  129. package/claude/hooks/track-agent.py +67 -0
  130. package/claude/settings.local.json +56 -0
  131. package/github/b-mad-expert.md +742 -742
  132. package/github/chatmodes/analyst.chatmode.md +89 -89
  133. package/github/chatmodes/architect.chatmode.md +97 -97
  134. package/github/chatmodes/backend.chatmode.md +194 -194
  135. package/github/chatmodes/bmad-master.chatmode.md +115 -115
  136. package/github/chatmodes/bmad-orchestrator.chatmode.md +152 -152
  137. package/github/chatmodes/dev.chatmode.md +86 -86
  138. package/github/chatmodes/frontend.chatmode.md +157 -157
  139. package/github/chatmodes/pm.chatmode.md +89 -89
  140. package/github/chatmodes/po.chatmode.md +84 -84
  141. package/github/chatmodes/qa.chatmode.md +96 -96
  142. package/github/chatmodes/sm.chatmode.md +70 -70
  143. package/github/chatmodes/ux-expert.chatmode.md +74 -74
  144. package/index.js +9 -9
  145. package/package.json +37 -36
  146. package/vscode/mcp.json +11 -11
  147. package/vscode/settings.json +12 -12
@@ -1,281 +1,281 @@
1
- # <!-- Powered by BMAD™ Core -->
2
- template:
3
- id: brownfield-prd-template-v2
4
- name: Brownfield Enhancement PRD
5
- version: 2.0
6
- output:
7
- format: markdown
8
- filename: docs/prd.md
9
- title: "{{project_name}} Brownfield Enhancement PRD"
10
-
11
- workflow:
12
- mode: interactive
13
- elicitation: advanced-elicitation
14
-
15
- sections:
16
- - id: intro-analysis
17
- title: Intro Project Analysis and Context
18
- instruction: |
19
- IMPORTANT - SCOPE ASSESSMENT REQUIRED:
20
-
21
- This PRD is for SIGNIFICANT enhancements to existing projects that require comprehensive planning and multiple stories. Before proceeding:
22
-
23
- 1. **Assess Enhancement Complexity**: If this is a simple feature addition or bug fix that could be completed in 1-2 focused development sessions, STOP and recommend: "For simpler changes, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead. This full PRD process is designed for substantial enhancements that require architectural planning and multiple coordinated stories."
24
-
25
- 2. **Project Context**: Determine if we're working in an IDE with the project already loaded or if the user needs to provide project information. If project files are available, analyze existing documentation in the docs folder. If insufficient documentation exists, recommend running the document-project task first.
26
-
27
- 3. **Deep Assessment Requirement**: You MUST thoroughly analyze the existing project structure, patterns, and constraints before making ANY suggestions. Every recommendation must be grounded in actual project analysis, not assumptions.
28
-
29
- Gather comprehensive information about the existing project. This section must be completed before proceeding with requirements.
30
-
31
- CRITICAL: Throughout this analysis, explicitly confirm your understanding with the user. For every assumption you make about the existing project, ask: "Based on my analysis, I understand that [assumption]. Is this correct?"
32
-
33
- Do not proceed with any recommendations until the user has validated your understanding of the existing system.
34
- sections:
35
- - id: existing-project-overview
36
- title: Existing Project Overview
37
- instruction: Check if document-project analysis was already performed. If yes, reference that output instead of re-analyzing.
38
- sections:
39
- - id: analysis-source
40
- title: Analysis Source
41
- instruction: |
42
- Indicate one of the following:
43
- - Document-project output available at: {{path}}
44
- - IDE-based fresh analysis
45
- - User-provided information
46
- - id: current-state
47
- title: Current Project State
48
- instruction: |
49
- - If document-project output exists: Extract summary from "High Level Architecture" and "Technical Summary" sections
50
- - Otherwise: Brief description of what the project currently does and its primary purpose
51
- - id: documentation-analysis
52
- title: Available Documentation Analysis
53
- instruction: |
54
- If document-project was run:
55
- - Note: "Document-project analysis available - using existing technical documentation"
56
- - List key documents created by document-project
57
- - Skip the missing documentation check below
58
-
59
- Otherwise, check for existing documentation:
60
- sections:
61
- - id: available-docs
62
- title: Available Documentation
63
- type: checklist
64
- items:
65
- - Tech Stack Documentation [[LLM: If from document-project, check ✓]]
66
- - Source Tree/Architecture [[LLM: If from document-project, check ✓]]
67
- - Coding Standards [[LLM: If from document-project, may be partial]]
68
- - API Documentation [[LLM: If from document-project, check ✓]]
69
- - External API Documentation [[LLM: If from document-project, check ✓]]
70
- - UX/UI Guidelines [[LLM: May not be in document-project]]
71
- - Technical Debt Documentation [[LLM: If from document-project, check ✓]]
72
- - "Other: {{other_docs}}"
73
- instruction: |
74
- - If document-project was already run: "Using existing project analysis from document-project output."
75
- - If critical documentation is missing and no document-project: "I recommend running the document-project task first..."
76
- - id: enhancement-scope
77
- title: Enhancement Scope Definition
78
- instruction: Work with user to clearly define what type of enhancement this is. This is critical for scoping and approach.
79
- sections:
80
- - id: enhancement-type
81
- title: Enhancement Type
82
- type: checklist
83
- instruction: Determine with user which applies
84
- items:
85
- - New Feature Addition
86
- - Major Feature Modification
87
- - Integration with New Systems
88
- - Performance/Scalability Improvements
89
- - UI/UX Overhaul
90
- - Technology Stack Upgrade
91
- - Bug Fix and Stability Improvements
92
- - "Other: {{other_type}}"
93
- - id: enhancement-description
94
- title: Enhancement Description
95
- instruction: 2-3 sentences describing what the user wants to add or change
96
- - id: impact-assessment
97
- title: Impact Assessment
98
- type: checklist
99
- instruction: Assess the scope of impact on existing codebase
100
- items:
101
- - Minimal Impact (isolated additions)
102
- - Moderate Impact (some existing code changes)
103
- - Significant Impact (substantial existing code changes)
104
- - Major Impact (architectural changes required)
105
- - id: goals-context
106
- title: Goals and Background Context
107
- sections:
108
- - id: goals
109
- title: Goals
110
- type: bullet-list
111
- instruction: Bullet list of 1-line desired outcomes this enhancement will deliver if successful
112
- - id: background
113
- title: Background Context
114
- type: paragraphs
115
- instruction: 1-2 short paragraphs explaining why this enhancement is needed, what problem it solves, and how it fits with the existing project
116
- - id: changelog
117
- title: Change Log
118
- type: table
119
- columns: [Change, Date, Version, Description, Author]
120
-
121
- - id: requirements
122
- title: Requirements
123
- instruction: |
124
- Draft functional and non-functional requirements based on your validated understanding of the existing project. Before presenting requirements, confirm: "These requirements are based on my understanding of your existing system. Please review carefully and confirm they align with your project's reality."
125
- elicit: true
126
- sections:
127
- - id: functional
128
- title: Functional
129
- type: numbered-list
130
- prefix: FR
131
- instruction: Each Requirement will be a bullet markdown with identifier starting with FR
132
- examples:
133
- - "FR1: The existing Todo List will integrate with the new AI duplicate detection service without breaking current functionality."
134
- - id: non-functional
135
- title: Non Functional
136
- type: numbered-list
137
- prefix: NFR
138
- instruction: Each Requirement will be a bullet markdown with identifier starting with NFR. Include constraints from existing system
139
- examples:
140
- - "NFR1: Enhancement must maintain existing performance characteristics and not exceed current memory usage by more than 20%."
141
- - id: compatibility
142
- title: Compatibility Requirements
143
- instruction: Critical for brownfield - what must remain compatible
144
- type: numbered-list
145
- prefix: CR
146
- template: "{{requirement}}: {{description}}"
147
- items:
148
- - id: cr1
149
- template: "CR1: {{existing_api_compatibility}}"
150
- - id: cr2
151
- template: "CR2: {{database_schema_compatibility}}"
152
- - id: cr3
153
- template: "CR3: {{ui_ux_consistency}}"
154
- - id: cr4
155
- template: "CR4: {{integration_compatibility}}"
156
-
157
- - id: ui-enhancement-goals
158
- title: User Interface Enhancement Goals
159
- condition: Enhancement includes UI changes
160
- instruction: For UI changes, capture how they will integrate with existing UI patterns and design systems
161
- sections:
162
- - id: existing-ui-integration
163
- title: Integration with Existing UI
164
- instruction: Describe how new UI elements will fit with existing design patterns, style guides, and component libraries
165
- - id: modified-screens
166
- title: Modified/New Screens and Views
167
- instruction: List only the screens/views that will be modified or added
168
- - id: ui-consistency
169
- title: UI Consistency Requirements
170
- instruction: Specific requirements for maintaining visual and interaction consistency with existing application
171
-
172
- - id: technical-constraints
173
- title: Technical Constraints and Integration Requirements
174
- instruction: This section replaces separate architecture documentation. Gather detailed technical constraints from existing project analysis.
175
- sections:
176
- - id: existing-tech-stack
177
- title: Existing Technology Stack
178
- instruction: |
179
- If document-project output available:
180
- - Extract from "Actual Tech Stack" table in High Level Architecture section
181
- - Include version numbers and any noted constraints
182
-
183
- Otherwise, document the current technology stack:
184
- template: |
185
- **Languages**: {{languages}}
186
- **Frameworks**: {{frameworks}}
187
- **Database**: {{database}}
188
- **Infrastructure**: {{infrastructure}}
189
- **External Dependencies**: {{external_dependencies}}
190
- - id: integration-approach
191
- title: Integration Approach
192
- instruction: Define how the enhancement will integrate with existing architecture
193
- template: |
194
- **Database Integration Strategy**: {{database_integration}}
195
- **API Integration Strategy**: {{api_integration}}
196
- **Frontend Integration Strategy**: {{frontend_integration}}
197
- **Testing Integration Strategy**: {{testing_integration}}
198
- - id: code-organization
199
- title: Code Organization and Standards
200
- instruction: Based on existing project analysis, define how new code will fit existing patterns
201
- template: |
202
- **File Structure Approach**: {{file_structure}}
203
- **Naming Conventions**: {{naming_conventions}}
204
- **Coding Standards**: {{coding_standards}}
205
- **Documentation Standards**: {{documentation_standards}}
206
- - id: deployment-operations
207
- title: Deployment and Operations
208
- instruction: How the enhancement fits existing deployment pipeline
209
- template: |
210
- **Build Process Integration**: {{build_integration}}
211
- **Deployment Strategy**: {{deployment_strategy}}
212
- **Monitoring and Logging**: {{monitoring_logging}}
213
- **Configuration Management**: {{config_management}}
214
- - id: risk-assessment
215
- title: Risk Assessment and Mitigation
216
- instruction: |
217
- If document-project output available:
218
- - Reference "Technical Debt and Known Issues" section
219
- - Include "Workarounds and Gotchas" that might impact enhancement
220
- - Note any identified constraints from "Critical Technical Debt"
221
-
222
- Build risk assessment incorporating existing known issues:
223
- template: |
224
- **Technical Risks**: {{technical_risks}}
225
- **Integration Risks**: {{integration_risks}}
226
- **Deployment Risks**: {{deployment_risks}}
227
- **Mitigation Strategies**: {{mitigation_strategies}}
228
-
229
- - id: epic-structure
230
- title: Epic and Story Structure
231
- instruction: |
232
- For brownfield projects, favor a single comprehensive epic unless the user is clearly requesting multiple unrelated enhancements. Before presenting the epic structure, confirm: "Based on my analysis of your existing project, I believe this enhancement should be structured as [single epic/multiple epics] because [rationale based on actual project analysis]. Does this align with your understanding of the work required?"
233
- elicit: true
234
- sections:
235
- - id: epic-approach
236
- title: Epic Approach
237
- instruction: Explain the rationale for epic structure - typically single epic for brownfield unless multiple unrelated features
238
- template: "**Epic Structure Decision**: {{epic_decision}} with rationale"
239
-
240
- - id: epic-details
241
- title: "Epic 1: {{enhancement_title}}"
242
- instruction: |
243
- Comprehensive epic that delivers the brownfield enhancement while maintaining existing functionality
244
-
245
- CRITICAL STORY SEQUENCING FOR BROWNFIELD:
246
- - Stories must ensure existing functionality remains intact
247
- - Each story should include verification that existing features still work
248
- - Stories should be sequenced to minimize risk to existing system
249
- - Include rollback considerations for each story
250
- - Focus on incremental integration rather than big-bang changes
251
- - Size stories for AI agent execution in existing codebase context
252
- - MANDATORY: Present the complete story sequence and ask: "This story sequence is designed to minimize risk to your existing system. Does this order make sense given your project's architecture and constraints?"
253
- - Stories must be logically sequential with clear dependencies identified
254
- - Each story must deliver value while maintaining system integrity
255
- template: |
256
- **Epic Goal**: {{epic_goal}}
257
-
258
- **Integration Requirements**: {{integration_requirements}}
259
- sections:
260
- - id: story
261
- title: "Story 1.{{story_number}} {{story_title}}"
262
- repeatable: true
263
- template: |
264
- As a {{user_type}},
265
- I want {{action}},
266
- so that {{benefit}}.
267
- sections:
268
- - id: acceptance-criteria
269
- title: Acceptance Criteria
270
- type: numbered-list
271
- instruction: Define criteria that include both new functionality and existing system integrity
272
- item_template: "{{criterion_number}}: {{criteria}}"
273
- - id: integration-verification
274
- title: Integration Verification
275
- instruction: Specific verification steps to ensure existing functionality remains intact
276
- type: numbered-list
277
- prefix: IV
278
- items:
279
- - template: "IV1: {{existing_functionality_verification}}"
280
- - template: "IV2: {{integration_point_verification}}"
281
- - template: "IV3: {{performance_impact_verification}}"
1
+ # <!-- Powered by BMAD™ Core -->
2
+ template:
3
+ id: brownfield-prd-template-v2
4
+ name: Brownfield Enhancement PRD
5
+ version: 2.0
6
+ output:
7
+ format: markdown
8
+ filename: docs/prd.md
9
+ title: "{{project_name}} Brownfield Enhancement PRD"
10
+
11
+ workflow:
12
+ mode: interactive
13
+ elicitation: advanced-elicitation
14
+
15
+ sections:
16
+ - id: intro-analysis
17
+ title: Intro Project Analysis and Context
18
+ instruction: |
19
+ IMPORTANT - SCOPE ASSESSMENT REQUIRED:
20
+
21
+ This PRD is for SIGNIFICANT enhancements to existing projects that require comprehensive planning and multiple stories. Before proceeding:
22
+
23
+ 1. **Assess Enhancement Complexity**: If this is a simple feature addition or bug fix that could be completed in 1-2 focused development sessions, STOP and recommend: "For simpler changes, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead. This full PRD process is designed for substantial enhancements that require architectural planning and multiple coordinated stories."
24
+
25
+ 2. **Project Context**: Determine if we're working in an IDE with the project already loaded or if the user needs to provide project information. If project files are available, analyze existing documentation in the docs folder. If insufficient documentation exists, recommend running the document-project task first.
26
+
27
+ 3. **Deep Assessment Requirement**: You MUST thoroughly analyze the existing project structure, patterns, and constraints before making ANY suggestions. Every recommendation must be grounded in actual project analysis, not assumptions.
28
+
29
+ Gather comprehensive information about the existing project. This section must be completed before proceeding with requirements.
30
+
31
+ CRITICAL: Throughout this analysis, explicitly confirm your understanding with the user. For every assumption you make about the existing project, ask: "Based on my analysis, I understand that [assumption]. Is this correct?"
32
+
33
+ Do not proceed with any recommendations until the user has validated your understanding of the existing system.
34
+ sections:
35
+ - id: existing-project-overview
36
+ title: Existing Project Overview
37
+ instruction: Check if document-project analysis was already performed. If yes, reference that output instead of re-analyzing.
38
+ sections:
39
+ - id: analysis-source
40
+ title: Analysis Source
41
+ instruction: |
42
+ Indicate one of the following:
43
+ - Document-project output available at: {{path}}
44
+ - IDE-based fresh analysis
45
+ - User-provided information
46
+ - id: current-state
47
+ title: Current Project State
48
+ instruction: |
49
+ - If document-project output exists: Extract summary from "High Level Architecture" and "Technical Summary" sections
50
+ - Otherwise: Brief description of what the project currently does and its primary purpose
51
+ - id: documentation-analysis
52
+ title: Available Documentation Analysis
53
+ instruction: |
54
+ If document-project was run:
55
+ - Note: "Document-project analysis available - using existing technical documentation"
56
+ - List key documents created by document-project
57
+ - Skip the missing documentation check below
58
+
59
+ Otherwise, check for existing documentation:
60
+ sections:
61
+ - id: available-docs
62
+ title: Available Documentation
63
+ type: checklist
64
+ items:
65
+ - Tech Stack Documentation [[LLM: If from document-project, check ✓]]
66
+ - Source Tree/Architecture [[LLM: If from document-project, check ✓]]
67
+ - Coding Standards [[LLM: If from document-project, may be partial]]
68
+ - API Documentation [[LLM: If from document-project, check ✓]]
69
+ - External API Documentation [[LLM: If from document-project, check ✓]]
70
+ - UX/UI Guidelines [[LLM: May not be in document-project]]
71
+ - Technical Debt Documentation [[LLM: If from document-project, check ✓]]
72
+ - "Other: {{other_docs}}"
73
+ instruction: |
74
+ - If document-project was already run: "Using existing project analysis from document-project output."
75
+ - If critical documentation is missing and no document-project: "I recommend running the document-project task first..."
76
+ - id: enhancement-scope
77
+ title: Enhancement Scope Definition
78
+ instruction: Work with user to clearly define what type of enhancement this is. This is critical for scoping and approach.
79
+ sections:
80
+ - id: enhancement-type
81
+ title: Enhancement Type
82
+ type: checklist
83
+ instruction: Determine with user which applies
84
+ items:
85
+ - New Feature Addition
86
+ - Major Feature Modification
87
+ - Integration with New Systems
88
+ - Performance/Scalability Improvements
89
+ - UI/UX Overhaul
90
+ - Technology Stack Upgrade
91
+ - Bug Fix and Stability Improvements
92
+ - "Other: {{other_type}}"
93
+ - id: enhancement-description
94
+ title: Enhancement Description
95
+ instruction: 2-3 sentences describing what the user wants to add or change
96
+ - id: impact-assessment
97
+ title: Impact Assessment
98
+ type: checklist
99
+ instruction: Assess the scope of impact on existing codebase
100
+ items:
101
+ - Minimal Impact (isolated additions)
102
+ - Moderate Impact (some existing code changes)
103
+ - Significant Impact (substantial existing code changes)
104
+ - Major Impact (architectural changes required)
105
+ - id: goals-context
106
+ title: Goals and Background Context
107
+ sections:
108
+ - id: goals
109
+ title: Goals
110
+ type: bullet-list
111
+ instruction: Bullet list of 1-line desired outcomes this enhancement will deliver if successful
112
+ - id: background
113
+ title: Background Context
114
+ type: paragraphs
115
+ instruction: 1-2 short paragraphs explaining why this enhancement is needed, what problem it solves, and how it fits with the existing project
116
+ - id: changelog
117
+ title: Change Log
118
+ type: table
119
+ columns: [Change, Date, Version, Description, Author]
120
+
121
+ - id: requirements
122
+ title: Requirements
123
+ instruction: |
124
+ Draft functional and non-functional requirements based on your validated understanding of the existing project. Before presenting requirements, confirm: "These requirements are based on my understanding of your existing system. Please review carefully and confirm they align with your project's reality."
125
+ elicit: true
126
+ sections:
127
+ - id: functional
128
+ title: Functional
129
+ type: numbered-list
130
+ prefix: FR
131
+ instruction: Each Requirement will be a bullet markdown with identifier starting with FR
132
+ examples:
133
+ - "FR1: The existing Todo List will integrate with the new AI duplicate detection service without breaking current functionality."
134
+ - id: non-functional
135
+ title: Non Functional
136
+ type: numbered-list
137
+ prefix: NFR
138
+ instruction: Each Requirement will be a bullet markdown with identifier starting with NFR. Include constraints from existing system
139
+ examples:
140
+ - "NFR1: Enhancement must maintain existing performance characteristics and not exceed current memory usage by more than 20%."
141
+ - id: compatibility
142
+ title: Compatibility Requirements
143
+ instruction: Critical for brownfield - what must remain compatible
144
+ type: numbered-list
145
+ prefix: CR
146
+ template: "{{requirement}}: {{description}}"
147
+ items:
148
+ - id: cr1
149
+ template: "CR1: {{existing_api_compatibility}}"
150
+ - id: cr2
151
+ template: "CR2: {{database_schema_compatibility}}"
152
+ - id: cr3
153
+ template: "CR3: {{ui_ux_consistency}}"
154
+ - id: cr4
155
+ template: "CR4: {{integration_compatibility}}"
156
+
157
+ - id: ui-enhancement-goals
158
+ title: User Interface Enhancement Goals
159
+ condition: Enhancement includes UI changes
160
+ instruction: For UI changes, capture how they will integrate with existing UI patterns and design systems
161
+ sections:
162
+ - id: existing-ui-integration
163
+ title: Integration with Existing UI
164
+ instruction: Describe how new UI elements will fit with existing design patterns, style guides, and component libraries
165
+ - id: modified-screens
166
+ title: Modified/New Screens and Views
167
+ instruction: List only the screens/views that will be modified or added
168
+ - id: ui-consistency
169
+ title: UI Consistency Requirements
170
+ instruction: Specific requirements for maintaining visual and interaction consistency with existing application
171
+
172
+ - id: technical-constraints
173
+ title: Technical Constraints and Integration Requirements
174
+ instruction: This section replaces separate architecture documentation. Gather detailed technical constraints from existing project analysis.
175
+ sections:
176
+ - id: existing-tech-stack
177
+ title: Existing Technology Stack
178
+ instruction: |
179
+ If document-project output available:
180
+ - Extract from "Actual Tech Stack" table in High Level Architecture section
181
+ - Include version numbers and any noted constraints
182
+
183
+ Otherwise, document the current technology stack:
184
+ template: |
185
+ **Languages**: {{languages}}
186
+ **Frameworks**: {{frameworks}}
187
+ **Database**: {{database}}
188
+ **Infrastructure**: {{infrastructure}}
189
+ **External Dependencies**: {{external_dependencies}}
190
+ - id: integration-approach
191
+ title: Integration Approach
192
+ instruction: Define how the enhancement will integrate with existing architecture
193
+ template: |
194
+ **Database Integration Strategy**: {{database_integration}}
195
+ **API Integration Strategy**: {{api_integration}}
196
+ **Frontend Integration Strategy**: {{frontend_integration}}
197
+ **Testing Integration Strategy**: {{testing_integration}}
198
+ - id: code-organization
199
+ title: Code Organization and Standards
200
+ instruction: Based on existing project analysis, define how new code will fit existing patterns
201
+ template: |
202
+ **File Structure Approach**: {{file_structure}}
203
+ **Naming Conventions**: {{naming_conventions}}
204
+ **Coding Standards**: {{coding_standards}}
205
+ **Documentation Standards**: {{documentation_standards}}
206
+ - id: deployment-operations
207
+ title: Deployment and Operations
208
+ instruction: How the enhancement fits existing deployment pipeline
209
+ template: |
210
+ **Build Process Integration**: {{build_integration}}
211
+ **Deployment Strategy**: {{deployment_strategy}}
212
+ **Monitoring and Logging**: {{monitoring_logging}}
213
+ **Configuration Management**: {{config_management}}
214
+ - id: risk-assessment
215
+ title: Risk Assessment and Mitigation
216
+ instruction: |
217
+ If document-project output available:
218
+ - Reference "Technical Debt and Known Issues" section
219
+ - Include "Workarounds and Gotchas" that might impact enhancement
220
+ - Note any identified constraints from "Critical Technical Debt"
221
+
222
+ Build risk assessment incorporating existing known issues:
223
+ template: |
224
+ **Technical Risks**: {{technical_risks}}
225
+ **Integration Risks**: {{integration_risks}}
226
+ **Deployment Risks**: {{deployment_risks}}
227
+ **Mitigation Strategies**: {{mitigation_strategies}}
228
+
229
+ - id: epic-structure
230
+ title: Epic and Story Structure
231
+ instruction: |
232
+ For brownfield projects, favor a single comprehensive epic unless the user is clearly requesting multiple unrelated enhancements. Before presenting the epic structure, confirm: "Based on my analysis of your existing project, I believe this enhancement should be structured as [single epic/multiple epics] because [rationale based on actual project analysis]. Does this align with your understanding of the work required?"
233
+ elicit: true
234
+ sections:
235
+ - id: epic-approach
236
+ title: Epic Approach
237
+ instruction: Explain the rationale for epic structure - typically single epic for brownfield unless multiple unrelated features
238
+ template: "**Epic Structure Decision**: {{epic_decision}} with rationale"
239
+
240
+ - id: epic-details
241
+ title: "Epic 1: {{enhancement_title}}"
242
+ instruction: |
243
+ Comprehensive epic that delivers the brownfield enhancement while maintaining existing functionality
244
+
245
+ CRITICAL STORY SEQUENCING FOR BROWNFIELD:
246
+ - Stories must ensure existing functionality remains intact
247
+ - Each story should include verification that existing features still work
248
+ - Stories should be sequenced to minimize risk to existing system
249
+ - Include rollback considerations for each story
250
+ - Focus on incremental integration rather than big-bang changes
251
+ - Size stories for AI agent execution in existing codebase context
252
+ - MANDATORY: Present the complete story sequence and ask: "This story sequence is designed to minimize risk to your existing system. Does this order make sense given your project's architecture and constraints?"
253
+ - Stories must be logically sequential with clear dependencies identified
254
+ - Each story must deliver value while maintaining system integrity
255
+ template: |
256
+ **Epic Goal**: {{epic_goal}}
257
+
258
+ **Integration Requirements**: {{integration_requirements}}
259
+ sections:
260
+ - id: story
261
+ title: "Story 1.{{story_number}} {{story_title}}"
262
+ repeatable: true
263
+ template: |
264
+ As a {{user_type}},
265
+ I want {{action}},
266
+ so that {{benefit}}.
267
+ sections:
268
+ - id: acceptance-criteria
269
+ title: Acceptance Criteria
270
+ type: numbered-list
271
+ instruction: Define criteria that include both new functionality and existing system integrity
272
+ item_template: "{{criterion_number}}: {{criteria}}"
273
+ - id: integration-verification
274
+ title: Integration Verification
275
+ instruction: Specific verification steps to ensure existing functionality remains intact
276
+ type: numbered-list
277
+ prefix: IV
278
+ items:
279
+ - template: "IV1: {{existing_functionality_verification}}"
280
+ - template: "IV2: {{integration_point_verification}}"
281
+ - template: "IV3: {{performance_impact_verification}}"