siesa-agents 1.5.0 → 2.0.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 (105) hide show
  1. package/bin/install.js +4 -4
  2. package/bmad-core/agent-teams/team-all.yaml +15 -0
  3. package/bmad-core/agent-teams/team-fullstack.yaml +19 -0
  4. package/bmad-core/agent-teams/team-ide-minimal.yaml +11 -0
  5. package/bmad-core/agent-teams/team-no-ui.yaml +14 -0
  6. package/bmad-core/agents/analyst.md +84 -0
  7. package/bmad-core/agents/architect.md +94 -0
  8. package/bmad-core/agents/backend-agent.md +190 -0
  9. package/bmad-core/agents/bmad-master.md +110 -0
  10. package/bmad-core/agents/bmad-orchestrator.md +147 -0
  11. package/bmad-core/agents/dev.md +81 -0
  12. package/bmad-core/agents/frontend-agent.md +169 -0
  13. package/bmad-core/agents/pm.md +84 -0
  14. package/bmad-core/agents/po.md +79 -0
  15. package/bmad-core/agents/qa.md +91 -0
  16. package/bmad-core/agents/sm.md +65 -0
  17. package/bmad-core/agents/ux-expert.md +69 -0
  18. package/bmad-core/checklists/architect-checklist.md +440 -0
  19. package/bmad-core/checklists/backend-checklist.md +143 -0
  20. package/bmad-core/checklists/change-checklist.md +184 -0
  21. package/bmad-core/checklists/frontend-checklist.md +106 -0
  22. package/bmad-core/checklists/pm-checklist.md +372 -0
  23. package/bmad-core/checklists/po-master-checklist.md +434 -0
  24. package/bmad-core/checklists/story-dod-checklist.md +96 -0
  25. package/bmad-core/checklists/story-draft-checklist.md +155 -0
  26. package/bmad-core/core-config.yaml +22 -0
  27. package/bmad-core/data/backend-standards.md +440 -0
  28. package/bmad-core/data/bmad-kb.md +809 -0
  29. package/bmad-core/data/brainstorming-techniques.md +38 -0
  30. package/bmad-core/data/elicitation-methods.md +156 -0
  31. package/bmad-core/data/frontend-standards.md +324 -0
  32. package/bmad-core/data/technical-preferences.md +5 -0
  33. package/bmad-core/data/test-levels-framework.md +148 -0
  34. package/bmad-core/data/test-priorities-matrix.md +174 -0
  35. package/bmad-core/enhanced-ide-development-workflow.md +248 -0
  36. package/bmad-core/install-manifest.yaml +230 -0
  37. package/bmad-core/tasks/advanced-elicitation.md +119 -0
  38. package/bmad-core/tasks/apply-qa-fixes.md +150 -0
  39. package/bmad-core/tasks/brownfield-create-epic.md +162 -0
  40. package/bmad-core/tasks/brownfield-create-story.md +149 -0
  41. package/bmad-core/tasks/correct-course.md +72 -0
  42. package/bmad-core/tasks/create-brownfield-story.md +314 -0
  43. package/bmad-core/tasks/create-component.md +103 -0
  44. package/bmad-core/tasks/create-deep-research-prompt.md +280 -0
  45. package/bmad-core/tasks/create-doc.md +103 -0
  46. package/bmad-core/tasks/create-entity.md +133 -0
  47. package/bmad-core/tasks/create-feature.md +91 -0
  48. package/bmad-core/tasks/create-next-story.md +114 -0
  49. package/bmad-core/tasks/create-service.md +118 -0
  50. package/bmad-core/tasks/create-use-case.md +141 -0
  51. package/bmad-core/tasks/document-project.md +345 -0
  52. package/bmad-core/tasks/execute-checklist.md +88 -0
  53. package/bmad-core/tasks/facilitate-brainstorming-session.md +138 -0
  54. package/bmad-core/tasks/generate-ai-frontend-prompt.md +53 -0
  55. package/bmad-core/tasks/index-docs.md +175 -0
  56. package/bmad-core/tasks/kb-mode-interaction.md +77 -0
  57. package/bmad-core/tasks/nfr-assess.md +345 -0
  58. package/bmad-core/tasks/qa-gate.md +163 -0
  59. package/bmad-core/tasks/review-story.md +316 -0
  60. package/bmad-core/tasks/risk-profile.md +355 -0
  61. package/bmad-core/tasks/scaffold-backend.md +111 -0
  62. package/bmad-core/tasks/scaffold-frontend.md +79 -0
  63. package/bmad-core/tasks/shard-doc.md +187 -0
  64. package/bmad-core/tasks/test-design.md +176 -0
  65. package/bmad-core/tasks/trace-requirements.md +266 -0
  66. package/bmad-core/tasks/validate-next-story.md +136 -0
  67. package/bmad-core/templates/architecture-tmpl.yaml +662 -0
  68. package/bmad-core/templates/brainstorming-output-tmpl.yaml +156 -0
  69. package/bmad-core/templates/brownfield-architecture-tmpl.yaml +477 -0
  70. package/bmad-core/templates/brownfield-prd-tmpl.yaml +281 -0
  71. package/bmad-core/templates/competitor-analysis-tmpl.yaml +307 -0
  72. package/bmad-core/templates/front-end-architecture-tmpl.yaml +258 -0
  73. package/bmad-core/templates/front-end-spec-tmpl.yaml +350 -0
  74. package/bmad-core/templates/fullstack-architecture-tmpl.yaml +824 -0
  75. package/bmad-core/templates/market-research-tmpl.yaml +253 -0
  76. package/bmad-core/templates/prd-tmpl.yaml +203 -0
  77. package/bmad-core/templates/project-brief-tmpl.yaml +222 -0
  78. package/bmad-core/templates/qa-gate-tmpl.yaml +103 -0
  79. package/bmad-core/templates/story-tmpl.yaml +138 -0
  80. package/bmad-core/user-guide.md +530 -0
  81. package/bmad-core/utils/bmad-doc-template.md +327 -0
  82. package/bmad-core/utils/workflow-management.md +71 -0
  83. package/bmad-core/workflows/brownfield-fullstack.yaml +298 -0
  84. package/bmad-core/workflows/brownfield-service.yaml +188 -0
  85. package/bmad-core/workflows/brownfield-ui.yaml +198 -0
  86. package/bmad-core/workflows/greenfield-fullstack.yaml +241 -0
  87. package/bmad-core/workflows/greenfield-service.yaml +207 -0
  88. package/bmad-core/workflows/greenfield-ui.yaml +236 -0
  89. package/bmad-core/working-in-the-brownfield.md +606 -0
  90. package/github/b-mad-expert.md +742 -0
  91. package/github/chatmodes/analyst.chatmode.md +89 -0
  92. package/github/chatmodes/architect.chatmode.md +97 -0
  93. package/github/chatmodes/backend.chatmode.md +195 -0
  94. package/github/chatmodes/bmad-master.chatmode.md +115 -0
  95. package/github/chatmodes/bmad-orchestrator.chatmode.md +152 -0
  96. package/github/chatmodes/dev.chatmode.md +86 -0
  97. package/github/chatmodes/frontend.chatmode.md +158 -0
  98. package/github/chatmodes/pm.chatmode.md +89 -0
  99. package/github/chatmodes/po.chatmode.md +84 -0
  100. package/github/chatmodes/qa.chatmode.md +96 -0
  101. package/github/chatmodes/sm.chatmode.md +70 -0
  102. package/github/chatmodes/ux-expert.chatmode.md +74 -0
  103. package/package.json +4 -4
  104. package/vscode/mcp.json +11 -0
  105. package/vscode/settings.json +13 -0
