@rdmind/rdmind 0.0.9-alpha.1 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/.knowledge/.ext/.bmad-core/agent-teams/team-all.yaml +15 -0
  2. package/.knowledge/.ext/.bmad-core/agent-teams/team-fullstack.yaml +19 -0
  3. package/.knowledge/.ext/.bmad-core/agent-teams/team-ide-minimal.yaml +11 -0
  4. package/.knowledge/.ext/.bmad-core/agent-teams/team-no-ui.yaml +14 -0
  5. package/.knowledge/.ext/.bmad-core/agents/analyst.md +84 -0
  6. package/.knowledge/.ext/.bmad-core/agents/architect.md +85 -0
  7. package/.knowledge/.ext/.bmad-core/agents/bmad-master.md +110 -0
  8. package/.knowledge/.ext/.bmad-core/agents/bmad-orchestrator.md +147 -0
  9. package/.knowledge/.ext/.bmad-core/agents/dev.md +81 -0
  10. package/.knowledge/.ext/.bmad-core/agents/pm.md +84 -0
  11. package/.knowledge/.ext/.bmad-core/agents/po.md +79 -0
  12. package/.knowledge/.ext/.bmad-core/agents/qa.md +90 -0
  13. package/.knowledge/.ext/.bmad-core/agents/ra.md +74 -0
  14. package/.knowledge/.ext/.bmad-core/agents/sm.md +65 -0
  15. package/.knowledge/.ext/.bmad-core/agents/ux-expert.md +69 -0
  16. package/.knowledge/.ext/.bmad-core/checklists/architect-checklist.md +440 -0
  17. package/.knowledge/.ext/.bmad-core/checklists/change-checklist.md +184 -0
  18. package/.knowledge/.ext/.bmad-core/checklists/pm-checklist.md +372 -0
  19. package/.knowledge/.ext/.bmad-core/checklists/po-master-checklist.md +434 -0
  20. package/.knowledge/.ext/.bmad-core/checklists/story-dod-checklist.md +96 -0
  21. package/.knowledge/.ext/.bmad-core/checklists/story-draft-checklist.md +155 -0
  22. package/.knowledge/.ext/.bmad-core/checklists/trd-checklist.md +226 -0
  23. package/.knowledge/.ext/.bmad-core/core-config.yaml +22 -0
  24. package/.knowledge/.ext/.bmad-core/data/bmad-kb.md +809 -0
  25. package/.knowledge/.ext/.bmad-core/data/brainstorming-techniques.md +38 -0
  26. package/.knowledge/.ext/.bmad-core/data/elicitation-methods.md +156 -0
  27. package/.knowledge/.ext/.bmad-core/data/technical-preferences.md +5 -0
  28. package/.knowledge/.ext/.bmad-core/data/test-levels-framework.md +148 -0
  29. package/.knowledge/.ext/.bmad-core/data/test-priorities-matrix.md +174 -0
  30. package/.knowledge/.ext/.bmad-core/enhanced-ide-development-workflow.md +248 -0
  31. package/.knowledge/.ext/.bmad-core/install-manifest.yaml +512 -0
  32. package/.knowledge/.ext/.bmad-core/tasks/advanced-elicitation.md +119 -0
  33. package/.knowledge/.ext/.bmad-core/tasks/analyze-prd.md +123 -0
  34. package/.knowledge/.ext/.bmad-core/tasks/apply-qa-fixes.md +150 -0
  35. package/.knowledge/.ext/.bmad-core/tasks/brownfield-create-epic.md +162 -0
  36. package/.knowledge/.ext/.bmad-core/tasks/brownfield-create-story.md +149 -0
  37. package/.knowledge/.ext/.bmad-core/tasks/correct-course.md +72 -0
  38. package/.knowledge/.ext/.bmad-core/tasks/create-brownfield-story.md +314 -0
  39. package/.knowledge/.ext/.bmad-core/tasks/create-deep-research-prompt.md +280 -0
  40. package/.knowledge/.ext/.bmad-core/tasks/create-doc.md +103 -0
  41. package/.knowledge/.ext/.bmad-core/tasks/create-next-story.md +114 -0
  42. package/.knowledge/.ext/.bmad-core/tasks/document-project.md +345 -0
  43. package/.knowledge/.ext/.bmad-core/tasks/execute-checklist.md +88 -0
  44. package/.knowledge/.ext/.bmad-core/tasks/facilitate-brainstorming-session.md +138 -0
  45. package/.knowledge/.ext/.bmad-core/tasks/generate-ai-frontend-prompt.md +53 -0
  46. package/.knowledge/.ext/.bmad-core/tasks/index-docs.md +175 -0
  47. package/.knowledge/.ext/.bmad-core/tasks/kb-mode-interaction.md +77 -0
  48. package/.knowledge/.ext/.bmad-core/tasks/nfr-assess.md +345 -0
  49. package/.knowledge/.ext/.bmad-core/tasks/qa-gate.md +163 -0
  50. package/.knowledge/.ext/.bmad-core/tasks/review-story.md +316 -0
  51. package/.knowledge/.ext/.bmad-core/tasks/risk-profile.md +355 -0
  52. package/.knowledge/.ext/.bmad-core/tasks/shard-doc.md +187 -0
  53. package/.knowledge/.ext/.bmad-core/tasks/test-design.md +176 -0
  54. package/.knowledge/.ext/.bmad-core/tasks/trace-requirements.md +266 -0
  55. package/.knowledge/.ext/.bmad-core/tasks/validate-next-story.md +136 -0
  56. package/.knowledge/.ext/.bmad-core/tasks/validate-trd.md +158 -0
  57. package/.knowledge/.ext/.bmad-core/templates/architecture-tmpl.yaml +651 -0
  58. package/.knowledge/.ext/.bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
  59. package/.knowledge/.ext/.bmad-core/templates/brownfield-architecture-tmpl.yaml +478 -0
  60. package/.knowledge/.ext/.bmad-core/templates/brownfield-prd-tmpl.yaml +281 -0
  61. package/.knowledge/.ext/.bmad-core/templates/competitor-analysis-tmpl.yaml +349 -0
  62. package/.knowledge/.ext/.bmad-core/templates/front-end-architecture-tmpl.yaml +273 -0
  63. package/.knowledge/.ext/.bmad-core/templates/front-end-spec-tmpl.yaml +360 -0
  64. package/.knowledge/.ext/.bmad-core/templates/fullstack-architecture-tmpl.yaml +947 -0
  65. package/.knowledge/.ext/.bmad-core/templates/market-research-tmpl.yaml +253 -0
  66. package/.knowledge/.ext/.bmad-core/templates/prd-tmpl.yaml +203 -0
  67. package/.knowledge/.ext/.bmad-core/templates/project-brief-tmpl.yaml +222 -0
  68. package/.knowledge/.ext/.bmad-core/templates/qa-gate-tmpl.yaml +103 -0
  69. package/.knowledge/.ext/.bmad-core/templates/story-tmpl.yaml +138 -0
  70. package/.knowledge/.ext/.bmad-core/templates/trd-tmpl.yaml +198 -0
  71. package/.knowledge/.ext/.bmad-core/user-guide.md +530 -0
  72. package/.knowledge/.ext/.bmad-core/utils/bmad-doc-template.md +327 -0
  73. package/.knowledge/.ext/.bmad-core/utils/workflow-management.md +71 -0
  74. package/.knowledge/.ext/.bmad-core/workflows/brownfield-fullstack.yaml +298 -0
  75. package/.knowledge/.ext/.bmad-core/workflows/brownfield-service.yaml +188 -0
  76. package/.knowledge/.ext/.bmad-core/workflows/brownfield-ui.yaml +198 -0
  77. package/.knowledge/.ext/.bmad-core/workflows/greenfield-fullstack.yaml +241 -0
  78. package/.knowledge/.ext/.bmad-core/workflows/greenfield-service.yaml +207 -0
  79. package/.knowledge/.ext/.bmad-core/workflows/greenfield-ui.yaml +236 -0
  80. package/.knowledge/.ext/.bmad-core/working-in-the-brownfield.md +606 -0
  81. package/.knowledge/.ext/coding/ddd-architecture.md +223 -0
  82. package/.knowledge/.ext/coding/java-standards.md +308 -0
  83. package/.knowledge/.ext/coding/mybatis-standards.md +407 -0
  84. package/.knowledge/.ext/coding/sql-standards.md +263 -0
  85. package/.knowledge/.ext/coding/thrift-service.md +292 -0
  86. package/.knowledge/BMAD.md +255 -0
  87. package/.knowledge/coding.md +135 -0
  88. package/dist/package.json +4 -3
  89. package/dist/src/config/extension.js.map +1 -1
  90. package/dist/src/generated/git-commit.d.ts +2 -2
  91. package/dist/src/generated/git-commit.js +2 -2
  92. package/dist/src/generated/git-commit.js.map +1 -1
  93. package/dist/src/services/McpPromptLoader.js +1 -1
  94. package/dist/src/services/McpPromptLoader.js.map +1 -1
  95. package/dist/src/services/prompt-processors/atFileProcessor.js +1 -1
  96. package/dist/src/services/prompt-processors/atFileProcessor.js.map +1 -1
  97. package/dist/src/ui/commands/mcpCommand.js.map +1 -1
  98. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
  99. package/dist/src/ui/components/Tips.js +1 -1
  100. package/dist/src/ui/components/Tips.js.map +1 -1
  101. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -1
  102. package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -1
  103. package/dist/src/ui/components/subagents/create/CreationSummary.js.map +1 -1
  104. package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -1
  105. package/dist/src/ui/hooks/usePhraseCycler.js +2 -2
  106. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
  107. package/dist/src/utils/installationInfo.test.js.map +1 -1
  108. package/dist/tsconfig.tsbuildinfo +1 -1
  109. package/package.json +4 -3
