@atlashub/smartstack-cli 3.2.0 → 3.3.1

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 (33) hide show
  1. package/dist/index.js +605 -25
  2. package/dist/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/templates/agents/ba-reader.md +1 -1
  5. package/templates/agents/ba-writer.md +8 -1
  6. package/templates/skills/business-analyse/SKILL.md +21 -23
  7. package/templates/skills/business-analyse/_architecture.md +123 -0
  8. package/templates/skills/business-analyse/_elicitation.md +206 -0
  9. package/templates/skills/business-analyse/_module-loop.md +56 -0
  10. package/templates/skills/business-analyse/_shared.md +75 -531
  11. package/templates/skills/business-analyse/_suggestions.md +34 -0
  12. package/templates/skills/business-analyse/questionnaire/06-security.md +1 -1
  13. package/templates/skills/business-analyse/questionnaire.md +2 -2
  14. package/templates/skills/business-analyse/react/components.md +1 -1
  15. package/templates/skills/business-analyse/react/schema.md +1 -1
  16. package/templates/skills/business-analyse/references/html-data-mapping.md +294 -0
  17. package/templates/skills/business-analyse/schemas/feature-schema.json +1 -1
  18. package/templates/skills/business-analyse/schemas/sections/analysis-schema.json +1 -1
  19. package/templates/skills/business-analyse/schemas/sections/handoff-schema.json +1 -1
  20. package/templates/skills/business-analyse/schemas/sections/specification-schema.json +1 -1
  21. package/templates/skills/business-analyse/steps/step-00-init.md +13 -10
  22. package/templates/skills/business-analyse/steps/step-01-cadrage.md +2 -0
  23. package/templates/skills/business-analyse/steps/step-02-decomposition.md +5 -3
  24. package/templates/skills/business-analyse/steps/{step-03-specify.md → step-03a-specify.md} +16 -606
  25. package/templates/skills/business-analyse/steps/step-03b-compile.md +670 -0
  26. package/templates/skills/business-analyse/steps/step-04-consolidation.md +7 -5
  27. package/templates/skills/business-analyse/steps/step-05a-handoff.md +727 -0
  28. package/templates/skills/business-analyse/steps/step-05b-deploy.md +479 -0
  29. package/templates/skills/business-analyse/steps/step-06-extract.md +4 -2
  30. package/templates/skills/business-analyse/templates/tpl-frd.md +1 -1
  31. package/templates/skills/business-analyse/templates/tpl-launch-displays.md +161 -0
  32. package/templates/skills/business-analyse/templates/tpl-progress.md +171 -0
  33. package/templates/skills/business-analyse/steps/step-05-handoff.md +0 -1682
