@atlashub/smartstack-cli 1.1.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 (144) hide show
  1. package/.documentation/agents.html +912 -0
  2. package/.documentation/apex.html +1014 -0
  3. package/.documentation/business-analyse.html +1074 -0
  4. package/.documentation/commands.html +676 -0
  5. package/.documentation/css/styles.css +2030 -0
  6. package/.documentation/efcore.html +2501 -0
  7. package/.documentation/gitflow.html +2053 -0
  8. package/.documentation/hooks.html +409 -0
  9. package/.documentation/index.html +319 -0
  10. package/.documentation/installation.html +458 -0
  11. package/.documentation/js/app.js +794 -0
  12. package/.documentation/test-web.html +509 -0
  13. package/README.md +90 -0
  14. package/config/default-config.json +86 -0
  15. package/config/settings.json +53 -0
  16. package/config/settings.local.example.json +16 -0
  17. package/dist/index.d.ts +2 -0
  18. package/dist/index.js +38198 -0
  19. package/dist/index.js.map +1 -0
  20. package/package.json +86 -0
  21. package/templates/agents/action.md +36 -0
  22. package/templates/agents/efcore/conflicts.md +57 -0
  23. package/templates/agents/efcore/db-deploy.md +51 -0
  24. package/templates/agents/efcore/db-reset.md +59 -0
  25. package/templates/agents/efcore/db-seed.md +56 -0
  26. package/templates/agents/efcore/db-status.md +43 -0
  27. package/templates/agents/efcore/migration.md +85 -0
  28. package/templates/agents/efcore/rebase-snapshot.md +62 -0
  29. package/templates/agents/efcore/scan.md +60 -0
  30. package/templates/agents/efcore/squash.md +67 -0
  31. package/templates/agents/explore-codebase.md +65 -0
  32. package/templates/agents/explore-docs.md +97 -0
  33. package/templates/agents/fix-grammar.md +49 -0
  34. package/templates/agents/gitflow/abort.md +45 -0
  35. package/templates/agents/gitflow/cleanup.md +85 -0
  36. package/templates/agents/gitflow/commit.md +40 -0
  37. package/templates/agents/gitflow/exec.md +48 -0
  38. package/templates/agents/gitflow/finish.md +92 -0
  39. package/templates/agents/gitflow/init.md +139 -0
  40. package/templates/agents/gitflow/merge.md +62 -0
  41. package/templates/agents/gitflow/plan.md +42 -0
  42. package/templates/agents/gitflow/pr.md +78 -0
  43. package/templates/agents/gitflow/review.md +49 -0
  44. package/templates/agents/gitflow/start.md +61 -0
  45. package/templates/agents/gitflow/status.md +32 -0
  46. package/templates/agents/snipper.md +36 -0
  47. package/templates/agents/websearch.md +46 -0
  48. package/templates/commands/_resources/formatting-guide.md +124 -0
  49. package/templates/commands/ai-prompt.md +315 -0
  50. package/templates/commands/apex/1-analyze.md +100 -0
  51. package/templates/commands/apex/2-plan.md +145 -0
  52. package/templates/commands/apex/3-execute.md +171 -0
  53. package/templates/commands/apex/4-examine.md +116 -0
  54. package/templates/commands/apex/5-tasks.md +209 -0
  55. package/templates/commands/apex.md +76 -0
  56. package/templates/commands/application/create.md +362 -0
  57. package/templates/commands/application/templates-backend.md +463 -0
  58. package/templates/commands/application/templates-frontend.md +517 -0
  59. package/templates/commands/application/templates-i18n.md +478 -0
  60. package/templates/commands/application/templates-seed.md +362 -0
  61. package/templates/commands/application.md +303 -0
  62. package/templates/commands/business-analyse/1-init.md +269 -0
  63. package/templates/commands/business-analyse/2-discover.md +520 -0
  64. package/templates/commands/business-analyse/3-analyse.md +408 -0
  65. package/templates/commands/business-analyse/4-specify.md +598 -0
  66. package/templates/commands/business-analyse/5-validate.md +326 -0
  67. package/templates/commands/business-analyse/6-handoff.md +746 -0
  68. package/templates/commands/business-analyse/7-doc-html.md +602 -0
  69. package/templates/commands/business-analyse/bug.md +325 -0
  70. package/templates/commands/business-analyse/change-request.md +368 -0
  71. package/templates/commands/business-analyse/hotfix.md +200 -0
  72. package/templates/commands/business-analyse.md +559 -0
  73. package/templates/commands/controller/create.md +216 -0
  74. package/templates/commands/controller/postman-templates.md +528 -0
  75. package/templates/commands/controller/templates.md +600 -0
  76. package/templates/commands/controller.md +278 -0
  77. package/templates/commands/debug.md +95 -0
  78. package/templates/commands/documentation/module.md +202 -0
  79. package/templates/commands/documentation/templates.md +432 -0
  80. package/templates/commands/documentation.md +190 -0
  81. package/templates/commands/efcore/_env-check.md +153 -0
  82. package/templates/commands/efcore/conflicts.md +269 -0
  83. package/templates/commands/efcore/db-deploy.md +193 -0
  84. package/templates/commands/efcore/db-reset.md +426 -0
  85. package/templates/commands/efcore/db-seed.md +326 -0
  86. package/templates/commands/efcore/db-status.md +214 -0
  87. package/templates/commands/efcore/migration.md +388 -0
  88. package/templates/commands/efcore/rebase-snapshot.md +264 -0
  89. package/templates/commands/efcore/scan.md +202 -0
  90. package/templates/commands/efcore/squash.md +298 -0
  91. package/templates/commands/efcore.md +176 -0
  92. package/templates/commands/epct.md +69 -0
  93. package/templates/commands/explain.md +186 -0
  94. package/templates/commands/explore.md +45 -0
  95. package/templates/commands/feature-full.md +267 -0
  96. package/templates/commands/gitflow/1-init.md +1038 -0
  97. package/templates/commands/gitflow/10-start.md +768 -0
  98. package/templates/commands/gitflow/11-finish.md +323 -0
  99. package/templates/commands/gitflow/12-cleanup.md +276 -0
  100. package/templates/commands/gitflow/13-sync.md +216 -0
  101. package/templates/commands/gitflow/14-rebase.md +251 -0
  102. package/templates/commands/gitflow/2-status.md +167 -0
  103. package/templates/commands/gitflow/3-commit.md +194 -0
  104. package/templates/commands/gitflow/4-plan.md +145 -0
  105. package/templates/commands/gitflow/5-exec.md +147 -0
  106. package/templates/commands/gitflow/6-abort.md +344 -0
  107. package/templates/commands/gitflow/7-pull-request.md +226 -0
  108. package/templates/commands/gitflow/8-review.md +176 -0
  109. package/templates/commands/gitflow/9-merge.md +224 -0
  110. package/templates/commands/gitflow.md +128 -0
  111. package/templates/commands/implement.md +663 -0
  112. package/templates/commands/notification.md +129 -0
  113. package/templates/commands/oneshot.md +57 -0
  114. package/templates/commands/quick-search.md +72 -0
  115. package/templates/commands/review.md +106 -0
  116. package/templates/commands/utils/test-web-config.md +160 -0
  117. package/templates/commands/utils/test-web.md +151 -0
  118. package/templates/commands/workflow.md +193 -0
  119. package/templates/gitflow/config.json +138 -0
  120. package/templates/hooks/ef-migration-check.md +139 -0
  121. package/templates/hooks/hooks.json +15 -0
  122. package/templates/skills/ai-prompt/SKILL.md +778 -0
  123. package/templates/skills/application/SKILL.md +563 -0
  124. package/templates/skills/application/templates-backend.md +450 -0
  125. package/templates/skills/application/templates-frontend.md +531 -0
  126. package/templates/skills/application/templates-i18n.md +520 -0
  127. package/templates/skills/application/templates-seed.md +647 -0
  128. package/templates/skills/business-analyse/SKILL.md +191 -0
  129. package/templates/skills/business-analyse/questionnaire.md +283 -0
  130. package/templates/skills/business-analyse/templates-frd.md +477 -0
  131. package/templates/skills/business-analyse/templates-react.md +580 -0
  132. package/templates/skills/controller/SKILL.md +240 -0
  133. package/templates/skills/controller/postman-templates.md +614 -0
  134. package/templates/skills/controller/templates.md +1468 -0
  135. package/templates/skills/documentation/SKILL.md +133 -0
  136. package/templates/skills/documentation/templates.md +476 -0
  137. package/templates/skills/feature-full/SKILL.md +838 -0
  138. package/templates/skills/notification/SKILL.md +555 -0
  139. package/templates/skills/ui-components/SKILL.md +870 -0
  140. package/templates/skills/workflow/SKILL.md +582 -0
  141. package/templates/test-web/api-health.json +38 -0
  142. package/templates/test-web/minimal.json +19 -0
  143. package/templates/test-web/npm-package.json +46 -0
  144. package/templates/test-web/seo-check.json +54 -0
