specialist-agent 2.13.0 → 3.2.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 (323) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +33 -207
  3. package/dist/catalog.json +15529 -0
  4. package/dist/hw-worker.mjs +254 -0
  5. package/dist/icones/icone.ico +0 -0
  6. package/dist/icones/icone.png +0 -0
  7. package/dist/interface/assets/figtree-latin-400-normal-g7Dtegnw.woff2 +0 -0
  8. package/dist/interface/assets/figtree-latin-500-normal-BWnGEVsr.woff2 +0 -0
  9. package/dist/interface/assets/figtree-latin-600-normal-Cv_xCTDl.woff2 +0 -0
  10. package/dist/interface/assets/figtree-latin-700-normal-th6qEP7c.woff2 +0 -0
  11. package/dist/interface/assets/figtree-latin-ext-400-normal-CXAzuTZb.woff2 +0 -0
  12. package/dist/interface/assets/figtree-latin-ext-500-normal-Du0rIuHj.woff2 +0 -0
  13. package/dist/interface/assets/figtree-latin-ext-600-normal-DJlfifZj.woff2 +0 -0
  14. package/dist/interface/assets/figtree-latin-ext-700-normal-CS4sQkGV.woff2 +0 -0
  15. package/dist/interface/assets/index-BIyqZkro.css +1 -0
  16. package/dist/interface/assets/index-zAegy908.js +13 -0
  17. package/dist/interface/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  18. package/dist/interface/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
  19. package/dist/interface/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
  20. package/dist/interface/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  21. package/dist/interface/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
  22. package/dist/interface/assets/jetbrains-mono-latin-ext-600-normal-BfB_LPfz.woff2 +0 -0
  23. package/dist/interface/assets/unbounded-latin-500-normal-4slEIF53.woff2 +0 -0
  24. package/dist/interface/assets/unbounded-latin-700-normal-CaoNriVp.woff2 +0 -0
  25. package/dist/interface/assets/unbounded-latin-ext-500-normal-BTIpesyw.woff2 +0 -0
  26. package/dist/interface/assets/unbounded-latin-ext-700-normal-BLzWLLjG.woff2 +0 -0
  27. package/dist/interface/icones/apple-touch-icon.png +0 -0
  28. package/dist/interface/icones/favicon-32.png +0 -0
  29. package/dist/interface/icones/icone-192.png +0 -0
  30. package/dist/interface/icones/icone-512.png +0 -0
  31. package/dist/interface/icones/icone-mascara-512.png +0 -0
  32. package/dist/interface/index.html +19 -0
  33. package/dist/interface/manifest.webmanifest +19 -0
  34. package/dist/interface/sw.js +63 -0
  35. package/dist/specialist-agent.mjs +6919 -0
  36. package/dist/usage-worker.mjs +174 -0
  37. package/package.json +32 -57
  38. package/.claude-plugin/marketplace.json +0 -52
  39. package/.claude-plugin/plugin.json +0 -37
  40. package/.codex/INSTALL.md +0 -145
  41. package/.cursor-plugin/marketplace.json +0 -52
  42. package/.cursor-plugin/plugin.json +0 -37
  43. package/.opencode/INSTALL.md +0 -127
  44. package/.opencode/opencode.json +0 -186
  45. package/agents/analyst-lite.md +0 -48
  46. package/agents/analyst.md +0 -396
  47. package/agents/api-lite.md +0 -43
  48. package/agents/api.md +0 -427
  49. package/agents/architect-lite.md +0 -104
  50. package/agents/architect.md +0 -571
  51. package/agents/autopilot-lite.md +0 -46
  52. package/agents/autopilot.md +0 -196
  53. package/agents/cloud-lite.md +0 -75
  54. package/agents/cloud.md +0 -213
  55. package/agents/data-lite.md +0 -67
  56. package/agents/data.md +0 -306
  57. package/agents/debugger-lite.md +0 -46
  58. package/agents/debugger.md +0 -410
  59. package/agents/deps-lite.md +0 -41
  60. package/agents/deps.md +0 -363
  61. package/agents/designer-lite.md +0 -67
  62. package/agents/designer.md +0 -195
  63. package/agents/devops-lite.md +0 -67
  64. package/agents/devops.md +0 -205
  65. package/agents/docs-lite.md +0 -42
  66. package/agents/docs.md +0 -454
  67. package/agents/executor-lite.md +0 -61
  68. package/agents/executor.md +0 -695
  69. package/agents/explorer-lite.md +0 -55
  70. package/agents/explorer.md +0 -152
  71. package/agents/finance-lite.md +0 -66
  72. package/agents/finance.md +0 -255
  73. package/agents/i18n-lite.md +0 -44
  74. package/agents/i18n.md +0 -594
  75. package/agents/legal-lite.md +0 -113
  76. package/agents/legal.md +0 -302
  77. package/agents/marketing-lite.md +0 -25
  78. package/agents/marketing.md +0 -188
  79. package/agents/memory.md +0 -166
  80. package/agents/orchestrator-lite.md +0 -40
  81. package/agents/orchestrator.md +0 -512
  82. package/agents/pair-lite.md +0 -38
  83. package/agents/pair.md +0 -310
  84. package/agents/perf-lite.md +0 -42
  85. package/agents/perf.md +0 -320
  86. package/agents/planner-lite.md +0 -59
  87. package/agents/planner.md +0 -272
  88. package/agents/product-lite.md +0 -25
  89. package/agents/product.md +0 -195
  90. package/agents/refactor-lite.md +0 -42
  91. package/agents/refactor.md +0 -467
  92. package/agents/ripple-lite.md +0 -106
  93. package/agents/ripple.md +0 -166
  94. package/agents/scout-lite.md +0 -37
  95. package/agents/scout.md +0 -224
  96. package/agents/security-lite.md +0 -66
  97. package/agents/security.md +0 -252
  98. package/agents/sentry-triage-lite.md +0 -54
  99. package/agents/sentry-triage.md +0 -217
  100. package/agents/starter-lite.md +0 -80
  101. package/agents/starter.md +0 -300
  102. package/agents/support-lite.md +0 -24
  103. package/agents/support.md +0 -191
  104. package/agents/tdd-lite.md +0 -43
  105. package/agents/tdd.md +0 -329
  106. package/agents/tester-lite.md +0 -71
  107. package/agents/tester.md +0 -237
  108. package/cli/architectures.mjs +0 -713
  109. package/cli/detect-architecture.mjs +0 -752
  110. package/cli/generate-architecture.mjs +0 -1096
  111. package/cli/index.mjs +0 -1217
  112. package/cli/recommend-architecture.mjs +0 -870
  113. package/hooks/after-review.mjs +0 -130
  114. package/hooks/after-task.mjs +0 -117
  115. package/hooks/before-plan.mjs +0 -155
  116. package/hooks/before-review.mjs +0 -139
  117. package/hooks/hooks.json +0 -66
  118. package/hooks/lifecycle.json +0 -91
  119. package/hooks/native/auto-dispatch.mjs +0 -207
  120. package/hooks/native/auto-format.mjs +0 -176
  121. package/hooks/native/mcp-discovery.mjs +0 -168
  122. package/hooks/native/security-config.json +0 -38
  123. package/hooks/native/security-guard.mjs +0 -323
  124. package/hooks/native/session-context.mjs +0 -179
  125. package/hooks/native/session-end.mjs +0 -42
  126. package/hooks/native/utils.mjs +0 -62
  127. package/hooks/on-error.mjs +0 -129
  128. package/hooks/session-end.mjs +0 -185
  129. package/hooks/session-start.mjs +0 -154
  130. package/packs/angular/ARCHITECTURE.md +0 -814
  131. package/packs/angular/CLAUDE.md +0 -105
  132. package/packs/angular/agents/builder.md +0 -113
  133. package/packs/angular/agents/doctor.md +0 -187
  134. package/packs/angular/agents/migrator.md +0 -101
  135. package/packs/angular/agents/reviewer.md +0 -252
  136. package/packs/angular/agents-lite/builder.md +0 -65
  137. package/packs/angular/agents-lite/doctor.md +0 -64
  138. package/packs/angular/agents-lite/migrator.md +0 -75
  139. package/packs/angular/agents-lite/reviewer.md +0 -69
  140. package/packs/angular/skills/dev-create-component/SKILL.md +0 -56
  141. package/packs/angular/skills/dev-create-injectable/SKILL.md +0 -60
  142. package/packs/angular/skills/dev-create-module/SKILL.md +0 -49
  143. package/packs/angular/skills/dev-create-service/SKILL.md +0 -34
  144. package/packs/angular/skills/dev-create-test/SKILL.md +0 -78
  145. package/packs/angular/skills/dev-generate-types/SKILL.md +0 -37
  146. package/packs/angular/skills/docs-onboard/SKILL.md +0 -42
  147. package/packs/angular/skills/migration-migrate-component/SKILL.md +0 -42
  148. package/packs/angular/skills/migration-migrate-module/SKILL.md +0 -25
  149. package/packs/angular/skills/review-check-architecture/SKILL.md +0 -67
  150. package/packs/angular/skills/review-fix-violations/SKILL.md +0 -43
  151. package/packs/angular/skills/review-review/SKILL.md +0 -43
  152. package/packs/astro/ARCHITECTURE.md +0 -718
  153. package/packs/astro/CLAUDE.md +0 -106
  154. package/packs/astro/agents/builder.md +0 -123
  155. package/packs/astro/agents/doctor.md +0 -200
  156. package/packs/astro/agents/migrator.md +0 -105
  157. package/packs/astro/agents/reviewer.md +0 -253
  158. package/packs/astro/agents-lite/builder.md +0 -71
  159. package/packs/astro/agents-lite/doctor.md +0 -66
  160. package/packs/astro/agents-lite/migrator.md +0 -71
  161. package/packs/astro/agents-lite/reviewer.md +0 -70
  162. package/packs/astro/skills/dev-create-component/SKILL.md +0 -50
  163. package/packs/astro/skills/dev-create-island/SKILL.md +0 -63
  164. package/packs/astro/skills/dev-create-module/SKILL.md +0 -49
  165. package/packs/astro/skills/dev-create-service/SKILL.md +0 -34
  166. package/packs/astro/skills/dev-create-test/SKILL.md +0 -76
  167. package/packs/astro/skills/dev-generate-types/SKILL.md +0 -37
  168. package/packs/astro/skills/docs-onboard/SKILL.md +0 -51
  169. package/packs/astro/skills/migration-migrate-component/SKILL.md +0 -48
  170. package/packs/astro/skills/migration-migrate-module/SKILL.md +0 -25
  171. package/packs/astro/skills/review-check-architecture/SKILL.md +0 -72
  172. package/packs/astro/skills/review-fix-violations/SKILL.md +0 -43
  173. package/packs/astro/skills/review-review/SKILL.md +0 -45
  174. package/packs/nextjs/ARCHITECTURE.md +0 -1033
  175. package/packs/nextjs/CLAUDE.md +0 -106
  176. package/packs/nextjs/agents/builder.md +0 -132
  177. package/packs/nextjs/agents/doctor.md +0 -226
  178. package/packs/nextjs/agents/migrator.md +0 -101
  179. package/packs/nextjs/agents/reviewer.md +0 -243
  180. package/packs/nextjs/agents-lite/builder.md +0 -74
  181. package/packs/nextjs/agents-lite/doctor.md +0 -74
  182. package/packs/nextjs/agents-lite/migrator.md +0 -75
  183. package/packs/nextjs/agents-lite/reviewer.md +0 -73
  184. package/packs/nextjs/skills/dev-create-component/SKILL.md +0 -82
  185. package/packs/nextjs/skills/dev-create-hook/SKILL.md +0 -90
  186. package/packs/nextjs/skills/dev-create-module/SKILL.md +0 -63
  187. package/packs/nextjs/skills/dev-create-service/SKILL.md +0 -35
  188. package/packs/nextjs/skills/dev-create-test/SKILL.md +0 -106
  189. package/packs/nextjs/skills/dev-generate-types/SKILL.md +0 -37
  190. package/packs/nextjs/skills/docs-onboard/SKILL.md +0 -55
  191. package/packs/nextjs/skills/migration-migrate-component/SKILL.md +0 -58
  192. package/packs/nextjs/skills/migration-migrate-module/SKILL.md +0 -25
  193. package/packs/nextjs/skills/review-check-architecture/SKILL.md +0 -101
  194. package/packs/nextjs/skills/review-fix-violations/SKILL.md +0 -48
  195. package/packs/nextjs/skills/review-review/SKILL.md +0 -47
  196. package/packs/nuxt/ARCHITECTURE.md +0 -831
  197. package/packs/nuxt/CLAUDE.md +0 -111
  198. package/packs/nuxt/agents/builder.md +0 -120
  199. package/packs/nuxt/agents/doctor.md +0 -198
  200. package/packs/nuxt/agents/migrator.md +0 -101
  201. package/packs/nuxt/agents/reviewer.md +0 -255
  202. package/packs/nuxt/agents-lite/builder.md +0 -67
  203. package/packs/nuxt/agents-lite/doctor.md +0 -67
  204. package/packs/nuxt/agents-lite/migrator.md +0 -80
  205. package/packs/nuxt/agents-lite/reviewer.md +0 -71
  206. package/packs/nuxt/skills/dev-create-component/SKILL.md +0 -60
  207. package/packs/nuxt/skills/dev-create-composable/SKILL.md +0 -33
  208. package/packs/nuxt/skills/dev-create-module/SKILL.md +0 -49
  209. package/packs/nuxt/skills/dev-create-service/SKILL.md +0 -34
  210. package/packs/nuxt/skills/dev-create-test/SKILL.md +0 -61
  211. package/packs/nuxt/skills/dev-generate-types/SKILL.md +0 -37
  212. package/packs/nuxt/skills/docs-onboard/SKILL.md +0 -49
  213. package/packs/nuxt/skills/migration-migrate-component/SKILL.md +0 -48
  214. package/packs/nuxt/skills/migration-migrate-module/SKILL.md +0 -25
  215. package/packs/nuxt/skills/review-check-architecture/SKILL.md +0 -71
  216. package/packs/nuxt/skills/review-fix-violations/SKILL.md +0 -43
  217. package/packs/nuxt/skills/review-review/SKILL.md +0 -45
  218. package/packs/react/ARCHITECTURE.md +0 -991
  219. package/packs/react/CLAUDE.md +0 -102
  220. package/packs/react/agents/builder.md +0 -113
  221. package/packs/react/agents/doctor.md +0 -203
  222. package/packs/react/agents/migrator.md +0 -101
  223. package/packs/react/agents/reviewer.md +0 -252
  224. package/packs/react/agents-lite/builder.md +0 -65
  225. package/packs/react/agents-lite/doctor.md +0 -64
  226. package/packs/react/agents-lite/migrator.md +0 -74
  227. package/packs/react/agents-lite/reviewer.md +0 -69
  228. package/packs/react/skills/dev-create-component/SKILL.md +0 -53
  229. package/packs/react/skills/dev-create-hook/SKILL.md +0 -78
  230. package/packs/react/skills/dev-create-module/SKILL.md +0 -51
  231. package/packs/react/skills/dev-create-service/SKILL.md +0 -34
  232. package/packs/react/skills/dev-create-test/SKILL.md +0 -92
  233. package/packs/react/skills/dev-generate-types/SKILL.md +0 -37
  234. package/packs/react/skills/docs-onboard/SKILL.md +0 -42
  235. package/packs/react/skills/migration-migrate-component/SKILL.md +0 -44
  236. package/packs/react/skills/migration-migrate-module/SKILL.md +0 -25
  237. package/packs/react/skills/review-check-architecture/SKILL.md +0 -73
  238. package/packs/react/skills/review-fix-violations/SKILL.md +0 -45
  239. package/packs/react/skills/review-review/SKILL.md +0 -44
  240. package/packs/svelte/ARCHITECTURE.md +0 -975
  241. package/packs/svelte/CLAUDE.md +0 -102
  242. package/packs/svelte/agents/builder.md +0 -114
  243. package/packs/svelte/agents/doctor.md +0 -174
  244. package/packs/svelte/agents/migrator.md +0 -101
  245. package/packs/svelte/agents/reviewer.md +0 -238
  246. package/packs/svelte/agents-lite/builder.md +0 -66
  247. package/packs/svelte/agents-lite/doctor.md +0 -67
  248. package/packs/svelte/agents-lite/migrator.md +0 -82
  249. package/packs/svelte/agents-lite/reviewer.md +0 -70
  250. package/packs/svelte/skills/dev-create-component/SKILL.md +0 -77
  251. package/packs/svelte/skills/dev-create-module/SKILL.md +0 -59
  252. package/packs/svelte/skills/dev-create-service/SKILL.md +0 -35
  253. package/packs/svelte/skills/dev-create-store/SKILL.md +0 -94
  254. package/packs/svelte/skills/dev-create-test/SKILL.md +0 -98
  255. package/packs/svelte/skills/dev-generate-types/SKILL.md +0 -37
  256. package/packs/svelte/skills/docs-onboard/SKILL.md +0 -47
  257. package/packs/svelte/skills/migration-migrate-component/SKILL.md +0 -51
  258. package/packs/svelte/skills/migration-migrate-module/SKILL.md +0 -25
  259. package/packs/svelte/skills/review-check-architecture/SKILL.md +0 -79
  260. package/packs/svelte/skills/review-fix-violations/SKILL.md +0 -47
  261. package/packs/svelte/skills/review-review/SKILL.md +0 -45
  262. package/packs/vue/ARCHITECTURE.md +0 -798
  263. package/packs/vue/CLAUDE.md +0 -102
  264. package/packs/vue/agents/builder.md +0 -112
  265. package/packs/vue/agents/doctor.md +0 -185
  266. package/packs/vue/agents/migrator.md +0 -101
  267. package/packs/vue/agents/reviewer.md +0 -249
  268. package/packs/vue/agents-lite/builder.md +0 -65
  269. package/packs/vue/agents-lite/doctor.md +0 -63
  270. package/packs/vue/agents-lite/migrator.md +0 -73
  271. package/packs/vue/agents-lite/reviewer.md +0 -68
  272. package/packs/vue/skills/dev-create-component/SKILL.md +0 -58
  273. package/packs/vue/skills/dev-create-composable/SKILL.md +0 -31
  274. package/packs/vue/skills/dev-create-module/SKILL.md +0 -50
  275. package/packs/vue/skills/dev-create-service/SKILL.md +0 -34
  276. package/packs/vue/skills/dev-create-test/SKILL.md +0 -62
  277. package/packs/vue/skills/dev-generate-types/SKILL.md +0 -37
  278. package/packs/vue/skills/docs-onboard/SKILL.md +0 -42
  279. package/packs/vue/skills/migration-migrate-component/SKILL.md +0 -41
  280. package/packs/vue/skills/migration-migrate-module/SKILL.md +0 -25
  281. package/packs/vue/skills/review-check-architecture/SKILL.md +0 -73
  282. package/packs/vue/skills/review-fix-violations/SKILL.md +0 -42
  283. package/packs/vue/skills/review-review/SKILL.md +0 -43
  284. package/skills/audit/SKILL.md +0 -231
  285. package/skills/autofix/SKILL.md +0 -166
  286. package/skills/autopilot/SKILL.md +0 -286
  287. package/skills/brainstorm/SKILL.md +0 -298
  288. package/skills/checkpoint/SKILL.md +0 -217
  289. package/skills/codereview/SKILL.md +0 -268
  290. package/skills/commit/SKILL.md +0 -150
  291. package/skills/copywriting/SKILL.md +0 -218
  292. package/skills/cro/SKILL.md +0 -234
  293. package/skills/debug/SKILL.md +0 -210
  294. package/skills/design-review/SKILL.md +0 -217
  295. package/skills/discovery/SKILL.md +0 -218
  296. package/skills/estimate/SKILL.md +0 -154
  297. package/skills/finish/SKILL.md +0 -220
  298. package/skills/grill/SKILL.md +0 -270
  299. package/skills/health/SKILL.md +0 -251
  300. package/skills/improve-architecture/SKILL.md +0 -205
  301. package/skills/learn/SKILL.md +0 -260
  302. package/skills/lint/SKILL.md +0 -126
  303. package/skills/migrate-architecture/SKILL.md +0 -242
  304. package/skills/migrate-framework/SKILL.md +0 -172
  305. package/skills/onboard/SKILL.md +0 -168
  306. package/skills/plan/SKILL.md +0 -141
  307. package/skills/prd/SKILL.md +0 -241
  308. package/skills/recall/SKILL.md +0 -112
  309. package/skills/remember/SKILL.md +0 -108
  310. package/skills/seo-audit/SKILL.md +0 -240
  311. package/skills/tdd/SKILL.md +0 -201
  312. package/skills/tutorial/SKILL.md +0 -346
  313. package/skills/verify/SKILL.md +0 -168
  314. package/skills/worktree/SKILL.md +0 -168
  315. package/skills/write-skill/SKILL.md +0 -225
  316. package/templates/autopilot/PROMPT.md +0 -39
  317. package/templates/autopilot/README.md +0 -122
  318. package/templates/autopilot/devcontainer.json +0 -21
  319. package/templates/industry/ecommerce.md +0 -127
  320. package/templates/industry/fintech.md +0 -161
  321. package/templates/industry/saas.md +0 -134
  322. package/templates/session-memory.json +0 -48
  323. package/templates/skill-template/SKILL.md +0 -90
