@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,63 @@
1
+ # Step 02: Plan
2
+
3
+ **Task:** {{task_description}}
4
+ **Started:** {{timestamp}}
5
+
6
+ ---
7
+
8
+ ## Implementation Plan
9
+
10
+ ### Overview
11
+ _High-level strategy and approach_
12
+
13
+ ### Prerequisites
14
+ - [ ] _Prerequisite 1_
15
+ - [ ] _Prerequisite 2_
16
+
17
+ ---
18
+
19
+ ## File Changes
20
+
21
+ ### `path/to/file1.ts`
22
+ - _Change 1_
23
+ - _Change 2_
24
+
25
+ ### `path/to/file2.ts` (NEW FILE)
26
+ - _What to create_
27
+
28
+ ---
29
+
30
+ ## Testing Strategy
31
+
32
+ ### New Tests
33
+ - `path/to/file1.test.ts`
34
+ - _Test case 1_
35
+ - _Test case 2_
36
+
37
+ ### Update Existing Tests
38
+ - _Existing test file to update_
39
+
40
+ ---
41
+
42
+ ## Acceptance Criteria Mapping
43
+
44
+ - [ ] AC1: Satisfied by _changes in file1.ts_
45
+ - [ ] AC2: Satisfied by _changes in file2.ts_
46
+
47
+ ---
48
+
49
+ ## Risks & Considerations
50
+
51
+ - _Risk 1 and mitigation_
52
+
53
+ ---
54
+
55
+ ## Summary
56
+
57
+ **Files to modify:**
58
+ **New files:**
59
+ **Tests planned:**
60
+
61
+ ---
62
+
63
+ **Status:** _Pending_
@@ -0,0 +1,34 @@
1
+ # Step 03: Execute
2
+
3
+ **Task:** {{task_description}}
4
+ **Started:** {{timestamp}}
5
+
6
+ ---
7
+
8
+ ## Implementation Log
9
+
10
+ ### Files Modified
11
+
12
+ #### `path/to/file1.ts`
13
+ - _Change applied (lines X-Y)_
14
+
15
+ #### `path/to/file2.ts`
16
+ - _Change applied_
17
+
18
+ ---
19
+
20
+ ## Validation
21
+
22
+ **Typecheck:** _Pending_
23
+ **Lint:** _Pending_
24
+
25
+ ---
26
+
27
+ ## Summary
28
+
29
+ **Files modified:**
30
+ **Todos completed:**
31
+
32
+ ---
33
+
34
+ **Status:** _Pending_
@@ -0,0 +1,61 @@
1
+ # Step 04: Validate
2
+
3
+ **Task:** {{task_description}}
4
+ **Started:** {{timestamp}}
5
+
6
+ ---
7
+
8
+ ## Validation Results
9
+
10
+ ### Typecheck
11
+ **Status:** _Pending_
12
+ **Output:**
13
+ ```
14
+ ```
15
+
16
+ ### Lint
17
+ **Status:** _Pending_
18
+ **Output:**
19
+ ```
20
+ ```
21
+
22
+ ### Tests
23
+ **Status:** _Pending_
24
+ **Passing:** _/_
25
+ **Output:**
26
+ ```
27
+ ```
28
+
29
+ ---
30
+
31
+ ## Self-Audit Checklist
32
+
33
+ ### Tasks Complete
34
+ - [ ] All todos marked complete
35
+ - [ ] No tasks skipped
36
+
37
+ ### Tests Passing
38
+ - [ ] All existing tests pass
39
+ - [ ] New tests written
40
+
41
+ ### Acceptance Criteria
42
+ - [ ] AC1: _Verified by..._
43
+ - [ ] AC2: _Verified by..._
44
+
45
+ ### Patterns Followed
46
+ - [ ] Code follows existing patterns
47
+ - [ ] Error handling consistent
48
+ - [ ] Naming conventions match
49
+
50
+ ---
51
+
52
+ ## Summary
53
+
54
+ **Typecheck:**
55
+ **Lint:**
56
+ **Tests:**
57
+ **AC Verified:**
58
+
59
+ ---
60
+
61
+ **Status:** _Pending_
@@ -0,0 +1,58 @@
1
+ # Step 05: Examine (Adversarial Review)
2
+
3
+ **Task:** {{task_description}}
4
+ **Started:** {{timestamp}}
5
+
6
+ ---
7
+
8
+ ## Files Reviewed
9
+
10
+ | File | Type |
11
+ |------|------|
12
+ | | source |
13
+ | | test |
14
+
15
+ ---
16
+
17
+ ## Security Checklist
18
+
19
+ - [ ] No SQL injection (parameterized queries)
20
+ - [ ] No XSS (output encoding)
21
+ - [ ] No secrets in code
22
+ - [ ] Input validation present
23
+ - [ ] Auth checks on protected routes
24
+
25
+ ## Logic Checklist
26
+
27
+ - [ ] Error handling for all failure modes
28
+ - [ ] Edge cases handled
29
+ - [ ] Null/undefined checks
30
+ - [ ] Race conditions considered
31
+
32
+ ## Quality Checklist
33
+
34
+ - [ ] Follows existing patterns
35
+ - [ ] No code duplication
36
+ - [ ] Clear naming
37
+
38
+ ---
39
+
40
+ ## Findings
41
+
42
+ | ID | Severity | Category | Location | Issue | Validity |
43
+ |----|----------|----------|----------|-------|----------|
44
+ | | | | | | |
45
+
46
+ ---
47
+
48
+ ## Summary
49
+
50
+ **Total findings:**
51
+ **Critical:**
52
+ **High:**
53
+ **Medium:**
54
+ **Low:**
55
+
56
+ ---
57
+
58
+ **Status:** _Pending_
@@ -0,0 +1,39 @@
1
+ # Step 06: Resolve Findings
2
+
3
+ **Task:** {{task_description}}
4
+ **Started:** {{timestamp}}
5
+
6
+ ---
7
+
8
+ ## Resolution Log
9
+
10
+ ### Fixed
11
+
12
+ | ID | Location | Fix Applied |
13
+ |----|----------|-------------|
14
+ | | | |
15
+
16
+ ### Skipped
17
+
18
+ | ID | Location | Reason |
19
+ |----|----------|--------|
20
+ | | | |
21
+
22
+ ---
23
+
24
+ ## Post-Fix Validation
25
+
26
+ **Typecheck:** _Pending_
27
+ **Lint:** _Pending_
28
+
29
+ ---
30
+
31
+ ## Summary
32
+
33
+ **Findings fixed:**
34
+ **Findings skipped:**
35
+ **Validation:**
36
+
37
+ ---
38
+
39
+ **Status:** _Pending_
@@ -0,0 +1,56 @@
1
+ # Step 07: Test Analysis & Creation
2
+
3
+ **Task:** {{task_description}}
4
+ **Started:** {{timestamp}}
5
+
6
+ ---
7
+
8
+ ## Test Coverage Analysis
9
+
10
+ ### Existing Test Structure
11
+ - **Framework:** _vitest/jest_
12
+ - **Pattern:** _describe/it_
13
+ - **Location:** _**/__tests__/_
14
+
15
+ ### Coverage Gaps
16
+
17
+ | File | Existing | New Code | Gap |
18
+ |------|----------|----------|-----|
19
+ | | | | |
20
+
21
+ ---
22
+
23
+ ## Test Plan
24
+
25
+ ### New Test Files
26
+
27
+ | File | Tests Planned |
28
+ |------|---------------|
29
+ | | |
30
+
31
+ ### Test Cases
32
+
33
+ | File | Function | Test Case | Priority |
34
+ |------|----------|-----------|----------|
35
+ | | | | |
36
+
37
+ ---
38
+
39
+ ## Tests Created
40
+
41
+ ### `path/to/file.test.ts`
42
+ ```typescript
43
+ // Test code added
44
+ ```
45
+
46
+ ---
47
+
48
+ ## Summary
49
+
50
+ **New test files:**
51
+ **Test cases added:**
52
+ **Coverage improvement:**
53
+
54
+ ---
55
+
56
+ **Status:** _Pending_
@@ -0,0 +1,41 @@
1
+ # Step 08: Run Tests
2
+
3
+ **Task:** {{task_description}}
4
+ **Started:** {{timestamp}}
5
+
6
+ ---
7
+
8
+ ## Test Run Log
9
+
10
+ ### Run 1
11
+ **Command:** `pnpm run test`
12
+ **Result:** _Pending_
13
+ **Output:**
14
+ ```
15
+ ```
16
+
17
+ ### Failures & Fixes
18
+
19
+ | Test | Error | Root Cause | Fix |
20
+ |------|-------|------------|-----|
21
+ | | | | |
22
+
23
+ ---
24
+
25
+ ## Final Results
26
+
27
+ **Total tests:**
28
+ **Passing:**
29
+ **Failed:** 0
30
+
31
+ **Iterations to green:**
32
+
33
+ ---
34
+
35
+ ## Summary
36
+
37
+ All tests passing: _Yes/No_
38
+
39
+ ---
40
+
41
+ **Status:** _Pending_
@@ -0,0 +1,69 @@
1
+ # APEX Template System
2
+
3
+ ## Overview
4
+
5
+ This directory contains template files used to initialize APEX workflow outputs when save mode (`-s`) is enabled.
6
+
7
+ ## Template Files
8
+
9
+ | Template | Purpose | Created When |
10
+ |----------|---------|--------------|
11
+ | `00-context.md` | Workflow configuration and progress tracking | Always (if save_mode) |
12
+ | `01-analyze.md` | Analysis findings | Always (if save_mode) |
13
+ | `02-plan.md` | Implementation plan | Always (if save_mode) |
14
+ | `03-execute.md` | Implementation log | Always (if save_mode) |
15
+ | `04-validate.md` | Validation results | Always (if save_mode) |
16
+ | `05-examine.md` | Adversarial review findings | Only if examine_mode |
17
+ | `06-resolve.md` | Finding resolution log | Only if examine_mode |
18
+ | `07-tests.md` | Test analysis and creation | Only if test_mode |
19
+ | `08-run-tests.md` | Test runner log | Only if test_mode |
20
+
21
+ ## Template Variables
22
+
23
+ Templates use `{{variable}}` syntax for placeholders:
24
+
25
+ | Variable | Description | Example |
26
+ |----------|-------------|---------|
27
+ | `{{task_id}}` | Kebab-case task identifier | `01-add-auth-middleware` |
28
+ | `{{task_description}}` | Plain text task description | `add authentication middleware` |
29
+ | `{{timestamp}}` | ISO 8601 timestamp | `2026-01-22T10:30:00Z` |
30
+ | `{{auto_mode}}` | Auto mode flag | `true` or `false` |
31
+ | `{{examine_mode}}` | Examine mode flag | `true` or `false` |
32
+ | `{{save_mode}}` | Save mode flag | `true` or `false` |
33
+ | `{{test_mode}}` | Test mode flag | `true` or `false` |
34
+ | `{{economy_mode}}` | Economy mode flag | `true` or `false` |
35
+ | `{{original_input}}` | Raw user input | `/apex -a -s add auth` |
36
+ | `{{examine_status}}` | Progress status for examine steps | `Pending` or `Skip` |
37
+ | `{{test_status}}` | Progress status for test steps | `Pending` or `Skip` |
38
+
39
+ ## How It Works
40
+
41
+ 1. **Initialization (step-00-init):**
42
+ - Creates output directory `.claude/output/apex/{task-id}/`
43
+ - Copies templates with variables replaced
44
+ - All files ready for appending
45
+
46
+ 2. **Each Step:**
47
+ - Reads from pre-created file if resuming
48
+ - Appends findings/outputs to step file
49
+ - Updates 00-context.md progress table
50
+
51
+ 3. **Benefits:**
52
+ - Consistent formatting across all workflows
53
+ - Easy to update templates
54
+ - Supports resume from any step
55
+
56
+ ## Output Structure
57
+
58
+ ```
59
+ .claude/output/apex/{task-id}/
60
+ ├── 00-context.md # Configuration + progress
61
+ ├── 01-analyze.md # Analysis findings
62
+ ├── 02-plan.md # Implementation plan
63
+ ├── 03-execute.md # Execution log
64
+ ├── 04-validate.md # Validation results
65
+ ├── 05-examine.md # Review findings (if -x)
66
+ ├── 06-resolve.md # Resolution log (if -x)
67
+ ├── 07-tests.md # Test creation (if -t)
68
+ └── 08-run-tests.md # Test runner (if -t)
69
+ ```
@@ -1,26 +1,26 @@
1
1
  ---
