@bonesofspring/ai-rules 0.2.14 → 0.2.15

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 (665) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/package.json +2 -1
  3. package/presets/_shared/core/agent-team/agent-team-intake.md +2 -2
  4. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +4 -4
  5. package/presets/_shared/core/architecture/feature-delivery-workflow.md +27 -27
  6. package/presets/_shared/core/architecture/reference-features.template.md +23 -23
  7. package/presets/_shared/core/meta/preset-layering.md +12 -12
  8. package/presets/_shared/core/meta/preset-no-cross-stack-leakage.md +1 -1
  9. package/presets/_shared/core/meta/preset-pr-checklist.md +6 -6
  10. package/presets/_shared/core/meta/preset-token-budget.md +3 -3
  11. package/presets/_shared/core/quality/code-quality-and-refactoring.md +19 -19
  12. package/presets/_shared/core/quality/design-guidance.md +54 -54
  13. package/presets/_shared/core/review/code-review-mr.md +4 -4
  14. package/presets/_shared/core/review/technical-retro.md +3 -3
  15. package/presets/claude/go/MCP.md +7 -7
  16. package/presets/claude/go/README.md +3 -3
  17. package/presets/claude/go/agents/README.md +2 -2
  18. package/presets/claude/go/agents/task-router.md +13 -13
  19. package/presets/claude/go/commands/README.md +8 -8
  20. package/presets/claude/go/commands/feature-continue.md +21 -21
  21. package/presets/claude/go/commands/feature-start.md +16 -16
  22. package/presets/claude/go/commands/task-continue.md +14 -14
  23. package/presets/claude/go/commands/task.md +32 -32
  24. package/presets/claude/go/commands/technical-retro.md +38 -38
  25. package/presets/claude/go/rules/architecture/boundaries.md +10 -10
  26. package/presets/claude/go/rules/stack/README.md +1 -1
  27. package/presets/claude/go/rules/stack/go-app-core.md +11 -11
  28. package/presets/claude/go/rules/tooling-and-review/README.md +1 -1
  29. package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +2 -2
  30. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +4 -4
  31. package/presets/claude/go/rules/tooling-and-review/code-quality.md +21 -20
  32. package/presets/claude/go/rules/tooling-and-review/code-review.md +4 -4
  33. package/presets/claude/go/rules/tooling-and-review/design-guidance.md +54 -54
  34. package/presets/claude/go/rules/tooling-and-review/post-change-test.md +1 -1
  35. package/presets/claude/go/rules/tooling-and-review/preset-layering.md +12 -13
  36. package/presets/claude/go/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -2
  37. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +6 -7
  38. package/presets/claude/go/rules/tooling-and-review/preset-token-budget.md +3 -4
  39. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +0 -1
  40. package/presets/claude/go/rules/tooling-and-review/technical-retro.md +3 -3
  41. package/presets/claude/go/team/README.md +1 -1
  42. package/presets/claude/ios-swift/CLAUDE.md +16 -16
  43. package/presets/claude/ios-swift/MCP.md +10 -8
  44. package/presets/claude/ios-swift/README.md +8 -8
  45. package/presets/claude/ios-swift/agents/README.md +11 -11
  46. package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
  47. package/presets/claude/ios-swift/agents/task-analyst.md +1 -1
  48. package/presets/claude/ios-swift/agents/task-router.md +18 -18
  49. package/presets/claude/ios-swift/commands/README.md +48 -10
  50. package/presets/claude/ios-swift/commands/feature-continue.md +9 -41
  51. package/presets/claude/ios-swift/commands/feature-start.md +19 -16
  52. package/presets/claude/ios-swift/commands/task-continue.md +14 -14
  53. package/presets/claude/ios-swift/commands/task.md +33 -33
  54. package/presets/claude/ios-swift/commands/technical-retro.md +61 -38
  55. package/presets/claude/ios-swift/rules/README.md +7 -7
  56. package/presets/claude/ios-swift/rules/api-and-data/README.md +1 -1
  57. package/presets/claude/ios-swift/rules/api-and-data/networking.md +31 -31
  58. package/presets/claude/ios-swift/rules/api-and-data/persistence.md +13 -13
  59. package/presets/claude/ios-swift/rules/architecture/README.md +1 -1
  60. package/presets/claude/ios-swift/rules/architecture/boundaries.md +20 -20
  61. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +31 -30
  62. package/presets/claude/ios-swift/rules/architecture/module-public-api.md +11 -11
  63. package/presets/claude/ios-swift/rules/architecture/reference-features.md +25 -22
  64. package/presets/claude/ios-swift/rules/stack/README.md +1 -1
  65. package/presets/claude/ios-swift/rules/stack/ios-app-core.md +10 -10
  66. package/presets/claude/ios-swift/rules/stack/swift-conventions.md +17 -17
  67. package/presets/claude/ios-swift/rules/testing/README.md +1 -1
  68. package/presets/claude/ios-swift/rules/testing/ui.md +27 -27
  69. package/presets/claude/ios-swift/rules/testing/unit.md +25 -25
  70. package/presets/claude/ios-swift/rules/tooling-and-review/README.md +5 -2
  71. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +2 -2
  72. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +51 -21
  73. package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +25 -24
  74. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +40 -39
  75. package/presets/claude/ios-swift/rules/tooling-and-review/design-guidance.md +54 -54
  76. package/presets/claude/ios-swift/rules/tooling-and-review/post-change-build.md +18 -18
  77. package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +12 -13
  78. package/presets/claude/ios-swift/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -2
  79. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +6 -7
  80. package/presets/claude/ios-swift/rules/tooling-and-review/preset-token-budget.md +3 -4
  81. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +0 -1
  82. package/presets/claude/ios-swift/rules/tooling-and-review/security-ios.md +14 -14
  83. package/presets/claude/ios-swift/rules/tooling-and-review/technical-retro.md +4 -4
  84. package/presets/claude/ios-swift/rules/tooling-and-review/xcode-tooling.md +11 -11
  85. package/presets/claude/ios-swift/rules/ui-and-accessibility/README.md +1 -1
  86. package/presets/claude/ios-swift/rules/ui-and-accessibility/navigation.md +13 -13
  87. package/presets/claude/ios-swift/rules/ui-and-accessibility/swiftui.md +39 -39
  88. package/presets/claude/ios-swift/rules/ui-and-accessibility/viewmodels.md +24 -24
  89. package/presets/claude/ios-swift/skills/README.md +3 -3
  90. package/presets/claude/ios-swift/team/README.md +6 -2
  91. package/presets/claude/java/MCP.md +5 -5
  92. package/presets/claude/java/agents/README.md +2 -2
  93. package/presets/claude/java/agents/task-router.md +13 -13
  94. package/presets/claude/java/commands/README.md +8 -8
  95. package/presets/claude/java/commands/feature-continue.md +21 -21
  96. package/presets/claude/java/commands/feature-start.md +16 -16
  97. package/presets/claude/java/commands/task-continue.md +14 -14
  98. package/presets/claude/java/commands/task.md +32 -32
  99. package/presets/claude/java/commands/technical-retro.md +38 -38
  100. package/presets/claude/java/rules/architecture/boundaries.md +10 -10
  101. package/presets/claude/java/rules/stack/README.md +1 -1
  102. package/presets/claude/java/rules/stack/java-app-core.md +9 -9
  103. package/presets/claude/java/rules/tooling-and-review/README.md +1 -1
  104. package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +2 -2
  105. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +4 -4
  106. package/presets/claude/java/rules/tooling-and-review/code-quality.md +21 -20
  107. package/presets/claude/java/rules/tooling-and-review/code-review.md +5 -4
  108. package/presets/claude/java/rules/tooling-and-review/design-guidance.md +55 -54
  109. package/presets/claude/java/rules/tooling-and-review/post-change-test.md +1 -1
  110. package/presets/claude/java/rules/tooling-and-review/preset-layering.md +12 -13
  111. package/presets/claude/java/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -2
  112. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +6 -7
  113. package/presets/claude/java/rules/tooling-and-review/preset-token-budget.md +3 -4
  114. package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +0 -1
  115. package/presets/claude/java/rules/tooling-and-review/technical-retro.md +3 -3
  116. package/presets/claude/java/team/README.md +1 -1
  117. package/presets/claude/mcp-ts/MCP.md +5 -5
  118. package/presets/claude/mcp-ts/agents/task-router.md +7 -7
  119. package/presets/claude/mcp-ts/commands/README.md +1 -1
  120. package/presets/claude/mcp-ts/commands/feature-continue.md +8 -8
  121. package/presets/claude/mcp-ts/commands/feature-start.md +17 -17
  122. package/presets/claude/mcp-ts/commands/task-continue.md +14 -14
  123. package/presets/claude/mcp-ts/commands/task.md +32 -32
  124. package/presets/claude/mcp-ts/commands/technical-retro.md +54 -54
  125. package/presets/claude/mcp-ts/rules/architecture/mcp-server-boundaries.md +2 -2
  126. package/presets/claude/mcp-ts/rules/stack/mcp-ts-app-core.md +9 -9
  127. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +3 -3
  128. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +4 -4
  129. package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +21 -20
  130. package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +5 -4
  131. package/presets/claude/mcp-ts/rules/tooling-and-review/design-guidance.md +55 -54
  132. package/presets/claude/mcp-ts/rules/tooling-and-review/post-change-test.md +1 -1
  133. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +12 -13
  134. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -2
  135. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +6 -7
  136. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-token-budget.md +3 -4
  137. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +0 -1
  138. package/presets/claude/mcp-ts/rules/tooling-and-review/technical-retro.md +3 -3
  139. package/presets/claude/next/CLAUDE.md +17 -17
  140. package/presets/claude/next/MCP.md +8 -8
  141. package/presets/claude/next/README.md +16 -16
  142. package/presets/claude/next/agents/README.md +19 -19
  143. package/presets/claude/next/agents/feature-developer.md +1 -1
  144. package/presets/claude/next/agents/task-analyst.md +1 -1
  145. package/presets/claude/next/agents/task-router.md +16 -16
  146. package/presets/claude/next/commands/README.md +9 -9
  147. package/presets/claude/next/commands/feature-continue.md +21 -21
  148. package/presets/claude/next/commands/feature-start.md +16 -16
  149. package/presets/claude/next/commands/task-continue.md +14 -14
  150. package/presets/claude/next/commands/task.md +33 -33
  151. package/presets/claude/next/commands/technical-retro.md +38 -38
  152. package/presets/claude/next/rules/README.md +12 -12
  153. package/presets/claude/next/rules/api-and-data/README.md +6 -6
  154. package/presets/claude/next/rules/api-and-data/api-services.md +42 -42
  155. package/presets/claude/next/rules/api-and-data/http-client.md +22 -21
  156. package/presets/claude/next/rules/api-and-data/store-rtk.md +60 -60
  157. package/presets/claude/next/rules/architecture/README.md +8 -8
  158. package/presets/claude/next/rules/architecture/architecture-boundaries-ui.md +6 -6
  159. package/presets/claude/next/rules/architecture/architecture-boundaries.md +44 -44
  160. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +39 -39
  161. package/presets/claude/next/rules/architecture/layer-barrel-exports.md +30 -29
  162. package/presets/claude/next/rules/architecture/public-imports.md +13 -13
  163. package/presets/claude/next/rules/architecture/reference-features.md +16 -16
  164. package/presets/claude/next/rules/stack/README.md +9 -9
  165. package/presets/claude/next/rules/stack/arrow-functions.md +7 -7
  166. package/presets/claude/next/rules/stack/navigation-router-ui.md +6 -6
  167. package/presets/claude/next/rules/stack/navigation-router.md +37 -37
  168. package/presets/claude/next/rules/stack/next-app-core.md +17 -17
  169. package/presets/claude/next/rules/stack/next-app-router.md +17 -17
  170. package/presets/claude/next/rules/stack/no-type-assertion.md +28 -28
  171. package/presets/claude/next/rules/stack/types-jsdoc.md +31 -20
  172. package/presets/claude/next/rules/testing/README.md +5 -5
  173. package/presets/claude/next/rules/testing/playwright-agents.md +1 -1
  174. package/presets/claude/next/rules/testing/tests-e2e-structure.md +48 -47
  175. package/presets/claude/next/rules/testing/tests-unit.md +50 -51
  176. package/presets/claude/next/rules/tooling-and-review/README.md +9 -9
  177. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +2 -2
  178. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +4 -4
  179. package/presets/claude/next/rules/tooling-and-review/code-quality.md +25 -24
  180. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +4 -4
  181. package/presets/claude/next/rules/tooling-and-review/design-guidance.md +54 -54
  182. package/presets/claude/next/rules/tooling-and-review/package-manager.md +7 -7
  183. package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +22 -22
  184. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +12 -13
  185. package/presets/claude/next/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -2
  186. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +6 -7
  187. package/presets/claude/next/rules/tooling-and-review/preset-token-budget.md +3 -4
  188. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +0 -1
  189. package/presets/claude/next/rules/tooling-and-review/technical-retro.md +4 -4
  190. package/presets/claude/next/rules/ui-and-accessibility/README.md +7 -7
  191. package/presets/claude/next/rules/ui-and-accessibility/css-property-order.md +3 -3
  192. package/presets/claude/next/rules/ui-and-accessibility/no-props-spread.md +18 -18
  193. package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +20 -20
  194. package/presets/claude/next/rules/ui-and-accessibility/react-ui.md +63 -63
  195. package/presets/claude/next/skills/README.md +4 -4
  196. package/presets/claude/next/skills/feature-delivery/SKILL.md +1 -1
  197. package/presets/claude/next/team/README.md +2 -2
  198. package/presets/claude/nuxt/CLAUDE.md +19 -19
  199. package/presets/claude/nuxt/MCP.md +8 -8
  200. package/presets/claude/nuxt/README.md +18 -18
  201. package/presets/claude/nuxt/agents/README.md +38 -31
  202. package/presets/claude/nuxt/agents/feature-developer.md +1 -1
  203. package/presets/claude/nuxt/agents/task-analyst.md +1 -1
  204. package/presets/claude/nuxt/agents/task-router.md +22 -22
  205. package/presets/claude/nuxt/commands/README.md +48 -10
  206. package/presets/claude/nuxt/commands/feature-continue.md +9 -41
  207. package/presets/claude/nuxt/commands/feature-start.md +19 -16
  208. package/presets/claude/nuxt/commands/task-continue.md +14 -14
  209. package/presets/claude/nuxt/commands/task.md +33 -33
  210. package/presets/claude/nuxt/commands/technical-retro.md +61 -38
  211. package/presets/claude/nuxt/rules/README.md +5 -5
  212. package/presets/claude/nuxt/rules/api-and-data/README.md +6 -6
  213. package/presets/claude/nuxt/rules/api-and-data/api-services.md +44 -43
  214. package/presets/claude/nuxt/rules/api-and-data/store-pinia.md +27 -26
  215. package/presets/claude/nuxt/rules/architecture/README.md +8 -8
  216. package/presets/claude/nuxt/rules/architecture/architecture-boundaries-ui.md +8 -7
  217. package/presets/claude/nuxt/rules/architecture/architecture-boundaries.md +59 -58
  218. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +45 -44
  219. package/presets/claude/nuxt/rules/architecture/layer-barrel-exports.md +32 -31
  220. package/presets/claude/nuxt/rules/architecture/public-imports.md +15 -14
  221. package/presets/claude/nuxt/rules/architecture/reference-features.md +18 -17
  222. package/presets/claude/nuxt/rules/stack/README.md +8 -8
  223. package/presets/claude/nuxt/rules/stack/navigation-router-ui.md +6 -6
  224. package/presets/claude/nuxt/rules/stack/navigation-router.md +37 -37
  225. package/presets/claude/nuxt/rules/stack/no-type-assertion.md +30 -29
  226. package/presets/claude/nuxt/rules/stack/nuxt-app-core.md +17 -16
  227. package/presets/claude/nuxt/rules/stack/types-jsdoc.md +23 -22
  228. package/presets/claude/nuxt/rules/testing/README.md +5 -5
  229. package/presets/claude/nuxt/rules/testing/tests-e2e-structure.md +45 -45
  230. package/presets/claude/nuxt/rules/testing/tests-unit.md +52 -52
  231. package/presets/claude/nuxt/rules/tooling-and-review/README.md +9 -9
  232. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +3 -2
  233. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
  234. package/presets/claude/nuxt/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -0
  235. package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +26 -24
  236. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +6 -5
  237. package/presets/claude/nuxt/rules/tooling-and-review/design-guidance.md +55 -54
  238. package/presets/claude/nuxt/rules/tooling-and-review/package-manager.md +9 -8
  239. package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +24 -23
  240. package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +13 -13
  241. package/presets/claude/nuxt/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -2
  242. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +7 -7
  243. package/presets/claude/nuxt/rules/tooling-and-review/preset-token-budget.md +3 -4
  244. package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +1 -1
  245. package/presets/claude/nuxt/rules/tooling-and-review/technical-retro.md +5 -4
  246. package/presets/claude/nuxt/rules/ui-and-accessibility/README.md +7 -7
  247. package/presets/claude/nuxt/rules/ui-and-accessibility/vue-ui.md +7 -6
  248. package/presets/claude/nuxt/skills/README.md +4 -4
  249. package/presets/claude/nuxt/skills/feature-delivery/SKILL.md +1 -1
  250. package/presets/claude/nuxt/team/README.md +8 -4
  251. package/presets/claude/php-hexagonal/MCP.md +7 -7
  252. package/presets/claude/php-hexagonal/agents/README.md +3 -3
  253. package/presets/claude/php-hexagonal/agents/task-router.md +12 -12
  254. package/presets/claude/php-hexagonal/commands/README.md +9 -9
  255. package/presets/claude/php-hexagonal/commands/feature-continue.md +21 -21
  256. package/presets/claude/php-hexagonal/commands/feature-start.md +16 -16
  257. package/presets/claude/php-hexagonal/commands/task-continue.md +14 -14
  258. package/presets/claude/php-hexagonal/commands/task.md +32 -32
  259. package/presets/claude/php-hexagonal/commands/technical-retro.md +38 -38
  260. package/presets/claude/php-hexagonal/rules/architecture/boundaries.md +11 -10
  261. package/presets/claude/php-hexagonal/rules/stack/README.md +1 -1
  262. package/presets/claude/php-hexagonal/rules/stack/php-app-core.md +11 -10
  263. package/presets/claude/php-hexagonal/rules/tooling-and-review/README.md +1 -1
  264. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +2 -2
  265. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +4 -4
  266. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +21 -21
  267. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +4 -4
  268. package/presets/claude/php-hexagonal/rules/tooling-and-review/design-guidance.md +54 -54
  269. package/presets/claude/php-hexagonal/rules/tooling-and-review/post-change-test.md +1 -1
  270. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +12 -13
  271. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -2
  272. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +6 -7
  273. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-token-budget.md +3 -4
  274. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +0 -1
  275. package/presets/claude/php-hexagonal/rules/tooling-and-review/technical-retro.md +3 -3
  276. package/presets/claude/php-hexagonal/team/README.md +1 -1
  277. package/presets/claude/php-laravel/agents/README.md +3 -3
  278. package/presets/claude/php-laravel/agents/task-router.md +14 -14
  279. package/presets/claude/php-laravel/commands/README.md +9 -9
  280. package/presets/claude/php-laravel/commands/feature-continue.md +21 -21
  281. package/presets/claude/php-laravel/commands/feature-start.md +16 -16
  282. package/presets/claude/php-laravel/commands/task-continue.md +14 -14
  283. package/presets/claude/php-laravel/commands/task.md +32 -32
  284. package/presets/claude/php-laravel/commands/technical-retro.md +38 -38
  285. package/presets/claude/php-laravel/rules/api-and-data/events-listeners.md +1 -1
  286. package/presets/claude/php-laravel/rules/architecture/boundaries.md +11 -11
  287. package/presets/claude/php-laravel/rules/stack/laravel-app-core.md +8 -8
  288. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +3 -2
  289. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +4 -4
  290. package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +21 -20
  291. package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +4 -5
  292. package/presets/claude/php-laravel/rules/tooling-and-review/design-guidance.md +54 -54
  293. package/presets/claude/php-laravel/rules/tooling-and-review/post-change-test.md +1 -1
  294. package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +13 -13
  295. package/presets/claude/php-laravel/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -2
  296. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +7 -7
  297. package/presets/claude/php-laravel/rules/tooling-and-review/preset-token-budget.md +4 -4
  298. package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +1 -1
  299. package/presets/claude/php-laravel/rules/tooling-and-review/technical-retro.md +4 -3
  300. package/presets/claude/php-laravel/team/README.md +1 -1
  301. package/presets/claude/svelte/CLAUDE.md +17 -17
  302. package/presets/claude/svelte/MCP.md +8 -8
  303. package/presets/claude/svelte/README.md +1 -1
  304. package/presets/claude/svelte/agents/README.md +37 -30
  305. package/presets/claude/svelte/agents/feature-developer.md +1 -1
  306. package/presets/claude/svelte/agents/task-analyst.md +1 -1
  307. package/presets/claude/svelte/agents/task-router.md +19 -18
  308. package/presets/claude/svelte/commands/README.md +48 -10
  309. package/presets/claude/svelte/commands/feature-continue.md +9 -41
  310. package/presets/claude/svelte/commands/feature-start.md +19 -16
  311. package/presets/claude/svelte/commands/task-continue.md +14 -14
  312. package/presets/claude/svelte/commands/task.md +33 -33
  313. package/presets/claude/svelte/commands/technical-retro.md +61 -38
  314. package/presets/claude/svelte/rules/README.md +2 -2
  315. package/presets/claude/svelte/rules/api-and-data/README.md +6 -6
  316. package/presets/claude/svelte/rules/api-and-data/api-services.md +14 -14
  317. package/presets/claude/svelte/rules/api-and-data/store-svelte.md +26 -26
  318. package/presets/claude/svelte/rules/architecture/README.md +8 -8
  319. package/presets/claude/svelte/rules/architecture/architecture-boundaries-ui.md +7 -7
  320. package/presets/claude/svelte/rules/architecture/architecture-boundaries.md +19 -19
  321. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +26 -26
  322. package/presets/claude/svelte/rules/architecture/layer-barrel-exports.md +31 -31
  323. package/presets/claude/svelte/rules/architecture/public-imports.md +8 -8
  324. package/presets/claude/svelte/rules/architecture/reference-features.md +18 -18
  325. package/presets/claude/svelte/rules/stack/README.md +8 -8
  326. package/presets/claude/svelte/rules/stack/navigation-router-ui.md +1 -1
  327. package/presets/claude/svelte/rules/stack/navigation-router.md +6 -6
  328. package/presets/claude/svelte/rules/stack/no-type-assertion.md +29 -29
  329. package/presets/claude/svelte/rules/stack/svelte-app-core.md +16 -16
  330. package/presets/claude/svelte/rules/stack/types-jsdoc.md +22 -22
  331. package/presets/claude/svelte/rules/testing/README.md +5 -5
  332. package/presets/claude/svelte/rules/testing/tests-e2e-structure.md +45 -46
  333. package/presets/claude/svelte/rules/testing/tests-unit.md +17 -17
  334. package/presets/claude/svelte/rules/tooling-and-review/README.md +9 -9
  335. package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +2 -2
  336. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +9 -9
  337. package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +25 -24
  338. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +5 -5
  339. package/presets/claude/svelte/rules/tooling-and-review/design-guidance.md +54 -54
  340. package/presets/claude/svelte/rules/tooling-and-review/package-manager.md +8 -8
  341. package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +23 -23
  342. package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +12 -13
  343. package/presets/claude/svelte/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -2
  344. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +6 -7
  345. package/presets/claude/svelte/rules/tooling-and-review/preset-token-budget.md +3 -4
  346. package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +0 -1
  347. package/presets/claude/svelte/rules/tooling-and-review/technical-retro.md +4 -4
  348. package/presets/claude/svelte/rules/ui-and-accessibility/README.md +7 -7
  349. package/presets/claude/svelte/rules/ui-and-accessibility/svelte-ui.md +6 -6
  350. package/presets/claude/svelte/skills/README.md +4 -4
  351. package/presets/claude/svelte/skills/feature-delivery/SKILL.md +1 -1
  352. package/presets/claude/svelte/team/README.md +8 -4
  353. package/presets/cursor/go/AGENTS.md +10 -10
  354. package/presets/cursor/go/MCP.md +7 -7
  355. package/presets/cursor/go/README.md +4 -4
  356. package/presets/cursor/go/agents/README.md +3 -3
  357. package/presets/cursor/go/agents/task-router.md +13 -13
  358. package/presets/cursor/go/commands/README.md +23 -23
  359. package/presets/cursor/go/commands/feature-continue.md +8 -8
  360. package/presets/cursor/go/commands/feature-start.md +17 -17
  361. package/presets/cursor/go/commands/task-continue.md +14 -14
  362. package/presets/cursor/go/commands/task.md +32 -32
  363. package/presets/cursor/go/commands/technical-retro.md +49 -49
  364. package/presets/cursor/go/rules/README.md +3 -3
  365. package/presets/cursor/go/rules/agent-team-intake.mdc +2 -2
  366. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +4 -4
  367. package/presets/cursor/go/rules/architecture-boundaries.mdc +10 -10
  368. package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +21 -20
  369. package/presets/cursor/go/rules/code-review-mr.mdc +4 -4
  370. package/presets/cursor/go/rules/design-guidance.mdc +54 -54
  371. package/presets/cursor/go/rules/go-app-core.mdc +11 -11
  372. package/presets/cursor/go/rules/post-change-test.mdc +1 -1
  373. package/presets/cursor/go/rules/preset-layering.mdc +12 -13
  374. package/presets/cursor/go/rules/preset-no-cross-stack-leakage.mdc +1 -2
  375. package/presets/cursor/go/rules/preset-pr-checklist.mdc +6 -7
  376. package/presets/cursor/go/rules/preset-token-budget.mdc +3 -4
  377. package/presets/cursor/go/rules/preset-twin-sync.mdc +0 -1
  378. package/presets/cursor/go/rules/technical-retro.mdc +3 -3
  379. package/presets/cursor/go/team/README.md +1 -1
  380. package/presets/cursor/ios-swift/AGENTS.md +20 -20
  381. package/presets/cursor/ios-swift/MCP.md +8 -8
  382. package/presets/cursor/ios-swift/README.md +9 -9
  383. package/presets/cursor/ios-swift/agents/README.md +7 -7
  384. package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
  385. package/presets/cursor/ios-swift/agents/task-analyst.md +1 -1
  386. package/presets/cursor/ios-swift/agents/task-router.md +16 -16
  387. package/presets/cursor/ios-swift/commands/README.md +23 -23
  388. package/presets/cursor/ios-swift/commands/feature-continue.md +8 -8
  389. package/presets/cursor/ios-swift/commands/feature-start.md +17 -17
  390. package/presets/cursor/ios-swift/commands/task-continue.md +14 -14
  391. package/presets/cursor/ios-swift/commands/task.md +33 -33
  392. package/presets/cursor/ios-swift/commands/technical-retro.md +50 -50
  393. package/presets/cursor/ios-swift/rules/README.md +23 -23
  394. package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +2 -2
  395. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +2 -2
  396. package/presets/cursor/ios-swift/rules/architecture-boundaries.mdc +20 -20
  397. package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +25 -24
  398. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +40 -40
  399. package/presets/cursor/ios-swift/rules/design-guidance.mdc +54 -54
  400. package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +30 -30
  401. package/presets/cursor/ios-swift/rules/ios-app-core.mdc +10 -10
  402. package/presets/cursor/ios-swift/rules/module-public-api.mdc +11 -11
  403. package/presets/cursor/ios-swift/rules/navigation-coordinators.mdc +13 -13
  404. package/presets/cursor/ios-swift/rules/networking-services.mdc +31 -31
  405. package/presets/cursor/ios-swift/rules/persistence-data.mdc +13 -13
  406. package/presets/cursor/ios-swift/rules/post-change-build.mdc +18 -18
  407. package/presets/cursor/ios-swift/rules/preset-layering.mdc +12 -13
  408. package/presets/cursor/ios-swift/rules/preset-no-cross-stack-leakage.mdc +1 -2
  409. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +6 -7
  410. package/presets/cursor/ios-swift/rules/preset-token-budget.mdc +3 -4
  411. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +0 -1
  412. package/presets/cursor/ios-swift/rules/reference-features.mdc +22 -22
  413. package/presets/cursor/ios-swift/rules/security-ios.mdc +14 -14
  414. package/presets/cursor/ios-swift/rules/state-and-viewmodels.mdc +24 -24
  415. package/presets/cursor/ios-swift/rules/swift-conventions.mdc +17 -17
  416. package/presets/cursor/ios-swift/rules/swiftui-ui.mdc +39 -39
  417. package/presets/cursor/ios-swift/rules/technical-retro.mdc +4 -4
  418. package/presets/cursor/ios-swift/rules/tests-ui.mdc +27 -26
  419. package/presets/cursor/ios-swift/rules/tests-unit.mdc +25 -25
  420. package/presets/cursor/ios-swift/rules/xcode-tooling.mdc +11 -11
  421. package/presets/cursor/ios-swift/skills/README.md +3 -3
  422. package/presets/cursor/ios-swift/team/README.md +1 -1
  423. package/presets/cursor/java/AGENTS.md +10 -10
  424. package/presets/cursor/java/MCP.md +6 -6
  425. package/presets/cursor/java/agents/README.md +3 -3
  426. package/presets/cursor/java/agents/task-router.md +13 -13
  427. package/presets/cursor/java/commands/README.md +23 -23
  428. package/presets/cursor/java/commands/feature-continue.md +8 -8
  429. package/presets/cursor/java/commands/feature-start.md +17 -17
  430. package/presets/cursor/java/commands/task-continue.md +14 -14
  431. package/presets/cursor/java/commands/task.md +32 -32
  432. package/presets/cursor/java/commands/technical-retro.md +49 -49
  433. package/presets/cursor/java/rules/README.md +2 -2
  434. package/presets/cursor/java/rules/agent-team-intake.mdc +2 -2
  435. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +4 -4
  436. package/presets/cursor/java/rules/architecture-boundaries.mdc +10 -10
  437. package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +21 -20
  438. package/presets/cursor/java/rules/code-review-mr.mdc +4 -4
  439. package/presets/cursor/java/rules/design-guidance.mdc +54 -54
  440. package/presets/cursor/java/rules/java-app-core.mdc +9 -9
  441. package/presets/cursor/java/rules/post-change-test.mdc +1 -1
  442. package/presets/cursor/java/rules/preset-layering.mdc +12 -13
  443. package/presets/cursor/java/rules/preset-no-cross-stack-leakage.mdc +1 -2
  444. package/presets/cursor/java/rules/preset-pr-checklist.mdc +6 -7
  445. package/presets/cursor/java/rules/preset-token-budget.mdc +3 -4
  446. package/presets/cursor/java/rules/preset-twin-sync.mdc +0 -1
  447. package/presets/cursor/java/rules/technical-retro.mdc +3 -3
  448. package/presets/cursor/java/team/README.md +1 -1
  449. package/presets/cursor/mcp-ts/AGENTS.md +6 -6
  450. package/presets/cursor/mcp-ts/MCP.md +5 -5
  451. package/presets/cursor/mcp-ts/agents/task-router.md +7 -7
  452. package/presets/cursor/mcp-ts/commands/README.md +1 -1
  453. package/presets/cursor/mcp-ts/commands/feature-continue.md +8 -8
  454. package/presets/cursor/mcp-ts/commands/feature-start.md +17 -17
  455. package/presets/cursor/mcp-ts/commands/task-continue.md +14 -14
  456. package/presets/cursor/mcp-ts/commands/task.md +32 -32
  457. package/presets/cursor/mcp-ts/commands/technical-retro.md +50 -50
  458. package/presets/cursor/mcp-ts/rules/README.md +1 -1
  459. package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +3 -3
  460. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +4 -4
  461. package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +21 -20
  462. package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +5 -4
  463. package/presets/cursor/mcp-ts/rules/design-guidance.mdc +55 -54
  464. package/presets/cursor/mcp-ts/rules/mcp-server-boundaries.mdc +2 -2
  465. package/presets/cursor/mcp-ts/rules/mcp-ts-app-core.mdc +9 -9
  466. package/presets/cursor/mcp-ts/rules/post-change-test.mdc +1 -1
  467. package/presets/cursor/mcp-ts/rules/preset-layering.mdc +12 -13
  468. package/presets/cursor/mcp-ts/rules/preset-no-cross-stack-leakage.mdc +1 -2
  469. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +6 -7
  470. package/presets/cursor/mcp-ts/rules/preset-token-budget.mdc +3 -4
  471. package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +0 -1
  472. package/presets/cursor/mcp-ts/rules/technical-retro.mdc +3 -3
  473. package/presets/cursor/next/AGENTS.md +15 -15
  474. package/presets/cursor/next/MCP.md +9 -9
  475. package/presets/cursor/next/README.md +9 -9
  476. package/presets/cursor/next/agents/README.md +22 -22
  477. package/presets/cursor/next/agents/feature-developer.md +1 -1
  478. package/presets/cursor/next/agents/task-analyst.md +1 -1
  479. package/presets/cursor/next/agents/task-router.md +16 -16
  480. package/presets/cursor/next/commands/README.md +22 -22
  481. package/presets/cursor/next/commands/feature-continue.md +8 -8
  482. package/presets/cursor/next/commands/feature-start.md +17 -17
  483. package/presets/cursor/next/commands/task-continue.md +14 -14
  484. package/presets/cursor/next/commands/task.md +33 -33
  485. package/presets/cursor/next/commands/technical-retro.md +49 -49
  486. package/presets/cursor/next/rules/README.md +52 -52
  487. package/presets/cursor/next/rules/agent-team-intake.mdc +2 -2
  488. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +4 -4
  489. package/presets/cursor/next/rules/api-services.mdc +43 -43
  490. package/presets/cursor/next/rules/architecture-boundaries-ui.mdc +7 -7
  491. package/presets/cursor/next/rules/architecture-boundaries.mdc +45 -45
  492. package/presets/cursor/next/rules/arrow-functions.mdc +8 -8
  493. package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +25 -24
  494. package/presets/cursor/next/rules/code-review-mr.mdc +5 -5
  495. package/presets/cursor/next/rules/css-property-order-stylelint.mdc +4 -4
  496. package/presets/cursor/next/rules/design-guidance.mdc +54 -54
  497. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +43 -43
  498. package/presets/cursor/next/rules/http-client.mdc +23 -22
  499. package/presets/cursor/next/rules/layer-barrel-exports.mdc +31 -30
  500. package/presets/cursor/next/rules/navigation-router-stack.mdc +37 -37
  501. package/presets/cursor/next/rules/navigation-router-ui.mdc +7 -7
  502. package/presets/cursor/next/rules/next-app-core.mdc +16 -16
  503. package/presets/cursor/next/rules/next-app-router.mdc +17 -17
  504. package/presets/cursor/next/rules/no-props-spread.mdc +20 -20
  505. package/presets/cursor/next/rules/no-type-assertion-as-import-export.mdc +29 -29
  506. package/presets/cursor/next/rules/package-manager.mdc +8 -8
  507. package/presets/cursor/next/rules/post-change-lint.mdc +22 -22
  508. package/presets/cursor/next/rules/preset-layering.mdc +12 -13
  509. package/presets/cursor/next/rules/preset-no-cross-stack-leakage.mdc +1 -2
  510. package/presets/cursor/next/rules/preset-pr-checklist.mdc +6 -7
  511. package/presets/cursor/next/rules/preset-token-budget.mdc +3 -4
  512. package/presets/cursor/next/rules/preset-twin-sync.mdc +0 -1
  513. package/presets/cursor/next/rules/public-imports.mdc +14 -14
  514. package/presets/cursor/next/rules/react-a11y-coding.mdc +21 -21
  515. package/presets/cursor/next/rules/react-ui.mdc +66 -66
  516. package/presets/cursor/next/rules/reference-features.mdc +17 -17
  517. package/presets/cursor/next/rules/store-rtk.mdc +60 -60
  518. package/presets/cursor/next/rules/technical-retro.mdc +4 -4
  519. package/presets/cursor/next/rules/tests-e2e-structure.mdc +46 -46
  520. package/presets/cursor/next/rules/tests-unit.mdc +51 -52
  521. package/presets/cursor/next/rules/types-jsdoc.mdc +29 -22
  522. package/presets/cursor/next/skills/feature-delivery/SKILL.md +1 -1
  523. package/presets/cursor/next/team/README.md +2 -2
  524. package/presets/cursor/nuxt/AGENTS.md +15 -15
  525. package/presets/cursor/nuxt/MCP.md +9 -9
  526. package/presets/cursor/nuxt/README.md +10 -10
  527. package/presets/cursor/nuxt/agents/README.md +30 -30
  528. package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
  529. package/presets/cursor/nuxt/agents/task-analyst.md +1 -1
  530. package/presets/cursor/nuxt/agents/task-router.md +16 -16
  531. package/presets/cursor/nuxt/commands/README.md +24 -24
  532. package/presets/cursor/nuxt/commands/feature-continue.md +8 -8
  533. package/presets/cursor/nuxt/commands/feature-start.md +17 -17
  534. package/presets/cursor/nuxt/commands/task-continue.md +14 -14
  535. package/presets/cursor/nuxt/commands/task.md +33 -33
  536. package/presets/cursor/nuxt/commands/technical-retro.md +50 -50
  537. package/presets/cursor/nuxt/rules/README.md +53 -53
  538. package/presets/cursor/nuxt/rules/agent-team-intake.mdc +2 -2
  539. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +4 -4
  540. package/presets/cursor/nuxt/rules/api-services.mdc +43 -43
  541. package/presets/cursor/nuxt/rules/architecture-boundaries-ui.mdc +7 -7
  542. package/presets/cursor/nuxt/rules/architecture-boundaries.mdc +58 -58
  543. package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +25 -24
  544. package/presets/cursor/nuxt/rules/code-review-mr.mdc +5 -5
  545. package/presets/cursor/nuxt/rules/design-guidance.mdc +54 -54
  546. package/presets/cursor/nuxt/rules/feature-delivery-workflow.mdc +44 -44
  547. package/presets/cursor/nuxt/rules/layer-barrel-exports.mdc +31 -31
  548. package/presets/cursor/nuxt/rules/navigation-router-stack.mdc +38 -38
  549. package/presets/cursor/nuxt/rules/navigation-router-ui.mdc +7 -7
  550. package/presets/cursor/nuxt/rules/no-type-assertion-as-import-export.mdc +29 -29
  551. package/presets/cursor/nuxt/rules/nuxt-app-core.mdc +16 -16
  552. package/presets/cursor/nuxt/rules/package-manager.mdc +8 -8
  553. package/presets/cursor/nuxt/rules/post-change-lint.mdc +23 -23
  554. package/presets/cursor/nuxt/rules/preset-layering.mdc +12 -13
  555. package/presets/cursor/nuxt/rules/preset-no-cross-stack-leakage.mdc +1 -2
  556. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +6 -7
  557. package/presets/cursor/nuxt/rules/preset-token-budget.mdc +3 -4
  558. package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +0 -1
  559. package/presets/cursor/nuxt/rules/public-imports.mdc +14 -14
  560. package/presets/cursor/nuxt/rules/reference-features.mdc +17 -17
  561. package/presets/cursor/nuxt/rules/store-pinia.mdc +26 -26
  562. package/presets/cursor/nuxt/rules/technical-retro.mdc +4 -4
  563. package/presets/cursor/nuxt/rules/tests-e2e-structure.mdc +45 -46
  564. package/presets/cursor/nuxt/rules/tests-unit.mdc +51 -52
  565. package/presets/cursor/nuxt/rules/types-jsdoc.mdc +22 -22
  566. package/presets/cursor/nuxt/rules/vue-ui.mdc +6 -6
  567. package/presets/cursor/nuxt/skills/feature-delivery/SKILL.md +1 -1
  568. package/presets/cursor/nuxt/team/README.md +2 -2
  569. package/presets/cursor/php-hexagonal/AGENTS.md +11 -11
  570. package/presets/cursor/php-hexagonal/MCP.md +7 -7
  571. package/presets/cursor/php-hexagonal/agents/README.md +4 -4
  572. package/presets/cursor/php-hexagonal/agents/task-router.md +12 -12
  573. package/presets/cursor/php-hexagonal/commands/README.md +25 -25
  574. package/presets/cursor/php-hexagonal/commands/feature-continue.md +8 -8
  575. package/presets/cursor/php-hexagonal/commands/feature-start.md +17 -17
  576. package/presets/cursor/php-hexagonal/commands/task-continue.md +14 -14
  577. package/presets/cursor/php-hexagonal/commands/task.md +32 -32
  578. package/presets/cursor/php-hexagonal/commands/technical-retro.md +49 -49
  579. package/presets/cursor/php-hexagonal/rules/README.md +2 -2
  580. package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +2 -2
  581. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +4 -4
  582. package/presets/cursor/php-hexagonal/rules/architecture-boundaries.mdc +10 -10
  583. package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +20 -20
  584. package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +4 -4
  585. package/presets/cursor/php-hexagonal/rules/design-guidance.mdc +54 -54
  586. package/presets/cursor/php-hexagonal/rules/php-app-core.mdc +10 -10
  587. package/presets/cursor/php-hexagonal/rules/post-change-test.mdc +1 -1
  588. package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +12 -13
  589. package/presets/cursor/php-hexagonal/rules/preset-no-cross-stack-leakage.mdc +1 -2
  590. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +6 -7
  591. package/presets/cursor/php-hexagonal/rules/preset-token-budget.mdc +3 -4
  592. package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +0 -1
  593. package/presets/cursor/php-hexagonal/rules/technical-retro.mdc +3 -3
  594. package/presets/cursor/php-hexagonal/team/README.md +1 -1
  595. package/presets/cursor/php-laravel/AGENTS.md +10 -10
  596. package/presets/cursor/php-laravel/agents/README.md +4 -4
  597. package/presets/cursor/php-laravel/agents/task-router.md +14 -14
  598. package/presets/cursor/php-laravel/commands/README.md +25 -25
  599. package/presets/cursor/php-laravel/commands/feature-continue.md +8 -8
  600. package/presets/cursor/php-laravel/commands/feature-start.md +17 -17
  601. package/presets/cursor/php-laravel/commands/task-continue.md +14 -14
  602. package/presets/cursor/php-laravel/commands/task.md +32 -32
  603. package/presets/cursor/php-laravel/commands/technical-retro.md +50 -50
  604. package/presets/cursor/php-laravel/rules/README.md +2 -2
  605. package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +2 -2
  606. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +4 -4
  607. package/presets/cursor/php-laravel/rules/architecture-boundaries.mdc +11 -11
  608. package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +20 -20
  609. package/presets/cursor/php-laravel/rules/code-review-mr.mdc +4 -5
  610. package/presets/cursor/php-laravel/rules/design-guidance.mdc +54 -54
  611. package/presets/cursor/php-laravel/rules/events-listeners.mdc +1 -1
  612. package/presets/cursor/php-laravel/rules/laravel-app-core.mdc +8 -8
  613. package/presets/cursor/php-laravel/rules/post-change-test.mdc +1 -1
  614. package/presets/cursor/php-laravel/rules/preset-layering.mdc +12 -13
  615. package/presets/cursor/php-laravel/rules/preset-no-cross-stack-leakage.mdc +1 -2
  616. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +6 -7
  617. package/presets/cursor/php-laravel/rules/preset-token-budget.mdc +3 -4
  618. package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +0 -1
  619. package/presets/cursor/php-laravel/rules/technical-retro.mdc +3 -3
  620. package/presets/cursor/php-laravel/team/README.md +1 -1
  621. package/presets/cursor/svelte/AGENTS.md +15 -15
  622. package/presets/cursor/svelte/MCP.md +9 -9
  623. package/presets/cursor/svelte/README.md +9 -9
  624. package/presets/cursor/svelte/agents/README.md +29 -29
  625. package/presets/cursor/svelte/agents/feature-developer.md +1 -1
  626. package/presets/cursor/svelte/agents/task-analyst.md +1 -1
  627. package/presets/cursor/svelte/agents/task-router.md +16 -16
  628. package/presets/cursor/svelte/commands/README.md +24 -24
  629. package/presets/cursor/svelte/commands/feature-continue.md +8 -8
  630. package/presets/cursor/svelte/commands/feature-start.md +17 -17
  631. package/presets/cursor/svelte/commands/task-continue.md +14 -14
  632. package/presets/cursor/svelte/commands/task.md +33 -33
  633. package/presets/cursor/svelte/commands/technical-retro.md +50 -50
  634. package/presets/cursor/svelte/rules/README.md +34 -34
  635. package/presets/cursor/svelte/rules/agent-team-intake.mdc +2 -2
  636. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +4 -4
  637. package/presets/cursor/svelte/rules/api-services.mdc +14 -14
  638. package/presets/cursor/svelte/rules/architecture-boundaries-ui.mdc +7 -7
  639. package/presets/cursor/svelte/rules/architecture-boundaries.mdc +19 -19
  640. package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +25 -24
  641. package/presets/cursor/svelte/rules/code-review-mr.mdc +5 -5
  642. package/presets/cursor/svelte/rules/design-guidance.mdc +54 -54
  643. package/presets/cursor/svelte/rules/feature-delivery-workflow.mdc +26 -26
  644. package/presets/cursor/svelte/rules/layer-barrel-exports.mdc +31 -31
  645. package/presets/cursor/svelte/rules/navigation-router-stack.mdc +6 -6
  646. package/presets/cursor/svelte/rules/navigation-router-ui.mdc +1 -1
  647. package/presets/cursor/svelte/rules/no-type-assertion-as-import-export.mdc +29 -29
  648. package/presets/cursor/svelte/rules/package-manager.mdc +8 -8
  649. package/presets/cursor/svelte/rules/post-change-lint.mdc +23 -23
  650. package/presets/cursor/svelte/rules/preset-layering.mdc +12 -13
  651. package/presets/cursor/svelte/rules/preset-no-cross-stack-leakage.mdc +1 -2
  652. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +6 -7
  653. package/presets/cursor/svelte/rules/preset-token-budget.mdc +3 -4
  654. package/presets/cursor/svelte/rules/preset-twin-sync.mdc +0 -1
  655. package/presets/cursor/svelte/rules/public-imports.mdc +8 -8
  656. package/presets/cursor/svelte/rules/reference-features.mdc +17 -17
  657. package/presets/cursor/svelte/rules/store-svelte.mdc +26 -26
  658. package/presets/cursor/svelte/rules/svelte-app-core.mdc +16 -16
  659. package/presets/cursor/svelte/rules/svelte-ui.mdc +6 -6
  660. package/presets/cursor/svelte/rules/technical-retro.mdc +4 -4
  661. package/presets/cursor/svelte/rules/tests-e2e-structure.mdc +45 -46
  662. package/presets/cursor/svelte/rules/tests-unit.mdc +17 -17
  663. package/presets/cursor/svelte/rules/types-jsdoc.mdc +22 -22
  664. package/presets/cursor/svelte/skills/feature-delivery/SKILL.md +1 -1
  665. package/presets/cursor/svelte/team/README.md +2 -2