@@ -1,242 +0,0 @@
1
- ---
2
- name: migrate-architecture
3
- description: "Use when transforming a project's architecture pattern - e.g., Flat to Modular, MVC to Clean Architecture, Monolith to Modular Monolith."
4
- user-invocable: true
5
- argument-hint: "[current-architecture] to [target-architecture] [variant: full|lite] [scope: file|module|project]"
6
- allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
- ---
8
-
9
- # /migrate-architecture - Architecture Pattern Migration
10
-
11
- Migrate a project's architecture from one pattern to another while preserving all functionality.
12
-
13
- **Arguments:** $ARGUMENTS (e.g., "flat to modular full project", "mvc to clean lite src/modules/auth")
14
-
15
- ## Supported Architecture Patterns
16
-
17
- ### Frontend
18
-
19
- | Pattern | Description |
20
- |---------|-------------|
21
- | Flat / Component-Driven | Single components/ dir, minimal structure |
22
- | Modular (Feature-Based) | Vertical slicing by feature with services/adapters/types |
23
- | Feature-Sliced Design (FSD) | Strict layered: app > pages > features > entities > shared |
24
- | Atomic Design | Components by granularity: atoms > molecules > organisms |
25
- | Clean Architecture | Domain > Use Cases > Adapters > Frameworks |
26
- | Hexagonal (Ports & Adapters) | Core with ports, infrastructure in adapters |
27
-
28
- ### Backend / Fullstack
29
-
30
- | Pattern | Description |
31
- |---------|-------------|
32
- | MVC / Layered | Horizontal: controllers, services, repositories |
33
- | Modular Monolith | Single deployment, strict module boundaries |
34
- | Clean Architecture | Concentric layers, dependency rule inward |
35
- | Hexagonal | Ports & Adapters, domain isolated |
36
- | DDD | Bounded contexts, aggregates, domain events |
37
- | CQRS | Separate command/query paths |
38
- | Event-Driven | Async communication via events |
39
- | Microservices | Independent services, own databases |
40
-
41
- ### Variants
42
-
43
- | Variant | Description |
44
- |---------|-------------|
45
- | **Full** | Complete implementation with all layers and patterns |
46
- | **Lite (Simplified)** | Fewer layers, same principles. For smaller teams |
47
-
48
- ## Workflow
49
-
50
- ### Phase 1: Assessment
51
-
52
- 1. **Read** `docs/ARCHITECTURE.md` if it exists
53
- 2. **Scan** the project structure:
54
- - List all directories under `src/` (or root if no `src/`)
55
- - Identify current architecture pattern by matching directory names
56
- - Count modules/features/components
57
- - Check for barrel exports (index.ts)
58
- - Check import patterns between directories
59
- 3. **Identify** the current architecture pattern and confidence level
60
- 4. **Report** findings:
61
-
62
- ```text
63
- ── Architecture Assessment ──
64
- Current: [detected pattern] (confidence: high/medium/low)
65
- Target: [requested pattern] ([variant])
66
- Scope: [project | specific module/path]
67
- Estimated files to move: X
68
- Estimated files to create: X
69
- Risk: low/medium/high
70
- ```
71
-
72
- 5. **Ask** for confirmation before proceeding
73
-
74
- ### Phase 2: Planning
75
-
76
- 1. **Generate** the target directory structure based on:
77
- - Target architecture pattern
78
- - Detected framework (React, Vue, Next.js, etc.)
79
- - Chosen variant (Full or Lite)
80
- 2. **Map** existing files to their new locations:
81
- - Components → appropriate layer/module
82
- - Services → service layer or domain layer
83
- - Types → types layer
84
- - Tests → co-located __tests__/
85
- - Utils/Helpers → shared/
86
- 3. **Identify** new files to create:
87
- - Barrel exports (index.ts) per module
88
- - Adapter layer (if Full variant)
89
- - Type separation (.types.ts + .contracts.ts for Full)
90
- 4. **Create** migration plan with ordered steps:
91
- - Phase 2a: Create target directory structure
92
- - Phase 2b: Move files (least coupled first)
93
- - Phase 2c: Create new files (barrel exports, adapters)
94
- - Phase 2d: Update imports
95
- - Phase 2e: Validate
96
-
97
- ### Phase 3: Execution
98
-
99
- Execute the migration plan step by step:
100
-
101
- 1. **Create** target directory structure (mkdir -p)
102
- 2. **Move** files one module at a time:
103
- - Start with the LEAST coupled module
104
- - Move component files
105
- - Move service files
106
- - Move type files
107
- - Move test files
108
- 3. **Create** new architectural files:
109
- - Barrel exports (index.ts) for each module
110
- - Adapter files (if migrating to Modular Full, Clean, or Hexagonal)
111
- - Type separation files (.types.ts + .contracts.ts)
112
- 4. **Update** all import paths:
113
- - Use Grep to find all imports referencing moved files
114
- - Update each import to the new path
115
- - Use barrel exports where possible
116
- 5. **Generate** or update `docs/ARCHITECTURE.md` for the target pattern
117
-
118
- ### Phase 4: Validation
119
-
120
- 1. **Check** directory structure matches target pattern
121
- 2. **Verify** no broken imports:
122
- ```bash
123
- npx tsc --noEmit 2>&1 | head -50
124
- ```
125
- 3. **Validate** import rules:
126
- - Modules don't import from each other (Modular)
127
- - Dependencies point inward (Clean/Hexagonal)
128
- - FSD layers import top-down only
129
- 4. **Run** tests if they exist:
130
- ```bash
131
- npm test 2>&1 | tail -20
132
- ```
133
- 5. **Report** results:
134
-
135
- ```text
136
- ── Architecture Migration Complete ──
137
- From: [source pattern]
138
- To: [target pattern] ([variant])
139
-
140
- Files moved: X
141
- Files created: X
142
- Imports updated: X
143
- Barrel exports created: X
144
-
145
- Validation:
146
- TypeScript: ✓ compiles
147
- Import rules: ✓ no violations
148
- Tests: ✓ passing (or N/A)
149
-
150
- docs/ARCHITECTURE.md: ✓ generated
151
- ```
152
-
153
- ## Migration Strategies by Pattern
154
-
155
- ### Flat → Modular
156
-
157
- 1. Group components by domain/feature
158
- 2. Create `modules/[feature]/components/` for each group
159
- 3. Move related services, types into module
160
- 4. Create index.ts for each module
161
- 5. Move shared components to `shared/components/`
162
-
163
- ### MVC → Modular
164
-
165
- 1. For each controller+service pair, create a module
166
- 2. Move controller logic to module's hooks/composables
167
- 3. Move models to module's types/
168
- 4. Create service layer in each module
169
- 5. Move shared middleware to shared/
170
-
171
- ### MVC → Clean Architecture
172
-
173
- 1. Extract domain entities (pure business objects, no framework deps)
174
- 2. Create use-case classes for each business operation
175
- 3. Define port interfaces for external dependencies
176
- 4. Move database/HTTP code to infrastructure/ as adapter implementations
177
- 5. Wire use cases to ports in the composition root
178
-
179
- ### Modular → Clean Architecture
180
-
181
- 1. For each module, add domain/ and application/ sub-layers
182
- 2. Extract entities from services into domain/entities/
183
- 3. Create use-cases from service methods
184
- 4. Define port interfaces for external deps
185
- 5. Move HTTP/DB code to infrastructure/
186
-
187
- ### Modular → Hexagonal
188
-
189
- 1. Create core/ with domain/ and ports/
190
- 2. Extract entities to core/domain/
191
- 3. Define driving ports (use case interfaces) in core/ports/in/
192
- 4. Define driven ports (repository interfaces) in core/ports/out/
193
- 5. Move components to adapters/in/web/
194
- 6. Move HTTP/DB to adapters/out/
195
-
196
- ### Modular → Feature-Sliced Design
197
-
198
- 1. Map modules to FSD layers:
199
- - Shared components → shared/ui/
200
- - Feature-specific → features/[feature]/
201
- - Business entities → entities/[entity]/
202
- - Page compositions → pages/
203
- 2. Enforce top-down import rules
204
- 3. Split cross-cutting features into widgets/
205
-
206
- ### Modular → DDD
207
-
208
- 1. Identify bounded contexts from modules
209
- 2. Add aggregates/ with aggregate roots
210
- 3. Extract value objects from entity properties
211
- 4. Create domain events for state changes
212
- 5. Add command/query handlers in application layer
213
-
214
- ### Any → Modular Monolith
215
-
216
- 1. Start with Modular structure
217
- 2. Add domain/application/infrastructure layers per module
218
- 3. Enforce module boundaries with barrel exports
219
- 4. Validate no cross-module internal imports
220
- 5. Each module = potential future microservice
221
-
222
- ## Anti-Patterns to Avoid
223
-
224
- | Mistake | Correct Approach |
225
- |---------|-----------------|
226
- | Moving files without updating imports | Use TypeScript compiler to verify after each move |
227
- | Creating empty architectural layers | Only create layers with actual content |
228
- | Migrating everything at once | One module at a time, least coupled first |
229
- | Skipping barrel exports | Always create index.ts - it enforces boundaries |
230
- | Copying patterns blindly | Adapt to the project's actual needs (Full vs Lite) |
231
- | Ignoring existing tests | Move tests alongside their source files |
232
-
233
- ## Rules
234
-
235
- 1. ALWAYS assess before migrating - understand current state first
236
- 2. NEVER migrate without user confirmation
237
- 3. ONE module at a time - never parallel moves
238
- 4. VALIDATE after each module migration (TypeScript + imports)
239
- 5. PRESERVE all existing tests (move them, don't delete)
240
- 6. CREATE docs/ARCHITECTURE.md for the target pattern
241
- 7. USE the appropriate variant (Full for established teams, Lite for small teams)
242
- 8. If TypeScript errors appear, FIX them before continuing
@@ -1,172 +0,0 @@
1
- ---
2
- name: migrate-framework
3
- description: "Use when switching a project or component between frameworks - React to Vue, Vue to Svelte, or any supported framework pair."
4
- user-invocable: true
5
- argument-hint: "[source-framework] to [target-framework] [file-or-directory]"
6
- allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
- ---
8
-
9
- # /migrate-framework - Cross-Framework Migration
10
-
11
- Migrate code from one framework to another while preserving functionality.
12
-
13
- **Arguments:** $ARGUMENTS (e.g., "react to vue src/components/Button.tsx")
14
-
15
- ## Supported Migrations
16
-
17
- | From | To | Status |
18
- |------|----|--------|
19
- | React | Vue 3 | Full |
20
- | React | Svelte | Full |
21
- | Vue 2 | Vue 3 | Full |
22
- | Vue 3 | React | Full |
23
- | Vue 3 | Svelte | Full |
24
- | Angular | React | Partial |
25
- | Angular | Vue 3 | Partial |
26
-
27
- ## Workflow
28
-
29
- ### Phase 1: Analysis
30
-
31
- 1. Parse source framework code
32
- 2. Identify:
33
- - Component structure
34
- - Props and state
35
- - Lifecycle hooks
36
- - Event handlers
37
- - Computed values
38
- - Side effects
39
-
40
- ### Phase 2: Mapping
41
-
42
- #### React → Vue 3
43
-
44
- | React | Vue 3 |
45
- |-------|-------|
46
- | `useState` | `ref()` / `reactive()` |
47
- | `useEffect` | `onMounted`, `watch` |
48
- | `useMemo` | `computed()` |
49
- | `useCallback` | Regular function |
50
- | `useContext` | `provide/inject` |
51
- | `props` | `defineProps()` |
52
- | `children` | `<slot />` |
53
- | `className` | `class` |
54
- | `onClick` | `@click` |
55
-
56
- ```typescript
57
- // React
58
- function Button({ label, onClick }) {
59
- const [count, setCount] = useState(0)
60
-
61
- useEffect(() => {
62
- console.log('mounted')
63
- }, [])
64
-
65
- return (
66
- <button className="btn" onClick={() => setCount(c => c + 1)}>
67
- {label}: {count}
68
- </button>
69
- )
70
- }
71
-
72
- // Vue 3
73
- <script setup lang="ts">
74
- import { ref, onMounted } from 'vue'
75
-
76
- const props = defineProps<{ label: string }>()
77
- const emit = defineEmits<{ click: [] }>()
78
-
79
- const count = ref(0)
80
-
81
- onMounted(() => {
82
- console.log('mounted')
83
- })
84
- </script>
85
-
86
- <template>
87
- <button class="btn" @click="count++">
88
- {{ label }}: {{ count }}
89
- </button>
90
- </template>
91
- ```
92
-
93
- #### Vue 3 → React
94
-
95
- | Vue 3 | React |
96
- |-------|-------|
97
- | `ref()` | `useState` |
98
- | `reactive()` | `useState` with object |
99
- | `computed()` | `useMemo` |
100
- | `watch` | `useEffect` |
101
- | `onMounted` | `useEffect(fn, [])` |
102
- | `provide/inject` | `useContext` |
103
- | `<slot />` | `children` |
104
- | `v-if` | `{condition && ...}` |
105
- | `v-for` | `.map()` |
106
- | `@click` | `onClick` |
107
-
108
- #### React → Svelte
109
-
110
- | React | Svelte |
111
- |-------|--------|
112
- | `useState` | `let variable` |
113
- | `useEffect` | `onMount`, `$:` |
114
- | `useMemo` | `$: derived` |
115
- | `props` | `export let` |
116
- | `children` | `<slot />` |
117
- | `className` | `class` |
118
- | `onClick` | `on:click` |
119
-
120
- ### Phase 3: Migration
121
-
122
- 1. Create target file structure
123
- 2. Convert component syntax
124
- 3. Migrate state management
125
- 4. Update imports
126
- 5. Convert templates/JSX
127
- 6. Adapt styling approach
128
-
129
- ### Phase 4: Validation
130
-
131
- 1. Check TypeScript types
132
- 2. Verify props match
133
- 3. Test component renders
134
- 4. Compare behavior
135
-
136
- ## Output
137
-
138
- ```text
139
- ──── Migration Complete ────
140
-
141
- Source: React (src/components/Button.tsx)
142
- Target: Vue 3 (src/components/Button.vue)
143
-
144
- Conversions:
145
- ✓ useState → ref (2 instances)
146
- ✓ useEffect → onMounted (1 instance)
147
- ✓ Props interface → defineProps
148
- ✓ JSX → Vue template
149
- ✓ className → class
150
-
151
- Manual review needed:
152
- - Line 15: Complex useEffect dependency array
153
- - Line 23: Custom hook needs separate migration
154
-
155
- Files created:
156
- - src/components/Button.vue
157
- ```
158
-
159
- ## Rules
160
-
161
- 1. **Preserve behavior** - Functionality must match
162
- 2. **Type safety** - Maintain TypeScript types
163
- 3. **Idiomatic code** - Use target framework patterns
164
- 4. **Flag manual work** - Mark complex conversions
165
- 5. **Keep original** - Don't delete source files
166
-
167
- ## Limitations
168
-
169
- - Custom hooks require separate migration
170
- - Third-party component libraries may not have equivalents
171
- - Some patterns don't translate directly
172
- - CSS-in-JS needs manual adaptation
@@ -1,168 +0,0 @@
1
- ---
2
- name: onboard
3
- description: "Use when joining an unfamiliar codebase, starting on a new team, or needing to understand a project's architecture, conventions, and key modules quickly."
4
- user-invocable: true
5
- argument-hint: "[path or focus area]"
6
- allowed-tools: Read, Bash, Glob, Grep
7
- ---
8
-
9
- # /onboard - Codebase Onboarding
10
-
11
- Understand any codebase in minutes. Generates a developer guide with architecture, conventions, key modules, and getting-started instructions.
12
-
13
- **Target:** $ARGUMENTS
14
-
15
- ## When to Use
16
-
17
- - First day on a new project or team
18
- - Picking up an open-source project for the first time
19
- - Reviewing a project before a technical interview
20
- - Before contributing to an unfamiliar repo
21
- - When documentation is missing or outdated
22
- - NOT for: projects you already know well (use `@scout` for quick checks instead)
23
-
24
- ## Workflow
25
-
26
- ### Step 1: Project Discovery
27
-
28
- Scan the project root:
29
-
30
- ```
31
- Read: package.json / pyproject.toml / go.mod / Cargo.toml
32
- Read: README.md (if exists)
33
- Read: ARCHITECTURE.md / CLAUDE.md / CONTRIBUTING.md (if exist)
34
- Scan: Top-level directory structure
35
- ```
36
-
37
- Extract:
38
- - Project name and description
39
- - Language and framework
40
- - Package manager and scripts
41
- - Entry points
42
-
43
- ### Step 2: Architecture Mapping
44
-
45
- Map the project structure:
46
-
47
- ```
48
- Identify:
49
- - Source root (src/, app/, lib/)
50
- - Module/feature boundaries
51
- - Shared utilities
52
- - Configuration files
53
- - Test structure
54
- - CI/CD setup
55
- ```
56
-
57
- Generate architecture diagram:
58
-
59
- ```
60
- src/
61
- ├── modules/ → Feature modules (users, orders, products)
62
- │ └── [module]/
63
- │ ├── types/ → TypeScript interfaces
64
- │ ├── services/ → Business logic
65
- │ ├── hooks/ → State management
66
- │ └── components/ → UI components
67
- ├── shared/ → Shared utilities
68
- ├── config/ → App configuration
69
- └── app/ → App entry and routing
70
- ```
71
-
72
- ### Step 3: Convention Detection
73
-
74
- Detect coding conventions by reading actual files:
75
-
76
- | Convention | How to Detect |
77
- |------------|---------------|
78
- | Naming | Read 3-5 files, check function/variable naming |
79
- | File structure | Map actual directory patterns |
80
- | State management | Find store/state imports (Redux, Zustand, Pinia, etc.) |
81
- | API layer | Find HTTP client usage (axios, fetch, etc.) |
82
- | Testing | Find test files, check framework (Jest, Vitest, etc.) |
83
- | Styling | Find CSS/styled imports (Tailwind, CSS Modules, etc.) |
84
- | Error handling | Find try/catch patterns, error boundaries |
85
- | Imports | Check for path aliases, barrel exports |
86
-
87
- ### Step 4: Key Module Analysis
88
-
89
- For each major module/feature:
90
-
91
- ```
92
- Module: [name]
93
- ├── Purpose: [what it does]
94
- ├── Files: [count]
95
- ├── Dependencies: [what it imports from]
96
- ├── Dependents: [what imports from it]
97
- ├── Entry point: [main file]
98
- └── Tests: [yes/no, coverage estimate]
99
- ```
100
-
101
- Focus on the 3-5 most important modules.
102
-
103
- ### Step 5: Developer Guide Generation
104
-
105
- Compile everything into an actionable guide.
106
-
107
- ## Verification Protocol
108
-
109
- **Before claiming onboarding is complete:**
110
-
111
- 1. Architecture diagram was generated from actual file structure (not assumed)
112
- 2. Conventions were detected from reading real code (not README claims)
113
- 3. At least 3 key modules were analyzed
114
- 4. Setup instructions were verified by checking scripts in package.json
115
- 5. If tests exist, the test command was identified
116
-
117
- ## Anti-Rationalization
118
-
119
- | Excuse | Reality |
120
- |--------|---------|
121
- | "README explains everything" | READMEs are often outdated. Verify against actual code. |
122
- | "Architecture is obvious" | Obvious to maintainers, not newcomers. Map it explicitly. |
123
- | "Too many files to analyze" | Focus on top 3-5 modules. Don't skip the mapping step. |
124
- | "No tests to analyze" | That IS the finding. Report it in the guide. |
125
- | "Conventions aren't consistent" | Document the inconsistencies. It's useful for the developer. |
126
-
127
- ## Rules
128
-
129
- 1. **Read actual code** - Never rely solely on README or documentation
130
- 2. **Map before explaining** - Architecture diagram first, then details
131
- 3. **Focus on key modules** - 3-5 most important, not all of them
132
- 4. **Detect, don't assume** - Conventions come from reading files, not guessing
133
- 5. **Be honest about gaps** - Missing tests, docs, or conventions are findings too
134
- 6. **Actionable output** - Every section should help the developer start working
135
-
136
- ## Output
137
-
138
- ```
139
- ──── /onboard ────
140
- Project: [name]
141
- Stack: [language + framework + key libraries]
142
-
143
- Architecture:
144
- [directory tree diagram]
145
-
146
- Conventions:
147
- Naming: [camelCase / snake_case / PascalCase]
148
- State: [Redux / Zustand / Pinia / Context]
149
- API: [axios / fetch / tRPC]
150
- Testing: [Jest / Vitest / Playwright]
151
- Styling: [Tailwind / CSS Modules / styled-components]
152
-
153
- Key Modules:
154
- 1. [module] - [purpose] ([X files])
155
- 2. [module] - [purpose] ([X files])
156
- 3. [module] - [purpose] ([X files])
157
-
158
- Getting Started:
159
- Install: [command]
160
- Dev: [command]
161
- Test: [command]
162
- Build: [command]
163
-
164
- Notes:
165
- - [important observations]
166
- - [potential gotchas]
167
- - [missing documentation areas]
168
- ```