2
2
  name: application
3
3
  description: |
4
- Crée des applications/modules SmartStack full-stack.
5
- Utiliser ce skill quand:
6
- - L'utilisateur demande de créer une application, un module, ou un context
7
- - L'utilisateur mentionne "nouveau module", "nouvelle application", "ajouter une fonctionnalité"
8
- - L'utilisateur veut étendre la navigation avec de nouvelles entrées
9
- Scope: Context → Application → Module → Section (tous niveaux)
4
+ Creates SmartStack full-stack applications/modules.
5
+ Use this skill when:
6
+ - User asks to create an application, module, or context
7
+ - User mentions "new module", "new application", "add a feature"
8
+ - User wants to extend navigation with new entries
9
+ Scope: Context → Application → Module → Section (all levels)
10
10
  ---
11
11
 
12
12
  # Skill Application SmartStack
13
13
 
14
- **Référence:** [_shared.md](../_shared.md) pour architecture, permissions, i18n
14
+ **Reference:** [_shared.md](../_shared.md) for architecture, permissions, i18n
15
15
 
16
- ## QUAND CE SKILL S'ACTIVE
16
+ ## WHEN THIS SKILL ACTIVATES
17
17
 
18
- | Déclencheur | Exemple |
19
- |-------------|---------|
20
- | Demande explicite | "Crée un module pour gérer les produits" |
21
- | Nouvelle fonctionnalité | "Il faut ajouter la gestion des commandes" |
22
- | Extension navigation | "Ajoute une application CRM dans business" |
23
- | Mots-clés | "nouveau module", "nouvelle application", "ajouter un context" |
18
+ | Trigger | Example |
19
+ |---------|---------|
20
+ | Explicit request | "Create a module to manage products" |
21
+ | New feature | "We need to add order management" |
22
+ | Navigation extension | "Add a CRM application in business" |
23
+ | Keywords | "new module", "new application", "add a context" |
24
24
 