@@ -1,62 +1,62 @@
1
1
  ---
2
- description: Двухуровневые barrel-экспорты для слоёв с регламентированным public API
2
+ description: Two-level barrel exports for layers with a regulated public API
3
3
  paths:
4
4
  - **/index.ts
5
5
  ---
6
6
 
7
- # Barrel-экспорты слоёв с public API
7
+ # Barrel exports for layers with a public API
8
8
 
9
- ## Когда применять
9
+ ## When to apply
10
10
 
11
- Для **любого слоя** (каталога, пакета, bounded context), у которого:
11
+ For **any layer** (directory, package, bounded context) that has:
12
12
 
13
- - есть **корневой barrel** — единая точка импорта для внешних потребителей;
14
- - deep-импорты внутрь слоя **запрещены** снаружи (ESLint `no-restricted-imports`, правила `public-imports.mdc`).
13
+ - a **root barrel** — single import point for external consumers;
14
+ - deep imports into the layer **forbidden** from outside (ESLint `no-restricted-imports`, `public-imports.mdc` rules).
15
15
 
16
- Примеры alias/entry point в разных проектах: `@/api`, `@/types`, `@/core`, `@/store`, `packages/foo`.
16
+ Example alias/entry points across projects: `@/api`, `@/types`, `@/core`, `@/store`, `packages/foo`.
17
17
 
