@atlashub/smartstack-cli 1.13.1 → 1.14.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 (210) 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 +1 -1
  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 +1001 -352
  12. package/.documentation/ralph-loop.html +1 -1
  13. package/.documentation/test-web.html +1 -1
  14. package/README.md +88 -20
  15. package/dist/index.js +276 -85
  16. package/dist/index.js.map +1 -1
  17. package/package.json +1 -1
  18. package/templates/agents/code-reviewer.md +163 -0
  19. package/templates/agents/efcore/db-deploy.md +25 -7
  20. package/templates/agents/efcore/db-reset.md +31 -10
  21. package/templates/agents/efcore/db-status.md +22 -5
  22. package/templates/agents/efcore/migration.md +69 -19
  23. package/templates/agents/gitflow/cleanup.md +8 -1
  24. package/templates/agents/gitflow/commit.md +7 -5
  25. package/templates/agents/gitflow/finish.md +6 -4
  26. package/templates/agents/gitflow/pr.md +8 -1
  27. package/templates/agents/gitflow/start.md +1 -1
  28. package/templates/commands/check-version.md +267 -0
  29. package/templates/commands/efcore/_shared.md +30 -1
  30. package/templates/commands/efcore/db-reset.md +18 -6
  31. package/templates/commands/gitflow/OPTIMIZATIONS.md +206 -0
  32. package/templates/commands/refactor.md +164 -0
  33. package/templates/project/DependencyInjection.Application.cs.template +25 -0
  34. package/templates/project/DependencyInjection.Infrastructure.cs.template +61 -0
  35. package/templates/project/DesignTimeExtensionsDbContextFactory.cs.template +70 -0
  36. package/templates/project/ExampleEntity.cs.template +116 -0
  37. package/templates/project/ExampleEntityConfiguration.cs.template +64 -0
  38. package/templates/project/ExampleService.cs.template +146 -0
  39. package/templates/project/ExtensionsDbContext.cs.template +41 -0
  40. package/templates/project/IExtensionsDbContext.cs.template +22 -0
  41. package/templates/project/Program.cs.template +47 -0
  42. package/templates/project/README.md +79 -0
  43. package/templates/ralph/README.md +10 -8
  44. package/templates/ralph/ralph.config.yaml +2 -2
  45. package/templates/skills/_shared.md +44 -44
  46. package/templates/skills/ai-prompt/SKILL.md +55 -55
  47. package/templates/skills/apex/SKILL.md +235 -0
  48. package/templates/skills/apex/steps/step-00-init.md +203 -0
  49. package/templates/skills/apex/steps/step-01-analyze.md +210 -0
  50. package/templates/skills/apex/steps/step-02-plan.md +217 -0
  51. package/templates/skills/apex/steps/step-03-execute.md +178 -0
  52. package/templates/skills/apex/steps/step-04-validate.md +217 -0
  53. package/templates/skills/apex/steps/step-05-examine.md +207 -0
  54. package/templates/skills/apex/steps/step-06-resolve.md +181 -0
  55. package/templates/skills/apex/steps/step-07-tests.md +206 -0
  56. package/templates/skills/apex/steps/step-08-run-tests.md +207 -0
  57. package/templates/skills/apex/templates/00-context.md +46 -0
  58. package/templates/skills/apex/templates/01-analyze.md +63 -0
  59. package/templates/skills/apex/templates/02-plan.md +63 -0
  60. package/templates/skills/apex/templates/03-execute.md +34 -0
  61. package/templates/skills/apex/templates/04-validate.md +61 -0
  62. package/templates/skills/apex/templates/05-examine.md +58 -0
  63. package/templates/skills/apex/templates/06-resolve.md +39 -0
  64. package/templates/skills/apex/templates/07-tests.md +56 -0
  65. package/templates/skills/apex/templates/08-run-tests.md +41 -0
  66. package/templates/skills/apex/templates/README.md +69 -0
  67. package/templates/skills/application/SKILL.md +50 -50
  68. package/templates/skills/application/templates-backend.md +25 -25
  69. package/templates/skills/application/templates-frontend.md +43 -43
  70. package/templates/skills/application/templates-i18n.md +29 -29
  71. package/templates/skills/application/templates-seed.md +77 -77
  72. package/templates/skills/business-analyse/SKILL.md +223 -0
  73. package/templates/skills/business-analyse/_shared.md +258 -0
  74. package/templates/skills/business-analyse/questionnaire/01-context.md +33 -0
  75. package/templates/skills/business-analyse/questionnaire/02-stakeholders.md +35 -0
  76. package/templates/skills/business-analyse/questionnaire/03-scope.md +35 -0
  77. package/templates/skills/business-analyse/questionnaire/04-data.md +36 -0
  78. package/templates/skills/business-analyse/questionnaire/05-integrations.md +36 -0
  79. package/templates/skills/business-analyse/questionnaire/06-security.md +40 -0
  80. package/templates/skills/business-analyse/questionnaire/07-ui.md +36 -0
  81. package/templates/skills/business-analyse/questionnaire/08-performance.md +35 -0
  82. package/templates/skills/business-analyse/questionnaire/09-constraints.md +35 -0
  83. package/templates/skills/business-analyse/questionnaire/10-documentation.md +35 -0
  84. package/templates/skills/business-analyse/questionnaire.md +177 -177
  85. package/templates/skills/business-analyse/react/components.md +340 -0
  86. package/templates/skills/business-analyse/react/i18n-template.md +245 -0
  87. package/templates/skills/business-analyse/react/schema.md +151 -0
  88. package/templates/skills/business-analyse/steps/step-00-init.md +293 -0
  89. package/templates/skills/business-analyse/steps/step-01-discover.md +267 -0
  90. package/templates/skills/business-analyse/steps/step-02-analyse.md +243 -0
  91. package/templates/skills/business-analyse/steps/step-03-specify.md +317 -0
  92. package/templates/skills/business-analyse/steps/step-04-validate.md +239 -0
  93. package/templates/skills/business-analyse/steps/step-05-handoff.md +336 -0
  94. package/templates/skills/business-analyse/steps/step-06-doc-html.md +261 -0
  95. package/templates/skills/business-analyse/templates/00-context.md +105 -0
  96. package/templates/skills/business-analyse/templates/frd-brd.md +97 -0
  97. package/templates/skills/business-analyse/templates/frd-discovery.md +78 -0
  98. package/templates/skills/business-analyse/templates/frd-handoff.md +118 -0
  99. package/templates/skills/business-analyse/templates/frd-spec.md +168 -0
  100. package/templates/skills/business-analyse/templates-frd.md +217 -217
  101. package/templates/skills/business-analyse/templates-react.md +26 -26
  102. package/templates/skills/controller/SKILL.md +141 -92
  103. package/templates/skills/controller/postman-templates.md +15 -15
  104. package/templates/skills/controller/steps/step-00-init.md +191 -0
  105. package/templates/skills/controller/steps/step-01-analyze.md +146 -0
  106. package/templates/skills/controller/steps/step-02-plan.md +176 -0
  107. package/templates/skills/controller/steps/step-03-generate.md +219 -0
  108. package/templates/skills/controller/steps/step-04-perms.md +219 -0
  109. package/templates/skills/controller/steps/step-05-validate.md +107 -0
  110. package/templates/skills/controller/templates.md +77 -77
  111. package/templates/skills/documentation/SKILL.md +79 -79
  112. package/templates/skills/feature-full/SKILL.md +38 -38
  113. package/templates/skills/gitflow/SKILL.md +277 -0
  114. package/templates/{commands → skills}/gitflow/_shared.md +20 -20
  115. package/templates/skills/gitflow/phases/abort.md +173 -0
  116. package/templates/skills/gitflow/phases/cleanup.md +226 -0
  117. package/templates/skills/gitflow/phases/status.md +178 -0
  118. package/templates/skills/gitflow/steps/step-commit.md +255 -0
  119. package/templates/skills/gitflow/steps/step-finish.md +255 -0
  120. package/templates/skills/gitflow/steps/step-init.md +209 -0
  121. package/templates/skills/gitflow/steps/step-merge.md +225 -0
  122. package/templates/skills/gitflow/steps/step-plan.md +208 -0
  123. package/templates/skills/gitflow/steps/step-pr.md +235 -0
  124. package/templates/skills/gitflow/steps/step-start.md +234 -0
  125. package/templates/skills/gitflow/steps/step-sync.md +200 -0
  126. package/templates/skills/gitflow/templates/config.json +53 -0
  127. package/templates/skills/notification/SKILL.md +51 -51
  128. package/templates/skills/ralph-loop/SKILL.md +228 -0
  129. package/templates/skills/ralph-loop/steps/step-00-init.md +201 -0
  130. package/templates/skills/ralph-loop/steps/step-01-task.md +169 -0
  131. package/templates/skills/ralph-loop/steps/step-02-execute.md +173 -0
  132. package/templates/skills/ralph-loop/steps/step-03-commit.md +170 -0
  133. package/templates/skills/ralph-loop/steps/step-04-check.md +162 -0
  134. package/templates/skills/ralph-loop/steps/step-05-report.md +181 -0
  135. package/templates/skills/review-code/SKILL.md +219 -0
  136. package/templates/skills/review-code/references/clean-code-principles.md +140 -0
  137. package/templates/skills/review-code/references/code-quality-metrics.md +174 -0
  138. package/templates/skills/review-code/references/feedback-patterns.md +149 -0
  139. package/templates/skills/review-code/references/security-checklist.md +127 -0
  140. package/templates/skills/ui-components/SKILL.md +54 -54
  141. package/templates/skills/workflow/SKILL.md +46 -46
  142. package/templates/commands/ai-prompt.md +0 -315
  143. package/templates/commands/apex/1-analyze.md +0 -100
  144. package/templates/commands/apex/2-plan.md +0 -145
  145. package/templates/commands/apex/3-execute.md +0 -171
  146. package/templates/commands/apex/4-examine.md +0 -116
  147. package/templates/commands/apex/5-tasks.md +0 -209
  148. package/templates/commands/apex.md +0 -76
  149. package/templates/commands/application/create.md +0 -362
  150. package/templates/commands/application/templates-backend.md +0 -463
  151. package/templates/commands/application/templates-frontend.md +0 -517
  152. package/templates/commands/application/templates-i18n.md +0 -478
  153. package/templates/commands/application/templates-seed.md +0 -362
  154. package/templates/commands/application.md +0 -303
  155. package/templates/commands/business-analyse/0-orchestrate.md +0 -156
  156. package/templates/commands/business-analyse/1-init.md +0 -99
  157. package/templates/commands/business-analyse/2-discover.md +0 -143
  158. package/templates/commands/business-analyse/3-analyse.md +0 -106
  159. package/templates/commands/business-analyse/4-specify.md +0 -133
  160. package/templates/commands/business-analyse/5-validate.md +0 -132
  161. package/templates/commands/business-analyse/6-handoff.md +0 -157
  162. package/templates/commands/business-analyse/7-doc-html.md +0 -103
  163. package/templates/commands/business-analyse/_shared.md +0 -176
  164. package/templates/commands/business-analyse/bug.md +0 -118
  165. package/templates/commands/business-analyse/change-request.md +0 -144
  166. package/templates/commands/business-analyse/hotfix.md +0 -116
  167. package/templates/commands/business-analyse.md +0 -121
  168. package/templates/commands/controller/create.md +0 -216
  169. package/templates/commands/controller/postman-templates.md +0 -528
  170. package/templates/commands/controller/templates.md +0 -600
  171. package/templates/commands/controller.md +0 -337
  172. package/templates/commands/create/agent.md +0 -138
  173. package/templates/commands/create/command.md +0 -166
  174. package/templates/commands/create/hook.md +0 -234
  175. package/templates/commands/create/plugin.md +0 -329
  176. package/templates/commands/create/project.md +0 -508
  177. package/templates/commands/create/skill.md +0 -199
  178. package/templates/commands/create.md +0 -220
  179. package/templates/commands/documentation/module.md +0 -202
  180. package/templates/commands/documentation/templates.md +0 -432
  181. package/templates/commands/documentation.md +0 -190
  182. package/templates/commands/epct.md +0 -69
  183. package/templates/commands/explain.md +0 -186
  184. package/templates/commands/feature-full.md +0 -267
  185. package/templates/commands/gitflow/1-init.md +0 -188
  186. package/templates/commands/gitflow/10-start.md +0 -190
  187. package/templates/commands/gitflow/11-finish.md +0 -382
  188. package/templates/commands/gitflow/12-cleanup.md +0 -103
  189. package/templates/commands/gitflow/13-sync.md +0 -216
  190. package/templates/commands/gitflow/14-rebase.md +0 -251
  191. package/templates/commands/gitflow/2-status.md +0 -122
  192. package/templates/commands/gitflow/3-commit.md +0 -209
  193. package/templates/commands/gitflow/4-plan.md +0 -174
  194. package/templates/commands/gitflow/5-exec.md +0 -202
  195. package/templates/commands/gitflow/6-abort.md +0 -121
  196. package/templates/commands/gitflow/7-pull-request.md +0 -176
  197. package/templates/commands/gitflow/8-review.md +0 -113
  198. package/templates/commands/gitflow/9-merge.md +0 -157
  199. package/templates/commands/gitflow.md +0 -128
  200. package/templates/commands/implement.md +0 -663
  201. package/templates/commands/init.md +0 -567
  202. package/templates/commands/mcp-integration.md +0 -330
  203. package/templates/commands/notification.md +0 -129
  204. package/templates/commands/oneshot.md +0 -57
  205. package/templates/commands/quickstart.md +0 -154
  206. package/templates/commands/ralph-loop/cancel-ralph.md +0 -18
  207. package/templates/commands/ralph-loop/help.md +0 -126
  208. package/templates/commands/ralph-loop/ralph-loop.md +0 -120
  209. package/templates/commands/review.md +0 -106
  210. package/templates/commands/workflow.md +0 -193