@@ -0,0 +1,156 @@
1
+ template:
2
+ id: brainstorming-output-template-v2
3
+ name: Brainstorming Session Results
4
+ version: 2.0
5
+ output:
6
+ format: markdown
7
+ filename: docs/brainstorming-session-results.md
8
+ title: 'Brainstorming Session Results'
9
+
10
+ workflow:
11
+ mode: non-interactive
12
+
13
+ sections:
14
+ - id: header
15
+ content: |
16
+ **Session Date:** {{date}}
17
+ **Facilitator:** {{agent_role}} {{agent_name}}
18
+ **Participant:** {{user_name}}
19
+
20
+ - id: executive-summary
21
+ title: Executive Summary
22
+ sections:
23
+ - id: summary-details
24
+ template: |
25
+ **Topic:** {{session_topic}}
26
+
27
+ **Session Goals:** {{stated_goals}}
28
+
29
+ **Techniques Used:** {{techniques_list}}
30
+
31
+ **Total Ideas Generated:** {{total_ideas}}
32
+ - id: key-themes
33
+ title: 'Key Themes Identified:'
34
+ type: bullet-list
35
+ template: '- {{theme}}'
36
+
37
+ - id: technique-sessions
38
+ title: Technique Sessions
39
+ repeatable: true
40
+ sections:
41
+ - id: technique
42
+ title: '{{technique_name}} - {{duration}}'
43
+ sections:
44
+ - id: description
45
+ template: '**Description:** {{technique_description}}'
46
+ - id: ideas-generated
47
+ title: 'Ideas Generated:'
48
+ type: numbered-list
49
+ template: '{{idea}}'
50
+ - id: insights
51
+ title: 'Insights Discovered:'
52
+ type: bullet-list
53
+ template: '- {{insight}}'
54
+ - id: connections
55
+ title: 'Notable Connections:'
56
+ type: bullet-list
57
+ template: '- {{connection}}'
58
+
59
+ - id: idea-categorization
60
+ title: Idea Categorization
61
+ sections:
62
+ - id: immediate-opportunities
63
+ title: Immediate Opportunities
64
+ content: '*Ideas ready to implement now*'
65
+ repeatable: true
66
+ type: numbered-list
67
+ template: |
68
+ **{{idea_name}}**
69
+ - Description: {{description}}
70
+ - Why immediate: {{rationale}}
71
+ - Resources needed: {{requirements}}
72
+ - id: future-innovations
73
+ title: Future Innovations
74
+ content: '*Ideas requiring development/research*'
75
+ repeatable: true
76
+ type: numbered-list
77
+ template: |
78
+ **{{idea_name}}**
79
+ - Description: {{description}}
80
+ - Development needed: {{development_needed}}
81
+ - Timeline estimate: {{timeline}}
82
+ - id: moonshots
83
+ title: Moonshots
84
+ content: '*Ambitious, transformative concepts*'
85
+ repeatable: true
86
+ type: numbered-list
87
+ template: |
88
+ **{{idea_name}}**
89
+ - Description: {{description}}
90
+ - Transformative potential: {{potential}}
91
+ - Challenges to overcome: {{challenges}}
92
+ - id: insights-learnings
93
+ title: Insights & Learnings
94
+ content: '*Key realizations from the session*'
95
+ type: bullet-list
96
+ template: '- {{insight}}: {{description_and_implications}}'
97
+
98
+ - id: action-planning
99
+ title: Action Planning
100
+ sections:
101
+ - id: top-priorities
102
+ title: Top 3 Priority Ideas
103
+ sections:
104
+ - id: priority-1
105
+ title: '#1 Priority: {{idea_name}}'
106
+ template: |
107
+ - Rationale: {{rationale}}
108
+ - Next steps: {{next_steps}}
109
+ - Resources needed: {{resources}}
110
+ - Timeline: {{timeline}}
111
+ - id: priority-2
112
+ title: '#2 Priority: {{idea_name}}'
113
+ template: |
114
+ - Rationale: {{rationale}}
115
+ - Next steps: {{next_steps}}
116
+ - Resources needed: {{resources}}
117
+ - Timeline: {{timeline}}
118
+ - id: priority-3
119
+ title: '#3 Priority: {{idea_name}}'
120
+ template: |
121
+ - Rationale: {{rationale}}
122
+ - Next steps: {{next_steps}}
123
+ - Resources needed: {{resources}}
124
+ - Timeline: {{timeline}}
125
+
126
+ - id: reflection-followup
127
+ title: Reflection & Follow-up
128
+ sections:
129
+ - id: what-worked
130
+ title: What Worked Well
131
+ type: bullet-list
132
+ template: '- {{aspect}}'
133
+ - id: areas-exploration
134
+ title: Areas for Further Exploration
135
+ type: bullet-list
136
+ template: '- {{area}}: {{reason}}'
137
+ - id: recommended-techniques
138
+ title: Recommended Follow-up Techniques
139
+ type: bullet-list
140
+ template: '- {{technique}}: {{reason}}'
141
+ - id: questions-emerged
142
+ title: Questions That Emerged
143
+ type: bullet-list
144
+ template: '- {{question}}'
145
+ - id: next-session
146
+ title: Next Session Planning
147
+ template: |
148
+ - **Suggested topics:** {{followup_topics}}
149
+ - **Recommended timeframe:** {{timeframe}}
150
+ - **Preparation needed:** {{preparation}}
151
+
152
+ - id: footer
153
+ content: |
154
+ ---
155
+
156
+ *Session facilitated using the BMAD-METHOD™ brainstorming framework*
@@ -0,0 +1,478 @@
1
+ # <!-- Powered by BMAD™ Core -->
2
+ template:
3
+ id: brownfield-architecture-template-v2
4
+ name: Brownfield Enhancement Architecture
5
+ version: 2.0
6
+ output:
7
+ format: markdown
8
+ filename: docs/architecture.md
9
+ title: '{{project_name}} Brownfield Enhancement Architecture'
10
+
11
+ workflow:
12
+ mode: interactive
13
+ elicitation: advanced-elicitation
14
+
15
+ sections:
16
+ - id: introduction
17
+ title: Introduction
18
+ instruction: |
19
+ IMPORTANT - SCOPE AND ASSESSMENT REQUIRED:
20
+
21
+ This architecture document is for SIGNIFICANT enhancements to existing projects that require comprehensive architectural planning. Before proceeding:
22
+
23
+ 1. **Verify Complexity**: Confirm this enhancement requires architectural planning. For simple additions, recommend: "For simpler changes that don't require architectural planning, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead."
24
+
25
+ 2. **REQUIRED INPUTS**:
26
+ - Completed brownfield-prd.md
27
+ - Existing project technical documentation (from docs folder or user-provided)
28
+ - Access to existing project structure (IDE or uploaded files)
29
+
30
+ 3. **DEEP ANALYSIS MANDATE**: You MUST conduct thorough analysis of the existing codebase, architecture patterns, and technical constraints before making ANY architectural recommendations. Every suggestion must be based on actual project analysis, not assumptions.
31
+
32
+ 4. **CONTINUOUS VALIDATION**: Throughout this process, explicitly validate your understanding with the user. For every architectural decision, confirm: "Based on my analysis of your existing system, I recommend [decision] because [evidence from actual project]. Does this align with your system's reality?"
33
+
34
+ If any required inputs are missing, request them before proceeding.
35
+ elicit: true
36
+ sections:
37
+ - id: intro-content
38
+ content: |
39
+ This document outlines the architectural approach for enhancing {{project_name}} with {{enhancement_description}}. Its primary goal is to serve as the guiding architectural blueprint for AI-driven development of new features while ensuring seamless integration with the existing system.
40
+
41
+ **Relationship to Existing Architecture:**
42
+ This document supplements existing project architecture by defining how new components will integrate with current systems. Where conflicts arise between new and existing patterns, this document provides guidance on maintaining consistency while implementing enhancements.
43
+ - id: existing-project-analysis
44
+ title: Existing Project Analysis
45
+ instruction: |
46
+ Analyze the existing project structure and architecture:
47
+
48
+ 1. Review existing documentation in docs folder
49
+ 2. Examine current technology stack and versions
50
+ 3. Identify existing architectural patterns and conventions
51
+ 4. Note current deployment and infrastructure setup
52
+ 5. Document any constraints or limitations
53
+
54
+ CRITICAL: After your analysis, explicitly validate your findings: "Based on my analysis of your project, I've identified the following about your existing system: [key findings]. Please confirm these observations are accurate before I proceed with architectural recommendations."
55
+ elicit: true
56
+ sections:
57
+ - id: current-state
58
+ title: Current Project State
59
+ template: |
60
+ - **Primary Purpose:** {{existing_project_purpose}}
61
+ - **Current Tech Stack:** {{existing_tech_summary}}
62
+ - **Architecture Style:** {{existing_architecture_style}}
63
+ - **Deployment Method:** {{existing_deployment_approach}}
64
+ - id: available-docs
65
+ title: Available Documentation
66
+ type: bullet-list
67
+ template: '- {{existing_docs_summary}}'
68
+ - id: constraints
69
+ title: Identified Constraints
70
+ type: bullet-list
71
+ template: '- {{constraint}}'
72
+ - id: changelog
73
+ title: Change Log
74
+ type: table
75
+ columns: [Change, Date, Version, Description, Author]
76
+ instruction: Track document versions and changes
77
+
78
+ - id: enhancement-scope
79
+ title: Enhancement Scope and Integration Strategy
80
+ instruction: |
81
+ Define how the enhancement will integrate with the existing system:
82
+
83
+ 1. Review the brownfield PRD enhancement scope
84
+ 2. Identify integration points with existing code
85
+ 3. Define boundaries between new and existing functionality
86
+ 4. Establish compatibility requirements
87
+
88
+ VALIDATION CHECKPOINT: Before presenting the integration strategy, confirm: "Based on my analysis, the integration approach I'm proposing takes into account [specific existing system characteristics]. These integration points and boundaries respect your current architecture patterns. Is this assessment accurate?"
89
+ elicit: true
90
+ sections:
91
+ - id: enhancement-overview
92
+ title: Enhancement Overview
93
+ template: |
94
+ **Enhancement Type:** {{enhancement_type}}
95
+ **Scope:** {{enhancement_scope}}
96
+ **Integration Impact:** {{integration_impact_level}}
97
+ - id: integration-approach
98
+ title: Integration Approach
99
+ template: |
100
+ **Code Integration Strategy:** {{code_integration_approach}}
101
+ **Database Integration:** {{database_integration_approach}}
102
+ **API Integration:** {{api_integration_approach}}
103
+ **UI Integration:** {{ui_integration_approach}}
104
+ - id: compatibility-requirements
105
+ title: Compatibility Requirements
106
+ template: |
107
+ - **Existing API Compatibility:** {{api_compatibility}}
108
+ - **Database Schema Compatibility:** {{db_compatibility}}
109
+ - **UI/UX Consistency:** {{ui_compatibility}}
110
+ - **Performance Impact:** {{performance_constraints}}
111
+
112
+ - id: tech-stack
113
+ title: Tech Stack
114
+ instruction: |
115
+ Ensure new components align with existing technology choices:
116
+
117
+ 1. Use existing technology stack as the foundation
118
+ 2. Only introduce new technologies if absolutely necessary
119
+ 3. Justify any new additions with clear rationale
120
+ 4. Ensure version compatibility with existing dependencies
121
+ elicit: true
122
+ sections:
123
+ - id: existing-stack
124
+ title: Existing Technology Stack
125
+ type: table
126
+ columns:
127
+ [Category, Current Technology, Version, Usage in Enhancement, Notes]
128
+ instruction: Document the current stack that must be maintained or integrated with
129
+ - id: new-tech-additions
130
+ title: New Technology Additions
131
+ condition: Enhancement requires new technologies
132
+ type: table
133
+ columns: [Technology, Version, Purpose, Rationale, Integration Method]
134
+ instruction: Only include if new technologies are required for the enhancement
135
+
136
+ - id: data-models
137
+ title: Data Models and Schema Changes
138
+ instruction: |
139
+ Define new data models and how they integrate with existing schema:
140
+
141
+ 1. Identify new entities required for the enhancement
142
+ 2. Define relationships with existing data models
143
+ 3. Plan database schema changes (additions, modifications)
144
+ 4. Ensure backward compatibility
145
+ elicit: true
146
+ sections:
147
+ - id: new-models
148
+ title: New Data Models
149
+ repeatable: true
150
+ sections:
151
+ - id: model
152
+ title: '{{model_name}}'
153
+ template: |
154
+ **Purpose:** {{model_purpose}}
155
+ **Integration:** {{integration_with_existing}}
156
+
157
+ **Key Attributes:**
158
+ - {{attribute_1}}: {{type_1}} - {{description_1}}
159
+ - {{attribute_2}}: {{type_2}} - {{description_2}}
160
+
161
+ **Relationships:**
162
+ - **With Existing:** {{existing_relationships}}
163
+ - **With New:** {{new_relationships}}
164
+ - id: schema-integration
165
+ title: Schema Integration Strategy
166
+ template: |
167
+ **Database Changes Required:**
168
+ - **New Tables:** {{new_tables_list}}
169
+ - **Modified Tables:** {{modified_tables_list}}
170
+ - **New Indexes:** {{new_indexes_list}}
171
+ - **Migration Strategy:** {{migration_approach}}
172
+
173
+ **Backward Compatibility:**
174
+ - {{compatibility_measure_1}}
175
+ - {{compatibility_measure_2}}
176
+
177
+ - id: component-architecture
178
+ title: Component Architecture
179
+ instruction: |
180
+ Define new components and their integration with existing architecture:
181
+
182
+ 1. Identify new components required for the enhancement
183
+ 2. Define interfaces with existing components
184
+ 3. Establish clear boundaries and responsibilities
185
+ 4. Plan integration points and data flow
186
+
187
+ MANDATORY VALIDATION: Before presenting component architecture, confirm: "The new components I'm proposing follow the existing architectural patterns I identified in your codebase: [specific patterns]. The integration interfaces respect your current component structure and communication patterns. Does this match your project's reality?"
188
+ elicit: true
189
+ sections:
190
+ - id: new-components
191
+ title: New Components
192
+ repeatable: true
193
+ sections:
194
+ - id: component
195
+ title: '{{component_name}}'
196
+ template: |
197
+ **Responsibility:** {{component_description}}
198
+ **Integration Points:** {{integration_points}}
199
+
200
+ **Key Interfaces:**
201
+ - {{interface_1}}
202
+ - {{interface_2}}
203
+
204
+ **Dependencies:**
205
+ - **Existing Components:** {{existing_dependencies}}
206
+ - **New Components:** {{new_dependencies}}
207
+
208
+ **Technology Stack:** {{component_tech_details}}
209
+ - id: interaction-diagram
210
+ title: Component Interaction Diagram
211
+ type: mermaid
212
+ mermaid_type: graph
213
+ instruction: Create Mermaid diagram showing how new components interact with existing ones
214
+
215
+ - id: api-design
216
+ title: API Design and Integration
217
+ condition: Enhancement requires API changes
218
+ instruction: |
219
+ Define new API endpoints and integration with existing APIs:
220
+
221
+ 1. Plan new API endpoints required for the enhancement
222
+ 2. Ensure consistency with existing API patterns
223
+ 3. Define authentication and authorization integration
224
+ 4. Plan versioning strategy if needed
225
+ elicit: true
226
+ sections:
227
+ - id: api-strategy
228
+ title: API Integration Strategy
229
+ template: |
230
+ **API Integration Strategy:** {{api_integration_strategy}}
231
+ **Authentication:** {{auth_integration}}
232
+ **Versioning:** {{versioning_approach}}
233
+ - id: new-endpoints
234
+ title: New API Endpoints
235
+ repeatable: true
236
+ sections:
237
+ - id: endpoint
238
+ title: '{{endpoint_name}}'
239
+ template: |
240
+ - **Method:** {{http_method}}
241
+ - **Endpoint:** {{endpoint_path}}
242
+ - **Purpose:** {{endpoint_purpose}}
243
+ - **Integration:** {{integration_with_existing}}
244
+ sections:
245
+ - id: request
246
+ title: Request
247
+ type: code
248
+ language: json
249
+ template: '{{request_schema}}'
250
+ - id: response
251
+ title: Response
252
+ type: code
253
+ language: json
254
+ template: '{{response_schema}}'
255
+
256
+ - id: external-api-integration
257
+ title: External API Integration
258
+ condition: Enhancement requires new external APIs
259
+ instruction: Document new external API integrations required for the enhancement
260
+ repeatable: true
261
+ sections:
262
+ - id: external-api
263
+ title: '{{api_name}} API'
264
+ template: |
265
+ - **Purpose:** {{api_purpose}}
266
+ - **Documentation:** {{api_docs_url}}
267
+ - **Base URL:** {{api_base_url}}
268
+ - **Authentication:** {{auth_method}}
269
+ - **Integration Method:** {{integration_approach}}
270
+
271
+ **Key Endpoints Used:**
272
+ - `{{method}} {{endpoint_path}}` - {{endpoint_purpose}}
273
+
274
+ **Error Handling:** {{error_handling_strategy}}
275
+
276
+ - id: source-tree
277
+ title: Source Tree
278
+ instruction: |
279
+ Define how new code will integrate with existing project structure:
280
+
281
+ 1. Follow existing project organization patterns
282
+ 2. Identify where new files/folders will be placed
283
+ 3. Ensure consistency with existing naming conventions
284
+ 4. Plan for minimal disruption to existing structure
285
+ elicit: true
286
+ sections:
287
+ - id: existing-structure
288
+ title: Existing Project Structure
289
+ type: code
290
+ language: plaintext
291
+ instruction: Document relevant parts of current structure
292
+ template: '{{existing_structure_relevant_parts}}'
293
+ - id: new-file-organization
294
+ title: New File Organization
295
+ type: code
296
+ language: plaintext
297
+ instruction: Show only new additions to existing structure
298
+ template: |
299
+ {{project-root}}/
300
+ ├── {{existing_structure_context}}
301
+ │ ├── {{new_folder_1}}/ # {{purpose_1}}
302
+ │ │ ├── {{new_file_1}}
303
+ │ │ └── {{new_file_2}}
304
+ │ ├── {{existing_folder}}/ # Existing folder with additions
305
+ │ │ ├── {{existing_file}} # Existing file
306
+ │ │ └── {{new_file_3}} # New addition
307
+ │ └── {{new_folder_2}}/ # {{purpose_2}}
308
+ - id: integration-guidelines
309
+ title: Integration Guidelines
310
+ template: |
311
+ - **File Naming:** {{file_naming_consistency}}
312
+ - **Folder Organization:** {{folder_organization_approach}}
313
+ - **Import/Export Patterns:** {{import_export_consistency}}
314
+
315
+ - id: infrastructure-deployment
316
+ title: Infrastructure and Deployment Integration
317
+ instruction: |
318
+ Define how the enhancement will be deployed alongside existing infrastructure:
319
+
320
+ 1. Use existing deployment pipeline and infrastructure
321
+ 2. Identify any infrastructure changes needed
322
+ 3. Plan deployment strategy to minimize risk
323
+ 4. Define rollback procedures
324
+ elicit: true
325
+ sections:
326
+ - id: existing-infrastructure
327
+ title: Existing Infrastructure
328
+ template: |
329
+ **Current Deployment:** {{existing_deployment_summary}}
330
+ **Infrastructure Tools:** {{existing_infrastructure_tools}}
331
+ **Environments:** {{existing_environments}}
332
+ - id: enhancement-deployment
333
+ title: Enhancement Deployment Strategy
334
+ template: |
335
+ **Deployment Approach:** {{deployment_approach}}
336
+ **Infrastructure Changes:** {{infrastructure_changes}}
337
+ **Pipeline Integration:** {{pipeline_integration}}
338
+ - id: rollback-strategy
339
+ title: Rollback Strategy
340
+ template: |
341
+ **Rollback Method:** {{rollback_method}}
342
+ **Risk Mitigation:** {{risk_mitigation}}
343
+ **Monitoring:** {{monitoring_approach}}
344
+
345
+ - id: coding-standards
346
+ title: Coding Standards
347
+ instruction: |
348
+ Ensure new code follows existing project conventions:
349
+
350
+ 1. Document existing coding standards from project analysis
351
+ 2. Identify any enhancement-specific requirements
352
+ 3. Ensure consistency with existing codebase patterns
353
+ 4. Define standards for new code organization
354
+ elicit: true
355
+ sections:
356
+ - id: existing-standards
357
+ title: Existing Standards Compliance
358
+ template: |
359
+ **Code Style:** {{existing_code_style}}
360
+ **Linting Rules:** {{existing_linting}}
361
+ **Testing Patterns:** {{existing_test_patterns}}
362
+ **Documentation Style:** {{existing_doc_style}}
363
+ - id: enhancement-standards
364
+ title: Enhancement-Specific Standards
365
+ condition: New patterns needed for enhancement
366
+ repeatable: true
367
+ template: '- **{{standard_name}}:** {{standard_description}}'
368
+ - id: integration-rules
369
+ title: Critical Integration Rules
370
+ template: |
371
+ - **Existing API Compatibility:** {{api_compatibility_rule}}
372
+ - **Database Integration:** {{db_integration_rule}}
373
+ - **Error Handling:** {{error_handling_integration}}
374
+ - **Logging Consistency:** {{logging_consistency}}
375
+
376
+ - id: testing-strategy
377
+ title: Testing Strategy
378
+ instruction: |
379
+ Define testing approach for the enhancement:
380
+
381
+ 1. Integrate with existing test suite
382
+ 2. Ensure existing functionality remains intact
383
+ 3. Plan for testing new features
384
+ 4. Define integration testing approach
385
+ elicit: true
386
+ sections:
387
+ - id: existing-test-integration
388
+ title: Integration with Existing Tests
389
+ template: |
390
+ **Existing Test Framework:** {{existing_test_framework}}
391
+ **Test Organization:** {{existing_test_organization}}
392
+ **Coverage Requirements:** {{existing_coverage_requirements}}
393
+ - id: new-testing
394
+ title: New Testing Requirements
395
+ sections:
396
+ - id: unit-tests
397
+ title: Unit Tests for New Components
398
+ template: |
399
+ - **Framework:** {{test_framework}}
400
+ - **Location:** {{test_location}}
401
+ - **Coverage Target:** {{coverage_target}}
402
+ - **Integration with Existing:** {{test_integration}}
403
+ - id: integration-tests
404
+ title: Integration Tests
405
+ template: |
406
+ - **Scope:** {{integration_test_scope}}
407
+ - **Existing System Verification:** {{existing_system_verification}}
408
+ - **New Feature Testing:** {{new_feature_testing}}
409
+ - id: regression-tests
410
+ title: Regression Testing
411
+ template: |
412
+ - **Existing Feature Verification:** {{regression_test_approach}}
413
+ - **Automated Regression Suite:** {{automated_regression}}
414
+ - **Manual Testing Requirements:** {{manual_testing_requirements}}
415
+
416
+ - id: security-integration
417
+ title: Security Integration
418
+ instruction: |
419
+ Ensure security consistency with existing system:
420
+
421
+ 1. Follow existing security patterns and tools
422
+ 2. Ensure new features don't introduce vulnerabilities
423
+ 3. Maintain existing security posture
424
+ 4. Define security testing for new components
425
+ elicit: true
426
+ sections:
427
+ - id: existing-security
428
+ title: Existing Security Measures
429
+ template: |
430
+ **Authentication:** {{existing_auth}}
431
+ **Authorization:** {{existing_authz}}
432
+ **Data Protection:** {{existing_data_protection}}
433
+ **Security Tools:** {{existing_security_tools}}
434
+ - id: enhancement-security
435
+ title: Enhancement Security Requirements
436
+ template: |
437
+ **New Security Measures:** {{new_security_measures}}
438
+ **Integration Points:** {{security_integration_points}}
439
+ **Compliance Requirements:** {{compliance_requirements}}
440
+ - id: security-testing
441
+ title: Security Testing
442
+ template: |
443
+ **Existing Security Tests:** {{existing_security_tests}}
444
+ **New Security Test Requirements:** {{new_security_tests}}
445
+ **Penetration Testing:** {{pentest_requirements}}
446
+
447
+ - id: checklist-results
448
+ title: Checklist Results Report
449
+ instruction: Execute the architect-checklist and populate results here, focusing on brownfield-specific validation
450
+
451
+ - id: next-steps
452
+ title: Next Steps
453
+ instruction: |
454
+ After completing the brownfield architecture:
455
+
456
+ 1. Review integration points with existing system
457
+ 2. Begin story implementation with Dev agent
458
+ 3. Set up deployment pipeline integration
459
+ 4. Plan rollback and monitoring procedures
460
+ sections:
461
+ - id: story-manager-handoff
462
+ title: Story Manager Handoff
463
+ instruction: |
464
+ Create a brief prompt for Story Manager to work with this brownfield enhancement. Include:
465
+ - Reference to this architecture document
466
+ - Key integration requirements validated with user
467
+ - Existing system constraints based on actual project analysis
468
+ - First story to implement with clear integration checkpoints
469
+ - Emphasis on maintaining existing system integrity throughout implementation
470
+ - id: developer-handoff
471
+ title: Developer Handoff
472
+ instruction: |
473
+ Create a brief prompt for developers starting implementation. Include:
474
+ - Reference to this architecture and existing coding standards analyzed from actual project
475
+ - Integration requirements with existing codebase validated with user
476
+ - Key technical decisions based on real project constraints
477
+ - Existing system compatibility requirements with specific verification steps
478
+ - Clear sequencing of implementation to minimize risk to existing functionality