18
- ## Два уровня barrel
18
+ ## Two barrel levels
19
19
 
20
- 1. **Локальный** — `index.ts` модуля/фичи внутри слоя.
21
- 2. **Корневой public API** — barrel слоя (например `src/<layer>/index.ts`).
20
+ 1. **Local** — `index.ts` of a module/feature inside the layer.
21
+ 2. **Root public API** — layer barrel (e.g. `src/<layer>/index.ts`).
22
22
 
23
- **Внутри** слояотносительные импорты и пути между подмодулями. **Снаружи**только корневой barrel и **явно разрешённые** вторичные entry points (если зафиксированы в правилах проекта, напр. `@/types/enums`).
23
+ **Inside** the layer relative imports and paths between submodules. **Outside**only the root barrel and **explicitly allowed** secondary entry points (if fixed in project rules, e.g. `@/types/enums`).
24
24
 
25
- ## Что реэкспортировать наружу
25
+ ## What to re-export outward
26
26
 
27
- Только символы, которые **должны быть доступны** потребителям слоя: публичные функции/сервисы/фасады, типы контракта, константы и helpers, нужные другим слоям или тестам.
27
+ Only symbols that **must be available** to layer consumers: public functions/services/facades, contract types, constants and helpers needed by other layers or tests.
28
28
 
