@bonesofspring/ai-rules 0.2.12 → 0.2.14

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 (660) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +6 -2
  3. package/bin/cli.js +4 -0
  4. package/package.json +1 -1
  5. package/presets/_shared/README.md +1 -1
  6. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +114 -0
  7. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +64 -5
  8. package/presets/_shared/core/meta/preset-layering.md +1 -1
  9. package/presets/_shared/core/meta/preset-no-cross-stack-leakage.md +15 -1
  10. package/presets/_shared/core/meta/preset-pr-checklist.md +1 -1
  11. package/presets/_shared/core/meta/preset-twin-sync.md +4 -0
  12. package/presets/claude/go/agents/build-verifier.md +10 -3
  13. package/presets/claude/go/agents/code-reviewer.md +8 -1
  14. package/presets/claude/go/agents/feature-developer.md +8 -1
  15. package/presets/claude/go/agents/task-analyst.md +8 -1
  16. package/presets/claude/go/agents/task-router.md +33 -5
  17. package/presets/claude/go/commands/task.md +8 -6
  18. package/presets/claude/go/hooks/chain-team-phases.sh +195 -53
  19. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +30 -5
  20. package/presets/claude/go/rules/tooling-and-review/preset-layering.md +2 -1
  21. package/presets/claude/go/rules/tooling-and-review/preset-no-cross-stack-leakage.md +16 -1
  22. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  23. package/presets/claude/go/rules/tooling-and-review/preset-token-budget.md +1 -0
  24. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +5 -0
  25. package/presets/claude/go/team/README.md +13 -2
  26. package/presets/claude/ios-swift/agents/build-verifier.md +10 -3
  27. package/presets/claude/ios-swift/agents/code-reviewer.md +9 -14
  28. package/presets/claude/ios-swift/agents/feature-developer.md +8 -1
  29. package/presets/claude/ios-swift/agents/task-analyst.md +8 -1
  30. package/presets/claude/ios-swift/agents/task-router.md +31 -3
  31. package/presets/claude/ios-swift/commands/task.md +8 -6
  32. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +177 -54
  33. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +33 -2
  34. package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +2 -1
  35. package/presets/claude/ios-swift/rules/tooling-and-review/preset-no-cross-stack-leakage.md +16 -1
  36. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  37. package/presets/claude/ios-swift/rules/tooling-and-review/preset-token-budget.md +1 -0
  38. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +5 -0
  39. package/presets/claude/ios-swift/team/README.md +13 -2
  40. package/presets/claude/java/agents/build-verifier.md +9 -2
  41. package/presets/claude/java/agents/code-reviewer.md +8 -1
  42. package/presets/claude/java/agents/feature-developer.md +8 -1
  43. package/presets/claude/java/agents/task-analyst.md +8 -1
  44. package/presets/claude/java/agents/task-router.md +31 -3
  45. package/presets/claude/java/commands/task.md +8 -6
  46. package/presets/claude/java/hooks/chain-team-phases.sh +195 -53
  47. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +30 -5
  48. package/presets/claude/java/rules/tooling-and-review/preset-layering.md +2 -1
  49. package/presets/claude/java/rules/tooling-and-review/preset-no-cross-stack-leakage.md +16 -1
  50. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  51. package/presets/claude/java/rules/tooling-and-review/preset-token-budget.md +1 -0
  52. package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +5 -0
  53. package/presets/claude/java/team/README.md +13 -2
  54. package/presets/claude/mcp-ts/agents/build-verifier.md +10 -3
  55. package/presets/claude/mcp-ts/agents/feature-developer.md +7 -1
  56. package/presets/claude/mcp-ts/agents/task-analyst.md +8 -1
  57. package/presets/claude/mcp-ts/agents/task-router.md +33 -5
  58. package/presets/claude/mcp-ts/commands/task.md +8 -6
  59. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +181 -39
  60. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +30 -5
  61. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +2 -1
  62. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-no-cross-stack-leakage.md +16 -1
  63. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  64. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-token-budget.md +1 -0
  65. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +5 -0
  66. package/presets/claude/mcp-ts/team/README.md +13 -2
  67. package/presets/claude/next/agents/accessibility-reviewer.md +6 -12
  68. package/presets/claude/next/agents/api-contract-reviewer.md +6 -12
  69. package/presets/claude/next/agents/build-verifier.md +10 -14
  70. package/presets/claude/next/agents/ci-investigator.md +7 -13
  71. package/presets/claude/next/agents/code-reviewer.md +9 -14
  72. package/presets/claude/next/agents/debugger.md +6 -12
  73. package/presets/claude/next/agents/feature-developer.md +8 -1
  74. package/presets/claude/next/agents/migration-specialist.md +6 -12
  75. package/presets/claude/next/agents/performance-auditor.md +5 -11
  76. package/presets/claude/next/agents/qa-tester.md +6 -12
  77. package/presets/claude/next/agents/security-reviewer.md +6 -12
  78. package/presets/claude/next/agents/solution-architect.md +6 -12
  79. package/presets/claude/next/agents/task-analyst.md +10 -16
  80. package/presets/claude/next/agents/task-router.md +31 -3
  81. package/presets/claude/next/agents/tech-writer.md +6 -13
  82. package/presets/claude/next/agents/unit-test-generator.md +6 -10
  83. package/presets/claude/next/agents/unit-test-healer.md +6 -10
  84. package/presets/claude/next/agents/unit-test-planner.md +5 -11
  85. package/presets/claude/next/commands/task.md +8 -6
  86. package/presets/claude/next/hooks/chain-team-phases.sh +197 -54
  87. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +29 -4
  88. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +2 -1
  89. package/presets/claude/next/rules/tooling-and-review/preset-no-cross-stack-leakage.md +16 -1
  90. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  91. package/presets/claude/next/rules/tooling-and-review/preset-token-budget.md +1 -0
  92. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +5 -0
  93. package/presets/claude/next/team/README.md +15 -3
  94. package/presets/claude/next/team/fixtures/artifact-manifest.example.json +61 -0
  95. package/presets/claude/next/team/fixtures/bugfix-standard.json +10 -0
  96. package/presets/claude/next/team/fixtures/feature-full.json +10 -0
  97. package/presets/claude/next/team/fixtures/feature-light.json +10 -0
  98. package/presets/claude/nuxt/CLAUDE.md +39 -0
  99. package/presets/claude/nuxt/MCP.md +16 -0
  100. package/presets/claude/nuxt/README.md +39 -0
  101. package/presets/claude/nuxt/REPO_AGENTS.md +49 -0
  102. package/presets/claude/nuxt/agents/README.md +199 -0
  103. package/presets/claude/nuxt/agents/accessibility-reviewer.md +59 -0
  104. package/presets/claude/nuxt/agents/api-contract-reviewer.md +63 -0
  105. package/presets/claude/nuxt/agents/build-verifier.md +89 -0
  106. package/presets/claude/nuxt/agents/ci-investigator.md +60 -0
  107. package/presets/claude/nuxt/agents/code-reviewer.md +62 -0
  108. package/presets/claude/nuxt/agents/codebase-analyzer.md +28 -0
  109. package/presets/claude/nuxt/agents/debugger.md +65 -0
  110. package/presets/claude/nuxt/agents/feature-developer.md +59 -0
  111. package/presets/claude/nuxt/agents/migration-specialist.md +67 -0
  112. package/presets/claude/nuxt/agents/performance-auditor.md +66 -0
  113. package/presets/claude/nuxt/agents/playwright-test-generator.md +75 -0
  114. package/presets/claude/nuxt/agents/playwright-test-healer.md +61 -0
  115. package/presets/claude/nuxt/agents/playwright-test-planner.md +67 -0
  116. package/presets/claude/nuxt/agents/qa-tester.md +54 -0
  117. package/presets/claude/nuxt/agents/security-reviewer.md +60 -0
  118. package/presets/claude/nuxt/agents/solution-architect.md +68 -0
  119. package/presets/claude/nuxt/agents/task-analyst.md +109 -0
  120. package/presets/claude/nuxt/agents/task-router.md +140 -0
  121. package/presets/claude/nuxt/agents/tech-writer.md +54 -0
  122. package/presets/claude/nuxt/agents/unit-test-generator.md +37 -0
  123. package/presets/claude/nuxt/agents/unit-test-healer.md +38 -0
  124. package/presets/claude/nuxt/agents/unit-test-planner.md +60 -0
  125. package/presets/claude/nuxt/commands/README.md +13 -0
  126. package/presets/claude/nuxt/commands/feature-continue.md +51 -0
  127. package/presets/claude/nuxt/commands/feature-start.md +30 -0
  128. package/presets/claude/nuxt/commands/task-continue.md +50 -0
  129. package/presets/claude/nuxt/commands/task.md +56 -0
  130. package/presets/claude/nuxt/commands/technical-retro.md +62 -0
  131. package/presets/claude/nuxt/hooks/README.md +14 -0
  132. package/presets/claude/nuxt/hooks/chain-team-phases.sh +723 -0
  133. package/presets/claude/nuxt/hooks/examples/README.md +18 -0
  134. package/presets/claude/nuxt/hooks/examples/format-edited.example.sh +11 -0
  135. package/presets/claude/nuxt/hooks/examples/secret-guard.example.sh +10 -0
  136. package/presets/claude/nuxt/hooks/examples/test-on-save.example.sh +8 -0
  137. package/presets/claude/nuxt/hooks/guard-shell-command.sh +77 -0
  138. package/presets/claude/nuxt/mcp.json +20 -0
  139. package/presets/claude/nuxt/rules/README.md +90 -0
  140. package/presets/claude/nuxt/rules/anti-hallucination/vue-nuxt-anti-hallucination.md +72 -0
  141. package/presets/claude/nuxt/rules/api-and-data/README.md +9 -0
  142. package/presets/claude/nuxt/rules/api-and-data/api-services.md +76 -0
  143. package/presets/claude/nuxt/rules/api-and-data/http-client.md +16 -0
  144. package/presets/claude/nuxt/rules/api-and-data/store-pinia.md +67 -0
  145. package/presets/claude/nuxt/rules/architecture/README.md +12 -0
  146. package/presets/claude/nuxt/rules/architecture/architecture-boundaries-ui.md +15 -0
  147. package/presets/claude/nuxt/rules/architecture/architecture-boundaries.md +98 -0
  148. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +88 -0
  149. package/presets/claude/nuxt/rules/architecture/layer-barrel-exports.md +71 -0
  150. package/presets/claude/nuxt/rules/architecture/public-imports.md +60 -0
  151. package/presets/claude/nuxt/rules/architecture/reference-features.md +49 -0
  152. package/presets/claude/nuxt/rules/stack/README.md +12 -0
  153. package/presets/claude/nuxt/rules/stack/navigation-router-ui.md +14 -0
  154. package/presets/claude/nuxt/rules/stack/navigation-router.md +59 -0
  155. package/presets/claude/nuxt/rules/stack/no-type-assertion.md +61 -0
  156. package/presets/claude/nuxt/rules/stack/nuxt-app-core.md +43 -0
  157. package/presets/claude/nuxt/rules/stack/nuxt-pages-routing.md +39 -0
  158. package/presets/claude/nuxt/rules/stack/script-setup-conventions.md +12 -0
  159. package/presets/claude/nuxt/rules/stack/types-jsdoc.md +40 -0
  160. package/presets/claude/nuxt/rules/testing/README.md +11 -0
  161. package/presets/claude/nuxt/rules/testing/playwright-agents.md +78 -0
  162. package/presets/claude/nuxt/rules/testing/tests-e2e-structure.md +49 -0
  163. package/presets/claude/nuxt/rules/testing/tests-unit.md +75 -0
  164. package/presets/claude/nuxt/rules/tooling-and-review/README.md +15 -0
  165. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +15 -0
  166. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +191 -0
  167. package/presets/claude/nuxt/rules/tooling-and-review/anti-sycophancy-discipline.md +33 -0
  168. package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +49 -0
  169. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +63 -0
  170. package/presets/claude/nuxt/rules/tooling-and-review/design-guidance.md +114 -0
  171. package/presets/claude/nuxt/rules/tooling-and-review/package-manager.md +16 -0
  172. package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +43 -0
  173. package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +32 -0
  174. package/presets/claude/nuxt/rules/tooling-and-review/preset-no-cross-stack-leakage.md +79 -0
  175. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +35 -0
  176. package/presets/claude/nuxt/rules/tooling-and-review/preset-token-budget.md +39 -0
  177. package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +50 -0
  178. package/presets/claude/nuxt/rules/tooling-and-review/security-nuxt.md +37 -0
  179. package/presets/claude/nuxt/rules/tooling-and-review/technical-retro.md +15 -0
  180. package/presets/claude/nuxt/rules/ui-and-accessibility/README.md +12 -0
  181. package/presets/claude/nuxt/rules/ui-and-accessibility/css-property-order.md +11 -0
  182. package/presets/claude/nuxt/rules/ui-and-accessibility/no-v-bind-spread.md +12 -0
  183. package/presets/claude/nuxt/rules/ui-and-accessibility/vue-a11y-coding.md +16 -0
  184. package/presets/claude/nuxt/rules/ui-and-accessibility/vue-ui.md +34 -0
  185. package/presets/claude/nuxt/skills/README.md +17 -0
  186. package/presets/claude/nuxt/skills/ci-investigation/SKILL.md +36 -0
  187. package/presets/claude/nuxt/skills/code-review/SKILL.md +38 -0
  188. package/presets/claude/nuxt/skills/debug-investigation/SKILL.md +32 -0
  189. package/presets/claude/nuxt/skills/feature-delivery/SKILL.md +34 -0
  190. package/presets/claude/nuxt/skills/playwright-e2e/SKILL.md +37 -0
  191. package/presets/claude/nuxt/skills/technical-retro/SKILL.md +54 -0
  192. package/presets/claude/nuxt/skills/unit-testing/SKILL.md +32 -0
  193. package/presets/claude/nuxt/skills/vue-performance/SKILL.md +53 -0
  194. package/presets/claude/nuxt/skills/write-adr/SKILL.md +41 -0
  195. package/presets/claude/nuxt/team/README.md +136 -0
  196. package/presets/claude/nuxt/team/conventions.md +21 -0
  197. package/presets/claude/nuxt/team/fixtures/artifact-manifest.example.json +61 -0
  198. package/presets/claude/nuxt/team/fixtures/bugfix-standard.json +25 -0
  199. package/presets/claude/nuxt/team/fixtures/feature-full.json +28 -0
  200. package/presets/claude/nuxt/team/fixtures/feature-light.json +27 -0
  201. package/presets/claude/nuxt/team/tasks/.gitkeep +1 -0
  202. package/presets/claude/php-hexagonal/agents/build-verifier.md +10 -3
  203. package/presets/claude/php-hexagonal/agents/code-reviewer.md +8 -1
  204. package/presets/claude/php-hexagonal/agents/feature-developer.md +8 -1
  205. package/presets/claude/php-hexagonal/agents/task-analyst.md +8 -1
  206. package/presets/claude/php-hexagonal/agents/task-router.md +31 -3
  207. package/presets/claude/php-hexagonal/commands/task.md +8 -6
  208. package/presets/claude/php-hexagonal/hooks/README.md +1 -1
  209. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +195 -53
  210. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +30 -5
  211. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +2 -1
  212. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-no-cross-stack-leakage.md +16 -1
  213. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  214. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-token-budget.md +1 -0
  215. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +5 -0
  216. package/presets/claude/php-hexagonal/team/README.md +13 -2
  217. package/presets/claude/php-laravel/agents/build-verifier.md +10 -3
  218. package/presets/claude/php-laravel/agents/code-reviewer.md +8 -1
  219. package/presets/claude/php-laravel/agents/feature-developer.md +8 -1
  220. package/presets/claude/php-laravel/agents/task-analyst.md +8 -1
  221. package/presets/claude/php-laravel/agents/task-router.md +31 -3
  222. package/presets/claude/php-laravel/commands/task.md +8 -6
  223. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +195 -53
  224. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +30 -5
  225. package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +2 -1
  226. package/presets/claude/php-laravel/rules/tooling-and-review/preset-no-cross-stack-leakage.md +16 -1
  227. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  228. package/presets/claude/php-laravel/rules/tooling-and-review/preset-token-budget.md +1 -0
  229. package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +5 -0
  230. package/presets/claude/php-laravel/team/README.md +13 -2
  231. package/presets/claude/svelte/CLAUDE.md +39 -0
  232. package/presets/claude/svelte/MCP.md +16 -0
  233. package/presets/claude/svelte/README.md +13 -0
  234. package/presets/claude/svelte/REPO_AGENTS.md +49 -0
  235. package/presets/claude/svelte/agents/README.md +199 -0
  236. package/presets/claude/svelte/agents/accessibility-reviewer.md +59 -0
  237. package/presets/claude/svelte/agents/api-contract-reviewer.md +63 -0
  238. package/presets/claude/svelte/agents/build-verifier.md +89 -0
  239. package/presets/claude/svelte/agents/ci-investigator.md +60 -0
  240. package/presets/claude/svelte/agents/code-reviewer.md +62 -0
  241. package/presets/claude/svelte/agents/codebase-analyzer.md +28 -0
  242. package/presets/claude/svelte/agents/debugger.md +65 -0
  243. package/presets/claude/svelte/agents/feature-developer.md +59 -0
  244. package/presets/claude/svelte/agents/migration-specialist.md +67 -0
  245. package/presets/claude/svelte/agents/performance-auditor.md +66 -0
  246. package/presets/claude/svelte/agents/playwright-test-generator.md +75 -0
  247. package/presets/claude/svelte/agents/playwright-test-healer.md +61 -0
  248. package/presets/claude/svelte/agents/playwright-test-planner.md +67 -0
  249. package/presets/claude/svelte/agents/qa-tester.md +54 -0
  250. package/presets/claude/svelte/agents/security-reviewer.md +60 -0
  251. package/presets/claude/svelte/agents/solution-architect.md +68 -0
  252. package/presets/claude/svelte/agents/task-analyst.md +109 -0
  253. package/presets/claude/svelte/agents/task-router.md +140 -0
  254. package/presets/claude/svelte/agents/tech-writer.md +54 -0
  255. package/presets/claude/svelte/agents/unit-test-generator.md +37 -0
  256. package/presets/claude/svelte/agents/unit-test-healer.md +38 -0
  257. package/presets/claude/svelte/agents/unit-test-planner.md +60 -0
  258. package/presets/claude/svelte/commands/README.md +13 -0
  259. package/presets/claude/svelte/commands/feature-continue.md +51 -0
  260. package/presets/claude/svelte/commands/feature-start.md +30 -0
  261. package/presets/claude/svelte/commands/task-continue.md +50 -0
  262. package/presets/claude/svelte/commands/task.md +56 -0
  263. package/presets/claude/svelte/commands/technical-retro.md +62 -0
  264. package/presets/claude/svelte/hooks/README.md +14 -0
  265. package/presets/claude/svelte/hooks/chain-team-phases.sh +723 -0
  266. package/presets/claude/svelte/hooks/examples/README.md +18 -0
  267. package/presets/claude/svelte/hooks/examples/format-edited.example.sh +13 -0
  268. package/presets/claude/svelte/hooks/examples/secret-guard.example.sh +10 -0
  269. package/presets/claude/svelte/hooks/examples/test-on-save.example.sh +14 -0
  270. package/presets/claude/svelte/hooks/guard-shell-command.sh +77 -0
  271. package/presets/claude/svelte/mcp.json +20 -0
  272. package/presets/claude/svelte/rules/README.md +90 -0
  273. package/presets/claude/svelte/rules/anti-hallucination/svelte-sveltekit-anti-hallucination.md +71 -0
  274. package/presets/claude/svelte/rules/api-and-data/README.md +9 -0
  275. package/presets/claude/svelte/rules/api-and-data/api-services.md +45 -0
  276. package/presets/claude/svelte/rules/api-and-data/http-client.md +17 -0
  277. package/presets/claude/svelte/rules/api-and-data/store-svelte.md +67 -0
  278. package/presets/claude/svelte/rules/architecture/README.md +12 -0
  279. package/presets/claude/svelte/rules/architecture/architecture-boundaries-ui.md +16 -0
  280. package/presets/claude/svelte/rules/architecture/architecture-boundaries.md +65 -0
  281. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +61 -0
  282. package/presets/claude/svelte/rules/architecture/layer-barrel-exports.md +73 -0
  283. package/presets/claude/svelte/rules/architecture/public-imports.md +43 -0
  284. package/presets/claude/svelte/rules/architecture/reference-features.md +50 -0
  285. package/presets/claude/svelte/rules/stack/README.md +12 -0
  286. package/presets/claude/svelte/rules/stack/navigation-router-ui.md +26 -0
  287. package/presets/claude/svelte/rules/stack/navigation-router.md +41 -0
  288. package/presets/claude/svelte/rules/stack/no-type-assertion.md +59 -0
  289. package/presets/claude/svelte/rules/stack/svelte-app-core.md +44 -0
  290. package/presets/claude/svelte/rules/stack/svelte-script-conventions.md +33 -0
  291. package/presets/claude/svelte/rules/stack/sveltekit-routing.md +40 -0
  292. package/presets/claude/svelte/rules/stack/types-jsdoc.md +42 -0
  293. package/presets/claude/svelte/rules/testing/README.md +11 -0
  294. package/presets/claude/svelte/rules/testing/playwright-agents.md +80 -0
  295. package/presets/claude/svelte/rules/testing/tests-e2e-structure.md +51 -0
  296. package/presets/claude/svelte/rules/testing/tests-unit.md +40 -0
  297. package/presets/claude/svelte/rules/tooling-and-review/README.md +15 -0
  298. package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +17 -0
  299. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +193 -0
  300. package/presets/claude/svelte/rules/tooling-and-review/anti-sycophancy-discipline.md +29 -0
  301. package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +50 -0
  302. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +64 -0
  303. package/presets/claude/svelte/rules/tooling-and-review/design-guidance.md +110 -0
  304. package/presets/claude/svelte/rules/tooling-and-review/package-manager.md +17 -0
  305. package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +44 -0
  306. package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +36 -0
  307. package/presets/claude/svelte/rules/tooling-and-review/preset-no-cross-stack-leakage.md +83 -0
  308. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +39 -0
  309. package/presets/claude/svelte/rules/tooling-and-review/preset-token-budget.md +41 -0
  310. package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +54 -0
  311. package/presets/claude/svelte/rules/tooling-and-review/security-sveltekit.md +41 -0
  312. package/presets/claude/svelte/rules/tooling-and-review/technical-retro.md +17 -0
  313. package/presets/claude/svelte/rules/ui-and-accessibility/README.md +12 -0
  314. package/presets/claude/svelte/rules/ui-and-accessibility/css-property-order.md +12 -0
  315. package/presets/claude/svelte/rules/ui-and-accessibility/no-rest-props-spread.md +32 -0
  316. package/presets/claude/svelte/rules/ui-and-accessibility/svelte-a11y-coding.md +28 -0
  317. package/presets/claude/svelte/rules/ui-and-accessibility/svelte-ui.md +38 -0
  318. package/presets/claude/svelte/skills/README.md +17 -0
  319. package/presets/claude/svelte/skills/ci-investigation/SKILL.md +36 -0
  320. package/presets/claude/svelte/skills/code-review/SKILL.md +38 -0
  321. package/presets/claude/svelte/skills/debug-investigation/SKILL.md +32 -0
  322. package/presets/claude/svelte/skills/feature-delivery/SKILL.md +34 -0
  323. package/presets/claude/svelte/skills/playwright-e2e/SKILL.md +37 -0
  324. package/presets/claude/svelte/skills/svelte-performance/SKILL.md +52 -0
  325. package/presets/claude/svelte/skills/technical-retro/SKILL.md +54 -0
  326. package/presets/claude/svelte/skills/unit-testing/SKILL.md +32 -0
  327. package/presets/claude/svelte/skills/write-adr/SKILL.md +41 -0
  328. package/presets/claude/svelte/team/README.md +136 -0
  329. package/presets/claude/svelte/team/conventions.md +21 -0
  330. package/presets/claude/svelte/team/fixtures/artifact-manifest.example.json +61 -0
  331. package/presets/claude/svelte/team/fixtures/bugfix-standard.json +25 -0
  332. package/presets/claude/svelte/team/fixtures/feature-full.json +28 -0
  333. package/presets/claude/svelte/team/fixtures/feature-light.json +27 -0
  334. package/presets/claude/svelte/team/tasks/.gitkeep +1 -0
  335. package/presets/cursor/go/agents/build-verifier.md +9 -2
  336. package/presets/cursor/go/agents/code-reviewer.md +8 -1
  337. package/presets/cursor/go/agents/feature-developer.md +8 -1
  338. package/presets/cursor/go/agents/task-analyst.md +8 -1
  339. package/presets/cursor/go/agents/task-router.md +31 -3
  340. package/presets/cursor/go/commands/task.md +8 -6
  341. package/presets/cursor/go/hooks/chain-team-phases.sh +195 -53
  342. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +30 -5
  343. package/presets/cursor/go/rules/preset-layering.mdc +2 -1
  344. package/presets/cursor/go/rules/preset-no-cross-stack-leakage.mdc +16 -1
  345. package/presets/cursor/go/rules/preset-pr-checklist.mdc +2 -1
  346. package/presets/cursor/go/rules/preset-token-budget.mdc +1 -0
  347. package/presets/cursor/go/rules/preset-twin-sync.mdc +5 -0
  348. package/presets/cursor/go/team/README.md +13 -2
  349. package/presets/cursor/ios-swift/agents/build-verifier.md +10 -3
  350. package/presets/cursor/ios-swift/agents/code-reviewer.md +9 -14
  351. package/presets/cursor/ios-swift/agents/feature-developer.md +8 -1
  352. package/presets/cursor/ios-swift/agents/task-analyst.md +8 -1
  353. package/presets/cursor/ios-swift/agents/task-router.md +31 -3
  354. package/presets/cursor/ios-swift/commands/task.md +8 -6
  355. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +195 -54
  356. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +23 -2
  357. package/presets/cursor/ios-swift/rules/preset-layering.mdc +2 -1
  358. package/presets/cursor/ios-swift/rules/preset-no-cross-stack-leakage.mdc +16 -1
  359. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +2 -1
  360. package/presets/cursor/ios-swift/rules/preset-token-budget.mdc +1 -0
  361. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +5 -0
  362. package/presets/cursor/ios-swift/team/README.md +13 -2
  363. package/presets/cursor/java/agents/build-verifier.md +9 -2
  364. package/presets/cursor/java/agents/code-reviewer.md +8 -1
  365. package/presets/cursor/java/agents/feature-developer.md +8 -1
  366. package/presets/cursor/java/agents/task-analyst.md +8 -1
  367. package/presets/cursor/java/agents/task-router.md +31 -3
  368. package/presets/cursor/java/commands/task.md +8 -6
  369. package/presets/cursor/java/hooks/chain-team-phases.sh +195 -53
  370. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +30 -5
  371. package/presets/cursor/java/rules/preset-layering.mdc +2 -1
  372. package/presets/cursor/java/rules/preset-no-cross-stack-leakage.mdc +16 -1
  373. package/presets/cursor/java/rules/preset-pr-checklist.mdc +2 -1
  374. package/presets/cursor/java/rules/preset-token-budget.mdc +1 -0
  375. package/presets/cursor/java/rules/preset-twin-sync.mdc +5 -0
  376. package/presets/cursor/java/team/README.md +13 -2
  377. package/presets/cursor/mcp-ts/agents/build-verifier.md +9 -2
  378. package/presets/cursor/mcp-ts/agents/feature-developer.md +7 -1
  379. package/presets/cursor/mcp-ts/agents/task-analyst.md +8 -1
  380. package/presets/cursor/mcp-ts/agents/task-router.md +31 -3
  381. package/presets/cursor/mcp-ts/commands/task.md +8 -6
  382. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +181 -39
  383. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +30 -5
  384. package/presets/cursor/mcp-ts/rules/preset-layering.mdc +2 -1
  385. package/presets/cursor/mcp-ts/rules/preset-no-cross-stack-leakage.mdc +16 -1
  386. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +2 -1
  387. package/presets/cursor/mcp-ts/rules/preset-token-budget.mdc +1 -0
  388. package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +5 -0
  389. package/presets/cursor/mcp-ts/team/README.md +13 -2
  390. package/presets/cursor/next/agents/accessibility-reviewer.md +7 -14
  391. package/presets/cursor/next/agents/api-contract-reviewer.md +7 -14
  392. package/presets/cursor/next/agents/build-verifier.md +10 -15
  393. package/presets/cursor/next/agents/ci-investigator.md +7 -14
  394. package/presets/cursor/next/agents/code-reviewer.md +9 -14
  395. package/presets/cursor/next/agents/debugger.md +6 -12
  396. package/presets/cursor/next/agents/feature-developer.md +8 -1
  397. package/presets/cursor/next/agents/migration-specialist.md +7 -14
  398. package/presets/cursor/next/agents/performance-auditor.md +6 -13
  399. package/presets/cursor/next/agents/qa-tester.md +6 -13
  400. package/presets/cursor/next/agents/security-reviewer.md +7 -14
  401. package/presets/cursor/next/agents/solution-architect.md +6 -12
  402. package/presets/cursor/next/agents/task-analyst.md +10 -16
  403. package/presets/cursor/next/agents/task-router.md +31 -3
  404. package/presets/cursor/next/agents/tech-writer.md +6 -13
  405. package/presets/cursor/next/agents/unit-test-generator.md +6 -11
  406. package/presets/cursor/next/agents/unit-test-healer.md +6 -11
  407. package/presets/cursor/next/agents/unit-test-planner.md +6 -13
  408. package/presets/cursor/next/commands/task.md +8 -6
  409. package/presets/cursor/next/hooks/chain-team-phases.sh +197 -54
  410. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +30 -5
  411. package/presets/cursor/next/rules/preset-layering.mdc +2 -1
  412. package/presets/cursor/next/rules/preset-no-cross-stack-leakage.mdc +16 -1
  413. package/presets/cursor/next/rules/preset-pr-checklist.mdc +2 -1
  414. package/presets/cursor/next/rules/preset-token-budget.mdc +1 -0
  415. package/presets/cursor/next/rules/preset-twin-sync.mdc +5 -0
  416. package/presets/cursor/next/team/README.md +16 -4
  417. package/presets/cursor/next/team/fixtures/artifact-manifest.example.json +61 -0
  418. package/presets/cursor/next/team/fixtures/bugfix-standard.json +10 -0
  419. package/presets/cursor/next/team/fixtures/feature-full.json +10 -0
  420. package/presets/cursor/next/team/fixtures/feature-light.json +10 -0
  421. package/presets/cursor/nuxt/AGENTS.md +39 -0
  422. package/presets/cursor/nuxt/BUGBOT.md +14 -0
  423. package/presets/cursor/nuxt/MCP.md +16 -0
  424. package/presets/cursor/nuxt/README.md +47 -0
  425. package/presets/cursor/nuxt/REPO_AGENTS.md +49 -0
  426. package/presets/cursor/nuxt/agents/README.md +206 -0
  427. package/presets/cursor/nuxt/agents/accessibility-reviewer.md +60 -0
  428. package/presets/cursor/nuxt/agents/api-contract-reviewer.md +64 -0
  429. package/presets/cursor/nuxt/agents/build-verifier.md +90 -0
  430. package/presets/cursor/nuxt/agents/ci-investigator.md +61 -0
  431. package/presets/cursor/nuxt/agents/code-reviewer.md +63 -0
  432. package/presets/cursor/nuxt/agents/codebase-analyzer.md +28 -0
  433. package/presets/cursor/nuxt/agents/debugger.md +66 -0
  434. package/presets/cursor/nuxt/agents/feature-developer.md +60 -0
  435. package/presets/cursor/nuxt/agents/migration-specialist.md +68 -0
  436. package/presets/cursor/nuxt/agents/performance-auditor.md +67 -0
  437. package/presets/cursor/nuxt/agents/playwright-test-generator.md +27 -0
  438. package/presets/cursor/nuxt/agents/playwright-test-healer.md +27 -0
  439. package/presets/cursor/nuxt/agents/playwright-test-planner.md +28 -0
  440. package/presets/cursor/nuxt/agents/qa-tester.md +55 -0
  441. package/presets/cursor/nuxt/agents/security-reviewer.md +61 -0
  442. package/presets/cursor/nuxt/agents/solution-architect.md +69 -0
  443. package/presets/cursor/nuxt/agents/task-analyst.md +110 -0
  444. package/presets/cursor/nuxt/agents/task-router.md +141 -0
  445. package/presets/cursor/nuxt/agents/tech-writer.md +55 -0
  446. package/presets/cursor/nuxt/agents/unit-test-generator.md +38 -0
  447. package/presets/cursor/nuxt/agents/unit-test-healer.md +39 -0
  448. package/presets/cursor/nuxt/agents/unit-test-planner.md +61 -0
  449. package/presets/cursor/nuxt/commands/README.md +51 -0
  450. package/presets/cursor/nuxt/commands/feature-continue.md +19 -0
  451. package/presets/cursor/nuxt/commands/feature-start.md +33 -0
  452. package/presets/cursor/nuxt/commands/task-continue.md +50 -0
  453. package/presets/cursor/nuxt/commands/task.md +56 -0
  454. package/presets/cursor/nuxt/commands/technical-retro.md +85 -0
  455. package/presets/cursor/nuxt/hooks/README.md +12 -0
  456. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +727 -0
  457. package/presets/cursor/nuxt/hooks/examples/README.md +18 -0
  458. package/presets/cursor/nuxt/hooks/examples/format-edited.example.sh +11 -0
  459. package/presets/cursor/nuxt/hooks/examples/secret-guard.example.sh +10 -0
  460. package/presets/cursor/nuxt/hooks/examples/test-on-save.example.sh +8 -0
  461. package/presets/cursor/nuxt/hooks/guard-shell-command.sh +77 -0
  462. package/presets/cursor/nuxt/hooks.json +17 -0
  463. package/presets/cursor/nuxt/mcp.json +19 -0
  464. package/presets/cursor/nuxt/rules/README.md +108 -0
  465. package/presets/cursor/nuxt/rules/agent-team-intake.mdc +16 -0
  466. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +192 -0
  467. package/presets/cursor/nuxt/rules/anti-sycophancy-discipline.mdc +30 -0
  468. package/presets/cursor/nuxt/rules/api-services.mdc +79 -0
  469. package/presets/cursor/nuxt/rules/architecture-boundaries-ui.mdc +15 -0
  470. package/presets/cursor/nuxt/rules/architecture-boundaries.mdc +97 -0
  471. package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +51 -0
  472. package/presets/cursor/nuxt/rules/code-review-mr.mdc +58 -0
  473. package/presets/cursor/nuxt/rules/css-property-order-stylelint.mdc +12 -0
  474. package/presets/cursor/nuxt/rules/design-guidance.mdc +111 -0
  475. package/presets/cursor/nuxt/rules/feature-delivery-workflow.mdc +83 -0
  476. package/presets/cursor/nuxt/rules/http-client.mdc +15 -0
  477. package/presets/cursor/nuxt/rules/layer-barrel-exports.mdc +74 -0
  478. package/presets/cursor/nuxt/rules/navigation-router-stack.mdc +61 -0
  479. package/presets/cursor/nuxt/rules/navigation-router-ui.mdc +16 -0
  480. package/presets/cursor/nuxt/rules/no-type-assertion-as-import-export.mdc +60 -0
  481. package/presets/cursor/nuxt/rules/no-v-bind-spread.mdc +13 -0
  482. package/presets/cursor/nuxt/rules/nuxt-app-core.mdc +45 -0
  483. package/presets/cursor/nuxt/rules/nuxt-pages-routing.mdc +37 -0
  484. package/presets/cursor/nuxt/rules/package-manager.mdc +18 -0
  485. package/presets/cursor/nuxt/rules/playwright-agents.mdc +80 -0
  486. package/presets/cursor/nuxt/rules/post-change-lint.mdc +42 -0
  487. package/presets/cursor/nuxt/rules/preset-layering.mdc +37 -0
  488. package/presets/cursor/nuxt/rules/preset-no-cross-stack-leakage.mdc +84 -0
  489. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +40 -0
  490. package/presets/cursor/nuxt/rules/preset-token-budget.mdc +42 -0
  491. package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +55 -0
  492. package/presets/cursor/nuxt/rules/public-imports.mdc +62 -0
  493. package/presets/cursor/nuxt/rules/reference-features.mdc +49 -0
  494. package/presets/cursor/nuxt/rules/script-setup-conventions.mdc +13 -0
  495. package/presets/cursor/nuxt/rules/security-nuxt.mdc +34 -0
  496. package/presets/cursor/nuxt/rules/store-pinia.mdc +68 -0
  497. package/presets/cursor/nuxt/rules/technical-retro.mdc +16 -0
  498. package/presets/cursor/nuxt/rules/tests-e2e-structure.mdc +51 -0
  499. package/presets/cursor/nuxt/rules/tests-unit.mdc +78 -0
  500. package/presets/cursor/nuxt/rules/types-jsdoc.mdc +42 -0
  501. package/presets/cursor/nuxt/rules/vue-a11y-coding.mdc +15 -0
  502. package/presets/cursor/nuxt/rules/vue-nuxt-anti-hallucination.mdc +68 -0
  503. package/presets/cursor/nuxt/rules/vue-ui.mdc +33 -0
  504. package/presets/cursor/nuxt/skills/README.md +17 -0
  505. package/presets/cursor/nuxt/skills/ci-investigation/SKILL.md +36 -0
  506. package/presets/cursor/nuxt/skills/code-review/SKILL.md +38 -0
  507. package/presets/cursor/nuxt/skills/debug-investigation/SKILL.md +32 -0
  508. package/presets/cursor/nuxt/skills/feature-delivery/SKILL.md +34 -0
  509. package/presets/cursor/nuxt/skills/playwright-e2e/SKILL.md +37 -0
  510. package/presets/cursor/nuxt/skills/technical-retro/SKILL.md +54 -0
  511. package/presets/cursor/nuxt/skills/unit-testing/SKILL.md +32 -0
  512. package/presets/cursor/nuxt/skills/vue-performance/SKILL.md +53 -0
  513. package/presets/cursor/nuxt/skills/write-adr/SKILL.md +41 -0
  514. package/presets/cursor/nuxt/team/README.md +140 -0
  515. package/presets/cursor/nuxt/team/conventions.md +21 -0
  516. package/presets/cursor/nuxt/team/fixtures/artifact-manifest.example.json +61 -0
  517. package/presets/cursor/nuxt/team/fixtures/bugfix-standard.json +25 -0
  518. package/presets/cursor/nuxt/team/fixtures/feature-full.json +28 -0
  519. package/presets/cursor/nuxt/team/fixtures/feature-light.json +27 -0
  520. package/presets/cursor/nuxt/team/fixtures/metrics-scenarios/tasks/human-gate/metrics.json +69 -0
  521. package/presets/cursor/nuxt/team/fixtures/metrics-scenarios/tasks/missing-ledger/status.json +5 -0
  522. package/presets/cursor/nuxt/team/fixtures/metrics-scenarios/tasks/parallel-receipts/metrics.json +79 -0
  523. package/presets/cursor/nuxt/team/fixtures/metrics-scenarios/tasks/serial-retry/metrics.json +124 -0
  524. package/presets/cursor/nuxt/team/fixtures/metrics-scenarios/tasks/validation-failed/metrics.json +124 -0
  525. package/presets/cursor/nuxt/team/fixtures/metrics.example.json +54 -0
  526. package/presets/cursor/nuxt/team/tasks/.gitkeep +0 -0
  527. package/presets/cursor/php-hexagonal/agents/build-verifier.md +9 -2
  528. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +8 -1
  529. package/presets/cursor/php-hexagonal/agents/feature-developer.md +8 -1
  530. package/presets/cursor/php-hexagonal/agents/task-analyst.md +8 -1
  531. package/presets/cursor/php-hexagonal/agents/task-router.md +31 -3
  532. package/presets/cursor/php-hexagonal/commands/task.md +8 -6
  533. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +195 -53
  534. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +30 -5
  535. package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +2 -1
  536. package/presets/cursor/php-hexagonal/rules/preset-no-cross-stack-leakage.mdc +16 -1
  537. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +2 -1
  538. package/presets/cursor/php-hexagonal/rules/preset-token-budget.mdc +1 -0
  539. package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +5 -0
  540. package/presets/cursor/php-hexagonal/team/README.md +13 -2
  541. package/presets/cursor/php-laravel/agents/build-verifier.md +9 -2
  542. package/presets/cursor/php-laravel/agents/code-reviewer.md +8 -1
  543. package/presets/cursor/php-laravel/agents/feature-developer.md +8 -1
  544. package/presets/cursor/php-laravel/agents/task-analyst.md +8 -1
  545. package/presets/cursor/php-laravel/agents/task-router.md +31 -3
  546. package/presets/cursor/php-laravel/commands/task.md +8 -6
  547. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +195 -53
  548. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +30 -5
  549. package/presets/cursor/php-laravel/rules/preset-layering.mdc +2 -1
  550. package/presets/cursor/php-laravel/rules/preset-no-cross-stack-leakage.mdc +16 -1
  551. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +2 -1
  552. package/presets/cursor/php-laravel/rules/preset-token-budget.mdc +1 -0
  553. package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +5 -0
  554. package/presets/cursor/php-laravel/team/README.md +13 -2
  555. package/presets/cursor/svelte/AGENTS.md +39 -0
  556. package/presets/cursor/svelte/BUGBOT.md +14 -0
  557. package/presets/cursor/svelte/MCP.md +16 -0
  558. package/presets/cursor/svelte/README.md +47 -0
  559. package/presets/cursor/svelte/REPO_AGENTS.md +49 -0
  560. package/presets/cursor/svelte/agents/README.md +206 -0
  561. package/presets/cursor/svelte/agents/accessibility-reviewer.md +60 -0
  562. package/presets/cursor/svelte/agents/api-contract-reviewer.md +64 -0
  563. package/presets/cursor/svelte/agents/build-verifier.md +90 -0
  564. package/presets/cursor/svelte/agents/ci-investigator.md +61 -0
  565. package/presets/cursor/svelte/agents/code-reviewer.md +63 -0
  566. package/presets/cursor/svelte/agents/codebase-analyzer.md +28 -0
  567. package/presets/cursor/svelte/agents/debugger.md +66 -0
  568. package/presets/cursor/svelte/agents/feature-developer.md +60 -0
  569. package/presets/cursor/svelte/agents/migration-specialist.md +68 -0
  570. package/presets/cursor/svelte/agents/performance-auditor.md +67 -0
  571. package/presets/cursor/svelte/agents/playwright-test-generator.md +27 -0
  572. package/presets/cursor/svelte/agents/playwright-test-healer.md +27 -0
  573. package/presets/cursor/svelte/agents/playwright-test-planner.md +28 -0
  574. package/presets/cursor/svelte/agents/qa-tester.md +55 -0
  575. package/presets/cursor/svelte/agents/security-reviewer.md +61 -0
  576. package/presets/cursor/svelte/agents/solution-architect.md +69 -0
  577. package/presets/cursor/svelte/agents/task-analyst.md +110 -0
  578. package/presets/cursor/svelte/agents/task-router.md +141 -0
  579. package/presets/cursor/svelte/agents/tech-writer.md +55 -0
  580. package/presets/cursor/svelte/agents/unit-test-generator.md +38 -0
  581. package/presets/cursor/svelte/agents/unit-test-healer.md +39 -0
  582. package/presets/cursor/svelte/agents/unit-test-planner.md +61 -0
  583. package/presets/cursor/svelte/commands/README.md +51 -0
  584. package/presets/cursor/svelte/commands/feature-continue.md +19 -0
  585. package/presets/cursor/svelte/commands/feature-start.md +33 -0
  586. package/presets/cursor/svelte/commands/task-continue.md +50 -0
  587. package/presets/cursor/svelte/commands/task.md +56 -0
  588. package/presets/cursor/svelte/commands/technical-retro.md +85 -0
  589. package/presets/cursor/svelte/hooks/README.md +12 -0
  590. package/presets/cursor/svelte/hooks/chain-team-phases.sh +727 -0
  591. package/presets/cursor/svelte/hooks/examples/README.md +18 -0
  592. package/presets/cursor/svelte/hooks/examples/format-edited.example.sh +13 -0
  593. package/presets/cursor/svelte/hooks/examples/secret-guard.example.sh +10 -0
  594. package/presets/cursor/svelte/hooks/examples/test-on-save.example.sh +14 -0
  595. package/presets/cursor/svelte/hooks/guard-shell-command.sh +77 -0
  596. package/presets/cursor/svelte/hooks.json +17 -0
  597. package/presets/cursor/svelte/mcp.json +19 -0
  598. package/presets/cursor/svelte/rules/README.md +86 -0
  599. package/presets/cursor/svelte/rules/agent-team-intake.mdc +16 -0
  600. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +192 -0
  601. package/presets/cursor/svelte/rules/anti-sycophancy-discipline.mdc +30 -0
  602. package/presets/cursor/svelte/rules/api-services.mdc +46 -0
  603. package/presets/cursor/svelte/rules/architecture-boundaries-ui.mdc +15 -0
  604. package/presets/cursor/svelte/rules/architecture-boundaries.mdc +61 -0
  605. package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +51 -0
  606. package/presets/cursor/svelte/rules/code-review-mr.mdc +58 -0
  607. package/presets/cursor/svelte/rules/css-property-order-stylelint.mdc +12 -0
  608. package/presets/cursor/svelte/rules/design-guidance.mdc +111 -0
  609. package/presets/cursor/svelte/rules/feature-delivery-workflow.mdc +55 -0
  610. package/presets/cursor/svelte/rules/http-client.mdc +16 -0
  611. package/presets/cursor/svelte/rules/layer-barrel-exports.mdc +74 -0
  612. package/presets/cursor/svelte/rules/navigation-router-stack.mdc +40 -0
  613. package/presets/cursor/svelte/rules/navigation-router-ui.mdc +25 -0
  614. package/presets/cursor/svelte/rules/no-rest-props-spread.mdc +32 -0
  615. package/presets/cursor/svelte/rules/no-type-assertion-as-import-export.mdc +60 -0
  616. package/presets/cursor/svelte/rules/package-manager.mdc +18 -0
  617. package/presets/cursor/svelte/rules/playwright-agents.mdc +80 -0
  618. package/presets/cursor/svelte/rules/post-change-lint.mdc +42 -0
  619. package/presets/cursor/svelte/rules/preset-layering.mdc +37 -0
  620. package/presets/cursor/svelte/rules/preset-no-cross-stack-leakage.mdc +84 -0
  621. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +40 -0
  622. package/presets/cursor/svelte/rules/preset-token-budget.mdc +42 -0
  623. package/presets/cursor/svelte/rules/preset-twin-sync.mdc +55 -0
  624. package/presets/cursor/svelte/rules/public-imports.mdc +45 -0
  625. package/presets/cursor/svelte/rules/reference-features.mdc +51 -0
  626. package/presets/cursor/svelte/rules/security-sveltekit.mdc +38 -0
  627. package/presets/cursor/svelte/rules/store-svelte.mdc +66 -0
  628. package/presets/cursor/svelte/rules/svelte-a11y-coding.mdc +27 -0
  629. package/presets/cursor/svelte/rules/svelte-app-core.mdc +45 -0
  630. package/presets/cursor/svelte/rules/svelte-script-conventions.mdc +33 -0
  631. package/presets/cursor/svelte/rules/svelte-sveltekit-anti-hallucination.mdc +69 -0
  632. package/presets/cursor/svelte/rules/svelte-ui.mdc +37 -0
  633. package/presets/cursor/svelte/rules/sveltekit-routing.mdc +39 -0
  634. package/presets/cursor/svelte/rules/technical-retro.mdc +16 -0
  635. package/presets/cursor/svelte/rules/tests-e2e-structure.mdc +51 -0
  636. package/presets/cursor/svelte/rules/tests-unit.mdc +42 -0
  637. package/presets/cursor/svelte/rules/types-jsdoc.mdc +42 -0
  638. package/presets/cursor/svelte/skills/README.md +17 -0
  639. package/presets/cursor/svelte/skills/ci-investigation/SKILL.md +36 -0
  640. package/presets/cursor/svelte/skills/code-review/SKILL.md +38 -0
  641. package/presets/cursor/svelte/skills/debug-investigation/SKILL.md +32 -0
  642. package/presets/cursor/svelte/skills/feature-delivery/SKILL.md +34 -0
  643. package/presets/cursor/svelte/skills/playwright-e2e/SKILL.md +37 -0
  644. package/presets/cursor/svelte/skills/svelte-performance/SKILL.md +52 -0
  645. package/presets/cursor/svelte/skills/technical-retro/SKILL.md +54 -0
  646. package/presets/cursor/svelte/skills/unit-testing/SKILL.md +32 -0
  647. package/presets/cursor/svelte/skills/write-adr/SKILL.md +41 -0
  648. package/presets/cursor/svelte/team/README.md +140 -0
  649. package/presets/cursor/svelte/team/conventions.md +21 -0
  650. package/presets/cursor/svelte/team/fixtures/artifact-manifest.example.json +61 -0
  651. package/presets/cursor/svelte/team/fixtures/bugfix-standard.json +25 -0
  652. package/presets/cursor/svelte/team/fixtures/feature-full.json +28 -0
  653. package/presets/cursor/svelte/team/fixtures/feature-light.json +27 -0
  654. package/presets/cursor/svelte/team/fixtures/metrics-scenarios/tasks/human-gate/metrics.json +69 -0
  655. package/presets/cursor/svelte/team/fixtures/metrics-scenarios/tasks/missing-ledger/status.json +5 -0
  656. package/presets/cursor/svelte/team/fixtures/metrics-scenarios/tasks/parallel-receipts/metrics.json +79 -0
  657. package/presets/cursor/svelte/team/fixtures/metrics-scenarios/tasks/serial-retry/metrics.json +124 -0
  658. package/presets/cursor/svelte/team/fixtures/metrics-scenarios/tasks/validation-failed/metrics.json +124 -0
  659. package/presets/cursor/svelte/team/fixtures/metrics.example.json +54 -0
  660. package/presets/cursor/svelte/team/tasks/.gitkeep +0 -0
