siesa-agents 2.1.2 → 2.1.3

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 (111) hide show
  1. package/README.md +83 -83
  2. package/bin/install.js +400 -400
  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/backend.md +187 -187
  94. package/claude/commands/BMad/agents/frontend.md +150 -150
  95. package/github/b-mad-expert.md +742 -742
  96. package/github/chatmodes/analyst.chatmode.md +89 -89
  97. package/github/chatmodes/architect.chatmode.md +97 -97
  98. package/github/chatmodes/backend.chatmode.md +194 -194
  99. package/github/chatmodes/bmad-master.chatmode.md +115 -115
  100. package/github/chatmodes/bmad-orchestrator.chatmode.md +152 -152
  101. package/github/chatmodes/dev.chatmode.md +86 -86
  102. package/github/chatmodes/frontend.chatmode.md +157 -157
  103. package/github/chatmodes/pm.chatmode.md +89 -89
  104. package/github/chatmodes/po.chatmode.md +84 -84
  105. package/github/chatmodes/qa.chatmode.md +96 -96
  106. package/github/chatmodes/sm.chatmode.md +70 -70
  107. package/github/chatmodes/ux-expert.chatmode.md +74 -74
  108. package/index.js +9 -9
  109. package/package.json +37 -37
  110. package/vscode/mcp.json +11 -11
  111. package/vscode/settings.json +12 -12