25
25
  ## FLOW ARCHITECTURE
26
26
 
@@ -28,44 +28,44 @@ description: |
28
28
  WEB (React) → API (.NET) → Application → Infrastructure → Database
29
29
  ```
30
30
 
31
- **INTERDIT:** WEB → Infrastructure (accès DB direct), WEB → Domain
31
+ **FORBIDDEN:** WEB → Infrastructure (direct DB access), WEB → Domain
32
32
 
33
33
  ## WORKFLOW
34
34
 
35
- ### 1. Détection du Niveau
35
+ ### 1. Level Detection
36
36
 
37
- | Indice | → Niveau |
38
- |--------|----------|
37
+ | Hint | → Level |
38
+ |------|---------|
39
39
  | "context", "workspace" | Context |
40
40
  | "application", "app" | Application |
41
- | "module", "fonctionnalité" | Module |
42
- | "section", "onglet" | Section |
41
+ | "module", "feature" | Module |
42
+ | "section", "tab" | Section |
43
43
 
44
- ### 2. Extraction Paramètres
45
- `$LEVEL`, `$PARENT` (platform/business/personal), `$CODE` (kebab-case), `$LABEL_FR`, `$ICON` (Lucide)
44
+ ### 2. Parameter Extraction
45
+ `$LEVEL`, `$PARENT` (platform/business/personal), `$CODE` (kebab-case), `$LABEL_EN`, `$ICON` (Lucide)
46
46
 
47
- ### 3. Génération Full-Stack
47
+ ### 3. Full-Stack Generation
48
48
  ```