@@ -0,0 +1,69 @@
1
+ ---
2
+ description: Svelte/SvelteKit anti-hallucination banlist — phantom imports, load/server APIs, stores/runes
3
+ globs: "**/*.{svelte,ts,js},src/routes/**/*,src/lib/**/*"
4
+ alwaysApply: false
5
+ ---
6
+
7
+ # Svelte / SvelteKit anti-hallucination
8
+
9
+ These rows **OVERRIDE** generation for the listed patterns. Before inventing an import, load helper, or store API: verify against `package.json` (installed majors), `svelte.config.*`, and sibling files. If unsure, mark `// VERIFY: lib.symbol @ version` and surface the uncertainty — do not silently stub.
10
+
11
+ ## 1. Phantom `$app/*` / Kit modules
12
+
13
+ | ❌ Avoid | ✅ Prefer |
14
+ |---------|----------|
15
+ | Invented `$app/foo`, `$app/router`, `$app/auth` | Real `$app/navigation`, `$app/stores`, `$app/forms`, `$app/environment`, `$app/paths`, `$app/state` **for installed major** |
16
+ | Importing Next `next/navigation` / `next/link` | `$app/navigation`, `<a href>` |
17
+ | `navigateTo`, `<NuxtLink>`, `#imports` auto-import phantoms | Kit APIs + explicit imports that exist in repo |
18
+ | Invented `@sveltejs/kit` helpers not in docs/lockfile | Documented Kit exports for installed version |
19
+
20
+ ## 2. Load / page data signatures
21
+
22
+ | ❌ Avoid | ✅ Prefer |
23
+ |---------|----------|
24
+ | Invented `PageLoad` / `LayoutServerLoad` shapes from blogs | Types from `./$types` generated for the route; match siblings |
25
+ | Returning random keys without `data` contract | Follow existing `+page(.server).ts` return shapes |
26
+ | Calling React `getServerSideProps` / Nuxt `useAsyncData` in Kit | `load` / form actions / `$lib/api` |
27
+
28
+ ## 3. Form actions / enhance
29
+
30
+ | ❌ Avoid | ✅ Prefer |
31
+ |---------|----------|
32
+ | Phantom `enhance` option bags siblings never use | `$app/forms` `enhance` patterns from neighbors + Kit docs |
33
+ | Invented `fail` / `redirect` import paths | `@sveltejs/kit` exports verified for major |
34
+ | Posting secrets from client form without server action | `+page.server.ts` actions + `$env` discipline |
35
+
36
+ ## 4. `$env/*` misuse
37
+
38
+ | ❌ Avoid | ✅ Prefer |
39
+ |---------|----------|
40
+ | `$env/static/private` / private dynamic env in `.svelte` client | Private env only in `.server.ts` / hooks / `+server.ts` |
41
+ | Invented `$env/secret` | `$env/static/public`, `$env/static/private`, `$env/dynamic/*` as documented |
42
+
43
+ ## 5. Runes vs stores
44
+
45
+ | ❌ Avoid | ✅ Prefer |
46
+ |---------|----------|
47
+ | `import { $state } from 'svelte/store'` (wrong) | Runes are language/runtime — follow Svelte 5 docs / neighbors |
48
+ | Pinia `defineStore` / RTK `createSlice` | `store-svelte` — writable/derived/readable or runes modules |
49
+ | Invented `createRuneStore` helpers | Patterns already in `src/lib/stores/**` |
50
+
51
+ ## 6. Cross-stack APIs (banned as defaults)
52
+
53
+ | ❌ Avoid | ✅ Prefer |
54
+ |---------|----------|
55
+ | React hooks (`useEffect`, `useState` from `react`) | Svelte reactivity / runes / stores |
56
+ | RSC / `next/navigation` / `next/image` | Kit routes + `$app/*` |
57
+ | Vue/Nuxt: `ref`, `defineStore`, `useFetch`, `navigateTo` | Svelte / Kit equivalents above |
58
+
59
+ ## 7. Paths / gates / spreads
60
+
61
+ | ❌ Avoid | ✅ Prefer |
62
+ |---------|----------|
63
+ | E2E under `app/__tests__/e2e` | `tests/e2e/**` |
64
+ | Required script named `typecheck` / `type-check` | Package script **`check`** (`svelte-kit sync && svelte-check`) |
65
+ | Unlimited `{...props}` / `$$restProps` as default | Explicit props (`no-rest-props-spread`) |
66
+ | Server-only modules imported into client components | Keep private env / Node APIs in `.server.ts` |
67
+ | Vue-style auto-import of missing symbols | Explicit `$lib` / `$app` imports that exist |
68
+
69
+ When a row conflicts with a verified sibling pattern in this repo, **the sibling wins** — update this banlist in a preset PR rather than inventing a third path.
@@ -0,0 +1,37 @@
1
+ ---
2
+ description: Svelte SFC UI conventions (components, routes)
3
+ globs: src/lib/components/**/*,src/routes/**/*
4
+ alwaysApply: false
5
+ ---
6
+
7
+ # Svelte UI (SvelteKit)
8
+
9
+ - Предпочитать **`.svelte` SFC** с `<script lang="ts">` (`svelte-script-conventions`).
10
+ - Явные props (`$props()` / typed props); без массового `{...props}` / `$$restProps` (`no-rest-props-spread`).
11
+ - Svelte 5: snippets / `{@render …}` preferred for new code; legacy slots OK when following neighbors.
12
+ - Стили: scoped `<style>` / tokens — как у соседей; порядок свойств — `css-property-order-stylelint`.
13
+ - Данные: читать stores / runes / `load` data; **не** вызывать HTTP из `.svelte` — только через `$lib/api` / store actions.
14
+ - Навигация: `<a href>`, `goto`, `invalidate`, `$app/navigation` — не `next/link`, не `<NuxtLink>`, не `navigateTo`.
15
+ - A11y: `svelte-a11y-coding`.
16
+ - Границы UI: `architecture-boundaries-ui` — no DTO in markup; map in `src/lib/api/**`.
17
+
18
+ ## Incorrect
19
+
20
+ ```svelte
21
+ <script lang="ts">
22
+ const data = await fetch('/api/items').then((r) => r.json())
23
+ </script>
24
+ ```
25
+
26
+ ## Correct
27
+
28
+ ```svelte
29
+ <script lang="ts">
30
+ import { onMount } from 'svelte'
31
+ import { loadItems } from '$lib/stores/items'
32
+
33
+ onMount(() => {
34
+ void loadItems()
35
+ })
36
+ </script>
37
+ ```
@@ -0,0 +1,39 @@
1
+ ---
2
+ description: SvelteKit file-based routing, layouts, load, form actions
3
+ globs: src/routes/**/*,svelte.config.*
4
+ alwaysApply: false
5
+ ---
6
+
7
+ # SvelteKit routing
8
+
9
+ Canonical layout: **SvelteKit `src/`** — `src/routes/**`.
10
+ Flat (no-`src/`) layouts exist; **do not** default globs/examples to them or to Next `app/src/**` / Nuxt `pages/**`.
11
+
12
+ ## Routing
13
+
14
+ - File-based routes: `+page.svelte`, `+layout.svelte`, `+error.svelte`.
15
+ - Load: `+page.ts` / `+page.server.ts` / `+layout.ts` / `+layout.server.ts` — verify signatures against installed `@sveltejs/kit`.
16
+ - Form actions in `+page.server.ts`; progressive enhancement via `$app/forms` `enhance` when used in repo.
17
+ - API / BFF: `+server.ts`; app hooks in `src/hooks.server.ts` / `src/hooks.client.ts` — see `security-sveltekit`.
18
+ - Navigation: `<a href>`, `goto`, `invalidate`, `beforeNavigate`, `$app/navigation` — not `next/navigation`, not `navigateTo` / `<NuxtLink>`.
19
+
20
+ ## Data on pages
21
+
22
+ - Prefer `$lib/api` services + mappers for domain mapping; `load` may use event `fetch` for same-origin SSR cookie forwarding.
23
+ - Client orchestration via `store-svelte` (stores / runes).
24
+ - Secrets only via `$env/static/private` / server modules — never `$env/static/private` in client components.
25
+
26
+ ## Incorrect
27
+
28
+ ```ts
29
+ import { useRouter } from 'next/navigation'
30
+ import { navigateTo } from '#app'
31
+ ```
32
+
33
+ ## Correct
34
+
35
+ ```ts
36
+ import { goto } from '$app/navigation'
37
+
38
+ await goto('/items')
39
+ ```
@@ -0,0 +1,16 @@
1
+ ---
2
+ description: Роль агента для проведения технического ретроспективы (retro) команды / спринта. On-demand — предпочтительнее slash-команда /technical-retro.
3
+ alwaysApply: false
4
+ ---
5
+
6
+ <!-- shared-core: review/technical-retro.md -->
7
+
8
+ # Техническое ретро — rule alias
9
+
10
+ Полный сценарий (включая блок **«Работа агентов»** для slug из team tasks) — в slash-команде:
11
+
12
+ **`commands/technical-retro.md`** → `/technical-retro`
13
+
14
+ When a task has `metrics.json`, use the local aggregation script and state the cohort, sample size, incomplete artifacts, attribution confidence, active attempt duration, and human-gate wait separately. Do not score malformed artifacts or gate wait as agent work.
15
+
16
+ Используй rule только если command недоступен. Не дублируй содержимое command в ответе — следуй command-файлу и skill `technical-retro`.
@@ -0,0 +1,51 @@
1
+ ---
2
+ description: Структура e2e тестов и планов (Playwright)
3
+ globs: tests/e2e/**/*
4
+ alwaysApply: false
5
+ ---
6
+
7
+ # Структура e2e в проекте
8
+
9
+ - Папка e2e: `tests/e2e/**`.
10
+ - Планы сценариев:
11
+ - `*.cases.md` файлы — **канонический источник сценариев**.
12
+ - Тесты:
13
+ - `*.spec.ts` файлы — реализация сценариев на Playwright.
14
+ - Общие утилиты и абстракции:
15
+ - `tests/e2e/_shared/**` — константы, fluent‑интерфейсы, хелперы.
16
+
17
+ # Принципы
18
+
19
+ - Каждый сценарий из `*.cases.md` должен иметь соответствующий тест (или набор тестов).
20
+ - **Нельзя** ослаблять проверки в тестах, если это противоречит бизнес‑ожиданиям из планов.
21
+ - Предпочтительно использовать:
22
+ - page‑objects (например, `OrderHistoryPage.ts`);
23
+ - общие хелперы из `_shared`.
24
+
25
+ # Именование e2e‑тестов
26
+
27
+ - Язык:
28
+ - все названия `test` / `it`, `describe`‑блоков и шагов в `*.cases.md` должны быть сформулированы **на русском языке**, описывая поведение и ожидаемый результат.
29
+ - Формат заголовков e2e‑тестов (`test(...)` / `it(...)`):
30
+ - перед текстовым описанием сценария указывается **префикс с номером** в формате: `ПРЕФИКС-XXX Описание сценария`.
31
+ - `ПРЕФИКС` — аббревиатура из **первых букв слов** тестируемой сущности, записанная **латиницей в верхнем регистре**.
32
+ - пример: `OrderHistory` → `OH`, `BillingReport` → `BR`.
33
+ - `XXX` — порядковый номер теста **с тремя разрядами и лидирующими нулями**: `001`, `002`, `010`, `123` и т.д.
34
+ - пример полного названия e2e‑теста:
35
+ - `test('OH-001 Отображается список заказов', async ({ page }) => { ... })`
36
+ - внутри одной сущности (`ПРЕФИКС`) номера тестов должны образовывать **непротиворечивую последовательность**, без дубликатов номеров.
37
+
38
+ # data-testid для e2e
39
+
40
+ - **Приоритет селекторов:** `data-testid` для стабильных элементов; `getByRole` и `getByLabel` для форм и доступных элементов.
41
+ - **Именование:** схема `{parent}__{element}` (например, `history-page__title`, `history-page__recognition-banner__attach-files-button`).
42
+ - **Где добавлять:** на корневые контейнеры страниц и ключевые интерактивные элементы (кнопки, ссылки, поля), к которым обращаются page objects.
43
+ - **При изменении UI:** обновлять data-testid в компонентах и соответствующие селекторы в page objects; сверять с `*.cases.md`.
44
+
45
+ # Требование к агенту
46
+
47
+ При добавлении/изменении e2e‑тестов:
48
+ - Сначала смотреть соответствующий `*.cases.md` и синхронизировать названия сценариев.
49
+ - Размещать спеки рядом с планами в той же директории.
50
+ - Переиспользовать общие page‑objects и хелперы, а не копировать селекторы напрямую в каждый тест.
51
+
@@ -0,0 +1,42 @@
1
+ ---
2
+ description: Unit tests — Vitest + Testing Library Svelte; colocated *.spec.ts
3
+ globs:
4
+ - "**/*.{spec,test}.ts"
5
+ alwaysApply: false
6
+ impact: MEDIUM
7
+ ---
8
+
9
+ # Общие правила тестирования
10
+
11
+ - **Имена файлов:** новые тесты — **`*.spec.ts`**. Существующие `*.test.ts` не переименовывать без задачи.
12
+ - **Runner:** Vitest (или как в проекте). Компоненты — **`@testing-library/svelte`** (не `@vue/test-utils`, не React Testing Library as default).
13
+ - Проверять **поведение**, не внутренности.
14
+ - **Именование** `describe` / `it`: формулировки **на русском**, каждое предложение с заглавной (как в ESLint `jest/valid-title` если включён).
15
+
16
+ ```typescript
17
+ // ✅
18
+ it('Возвращает пустой список. Пользователь не авторизован', () => {})
19
+
20
+ // ❌
21
+ it('Returns empty list when user is guest', () => {})
22
+ ```
23
+
24
+ # Компоненты
25
+
26
+ - `render` из `@testing-library/svelte`.
27
+ - Взаимодействия: `userEvent` из `@testing-library/user-event` когда принято в репо.
28
+
29
+ # Изоляция
30
+
31
+ - Мокать `$lib/api` / stores по паттерну соседей.
32
+ - Не мокать публичный контракт фичи без нужды.
33
+
34
+ # HTTP / mappers
35
+
36
+ - Изменения общего HTTP‑клиента — behavior‑тесты рядом с `src/lib/clients/**`.
37
+ - Мапперы DTO→domain — unit‑тесты на edge‑кейсы.
38
+
39
+ # Размещение
40
+
41
+ - UI: соседний `*.spec.ts` (не обязательный `__tests__/` внутри компонента).
42
+ - Другие модули — как у соседей.
@@ -0,0 +1,42 @@
1
+ ---
2
+ description: Стиль JSDoc для доменных и транспортных типов в types
3
+ globs: src/lib/types/**/*.ts
4
+ alwaysApply: false
5
+ ---
6
+
7
+ # Документация типов в `types`
8
+
9
+ При добавлении или существенном изменении типов в этом слое **следовать уже принятому в репозитории стилю JSDoc** (см. примеры: `User.types.ts`, `Common.types.ts`, `ServerValidation.types.ts`, `TreatmentPlan/*.types.ts`).
10
+
11
+ ## Язык и форма
12
+
13
+ - Текст комментариев — **на русском**, кратко и по делу: что означает тип или поле в предметной области или в контракте с API.
14
+ - **Не опираться** на теги в духе `@param`, `@returns`, `@see`, `@deprecated` для описания типов — в этом слое они **не используются**; достаточно обычного текста в `/** … */`.
15
+
16
+ ## Экспортируемый `type` / `interface`
17
+
18
+ - Сразу **перед объявлением** — блок `/** … */`.
19
+ - Если нужно пояснить источник данных, ограничения или неочевидности — **второй абзац** в том же блоке (в JSDoc для абзаца — пустая строка между строками текста).
20
+ - Для **вложенных** объектов в том же файле каждый такой тип документируется отдельным блоком над своим объявлением.
21
+
22
+ ## Поля
23
+
24
+ - У **каждого** публичного свойства — **однострочный** `/** … */` на строке непосредственно **над** полем.
25
+ - Если поле **не приходит с бэкенда «как есть»**, а вычисляется или дополняется на фронте (маппер, селектор, UI) — начать описание с префикса **`[computed]`** (как в `TUserProfile`, типах плана лечения).
26
+ - Для форматов данных указывать это **в тексте**: например дата `YYYY-MM-DD`, пример отображаемой строки в кавычках.
27
+
28
+ ## Классы и прочие объявления
29
+
30
+ - Для **классов** (например ошибки транспорта) при изменении публичного API — краткий блок над классом и **комментарии к публичным полям** по тем же правилам, что у свойств интерфейса.
31
+
32
+ ## `enum`
33
+
34
+ - В `enums.ts` исторически часто **без JSDoc** на каждом члене; для новых enum допустимо короткое описание **над самим enum**, если назначение неочевидно из имени. Подписи для UI — как принято, через объекты `*Names` рядом с enum.
35
+
36
+ ## Практика для агента
37
+
38
+ - Добавляя новый тип или поле, **не оставлять** новые публичные поля без пояснения, если смысл не равен имени на 100%.
39
+ - Правя файл, где уже есть такие комментарии, **поддерживать тот же стиль**, а не смешивать с англоязычными или «теговыми» блоками.
40
+ - Не раздувать комментарии: одна-две фразы на тип, одна строка на поле — норма; исключение — действительно сложная доменная оговорка.
41
+
42
+ См. также импорты и barrel: `public-imports.mdc`.
@@ -0,0 +1,17 @@
1
+ # `.cursor/skills` (preset svelte)
2
+
3
+ Project skills for Cursor. They keep long workflows out of always-on rules while preserving the same team conventions as the Claude preset.
4
+
5
+ | Skill | When to use |
6
+ |-------|-------------|
7
+ | `feature-delivery` | End-to-end feature work across types, API, store, UI, tests |
8
+ | `code-review` | MR/diff review using project architecture and test standards |
9
+ | `debug-investigation` | Reproducing and fixing bugs with root-cause evidence |
10
+ | `ci-investigation` | Diagnosing and fixing failing CI checks on PRs/branches |
11
+ | `unit-testing` | Planning, generating, or healing unit test coverage |
12
+ | `playwright-e2e` | Planning, generating, or healing Playwright e2e coverage |
13
+ | `technical-retro` | Technical retrospective for a task, sprint, incident, or agent pipeline |
14
+ | `write-adr` | Author an Architecture Decision Record (context / decision / consequences) |
15
+ | `svelte-performance` | Implementer checklist: bundle, SSR/payload/client, memo, waterfalls, CWV (not a perf audit agent) |
16
+
17
+ Skills are copied to `.cursor/skills/` by `ai-rules init cursor --preset svelte`.
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: ci-investigation
3
+ description: Investigates failing CI checks on PRs and branches — lint, typecheck, unit, e2e — with local reproduction and minimal fixes. Use when CI is red or for ci-fix pipeline tasks.
4
+ ---
5
+
6
+ # CI Investigation
7
+
8
+ ## Workflow
9
+
10
+ 1. Identify the **first failing check** (lint, typecheck, unit, e2e, build).
11
+ 2. Capture error output — ignore cascading failures until root cause is found.
12
+ 3. Reproduce locally with the same commands CI uses from repository root:
13
+ - `lint:js`, `lint:css`, `check`
14
+ - targeted unit test file or suite
15
+ - affected Playwright spec if e2e failed
16
+ 4. Inspect git diff for changed files related to the failure.
17
+ 5. Apply **minimal fix** — no unrelated refactors.
18
+
19
+ ## Artifact
20
+
21
+ Write `ci-report.md` under the task slug folder:
22
+
23
+ - Failed check name and link/log excerpt
24
+ - Root cause classification
25
+ - Fix applied (or handoff to feature-developer)
26
+ - Validation commands and results
27
+
28
+ ## Handoff Rules
29
+
30
+ - Config-only or one-line fixes → fix in place, re-run check.
31
+ - Missing tests or architecture work → document and route to `feature-developer` or `qa-tester`.
32
+ - Flaky e2e → prefer `playwright-test-healer` after ci-investigator identifies the spec.
33
+
34
+ ## Validation
35
+
36
+ Always re-run the failing command locally before marking complete. If environment blocks execution, state the exact command and blocker.
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: code-review
3
+ description: Reviews pull requests, merge requests, git diffs, and branch changes using the preset's architecture, import, UI, API, and testing standards. Use when the user asks for review or when code-reviewer runs in an agent pipeline.
4
+ ---
5
+
6
+ # Code Review
7
+
8
+ ## Inputs
9
+
10
+ Use the local repository as the source of truth: `git status`, `git diff`, task artifacts under `.cursor/team/tasks/<slug>/` when present, and opened files. Do not invent hosting metadata such as labels, CI status, or reviewers.
11
+
12
+ ## Review Order
13
+
14
+ 1. Understand the intent and affected layers.
15
+ 2. Check correctness and regressions first.
16
+ 3. Verify architecture boundaries: UI does not know DTO/transport, store does not depend on UI, API services do not pull UI/store.
17
+ 4. Check public imports through `@/types` and `@/api`, plus barrel updates for new public symbols.
18
+ 5. Review UI consistency, styling conventions, and prop shape.
19
+ 6. Check tests: unit for mapper/domain logic, behavior tests for HTTP client changes, e2e plan/spec updates for user flows.
20
+ 7. **Reuse lens:** flag new helpers that duplicate existing utilities; prefer adjacent shared modules over copy-paste.
21
+ 8. **Efficiency lens:** unnecessary work, sequential ops that should be parallel, hot-path bloat, no-op store updates, overly broad reads.
22
+ 9. Report validation gaps: lint, stylelint, typecheck, or relevant tests not run.
23
+
24
+ ## Output
25
+
26
+ Lead with findings ordered by severity. Required shape (also in `code-review-mr`):
27
+
28
+ - Each finding: **`path:line`** — problem — impact — concrete fix direction.
29
+ - Severity: **`blocker` | `important` | `nit`** (list blocker → nit).
30
+ - Vague («looks risky») is not a finding — cite evidence or ask for surrounding context.
31
+ - End with a verdict line: **`Safe to merge | needs changes | reject`**.
32
+ - If there are no findings, say so and call out remaining test or validation risk.
33
+
34
+ For agent team tasks, write `.cursor/team/tasks/<slug>/review.md` and set `status.json` to `completed` or `changes_requested`.
35
+
36
+ ## Design guidance
37
+
38
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: debug-investigation
3
+ description: Investigates bugs, failing tests, crashes, and incorrect behavior with runtime evidence before applying minimal fixes. Use for bugfix tasks, debugger agent runs, regressions, and flaky test diagnosis.
4
+ ---
5
+
6
+ # Debug Investigation
7
+
8
+ ## Process
9
+
10
+ 1. Reproduce the issue or collect the closest available evidence: error output, failing test, browser snapshot, logs, or user steps.
11
+ 2. Define expected vs actual behavior in one sentence.
12
+ 3. Trace the failing path through the smallest relevant slice of the codebase.
13
+ 4. Identify the root cause before editing. Avoid broad refactors during bugfixes.
14
+ 5. Apply the smallest fix that preserves existing architecture and public contracts.
15
+ 6. Add or update a regression test when the behavior is user-facing or likely to recur.
16
+ 7. Run the narrow failing check first, then relevant lint/type/test validation.
17
+
18
+ ## Artifacts
19
+
20
+ For agent team tasks, write `.cursor/team/tasks/<slug>/debug-report.md` with:
21
+
22
+ - Reproduction steps or evidence source.
23
+ - Root cause.
24
+ - Fix scope.
25
+ - Regression coverage.
26
+ - Remaining risk.
27
+
28
+ Update `status.json` when complete.
29
+
30
+ ## Design guidance
31
+
32
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: feature-delivery
3
+ description: Delivers SvelteKit frontend features end-to-end across domain types, API services, store, UI, mocks, tests, and validation. Use when implementing or extending a feature, especially through /task or feature-developer.
4
+ ---
5
+
6
+ # Feature Delivery
7
+
8
+ 1. Read task brief, acceptance criteria, and decomposition if present.
9
+ 2. Read **`feature-delivery-workflow`** and **`reference-features`** — follow layer order and mirror closest reference feature.
10
+ 3. Add or update focused tests for changed behavior.
11
+ 4. Validation from SvelteKit root: **invoke** **`post-change-lint`** after code edits (requestable, not always-on — but mandatory when code changed). Pipeline: scoped lint OK if next step is `build-verifier`.
12
+
13
+ ## Scope discipline
14
+
15
+ Implement only the current AC / decomposition task. Clarify ambiguity before coding; do not add unrelated hardening, polish, or refactors. See `feature-developer` → **Zero improvisation**.
16
+
17
+ ## Handoff
18
+
19
+ Summarize by layer, validation results, and known gaps. Agent team: update `.cursor/team/tasks/<slug>/status.json`.
20
+
21
+ ## Design guidance
22
+
23
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
24
+
25
+ ## Anti-hallucination
26
+
27
+ - When editing Svelte/TS under `src/**`, load `svelte-sveltekit-anti-hallucination` (phantom Kit/Svelte/React/Vue imports).
28
+
29
+ ## Stack notes (SvelteKit)
30
+
31
+ - Layers: `src/routes` / `src/lib/components` → facades → `src/lib/stores` (store-svelte) → `src/lib/api` → `src/lib/clients`; server via `+server.ts` / hooks.
32
+ - Anti-hallucination: `svelte-sveltekit-anti-hallucination`.
33
+ - Scripts cwd: SvelteKit root (`svelte.config.*`); gates: `lint:js`, `lint:css`, `check`.
34
+ - E2E: `tests/e2e/` (Playwright).
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: playwright-e2e
3
+ description: Plans, generates, and heals Playwright e2e tests using this preset's tests/e2e layout, *.cases.md plans, page objects, and shared helpers. Use for e2e planning, test generation, or fixing failing browser tests.
4
+ ---
5
+
6
+ # Playwright E2E
7
+
8
+ ## Project Layout
9
+
10
+ - Test root: `tests/e2e`.
11
+ - Test plans: `*.cases.md` files under the matching feature folder.
12
+ - Executable specs: `*.spec.ts` files in the same folder.
13
+ - Seed/setup reference: `tests/e2e/seed.spec.ts`.
14
+
15
+ Do not introduce top-level `specs/` or `tests/` folders for real coverage unless the user explicitly asks for a sandbox.
16
+
17
+ ## Planner
18
+
19
+ Create or update the relevant `*.cases.md` file. Each scenario should include title, preconditions, steps, and expected result. Cover happy path, important edge cases, validation, and error states.
20
+
21
+ ## Generator
22
+
23
+ Generate specs from `*.cases.md` into the same folder. Reuse existing page objects and `_shared/` helpers. Keep test names aligned with scenario names.
24
+
25
+ ## Healer
26
+
27
+ Fix selectors, waits, setup, or page-object details without weakening business assertions. Use the matching `*.cases.md` file as the behavior contract.
28
+
29
+ ## Validation
30
+
31
+ Run the affected spec when feasible. If the environment blocks execution, report the command that should be run and the blocker.
32
+
33
+
34
+ ## Stack notes (SvelteKit)
35
+
36
+ - E2E root: `tests/e2e/`.
37
+ - Default baseURL `http://localhost:3000`; prefer `webServer` → `svelte dev` or `svelte preview`.
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: svelte-performance
3
+ description: SvelteKit performance checklist for implementers — bundle, lazy routes, dynamic import, load waterfalls, hydration, Core Web Vitals. Use while coding a svelte feature; not a substitute for the performance-auditor agent when the user asks for an audit report.
4
+ ---
5
+
6
+ # Svelte performance (SvelteKit)
7
+
8
+ On-demand checklist for **implementers** shipping SvelteKit UI. For a formal diff audit report, use the **`performance-auditor`** agent instead — this skill does not replace it.
9
+
10
+ **No RSC model** — SvelteKit uses SSR/CSR/hydration; do not apply Next Server Component guidance. Do not apply Vue/Nuxt payload APIs as defaults.
11
+
12
+ ## Bundle
13
+
14
+ - Prefer route-level code-splitting (file routes) and dynamic `import()` for heavy UI (charts, editors).
15
+ - Avoid importing large libraries into root `+layout` that run globally; keep client entry points small.
16
+ - Check that barrel files do not re-export heavy modules into every consumer.
17
+
18
+ ## Lazy routes & dynamic import
19
+
20
+ - Heavy feature UI: lazy via dynamic `import()` or a separate route.
21
+ - Do not eagerly import large optional widgets into the root layout.
22
+ - Prefer patterns already used in the repo over inventing a second loader.
23
+
24
+ ## Load & data waterfalls
25
+
26
+ - Avoid sequential `await` chains in `load` that could be parallel (`Promise.all`) when independent.
27
+ - Prefer shared services/mappers in `$lib/api`; dedupe with existing keys/invalidation patterns.
28
+ - Stores/runes for client-mutable state — do not invent a second cache layer.
29
+
30
+ ## Hydration
31
+
32
+ - Keep SSR markup consistent with client first paint; avoid `window` in universal modules without client guards.
33
+ - Prefer client-only mount patterns already in the repo for browser-only widgets.
34
+ - Do not ship large client-only state into the critical SSR path without need.
35
+
36
+ ## Reactivity discipline
37
+
38
+ - Do **not** add derived/memo wrappers by default for trivial state.
39
+ - Prefer fixing state placement and `{#each}` keys over blanket memoization.
40
+ - Follow Svelte 5 runes / store patterns used by neighbors (`store-svelte`).
41
+
42
+ ## Core Web Vitals (quick)
43
+
44
+ | Metric | Implementer checks |
45
+ |--------|--------------------|
46
+ | LCP | Hero/media not blocked by unnecessary client JS; sensible image sizing |
47
+ | INP | Click handlers lean; avoid long sync work on the main thread |
48
+ | CLS | Reserve space for images/skeleton; stable fonts |
49
+
50
+ ## Handoff
51
+
52
+ If the user asks for a **performance audit report** of a diff/deliverable, route to **`performance-auditor`** (readonly `perf-report.md`), not this skill alone.
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: technical-retro
3
+ description: Facilitates technical retrospectives for tasks, sprints, incidents, releases, and agent-team pipelines. Use when the user asks for retro, postmortem, process review, or action items after delivery.
4
+ ---
5
+
6
+ # Technical Retro
7
+
8
+ ## Inputs
9
+
10
+ Ask for missing period, focus, task slug, participants, or format constraints. If a slug is provided, read `.cursor/team/tasks/<slug>/` artifacts and local git status/diff. Do not invent facts not present in artifacts or the user's message.
11
+
12
+ ## Facilitation Principles
13
+
14
+ - Focus on process and system behavior, not blame.
15
+ - Separate facts, interpretations, and proposed actions.
16
+ - Balance what worked with what slowed delivery.
17
+ - Keep action items concrete, owned, and measurable.
18
+
19
+ ## Default Structure
20
+
21
+ 1. Goal and scope.
22
+ 2. Timeline or factual observations.
23
+ 3. What worked.
24
+ 4. What hurt quality, speed, or confidence.
25
+ 5. Root causes for the top one or two issues.
26
+ 6. Experiments and action items.
27
+
28
+ ## Agent Team Block
29
+
30
+ For `/task` pipelines, include router, analyst, developer, **build-verifier**, reviewer, QA/e2e, hooks, and rules.
31
+
32
+ ## Wrong-turn taxonomy (optional)
33
+
34
+ When artifacts or the user mention agent mistakes, tag incidents:
35
+
36
+ | Kind | Signal |
37
+ |------|--------|
38
+ | `correction` | User pushback («no», «don't», «actually») |
39
+ | `retry` | Same tool/approach 2+ times before success |
40
+ | `waste` | Many searches before the right file |
41
+ | `reversal` | Edit then revert / delete |
42
+ | `dead-end` | Env/tool failure (missing binary, wrong path) |
43
+
44
+ Severity: **high** (explicit correction / large waste) · **med** · **low**. Confidence 0–100 — be honest; low-confidence items are optional.
45
+
46
+ ## Preset feedback loop
47
+
48
+ If the same issue appeared in **2+** tasks (or **3+** for packaging a new rule/skill — Rule of Three), add section **Preset updates**:
49
+
50
+ - Proposed change to `.cursor/rules/`, `.cursor/agents/`, `.cursor/skills/`, or **`.cursor/team/conventions.md`** (prefer conventions for project gotchas)
51
+ - One concrete snippet or file path
52
+ - Whether it belongs in always-on vs globs vs skill vs conventions (see `PRESET-CONTRIBUTION` → Building blocks)
53
+
54
+ Do not apply preset or conventions changes without user approval.
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: unit-testing
3
+ description: Plans, generates, and heals unit tests for mappers, Svelte stores/runes actions, HTTP client behavior, and Svelte components using colocated *.spec.ts files and tests-unit rules. Use for unit test planning, generation, or fixing failing unit tests.
4
+ ---
5
+
6
+ # Unit Testing
7
+
8
+ ## Project Layout
9
+
10
+ - Specs colocated with source: `*.spec.ts` next to the module under test.
11
+ - Legacy `*.test.ts` — do not rename without a separate task.
12
+ - Runner: Jest or Vitest as configured in the target repo; components use `@testing-library/svelte`.
13
+
14
+ Follow **`tests-unit.mdc`** (Cursor) or **`rules/testing/tests-unit.md`** (Claude).
15
+
16
+ ## Planner
17
+
18
+ Write or update `.cursor/team/tasks/<slug>/unit-test-plan.md` (or `.claude/team/...`).
19
+
20
+ Each scenario needs a Russian `it()` title (capital letter after each sentence). Cover mappers, Svelte stores/runes actions, client behavior branches, and component interactions per AC.
21
+
22
+ ## Generator
23
+
24
+ Implement specs from `unit-test-plan.md`. Reuse project test-store, HTTP mocks, and existing test utilities. Do not change production code.
25
+
26
+ ## Healer
27
+
28
+ Fix mocks, async timing, selectors, and setup — preserve business assertions. Use `unit-test-plan.md` and `brief.md` as the behavior contract.
29
+
30
+ ## Validation
31
+
32
+ Run affected unit tests from repository root when feasible. Report command, pass/fail, and remaining gaps vs plan.