@@ -1,132 +0,0 @@
1
- ---
2
- description: Phase 5 - User validation of specifications
3
- agent: ba-validate
4
- model: haiku
5
- ---
6
-
7
- # Phase 5: Validation Utilisateur
8
-
9
- > **Ref:** Fonctions communes dans [_shared.md](_shared.md)
10
-
11
- ---
12
-
13
- ## Prérequis
14
-
15
- ```bash
16
- find_feature_dir "$1" || exit 1
17
- [ -f "$FEATURE_DIR/3-functional-specification.md" ] || { echo "❌ FRD requis"; exit 1; }
18
- ```
19
-
20
- ---
21
-
22
- ## GATE VALIDATION
23
-
24
- Cette phase BLOQUE le passage au handoff si non approuvé.
25
-
26
- Le stakeholder DOIT valider:
27
- - Cas d'utilisation complets
28
- - Wireframes conformes
29
- - Règles métier correctes
30
- - Permissions appropriées
31
-
32
- ---
33
-
34
- ## Demande de validation
35
-
36
- ```javascript
37
- AskUserQuestion({
38
- questions: [
39
- {
40
- question: "Les cas d'utilisation couvrent-ils tous les besoins?",
41
- header: "Use Cases",
42
- options: [
43
- { label: "Oui, complets", description: "Tous les UC validés" },
44
- { label: "Partiellement", description: "UC incomplets" },
45
- { label: "Non", description: "Révision majeure" }
46
- ],
47
- multiSelect: false
48
- },
49
- {
50
- question: "Les wireframes correspondent aux attentes?",
51
- header: "UI/UX",
52
- options: [
53
- { label: "Oui, validés", description: "Écrans conformes" },
54
- { label: "Ajustements mineurs", description: "Modifications légères" },
55
- { label: "Non", description: "Refonte nécessaire" }
56
- ],
57
- multiSelect: false
58
- },
59
- {
60
- question: "Les règles métier (BR-XXX) sont correctes?",
61
- header: "Règles",
62
- options: [
63
- { label: "Oui, correctes", description: "Toutes validées" },
64
- { label: "Corrections mineures", description: "Quelques ajustements" },
65
- { label: "Non", description: "Règles incorrectes" }
66
- ],
67
- multiSelect: false
68
- },
69
- {
70
- question: "Les permissions sont appropriées?",
71
- header: "Permissions",
72
- options: [
73
- { label: "Oui, validées", description: "Matrice OK" },
74
- { label: "À ajuster", description: "Rôles à modifier" },
75
- { label: "Non", description: "À revoir" }
76
- ],
77
- multiSelect: false
78
- }
79
- ]
80
- })
81
- ```
82
-
83
- ---
84
-
85
- ## Traitement décision
86
-
87
- ### Si APPROUVÉ (toutes réponses positives)
88
-
89
- ```json
90
- {
91
- "featureId": "{FEATURE_ID}",
92
- "status": "APPROVED",
93
- "documents": {
94
- "discovery": { "version": "1.0", "status": "approved" },
95
- "brd": { "version": "1.0", "status": "approved" },
96
- "frd": { "version": "1.0", "status": "approved" }
97
- },
98
- "nextStep": "handoff"
99
- }
100
- ```
101
-
102
- ### Si REJETÉ
103
-
104
- ```json
105
- {
106
- "featureId": "{FEATURE_ID}",
107
- "status": "REJECTED",
108
- "rejectionReasons": { "useCases": "", "wireframes": "", "businessRules": "", "permissions": "" },
109
- "nextStep": "revise"
110
- }
111
- ```
112
-
113
- ---
114
-
115
- ## Versioning post-validation
116
-
117
- | Situation | Action | Nouvelle version |
118
- |-----------|--------|------------------|
119
- | Approuvé | Verrouiller | 1.0 (locked) |
120
- | Rejet mineur | Réviser specify | 1.1 |
121
- | Rejet majeur | Réviser analyse | 2.0 |
122
-
123
- ---
124
-
125
- ## Résumé
126
-
127
- ```
128
- VALIDATE - {FEATURE_ID}
129
- ├── Status: {APPROVED/REJECTED}
130
- ├── Documents: {N} validés
131
- └── Prochain: /business-analyse:6-handoff {FEATURE_ID}
132
- ```
@@ -1,157 +0,0 @@
1
- ---
2
- description: Phase 6 - Development prompt generation (ULTRATHINK)
3
- agent: ba-handoff
4
- model: opus
5
- ---
6
-
7
- # Phase 6: Handoff Développement
8
-
9
- > **Ref:** Fonctions communes dans [_shared.md](_shared.md)
10
-
11
- ---
12
-
13
- ## Prérequis
14
-
15
- ```bash
16
- find_feature_dir "$1" || exit 1
17
- STATUS=$(grep -oP '"decision":\s*"\K[^"]+' "$FEATURE_DIR/validation.json")
18
- [ "$STATUS" != "APPROVED" ] && { echo "❌ Validation requise"; exit 1; }
19
- ```
20
-
21
- ---
22
-
23
- ## Objectif
24
-
25
- Générer un prompt AUTONOME permettant d'implémenter SANS questions:
26
- - Instructions EXPLORE pour patterns existants
27
- - Specs détaillées
28
- - Permissions explicites
29
- - Checklist validation
30
-
31
- **Usage:** `/implement {FEATURE_ID}`
32
-
33
- ---
34
-
35
- ## Template 4-development-handoff.md
36
-
37
- ```markdown
38
- # Handoff - {FEATURE_ID}
39
-
40
- > **Module:** business/{app}/{module}
41
- > **Implémentation:** /implement {FEATURE_ID}
42
-
43
- ## 1. Contexte
44
- | Feature ID | {FEATURE_ID} |
45
- | Permission base | business.{app}.{module} |
46
- | Complexité | {Simple/Moyenne/Complexe} |
47
-
48
- ## 2. [EXPLORE] Patterns
49
- ### Backend
50
- - src/SmartStack.Domain/Entities/
51
- - src/SmartStack.Application/Features/
52
- - src/SmartStack.Infrastructure/Persistence/Configurations/
53
- - src/SmartStack.Api/Controllers/
54
-
55
- ### Frontend
56
- - web/smartstack-web/src/pages/business/
57
- - web/smartstack-web/src/services/api/
58
- - web/smartstack-web/src/i18n/locales/
59
-
60
- ## 3. Entités
61
- | Attribut | Description | Requis | Validation | BR |
62
-
63
- ## 4. Permissions
64
- ### Paths
65
- business.{app}.{module}.read|create|update|delete
66
-
67
- ### Matrice
68
- | Permission | Admin | Manager | User | ReadOnly |
69
-
70
- ### Seed (PermissionConfiguration.cs)
71
- GUIDs aléatoires obligatoires
72
-
73
- ## 5. Endpoints API
74
- | Endpoint | Method | Permission | Response |
75
-
76
- ### DTOs
77
- | Champ | Type | Requis | Validation |
78
-
79
- ## 6. Règles métier
80
- | BR-ID | Règle | Où implémenter |
81
-
82
- ## 7. Pages Frontend
83
- ### Liste - Route: /business/{app}/{module}
84
- Composants: Header, Filtres, DataTable, Modal
85
-
86
- ### Permissions UI
87
- | Élément | Permission | Si absent |
88
-
89
- ## 8. i18n (4 langues)
90
- | Fichier | Clés |
91
- | fr/{module}.json | title, fields.*, actions.*, messages.* |
92
- | en, it, de | idem |
93
-
94
- ## 9. Intégrations SmartStack
95
- | Type | Requis | Skill | Quand |
96
- | Notifications | {oui/non} | /notification add | Après service |
97
- | Workflows | {oui/non} | /workflow create | Après triggers |
98
- | IA | {oui/non} | /ai-prompt create | Pendant service |
99
-
100
- ## 10. Tests
101
- ### Unitaires
102
- - [ ] Entity validation
103
- - [ ] Validators
104
-
105
- ### Intégration
106
- - [ ] GET 200, POST 201, PUT 200, DELETE 204
107
- - [ ] 403 sans permission
108
-
109
- ## 11. Checklist
110
- ### Backend
111
- - [ ] Entity + Config EF Core + Migration
112
- - [ ] Commands/Queries + Validators
113
- - [ ] Controller + Permissions
114
- - [ ] Build OK
115
-
116
- ### Frontend
117
- - [ ] Pages + Service API + i18n 4 langues
118
- - [ ] Routes + Build OK
119
-
120
- ### Intégrations
121
- - [ ] Notifications/Workflows/IA si requis
122
-
123
- ## 12. Commande
124
- /implement {FEATURE_ID}
125
- /implement {FEATURE_ID} --phase=1 # Backend
126
- /implement {FEATURE_ID} --phase=2 # Frontend
127
- ```
128
-
129
- ---
130
-
131
- ## Checklist complétude
132
-
133
- - [ ] Contexte complet
134
- - [ ] EXPLORE patterns listés
135
- - [ ] Entités avec attributs complets
136
- - [ ] Permissions paths + matrice + seed
137
- - [ ] Endpoints + DTOs
138
- - [ ] Règles métier référencées
139
- - [ ] Pages + permissions UI
140
- - [ ] i18n 4 langues
141
- - [ ] Intégrations Oui/Non
142
- - [ ] Tests listés
143
- - [ ] Aucun "TBD" ou "?"
144
-
145
- ---
146
-
147
- ## Résumé
148
-
149
- ```
150
- HANDOFF - {FEATURE_ID}
151
- ├── Entités: {N}
152
- ├── Endpoints: {N}
153
- ├── Permissions: {N}
154
- ├── Pages: {N}
155
- ├── Intégrations: {liste}
156
- └── Prochain: /implement {FEATURE_ID}
157
- ```
@@ -1,103 +0,0 @@
1
- ---
2
- description: Phase 7 - Generate HTML documentation (React components) integrated in module
3
- agent: ba-doc-html
4
- model: sonnet
5
- ---
6
-
7
- # Phase 7: Documentation HTML (React)
8
-
9
- > **Ref:** Fonctions communes dans [_shared.md](_shared.md)
10
- > **Templates React:** [templates-react.md](../skills/business-analyse/templates-react.md)
11
-
12
- ---
13
-
14
- ## Objectif
15
-
16
- Documentation FRD intégrée comme ONGLET dans chaque module business:
17
-
18
- ```
19
- /business/{app}/{module}/documentation → 📄 Documentation FRD
20
- ```
21
-
22
- ---
23
-
24
- ## Prérequis
25
-
26
- ```bash
27
- find_feature_dir "$1" || exit 1
28
- [ -d "$WEB_DIR/pages/business/$APPLICATION/$MODULE" ] || {
29
- echo "⚠️ Module non implémenté - /implement $FEATURE_ID d'abord"
30
- exit 1
31
- }
32
- ```
33
-
34
- ---
35
-
36
- ## Context7 obligatoire
37
-
38
- ```
39
- use context7 with /facebook/react and /i18next/react-i18next
40
- to generate DocumentationPage component following SmartStack patterns
41
- ```
42
-
43
- Libraries: `/facebook/react`, `/i18next/react-i18next`, `/remix-run/react-router`, `/lucide-icons/lucide-react`
44
-
45
- ---
46
-
47
- ## Structure DocumentationPage.tsx
48
-
49
- ```tsx
50
- // pages/business/{app}/{module}/DocumentationPage.tsx
51
- const frdData = {
52
- featureId: '{FEATURE_ID}',
53
- version: '1.0',
54
- overview: { description: '', objectives: [] },
55
- useCases: [{ id: 'UC-001', title: '', actor: '', steps: [] }],
56
- businessRules: [{ id: 'BR-001', title: '', category: '', priority: 'Must' }],
57
- permissions: [{ key: 'business.{app}.{module}.read', roles: [] }],
58
- endpoints: [{ method: 'GET', path: '/api/business/{app}/{module}', permission: '' }]
59
- };
60
-
61
- // Sections: Overview, Use Cases, Business Rules, Permissions, API Endpoints
62
- // Sidebar: Table of Contents (sticky)
63
- // Back link: "/business/{app}/{module}"
64
- ```
65
-
66
- ---
67
-
68
- ## i18n (4 langues)
69
-
70
- | Fichier | Clés |
71
- |---------|------|
72
- | `{lang}/{app}-{module}.json` | `documentation.title`, `documentation.sections.*`, `documentation.labels.*` |
73
-
74
- ---
75
-
76
- ## Mise à jour routing
77
-
78
- ```tsx
79
- // App.tsx - Ajouter route
80
- <Route path="{app}/{module}/documentation" element={<DocumentationPage />} />
81
- ```
82
-
83
- ---
84
-
85
- ## Checklist
86
-
87
- - [ ] DocumentationPage.tsx généré avec Context7
88
- - [ ] Données FRD extraites et intégrées
89
- - [ ] i18n 4 langues dans namespace module
90
- - [ ] Route ajoutée dans App.tsx
91
- - [ ] Onglet Documentation dans navigation module
92
-
93
- ---
94
-
95
- ## Résumé
96
-
97
- ```
98
- DOC-HTML - {FEATURE_ID}
99
- ├── Page: pages/business/{app}/{module}/DocumentationPage.tsx
100
- ├── i18n: 4 langues (fr, en, it, de)
101
- ├── Route: /business/{app}/{module}/documentation
102
- └── Context7: react, react-i18next, react-router, lucide-react
103
- ```
@@ -1,176 +0,0 @@
1
- # Business Analyse - Fonctions Partagées
2
-
3
- > **Ref:** Ce fichier contient les fonctions communes à toutes les phases BA.
4
-
5
- ---
6
-
7
- ## Validation Contexte Business
8
-
9
- ```bash
10
- validate_business_context() {
11
- local CONTEXT="$1"
12
- [[ "$CONTEXT" =~ ^(platform|personal|system)$ ]] && {
13
- echo "❌ ERREUR: BA réservée au contexte 'business'. Contact: support@atlshub.ch"
14
- return 1
15
- }
16
- return 0
17
- }
18
- ```
19
-
20
- ---
21
-
22
- ## Feature Directory
23
-
24
- ```bash
25
- find_feature_dir() {
26
- local FEATURE_ID="$1"
27
- FEATURE_DIR=$(find .business-analyse -type d -name "${FEATURE_ID}*" 2>/dev/null | head -1)
28
- [ -z "$FEATURE_DIR" ] && { echo "❌ Feature $FEATURE_ID non trouvée"; return 1; }
29
- APPLICATION=$(echo "$FEATURE_DIR" | grep -oP 'business/\K[^/]+')
30
- MODULE=$(echo "$FEATURE_DIR" | grep -oP 'modules/\K[^/]+')
31
- export FEATURE_DIR APPLICATION MODULE
32
- }
33
- ```
34
-
35
- ---
36
-
37
- ## Génération Feature ID
38
-
39
- ```bash
40
- generate_feature_id() {
41
- local LAST_ID=$(grep -oP '"lastFeatureId":\s*\K\d+' .business-analyse/config.json 2>/dev/null || echo "0")
42
- printf "FEAT-%03d" $((LAST_ID + 1))
43
- }
44
- ```
45
-
46
- ---
47
-
48
- ## Modèles par Phase
49
-
50
- | Phase | Modèle | Raison |
51
- |-------|--------|--------|
52
- | 1-init | Haiku | Setup structure |
53
- | 2-discover | **Opus** | Elicitation ULTRATHINK |
54
- | 3-analyse | Sonnet | Modélisation BRD |
55
- | 4-specify | Sonnet | FRD + Use Cases |
56
- | 5-validate | Haiku | Gate oui/non |
57
- | 6-handoff | **Opus** | Prompt zéro ambiguïté |
58
- | 7-doc-html | Sonnet | React + Context7 |
59
-
60
- ---
61
-
62
- ## ULTRATHINK
63
-
64
- Mode comportemental pour phases critiques (2, 3, 4, 6):
65
- - Considérer TOUS les edge cases
66
- - Challenger CHAQUE hypothèse
67
- - Anticiper besoins NON exprimés
68
- - Valider complétude avant output
69
-
70
- **NE PAS appeler** comme skill/tool.
71
-
72
- ---
73
-
74
- ## Context7 (Phase 7)
75
-
76
- ```
77
- "use context7 with /facebook/react and /i18next/react-i18next
78
- to generate {component} following SmartStack patterns"
79
- ```
80
-
81
- Libraries: `/facebook/react`, `/i18next/react-i18next`, `/remix-run/react-router`, `/lucide-icons/lucide-react`
82
-
83
- ---
84
-
85
- ## Permission Path
86
-
87
- Format: `business.{application}.{module}.{action}`
88
-
89
- | Action | Permission |
90
- |--------|------------|
91
- | Lecture | `.read` |
92
- | Création | `.create` |
93
- | Modification | `.update` |
94
- | Suppression | `.delete` |
95
- | Export | `.export` |
96
- | Import | `.import` |
97
- | Admin | `.admin` |
98
-
99
- ---
100
-
101
- ## i18n (4 langues obligatoires)
102
-
103
- | Langue | Fichier |
104
- |--------|---------|
105
- | FR | `fr/{app}-{module}.json` |
106
- | EN | `en/{app}-{module}.json` |
107
- | IT | `it/{app}-{module}.json` |
108
- | DE | `de/{app}-{module}.json` |
109
-
110
- ---
111
-
112
- ## Output Paths
113
-
114
- | Type | Chemin |
115
- |------|--------|
116
- | Documentation | `web/smartstack-web/src/pages/business/{app}/{module}/DocumentationPage.tsx` |
117
- | i18n | `web/smartstack-web/src/i18n/locales/{lang}/` |
118
- | Route | `/business/{app}/{module}/documentation` |
119
-
120
- ---
121
-
122
- ## Résumé Standard
123
-
124
- ```
125
- {PHASE} - {FEATURE_ID}
126
- ├── Status: {Complete/En cours}
127
- ├── Output: {fichiers créés}
128
- └── Prochain: {commande suivante}
129
- ```
130
-
131
- ---
132
-
133
- ## Config Template
134
-
135
- ```json
136
- {
137
- "project": "{Name}",
138
- "lastFeatureId": 0,
139
- "context": "business",
140
- "standards": ["BABOK-v3", "IEEE-830"],
141
- "contact": "support@atlshub.ch"
142
- }
143
- ```
144
-
145
- ---
146
-
147
- ## Structure Feature
148
-
149
- ```
150
- .business-analyse/business/{app}/modules/{module}/features/{FEAT-XXX}/
151
- ├── 1-discovery.md
152
- ├── 2-business-requirements.md
153
- ├── 3-functional-specification.md
154
- ├── 4-development-handoff.md
155
- ├── validation.json
156
- └── tracking/
157
- ├── changes/
158
- ├── bugs/
159
- └── hotfixes/
160
- ```
161
-
162
- ---
163
-
164
- ## Ralph Loop (optionnel)
165
-
166
- Fichiers créés par phase Ralph:
167
- - `prd.json` - Tracking tâches (`"passes": true/false`)
168
- - `progress.txt` - Mémoire inter-itérations
169
-
170
- Signal fin: `<promise>COMPLETE</promise>`
171
-
172
- ---
173
-
174
- ## Support
175
-
176
- Contact: **support@atlshub.ch**
@@ -1,118 +0,0 @@
1
- ---
2
- description: Bug resolution documentation and specification (ULTRATHINK)
3
- agent: ba-bug
4
- model: sonnet
5
- ---
6
-
7
- # Documentation Bug
8
-
9
- > **Ref:** Fonctions communes dans [_shared.md](_shared.md)
10
- > **Output:** `.business-analyse/.../tracking/bugs/BUG-XXX.md`
11
-
12
- ---
13
-
14
- ## Quand utiliser
15
-
16
- | ✅ Utiliser | ❌ Ne pas utiliser |
17
- |-------------|-------------------|
18
- | Bug post-implémentation | Hotfix urgent → `/business-analyse:hotfix` |
19
- | Analyse root cause | Changement scope → `/business-analyse:change-request` |
20
- | Traçabilité specs | |
21
-
22
- ---
23
-
24
- ## Collecte informations
25
-
26
- ```javascript
27
- AskUserQuestion({
28
- questions: [
29
- {
30
- question: "Quelle feature est impactée?",
31
- header: "Feature",
32
- options: [
33
- { label: "Feature existante", description: "Bug sur feature documentée" },
34
- { label: "Nouvelle", description: "Bug sur code non documenté" }
35
- ],
36
- multiSelect: false
37
- },
38
- {
39
- question: "Sévérité du bug?",
40
- header: "Sévérité",
41
- options: [
42
- { label: "Critique", description: "Bloque utilisation, perte données" },
43
- { label: "Majeur", description: "Fonctionnalité principale impactée" },
44
- { label: "Mineur", description: "Workaround possible" },
45
- { label: "Cosmétique", description: "UI/UX, pas d'impact fonctionnel" }
46
- ],
47
- multiSelect: false
48
- },
49
- {
50
- question: "Bug reproductible?",
51
- header: "Repro",
52
- options: [
53
- { label: "Toujours", description: "100%" },
54
- { label: "Souvent", description: ">50%" },
55
- { label: "Parfois", description: "<50%" },
56
- { label: "Rarement", description: "Difficile" }
57
- ],
58
- multiSelect: false
59
- }
60
- ]
61
- })
62
- ```
63
-
64
- ---
65
-
66
- ## Analyse Root Cause (5 Whys)
67
-
68
- | # | Question | Réponse |
69
- |---|----------|---------|
70
- | 1 | Pourquoi le bug se produit? | {réponse} |
71
- | 2 | Pourquoi {réponse 1}? | {réponse} |
72
- | 3 | Pourquoi {réponse 2}? | {réponse} |
73
- | 4 | Pourquoi {réponse 3}? | {réponse} |
74
- | 5 | Pourquoi {réponse 4}? | **ROOT CAUSE** |
75
-
76
- ---
77
-
78
- ## Template BUG-XXX.md
79
-
80
- ```markdown
81
- # {BUG_ID} - {Title}
82
-
83
- > **Feature:** {FEATURE_ID} | **Sévérité:** {X} | **Status:** Open
84
-
85
- ## 1. Description
86
- ### Observé vs Attendu
87
-
88
- ## 2. Reproduction
89
- ### Prérequis | Étapes | Reproductibilité
90
-
91
- ## 3. Analyse
92
- ### Root Cause (5 Whys)
93
- ### Specs impactées (BR/FR/UC)
94
- ### Code impacté
95
-
96
- ## 4. Solution
97
- ### Correction | Fichiers | Tests Gherkin
98
-
99
- ## 5. Prompt correction
100
- CONTEXTE: Bug {BUG_ID}
101
- ROOT CAUSE: {cause}
102
- CORRECTION: {description}
103
- FICHIERS: {liste}
104
- VALIDATION: {scénario Gherkin}
105
- ```
106
-
107
- ---
108
-
109
- ## Résumé
110
-
111
- ```
112
- BUG - {BUG_ID}
113
- ├── Feature: {FEATURE_ID}
114
- ├── Sévérité: {X}
115
- ├── Root Cause: {résumé}
116
- ├── Specs: BR-XXX, FR-XXX, UC-XXX
117
- └── Correction: /business-analyse:hotfix {BUG_ID}
118
- ```