@@ -0,0 +1,355 @@
1
+ <!-- Powered by BMAD™ Core -->
2
+
3
+ # risk-profile
4
+
5
+ Generate a comprehensive risk assessment matrix for a story implementation using probability × impact analysis.
6
+
7
+ ## Inputs
8
+
9
+ ```yaml
10
+ required:
11
+ - story_id: '{epic}.{story}' # e.g., "1.3"
12
+ - story_path: 'docs/stories/{epic}.{story}.*.md'
13
+ - story_title: '{title}' # If missing, derive from story file H1
14
+ - story_slug: '{slug}' # If missing, derive from title (lowercase, hyphenated)
15
+ ```
16
+
17
+ ## Purpose
18
+
19
+ Identify, assess, and prioritize risks in the story implementation. Provide risk mitigation strategies and testing focus areas based on risk levels.
20
+
21
+ ## Risk Assessment Framework
22
+
23
+ ### Risk Categories
24
+
25
+ **Category Prefixes:**
26
+
27
+ - `TECH`: Technical Risks
28
+ - `SEC`: Security Risks
29
+ - `PERF`: Performance Risks
30
+ - `DATA`: Data Risks
31
+ - `BUS`: Business Risks
32
+ - `OPS`: Operational Risks
33
+
34
+ 1. **Technical Risks (TECH)**
35
+ - Architecture complexity
36
+ - Integration challenges
37
+ - Technical debt
38
+ - Scalability concerns
39
+ - System dependencies
40
+
41
+ 2. **Security Risks (SEC)**
42
+ - Authentication/authorization flaws
43
+ - Data exposure vulnerabilities
44
+ - Injection attacks
45
+ - Session management issues
46
+ - Cryptographic weaknesses
47
+
48
+ 3. **Performance Risks (PERF)**
49
+ - Response time degradation
50
+ - Throughput bottlenecks
51
+ - Resource exhaustion
52
+ - Database query optimization
53
+ - Caching failures
54
+
55
+ 4. **Data Risks (DATA)**
56
+ - Data loss potential
57
+ - Data corruption
58
+ - Privacy violations
59
+ - Compliance issues
60
+ - Backup/recovery gaps
61
+
62
+ 5. **Business Risks (BUS)**
63
+ - Feature doesn't meet user needs
64
+ - Revenue impact
65
+ - Reputation damage
66
+ - Regulatory non-compliance
67
+ - Market timing
68
+
69
+ 6. **Operational Risks (OPS)**
70
+ - Deployment failures
71
+ - Monitoring gaps
72
+ - Incident response readiness
73
+ - Documentation inadequacy
74
+ - Knowledge transfer issues
75
+
76
+ ## Risk Analysis Process
77
+
78
+ ### 1. Risk Identification
79
+
80
+ For each category, identify specific risks:
81
+
82
+ ```yaml
83
+ risk:
84
+ id: 'SEC-001' # Use prefixes: SEC, PERF, DATA, BUS, OPS, TECH
85
+ category: security
86
+ title: 'Insufficient input validation on user forms'
87
+ description: 'Form inputs not properly sanitized could lead to XSS attacks'
88
+ affected_components:
89
+ - 'UserRegistrationForm'
90
+ - 'ProfileUpdateForm'
91
+ detection_method: 'Code review revealed missing validation'
92
+ ```
93
+
94
+ ### 2. Risk Assessment
95
+
96
+ Evaluate each risk using probability × impact:
97
+
98
+ **Probability Levels:**
99
+
100
+ - `High (3)`: Likely to occur (>70% chance)
101
+ - `Medium (2)`: Possible occurrence (30-70% chance)
102
+ - `Low (1)`: Unlikely to occur (<30% chance)
103
+
104
+ **Impact Levels:**
105
+
106
+ - `High (3)`: Severe consequences (data breach, system down, major financial loss)
107
+ - `Medium (2)`: Moderate consequences (degraded performance, minor data issues)
108
+ - `Low (1)`: Minor consequences (cosmetic issues, slight inconvenience)
109
+
110
+ ### Risk Score = Probability × Impact
111
+
112
+ - 9: Critical Risk (Red)
113
+ - 6: High Risk (Orange)
114
+ - 4: Medium Risk (Yellow)
115
+ - 2-3: Low Risk (Green)
116
+ - 1: Minimal Risk (Blue)
117
+
118
+ ### 3. Risk Prioritization
119
+
120
+ Create risk matrix:
121
+
122
+ ```markdown
123
+ ## Risk Matrix
124
+
125
+ | Risk ID | Description | Probability | Impact | Score | Priority |
126
+ | -------- | ----------------------- | ----------- | ---------- | ----- | -------- |
127
+ | SEC-001 | XSS vulnerability | High (3) | High (3) | 9 | Critical |
128
+ | PERF-001 | Slow query on dashboard | Medium (2) | Medium (2) | 4 | Medium |
129
+ | DATA-001 | Backup failure | Low (1) | High (3) | 3 | Low |
130
+ ```
131
+
132
+ ### 4. Risk Mitigation Strategies
133
+
134
+ For each identified risk, provide mitigation:
135
+
136
+ ```yaml
137
+ mitigation:
138
+ risk_id: 'SEC-001'
139
+ strategy: 'preventive' # preventive|detective|corrective
140
+ actions:
141
+ - 'Implement input validation library (e.g., validator.js)'
142
+ - 'Add CSP headers to prevent XSS execution'
143
+ - 'Sanitize all user inputs before storage'
144
+ - 'Escape all outputs in templates'
145
+ testing_requirements:
146
+ - 'Security testing with OWASP ZAP'
147
+ - 'Manual penetration testing of forms'
148
+ - 'Unit tests for validation functions'
149
+ residual_risk: 'Low - Some zero-day vulnerabilities may remain'
150
+ owner: 'dev'
151
+ timeline: 'Before deployment'
152
+ ```
153
+
154
+ ## Outputs
155
+
156
+ ### Output 1: Gate YAML Block
157
+
158
+ Generate for pasting into gate file under `risk_summary`:
159
+
160
+ **Output rules:**
161
+
162
+ - Only include assessed risks; do not emit placeholders
163
+ - Sort risks by score (desc) when emitting highest and any tabular lists
164
+ - If no risks: totals all zeros, omit highest, keep recommendations arrays empty
165
+
166
+ ```yaml
167
+ # risk_summary (paste into gate file):
168
+ risk_summary:
169
+ totals:
170
+ critical: X # score 9
171
+ high: Y # score 6
172
+ medium: Z # score 4
173
+ low: W # score 2-3
174
+ highest:
175
+ id: SEC-001
176
+ score: 9
177
+ title: 'XSS on profile form'
178
+ recommendations:
179
+ must_fix:
180
+ - 'Add input sanitization & CSP'
181
+ monitor:
182
+ - 'Add security alerts for auth endpoints'
183
+ ```
184
+
185
+ ### Output 2: Markdown Report
186
+
187
+ **Save to:** `qa.qaLocation/assessments/{epic}.{story}-risk-{YYYYMMDD}.md`
188
+
189
+ ```markdown
190
+ # Risk Profile: Story {epic}.{story}
191
+
192
+ Date: {date}
193
+ Reviewer: Quinn (Test Architect)
194
+
195
+ ## Executive Summary
196
+
197
+ - Total Risks Identified: X
198
+ - Critical Risks: Y
199
+ - High Risks: Z
200
+ - Risk Score: XX/100 (calculated)
201
+
202
+ ## Critical Risks Requiring Immediate Attention
203
+
204
+ ### 1. [ID]: Risk Title
205
+
206
+ **Score: 9 (Critical)**
207
+ **Probability**: High - Detailed reasoning
208
+ **Impact**: High - Potential consequences
209
+ **Mitigation**:
210
+
211
+ - Immediate action required
212
+ - Specific steps to take
213
+ **Testing Focus**: Specific test scenarios needed
214
+
215
+ ## Risk Distribution
216
+
217
+ ### By Category
218
+
219
+ - Security: X risks (Y critical)
220
+ - Performance: X risks (Y critical)
221
+ - Data: X risks (Y critical)
222
+ - Business: X risks (Y critical)
223
+ - Operational: X risks (Y critical)
224
+
225
+ ### By Component
226
+
227
+ - Frontend: X risks
228
+ - Backend: X risks
229
+ - Database: X risks
230
+ - Infrastructure: X risks
231
+
232
+ ## Detailed Risk Register
233
+
234
+ [Full table of all risks with scores and mitigations]
235
+
236
+ ## Risk-Based Testing Strategy
237
+
238
+ ### Priority 1: Critical Risk Tests
239
+
240
+ - Test scenarios for critical risks
241
+ - Required test types (security, load, chaos)
242
+ - Test data requirements
243
+
244
+ ### Priority 2: High Risk Tests
245
+
246
+ - Integration test scenarios
247
+ - Edge case coverage
248
+
249
+ ### Priority 3: Medium/Low Risk Tests
250
+
251
+ - Standard functional tests
252
+ - Regression test suite
253
+
254
+ ## Risk Acceptance Criteria
255
+
256
+ ### Must Fix Before Production
257
+
258
+ - All critical risks (score 9)
259
+ - High risks affecting security/data
260
+
261
+ ### Can Deploy with Mitigation
262
+
263
+ - Medium risks with compensating controls
264
+ - Low risks with monitoring in place
265
+
266
+ ### Accepted Risks
267
+
268
+ - Document any risks team accepts
269
+ - Include sign-off from appropriate authority
270
+
271
+ ## Monitoring Requirements
272
+
273
+ Post-deployment monitoring for:
274
+
275
+ - Performance metrics for PERF risks
276
+ - Security alerts for SEC risks
277
+ - Error rates for operational risks
278
+ - Business KPIs for business risks
279
+
280
+ ## Risk Review Triggers
281
+
282
+ Review and update risk profile when:
283
+
284
+ - Architecture changes significantly
285
+ - New integrations added
286
+ - Security vulnerabilities discovered
287
+ - Performance issues reported
288
+ - Regulatory requirements change
289
+ ```
290
+
291
+ ## Risk Scoring Algorithm
292
+
293
+ Calculate overall story risk score:
294
+
295
+ ```text
296
+ Base Score = 100
297
+ For each risk:
298
+ - Critical (9): Deduct 20 points
299
+ - High (6): Deduct 10 points
300
+ - Medium (4): Deduct 5 points
301
+ - Low (2-3): Deduct 2 points
302
+
303
+ Minimum score = 0 (extremely risky)
304
+ Maximum score = 100 (minimal risk)
305
+ ```
306
+
307
+ ## Risk-Based Recommendations
308
+
309
+ Based on risk profile, recommend:
310
+
311
+ 1. **Testing Priority**
312
+ - Which tests to run first
313
+ - Additional test types needed
314
+ - Test environment requirements
315
+
316
+ 2. **Development Focus**
317
+ - Code review emphasis areas
318
+ - Additional validation needed
319
+ - Security controls to implement
320
+
321
+ 3. **Deployment Strategy**
322
+ - Phased rollout for high-risk changes
323
+ - Feature flags for risky features
324
+ - Rollback procedures
325
+
326
+ 4. **Monitoring Setup**
327
+ - Metrics to track
328
+ - Alerts to configure
329
+ - Dashboard requirements
330
+
331
+ ## Integration with Quality Gates
332
+
333
+ **Deterministic gate mapping:**
334
+
335
+ - Any risk with score ≥ 9 → Gate = FAIL (unless waived)
336
+ - Else if any score ≥ 6 → Gate = CONCERNS
337
+ - Else → Gate = PASS
338
+ - Unmitigated risks → Document in gate
339
+
340
+ ### Output 3: Story Hook Line
341
+
342
+ **Print this line for review task to quote:**
343
+
344
+ ```text
345
+ Risk profile: qa.qaLocation/assessments/{epic}.{story}-risk-{YYYYMMDD}.md
346
+ ```
347
+
348
+ ## Key Principles
349
+
350
+ - Identify risks early and systematically
351
+ - Use consistent probability × impact scoring
352
+ - Provide actionable mitigation strategies
353
+ - Link risks to specific test requirements
354
+ - Track residual risk after mitigation
355
+ - Update risk profile as story evolves
@@ -0,0 +1,111 @@
1
+ # Scaffold Backend Microservice
2
+
3
+ ## Purpose
4
+ Generate complete microservice structure with Hexagonal Architecture + DDD principles using NestJS.
5
+
6
+ **CRITICAL**: Always use NestJS 10+ with TypeScript, Prisma ORM, and strict hexagonal architecture patterns. No raw queries allowed - use Prisma for all database operations.
7
+
8
+ ## Task Configuration
9
+ ```yaml
10
+ elicit: true
11
+ interactive: true
12
+ required_params:
13
+ - service_name
14
+ - domain_contexts
15
+ optional_params:
16
+ - database_type
17
+ - messaging_transport
18
+ - shared_libraries
19
+ ```
20
+
21
+ ## Task Execution
22
+
23
+ ### Step 1: Elicit Service Requirements
24
+ Ask user for the following information:
25
+
26
+ **Service Name**: What would you like to name your microservice? (use kebab-case)
27
+ **Domain Contexts**: List the main bounded contexts for this service (e.g., quotes, products, billing)
28
+ **Database Type**: Which database will this service use? (PostgreSQL, MySQL, MongoDB - default: PostgreSQL)
29
+ **Messaging Transport**: What messaging transport? (Redis, RabbitMQ, gRPC - default: Redis)
30
+ **Shared Libraries**: Any existing shared libraries to include? (optional)
31
+
32
+ ### Step 2: Generate MonoRepo Structure
33
+ Create the following Nx workspace structure:
34
+
35
+ ```
36
+ apps/{service-name}/
37
+ ├── src/
38
+ │ ├── modules/
39
+ │ │ └── {context}/
40
+ │ │ ├── application/
41
+ │ │ │ ├── ports/
42
+ │ │ │ ├── use-cases/
43
+ │ │ │ ├── commands/
44
+ │ │ │ ├── queries/
45
+ │ │ │ └── dto/
46
+ │ │ ├── domain/
47
+ │ │ │ ├── entities/
48
+ │ │ │ ├── value-objects/
49
+ │ │ │ ├── aggregates/
50
+ │ │ │ ├── events/
51
+ │ │ │ └── services/
52
+ │ │ └── infrastructure/
53
+ │ │ ├── repositories/
54
+ │ │ ├── services/
55
+ │ │ └── events/
56
+ │ ├── api/
57
+ │ │ ├── controllers/
58
+ │ │ ├── guards/
59
+ │ │ ├── middlewares/
60
+ │ │ └── filters/
61
+ │ ├── config/
62
+ │ ├── main.ts
63
+ │ └── app.module.ts
64
+ ├── test/
65
+ ├── prisma/
66
+ │ ├── schema.prisma
67
+ │ └── migrations/
68
+ └── package.json
69
+ ```
70
+
71
+ ### Step 3: Setup NestJS Configuration
72
+ - Initialize NestJS application with TypeScript
73
+ - Configure Nx workspace if not exists
74
+ - Setup Prisma with selected database
75
+ - Configure dependency injection container
76
+ - Setup validation with class-validator
77
+ - Configure Swagger/OpenAPI documentation
78
+ - Setup health checks and monitoring
79
+
80
+ ### Step 4: Generate Domain Contexts
81
+ For each bounded context:
82
+ - Create hexagonal architecture layers
83
+ - Generate base domain entities with DDD patterns
84
+ - Create application ports (interfaces)
85
+ - Setup infrastructure adapters
86
+ - Create Prisma schema definitions
87
+ - Generate initial use cases
88
+
89
+ ### Step 5: Setup Shared Infrastructure
90
+ - Configure JWT authentication
91
+ - Setup Redis for caching and messaging
92
+ - Configure CORS and security headers
93
+ - Setup logging with Winston
94
+ - Configure environment variables
95
+ - Setup database connection pooling
96
+
97
+ ### Step 6: Generate Initial Tests
98
+ - Unit tests for domain entities
99
+ - Integration tests for use cases
100
+ - E2E tests for API endpoints
101
+ - Repository tests with test database
102
+ - Mocking strategies for external dependencies
103
+
104
+ ## Completion Criteria
105
+ - MonoRepo structure follows hexagonal architecture
106
+ - All dependencies properly configured
107
+ - Prisma schema generated and migrated
108
+ - TypeScript compiles without errors
109
+ - Initial tests pass
110
+ - Swagger documentation accessible
111
+ - Health checks responding
@@ -0,0 +1,79 @@
1
+ # Scaffold Frontend Project
2
+
3
+ ## Purpose
4
+ Generate complete frontend project structure with Clean Architecture + DDD principles.
5
+
6
+ **CRITICAL**: Always use Next.js 14+ with App Router as the default framework. Only use pure React + Vite when user explicitly mentions offline-first functionality or specifically requests non-Next.js setup.
7
+
8
+ ## Task Configuration
9
+ ```yaml
10
+ elicit: true
11
+ interactive: true
12
+ required_params:
13
+ - project_name
14
+ - features
15
+ optional_params:
16
+ - pwa_enabled
17
+ - theme_config
18
+ ```
19
+
20
+ ## Task Execution
21
+
22
+ ### Step 1: Elicit Project Requirements
23
+ Ask user for the following information:
24
+
25
+ **Project Name**: What would you like to name your frontend project?
26
+ **Initial Features**: List the main features/modules you want to start with (e.g., auth, dashboard, profile)
27
+ **PWA Enabled**: Do you want Progressive Web App capabilities? (default: yes)
28
+ **Theme Configuration**: Do you have specific theme/brand requirements?
29
+
30
+ ### Step 2: Generate Project Structure
31
+ Create the following folder structure:
32
+
33
+ ```
34
+ src/
35
+ ├── features/
36
+ │ └── shared/
37
+ │ ├── components/
38
+ │ ├── hooks/
39
+ │ ├── utils/
40
+ │ └── types/
41
+ ├── app/
42
+ │ ├── providers/
43
+ │ ├── router/
44
+ │ └── store/
45
+ └── infrastructure/
46
+ ├── api/
47
+ ├── storage/
48
+ └── pwa/
49
+ ```
50
+
51
+ ### Step 3: Setup Configuration Files
52
+ - Initialize Next.js 14+ project with TypeScript
53
+ - Configure Next.js config for App Router
54
+ - Setup TailwindCSS + Shadcn/ui integration
55
+ - Configure Vitest for testing (with Next.js)
56
+ - Setup ESLint + Prettier (Next.js config)
57
+ - Configure PWA with Next.js PWA plugin if requested
58
+ - Setup environment configuration
59
+
60
+ ### Step 4: Generate Initial Features
61
+ For each feature requested:
62
+ - Create feature folder with DDD structure
63
+ - Generate basic domain entities
64
+ - Create application layer with hooks and stores
65
+ - Setup infrastructure layer with API clients
66
+ - Create presentation layer with basic components
67
+
68
+ ### Step 5: Validation
69
+ - Verify all files compile without errors
70
+ - Run initial tests
71
+ - Check TypeScript strict mode compliance
72
+ - Validate folder structure follows Clean Architecture
73
+
74
+ ## Completion Criteria
75
+ - Project structure matches Clean Architecture patterns
76
+ - All dependencies are properly installed
77
+ - Initial features are scaffolded with all layers
78
+ - TypeScript compiles without errors
79
+ - Basic tests pass