29
- **Не реэкспортировать:** внутренние адаптеры, мапперы, детали транспорта, промежуточные объекты для сборки фасада внутри слоя.
29
+ **Do not re-export:** internal adapters, mappers, transport details, intermediate objects used to assemble a facade inside the layer.
30
30
 
31
- Группировка в корневом barrel — **по конвенции репозитория** (ориентир соседние модули того же слоя).
31
+ Grouping in the root barrel — **per repository convention** (orient on neighboring modules of the same layer).
32
32
 
33
- ## Чеклист агента (обязателен)
33
+ ## Agent checklist (required)
34
34
 
35
- При добавлении или существенном расширении **модуля внутри регламентированного слоя**:
35
+ When adding or substantially extending a **module inside a regulated layer**:
36
36
 
37
- 1. Определить слой, его **корневой barrel** и доп. entry points (`public-imports.mdc`).
38
- 2. Создать/обновить **локальный** `index.ts` — только публичные символы.
39
- 3. Если в слое есть **фасад/агрегатор** (`*ApiService.ts`, `rootReducer`, …) — подключить модуль там.
40
- 4. Добавить **реэкспорт** новых публичных символов в **корневой barrel** слоя.
41
- 5. **Проверка:** grep по имени символа или пути `./<Module>` в корневом barrel; снаружи слоя нет deep-импортов.
37
+ 1. Identify the layer, its **root barrel**, and extra entry points (`public-imports.mdc`).
38
+ 2. Create/update the **local** `index.ts` — public symbols only.
39
+ 3. If the layer has a **facade/aggregator** (`*ApiService.ts`, `rootReducer`, …) — wire the module there.
40
+ 4. Add a **re-export** of new public symbols in the layer’s **root barrel**.
41
+ 5. **Verify:** grep for the symbol name or path `./<Module>` in the root barrel; no deep imports from outside the layer.
42
42
 
