@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
@@ -1,156 +0,0 @@
1
- ---
2
- description: Orchestration automatique BA complete (ULTRATHINK + Ralph Loop)
3
- argument-hint: "<description du besoin>"
4
- model: opus
5
- ---
6
-
7
- # Phase 0: Orchestration Automatique
8
-
9
- > **Ref:** Fonctions communes dans [_shared.md](_shared.md)
10
-
11
- ---
12
-
13
- ## Mission
14
-
15
- Orchestrer automatiquement: Besoin → Phases 1-7 → Implementation → Documentation HTML
16
-
17
- ---
18
-
19
- ## Step 0: Vérification MCP
20
-
21
- ```bash
22
- MCP_CHECK=$(claude mcp list 2>/dev/null | grep -i "smartstack" || echo "")
23
- [ -z "$MCP_CHECK" ] && echo "⚠️ MCP SmartStack non détecté - fonctionnalités limitées"
24
- ```
25
-
26
- ---
27
-
28
- ## Step 1: Collecter le besoin
29
-
30
- ```javascript
31
- AskUserQuestion({
32
- questions: [{
33
- question: "Décrivez votre besoin",
34
- header: "Besoin",
35
- options: [
36
- { label: "Nouvelle fonctionnalité", description: "Capacité métier" },
37
- { label: "Amélioration", description: "Enrichir existant" },
38
- { label: "Intégration", description: "Connecter système externe" }
39
- ],
40
- multiSelect: false
41
- }]
42
- })
43
- ```
44
-
45
- ---
46
-
47
- ## Step 2: Déterminer contexte SmartStack
48
-
49
- ```javascript
50
- AskUserQuestion({
51
- questions: [
52
- {
53
- question: "Quelle application SmartStack?",
54
- header: "Application",
55
- options: [
56
- { label: "CRM", description: "Relation client" },
57
- { label: "Inventory", description: "Stocks" },
58
- { label: "HR", description: "RH" },
59
- { label: "Nouvelle", description: "Créer app" }
60
- ],
61
- multiSelect: false
62
- },
63
- {
64
- question: "Niveau de granularité?",
65
- header: "Niveau",
66
- options: [
67
- { label: "Muscle", description: "Fonctionnalité complète CRUD + UI" },
68
- { label: "Section", description: "Sous-fonctionnalité" },
69
- { label: "Resource", description: "Élément atomique" }
70
- ],
71
- multiSelect: false
72
- }
73
- ]
74
- })
75
- ```
76
-
77
- ---
78
-
79
- ## Step 3: Intégrations SmartStack
80
-
81
- ```javascript
82
- AskUserQuestion({
83
- questions: [
84
- {
85
- question: "Workflows automatiques?",
86
- header: "Workflows",
87
- options: [
88
- { label: "Email", description: "Envoi sur événements" },
89
- { label: "Rappels/SLA", description: "Notifications délais" },
90
- { label: "Approbation", description: "Circuit validation" },
91
- { label: "Aucun", description: "Pas de workflow" }
92
- ],
93
- multiSelect: true
94
- },
95
- {
96
- question: "Notifications temps réel?",
97
- header: "Notifs",
98
- options: [
99
- { label: "Création", description: "Nouvel élément" },
100
- { label: "Modification", description: "Changements" },
101
- { label: "Assignation", description: "Nouvel assigné" },
102
- { label: "Aucune", description: "Pas de notif" }
103
- ],
104
- multiSelect: true
105
- }
106
- ]
107
- })
108
- ```
109
-
110
- ---
111
-
112
- ## Step 4: Générer context.json
113
-
114
- ```json
115
- {
116
- "feature_id": "{FEATURE_ID}",
117
- "smartstack_context": {
118
- "application": "{APP}",
119
- "module": "{MODULE}",
120
- "granularity": "{muscle|section|resource}"
121
- },
122
- "integrations": {
123
- "workflows": { "types": [] },
124
- "notifications": { "events": [] },
125
- "ai": { "use_cases": [] }
126
- }
127
- }
128
- ```
129
-
130
- ---
131
-
132
- ## Step 5: Lancement séquentiel
133
-
134
- ```bash
135
- /business-analyse:1-init ${APP} ${MODULE}
136
- /business-analyse:2-discover ${FEATURE_ID}
137
- /business-analyse:3-analyse ${FEATURE_ID}
138
- /business-analyse:4-specify ${FEATURE_ID}
139
- /business-analyse:5-validate ${FEATURE_ID}
140
- # Si APPROVED:
141
- /business-analyse:6-handoff ${FEATURE_ID}
142
- /implement ${FEATURE_ID}
143
- /business-analyse:7-doc-html ${FEATURE_ID}
144
- ```
145
-
146
- ---
147
-
148
- ## Résumé
149
-
150
- ```
151
- ORCHESTRATION - {FEATURE_ID}
152
- ├── Application: {APP}
153
- ├── Module: {MODULE}
154
- ├── Intégrations: {workflows|notifs|ai}
155
- └── Prochain: Phases 1-7 automatiques
156
- ```
@@ -1,99 +0,0 @@
1
- ---
2
- description: Phase 1 - Initialize Business Analysis structure (ULTRATHINK)
3
- agent: ba-init
4
- model: haiku
5
- ---
6
-
7
- # Phase 1: Initialisation Business Analyse
8
-
9
- > **Ref:** Fonctions communes dans [_shared.md](_shared.md)
10
-
11
- ---
12
-
13
- ## Prérequis
14
-
15
- ```bash
16
- validate_business_context "$1" || exit 1
17
- ```
18
-
19
- ---
20
-
21
- ## STEP 1: Collecte des paramètres
22
-
23
- ```javascript
24
- AskUserQuestion({
25
- questions: [
26
- {
27
- question: "Quel est le nom de l'APPLICATION business?",
28
- header: "Application",
29
- options: [
30
- { label: "Nouvelle application", description: "Créer une nouvelle application business" },
31
- { label: "Application existante", description: "Sélectionner une application existante" }
32
- ],
33
- multiSelect: false
34
- },
35
- {
36
- question: "Quel est le nom du MODULE dans cette application?",
37
- header: "Module",
38
- options: [
39
- { label: "Nouveau module", description: "Créer un nouveau module" },
40
- { label: "Module existant", description: "Ajouter une feature à un module existant" }
41
- ],
42
- multiSelect: false
43
- }
44
- ]
45
- })
46
- ```
47
-
48
- ---
49
-
50
- ## STEP 2: Génération Feature ID
51
-
52
- ```bash
53
- generate_feature_id
54
- ```
55
-
56
- ---
57
-
58
- ## STEP 3: Création structure
59
-
60
- ```bash
61
- APP_DIR=".business-analyse/applications/business/$APPLICATION"
62
- MODULE_DIR="$APP_DIR/modules/$MODULE"
63
- FEATURE_DIR="$MODULE_DIR/features/$FEATURE_ID-$FEATURE_NAME"
64
-
65
- mkdir -p "$FEATURE_DIR/tracking/changes"
66
- mkdir -p "$FEATURE_DIR/tracking/bugs"
67
- ```
68
-
69
- ### Structure créée
70
-
71
- ```
72
- .business-analyse/
73
- ├── config.json
74
- └── applications/business/{app}/modules/{module}/features/FEAT-XXX-{name}/
75
- └── tracking/ (changes/, bugs/)
76
- ```
77
-
78
- ---
79
-
80
- ## STEP 4: Fichiers générés
81
-
82
- | Fichier | Contenu |
83
- |---------|---------|
84
- | config.json | Configuration globale, lastFeatureId |
85
- | context.md (app) | Description application, permission base |
86
- | context.md (module) | Description module, features |
87
-
88
- ---
89
-
90
- ## Résumé
91
-
92
- ```
93
- INIT - {FEATURE_ID}
94
- ├── Contexte: business (validé)
95
- ├── Application: business/{app}
96
- ├── Module: business/{app}/{module}
97
- ├── Permission: business.{app}.{module}.*
98
- └── Prochain: /business-analyse:2-discover {FEATURE_ID}
99
- ```
@@ -1,143 +0,0 @@
1
- ---
2
- description: Phase 2 - Discovery and requirements elicitation (ULTRATHINK)
3
- agent: ba-discover
4
- model: opus
5
- ---
6
-
7
- # Phase 2: Discovery - Élicitation
8
-
9
- > **Ref:** Fonctions communes dans [_shared.md](_shared.md)
10
- > **Questionnaire:** [questionnaire.md](../skills/business-analyse/questionnaire.md)
11
-
12
- ---
13
-
14
- ## Prérequis
15
-
16
- ```bash
17
- find_feature_dir "$1" || exit 1
18
- ```
19
-
20
- ---
21
-
22
- ## Élicitation structurée (40+ questions)
23
-
24
- ### Catégories à couvrir
25
-
26
- | Cat | Thème | Questions clés |
27
- |-----|-------|----------------|
28
- | 1 | Contexte Business | AS-IS, TO-BE, KPIs |
29
- | 2 | Stakeholders | Rôles, responsabilités, pain points |
30
- | 3 | Périmètre | Must/Should/Could-Have, exclusions |
31
- | 4 | Données | Entités, attributs, relations, sensibilité |
32
- | 5 | Sécurité | Matrice CRUD, audit, conformité |
33
- | 6 | Contraintes | Techniques, budget, délais |
34
- | 7 | Intégrations SmartStack | Notifications, Workflows, IA |
35
- | 8 | Questions ouvertes | À résoudre |
36
-
37
- ---
38
-
39
- ## ULTRATHINK obligatoire
40
-
41
- Pour chaque réponse:
42
- - Challenger avec "Pourquoi?" 3× minimum
43
- - Demander exemples concrets
44
- - Valider complétude avant catégorie suivante
45
-
46
- ---
47
-
48
- ## Intégrations SmartStack (Section 7)
49
-
50
- ```javascript
51
- AskUserQuestion({
52
- questions: [
53
- {
54
- question: "Notifications in-app nécessaires?",
55
- header: "Notifs",
56
- options: [
57
- { label: "Oui", description: "Notifier sur événements" },
58
- { label: "Non", description: "Pas nécessaire" }
59
- ],
60
- multiSelect: false
61
- },
62
- {
63
- question: "Workflows automatisés nécessaires?",
64
- header: "Workflow",
65
- options: [
66
- { label: "Email", description: "Envoi emails auto" },
67
- { label: "Rappels/SLA", description: "Notifications délais" },
68
- { label: "Aucun", description: "Pas de workflow" }
69
- ],
70
- multiSelect: true
71
- },
72
- {
73
- question: "Assistance IA pertinente?",
74
- header: "IA",
75
- options: [
76
- { label: "Génération texte", description: "Contenu auto" },
77
- { label: "Classification", description: "Catégorisation" },
78
- { label: "Non", description: "Pas d'IA" }
79
- ],
80
- multiSelect: true
81
- }
82
- ]
83
- })
84
- ```
85
-
86
- ---
87
-
88
- ## Template 1-discovery.md
89
-
90
- ```markdown
91
- # Discovery - {FEATURE_ID}
92
-
93
- > **Module:** business/{app}/{module} | **Version:** 1.0
94
-
95
- ## 1. Contexte Business
96
- ### AS-IS | TO-BE | KPIs
97
-
98
- ## 2. Stakeholders
99
- | Rôle | Implication | Pain points |
100
-
101
- ## 3. Périmètre
102
- ### Must-Have | Should-Have | Out of Scope
103
-
104
- ## 4. Données
105
- | Entité | Attributs | Relations |
106
-
107
- ## 5. Sécurité
108
- | Permission | Admin | Manager | User | ReadOnly |
109
-
110
- ## 6. Contraintes
111
- | Type | Impact | Mitigation |
112
-
113
- ## 7. Intégrations SmartStack
114
- | Notifications | Workflows | IA |
115
-
116
- ## 8. Questions ouvertes
117
- | Question | Responsable | Status |
118
- ```
119
-
120
- ---
121
-
122
- ## Checklist complétude
123
-
124
- - [ ] Contexte: AS-IS et TO-BE documentés
125
- - [ ] Stakeholders: ≥3 rôles
126
- - [ ] Périmètre: ≥5 must-have, ≥2 exclusions
127
- - [ ] Données: Entités et relations
128
- - [ ] Sécurité: Matrice CRUD complète
129
- - [ ] Intégrations: Notif/Workflow/IA évalués (Oui/Non)
130
- - [ ] Aucun "TBD" ou "?" restant
131
-
132
- ---
133
-
134
- ## Résumé
135
-
136
- ```
137
- DISCOVERY - {FEATURE_ID}
138
- ├── Stakeholders: {N}
139
- ├── Must-Have: {N}
140
- ├── Entités: {N}
141
- ├── Intégrations: {liste}
142
- └── Prochain: /business-analyse:3-analyse {FEATURE_ID}
143
- ```
@@ -1,106 +0,0 @@
1
- ---
2
- description: Phase 3 - Business analysis and BRD (ULTRATHINK)
3
- agent: ba-analyse
4
- model: sonnet
5
- ---
6
-
7
- # Phase 3: Analyse Business - BRD
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/1-discovery.md" ] || { echo "❌ Discovery requis"; exit 1; }
18
- ```
19
-
20
- ---
21
-
22
- ## Objectif
23
-
24
- Transformer la découverte en exigences business formelles:
25
- - Formaliser règles métier (BR-XXX)
26
- - Modéliser processus (diagrammes textuels)
27
- - Définir objectifs mesurables
28
-
29
- **Règle:** Aucun code technique. Tables et diagrammes textuels uniquement.
30
-
31
- ---
32
-
33
- ## Pattern Règle Métier
34
-
35
- ```
36
- BR-XXX: {Nom}
37
-
38
- ÉNONCÉ: {description formelle}
39
-
40
- CONDITIONS:
41
- SI {condition A} ET {condition B}
42
- ALORS {résultat}
43
- SINON {résultat alternatif}
44
-
45
- EXEMPLES:
46
- | Entrée | Sortie attendue |
47
- ```
48
-
49
- ---
50
-
51
- ## Template 2-business-requirements.md
52
-
53
- ```markdown
54
- # BRD - {FEATURE_ID}
55
-
56
- > **Module:** business/{app}/{module} | **Basé sur:** 1-discovery.md v1.0
57
-
58
- ## 1. Résumé exécutif
59
- {3-5 phrases}
60
-
61
- ## 2. Objectifs business
62
- | ID | Objectif | KPI | Baseline | Cible |
63
-
64
- ## 3. Règles métier
65
- | ID | Règle | Catégorie | Priorité |
66
- ### Détail BR-001
67
- ÉNONCÉ + CONDITIONS + EXEMPLES
68
-
69
- ## 4. Processus métier
70
- ### Flux principal
71
- ```
72
- START → Étape 1 → Décision → [Chemin A|B|C] → END
73
- ```
74
- | # | Étape | Acteur | Action | Règles |
75
-
76
- ## 5. Modèle de données (conceptuel)
77
- | Entité | Description | Cardinalité |
78
- ```
79
- Entité A ──[1:N]── Entité B
80
- ```
81
-
82
- ## 6. Intégrations
83
- | Système | Direction | Données | Fréquence |
84
-
85
- ## 7. Exigences non-fonctionnelles
86
- ### Performance | Sécurité
87
-
88
- ## 8. Glossaire
89
- | Terme | Définition |
90
-
91
- ## 9. Hypothèses et dépendances
92
- | # | Hypothèse | Impact si fausse |
93
- ```
94
-
95
- ---
96
-
97
- ## Résumé
98
-
99
- ```
100
- ANALYSE - {FEATURE_ID}
101
- ├── Objectifs: {N}
102
- ├── Règles métier: {N} (BR-001 à BR-XXX)
103
- ├── Processus: {N}
104
- ├── Entités: {N}
105
- └── Prochain: /business-analyse:4-specify {FEATURE_ID}
106
- ```
@@ -1,133 +0,0 @@
1
- ---
2
- description: Phase 4 - Functional specifications FRD (ULTRATHINK)
3
- agent: ba-specify
4
- model: sonnet
5
- ---
6
-
7
- # Phase 4: Spécifications Fonctionnelles - FRD
8
-
9
- > **Ref:** Fonctions communes dans [_shared.md](_shared.md)
10
- > **Templates:** [templates-frd.md](../skills/business-analyse/templates-frd.md)
11
-
12
- ---
13
-
14
- ## Prérequis
15
-
16
- ```bash
17
- find_feature_dir "$1" || exit 1
18
- [ -f "$FEATURE_DIR/2-business-requirements.md" ] || { echo "❌ BRD requis"; exit 1; }
19
- PERMISSION_BASE="business.$APPLICATION.$MODULE"
20
- ```
21
-
22
- ---
23
-
24
- ## Objectif
25
-
26
- Définir COMMENT le système doit se comporter:
27
- - Cas d'utilisation détaillés (UC-XXX)
28
- - Exigences fonctionnelles (FR-XXX)
29
- - Wireframes interface
30
- - Permissions granulaires
31
- - Scénarios Gherkin
32
-
33
- **Règle:** Assez détaillé pour implémenter SANS questions.
34
-
35
- ---
36
-
37
- ## Template 3-functional-specification.md
38
-
39
- ```markdown
40
- # FRD - {FEATURE_ID}
41
-
42
- > **Module:** business/{app}/{module}
43
- > **Permission base:** business.{app}.{module}.*
44
-
45
- ## 1. Acteurs
46
- | Acteur | Permissions requises |
47
-
48
- ## 2. Cas d'utilisation
49
- ### UC-001: {Nom}
50
- | Attribut | Valeur |
51
- | ID | UC-001 |
52
- | Acteur | {Rôle} |
53
- | Permission | `.{action}` |
54
-
55
- **Scénario principal:**
56
- | # | Acteur | Système |
57
-
58
- **Erreurs:**
59
- | # | Erreur | Message i18n |
60
-
61
- ## 3. Exigences fonctionnelles
62
- | ID | Exigence | UC lié | BR lié | Priorité |
63
-
64
- ### FR-001: {Nom}
65
- Critères d'acceptation:
66
- - [ ] {critère}
67
-
68
- ## 4. Interface utilisateur
69
- ### Wireframe Liste
70
- ```
71
- [Header] [+ Nouveau]
72
- [Filtres: Status, Recherche]
73
- [Table: Col1 | Col2 | Actions]
74
- [Pagination]
75
- ```
76
-
77
- ### Champs formulaire
78
- | Champ | Type | Requis | Validation | i18n |
79
-
80
- ## 5. Validations et messages
81
- | Champ | Règle | Message i18n |
82
- | Code | Type | Clé i18n |
83
-
84
- ## 6. Permissions
85
- ### Paths
86
- | Permission | Description |
87
- | `.read` | Voir données |
88
- | `.create` | Créer |
89
- | `.update` | Modifier |
90
- | `.delete` | Supprimer |
91
-
92
- ### Matrice
93
- | Permission | Admin | Manager | User | ReadOnly |
94
-
95
- ### Endpoint-Permission
96
- | Endpoint | Method | Permission | Si refusé |
97
-
98
- ### Visibilité UI
99
- | Élément | Permission | Si absent |
100
-
101
- ## 7. Scénarios Gherkin
102
- @permission @403
103
- Scenario: User sans permission
104
- @happy-path @create
105
- Scenario: Admin crée
106
-
107
- ## 8. API Specification
108
- ### GET /api/business/{module}
109
- Query params, Response 200
110
-
111
- ### POST /api/business/{module}
112
- Request body, Response 201
113
-
114
- ## 9. Intégrations SmartStack
115
- ### Notifications | Workflows | IA
116
- | Requis | Oui/Non |
117
- | Événements | {liste} |
118
- | Skill | /notification, /workflow, /ai-prompt |
119
- ```
120
-
121
- ---
122
-
123
- ## Résumé
124
-
125
- ```
126
- SPECIFY - {FEATURE_ID}
127
- ├── Use Cases: {N}
128
- ├── Exigences: {N}
129
- ├── Wireframes: {N}
130
- ├── Permissions: {N}
131
- ├── Scénarios Gherkin: {N}
132
- └── Prochain: /business-analyse:5-validate {FEATURE_ID}
133
- ```