@atlashub/smartstack-cli 1.13.2 → 1.14.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 (214) hide show
  1. package/.documentation/agents.html +1 -1
  2. package/.documentation/apex.html +1 -1
  3. package/.documentation/business-analyse.html +1 -1
  4. package/.documentation/cli-commands.html +3 -3
  5. package/.documentation/commands.html +1 -1
  6. package/.documentation/efcore.html +1 -1
  7. package/.documentation/gitflow.html +231 -236
  8. package/.documentation/hooks.html +1 -1
  9. package/.documentation/index.html +1 -1
  10. package/.documentation/init.html +3 -3
  11. package/.documentation/installation.html +1075 -351
  12. package/.documentation/ralph-loop.html +1 -1
  13. package/.documentation/test-web.html +1 -1
  14. package/README.md +88 -20
  15. package/config/default-config.json +10 -1
  16. package/dist/index.js +276 -85
  17. package/dist/index.js.map +1 -1
  18. package/package.json +1 -1
  19. package/templates/agents/code-reviewer.md +163 -0
  20. package/templates/agents/efcore/db-deploy.md +25 -7
  21. package/templates/agents/efcore/db-reset.md +31 -10
  22. package/templates/agents/efcore/db-status.md +22 -5
  23. package/templates/agents/efcore/migration.md +70 -20
  24. package/templates/agents/gitflow/cleanup.md +8 -1
  25. package/templates/agents/gitflow/commit.md +7 -5
  26. package/templates/agents/gitflow/finish.md +6 -4
  27. package/templates/agents/gitflow/pr.md +8 -1
  28. package/templates/agents/gitflow/start.md +1 -1
  29. package/templates/commands/check-version.md +267 -0
  30. package/templates/commands/efcore/_shared.md +31 -2
  31. package/templates/commands/efcore/db-reset.md +18 -6
  32. package/templates/commands/efcore/migration.md +1 -1
  33. package/templates/commands/efcore/rebase-snapshot.md +1 -1
  34. package/templates/commands/efcore/squash.md +1 -0
  35. package/templates/commands/refactor.md +164 -0
  36. package/templates/project/DependencyInjection.Application.cs.template +25 -0
  37. package/templates/project/DependencyInjection.Infrastructure.cs.template +61 -0
  38. package/templates/project/DesignTimeExtensionsDbContextFactory.cs.template +70 -0
  39. package/templates/project/ExampleEntity.cs.template +116 -0
  40. package/templates/project/ExampleEntityConfiguration.cs.template +64 -0
  41. package/templates/project/ExampleService.cs.template +146 -0
  42. package/templates/project/ExtensionsDbContext.cs.template +41 -0
  43. package/templates/project/IExtensionsDbContext.cs.template +22 -0
  44. package/templates/project/Program.cs.template +47 -0
  45. package/templates/project/README.md +79 -0
  46. package/templates/ralph/README.md +10 -8
  47. package/templates/ralph/ralph.config.yaml +2 -2
  48. package/templates/skills/_shared.md +44 -44
  49. package/templates/skills/ai-prompt/SKILL.md +55 -55
  50. package/templates/skills/apex/SKILL.md +235 -0
  51. package/templates/skills/apex/steps/step-00-init.md +203 -0
  52. package/templates/skills/apex/steps/step-01-analyze.md +210 -0
  53. package/templates/skills/apex/steps/step-02-plan.md +217 -0
  54. package/templates/skills/apex/steps/step-03-execute.md +178 -0
  55. package/templates/skills/apex/steps/step-04-validate.md +217 -0
  56. package/templates/skills/apex/steps/step-05-examine.md +207 -0
  57. package/templates/skills/apex/steps/step-06-resolve.md +181 -0
  58. package/templates/skills/apex/steps/step-07-tests.md +206 -0
  59. package/templates/skills/apex/steps/step-08-run-tests.md +207 -0
  60. package/templates/skills/apex/templates/00-context.md +46 -0
  61. package/templates/skills/apex/templates/01-analyze.md +63 -0
  62. package/templates/skills/apex/templates/02-plan.md +63 -0
  63. package/templates/skills/apex/templates/03-execute.md +34 -0
  64. package/templates/skills/apex/templates/04-validate.md +61 -0
  65. package/templates/skills/apex/templates/05-examine.md +58 -0
  66. package/templates/skills/apex/templates/06-resolve.md +39 -0
  67. package/templates/skills/apex/templates/07-tests.md +56 -0
  68. package/templates/skills/apex/templates/08-run-tests.md +41 -0
  69. package/templates/skills/apex/templates/README.md +69 -0
  70. package/templates/skills/application/SKILL.md +50 -50
  71. package/templates/skills/application/templates-backend.md +25 -25
  72. package/templates/skills/application/templates-frontend.md +43 -43
  73. package/templates/skills/application/templates-i18n.md +29 -29
  74. package/templates/skills/application/templates-seed.md +77 -77
  75. package/templates/skills/business-analyse/SKILL.md +223 -0
  76. package/templates/skills/business-analyse/_shared.md +258 -0
  77. package/templates/skills/business-analyse/questionnaire/01-context.md +33 -0
  78. package/templates/skills/business-analyse/questionnaire/02-stakeholders.md +35 -0
  79. package/templates/skills/business-analyse/questionnaire/03-scope.md +35 -0
  80. package/templates/skills/business-analyse/questionnaire/04-data.md +36 -0
  81. package/templates/skills/business-analyse/questionnaire/05-integrations.md +36 -0
  82. package/templates/skills/business-analyse/questionnaire/06-security.md +40 -0
  83. package/templates/skills/business-analyse/questionnaire/07-ui.md +36 -0
  84. package/templates/skills/business-analyse/questionnaire/08-performance.md +35 -0
  85. package/templates/skills/business-analyse/questionnaire/09-constraints.md +35 -0
  86. package/templates/skills/business-analyse/questionnaire/10-documentation.md +35 -0
  87. package/templates/skills/business-analyse/questionnaire.md +177 -177
  88. package/templates/skills/business-analyse/react/components.md +340 -0
  89. package/templates/skills/business-analyse/react/i18n-template.md +245 -0
  90. package/templates/skills/business-analyse/react/schema.md +151 -0
  91. package/templates/skills/business-analyse/steps/step-00-init.md +293 -0
  92. package/templates/skills/business-analyse/steps/step-01-discover.md +267 -0
  93. package/templates/skills/business-analyse/steps/step-02-analyse.md +243 -0
  94. package/templates/skills/business-analyse/steps/step-03-specify.md +317 -0
  95. package/templates/skills/business-analyse/steps/step-04-validate.md +239 -0
  96. package/templates/skills/business-analyse/steps/step-05-handoff.md +336 -0
  97. package/templates/skills/business-analyse/steps/step-06-doc-html.md +261 -0
  98. package/templates/skills/business-analyse/templates/00-context.md +105 -0
  99. package/templates/skills/business-analyse/templates/frd-brd.md +97 -0
  100. package/templates/skills/business-analyse/templates/frd-discovery.md +78 -0
  101. package/templates/skills/business-analyse/templates/frd-handoff.md +118 -0
  102. package/templates/skills/business-analyse/templates/frd-spec.md +168 -0
  103. package/templates/skills/business-analyse/templates-frd.md +217 -217
  104. package/templates/skills/business-analyse/templates-react.md +26 -26
  105. package/templates/skills/controller/SKILL.md +141 -92
  106. package/templates/skills/controller/postman-templates.md +15 -15
  107. package/templates/skills/controller/steps/step-00-init.md +191 -0
  108. package/templates/skills/controller/steps/step-01-analyze.md +146 -0
  109. package/templates/skills/controller/steps/step-02-plan.md +176 -0
  110. package/templates/skills/controller/steps/step-03-generate.md +219 -0
  111. package/templates/skills/controller/steps/step-04-perms.md +219 -0
  112. package/templates/skills/controller/steps/step-05-validate.md +107 -0
  113. package/templates/skills/controller/templates.md +77 -77
  114. package/templates/skills/documentation/SKILL.md +79 -79
  115. package/templates/skills/feature-full/SKILL.md +38 -38
  116. package/templates/skills/gitflow/SKILL.md +277 -0
  117. package/templates/{commands → skills}/gitflow/_shared.md +20 -20
  118. package/templates/skills/gitflow/phases/abort.md +173 -0
  119. package/templates/skills/gitflow/phases/cleanup.md +226 -0
  120. package/templates/skills/gitflow/phases/status.md +178 -0
  121. package/templates/skills/gitflow/steps/step-commit.md +255 -0
  122. package/templates/skills/gitflow/steps/step-finish.md +255 -0
  123. package/templates/skills/gitflow/steps/step-init.md +209 -0
  124. package/templates/skills/gitflow/steps/step-merge.md +225 -0
  125. package/templates/skills/gitflow/steps/step-plan.md +208 -0
  126. package/templates/skills/gitflow/steps/step-pr.md +235 -0
  127. package/templates/skills/gitflow/steps/step-start.md +334 -0
  128. package/templates/skills/gitflow/steps/step-sync.md +200 -0
  129. package/templates/skills/gitflow/templates/config.json +53 -0
  130. package/templates/skills/notification/SKILL.md +51 -51
  131. package/templates/skills/ralph-loop/SKILL.md +228 -0
  132. package/templates/skills/ralph-loop/steps/step-00-init.md +201 -0
  133. package/templates/skills/ralph-loop/steps/step-01-task.md +169 -0
  134. package/templates/skills/ralph-loop/steps/step-02-execute.md +173 -0
  135. package/templates/skills/ralph-loop/steps/step-03-commit.md +170 -0
  136. package/templates/skills/ralph-loop/steps/step-04-check.md +162 -0
  137. package/templates/skills/ralph-loop/steps/step-05-report.md +181 -0
  138. package/templates/skills/review-code/SKILL.md +219 -0
  139. package/templates/skills/review-code/references/clean-code-principles.md +140 -0
  140. package/templates/skills/review-code/references/code-quality-metrics.md +174 -0
  141. package/templates/skills/review-code/references/feedback-patterns.md +149 -0
  142. package/templates/skills/review-code/references/security-checklist.md +127 -0
  143. package/templates/skills/ui-components/SKILL.md +54 -54
  144. package/templates/skills/workflow/SKILL.md +46 -46
  145. package/templates/commands/ai-prompt.md +0 -315
  146. package/templates/commands/apex/1-analyze.md +0 -100
  147. package/templates/commands/apex/2-plan.md +0 -145
  148. package/templates/commands/apex/3-execute.md +0 -171
  149. package/templates/commands/apex/4-examine.md +0 -116
  150. package/templates/commands/apex/5-tasks.md +0 -209
  151. package/templates/commands/apex.md +0 -76
  152. package/templates/commands/application/create.md +0 -362
  153. package/templates/commands/application/templates-backend.md +0 -463
  154. package/templates/commands/application/templates-frontend.md +0 -517
  155. package/templates/commands/application/templates-i18n.md +0 -478
  156. package/templates/commands/application/templates-seed.md +0 -362
  157. package/templates/commands/application.md +0 -303
  158. package/templates/commands/business-analyse/0-orchestrate.md +0 -156
  159. package/templates/commands/business-analyse/1-init.md +0 -99
  160. package/templates/commands/business-analyse/2-discover.md +0 -143
  161. package/templates/commands/business-analyse/3-analyse.md +0 -106
  162. package/templates/commands/business-analyse/4-specify.md +0 -133
  163. package/templates/commands/business-analyse/5-validate.md +0 -132
  164. package/templates/commands/business-analyse/6-handoff.md +0 -157
  165. package/templates/commands/business-analyse/7-doc-html.md +0 -103
  166. package/templates/commands/business-analyse/_shared.md +0 -176
  167. package/templates/commands/business-analyse/bug.md +0 -118
  168. package/templates/commands/business-analyse/change-request.md +0 -144
  169. package/templates/commands/business-analyse/hotfix.md +0 -116
  170. package/templates/commands/business-analyse.md +0 -121
  171. package/templates/commands/controller/create.md +0 -216
  172. package/templates/commands/controller/postman-templates.md +0 -528
  173. package/templates/commands/controller/templates.md +0 -600
  174. package/templates/commands/controller.md +0 -337
  175. package/templates/commands/create/agent.md +0 -138
  176. package/templates/commands/create/command.md +0 -166
  177. package/templates/commands/create/hook.md +0 -234
  178. package/templates/commands/create/plugin.md +0 -329
  179. package/templates/commands/create/project.md +0 -508
  180. package/templates/commands/create/skill.md +0 -199
  181. package/templates/commands/create.md +0 -220
  182. package/templates/commands/documentation/module.md +0 -202
  183. package/templates/commands/documentation/templates.md +0 -432
  184. package/templates/commands/documentation.md +0 -190
  185. package/templates/commands/epct.md +0 -69
  186. package/templates/commands/explain.md +0 -186
  187. package/templates/commands/feature-full.md +0 -267
  188. package/templates/commands/gitflow/1-init.md +0 -188
  189. package/templates/commands/gitflow/10-start.md +0 -190
  190. package/templates/commands/gitflow/11-finish.md +0 -382
  191. package/templates/commands/gitflow/12-cleanup.md +0 -103
  192. package/templates/commands/gitflow/13-sync.md +0 -216
  193. package/templates/commands/gitflow/14-rebase.md +0 -251
  194. package/templates/commands/gitflow/2-status.md +0 -122
  195. package/templates/commands/gitflow/3-commit.md +0 -209
  196. package/templates/commands/gitflow/4-plan.md +0 -174
  197. package/templates/commands/gitflow/5-exec.md +0 -202
  198. package/templates/commands/gitflow/6-abort.md +0 -121
  199. package/templates/commands/gitflow/7-pull-request.md +0 -176
  200. package/templates/commands/gitflow/8-review.md +0 -113
  201. package/templates/commands/gitflow/9-merge.md +0 -157
  202. package/templates/commands/gitflow.md +0 -128
  203. package/templates/commands/implement.md +0 -663
  204. package/templates/commands/init.md +0 -567
  205. package/templates/commands/mcp-integration.md +0 -330
  206. package/templates/commands/notification.md +0 -129
  207. package/templates/commands/oneshot.md +0 -57
  208. package/templates/commands/quickstart.md +0 -154
  209. package/templates/commands/ralph-loop/cancel-ralph.md +0 -18
  210. package/templates/commands/ralph-loop/help.md +0 -126
  211. package/templates/commands/ralph-loop/ralph-loop.md +0 -120
  212. package/templates/commands/review.md +0 -106
  213. package/templates/commands/workflow.md +0 -193
  214. package/templates/gitflow/config.json +0 -138