@@ -0,0 +1,463 @@
1
+ # Templates Backend - Application Skill
2
+
3
+ > Ces templates génèrent le code C# pour les nouvelles applications/modules.
4
+ > **RAPPEL:** Seules les applications dans le context `business` sont autorisées.
5
+
6
+ ---
7
+
8
+ ## TEMPLATE: PERMISSIONS CLASS
9
+
10
+ ```csharp
11
+ // Ajouter dans src/SmartStack.Application/Common/Authorization/Permissions.cs
12
+
13
+ // IMPORTANT: Les permissions client sont TOUJOURS sous "business.*"
14
+ public static class Business
15
+ {
16
+ public const string Access = "business";
17
+
18
+ public static class $APP_PASCAL
19
+ {
20
+ public const string Access = "business.$app";
21
+
22
+ public static class $MODULE_PASCAL
23
+ {
24
+ public const string View = "business.$app.$module.read";
25
+ public const string Create = "business.$app.$module.create";
26
+ public const string Update = "business.$app.$module.update";
27
+ public const string Delete = "business.$app.$module.delete";
28
+ public const string Assign = "business.$app.$module.assign";
29
+ public const string Execute = "business.$app.$module.execute";
30
+ }
31
+ }
32
+ }
33
+ ```
34
+
35
+ ### Exemple pour Business > CRM > Leads
36
+
37
+ ```csharp
38
+ public static class Business
39
+ {
40
+ public const string Access = "business";
41
+
42
+ public static class Crm
43
+ {
44
+ public const string Access = "business.crm";
45
+
46
+ public static class Leads
47
+ {
48
+ public const string View = "business.crm.leads.read";
49
+ public const string Create = "business.crm.leads.create";
50
+ public const string Update = "business.crm.leads.update";
51
+ public const string Delete = "business.crm.leads.delete";
52
+ }
53
+ }
54
+ }
55
+ ```
56
+
57
+ ---
58
+
59
+ ## TEMPLATE: SERVICE INTERFACE
60
+
61
+ ```csharp
62
+ // src/SmartStack.Application/Common/Interfaces/I{Module}Service.cs
63
+
64
+ using SmartStack.Application.$MODULE_PASCAL.Models;
65
+
66
+ namespace SmartStack.Application.Common.Interfaces;
67
+
68
+ public interface I$MODULE_PASCALService
69
+ {
70
+ Task<PagedResult<$ENTITY_PASCALDto>> GetAllAsync(
71
+ $ENTITY_PASCALQueryParameters parameters,
72
+ CancellationToken cancellationToken = default);
73
+
74
+ Task<$ENTITY_PASCALDto?> GetByIdAsync(
75
+ Guid id,
76
+ CancellationToken cancellationToken = default);
77
+
78
+ Task<$ENTITY_PASCALDto> CreateAsync(
79
+ Create$ENTITY_PASCALRequest request,
80
+ CancellationToken cancellationToken = default);
81
+
82
+ Task<$ENTITY_PASCALDto> UpdateAsync(
83
+ Guid id,
84
+ Update$ENTITY_PASCALRequest request,
85
+ CancellationToken cancellationToken = default);
86
+
87
+ Task<bool> DeleteAsync(
88
+ Guid id,
89
+ CancellationToken cancellationToken = default);
90
+ }
91
+ ```
92
+
93
+ ---
94
+
95
+ ## TEMPLATE: SERVICE IMPLEMENTATION
96
+
97
+ ```csharp
98
+ // src/SmartStack.Infrastructure/Services/$MODULE_PASCAL/$MODULE_PASCALService.cs
99
+
100
+ using Microsoft.EntityFrameworkCore;
101
+ using Microsoft.Extensions.Logging;
102
+ using SmartStack.Application.Common.Interfaces;
103
+ using SmartStack.Application.$MODULE_PASCAL.Models;
104
+ using SmartStack.Domain.$MODULE_PASCAL;
105
+
106
+ namespace SmartStack.Infrastructure.Services.$MODULE_PASCAL;
107
+
108
+ public class $MODULE_PASCALService : I$MODULE_PASCALService
109
+ {
110
+ private readonly IApplicationDbContext _context;
111
+ private readonly ICurrentUserService _currentUser;
112
+ private readonly ILogger<$MODULE_PASCALService> _logger;
113
+
114
+ public $MODULE_PASCALService(
115
+ IApplicationDbContext context,
116
+ ICurrentUserService currentUser,
117
+ ILogger<$MODULE_PASCALService> logger)
118
+ {
119
+ _context = context;
120
+ _currentUser = currentUser;
121
+ _logger = logger;
122
+ }
123
+
124
+ public async Task<PagedResult<$ENTITY_PASCALDto>> GetAllAsync(
125
+ $ENTITY_PASCALQueryParameters parameters,
126
+ CancellationToken cancellationToken = default)
127
+ {
128
+ var query = _context.$ENTITY_PLURAL
129
+ .AsNoTracking();
130
+
131
+ // Apply filters
132
+ if (!string.IsNullOrWhiteSpace(parameters.SearchTerm))
133
+ {
134
+ query = query.Where(x =>
135
+ x.Name.Contains(parameters.SearchTerm) ||
136
+ x.Description.Contains(parameters.SearchTerm));
137
+ }
138
+
139
+ // Apply sorting
140
+ query = parameters.SortColumn?.ToLower() switch
141
+ {
142
+ "name" => parameters.SortDirection == "desc"
143
+ ? query.OrderByDescending(x => x.Name)
144
+ : query.OrderBy(x => x.Name),
145
+ "createdat" => parameters.SortDirection == "desc"
146
+ ? query.OrderByDescending(x => x.CreatedAt)
147
+ : query.OrderBy(x => x.CreatedAt),
148
+ _ => query.OrderByDescending(x => x.CreatedAt)
149
+ };
150
+
151
+ var totalCount = await query.CountAsync(cancellationToken);
152
+
153
+ var items = await query
154
+ .Skip((parameters.Page - 1) * parameters.PageSize)
155
+ .Take(parameters.PageSize)
156
+ .Select(x => new $ENTITY_PASCALDto
157
+ {
158
+ Id = x.Id,
159
+ Name = x.Name,
160
+ Description = x.Description,
161
+ IsActive = x.IsActive,
162
+ CreatedAt = x.CreatedAt,
163
+ UpdatedAt = x.UpdatedAt
164
+ })
165
+ .ToListAsync(cancellationToken);
166
+
167
+ return new PagedResult<$ENTITY_PASCALDto>
168
+ {
169
+ Items = items,
170
+ TotalCount = totalCount,
171
+ Page = parameters.Page,
172
+ PageSize = parameters.PageSize
173
+ };
174
+ }
175
+
176
+ public async Task<$ENTITY_PASCALDto?> GetByIdAsync(
177
+ Guid id,
178
+ CancellationToken cancellationToken = default)
179
+ {
180
+ var entity = await _context.$ENTITY_PLURAL
181
+ .AsNoTracking()
182
+ .FirstOrDefaultAsync(x => x.Id == id, cancellationToken);
183
+
184
+ if (entity == null)
185
+ return null;
186
+
187
+ return new $ENTITY_PASCALDto
188
+ {
189
+ Id = entity.Id,
190
+ Name = entity.Name,
191
+ Description = entity.Description,
192
+ IsActive = entity.IsActive,
193
+ CreatedAt = entity.CreatedAt,
194
+ UpdatedAt = entity.UpdatedAt
195
+ };
196
+ }
197
+
198
+ public async Task<$ENTITY_PASCALDto> CreateAsync(
199
+ Create$ENTITY_PASCALRequest request,
200
+ CancellationToken cancellationToken = default)
201
+ {
202
+ var entity = $ENTITY_PASCAL.Create(
203
+ request.Name,
204
+ request.Description);
205
+
206
+ _context.$ENTITY_PLURAL.Add(entity);
207
+ await _context.SaveChangesAsync(cancellationToken);
208
+
209
+ _logger.LogInformation(
210
+ "User {User} created $ENTITY_PASCAL {Id} ({Name})",
211
+ _currentUser.Email,
212
+ entity.Id,
213
+ entity.Name);
214
+
215
+ return new $ENTITY_PASCALDto
216
+ {
217
+ Id = entity.Id,
218
+ Name = entity.Name,
219
+ Description = entity.Description,
220
+ IsActive = entity.IsActive,
221
+ CreatedAt = entity.CreatedAt
222
+ };
223
+ }
224
+
225
+ public async Task<$ENTITY_PASCALDto> UpdateAsync(
226
+ Guid id,
227
+ Update$ENTITY_PASCALRequest request,
228
+ CancellationToken cancellationToken = default)
229
+ {
230
+ var entity = await _context.$ENTITY_PLURAL
231
+ .FirstOrDefaultAsync(x => x.Id == id, cancellationToken)
232
+ ?? throw new NotFoundException("$ENTITY_PASCAL", id);
233
+
234
+ entity.Update(request.Name, request.Description);
235
+
236
+ await _context.SaveChangesAsync(cancellationToken);
237
+
238
+ _logger.LogInformation(
239
+ "User {User} updated $ENTITY_PASCAL {Id} ({Name})",
240
+ _currentUser.Email,
241
+ entity.Id,
242
+ entity.Name);
243
+
244
+ return new $ENTITY_PASCALDto
245
+ {
246
+ Id = entity.Id,
247
+ Name = entity.Name,
248
+ Description = entity.Description,
249
+ IsActive = entity.IsActive,
250
+ CreatedAt = entity.CreatedAt,
251
+ UpdatedAt = entity.UpdatedAt
252
+ };
253
+ }
254
+
255
+ public async Task<bool> DeleteAsync(
256
+ Guid id,
257
+ CancellationToken cancellationToken = default)
258
+ {
259
+ var entity = await _context.$ENTITY_PLURAL
260
+ .FirstOrDefaultAsync(x => x.Id == id, cancellationToken);
261
+
262
+ if (entity == null)
263
+ return false;
264
+
265
+ _context.$ENTITY_PLURAL.Remove(entity);
266
+ await _context.SaveChangesAsync(cancellationToken);
267
+
268
+ _logger.LogWarning(
269
+ "User {User} deleted $ENTITY_PASCAL {Id} ({Name})",
270
+ _currentUser.Email,
271
+ id,
272
+ entity.Name);
273
+
274
+ return true;
275
+ }
276
+ }
277
+ ```
278
+
279
+ ---
280
+
281
+ ## TEMPLATE: DTOs
282
+
283
+ ```csharp
284
+ // src/SmartStack.Application/$MODULE_PASCAL/Models/$ENTITY_PASCALDto.cs
285
+
286
+ namespace SmartStack.Application.$MODULE_PASCAL.Models;
287
+
288
+ public record $ENTITY_PASCALDto
289
+ {
290
+ public Guid Id { get; init; }
291
+ public string Name { get; init; } = null!;
292
+ public string? Description { get; init; }
293
+ public bool IsActive { get; init; }
294
+ public DateTime CreatedAt { get; init; }
295
+ public DateTime? UpdatedAt { get; init; }
296
+ }
297
+
298
+ public record Create$ENTITY_PASCALRequest
299
+ {
300
+ public string Name { get; init; } = null!;
301
+ public string? Description { get; init; }
302
+ }
303
+
304
+ public record Update$ENTITY_PASCALRequest
305
+ {
306
+ public string Name { get; init; } = null!;
307
+ public string? Description { get; init; }
308
+ }
309
+
310
+ public record $ENTITY_PASCALQueryParameters
311
+ {
312
+ public int Page { get; init; } = 1;
313
+ public int PageSize { get; init; } = 10;
314
+ public string? SearchTerm { get; init; }
315
+ public string? SortColumn { get; init; } = "createdAt";
316
+ public string? SortDirection { get; init; } = "desc";
317
+ }
318
+ ```
319
+
320
+ ---
321
+
322
+ ## TEMPLATE: DOMAIN ENTITY
323
+
324
+ ```csharp
325
+ // src/SmartStack.Domain/$MODULE_PASCAL/$ENTITY_PASCAL.cs
326
+
327
+ using SmartStack.Domain.Common;
328
+
329
+ namespace SmartStack.Domain.$MODULE_PASCAL;
330
+
331
+ public class $ENTITY_PASCAL : BaseEntity
332
+ {
333
+ public string Name { get; private set; } = null!;
334
+ public string? Description { get; private set; }
335
+ public bool IsActive { get; private set; }
336
+
337
+ private $ENTITY_PASCAL() { }
338
+
339
+ public static $ENTITY_PASCAL Create(string name, string? description = null)
340
+ {
341
+ if (string.IsNullOrWhiteSpace(name))
342
+ throw new Exceptions.DomainException("Name is required");
343
+
344
+ return new $ENTITY_PASCAL
345
+ {
346
+ Id = Guid.NewGuid(),
347
+ Name = name,
348
+ Description = description,
349
+ IsActive = true,
350
+ CreatedAt = DateTime.UtcNow
351
+ };
352
+ }
353
+
354
+ public void Update(string name, string? description)
355
+ {
356
+ if (string.IsNullOrWhiteSpace(name))
357
+ throw new Exceptions.DomainException("Name is required");
358
+
359
+ Name = name;
360
+ Description = description;
361
+ UpdatedAt = DateTime.UtcNow;
362
+ }
363
+
364
+ public void Activate() => IsActive = true;
365
+ public void Deactivate() => IsActive = false;
366
+ }
367
+ ```
368
+
369
+ ---
370
+
371
+ ## TEMPLATE: EF CONFIGURATION
372
+
373
+ ```csharp
374
+ // src/SmartStack.Infrastructure/Persistence/Configurations/$MODULE_PASCAL/$ENTITY_PASCALConfiguration.cs
375
+
376
+ using Microsoft.EntityFrameworkCore;
377
+ using Microsoft.EntityFrameworkCore.Metadata.Builders;
378
+ using SmartStack.Domain.$MODULE_PASCAL;
379
+
380
+ namespace SmartStack.Infrastructure.Persistence.Configurations.$MODULE_PASCAL;
381
+
382
+ public class $ENTITY_PASCALConfiguration : IEntityTypeConfiguration<$ENTITY_PASCAL>
383
+ {
384
+ public void Configure(EntityTypeBuilder<$ENTITY_PASCAL> builder)
385
+ {
386
+ // Tables métier client dans le schéma "biz" (business)
387
+ builder.ToTable("$ENTITY_PLURAL", "biz");
388
+
389
+ builder.HasKey(x => x.Id);
390
+
391
+ builder.Property(x => x.Name)
392
+ .HasMaxLength(200)
393
+ .IsRequired();
394
+
395
+ builder.Property(x => x.Description)
396
+ .HasMaxLength(1000);
397
+
398
+ builder.HasIndex(x => x.Name)
399
+ .IsUnique();
400
+ }
401
+ }
402
+ ```
403
+
404
+ ---
405
+
406
+ ## TEMPLATE: DBCONTEXT UPDATE
407
+
408
+ ```csharp
409
+ // Ajouter dans IApplicationDbContext.cs
410
+ DbSet<$ENTITY_PASCAL> $ENTITY_PLURAL { get; }
411
+
412
+ // Ajouter dans ApplicationDbContext.cs
413
+ public DbSet<$ENTITY_PASCAL> $ENTITY_PLURAL => Set<$ENTITY_PASCAL>();
414
+ ```
415
+
416
+ ---
417
+
418
+ ## TEMPLATE: DI REGISTRATION
419
+
420
+ ```csharp
421
+ // Ajouter dans src/SmartStack.Infrastructure/DependencyInjection.cs
422
+
423
+ services.AddScoped<I$MODULE_PASCALService, $MODULE_PASCALService>();
424
+ ```
425
+
426
+ ---
427
+
428
+ ## CHAÎNAGE AVEC /controller:create
429
+
430
+ Après génération des templates backend, le skill appelle automatiquement :
431
+
432
+ ```
433
+ /controller:create Business $MODULE $ENTITY
434
+ ```
435
+
436
+ Exemple :
437
+ ```
438
+ /controller:create Business Leads Lead
439
+ ```
440
+
441
+ Cela génère :
442
+ - Controller avec CRUD complet
443
+ - Endpoints REST
444
+ - ProducesResponseType
445
+ - Logging approprié
446
+ - Tests Postman
447
+
448
+ ---
449
+
450
+ ## CHECKLIST BACKEND
451
+
452
+ | Vérification | Status |
453
+ |--------------|--------|
454
+ | ☐ Permissions.cs mis à jour (sous Business.*) | |
455
+ | ☐ Service interface créée | |
456
+ | ☐ Service implementation créée | |
457
+ | ☐ DTOs créés | |
458
+ | ☐ Domain entity créée | |
459
+ | ☐ EF Configuration créée (schéma "biz") | |
460
+ | ☐ DbContext mis à jour | |
461
+ | ☐ DI registration ajoutée | |
462
+ | ☐ /controller:create exécuté | |
463
+ | ☐ dotnet build réussi | |