@@ -1,258 +1,258 @@
1
- # <!-- Powered by BMAD™ Core -->
2
- template:
3
- id: frontend-architecture-template-v2
4
- name: Frontend Architecture Document
5
- version: 2.0
6
- output:
7
- format: markdown
8
- filename: docs/ui-architecture.md
9
- title: "{{project_name}} Frontend Architecture Document"
10
-
11
- workflow:
12
- mode: interactive
13
- elicitation: advanced-elicitation
14
-
15
- sections:
16
- - id: template-framework-selection
17
- title: Template and Framework Selection
18
- instruction: |
19
- Review provided documents including PRD, UX-UI Specification, and main Architecture Document. Focus on extracting technical implementation details needed for AI frontend tools and developer agents. Ask the user for any of these documents if you are unable to locate and were not provided.
20
-
21
- Before proceeding with frontend architecture design, check if the project is using a frontend starter template or existing codebase:
22
-
23
- 1. Review the PRD, main architecture document, and brainstorming brief for mentions of:
24
- - Frontend starter templates (e.g., Create React App, Next.js, Vite, Vue CLI, Angular CLI, etc.)
25
- - UI kit or component library starters
26
- - Existing frontend projects being used as a foundation
27
- - Admin dashboard templates or other specialized starters
28
- - Design system implementations
29
-
30
- 2. If a frontend starter template or existing project is mentioned:
31
- - Ask the user to provide access via one of these methods:
32
- - Link to the starter template documentation
33
- - Upload/attach the project files (for small projects)
34
- - Share a link to the project repository
35
- - Analyze the starter/existing project to understand:
36
- - Pre-installed dependencies and versions
37
- - Folder structure and file organization
38
- - Built-in components and utilities
39
- - Styling approach (CSS modules, styled-components, Tailwind, etc.)
40
- - State management setup (if any)
41
- - Routing configuration
42
- - Testing setup and patterns
43
- - Build and development scripts
44
- - Use this analysis to ensure your frontend architecture aligns with the starter's patterns
45
-
46
- 3. If no frontend starter is mentioned but this is a new UI, ensure we know what the ui language and framework is:
47
- - **DEFAULT RECOMMENDATION**: Next.js 14+ with App Router (recommended for most projects)
48
- - Based on specific requirements, suggest alternatives:
49
- - React with offline-first: Vite + React + Workbox
50
- - Vue projects: Vue CLI, Nuxt.js, Vite + Vue
51
- - Angular projects: Angular CLI
52
- - **IMPORTANT**: Always prefer Next.js unless user specifically requests offline-first functionality
53
- - Explain benefits of Next.js: Better DX, built-in optimization, easier deployment, PWA support
54
-
55
- 4. If the user confirms no starter template will be used:
56
- - Note that all tooling, bundling, and configuration will need manual setup
57
- - Proceed with frontend architecture from scratch
58
-
59
- Document the starter template decision and any constraints it imposes before proceeding.
60
- sections:
61
- - id: changelog
62
- title: Change Log
63
- type: table
64
- columns: [Date, Version, Description, Author]
65
- instruction: Track document versions and changes
66
-
67
- - id: frontend-tech-stack
68
- title: Frontend Tech Stack
69
- instruction: Extract from main architecture's Technology Stack Table. This section MUST remain synchronized with the main architecture document.
70
- elicit: true
71
- sections:
72
- - id: tech-stack-table
73
- title: Technology Stack Table
74
- type: table
75
- columns: [Category, Technology, Version, Purpose, Rationale]
76
- instruction: Fill in appropriate technology choices based on the selected framework and project requirements.
77
- rows:
78
- - ["Framework", "{{framework}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
79
- - ["UI Library", "{{ui_library}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
80
- - [
81
- "State Management",
82
- "{{state_management}}",
83
- "{{version}}",
84
- "{{purpose}}",
85
- "{{why_chosen}}",
86
- ]
87
- - ["Routing", "{{routing_library}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
88
- - ["Build Tool", "{{build_tool}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
89
- - ["Styling", "{{styling_solution}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
90
- - ["Testing", "{{test_framework}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
91
- - [
92
- "Component Library",
93
- "{{component_lib}}",
94
- "{{version}}",
95
- "{{purpose}}",
96
- "{{why_chosen}}",
97
- ]
98
- - ["Form Handling", "{{form_library}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
99
- - ["Animation", "{{animation_lib}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
100
- - ["Dev Tools", "{{dev_tools}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
101
-
102
- - id: project-structure
103
- title: Project Structure
104
- instruction: Define exact directory structure for AI tools based on the chosen framework. Be specific about where each type of file goes. Generate a structure that follows the framework's best practices and conventions.
105
- elicit: true
106
- type: code
107
- language: plaintext
108
-
109
- - id: component-standards
110
- title: Component Standards
111
- instruction: Define exact patterns for component creation based on the chosen framework.
112
- elicit: true
113
- sections:
114
- - id: component-template
115
- title: Component Template
116
- instruction: Generate a minimal but complete component template following the framework's best practices. Include TypeScript types, proper imports, and basic structure.
117
- type: code
118
- language: typescript
119
- - id: naming-conventions
120
- title: Naming Conventions
121
- instruction: Provide naming conventions specific to the chosen framework for components, files, services, state management, and other architectural elements.
122
-
123
- - id: state-management
124
- title: State Management
125
- instruction: Define state management patterns based on the chosen framework.
126
- elicit: true
127
- sections:
128
- - id: store-structure
129
- title: Store Structure
130
- instruction: Generate the state management directory structure appropriate for the chosen framework and selected state management solution.
131
- type: code
132
- language: plaintext
133
- - id: state-template
134
- title: State Management Template
135
- instruction: Provide a basic state management template/example following the framework's recommended patterns. Include TypeScript types and common operations like setting, updating, and clearing state.
136
- type: code
137
- language: typescript
138
-
139
- - id: api-integration
140
- title: API Integration
141
- instruction: Define API service patterns based on the chosen framework.
142
- elicit: true
143
- sections:
144
- - id: service-template
145
- title: Service Template
146
- instruction: Provide an API service template that follows the framework's conventions. Include proper TypeScript types, error handling, and async patterns.
147
- type: code
148
- language: typescript
149
- - id: api-client-config
150
- title: API Client Configuration
151
- instruction: Show how to configure the HTTP client for the chosen framework, including authentication interceptors/middleware and error handling.
152
- type: code
153
- language: typescript
154
-
155
- - id: routing
156
- title: Routing
157
- instruction: Define routing structure and patterns based on the chosen framework.
158
- elicit: true
159
- sections:
160
- - id: route-configuration
161
- title: Route Configuration
162
- instruction: Provide routing configuration appropriate for the chosen framework. Include protected route patterns, lazy loading where applicable, and authentication guards/middleware.
163
- type: code
164
- language: typescript
165
-
166
- - id: styling-guidelines
167
- title: Styling Guidelines
168
- instruction: Define styling approach based on the chosen framework.
169
- elicit: true
170
- sections:
171
- - id: styling-approach
172
- title: Styling Approach
173
- instruction: Describe the styling methodology appropriate for the chosen framework (CSS Modules, Styled Components, Tailwind, etc.) and provide basic patterns.
174
- - id: global-theme
175
- title: Global Theme Variables
176
- instruction: Provide a CSS custom properties (CSS variables) theme system that works across all frameworks. Include colors, spacing, typography, shadows, and dark mode support.
177
- type: code
178
- language: css
179
-
180
- - id: testing-requirements
181
- title: Testing Requirements
182
- instruction: Define minimal testing requirements based on the chosen framework.
183
- elicit: true
184
- sections:
185
- - id: component-test-template
186
- title: Component Test Template
187
- instruction: Provide a basic component test template using the framework's recommended testing library. Include examples of rendering tests, user interaction tests, and mocking.
188
- type: code
189
- language: typescript
190
- - id: testing-best-practices
191
- title: Testing Best Practices
192
- type: numbered-list
193
- items:
194
- - "**Unit Tests**: Test individual components in isolation"
195
- - "**Integration Tests**: Test component interactions"
196
- - "**E2E Tests**: Test critical user flows (using Cypress/Playwright)"
197
- - "**Coverage Goals**: Aim for 80% code coverage"
198
- - "**Test Structure**: Arrange-Act-Assert pattern"
199
- - "**Mock External Dependencies**: API calls, routing, state management"
200
-
201
- - id: environment-configuration
202
- title: Environment Configuration
203
- instruction: List required environment variables based on the chosen framework. Show the appropriate format and naming conventions for the framework.
204
- elicit: true
205
-
206
- - id: frontend-developer-standards
207
- title: Frontend Developer Standards
208
- sections:
209
- - id: critical-coding-rules
210
- title: Critical Coding Rules
211
- instruction: List essential rules that prevent common AI mistakes, including both universal rules and framework-specific ones.
212
- elicit: true
213
- - id: quick-reference
214
- title: Quick Reference
215
- instruction: |
216
- Create a framework-specific cheat sheet with:
217
- - Common commands (dev server, build, test)
218
- - Key import patterns
219
- - File naming conventions
220
- - Project-specific patterns and utilities
221
-
222
- - id: implementation-handoff
223
- title: Implementation & Next Steps
224
- instruction: |
225
- After completing the frontend architecture document:
226
-
227
- 1. **Ready for Frontend Implementation**:
228
- - This architecture is now ready for implementation
229
- - Recommend using the **Frontend Agent (@frontend)** for implementation
230
- - The frontend agent specializes in React + TypeScript + Clean Architecture
231
-
232
- 2. **Frontend Agent Handoff**:
233
- - Provide this architecture document to the frontend agent
234
- - The frontend agent can scaffold the project structure
235
- - Use `*scaffold` command to create the complete project setup
236
- - Use `*feature` to implement individual features
237
- - Use `*validate` to ensure architecture compliance
238
-
239
- 3. **Development Workflow**:
240
- - Frontend agent will follow Clean Architecture + DDD patterns
241
- - All components will have TypeScript, tests, and accessibility
242
- - Continuous validation against this architecture document
243
-
244
- 4. **Next Actions**:
245
- - Hand off to Frontend Agent for project scaffolding
246
- - Review and approve generated project structure
247
- - Begin feature implementation with frontend agent
248
- sections:
249
- - id: handoff-checklist
250
- title: Frontend Implementation Checklist
251
- type: checklist
252
- items:
253
- - "Frontend architecture document complete and reviewed"
254
- - "Technology stack clearly defined"
255
- - "Component structure and patterns documented"
256
- - "Testing strategy established"
257
- - "Ready to hand off to Frontend Agent (@frontend)"
258
- - "Project requirements and constraints communicated"
1
+ # <!-- Powered by BMAD™ Core -->
2
+ template:
3
+ id: frontend-architecture-template-v2
4
+ name: Frontend Architecture Document
5
+ version: 2.0
6
+ output:
7
+ format: markdown
8
+ filename: docs/ui-architecture.md
9
+ title: "{{project_name}} Frontend Architecture Document"
10
+
11
+ workflow:
12
+ mode: interactive
13
+ elicitation: advanced-elicitation
14
+
15
+ sections:
16
+ - id: template-framework-selection
17
+ title: Template and Framework Selection
18
+ instruction: |
19
+ Review provided documents including PRD, UX-UI Specification, and main Architecture Document. Focus on extracting technical implementation details needed for AI frontend tools and developer agents. Ask the user for any of these documents if you are unable to locate and were not provided.
20
+
21
+ Before proceeding with frontend architecture design, check if the project is using a frontend starter template or existing codebase:
22
+
23
+ 1. Review the PRD, main architecture document, and brainstorming brief for mentions of:
24
+ - Frontend starter templates (e.g., Create React App, Next.js, Vite, Vue CLI, Angular CLI, etc.)
25
+ - UI kit or component library starters
26
+ - Existing frontend projects being used as a foundation
27
+ - Admin dashboard templates or other specialized starters
28
+ - Design system implementations
29
+
30
+ 2. If a frontend starter template or existing project is mentioned:
31
+ - Ask the user to provide access via one of these methods:
32
+ - Link to the starter template documentation
33
+ - Upload/attach the project files (for small projects)
34
+ - Share a link to the project repository
35
+ - Analyze the starter/existing project to understand:
36
+ - Pre-installed dependencies and versions
37
+ - Folder structure and file organization
38
+ - Built-in components and utilities
39
+ - Styling approach (CSS modules, styled-components, Tailwind, etc.)
40
+ - State management setup (if any)
41
+ - Routing configuration
42
+ - Testing setup and patterns
43
+ - Build and development scripts
44
+ - Use this analysis to ensure your frontend architecture aligns with the starter's patterns
45
+
46
+ 3. If no frontend starter is mentioned but this is a new UI, ensure we know what the ui language and framework is:
47
+ - **DEFAULT RECOMMENDATION**: Next.js 14+ with App Router (recommended for most projects)
48
+ - Based on specific requirements, suggest alternatives:
49
+ - React with offline-first: Vite + React + Workbox
50
+ - Vue projects: Vue CLI, Nuxt.js, Vite + Vue
51
+ - Angular projects: Angular CLI
52
+ - **IMPORTANT**: Always prefer Next.js unless user specifically requests offline-first functionality
53
+ - Explain benefits of Next.js: Better DX, built-in optimization, easier deployment, PWA support
54
+
55
+ 4. If the user confirms no starter template will be used:
56
+ - Note that all tooling, bundling, and configuration will need manual setup
57
+ - Proceed with frontend architecture from scratch
58
+
59
+ Document the starter template decision and any constraints it imposes before proceeding.
60
+ sections:
61
+ - id: changelog
62
+ title: Change Log
63
+ type: table
64
+ columns: [Date, Version, Description, Author]
65
+ instruction: Track document versions and changes
66
+
67
+ - id: frontend-tech-stack
68
+ title: Frontend Tech Stack
69
+ instruction: Extract from main architecture's Technology Stack Table. This section MUST remain synchronized with the main architecture document.
70
+ elicit: true
71
+ sections:
72
+ - id: tech-stack-table
73
+ title: Technology Stack Table
74
+ type: table
75
+ columns: [Category, Technology, Version, Purpose, Rationale]
76
+ instruction: Fill in appropriate technology choices based on the selected framework and project requirements.
77
+ rows:
78
+ - ["Framework", "{{framework}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
79
+ - ["UI Library", "{{ui_library}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
80
+ - [
81
+ "State Management",
82
+ "{{state_management}}",
83
+ "{{version}}",
84
+ "{{purpose}}",
85
+ "{{why_chosen}}",
86
+ ]
87
+ - ["Routing", "{{routing_library}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
88
+ - ["Build Tool", "{{build_tool}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
89
+ - ["Styling", "{{styling_solution}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
90
+ - ["Testing", "{{test_framework}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
91
+ - [
92
+ "Component Library",
93
+ "{{component_lib}}",
94
+ "{{version}}",
95
+ "{{purpose}}",
96
+ "{{why_chosen}}",
97
+ ]
98
+ - ["Form Handling", "{{form_library}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
99
+ - ["Animation", "{{animation_lib}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
100
+ - ["Dev Tools", "{{dev_tools}}", "{{version}}", "{{purpose}}", "{{why_chosen}}"]
101
+
102
+ - id: project-structure
103
+ title: Project Structure
104
+ instruction: Define exact directory structure for AI tools based on the chosen framework. Be specific about where each type of file goes. Generate a structure that follows the framework's best practices and conventions.
105
+ elicit: true
106
+ type: code
107
+ language: plaintext
108
+
109
+ - id: component-standards
110
+ title: Component Standards
111
+ instruction: Define exact patterns for component creation based on the chosen framework.
112
+ elicit: true
113
+ sections:
114
+ - id: component-template
115
+ title: Component Template
116
+ instruction: Generate a minimal but complete component template following the framework's best practices. Include TypeScript types, proper imports, and basic structure.
117
+ type: code
118
+ language: typescript
119
+ - id: naming-conventions
120
+ title: Naming Conventions
121
+ instruction: Provide naming conventions specific to the chosen framework for components, files, services, state management, and other architectural elements.
122
+
123
+ - id: state-management
124
+ title: State Management
125
+ instruction: Define state management patterns based on the chosen framework.
126
+ elicit: true
127
+ sections:
128
+ - id: store-structure
129
+ title: Store Structure
130
+ instruction: Generate the state management directory structure appropriate for the chosen framework and selected state management solution.
131
+ type: code
132
+ language: plaintext
133
+ - id: state-template
134
+ title: State Management Template
135
+ instruction: Provide a basic state management template/example following the framework's recommended patterns. Include TypeScript types and common operations like setting, updating, and clearing state.
136
+ type: code
137
+ language: typescript
138
+
139
+ - id: api-integration
140
+ title: API Integration
141
+ instruction: Define API service patterns based on the chosen framework.
142
+ elicit: true
143
+ sections:
144
+ - id: service-template
145
+ title: Service Template
146
+ instruction: Provide an API service template that follows the framework's conventions. Include proper TypeScript types, error handling, and async patterns.
147
+ type: code
148
+ language: typescript
149
+ - id: api-client-config
150
+ title: API Client Configuration
151
+ instruction: Show how to configure the HTTP client for the chosen framework, including authentication interceptors/middleware and error handling.
152
+ type: code
153
+ language: typescript
154
+
155
+ - id: routing
156
+ title: Routing
157
+ instruction: Define routing structure and patterns based on the chosen framework.
158
+ elicit: true
159
+ sections:
160
+ - id: route-configuration
161
+ title: Route Configuration
162
+ instruction: Provide routing configuration appropriate for the chosen framework. Include protected route patterns, lazy loading where applicable, and authentication guards/middleware.
163
+ type: code
164
+ language: typescript
165
+
166
+ - id: styling-guidelines
167
+ title: Styling Guidelines
168
+ instruction: Define styling approach based on the chosen framework.
169
+ elicit: true
170
+ sections:
171
+ - id: styling-approach
172
+ title: Styling Approach
173
+ instruction: Describe the styling methodology appropriate for the chosen framework (CSS Modules, Styled Components, Tailwind, etc.) and provide basic patterns.
174
+ - id: global-theme
175
+ title: Global Theme Variables
176
+ instruction: Provide a CSS custom properties (CSS variables) theme system that works across all frameworks. Include colors, spacing, typography, shadows, and dark mode support.
177
+ type: code
178
+ language: css
179
+
180
+ - id: testing-requirements
181
+ title: Testing Requirements
182
+ instruction: Define minimal testing requirements based on the chosen framework.
183
+ elicit: true
184
+ sections:
185
+ - id: component-test-template
186
+ title: Component Test Template
187
+ instruction: Provide a basic component test template using the framework's recommended testing library. Include examples of rendering tests, user interaction tests, and mocking.
188
+ type: code
189
+ language: typescript
190
+ - id: testing-best-practices
191
+ title: Testing Best Practices
192
+ type: numbered-list
193
+ items:
194
+ - "**Unit Tests**: Test individual components in isolation"
195
+ - "**Integration Tests**: Test component interactions"
196
+ - "**E2E Tests**: Test critical user flows (using Cypress/Playwright)"
197
+ - "**Coverage Goals**: Aim for 80% code coverage"
198
+ - "**Test Structure**: Arrange-Act-Assert pattern"
199
+ - "**Mock External Dependencies**: API calls, routing, state management"
200
+
201
+ - id: environment-configuration
202
+ title: Environment Configuration
203
+ instruction: List required environment variables based on the chosen framework. Show the appropriate format and naming conventions for the framework.
204
+ elicit: true
205
+
206
+ - id: frontend-developer-standards
207
+ title: Frontend Developer Standards
208
+ sections:
209
+ - id: critical-coding-rules
210
+ title: Critical Coding Rules
211
+ instruction: List essential rules that prevent common AI mistakes, including both universal rules and framework-specific ones.
212
+ elicit: true
213
+ - id: quick-reference
214
+ title: Quick Reference
215
+ instruction: |
216
+ Create a framework-specific cheat sheet with:
217
+ - Common commands (dev server, build, test)
218
+ - Key import patterns
219
+ - File naming conventions
220
+ - Project-specific patterns and utilities
221
+
222
+ - id: implementation-handoff
223
+ title: Implementation & Next Steps
224
+ instruction: |
225
+ After completing the frontend architecture document:
226
+
227
+ 1. **Ready for Frontend Implementation**:
228
+ - This architecture is now ready for implementation
229
+ - Recommend using the **Frontend Agent (@frontend)** for implementation
230
+ - The frontend agent specializes in React + TypeScript + Clean Architecture
231
+
232
+ 2. **Frontend Agent Handoff**:
233
+ - Provide this architecture document to the frontend agent
234
+ - The frontend agent can scaffold the project structure
235
+ - Use `*scaffold` command to create the complete project setup
236
+ - Use `*feature` to implement individual features
237
+ - Use `*validate` to ensure architecture compliance
238
+
239
+ 3. **Development Workflow**:
240
+ - Frontend agent will follow Clean Architecture + DDD patterns
241
+ - All components will have TypeScript, tests, and accessibility
242
+ - Continuous validation against this architecture document
243
+
244
+ 4. **Next Actions**:
245
+ - Hand off to Frontend Agent for project scaffolding
246
+ - Review and approve generated project structure
247
+ - Begin feature implementation with frontend agent
248
+ sections:
249
+ - id: handoff-checklist
250
+ title: Frontend Implementation Checklist
251
+ type: checklist
252
+ items:
253
+ - "Frontend architecture document complete and reviewed"
254
+ - "Technology stack clearly defined"
255
+ - "Component structure and patterns documented"
256
+ - "Testing strategy established"
257
+ - "Ready to hand off to Frontend Agent (@frontend)"
258
+ - "Project requirements and constraints communicated"