@@ -0,0 +1,261 @@
1
+ ---
2
+ name: step-06-doc-html
3
+ description: Documentation phase - Generate React documentation page
4
+ model: sonnet
5
+ prev_step: steps/step-05-handoff.md
6
+ next_step: null
7
+ ---
8
+
9
+ <objective>
10
+ Generate React documentation page integrated into SmartStack web app.
11
+ Create i18n translations in 4 languages (FR, EN, IT, DE).
12
+ </objective>
13
+
14
+ <context7>
15
+ CONTEXT7 REQUIRED for React generation:
16
+
17
+ ```
18
+ Use context7 with /facebook/react and /i18next/react-i18next
19
+ to generate documentation components following SmartStack patterns
20
+ ```
21
+
22
+ Libraries to reference:
23
+ - /facebook/react - React 19 patterns
24
+ - /i18next/react-i18next - Internationalization
25
+ - /remix-run/react-router - React Router v7
26
+ - /lucide-icons/lucide-react - Icons
27
+ </context7>
28
+
29
+ ## EXECUTION SEQUENCE
30
+
31
+ ### 1. Read Current State
32
+
33
+ Read `{output_dir}/00-context.md` for state variables.
34
+ Read FRD: `{output_dir}/3-functional-specification.md`
35
+
36
+ Update progress: `06-doc-html` -> "In Progress"
37
+
38
+ ---
39
+
40
+ ### 2. Load React Templates (Progressive)
41
+
42
+ ```
43
+ Read: react/components.md # ~250 lines (React components)
44
+ Read: react/schema.md # ~100 lines (TypeScript interfaces)
45
+ ```
46
+
47
+ **NOT loaded:** Full templates-react.md (580 lines)
48
+ **Savings:** ~230 lines (40% reduction)
49
+
50
+ ---
51
+
52
+ ### 3. Extract FRD Data
53
+
54
+ Parse FRD to create structured data object:
55
+
56
+ ```typescript
57
+ interface FrdData {
58
+ featureId: string; // From state
59
+ moduleName: string; // From state
60
+ applicationName: string; // From state
61
+ version: string; // "1.0"
62
+ useCases: UseCase[]; // From FRD section 2
63
+ businessRules: BusinessRule[]; // From BRD section 3
64
+ permissions: Permission[]; // From FRD section 6
65
+ }
66
+ ```
67
+
68
+ ---
69
+
70
+ ### 4. Generate React Component
71
+
72
+ Using `react/components.md` template, generate:
73
+
74
+ **File:** `web/smartstack-web/src/pages/docs/business/{app}/{module}/FrdDocPage.tsx`
75
+
76
+ Key sections:
77
+ - Breadcrumb navigation
78
+ - Header with feature ID and version
79
+ - Table of contents
80
+ - Section 1: Overview with stats
81
+ - Section 2: Use Cases cards
82
+ - Section 3: Business Rules table
83
+ - Section 4: Permissions list
84
+ - Section 5: Wireframe preview
85
+ - Section 6: API Endpoints table
86
+ - Footer navigation
87
+
88
+ **Use Context7** for:
89
+ - Latest React patterns
90
+ - Proper hook usage
91
+ - TypeScript typing
92
+
93
+ ---
94
+
95
+ ### 5. Generate i18n Translations
96
+
97
+ **Create 4 language files:**
98
+
99
+ | Language | File |
100
+ |----------|------|
101
+ | FR | `web/smartstack-web/src/i18n/locales/fr/docs-{app}-{module}.json` |
102
+ | EN | `web/smartstack-web/src/i18n/locales/en/docs-{app}-{module}.json` |
103
+ | IT | `web/smartstack-web/src/i18n/locales/it/docs-{app}-{module}.json` |
104
+ | DE | `web/smartstack-web/src/i18n/locales/de/docs-{app}-{module}.json` |
105
+
106
+ **Structure:**
107
+
108
+ ```json
109
+ {
110
+ "breadcrumb": {
111
+ "docs": "Documentation",
112
+ "business": "Business"
113
+ },
114
+ "common": {
115
+ "tableOfContents": "Table of Contents",
116
+ "wireframePreview": "Wireframe Preview"
117
+ },
118
+ "sections": {
119
+ "overview": "Overview",
120
+ "useCases": "Use Cases",
121
+ "businessRules": "Business Rules",
122
+ "permissions": "Permissions",
123
+ "wireframes": "Wireframes",
124
+ "api": "API Endpoints"
125
+ },
126
+ "labels": {
127
+ "actor": "Actor",
128
+ "rule": "Rule",
129
+ "category": "Category",
130
+ "priority": "Priority"
131
+ },
132
+ "stats": {
133
+ "useCases": "Use Cases",
134
+ "businessRules": "Business Rules",
135
+ "permissions": "Permissions"
136
+ },
137
+ "warnings": {
138
+ "permissionCheck": "Permission Check Required",
139
+ "permissionCheckDescription": "Ensure all permissions are registered before deployment."
140
+ },
141
+ "nav": {
142
+ "backToApp": "Back to Application",
143
+ "allModules": "All Modules"
144
+ },
145
+ "apps": {
146
+ "{app}": {
147
+ "name": "{Application Name}",
148
+ "description": "{Application description}"
149
+ }
150
+ },
151
+ "modules": {
152
+ "{module}": {
153
+ "name": "{Module Name}",
154
+ "title": "{Module Title}",
155
+ "subtitle": "{Module subtitle}",
156
+ "overview": "{Module overview from FRD}"
157
+ }
158
+ }
159
+ }
160
+ ```
161
+
162
+ **Translation strategy:**
163
+ - FR: Source language (from FRD)
164
+ - EN: Translate from FR
165
+ - IT: Translate from FR
166
+ - DE: Translate from FR
167
+
168
+ ---
169
+
170
+ ### 6. Update Routing
171
+
172
+ **Add route to App.tsx or routes config:**
173
+
174
+ ```tsx
175
+ {
176
+ path: '/docs/business/{app}/{module}',
177
+ element: <{Module}FrdDocPage />,
178
+ handle: {
179
+ permission: 'docs.read' // Public or minimal permission
180
+ }
181
+ }
182
+ ```
183
+
184
+ ---
185
+
186
+ ### 7. Update Index Page (if needed)
187
+
188
+ If this is a new module in existing application:
189
+
190
+ Update `web/smartstack-web/src/pages/docs/business/{app}/index.tsx`:
191
+
192
+ ```tsx
193
+ const modules: ModuleLink[] = [
194
+ // ... existing modules
195
+ {
196
+ id: '{module}',
197
+ name: '{Module Name}',
198
+ description: '{Module description}',
199
+ features: {feature_count},
200
+ path: '/docs/business/{app}/{module}'
201
+ }
202
+ ];
203
+ ```
204
+
205
+ ---
206
+
207
+ ### 8. Save Outputs
208
+
209
+ **Files created:**
210
+
211
+ | File | Purpose |
212
+ |------|---------|
213
+ | `FrdDocPage.tsx` | React documentation component |
214
+ | `fr/docs-{app}-{module}.json` | French translations |
215
+ | `en/docs-{app}-{module}.json` | English translations |
216
+ | `it/docs-{app}-{module}.json` | Italian translations |
217
+ | `de/docs-{app}-{module}.json` | German translations |
218
+
219
+ Update `00-context.md`:
220
+ - Progress: `06-doc-html` -> "Complete"
221
+
222
+ ---
223
+
224
+ ### 9. Display Final Summary
225
+
226
+ ```
227
+ DOCUMENTATION - {feature_id}
228
+ ├── Status: Complete
229
+ ├── React page: FrdDocPage.tsx
230
+ ├── i18n: 4 languages created
231
+ ├── Route: /docs/business/{app}/{module}
232
+ └── BA WORKFLOW COMPLETE
233
+
234
+ Summary:
235
+ ├── Discovery: {output_dir}/1-discovery.md
236
+ ├── BRD: {output_dir}/2-business-requirements.md
237
+ ├── FRD: {output_dir}/3-functional-specification.md
238
+ ├── Validation: {output_dir}/validation.json (APPROVED)
239
+ ├── Handoff: {output_dir}/4-development-handoff.md
240
+ └── Documentation: web/.../FrdDocPage.tsx
241
+
242
+ Next steps:
243
+ 1. Review generated documentation at /docs/business/{app}/{module}
244
+ 2. Execute /implement {feature_id} to start development
245
+ 3. Run tests after implementation
246
+
247
+ Thank you for using Business Analysis skill!
248
+ Contact: support@atlshub.ch
249
+ ```
250
+
251
+ ---
252
+
253
+ ## OUTPUT
254
+
255
+ This step produces:
256
+ - React documentation page
257
+ - 4 i18n translation files
258
+ - Updated routing
259
+ - Final BA summary
260
+
261
+ **BA Workflow Complete.**
@@ -0,0 +1,105 @@
1
+ # Business Analysis: {{feature_id}}
2
+
3
+ **Created:** {{timestamp}}
4
+ **Feature:** {{feature_description}}
5
+ **Application:** business/{{application_name}}/{{module_name}}
6
+
7
+ ---
8
+
9
+ ## Configuration
10
+
11
+ | Setting | Value |
12
+ |---------|-------|
13
+ | Auto mode | {{auto_mode}} |
14
+ | Save mode | {{save_mode}} |
15
+ | Economy mode | {{economy_mode}} |
16
+
17
+ ---
18
+
19
+ ## Progress
20
+
21
+ | Step | Status | Started | Completed |
22
+ |------|--------|---------|-----------|
23
+ | 00-init | {{step_00_status}} | {{step_00_started}} | {{step_00_completed}} |
24
+ | 01-discover | {{step_01_status}} | {{step_01_started}} | {{step_01_completed}} |
25
+ | 02-analyse | {{step_02_status}} | {{step_02_started}} | {{step_02_completed}} |
26
+ | 03-specify | {{step_03_status}} | {{step_03_started}} | {{step_03_completed}} |
27
+ | 04-validate | {{step_04_status}} | {{step_04_started}} | {{step_04_completed}} |
28
+ | 05-handoff | {{step_05_status}} | {{step_05_started}} | {{step_05_completed}} |
29
+ | 06-doc-html | {{step_06_status}} | {{step_06_started}} | {{step_06_completed}} |
30
+
31
+ ---
32
+
33
+ ## State Variables
34
+
35
+ | Variable | Value |
36
+ |----------|-------|
37
+ | feature_id | {{feature_id}} |
38
+ | feature_description | {{feature_description}} |
39
+ | application_name | {{application_name}} |
40
+ | module_name | {{module_name}} |
41
+ | context | business |
42
+ | permission_base | business.{{application_name}}.{{module_name}} |
43
+
44
+ ---
45
+
46
+ ## Metrics
47
+
48
+ | Metric | Value |
49
+ |--------|-------|
50
+ | Questionnaire categories loaded | {{categories_loaded}} |
51
+ | Questions answered | {{questions_answered}} |
52
+ | Open questions | {{open_questions}} |
53
+ | Business objectives | {{obj_count}} |
54
+ | Business rules | {{br_count}} |
55
+ | Use cases | {{uc_count}} |
56
+ | Functional requirements | {{fr_count}} |
57
+ | Permissions | {{perm_count}} |
58
+
59
+ ---
60
+
61
+ ## Acceptance Criteria
62
+
63
+ {{#acceptance_criteria}}
64
+ - [ ] {{criterion}}
65
+ {{/acceptance_criteria}}
66
+
67
+ ---
68
+
69
+ ## Validation Status
70
+
71
+ | Check | Status |
72
+ |-------|--------|
73
+ | Discovery complete | {{discovery_status}} |
74
+ | BRD complete | {{brd_status}} |
75
+ | FRD complete | {{frd_status}} |
76
+ | Validation decision | {{validation_decision}} |
77
+ | Handoff ready | {{handoff_status}} |
78
+
79
+ ---
80
+
81
+ ## Files Generated
82
+
83
+ | File | Status | Size |
84
+ |------|--------|------|
85
+ | 1-discovery.md | {{discovery_file_status}} | {{discovery_file_size}} |
86
+ | 2-business-requirements.md | {{brd_file_status}} | {{brd_file_size}} |
87
+ | 3-functional-specification.md | {{frd_file_status}} | {{frd_file_size}} |
88
+ | validation.json | {{validation_file_status}} | {{validation_file_size}} |
89
+ | 4-development-handoff.md | {{handoff_file_status}} | {{handoff_file_size}} |
90
+
91
+ ---
92
+
93
+ ## Notes
94
+
95
+ {{notes}}
96
+
97
+ ---
98
+
99
+ ## History
100
+
101
+ | Timestamp | Action | Details |
102
+ |-----------|--------|---------|
103
+ {{#history}}
104
+ | {{timestamp}} | {{action}} | {{details}} |
105
+ {{/history}}
@@ -0,0 +1,97 @@
1
+ # Template Business Requirements Document
2
+
3
+ > **Usage:** Template for 2-business-requirements.md
4
+ > **Loaded in:** step-02-analyse.md
5
+
6
+ ---
7
+
8
+ ```markdown
9
+ # BRD - {FEAT-XXX} {Feature Name}
10
+
11
+ > **Module:** business/{application}/{module}
12
+ > **Version:** 1.0
13
+ > **Based on:** 1-discovery.md v1.0
14
+
15
+ ## 1. Executive Summary
16
+
17
+ {3-5 sentence summary of the business need and proposed solution}
18
+
19
+ ## 2. Business Objectives
20
+
21
+ | ID | Objective | Metric | Target |
22
+ |----|----------|--------|--------|
23
+ | OBJ-001 | {objective} | {Measurable KPI} | {target value} |
24
+
25
+ ## 3. Business Rules
26
+
27
+ | ID | Rule | Category | Priority |
28
+ |----|------|----------|----------|
29
+ | BR-001 | {Business rule description} | Validation/Calculation/Workflow | Must/Should/Could |
30
+ | BR-002 | {Description} | {category} | {priority} |
31
+
32
+ ### 3.1 Critical Rules Detail
33
+
34
+ #### BR-001: {Rule Name}
35
+
36
+ **Statement:** {Precise rule formulation}
37
+
38
+ **Conditions:**
39
+ - IF {condition A}
40
+ - AND {condition B}
41
+ - THEN {result}
42
+ - ELSE {alternative result}
43
+
44
+ **Examples:**
45
+ | Input | Expected Output |
46
+ |--------|-----------------|
47
+ | {example 1} | {result 1} |
48
+ | {example 2} | {result 2} |
49
+
50
+ ## 4. Business Process
51
+
52
+ ### 4.1 Main Process
53
+
54
+ ```
55
+ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
56
+ │ Step 1 │────►│ Step 2 │────►│ Step 3 │
57
+ │ {action} │ │ {action} │ │ {action} │
58
+ └─────────────┘ └─────────────┘ └─────────────┘
59
+ │ │ │
60
+ ▼ ▼ ▼
61
+ {actor} {actor} {actor}
62
+ ```
63
+
64
+ ### 4.2 Alternative Flows
65
+
66
+ | Trigger | Flow | Result |
67
+ |---------|------|--------|
68
+ | {condition} | {flow description} | {final state} |
69
+
70
+ ## 5. Business Data
71
+
72
+ ### 5.1 Main Entities
73
+
74
+ | Entity | Description | Cardinality |
75
+ |--------|-------------|-------------|
76
+ | {Entity} | {description} | 1:N with {other entity} |
77
+
78
+ ### 5.2 Key Attributes (NO technical types)
79
+
80
+ | Entity | Attribute | Description | Required |
81
+ |--------|-----------|-------------|----------|
82
+ | {Entity} | {attribute} | {business description} | Yes/No |
83
+
84
+ ## 6. Integrations
85
+
86
+ | System | Direction | Data | Frequency |
87
+ |--------|-----------|------|-----------|
88
+ | {system} | Input/Output/Bidirectional | {data} | Real-time/Batch |
89
+
90
+ ---
91
+
92
+ ## Version History
93
+
94
+ | Version | Date | Author | Changes |
95
+ |---------|------|--------|---------|
96
+ | 1.0 | {date} | BA | Initial creation |
97
+ ```
@@ -0,0 +1,78 @@
1
+ # Template Discovery Document
2
+
3
+ > **Usage:** Template for 1-discovery.md
4
+ > **Loaded in:** step-01-discover.md
5
+
6
+ ---
7
+
8
+ ```markdown
9
+ # Discovery - {FEAT-XXX} {Feature Name}
10
+
11
+ > **Module:** business/{application}/{module}
12
+ > **Version:** 1.0
13
+ > **Date:** {YYYY-MM-DD}
14
+ > **Author:** Business Analyst
15
+
16
+ ## 1. Business Context
17
+
18
+ ### 1.1 Need Description
19
+ {Clear description of the business need expressed by the stakeholder}
20
+
21
+ ### 1.2 Current Problem
22
+ {Current situation and its limitations}
23
+
24
+ ### 1.3 Expected Value
25
+ {Measurable business benefits}
26
+
27
+ ## 2. Stakeholders
28
+
29
+ | Role | Name/Function | Involvement | Decision Level |
30
+ |------|--------------|-------------|-----------------|
31
+ | Sponsor | {name} | {description} | Approver |
32
+ | Product Owner | {name} | {description} | Decision Maker |
33
+ | Key User | {name} | {description} | Consulted |
34
+
35
+ ## 3. Scope
36
+
37
+ ### 3.1 In Scope
38
+ - [ ] {Included feature 1}
39
+ - [ ] {Included feature 2}
40
+
41
+ ### 3.2 Out of Scope
42
+ - {Explicit exclusion 1}
43
+ - {Explicit exclusion 2}
44
+
45
+ ## 4. Open Questions
46
+
47
+ | # | Question | Answer | Status |
48
+ |---|----------|--------|--------|
49
+ | Q1 | {Question} | {Answer or "Pending"} | ⏳/✅ |
50
+
51
+ ## 5. Identified Constraints
52
+
53
+ | Type | Constraint | Impact |
54
+ |------|------------|--------|
55
+ | Technical | {constraint} | {impact} |
56
+ | Budget | {constraint} | {impact} |
57
+ | Schedule | {constraint} | {impact} |
58
+ | Regulatory | {constraint} | {impact} |
59
+
60
+ ## 6. Dependencies
61
+
62
+ | Dependency | Type | Module/System | Criticality |
63
+ |------------|------|----------------|-----------|
64
+ | {dep} | Internal/External | {module} | High/Medium/Low |
65
+
66
+ ## 7. Acceptance Criteria (Inferred)
67
+
68
+ - [ ] AC-001: {criterion}
69
+ - [ ] AC-002: {criterion}
70
+
71
+ ---
72
+
73
+ ## Version History
74
+
75
+ | Version | Date | Author | Changes |
76
+ |---------|------|--------|---------|
77
+ | 1.0 | {date} | BA | Initial creation |
78
+ ```
@@ -0,0 +1,118 @@
1
+ # Template Development Handoff
2
+
3
+ > **Usage:** Template for 4-development-handoff.md
4
+ > **Loaded in:** step-05-handoff.md
5
+
6
+ ---
7
+
8
+ ```markdown
9
+ # Development Handoff - {FEAT-XXX} {Feature Name}
10
+
11
+ > **Module:** business/{application}/{module}
12
+ > **Version:** 1.0
13
+ > **Validated Specs:** FRD v1.0 (validation.json)
14
+ > **Implementation:** `/implement {FEAT-XXX}`
15
+
16
+ ## DEVELOPER INSTRUCTIONS
17
+
18
+ This document is a self-contained prompt for Claude Code. Execute:
19
+ ```
20
+ /implement {FEAT-XXX}
21
+ ```
22
+
23
+ ---
24
+
25
+ ## 1. QUICK CONTEXT
26
+
27
+ | Attribute | Value |
28
+ |----------|--------|
29
+ | Feature ID | {FEAT-XXX} |
30
+ | Module | business/{application}/{module} |
31
+ | Base Permission | `business.{app}.{module}` |
32
+ | Complexity | {Simple/Medium/Complex} |
33
+
34
+ ## 2. [EXPLORE] EXISTING PATTERNS
35
+
36
+ BEFORE coding, explore these files to understand the patterns:
37
+
38
+ ```
39
+ BACKEND:
40
+ - src/SmartStack.Domain/Entities/ → Entity structure
41
+ - src/SmartStack.Application/Features/ → CQRS pattern
42
+ - src/SmartStack.Infrastructure/Persistence/Configurations/ → EF Core
43
+
44
+ FRONTEND:
45
+ - web/smartstack-web/src/pages/business/ → Existing pages
46
+ - web/smartstack-web/src/components/ → Reusable components
47
+ - web/smartstack-web/src/services/api/ → API calls
48
+ ```
49
+
50
+ ## 3. FILES TO CREATE
51
+
52
+ ### 3.1 Backend
53
+
54
+ | File | Template | Description |
55
+ |------|----------|-------------|
56
+ | `Domain/Entities/{Entity}.cs` | Domain Entity | Properties + rules |
57
+ | `Application/Features/{Module}/` | CQRS | MediatR handlers |
58
+ | `Infrastructure/.../Configurations/` | EF Core | Config + HasData |
59
+ | `Api/Controllers/Business/` | Controller | REST endpoints |
60
+
61
+ ### 3.2 Frontend
62
+
63
+ | File | Template | Description |
64
+ |------|----------|-------------|
65
+ | `pages/business/{app}/{module}/` | React Page | List + detail |
66
+ | `services/api/{module}Api.ts` | API Service | Axios calls |
67
+ | `i18n/locales/{lang}/{module}.json` | Translations | FR, EN, IT, DE |
68
+
69
+ ## 4. DETAILED SPECIFICATIONS
70
+
71
+ ### 4.1 Entity
72
+
73
+ | Attribute | Description | Required | Rules |
74
+ |-----------|-------------|----------|-------|
75
+ | Id | Unique identifier | Yes | GUID |
76
+ | {attr} | {description} | {Yes/No} | {validation} |
77
+
78
+ ### 4.2 API Endpoints
79
+
80
+ | Endpoint | Method | Permission | Body | Response |
81
+ |----------|--------|------------|------|----------|
82
+ | `/api/business/{module}` | GET | `.read` | - | List |
83
+ | `/api/business/{module}` | POST | `.create` | CreateDto | 201 |
84
+ | `/api/business/{module}/{id}` | GET | `.read` | - | Entity |
85
+ | `/api/business/{module}/{id}` | PUT | `.update` | UpdateDto | 200 |
86
+ | `/api/business/{module}/{id}` | DELETE | `.delete` | - | 204 |
87
+
88
+ ### 4.3 Business Rules → Code
89
+
90
+ | BR-ID | Rule | Implementation |
91
+ |-------|------|----------------|
92
+ | BR-001 | {rule} | {where to implement} |
93
+
94
+ ## 5. REQUIRED TESTS
95
+
96
+ - [ ] Unit test: Entity validation
97
+ - [ ] Integration test: API endpoints
98
+ - [ ] Permission test: 403 denial
99
+ - [ ] Postman test: Collection generated
100
+
101
+ ## 6. POST-IMPLEMENTATION CHECKLIST
102
+
103
+ - [ ] Backend build OK
104
+ - [ ] Frontend build OK
105
+ - [ ] Tests passing
106
+ - [ ] EF Core migration created
107
+ - [ ] Permissions in PermissionConfiguration.cs
108
+ - [ ] i18n complete (4 languages)
109
+ - [ ] Documentation: `/business-analyse:6-doc-html {FEAT-XXX}`
110
+
111
+ ---
112
+
113
+ ## EXECUTION
114
+
115
+ ```bash
116
+ /implement {FEAT-XXX}
117
+ ```
118
+ ```