43
- Модуль **не готов**, пока чеклист не пройден.
43
+ The module is **not ready** until the checklist passes.
44
44
 
45
- ## Как найти регламентированные слои в репозитории
45
+ ## How to find regulated layers in the repository
46
46
 
47
- 1. Правила `public-imports.mdc` в `.cursor/rules/`.
48
- 2. ESLint `no-restricted-imports` — паттерны `@/<layer>/*` с исключением barrel.
49
- 3. `architecture-boundaries.mdc`, README проекта.
47
+ 1. `public-imports.mdc` rules in `.claude/rules/`.
48
+ 2. ESLint `no-restricted-imports` — `@/<layer>/*` patterns with barrel exception.
49
+ 3. `architecture-boundaries.mdc`, project README.
50
50
 
51
- ## В этом репозитории
51
+ ## In this repository
52
52
 
53
- | Слой | Корневой barrel | Правило импортов |
54
- |------|-------------------|------------------|
53
+ | Layer | Root barrel | Import rule |
54
+ |-------|-------------|-------------|
55
55
  | API | `api/index.ts` | `public-imports.mdc` |
56
56
  | Types | `types/index.ts` | `public-imports.mdc` (+ `@/types/enums`) |
57
57
  | Core | `core/index.ts` | ESLint: `@/core/index` |