49
- 1. DB SEED (Navigation + Translations 4 langues)
50
- 2. PERMISSIONS (Permissions.cs + PermissionConfiguration.cs) ← 2 fichiers!
49
+ 1. DB SEED (Navigation + Translations 4 languages)
50
+ 2. PERMISSIONS (Permissions.cs + PermissionConfiguration.cs) ← 2 files!
51
51
  3. API (Controller + DTOs via /controller:create)
52
52
  4. SERVICES (Interface + Implementation)
53
53
  5. FRONTEND (Page + Components + Hooks)
54
54
  6. I18N (fr, en, it, de)
55
- 7. ROUTES (nested routes obligatoires)
55
+ 7. ROUTES (nested routes mandatory)
56
56
  8. PREFERENCES (Hook pattern)
57
57
  9. MIGRATION (/efcore:migration)
58
58
  ```
59
59
 
60
- ### 4. Chaînage Automatique
61
- - `/controller:create` → Controllers API
62
- - `/efcore:migration` → Migrations DB
60
+ ### 4. Automatic Chaining
61
+ - `/controller:create` → API Controllers
62
+ - `/efcore:migration` → DB Migrations
63
63
  - `/ui-components` → EntityCard, DataTable
64
64
 
65
- ## PRÉFÉRENCES UTILISATEUR
65
+ ## USER PREFERENCES
66
66
 
67
- | Préférence | Stockage |
68
- |------------|----------|
67
+ | Preference | Storage |
68
+ |------------|---------|
69
69
  | pageSize | `user.preferences.{module}.pageSize` |
70
70
  | sortColumn/Direction | `user.preferences.{module}.sort*` |
71
71
  | filters | `user.preferences.{module}.filters` |
@@ -78,7 +78,7 @@ export function use{Module}Preferences() {
78
78
  return {
79
79
  pageSize: preferences.{module}?.pageSize ?? 10,
80
80
  setPageSize: (size: number) => updatePreference('{module}.pageSize', size),
81
- // ... autres
81
+ // ... others
82
82
  };
83
83
  }
84
84
  ```