@@ -0,0 +1,171 @@
1
+ # Progress Tracker Template (templates/tpl-progress.md)
2
+
3
+ > **Used by:** step-05b-deploy (section 2: Initialize Progress Tracker)
4
+ > **Purpose:** Template structure for .ralph/progress.txt - populate with module-specific data
5
+
6
+ ## Template
7
+
8
+ ```
9
+ ═════════════════════════════════════════════════════════════════
10
+ SMARTSTACK RALPH LOOP - PROGRESS TRACKER
11
+ Project: {project_name} | Application: {app_name}
12
+ Modules: {count} ({moduleOrder.join(', ')})
13
+ Strategy: {implementation_strategy}
14
+ Created: {timestamp}
15
+ Status: HANDED-OFF
16
+ ═════════════════════════════════════════════════════════════════
17
+
18
+ {For each module in topological order:}
19
+ [MODULE: {module_name}] ({complexity})
20
+ Status: NOT STARTED
21
+ Dependencies: {list of module dependencies or "FOUNDATION"}
22
+
23
+ [DOMAIN] Entity & Value Object Definitions
24
+ □ Define {Entity1} entity with properties and validation
25
+ □ Define {Entity2} entity with relationships
26
+ □ Define {ValueObject1} value object
27
+ □ Define domain exceptions
28
+ □ Total: X tasks
29
+
30
+ [SEEDDATA-CORE] Core Configuration (MANDATORY)
31
+ □ NavigationModuleConfiguration - Module navigation structure
32
+ □ PermissionsConfiguration - RBAC permissions setup
33
+ □ RolesConfiguration - Predefined roles
34
+ □ TenantConfiguration - Test tenants
35
+ □ UserConfiguration - Test users
36
+ Total: 5 CORE tasks
37
+
38
+ [SEEDDATA] Business Reference Data
39
+ □ Seed {Entity1} reference data
40
+ □ Seed {Entity2} lookup values
41
+ □ Total: Y business seed tasks
42
+
43
+ [APPLICATION] Services & Business Logic
44
+ □ Create {ServiceName}Service for {UC1}
45
+ □ Create {DtoName}Dto for API contracts
46
+ □ Create {ValidatorName}Validator for input validation
47
+ □ Implement query handlers
48
+ Total: Z tasks
49
+
50
+ [INFRASTRUCTURE] Repositories & Persistence
51
+ □ Create {Entity1}Repository with CRUD + custom queries
52
+ □ Create {Entity2}Repository
53
+ □ Configure DbContext for module
54
+ □ Setup specifications for complex queries
55
+ □ Create IClientSeedDataProvider (client projects ONLY - injects core seeds at runtime)
56
+ □ Create DevDataSeeder + SeedConstants (if first module)
57
+ □ Total: A tasks
58
+
59
+ [API] REST Endpoints & Controllers
60
+ □ Create {ModuleNameController} GET endpoints (List, GetById)
61
+ □ Create {ModuleNameController} POST endpoint (Create)
62
+ □ Create {ModuleNameController} PUT endpoint (Update)
63
+ □ Create {ModuleNameController} DELETE endpoint (Delete)
64
+ □ Implement error handling and validation responses
65
+ Total: B tasks
66
+
67
+ [FRONTEND] UI Components & Pages (wireframe-driven)
68
+ □ Create {ModuleName}Page for listing [wireframe: {module}-list]
69
+ □ Create {ModuleName}DetailPage for viewing [wireframe: {module}-detail]
70
+ □ Create {ModuleName}Form component for creation/edit [wireframe: {module}-create]
71
+ □ Create custom hook use{ModuleName}
72
+ □ Implement pagination, filtering, sorting
73
+ □ Validate all pages match their wireframe layout
74
+ □ ⚠️ Routes MUST be INSIDE Layout wrapper (AdminLayout/BusinessLayout/UserLayout)
75
+ Total: C tasks
76
+
77
+ [I18N] Internationalization Keys
78
+ □ Define i18n keys for {Module} UI labels
79
+ □ Setup translations for locales: fr, en, it, de
80
+ Total: D keys
81
+
82
+ [TESTS] Unit & Integration Tests
83
+ □ Unit tests for {Entity} domain logic
84
+ □ Unit tests for {ServiceName}Service
85
+ □ Integration tests for {ModuleNameController}
86
+ □ Security tests for authorization & tenant isolation
87
+ □ E2E tests for critical user flows
88
+ Total: E unit + F integration + G security = H tests
89
+
90
+ [QA] Quality Assurance
91
+ □ Code review against SmartStack conventions
92
+ □ Test coverage minimum 80%
93
+ □ Security scan for OWASP vulnerabilities
94
+ □ Performance testing under load
95
+ Total: 4 QA tasks
96
+
97
+ Module Total: X + 5 + Y + Z + A + B + C + D + H + 4 = {module_total} tasks
98
+ Estimated Effort: {simple/medium/complex} - {1-3/3-8/8-15} days
99
+
100
+ {If multi-module:}
101
+ [CROSS-MODULE] Integration Tasks
102
+ Status: NOT STARTED
103
+ Dependencies: All modules COMPLETED
104
+
105
+ □ Verify cross-module entity relationships
106
+ □ Test cross-module API dependencies
107
+ □ Validate permission matrix across modules
108
+ □ E2E flow tests spanning multiple modules
109
+ □ Cross-module data consistency checks
110
+ □ Integration test suite for module interactions
111
+ Total: 6 CROSS-MODULE tasks
112
+
113
+ ═════════════════════════════════════════════════════════════════
114
+ SUMMARY
115
+ ═════════════════════════════════════════════════════════════════
116
+ Total Modules: {count}
117
+ Total Tasks: {total_count}
118
+ - CORE SeedData: {count} × 5 = {total_core}
119
+ - Business Tasks: {total_biz}
120
+ - Development: {total_dev}
121
+ - Tests: {total_tests}
122
+ - QA: {total_qa}
123
+ - Cross-Module: {cross_module_count or 0}
124
+
125
+ Strategy: {strategy}
126
+ Module Order: {topological order with dependencies noted}
127
+
128
+ Complexity Distribution:
129
+ Simple: {count} modules ({estimate} days each)
130
+ Medium: {count} modules ({estimate} days each)
131
+ Complex: {count} modules ({estimate} days each)
132
+
133
+ Total Effort Estimate: {total_days} days ({total_hours} hours)
134
+ Per Developer (2): {total_days / 2} days
135
+ Parallel Potential: {strategy_efficiency_percent}%
136
+
137
+ ═════════════════════════════════════════════════════════════════
138
+ LEGEND
139
+ ═════════════════════════════════════════════════════════════════
140
+ □ = Task not started
141
+ ✓ = Task completed
142
+ ⚠ = Task in progress
143
+ ✗ = Task failed / blocked
144
+
145
+ COLORS:
146
+ [DOMAIN] = Domain Model & Business Logic
147
+ [SEEDDATA-CORE] = MANDATORY core configuration (5 entries)
148
+ [SEEDDATA] = Business reference & lookup data
149
+ [APPLICATION] = Services, DTOs, Validators
150
+ [INFRASTRUCTURE] = Repositories, DbContext, ORM
151
+ [API] = REST controllers & endpoints
152
+ [FRONTEND] = React pages, components, hooks
153
+ [I18N] = Internationalization
154
+ [TESTS] = Unit, Integration, Security, E2E
155
+ [QA] = Code quality, coverage, security
156
+ [CROSS-MODULE] = Multi-module integration (if applicable)
157
+
158
+ ═════════════════════════════════════════════════════════════════
159
+ ```
160
+
161
+ ## Progress Tracker Rules
162
+
163
+ - One section per module, in topological order (dependencies first)
164
+ - CORE SeedData ALWAYS 5 entries (mandatory)
165
+ - Business SeedData varies by module
166
+ - Hierarchical task structure (module → layer → tasks)
167
+ - Each task is independent, assignable checkbox
168
+ - Effort estimate per module (simple/medium/complex)
169
+ - Summary with totals across all modules
170
+ - Identified dependencies for parallel execution
171
+ - Cross-module tasks only if multi-module