58
58
 
59
- Иллюстрация двух уровней (API): локальный `services/.../<Feature>/index.ts` → фасад `*ApiService.ts` → `api/index.ts`.
59
+ Two-level illustration (API): local `services/.../<Feature>/index.ts` → facade `*ApiService.ts` → `api/index.ts`.
60
60
  ## Incorrect
61
61
 
62
62
  ```ts
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Импорт доменных типов и API только через публичные barrels ($lib/types, $lib/api)
2
+ description: Import domain types and API only through public barrels ($lib/types, $lib/api)
3
3
  paths:
4
4
  - src/lib/components/**/*
5
5
  - src/lib/stores/**/*
@@ -9,15 +9,15 @@ paths:
9
9
  - src/lib/api/**/*
10
10
  ---
11
11
 
12
- # Публичные импорты (`$lib/types`, `$lib/api`)
12
+ # Public imports (`$lib/types`, `$lib/api`)
13
13
 
14
14
  Preferred alias: **`$lib`**. Accept **`@/`** if consumer vite/tsconfig maps it. Respect `$app/*` / `$env/*` — do not invent modules.
15
15
 
16
16
  ## `$lib/types` (or `@/types`)
17
17
 
18
- - Публичный API типов — barrel `src/lib/types/index.ts`; снаружи слоятолько `$lib/types` / `@/types`.
19
- - Запрещено обходить barrel deep-импортами внутренних файлов типов (кроме project enum convention if present).
20
- - Внутри `src/lib/types/**` — относительные импорты.
18
+ - Public types API — barrel `src/lib/types/index.ts`; outside the layer only `$lib/types` / `@/types`.
19
+ - Forbidden to bypass the barrel via deep imports of internal type files (except a project enum convention if present).
20
+ - Inside `src/lib/types/**` — relative imports.
21
21
 
22
22
  ```typescript
23
23
  // ✅
@@ -29,8 +29,8 @@ import type { TUserProfile } from '$lib/types/User.types'
29
29
 
30
30
  ## `$lib/api` (or `@/api`)
31
31
 
32
- - Публичный API — barrel `src/lib/api/index.ts`. Вне `src/lib/api/**` — только `$lib/api` / `@/api`.
33
- - Внутри слояотносительные импорты и `$lib/api/services/**` / `$lib/clients/**` as neighbors do.
32
+ - Public API — barrel `src/lib/api/index.ts`. Outside `src/lib/api/**` — only `$lib/api` / `@/api`.
33
+ - Inside the layer relative imports and `$lib/api/services/**` / `$lib/clients/**` as neighbors do.
34
34
 
35
35
  ```typescript
36
36
  // ✅
@@ -40,4 +40,4 @@ import { ordersApi } from '$lib/api'
40
40
  import { ordersApi } from '$lib/api/services/orders/orders.service'
41
41
  ```
42
42
 
43
- Новые публичные символыреэкспорт в barrel по **`layer-barrel-exports`**.
43
+ New public symbolsre-export in the barrel per **`layer-barrel-exports`**.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Эталонные фичи репозиториякопировать структуру при реализации новых задач. Заполните пути после init в целевом репо.
2
+ description: Repository reference featuresmirror their structure when implementing new work. Fill in paths after init in the target repo.
3
3
  paths:
4
4
  - src/lib/components/**/*
5
5
  - src/lib/stores/**/*
@@ -10,41 +10,41 @@ paths:
10
10
 
11
11
  <!-- shared-core: architecture/reference-features.template.md -->
12
12
 
13
- # Эталонные фичи (reference features)
13
+ # Reference features
14
14
 
15
15
  ## Stack notes
16
16
 
17
- Перед реализацией найди фичу того же типа и **повтори её структуру**, не изобретая новую организацию файлов.
17
+ Before implementing, find a feature of the same type and **mirror its structure**; do not invent a new file organization.
18
18
 
19
19
  Taxonomy / shared core: [`presets/_shared/README.md`](../../../../_shared/README.md) · [Preset contribution guide](../../../../docs/PRESET-CONTRIBUTION.md).
20
20
 
21
- ## Таблица эталонов
21
+ ## Reference table
22
22
 
23
- Замени **TBD** на реальные пути после договорённости в команде (или при `ai-rules init` в целевом репо):
23
+ Replace **TBD** with real paths after team agreement (or on `ai-rules init` in the target repo):
24
24
 
25
- | Слой | Эталон | Что копировать |
26
- |------|--------|----------------|
25
+ | Layer | Reference | What to copy |
26
+ |-------|-----------|--------------|
27
27
  | UI route / page | **TBD** `src/routes/<example>/` | `+page.svelte`, `+page.ts`, layout nesting |
28
28
  | UI component | **TBD** `src/lib/components/<Example>/` | `.svelte`, styles, barrel |
29
29
  | Store | **TBD** `src/lib/stores/<example>.ts` | writable/derived or runes module, actions |
30
30
  | API service | **TBD** `src/lib/api/services/<example>/` | service, mappers, barrel |
31
31
  | Types module | **TBD** `src/lib/types/<example>/` | domain types, JSDoc, barrel export |
32
- | Unit tests | **TBD** рядом с эталонным mapper/service | `*.spec.ts`, describe/it naming |
32
+ | Unit tests | **TBD** next to the reference mapper/service | `*.spec.ts`, describe/it naming |
33
33
  | E2E area | **TBD** `tests/e2e/<Area>/` | `*.cases.md`, page objects, `_shared/` |
34
34
 
35
- ## Как использовать
35
+ ## How to use
36
36
 
37
- 1. Определи затронутые слои из `decomposition.md` или задачи.
38
- 2. Открой эталон из таблицы (после заполнения путей).
39
- 3. Зеркаль именование, порядок файлов, паттерны импортов и тестов.
40
- 4. Если эталона нетвыбери **самую близкую** существующую фичу того же слоя и зафиксируй выбор в handoff.
37
+ 1. Identify affected layers from `decomposition.md` or the task.
38
+ 2. Open the reference from the table (after paths are filled in).
39
+ 3. Mirror naming, file order, import patterns, and tests.
40
+ 4. If there is no reference pick the **closest** existing feature in the same layer and record the choice in the handoff.
41
41
 
42
42
  ## Living conventions
43
43
 
44
- Post-init gotchas / patterns / decisions: **`.cursor/team/conventions.md`** (and the twin tool path if both Cursor and Claude are installed). Consumer-owned; not always-on. See root `AGENTS.md` § Living conventions.
44
+ Post-init gotchas / patterns / decisions: **`.claude/team/conventions.md`** (and the twin tool path if both Cursor and Claude are installed). Consumer-owned; not always-on. See root `AGENTS.md` § Living conventions.
45
45
 
46
- ## Связанные правила
46
+ ## Related rules
47
47
 