@@ -86,34 +86,34 @@ export function use{Module}Preferences() {
86
86
  ## ROUTING (React Router v7)
87
87
 
88
88
  ```tsx
89
- // ✅ CORRECT - Routes imbriquées
89
+ // ✅ CORRECT - Nested routes
90
90
  <Route path="$APPLICATION">
91
91
  <Route index element={<Navigate to="$DEFAULT_MODULE" replace />} />
92
92
  <Route path="$MODULE1" element={<Module1Page />} />
93
93
  </Route>
94
94
 
95
- // ❌ INTERDIT - Routes plates (causent redirect vers Home)
95
+ // ❌ FORBIDDEN - Flat routes (cause redirect to Home)
96
96
  <Route path="$APPLICATION" element={<Navigate ... />} />
97
97
  <Route path="$APPLICATION/$MODULE1" element={...} />
98
98
  ```
99
99
 
100
100
  ## INTEGRATIONS
101
101
 
102
- | Skill | Quand | Action |
103
- |-------|-------|--------|
104
- | `/notification` | Alertes utilisateur | INotificationService + SignalR |
105
- | `/workflow` | Emails automatiques | IWorkflowService.TriggerAsync |
106
- | `/ai-prompt` | Assistance IA | IAiCompletionService |
107
- | `/feature-full` | Feature complète | Orchestration tous skills |
102
+ | Skill | When | Action |
103
+ |-------|------|--------|
104
+ | `/notification` | User alerts | INotificationService + SignalR |
105
+ | `/workflow` | Automated emails | IWorkflowService.TriggerAsync |
106
+ | `/ai-prompt` | AI assistance | IAiCompletionService |
107
+ | `/feature-full` | Complete feature | Orchestration all skills |
108
108
 
109
- ### Pattern Integration Notification
109
+ ### Notification Integration Pattern
110
110
  ```csharp
111
111
  await _notificationService.SendNotificationAsync(
112
112
  userId, NotificationType.{Entity}Created, title, message,
113
113
  relatedEntityType: nameof({Entity}), relatedEntityId: entity.Id);
114
114
  ```
115
115
 
116
- ### Pattern Integration Workflow
116
+ ### Workflow Integration Pattern
117
117
  ```csharp
118
118
  await _workflowService.TriggerAsync("{entity}.created", new Dictionary<string, object>
119
119
  {
@@ -122,17 +122,17 @@ await _workflowService.TriggerAsync("{entity}.created", new Dictionary<string, o
122
122
  });
123
123
  ```
124
124
 
125
- ## REGLES ABSOLUES
125
+ ## ABSOLUTE RULES
126
126
 
127
127
  | DO | DON'T |
128
128
  |----|-------|
129
- | 4 langues (FR, EN, IT, DE) | Import Infrastructure dans frontend |
130
- | Permissions: 2 fichiers | SQL direct dans frontend |
131
- | Routes imbriquées | Routes plates (flat siblings) |
132
- | EntityCard pour cards | Cards manuelles avec divs |
133
- | DataTable pour tableaux | GUIDs séquentiels |
129
+ | 4 languages (FR, EN, IT, DE) | Import Infrastructure in frontend |
130
+ | Permissions: 2 files | Direct SQL in frontend |
131
+ | Nested routes | Flat routes (flat siblings) |
132
+ | EntityCard for cards | Manual cards with divs |
133
+ | DataTable for tables | Sequential GUIDs |
134
134
 
135
- ## FICHIERS ASSOCIÉS
135
+ ## ASSOCIATED FILES
136
136
 
137
137
  - [templates-backend.md](templates-backend.md)
138
138
  - [templates-frontend.md](templates-frontend.md)
@@ -1,13 +1,13 @@
1
1
  # Templates Backend - Application Skill
2
2
 
3
- > Ces templates génèrent le code C# pour les nouvelles applications/modules.
3
+ > These templates generate C# code for new applications/modules.
4
4
 
5
5
  ---
6
6
 
7
7
  ## TEMPLATE: PERMISSIONS CLASS
8
8
 
9
9
  ```csharp
10
- // Ajouter dans src/SmartStack.Application/Common/Authorization/Permissions.cs
10
+ // Add to src/SmartStack.Application/Common/Authorization/Permissions.cs
11
11
 
12
12
  public static class $CONTEXT_PASCAL
13
13
  {
@@ -25,7 +25,7 @@ public static class $CONTEXT_PASCAL
25
25
  }
26
26
  ```
27
27
 
28
- ### Exemple pour ERP > Sales > Products
28
+ ### Example for ERP > Sales > Products
29
29
 
30
30
  ```csharp
31
31
  public static class Erp
@@ -412,39 +412,39 @@ services.AddScoped<I$MODULE_PASCALService, $MODULE_PASCALService>();
412
412
 
413
413
  ---
414
414
 
415
- ## CHAÎNAGE AVEC /controller:create
415
+ ## CHAINING WITH /controller:create
416
416
 
417
- Après génération des templates backend, le skill appelle automatiquement :
417
+ After backend templates generation, the skill automatically calls:
418
418
 
419
419
  ```
420
420
  /controller:create $AREA $MODULE $ENTITY
421
421
  ```
422
422
 
423
- Exemple :
423
+ Example:
424
424
  ```
425
425
  /controller:create Business Products Product
426
426
  ```
427
427
 
428
- Cela génère :
429
- - Controller avec CRUD complet
430
- - Endpoints REST
428
+ This generates:
429
+ - Full CRUD Controller
430
+ - REST Endpoints
431
431
  - ProducesResponseType
432
- - Logging approprié
433
- - Tests Postman
432
+ - Appropriate logging
433
+ - Postman tests
434
434
 
435
435
  ---
436
436
 
437
- ## CHECKLIST BACKEND
438
-
439
- | Vérification | Status |
440
- |--------------|--------|
441
- | ☐ Permissions.cs mis à jour | |
442
- | ☐ Service interface créée | |
443
- | ☐ Service implementation créée | |
444
- | ☐ DTOs créés | |
445
- | ☐ Domain entity créée | |
446
- | ☐ EF Configuration créée | |
447
- | ☐ DbContext mis à jour | |
448
- | ☐ DI registration ajoutée | |
449
- | ☐ /controller:create exécuté | |
450
- | ☐ dotnet build réussi | |
437
+ ## BACKEND CHECKLIST
438
+
439
+ | Check | Status |
440
+ |-------|--------|
441
+ | ☐ Permissions.cs updated | |
442
+ | ☐ Service interface created | |
443
+ | ☐ Service implementation created | |
444
+ | ☐ DTOs created | |
445
+ | ☐ Domain entity created | |
446
+ | ☐ EF Configuration created | |
447
+ | ☐ DbContext updated | |
448
+ | ☐ DI registration added | |
449
+ | ☐ /controller:create executed | |
450
+ | ☐ dotnet build successful | |