48
- - `code-quality-and-refactoring.mdc` — повторять паттерны, не deep-import.
49
- - `feature-delivery-workflow.mdc` — порядок слоёв.
50
- - skill `feature-delivery` — end-to-end сценарий.
48
+ - `code-quality-and-refactoring.mdc` — repeat patterns; no deep-import.
49
+ - `feature-delivery-workflow.mdc` — layer order.
50
+ - skill `feature-delivery` — end-to-end scenario.
@@ -1,12 +1,12 @@
1
1
  # Stack (SvelteKit, Svelte 5, TypeScript)
2
2
 
3
- Правила уровня фреймворка и языка.
3
+ Framework- and language-level rules.
4
4
 
5
- | Файл | Содержание | Загрузка |
6
- |------|------------|----------|
7
- | `svelte-app-core.md` | Стек, структура `src/routes/**` / `src/lib/**`, слои | session start |
5
+ | File | Contents | Loading |
6
+ |------|----------|---------|
7
+ | `svelte-app-core.md` | Stack, `src/routes/**` / `src/lib/**` structure, layers | session start |
8
8
  | `svelte-script-conventions.md` | `<script lang="ts">` conventions | `paths: **/*.{svelte,ts}` |
9
- | `no-type-assertion.md` | Ограничение `as` на границах модулей | on-demand |
10
- | `navigation-router-ui.md` | Навигация в UI-компонентах (slim) | `paths: src/routes/**,src/hooks.server.ts,src/lib/components/**` |
11
- | `navigation-router.md` | Полный аудит стека навигации (SvelteKit file-based routing) | `paths: src/routes/**,src/hooks.server.ts,svelte.config.*` |
12
- | `types-jsdoc.md` | JSDoc в `types` | `paths: types/**/*.ts` |
9
+ | `no-type-assertion.md` | Limit `as` on module boundaries | on-demand |
10
+ | `navigation-router-ui.md` | Navigation in UI components (slim) | `paths: src/routes/**,src/hooks.server.ts,src/lib/components/**` |
11
+ | `navigation-router.md` | Full navigation stack audit (SvelteKit file-based routing) | `paths: src/routes/**,src/hooks.server.ts,svelte.config.*` |
12
+ | `types-jsdoc.md` | JSDoc in `types` | `paths: types/**/*.ts` |
@@ -5,7 +5,7 @@ paths:
5
5
  - src/routes/**/*
6
6
  ---
7
7
 
8
- # Навигация (UI)
8
+ # Navigation (UI)
9
9
 
10
10
  - Prefer native **`<a href="…">`** (and design-system Link wrappers that render anchors).
11
11
  - Active state: follow repo pattern (`page.url`, `$app/state` / `$app/stores` as version allows — verify).
@@ -5,15 +5,15 @@ paths:
5
5
  - svelte.config.*
6
6
  ---
7
7
 
8
- # Навигация (stack)
8
+ # Navigation (stack)
9
9
 
10
- Для этого пресета канон **SvelteKit** (`svelte-app-core`, `sveltekit-routing`).
10
+ For this preset the canon is **SvelteKit** (`svelte-app-core`, `sveltekit-routing`).
11
11
 
12
- ## Проверить в репо
12
+ ## Check in the repo
13
13
 
14
- 1. `package.json` workspace с `svelte.config.*` — `@sveltejs/kit` / `svelte` majors.
15
- 2. Как уже навигируют соседи: `goto`, `invalidate`, `beforeNavigate`, `<a href>`, wrappers.
16
- 3. Не подмешивать Next (`next/navigation`) или Nuxt (`navigateTo`, `<NuxtLink>`) по умолчанию.
14
+ 1. `package.json` workspace with `svelte.config.*` — `@sveltejs/kit` / `svelte` majors.
15
+ 2. How neighbors already navigate: `goto`, `invalidate`, `beforeNavigate`, `<a href>`, wrappers.
16
+ 3. Do not mix in Next (`next/navigation`) or Nuxt (`navigateTo`, `<NuxtLink>`) by default.
17
17
 
18
18
  ## API
19
19
 
@@ -1,59 +1,59 @@
1
1
  ---
2
- description: Избегать приведения типов через as на границах модулей (импорт/экспорт)
2
+ description: Avoid type assertions via as at module boundaries (import/export)
3
3
  paths:
4
4
  - api/**/*
5
5
  - src/lib/stores/**/*
6
6
  - types/**/*
7
7
  ---
8
8
 
9
- # Не использовать `as` для приведения типов при экспорте и импорте (кроме необходимых случаев)
9
+ # Do not use `as` for type assertion on export and import (except necessary cases)
10
10
 
11
- ## О чём речь
11
+ ## What this is about
12
12
 
13
- Речь о **type assertion** в TypeScript: выражение вида `значение as Тип`.
13
+ This is about TypeScript **type assertion**: expressions like `value as Type`.
14
14
 
15
- **Не относится к правилу** (это не assertion, а синтаксис модулей):
15
+ **Not covered by this rule** (not assertion module syntax):
16
16
 
17
- - переименование при экспорте: `export { foo as bar }`, `export { default as Baz } from '...'`;
18
- - переименование при импорте: `import { foo as bar } from '...'`;
19
- - `import type { Foo as Bar }` — алиас типа в импорте типов.
17
+ - rename on export: `export { foo as bar }`, `export { default as Baz } from '...'`;
18
+ - rename on import: `import { foo as bar } from '...'`;
19
+ - `import type { Foo as Bar }` — type alias in a type import.
20
20
 
21
- ## Требование
21
+ ## Requirement
22
22
 
23
- - На **публичной границе модуля** (то, что **экспортируется** из файла / barrel, и то, что сразу **присваивается импортированным символам** с принудительным приведением) **не использовать** `as Тип` для «подгонки» типов, если можно обойтись нормальной типизацией.
23
+ - On the **public module boundary** (what is **exported** from a file / barrel, and what is immediately **assigned from imported symbols** with a forced cast) **do not use** `as Type` to “force-fit” types when normal typing would work.
24
24
 
25
- ## Предпочитать вместо `as`
25
+ ## Prefer instead of `as`
26
26
 
27
- - явную аннотацию: `const x: T = ...` / `function f(): T`;
28
- - **дженерики** у функций и классов;
29
- - **`satisfies`** (когда нужно проверить совместимость без сужения до `any`);
30
- - сужение **`unknown`** после проверки (type guards, `zod` и т.п.);
31
- - правку **исходных типов/DTO/мапперов**, а не assertion на выходе.
27
+ - an explicit annotation: `const x: T = ...` / `function f(): T`;
28
+ - **generics** on functions and classes;
29
+ - **`satisfies`** (when you need to check compatibility without narrowing to `any`);
30
+ - narrowing **`unknown`** after checks (type guards, `zod`, etc.);
31
+ - fixing **source types/DTOs/mappers**, not an assertion on the way out.
32
32
 
33
- ## Когда `as` допустим
33
+ ## When `as` is allowed
34
34
 
35
- - взаимодействие с **не типизированными** или некорректно типизированными внешними модулями, где нет разумной альтернативы;
36
- - узкие места после **валидации** данных, если типовый гард всё ещё не выразить без шума (предпочтительно всё же guard/`satisfies`);
37
- - **`as const`** — когда нужны литеральные типы и широкий вывод ломает контракт (это отдельный механизм; применять по делу, не как замену типизации API).
38
- - блок **`catch (error)`** после вызова HTTP через общий клиент: по возможности сужать через **`instanceof`** на **класс ошибки транспорта** из `@/types` (какой именнопо существующей реализации) и работать с уже суженным типом; голый **`as` к тому же типу**только если `instanceof` недоступен (иной источник выброса) и осознанно.
35
+ - interaction with **untyped** or incorrectly typed external modules where there is no reasonable alternative;
36
+ - narrow spots after **validation**, if a type guard still cannot be expressed without noise (prefer guard/`satisfies` anyway);
37
+ - **`as const`** — when literal types are needed and wide inference breaks the contract (a separate mechanism; use on purpose, not as a substitute for API typing).
38
+ - a **`catch (error)`** block after HTTP via the shared client: prefer narrowing with **`instanceof`** on the **transport error class** from `@/types` (which onefollow the existing implementation) and work with the narrowed type; bare **`as` to the same type**only if `instanceof` is unavailable (different throw source) and deliberately.
39
39
 
40
- ## Примеры
40
+ ## Examples
41
41
 
42
42
  ```typescript
43
- // ❌ Плохо: assertion на экспортируемом API
43
+ // ❌ Bad: assertion on exported API
44
44
  export const config = loadRaw() as AppConfig
45
45
 
46
- // ✅ Лучше: аннотация + проверка или маппер
46
+ // ✅ Better: annotation + check or mapper
47
47
  export const config: AppConfig = mapToAppConfig(loadRaw())
48
48
 
49
- // ❌ Плохо: сразу после импорта «ломаем» тип
49
+ // ❌ Bad: immediately after import we “break” the type
50
50
  import { getData } from './api'
51
51
  export const data = getData() as MyDto[]
52
52
 
53
- // ✅ Лучше: типизировать getData / обернуть типобезопасной функцией
53
+ // ✅ Better: type getData / wrap with a type-safe function
54
54
  ```
55
55
 
56
- ## Требование к агенту
56
+ ## Agent requirement
57
57
 
58
- При ревью и генерации кода **не добавлять** новые `as Тип` на экспортируемые сущности и на цепочку import → export без явной необходимости; по возможности исправлять контракт типов в источнике.
59
- - В слайсах и сервисах при обработке ошибок API сначала рассматривать **`instanceof`** на класс ошибки транспорта из `@/types` по образцу существующего кода (`http-client.mdc`, `store-svelte.mdc`).
58
+ On review and code generation **do not add** new `as Type` on exported entities and on the import → export chain without clear need; when possible fix the type contract at the source.
59
+ - In slices and services when handling API errors, first consider **`instanceof`** on the transport error class from `@/types` following existing code (`http-client.mdc`, `store-svelte.mdc`).
@@ -1,15 +1,15 @@
1
1
  ---
2
- description: Базовые принципы, стек и архитектура SvelteKit приложения (preset)
2
+ description: Core principles, stack, and architecture for a SvelteKit app (preset)
3
3
  ---
4
4
 
5
- # Стек и окружение
5
+ # Stack and environment
6
6
 
7
- Конкретные версии**из `package.json` и конфигов целевого репозитория**. Рамка preset: SvelteKit, Svelte 5 (primary), TypeScript; runner/e2e/mocks/UI/APM — как заведено в репо.
7
+ Concrete versions**from `package.json` and configs in the target repository**. Preset frame: SvelteKit, Svelte 5 (primary), TypeScript; runner/e2e/mocks/UI/APM — as established in the repo.
8
8
 
9
- # Структура проекта
9
+ # Project structure
10
10
 
11
- | Путь | Назначение |
12
- |------|------------|
11
+ | Path | Purpose |
12
+ |------|---------|
13
13
  | `src/routes/**` | Routes, layouts, load, form actions (`+page`, `+layout`, `+server`) |
14
14
  | `src/lib/components/**` | UI components (`.svelte`) |
15
15
  | `src/lib/**` | Facades / utils (no Vue-style `composables/` tree) |
@@ -20,12 +20,12 @@ description: Базовые принципы, стек и архитектура
20
20
  | `src/lib/types/**` | Domain types (barrel) |
21
21
  | `tests/e2e/**` | Playwright e2e |
22
22
 
23
- **Aliases:** prefer `$lib`; respect `$app/*` / `$env/*` (не изобретать символы); accept `@/` если настроен. Scripts cwd — **корень SvelteKit** (где `svelte.config.*`), не Next-обёртка `app/`.
23
+ **Aliases:** prefer `$lib`; respect `$app/*` / `$env/*` (do not invent symbols); accept `@/` if configured. Scripts cwd — **SvelteKit root** (where `svelte.config.*` lives), not a Next-style `app/` wrapper.
24
24
 
25
- # Архитектурные слои
25
+ # Architectural layers
26
26
 
27
- | Слой | Каталог | Детали |
28
- |------|---------|--------|
27
+ | Layer | Directory | Details |
28
+ |-------|-----------|---------|
29
29
  | UI | `src/routes/**`, `src/lib/components/**` | `svelte-ui`, `architecture-boundaries-ui` |
30
30
  | Facades | `src/lib/**` | thin orchestration; no raw HTTP |
31
31
  | Store | `src/lib/stores/**` | `store-svelte` — writable/derived/readable + runes |
@@ -34,11 +34,11 @@ description: Базовые принципы, стек и архитектура
34
34
  | Server | `+server.ts`, hooks | `security-sveltekit`; not a substitute for `src/lib/api/**` |
35
35
  | Types | `src/lib/types/**` | `public-imports`, `types-jsdoc` |
36
36
 
37
- Границы — **`architecture-boundaries`**. Импорты `$lib/types`, `$lib/api` (или `@/…` если aliased) — **`public-imports`**. **Запрещено:** RTK / Pinia / stems `store-rtk` / `store-pinia`, React/RSC, Vue/Nuxt defaults, пути `app/src/**` / `pages/**` / `composables/**` как канон.
37
+ Boundaries — **`architecture-boundaries`**. Imports `$lib/types`, `$lib/api` (or `@/…` if aliased) — **`public-imports`**. **Forbidden:** RTK / Pinia / stems `store-rtk` / `store-pinia`, React/RSC, Vue/Nuxt defaults, paths `app/src/**` / `pages/**` / `composables/**` as canon.
38
38
 
39
- # Работа агента
39
+ # Agent work
40
40
 
41
- - Архитектура и импорты: `architecture-boundaries`, `public-imports`
42
- - Фичи: `feature-delivery-workflow` + skill `feature-delivery`
43
- - После правок: **вызвать** `post-change-lint` (requestable); менеджер пакетов: `package-manager`
44
- - Копировать паттерны соседей; предпочитать `unknown` вместо `any`
41
+ - Architecture and imports: `architecture-boundaries`, `public-imports`
42
+ - Features: `feature-delivery-workflow` + skill `feature-delivery`
43
+ - After edits: **invoke** `post-change-lint` (requestable); package manager: `package-manager`
44
+ - Copy neighbor patterns; prefer `unknown` over `any`
@@ -1,42 +1,42 @@
1
1
  ---
2
- description: Стиль JSDoc для доменных и транспортных типов в types
2
+ description: JSDoc style for domain and transport types under types
3
3
  paths:
4
4
  - src/lib/types/**/*.ts
5
5
  ---
6
6
 
7
- # Документация типов в `types`
7
+ # Type documentation in `types`
8
8
 
9
- При добавлении или существенном изменении типов в этом слое **следовать уже принятому в репозитории стилю JSDoc** (см. примеры: `User.types.ts`, `Common.types.ts`, `ServerValidation.types.ts`, `TreatmentPlan/*.types.ts`).
9
+ When adding or substantially changing types in this layer **follow the JSDoc style already used in the repository** (see examples: `User.types.ts`, `Common.types.ts`, `ServerValidation.types.ts`, `TreatmentPlan/*.types.ts`).
10
10
 
11
- ## Язык и форма
11
+ ## Language and form
12
12
 
13
- - Текст комментариев**на русском**, кратко и по делу: что означает тип или поле в предметной области или в контракте с API.
14
- - **Не опираться** на теги в духе `@param`, `@returns`, `@see`, `@deprecated` для описания типовв этом слое они **не используются**; достаточно обычного текста в `/** … */`.
13
+ - Comment text**in Russian**, short and to the point: what the type or field means in the domain or API contract.
14
+ - **Do not rely** on tags like `@param`, `@returns`, `@see`, `@deprecated` for type descriptionsthey are **not used** in this layer; plain `/** … */` text is enough.
15
15
 
16
- ## Экспортируемый `type` / `interface`
16
+ ## Exported `type` / `interface`
17
17
 
18
- - Сразу **перед объявлением**блок `/** … */`.
19
- - Если нужно пояснить источник данных, ограничения или неочевидности **второй абзац** в том же блоке JSDoc для абзаца пустая строка между строками текста).
20
- - Для **вложенных** объектов в том же файле каждый такой тип документируется отдельным блоком над своим объявлением.
18
+ - Immediately **before the declaration** a `/** … */` block.
19
+ - If you need to explain data source, constraints, or non-obvious bits a **second paragraph** in the same block (blank line between paragraphs in JSDoc).
20
+ - For **nested** objects in the same file, each such type gets its own block above its declaration.
21
21
 
22
- ## Поля
22
+ ## Fields
23
23
 
24
- - У **каждого** публичного свойства **однострочный** `/** … */` на строке непосредственно **над** полем.
25
- - Если поле **не приходит с бэкенда «как есть»**, а вычисляется или дополняется на фронте (маппер, селектор, UI) — начать описание с префикса **`[computed]`** (как в `TUserProfile`, типах плана лечения).
26
- - Для форматов данных указывать это **в тексте**: например дата `YYYY-MM-DD`, пример отображаемой строки в кавычках.
24
+ - Every **public** propertya **one-line** `/** … */` on the line immediately **above** the field.
25
+ - If a field **does not come from the backend “as is”** but is computed or enriched on the frontend (mapper, selector, UI) — start the description with the **`[computed]`** prefix (as in `TUserProfile`, treatment-plan types).
26
+ - For data formats, state that **in the text**: e.g. date `YYYY-MM-DD`, example display string in quotes.
27
27
 
28
- ## Классы и прочие объявления
28
+ ## Classes and other declarations
29
29
 
30
- - Для **классов** (например ошибки транспорта) при изменении публичного API — краткий блок над классом и **комментарии к публичным полям** по тем же правилам, что у свойств интерфейса.
30
+ - For **classes** (e.g. transport errors), when changing the public API — a short block above the class and **comments on public fields** by the same rules as interface properties.
31
31
 
32
32
  ## `enum`
33
33
 
34
- - В `enums.ts` исторически часто **без JSDoc** на каждом члене; для новых enum допустимо короткое описание **над самим enum**, если назначение неочевидно из имени. Подписи для UI — как принято, через объекты `*Names` рядом с enum.
34
+ - In `enums.ts` historically often **without JSDoc** on each member; for new enums a short description **above the enum itself** is OK if purpose is not obvious from the name. UI labels as usual, via `*Names` objects next to the enum.
35
35
 
36
- ## Практика для агента
36
+ ## Agent practice
37
37
 
38
- - Добавляя новый тип или поле, **не оставлять** новые публичные поля без пояснения, если смысл не равен имени на 100%.
39
- - Правя файл, где уже есть такие комментарии, **поддерживать тот же стиль**, а не смешивать с англоязычными или «теговыми» блоками.
40
- - Не раздувать комментарии: одна-две фразы на тип, одна строка на поленорма; исключениедействительно сложная доменная оговорка.
38
+ - When adding a new type or field, **do not leave** new public fields unexplained if the meaning is not 100% equal to the name.
39
+ - When editing a file that already has such comments, **keep the same style**, do not mix with English or “tag-style” blocks.
40
+ - Do not inflate comments: one–two phrases per type, one line per field normal; exceptiona truly complex domain caveat.
41
41
 
42
- См. также импорты и barrel: `public-imports.mdc`.
42
+ See also imports and barrel: `public-imports.mdc`.
@@ -2,10 +2,10 @@
2
2
 
3
3
  Unit, e2e, Playwright agents.
4
4
 
5
- | Файл | Содержание | Загрузка |
6
- |------|------------|----------|
7
- | `playwright-agents.md` | Planner / generator / healer — структура e2e | session start |
8
- | `tests-unit.md` | Unit/integration, именование на русском | `paths: **/*.spec.*`, `*.test.*` |
5
+ | File | Contents | Loading |
6
+ |------|----------|---------|
7
+ | `playwright-agents.md` | Planner / generator / healer — e2e structure | session start |
8
+ | `tests-unit.md` | Unit/integration; titles in Russian (locale convention) | `paths: **/*.spec.*`, `*.test.*` |
9
9
  | `tests-e2e-structure.md` | `*.cases.md`, page objects, data-testid | `paths: tests/e2e/**` |
10
10
 
11
- См. также `.claude/agents/playwright-test-*.md` после `ai-rules init`.
11
+ See also `.claude/agents/playwright-test-*.md` after `ai-rules init`.