@bonesofspring/ai-rules 0.2.27 → 0.2.29

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 (938) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/bin/cli.js +13 -2
  4. package/bin/lib/seed-ai-local-team.js +43 -5
  5. package/bin/opencode-install.js +58 -0
  6. package/docs/MAVIS-COMPATIBILITY.md +10 -6
  7. package/docs/MAVIS.md +15 -6
  8. package/docs/OPENCODE-COMPATIBILITY.md +3 -3
  9. package/docs/OPENCODE.md +16 -6
  10. package/package.json +2 -1
  11. package/presets/_shared/core/meta/preset-pr-checklist.md +2 -2
  12. package/presets/claude/android-kotlin/CLAUDE.md +15 -1
  13. package/presets/claude/android-kotlin/REPO_AGENTS.md +1 -1
  14. package/presets/claude/android-kotlin/agents/accessibility-reviewer.md +15 -0
  15. package/presets/claude/android-kotlin/agents/api-contract-reviewer.md +16 -1
  16. package/presets/claude/android-kotlin/agents/build-verifier.md +17 -0
  17. package/presets/claude/android-kotlin/agents/ci-investigator.md +25 -0
  18. package/presets/claude/android-kotlin/agents/code-reviewer.md +16 -0
  19. package/presets/claude/android-kotlin/agents/codebase-analyzer.md +15 -0
  20. package/presets/claude/android-kotlin/agents/debugger.md +25 -0
  21. package/presets/claude/android-kotlin/agents/feature-developer.md +25 -0
  22. package/presets/claude/android-kotlin/agents/instrumentation-test-generator.md +16 -0
  23. package/presets/claude/android-kotlin/agents/instrumentation-test-healer.md +16 -0
  24. package/presets/claude/android-kotlin/agents/instrumentation-test-planner.md +16 -0
  25. package/presets/claude/android-kotlin/agents/migration-specialist.md +15 -0
  26. package/presets/claude/android-kotlin/agents/mockup-reviewer.md +15 -0
  27. package/presets/claude/android-kotlin/agents/openspec-author.md +15 -0
  28. package/presets/claude/android-kotlin/agents/performance-auditor.md +15 -0
  29. package/presets/claude/android-kotlin/agents/qa-tester.md +17 -0
  30. package/presets/claude/android-kotlin/agents/security-reviewer.md +15 -0
  31. package/presets/claude/android-kotlin/agents/solution-architect.md +15 -0
  32. package/presets/claude/android-kotlin/agents/task-analyst.md +15 -0
  33. package/presets/claude/android-kotlin/agents/task-router.md +15 -0
  34. package/presets/claude/android-kotlin/agents/tech-writer.md +15 -1
  35. package/presets/claude/android-kotlin/agents/unit-test-generator.md +16 -0
  36. package/presets/claude/android-kotlin/agents/unit-test-healer.md +16 -0
  37. package/presets/claude/android-kotlin/agents/unit-test-planner.md +16 -0
  38. package/presets/claude/android-kotlin/hooks/README.md +6 -5
  39. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +18 -0
  40. package/presets/claude/android-kotlin/hooks/examples/README.md +2 -0
  41. package/presets/claude/android-kotlin/hooks/guard-shell-command.sh +32 -9
  42. package/presets/claude/android-kotlin/rules/README.md +1 -1
  43. package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +0 -5
  44. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +2 -2
  45. package/presets/claude/android-kotlin/settings.json +33 -0
  46. package/presets/claude/go/CLAUDE.md +15 -1
  47. package/presets/claude/go/REPO_AGENTS.md +1 -1
  48. package/presets/claude/go/agents/api-contract-reviewer.md +17 -0
  49. package/presets/claude/go/agents/build-verifier.md +17 -0
  50. package/presets/claude/go/agents/ci-investigator.md +29 -0
  51. package/presets/claude/go/agents/code-reviewer.md +16 -0
  52. package/presets/claude/go/agents/codebase-analyzer.md +15 -0
  53. package/presets/claude/go/agents/debugger.md +29 -0
  54. package/presets/claude/go/agents/feature-developer.md +29 -0
  55. package/presets/claude/go/agents/integration-test-generator.md +17 -0
  56. package/presets/claude/go/agents/integration-test-healer.md +17 -0
  57. package/presets/claude/go/agents/integration-test-planner.md +17 -0
  58. package/presets/claude/go/agents/migration-specialist.md +15 -0
  59. package/presets/claude/go/agents/openspec-author.md +15 -0
  60. package/presets/claude/go/agents/performance-auditor.md +15 -0
  61. package/presets/claude/go/agents/qa-tester.md +18 -0
  62. package/presets/claude/go/agents/security-reviewer.md +15 -0
  63. package/presets/claude/go/agents/solution-architect.md +15 -0
  64. package/presets/claude/go/agents/task-analyst.md +15 -0
  65. package/presets/claude/go/agents/task-router.md +15 -0
  66. package/presets/claude/go/agents/tech-writer.md +15 -1
  67. package/presets/claude/go/agents/unit-test-generator.md +16 -0
  68. package/presets/claude/go/agents/unit-test-healer.md +16 -0
  69. package/presets/claude/go/agents/unit-test-planner.md +16 -0
  70. package/presets/claude/go/hooks/README.md +6 -5
  71. package/presets/claude/go/hooks/chain-team-phases.sh +18 -0
  72. package/presets/claude/go/hooks/examples/README.md +2 -0
  73. package/presets/claude/go/hooks/guard-shell-command.sh +32 -9
  74. package/presets/claude/go/rules/README.md +1 -1
  75. package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +0 -5
  76. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +2 -2
  77. package/presets/claude/go/settings.json +33 -0
  78. package/presets/claude/ios-swift/CLAUDE.md +15 -1
  79. package/presets/claude/ios-swift/REPO_AGENTS.md +1 -1
  80. package/presets/claude/ios-swift/agents/accessibility-reviewer.md +15 -0
  81. package/presets/claude/ios-swift/agents/api-contract-reviewer.md +16 -0
  82. package/presets/claude/ios-swift/agents/build-verifier.md +17 -0
  83. package/presets/claude/ios-swift/agents/ci-investigator.md +24 -0
  84. package/presets/claude/ios-swift/agents/code-reviewer.md +16 -0
  85. package/presets/claude/ios-swift/agents/codebase-analyzer.md +15 -0
  86. package/presets/claude/ios-swift/agents/debugger.md +24 -0
  87. package/presets/claude/ios-swift/agents/feature-developer.md +24 -0
  88. package/presets/claude/ios-swift/agents/migration-specialist.md +15 -0
  89. package/presets/claude/ios-swift/agents/mockup-reviewer.md +15 -0
  90. package/presets/claude/ios-swift/agents/openspec-author.md +15 -0
  91. package/presets/claude/ios-swift/agents/performance-auditor.md +15 -0
  92. package/presets/claude/ios-swift/agents/qa-tester.md +17 -0
  93. package/presets/claude/ios-swift/agents/security-reviewer.md +15 -0
  94. package/presets/claude/ios-swift/agents/solution-architect.md +15 -0
  95. package/presets/claude/ios-swift/agents/task-analyst.md +15 -0
  96. package/presets/claude/ios-swift/agents/task-router.md +15 -0
  97. package/presets/claude/ios-swift/agents/tech-writer.md +15 -1
  98. package/presets/claude/ios-swift/agents/unit-test-generator.md +16 -0
  99. package/presets/claude/ios-swift/agents/unit-test-healer.md +16 -0
  100. package/presets/claude/ios-swift/agents/unit-test-planner.md +16 -0
  101. package/presets/claude/ios-swift/agents/xcuitest-test-generator.md +16 -0
  102. package/presets/claude/ios-swift/agents/xcuitest-test-healer.md +16 -0
  103. package/presets/claude/ios-swift/agents/xcuitest-test-planner.md +16 -0
  104. package/presets/claude/ios-swift/hooks/README.md +6 -5
  105. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +18 -0
  106. package/presets/claude/ios-swift/hooks/examples/README.md +2 -0
  107. package/presets/claude/ios-swift/hooks/guard-shell-command.sh +32 -9
  108. package/presets/claude/ios-swift/rules/README.md +1 -1
  109. package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +0 -5
  110. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +2 -2
  111. package/presets/claude/ios-swift/settings.json +33 -0
  112. package/presets/claude/java/CLAUDE.md +15 -1
  113. package/presets/claude/java/REPO_AGENTS.md +1 -1
  114. package/presets/claude/java/agents/api-contract-reviewer.md +17 -0
  115. package/presets/claude/java/agents/build-verifier.md +17 -0
  116. package/presets/claude/java/agents/ci-investigator.md +29 -0
  117. package/presets/claude/java/agents/code-reviewer.md +16 -0
  118. package/presets/claude/java/agents/codebase-analyzer.md +15 -0
  119. package/presets/claude/java/agents/debugger.md +29 -0
  120. package/presets/claude/java/agents/feature-developer.md +29 -0
  121. package/presets/claude/java/agents/integration-test-generator.md +17 -0
  122. package/presets/claude/java/agents/integration-test-healer.md +17 -0
  123. package/presets/claude/java/agents/integration-test-planner.md +17 -0
  124. package/presets/claude/java/agents/migration-specialist.md +15 -0
  125. package/presets/claude/java/agents/openspec-author.md +15 -0
  126. package/presets/claude/java/agents/performance-auditor.md +15 -0
  127. package/presets/claude/java/agents/qa-tester.md +18 -0
  128. package/presets/claude/java/agents/security-reviewer.md +15 -0
  129. package/presets/claude/java/agents/solution-architect.md +15 -0
  130. package/presets/claude/java/agents/task-analyst.md +15 -0
  131. package/presets/claude/java/agents/task-router.md +15 -0
  132. package/presets/claude/java/agents/tech-writer.md +15 -1
  133. package/presets/claude/java/agents/unit-test-generator.md +16 -0
  134. package/presets/claude/java/agents/unit-test-healer.md +16 -0
  135. package/presets/claude/java/agents/unit-test-planner.md +16 -0
  136. package/presets/claude/java/hooks/README.md +6 -5
  137. package/presets/claude/java/hooks/chain-team-phases.sh +18 -0
  138. package/presets/claude/java/hooks/examples/README.md +2 -0
  139. package/presets/claude/java/hooks/guard-shell-command.sh +32 -9
  140. package/presets/claude/java/rules/README.md +1 -1
  141. package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +0 -5
  142. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +2 -2
  143. package/presets/claude/java/settings.json +33 -0
  144. package/presets/claude/mcp-ts/CLAUDE.md +15 -1
  145. package/presets/claude/mcp-ts/REPO_AGENTS.md +1 -1
  146. package/presets/claude/mcp-ts/agents/build-verifier.md +17 -0
  147. package/presets/claude/mcp-ts/agents/feature-developer.md +22 -0
  148. package/presets/claude/mcp-ts/agents/security-reviewer.md +15 -0
  149. package/presets/claude/mcp-ts/agents/solution-architect.md +15 -1
  150. package/presets/claude/mcp-ts/agents/task-analyst.md +15 -0
  151. package/presets/claude/mcp-ts/agents/task-router.md +15 -0
  152. package/presets/claude/mcp-ts/hooks/README.md +8 -3
  153. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +18 -0
  154. package/presets/claude/mcp-ts/hooks/examples/README.md +5 -0
  155. package/presets/claude/mcp-ts/hooks/guard-shell-command.sh +32 -9
  156. package/presets/claude/mcp-ts/rules/README.md +1 -1
  157. package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +0 -5
  158. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +2 -2
  159. package/presets/claude/mcp-ts/settings.json +33 -0
  160. package/presets/claude/next/CLAUDE.md +15 -1
  161. package/presets/claude/next/REPO_AGENTS.md +1 -1
  162. package/presets/claude/next/agents/accessibility-reviewer.md +17 -0
  163. package/presets/claude/next/agents/api-contract-reviewer.md +19 -0
  164. package/presets/claude/next/agents/build-verifier.md +17 -0
  165. package/presets/claude/next/agents/ci-investigator.md +34 -0
  166. package/presets/claude/next/agents/code-reviewer.md +18 -0
  167. package/presets/claude/next/agents/codebase-analyzer.md +17 -0
  168. package/presets/claude/next/agents/debugger.md +34 -0
  169. package/presets/claude/next/agents/feature-developer.md +34 -0
  170. package/presets/claude/next/agents/migration-specialist.md +17 -0
  171. package/presets/claude/next/agents/mockup-reviewer.md +17 -0
  172. package/presets/claude/next/agents/openspec-author.md +17 -0
  173. package/presets/claude/next/agents/performance-auditor.md +17 -0
  174. package/presets/claude/next/agents/playwright-test-generator.md +19 -0
  175. package/presets/claude/next/agents/playwright-test-healer.md +19 -1
  176. package/presets/claude/next/agents/playwright-test-planner.md +20 -1
  177. package/presets/claude/next/agents/qa-tester.md +20 -0
  178. package/presets/claude/next/agents/security-reviewer.md +17 -0
  179. package/presets/claude/next/agents/solution-architect.md +17 -0
  180. package/presets/claude/next/agents/task-analyst.md +17 -0
  181. package/presets/claude/next/agents/task-router.md +17 -0
  182. package/presets/claude/next/agents/tech-writer.md +17 -0
  183. package/presets/claude/next/agents/unit-test-generator.md +18 -0
  184. package/presets/claude/next/agents/unit-test-healer.md +18 -0
  185. package/presets/claude/next/agents/unit-test-planner.md +18 -0
  186. package/presets/claude/next/hooks/README.md +10 -1
  187. package/presets/claude/next/hooks/chain-team-phases.sh +18 -0
  188. package/presets/claude/next/hooks/examples/README.md +2 -0
  189. package/presets/claude/next/hooks/guard-shell-command.sh +32 -9
  190. package/presets/claude/next/rules/README.md +1 -1
  191. package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +0 -5
  192. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +2 -2
  193. package/presets/claude/next/settings.json +39 -0
  194. package/presets/claude/nuxt/CLAUDE.md +15 -1
  195. package/presets/claude/nuxt/REPO_AGENTS.md +1 -1
  196. package/presets/claude/nuxt/agents/accessibility-reviewer.md +17 -0
  197. package/presets/claude/nuxt/agents/api-contract-reviewer.md +19 -0
  198. package/presets/claude/nuxt/agents/build-verifier.md +17 -0
  199. package/presets/claude/nuxt/agents/ci-investigator.md +34 -0
  200. package/presets/claude/nuxt/agents/code-reviewer.md +18 -0
  201. package/presets/claude/nuxt/agents/codebase-analyzer.md +17 -0
  202. package/presets/claude/nuxt/agents/debugger.md +34 -0
  203. package/presets/claude/nuxt/agents/feature-developer.md +34 -0
  204. package/presets/claude/nuxt/agents/migration-specialist.md +17 -0
  205. package/presets/claude/nuxt/agents/mockup-reviewer.md +17 -0
  206. package/presets/claude/nuxt/agents/openspec-author.md +17 -0
  207. package/presets/claude/nuxt/agents/performance-auditor.md +17 -0
  208. package/presets/claude/nuxt/agents/playwright-test-generator.md +19 -0
  209. package/presets/claude/nuxt/agents/playwright-test-healer.md +19 -1
  210. package/presets/claude/nuxt/agents/playwright-test-planner.md +20 -1
  211. package/presets/claude/nuxt/agents/qa-tester.md +20 -0
  212. package/presets/claude/nuxt/agents/security-reviewer.md +17 -0
  213. package/presets/claude/nuxt/agents/solution-architect.md +17 -0
  214. package/presets/claude/nuxt/agents/task-analyst.md +17 -0
  215. package/presets/claude/nuxt/agents/task-router.md +17 -0
  216. package/presets/claude/nuxt/agents/tech-writer.md +17 -0
  217. package/presets/claude/nuxt/agents/unit-test-generator.md +18 -0
  218. package/presets/claude/nuxt/agents/unit-test-healer.md +18 -0
  219. package/presets/claude/nuxt/agents/unit-test-planner.md +18 -0
  220. package/presets/claude/nuxt/hooks/README.md +7 -4
  221. package/presets/claude/nuxt/hooks/chain-team-phases.sh +18 -0
  222. package/presets/claude/nuxt/hooks/examples/README.md +2 -0
  223. package/presets/claude/nuxt/hooks/guard-shell-command.sh +32 -9
  224. package/presets/claude/nuxt/rules/README.md +1 -1
  225. package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +0 -5
  226. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +2 -2
  227. package/presets/claude/nuxt/settings.json +39 -0
  228. package/presets/claude/php-hexagonal/CLAUDE.md +15 -1
  229. package/presets/claude/php-hexagonal/REPO_AGENTS.md +1 -1
  230. package/presets/claude/php-hexagonal/agents/api-contract-reviewer.md +17 -0
  231. package/presets/claude/php-hexagonal/agents/build-verifier.md +17 -0
  232. package/presets/claude/php-hexagonal/agents/ci-investigator.md +29 -0
  233. package/presets/claude/php-hexagonal/agents/code-reviewer.md +16 -0
  234. package/presets/claude/php-hexagonal/agents/codebase-analyzer.md +15 -0
  235. package/presets/claude/php-hexagonal/agents/debugger.md +29 -0
  236. package/presets/claude/php-hexagonal/agents/feature-developer.md +29 -0
  237. package/presets/claude/php-hexagonal/agents/integration-test-generator.md +17 -0
  238. package/presets/claude/php-hexagonal/agents/integration-test-healer.md +17 -0
  239. package/presets/claude/php-hexagonal/agents/integration-test-planner.md +17 -0
  240. package/presets/claude/php-hexagonal/agents/migration-specialist.md +15 -0
  241. package/presets/claude/php-hexagonal/agents/openspec-author.md +15 -0
  242. package/presets/claude/php-hexagonal/agents/performance-auditor.md +15 -0
  243. package/presets/claude/php-hexagonal/agents/qa-tester.md +18 -0
  244. package/presets/claude/php-hexagonal/agents/security-reviewer.md +15 -0
  245. package/presets/claude/php-hexagonal/agents/solution-architect.md +15 -0
  246. package/presets/claude/php-hexagonal/agents/task-analyst.md +15 -0
  247. package/presets/claude/php-hexagonal/agents/task-router.md +15 -0
  248. package/presets/claude/php-hexagonal/agents/tech-writer.md +15 -1
  249. package/presets/claude/php-hexagonal/agents/unit-test-generator.md +16 -0
  250. package/presets/claude/php-hexagonal/agents/unit-test-healer.md +16 -0
  251. package/presets/claude/php-hexagonal/agents/unit-test-planner.md +16 -0
  252. package/presets/claude/php-hexagonal/hooks/README.md +6 -5
  253. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +18 -0
  254. package/presets/claude/php-hexagonal/hooks/examples/README.md +3 -1
  255. package/presets/claude/php-hexagonal/hooks/guard-shell-command.sh +32 -9
  256. package/presets/claude/php-hexagonal/rules/README.md +1 -1
  257. package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +0 -5
  258. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +2 -2
  259. package/presets/claude/php-hexagonal/settings.json +33 -0
  260. package/presets/claude/php-laravel/CLAUDE.md +18 -0
  261. package/presets/claude/php-laravel/REPO_AGENTS.md +1 -1
  262. package/presets/claude/php-laravel/agents/api-contract-reviewer.md +18 -0
  263. package/presets/claude/php-laravel/agents/build-verifier.md +17 -0
  264. package/presets/claude/php-laravel/agents/ci-investigator.md +29 -0
  265. package/presets/claude/php-laravel/agents/code-reviewer.md +16 -0
  266. package/presets/claude/php-laravel/agents/codebase-analyzer.md +15 -0
  267. package/presets/claude/php-laravel/agents/debugger.md +29 -0
  268. package/presets/claude/php-laravel/agents/feature-developer.md +29 -0
  269. package/presets/claude/php-laravel/agents/integration-test-generator.md +17 -0
  270. package/presets/claude/php-laravel/agents/integration-test-healer.md +17 -0
  271. package/presets/claude/php-laravel/agents/integration-test-planner.md +17 -0
  272. package/presets/claude/php-laravel/agents/migration-specialist.md +15 -0
  273. package/presets/claude/php-laravel/agents/openspec-author.md +15 -0
  274. package/presets/claude/php-laravel/agents/performance-auditor.md +15 -0
  275. package/presets/claude/php-laravel/agents/qa-tester.md +18 -0
  276. package/presets/claude/php-laravel/agents/security-reviewer.md +15 -0
  277. package/presets/claude/php-laravel/agents/solution-architect.md +15 -0
  278. package/presets/claude/php-laravel/agents/task-analyst.md +15 -0
  279. package/presets/claude/php-laravel/agents/task-router.md +15 -0
  280. package/presets/claude/php-laravel/agents/tech-writer.md +15 -1
  281. package/presets/claude/php-laravel/agents/unit-test-generator.md +16 -0
  282. package/presets/claude/php-laravel/agents/unit-test-healer.md +16 -0
  283. package/presets/claude/php-laravel/agents/unit-test-planner.md +16 -0
  284. package/presets/claude/php-laravel/hooks/README.md +6 -5
  285. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +18 -0
  286. package/presets/claude/php-laravel/hooks/examples/README.md +3 -1
  287. package/presets/claude/php-laravel/hooks/guard-shell-command.sh +32 -9
  288. package/presets/claude/php-laravel/rules/README.md +1 -1
  289. package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +0 -5
  290. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +2 -2
  291. package/presets/claude/php-laravel/settings.json +33 -0
  292. package/presets/claude/svelte/CLAUDE.md +15 -1
  293. package/presets/claude/svelte/REPO_AGENTS.md +1 -1
  294. package/presets/claude/svelte/agents/accessibility-reviewer.md +17 -0
  295. package/presets/claude/svelte/agents/api-contract-reviewer.md +19 -0
  296. package/presets/claude/svelte/agents/build-verifier.md +17 -0
  297. package/presets/claude/svelte/agents/ci-investigator.md +34 -0
  298. package/presets/claude/svelte/agents/code-reviewer.md +18 -0
  299. package/presets/claude/svelte/agents/codebase-analyzer.md +17 -0
  300. package/presets/claude/svelte/agents/debugger.md +34 -0
  301. package/presets/claude/svelte/agents/feature-developer.md +34 -0
  302. package/presets/claude/svelte/agents/migration-specialist.md +17 -0
  303. package/presets/claude/svelte/agents/mockup-reviewer.md +17 -0
  304. package/presets/claude/svelte/agents/openspec-author.md +17 -0
  305. package/presets/claude/svelte/agents/performance-auditor.md +17 -0
  306. package/presets/claude/svelte/agents/playwright-test-generator.md +19 -0
  307. package/presets/claude/svelte/agents/playwright-test-healer.md +19 -1
  308. package/presets/claude/svelte/agents/playwright-test-planner.md +20 -1
  309. package/presets/claude/svelte/agents/qa-tester.md +20 -0
  310. package/presets/claude/svelte/agents/security-reviewer.md +17 -0
  311. package/presets/claude/svelte/agents/solution-architect.md +17 -0
  312. package/presets/claude/svelte/agents/task-analyst.md +17 -0
  313. package/presets/claude/svelte/agents/task-router.md +17 -0
  314. package/presets/claude/svelte/agents/tech-writer.md +17 -0
  315. package/presets/claude/svelte/agents/unit-test-generator.md +18 -0
  316. package/presets/claude/svelte/agents/unit-test-healer.md +18 -0
  317. package/presets/claude/svelte/agents/unit-test-planner.md +18 -0
  318. package/presets/claude/svelte/hooks/README.md +7 -4
  319. package/presets/claude/svelte/hooks/chain-team-phases.sh +18 -0
  320. package/presets/claude/svelte/hooks/examples/README.md +2 -0
  321. package/presets/claude/svelte/hooks/guard-shell-command.sh +32 -9
  322. package/presets/claude/svelte/rules/README.md +1 -1
  323. package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +0 -5
  324. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +2 -2
  325. package/presets/claude/svelte/settings.json +39 -0
  326. package/presets/cursor/android-kotlin/REPO_AGENTS.md +1 -1
  327. package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +2 -2
  328. package/presets/cursor/go/REPO_AGENTS.md +1 -1
  329. package/presets/cursor/go/rules/preset-pr-checklist.mdc +2 -2
  330. package/presets/cursor/ios-swift/REPO_AGENTS.md +1 -1
  331. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +2 -2
  332. package/presets/cursor/java/REPO_AGENTS.md +1 -1
  333. package/presets/cursor/java/rules/preset-pr-checklist.mdc +2 -2
  334. package/presets/cursor/mcp-ts/REPO_AGENTS.md +1 -1
  335. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +2 -2
  336. package/presets/cursor/next/REPO_AGENTS.md +1 -1
  337. package/presets/cursor/next/ai-local/rules-library/agent-artifacts-no-local-paths.md +38 -0
  338. package/presets/cursor/next/ai-local/rules-library/commit-hygiene.md +17 -0
  339. package/presets/cursor/next/ai-local/rules-library/mcp-required-for-ui-layout.md +41 -0
  340. package/presets/cursor/next/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
  341. package/presets/cursor/next/ai-local/rules-library/pre-pr-checklist.md +16 -0
  342. package/presets/cursor/next/ai-local/rules-library/router-pages.md +23 -0
  343. package/presets/cursor/next/ai-local/rules-library/single-source-copy-constants.md +16 -0
  344. package/presets/cursor/next/rules/preset-pr-checklist.mdc +2 -2
  345. package/presets/cursor/nuxt/REPO_AGENTS.md +1 -1
  346. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +2 -2
  347. package/presets/cursor/php-hexagonal/REPO_AGENTS.md +1 -1
  348. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +2 -2
  349. package/presets/cursor/php-laravel/REPO_AGENTS.md +1 -1
  350. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +2 -2
  351. package/presets/cursor/svelte/REPO_AGENTS.md +1 -1
  352. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +2 -2
  353. package/presets/mavis/README.md +2 -0
  354. package/presets/mavis/android-kotlin/MAVIS.md +23 -1
  355. package/presets/mavis/android-kotlin/REPO_AGENTS.md +1 -1
  356. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  357. package/presets/mavis/android-kotlin/agents/accessibility-reviewer.md +15 -0
  358. package/presets/mavis/android-kotlin/agents/api-contract-reviewer.md +16 -0
  359. package/presets/mavis/android-kotlin/agents/build-verifier.md +17 -0
  360. package/presets/mavis/android-kotlin/agents/ci-investigator.md +25 -0
  361. package/presets/mavis/android-kotlin/agents/code-reviewer.md +16 -0
  362. package/presets/mavis/android-kotlin/agents/codebase-analyzer.md +15 -0
  363. package/presets/mavis/android-kotlin/agents/debugger.md +25 -0
  364. package/presets/mavis/android-kotlin/agents/feature-developer.md +25 -0
  365. package/presets/mavis/android-kotlin/agents/instrumentation-test-generator.md +16 -0
  366. package/presets/mavis/android-kotlin/agents/instrumentation-test-healer.md +16 -0
  367. package/presets/mavis/android-kotlin/agents/instrumentation-test-planner.md +16 -0
  368. package/presets/mavis/android-kotlin/agents/migration-specialist.md +15 -0
  369. package/presets/mavis/android-kotlin/agents/mockup-reviewer.md +15 -0
  370. package/presets/mavis/android-kotlin/agents/openspec-author.md +15 -0
  371. package/presets/mavis/android-kotlin/agents/performance-auditor.md +15 -0
  372. package/presets/mavis/android-kotlin/agents/qa-tester.md +17 -0
  373. package/presets/mavis/android-kotlin/agents/security-reviewer.md +15 -0
  374. package/presets/mavis/android-kotlin/agents/solution-architect.md +15 -0
  375. package/presets/mavis/android-kotlin/agents/task-analyst.md +15 -0
  376. package/presets/mavis/android-kotlin/agents/task-router.md +15 -0
  377. package/presets/mavis/android-kotlin/agents/tech-writer.md +15 -0
  378. package/presets/mavis/android-kotlin/agents/unit-test-generator.md +16 -0
  379. package/presets/mavis/android-kotlin/agents/unit-test-healer.md +16 -0
  380. package/presets/mavis/android-kotlin/agents/unit-test-planner.md +16 -0
  381. package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +2 -2
  382. package/presets/mavis/go/MAVIS.md +23 -1
  383. package/presets/mavis/go/REPO_AGENTS.md +1 -1
  384. package/presets/mavis/go/adapter-map.json +1 -1
  385. package/presets/mavis/go/agents/api-contract-reviewer.md +17 -0
  386. package/presets/mavis/go/agents/build-verifier.md +17 -0
  387. package/presets/mavis/go/agents/ci-investigator.md +29 -0
  388. package/presets/mavis/go/agents/code-reviewer.md +16 -0
  389. package/presets/mavis/go/agents/codebase-analyzer.md +15 -0
  390. package/presets/mavis/go/agents/debugger.md +29 -0
  391. package/presets/mavis/go/agents/feature-developer.md +29 -0
  392. package/presets/mavis/go/agents/integration-test-generator.md +17 -0
  393. package/presets/mavis/go/agents/integration-test-healer.md +17 -0
  394. package/presets/mavis/go/agents/integration-test-planner.md +17 -0
  395. package/presets/mavis/go/agents/migration-specialist.md +15 -0
  396. package/presets/mavis/go/agents/openspec-author.md +15 -0
  397. package/presets/mavis/go/agents/performance-auditor.md +15 -0
  398. package/presets/mavis/go/agents/qa-tester.md +18 -0
  399. package/presets/mavis/go/agents/security-reviewer.md +15 -0
  400. package/presets/mavis/go/agents/solution-architect.md +15 -0
  401. package/presets/mavis/go/agents/task-analyst.md +15 -0
  402. package/presets/mavis/go/agents/task-router.md +15 -0
  403. package/presets/mavis/go/agents/tech-writer.md +15 -0
  404. package/presets/mavis/go/agents/unit-test-generator.md +16 -0
  405. package/presets/mavis/go/agents/unit-test-healer.md +16 -0
  406. package/presets/mavis/go/agents/unit-test-planner.md +16 -0
  407. package/presets/mavis/go/rules/preset-pr-checklist.md +2 -2
  408. package/presets/mavis/ios-swift/MAVIS.md +23 -1
  409. package/presets/mavis/ios-swift/REPO_AGENTS.md +1 -1
  410. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  411. package/presets/mavis/ios-swift/agents/accessibility-reviewer.md +15 -0
  412. package/presets/mavis/ios-swift/agents/api-contract-reviewer.md +16 -0
  413. package/presets/mavis/ios-swift/agents/build-verifier.md +17 -0
  414. package/presets/mavis/ios-swift/agents/ci-investigator.md +24 -0
  415. package/presets/mavis/ios-swift/agents/code-reviewer.md +16 -0
  416. package/presets/mavis/ios-swift/agents/codebase-analyzer.md +15 -0
  417. package/presets/mavis/ios-swift/agents/debugger.md +24 -0
  418. package/presets/mavis/ios-swift/agents/feature-developer.md +24 -0
  419. package/presets/mavis/ios-swift/agents/migration-specialist.md +15 -0
  420. package/presets/mavis/ios-swift/agents/mockup-reviewer.md +15 -0
  421. package/presets/mavis/ios-swift/agents/openspec-author.md +15 -0
  422. package/presets/mavis/ios-swift/agents/performance-auditor.md +15 -0
  423. package/presets/mavis/ios-swift/agents/qa-tester.md +17 -0
  424. package/presets/mavis/ios-swift/agents/security-reviewer.md +15 -0
  425. package/presets/mavis/ios-swift/agents/solution-architect.md +15 -0
  426. package/presets/mavis/ios-swift/agents/task-analyst.md +15 -0
  427. package/presets/mavis/ios-swift/agents/task-router.md +15 -0
  428. package/presets/mavis/ios-swift/agents/tech-writer.md +15 -0
  429. package/presets/mavis/ios-swift/agents/unit-test-generator.md +16 -0
  430. package/presets/mavis/ios-swift/agents/unit-test-healer.md +16 -0
  431. package/presets/mavis/ios-swift/agents/unit-test-planner.md +16 -0
  432. package/presets/mavis/ios-swift/agents/xcuitest-test-generator.md +16 -0
  433. package/presets/mavis/ios-swift/agents/xcuitest-test-healer.md +16 -0
  434. package/presets/mavis/ios-swift/agents/xcuitest-test-planner.md +16 -0
  435. package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +2 -2
  436. package/presets/mavis/java/MAVIS.md +23 -1
  437. package/presets/mavis/java/REPO_AGENTS.md +1 -1
  438. package/presets/mavis/java/adapter-map.json +1 -1
  439. package/presets/mavis/java/agents/api-contract-reviewer.md +17 -0
  440. package/presets/mavis/java/agents/build-verifier.md +17 -0
  441. package/presets/mavis/java/agents/ci-investigator.md +29 -0
  442. package/presets/mavis/java/agents/code-reviewer.md +16 -0
  443. package/presets/mavis/java/agents/codebase-analyzer.md +15 -0
  444. package/presets/mavis/java/agents/debugger.md +29 -0
  445. package/presets/mavis/java/agents/feature-developer.md +29 -0
  446. package/presets/mavis/java/agents/integration-test-generator.md +17 -0
  447. package/presets/mavis/java/agents/integration-test-healer.md +17 -0
  448. package/presets/mavis/java/agents/integration-test-planner.md +17 -0
  449. package/presets/mavis/java/agents/migration-specialist.md +15 -0
  450. package/presets/mavis/java/agents/openspec-author.md +15 -0
  451. package/presets/mavis/java/agents/performance-auditor.md +15 -0
  452. package/presets/mavis/java/agents/qa-tester.md +18 -0
  453. package/presets/mavis/java/agents/security-reviewer.md +15 -0
  454. package/presets/mavis/java/agents/solution-architect.md +15 -0
  455. package/presets/mavis/java/agents/task-analyst.md +15 -0
  456. package/presets/mavis/java/agents/task-router.md +15 -0
  457. package/presets/mavis/java/agents/tech-writer.md +15 -0
  458. package/presets/mavis/java/agents/unit-test-generator.md +16 -0
  459. package/presets/mavis/java/agents/unit-test-healer.md +16 -0
  460. package/presets/mavis/java/agents/unit-test-planner.md +16 -0
  461. package/presets/mavis/java/rules/preset-pr-checklist.md +2 -2
  462. package/presets/mavis/mcp-ts/MAVIS.md +23 -1
  463. package/presets/mavis/mcp-ts/REPO_AGENTS.md +1 -1
  464. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  465. package/presets/mavis/mcp-ts/agents/build-verifier.md +17 -0
  466. package/presets/mavis/mcp-ts/agents/feature-developer.md +22 -0
  467. package/presets/mavis/mcp-ts/agents/security-reviewer.md +15 -0
  468. package/presets/mavis/mcp-ts/agents/solution-architect.md +15 -0
  469. package/presets/mavis/mcp-ts/agents/task-analyst.md +15 -0
  470. package/presets/mavis/mcp-ts/agents/task-router.md +15 -0
  471. package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +2 -2
  472. package/presets/mavis/next/MAVIS.md +23 -1
  473. package/presets/mavis/next/REPO_AGENTS.md +1 -1
  474. package/presets/mavis/next/adapter-map.json +57 -1
  475. package/presets/mavis/next/agents/accessibility-reviewer.md +17 -0
  476. package/presets/mavis/next/agents/api-contract-reviewer.md +19 -0
  477. package/presets/mavis/next/agents/build-verifier.md +17 -0
  478. package/presets/mavis/next/agents/ci-investigator.md +34 -0
  479. package/presets/mavis/next/agents/code-reviewer.md +18 -0
  480. package/presets/mavis/next/agents/codebase-analyzer.md +17 -0
  481. package/presets/mavis/next/agents/debugger.md +34 -0
  482. package/presets/mavis/next/agents/feature-developer.md +34 -0
  483. package/presets/mavis/next/agents/migration-specialist.md +17 -0
  484. package/presets/mavis/next/agents/mockup-reviewer.md +17 -0
  485. package/presets/mavis/next/agents/openspec-author.md +17 -0
  486. package/presets/mavis/next/agents/performance-auditor.md +17 -0
  487. package/presets/mavis/next/agents/playwright-test-generator.md +19 -0
  488. package/presets/mavis/next/agents/playwright-test-healer.md +19 -0
  489. package/presets/mavis/next/agents/playwright-test-planner.md +19 -0
  490. package/presets/mavis/next/agents/qa-tester.md +20 -0
  491. package/presets/mavis/next/agents/security-reviewer.md +17 -0
  492. package/presets/mavis/next/agents/solution-architect.md +17 -0
  493. package/presets/mavis/next/agents/task-analyst.md +17 -0
  494. package/presets/mavis/next/agents/task-router.md +17 -0
  495. package/presets/mavis/next/agents/tech-writer.md +17 -0
  496. package/presets/mavis/next/agents/unit-test-generator.md +18 -0
  497. package/presets/mavis/next/agents/unit-test-healer.md +18 -0
  498. package/presets/mavis/next/agents/unit-test-planner.md +18 -0
  499. package/presets/mavis/next/ai-local/rules-library/agent-artifacts-no-local-paths.md +38 -0
  500. package/presets/mavis/next/ai-local/rules-library/commit-hygiene.md +17 -0
  501. package/presets/mavis/next/ai-local/rules-library/mcp-required-for-ui-layout.md +41 -0
  502. package/presets/mavis/next/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
  503. package/presets/mavis/next/ai-local/rules-library/pre-pr-checklist.md +16 -0
  504. package/presets/mavis/next/ai-local/rules-library/router-pages.md +23 -0
  505. package/presets/mavis/next/ai-local/rules-library/single-source-copy-constants.md +16 -0
  506. package/presets/mavis/next/rules/preset-pr-checklist.md +2 -2
  507. package/presets/mavis/nuxt/MAVIS.md +23 -1
  508. package/presets/mavis/nuxt/REPO_AGENTS.md +1 -1
  509. package/presets/mavis/nuxt/adapter-map.json +1 -1
  510. package/presets/mavis/nuxt/agents/accessibility-reviewer.md +17 -0
  511. package/presets/mavis/nuxt/agents/api-contract-reviewer.md +19 -0
  512. package/presets/mavis/nuxt/agents/build-verifier.md +17 -0
  513. package/presets/mavis/nuxt/agents/ci-investigator.md +34 -0
  514. package/presets/mavis/nuxt/agents/code-reviewer.md +18 -0
  515. package/presets/mavis/nuxt/agents/codebase-analyzer.md +17 -0
  516. package/presets/mavis/nuxt/agents/debugger.md +34 -0
  517. package/presets/mavis/nuxt/agents/feature-developer.md +34 -0
  518. package/presets/mavis/nuxt/agents/migration-specialist.md +17 -0
  519. package/presets/mavis/nuxt/agents/mockup-reviewer.md +17 -0
  520. package/presets/mavis/nuxt/agents/openspec-author.md +17 -0
  521. package/presets/mavis/nuxt/agents/performance-auditor.md +17 -0
  522. package/presets/mavis/nuxt/agents/playwright-test-generator.md +19 -0
  523. package/presets/mavis/nuxt/agents/playwright-test-healer.md +19 -0
  524. package/presets/mavis/nuxt/agents/playwright-test-planner.md +19 -0
  525. package/presets/mavis/nuxt/agents/qa-tester.md +20 -0
  526. package/presets/mavis/nuxt/agents/security-reviewer.md +17 -0
  527. package/presets/mavis/nuxt/agents/solution-architect.md +17 -0
  528. package/presets/mavis/nuxt/agents/task-analyst.md +17 -0
  529. package/presets/mavis/nuxt/agents/task-router.md +17 -0
  530. package/presets/mavis/nuxt/agents/tech-writer.md +17 -0
  531. package/presets/mavis/nuxt/agents/unit-test-generator.md +18 -0
  532. package/presets/mavis/nuxt/agents/unit-test-healer.md +18 -0
  533. package/presets/mavis/nuxt/agents/unit-test-planner.md +18 -0
  534. package/presets/mavis/nuxt/rules/preset-pr-checklist.md +2 -2
  535. package/presets/mavis/php-hexagonal/MAVIS.md +23 -1
  536. package/presets/mavis/php-hexagonal/REPO_AGENTS.md +1 -1
  537. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  538. package/presets/mavis/php-hexagonal/agents/api-contract-reviewer.md +17 -0
  539. package/presets/mavis/php-hexagonal/agents/build-verifier.md +17 -0
  540. package/presets/mavis/php-hexagonal/agents/ci-investigator.md +29 -0
  541. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +16 -0
  542. package/presets/mavis/php-hexagonal/agents/codebase-analyzer.md +15 -0
  543. package/presets/mavis/php-hexagonal/agents/debugger.md +29 -0
  544. package/presets/mavis/php-hexagonal/agents/feature-developer.md +29 -0
  545. package/presets/mavis/php-hexagonal/agents/integration-test-generator.md +17 -0
  546. package/presets/mavis/php-hexagonal/agents/integration-test-healer.md +17 -0
  547. package/presets/mavis/php-hexagonal/agents/integration-test-planner.md +17 -0
  548. package/presets/mavis/php-hexagonal/agents/migration-specialist.md +15 -0
  549. package/presets/mavis/php-hexagonal/agents/openspec-author.md +15 -0
  550. package/presets/mavis/php-hexagonal/agents/performance-auditor.md +15 -0
  551. package/presets/mavis/php-hexagonal/agents/qa-tester.md +18 -0
  552. package/presets/mavis/php-hexagonal/agents/security-reviewer.md +15 -0
  553. package/presets/mavis/php-hexagonal/agents/solution-architect.md +15 -0
  554. package/presets/mavis/php-hexagonal/agents/task-analyst.md +15 -0
  555. package/presets/mavis/php-hexagonal/agents/task-router.md +15 -0
  556. package/presets/mavis/php-hexagonal/agents/tech-writer.md +15 -0
  557. package/presets/mavis/php-hexagonal/agents/unit-test-generator.md +16 -0
  558. package/presets/mavis/php-hexagonal/agents/unit-test-healer.md +16 -0
  559. package/presets/mavis/php-hexagonal/agents/unit-test-planner.md +16 -0
  560. package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +2 -2
  561. package/presets/mavis/php-laravel/MAVIS.md +23 -1
  562. package/presets/mavis/php-laravel/REPO_AGENTS.md +1 -1
  563. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  564. package/presets/mavis/php-laravel/agents/api-contract-reviewer.md +18 -0
  565. package/presets/mavis/php-laravel/agents/build-verifier.md +17 -0
  566. package/presets/mavis/php-laravel/agents/ci-investigator.md +29 -0
  567. package/presets/mavis/php-laravel/agents/code-reviewer.md +16 -0
  568. package/presets/mavis/php-laravel/agents/codebase-analyzer.md +15 -0
  569. package/presets/mavis/php-laravel/agents/debugger.md +29 -0
  570. package/presets/mavis/php-laravel/agents/feature-developer.md +29 -0
  571. package/presets/mavis/php-laravel/agents/integration-test-generator.md +17 -0
  572. package/presets/mavis/php-laravel/agents/integration-test-healer.md +17 -0
  573. package/presets/mavis/php-laravel/agents/integration-test-planner.md +17 -0
  574. package/presets/mavis/php-laravel/agents/migration-specialist.md +15 -0
  575. package/presets/mavis/php-laravel/agents/openspec-author.md +15 -0
  576. package/presets/mavis/php-laravel/agents/performance-auditor.md +15 -0
  577. package/presets/mavis/php-laravel/agents/qa-tester.md +18 -0
  578. package/presets/mavis/php-laravel/agents/security-reviewer.md +15 -0
  579. package/presets/mavis/php-laravel/agents/solution-architect.md +15 -0
  580. package/presets/mavis/php-laravel/agents/task-analyst.md +15 -0
  581. package/presets/mavis/php-laravel/agents/task-router.md +15 -0
  582. package/presets/mavis/php-laravel/agents/tech-writer.md +15 -0
  583. package/presets/mavis/php-laravel/agents/unit-test-generator.md +16 -0
  584. package/presets/mavis/php-laravel/agents/unit-test-healer.md +16 -0
  585. package/presets/mavis/php-laravel/agents/unit-test-planner.md +16 -0
  586. package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +2 -2
  587. package/presets/mavis/platform-contract.json +4 -4
  588. package/presets/mavis/svelte/MAVIS.md +23 -1
  589. package/presets/mavis/svelte/REPO_AGENTS.md +1 -1
  590. package/presets/mavis/svelte/adapter-map.json +1 -1
  591. package/presets/mavis/svelte/agents/accessibility-reviewer.md +17 -0
  592. package/presets/mavis/svelte/agents/api-contract-reviewer.md +19 -0
  593. package/presets/mavis/svelte/agents/build-verifier.md +17 -0
  594. package/presets/mavis/svelte/agents/ci-investigator.md +34 -0
  595. package/presets/mavis/svelte/agents/code-reviewer.md +18 -0
  596. package/presets/mavis/svelte/agents/codebase-analyzer.md +17 -0
  597. package/presets/mavis/svelte/agents/debugger.md +34 -0
  598. package/presets/mavis/svelte/agents/feature-developer.md +34 -0
  599. package/presets/mavis/svelte/agents/migration-specialist.md +17 -0
  600. package/presets/mavis/svelte/agents/mockup-reviewer.md +17 -0
  601. package/presets/mavis/svelte/agents/openspec-author.md +17 -0
  602. package/presets/mavis/svelte/agents/performance-auditor.md +17 -0
  603. package/presets/mavis/svelte/agents/playwright-test-generator.md +19 -0
  604. package/presets/mavis/svelte/agents/playwright-test-healer.md +19 -0
  605. package/presets/mavis/svelte/agents/playwright-test-planner.md +19 -0
  606. package/presets/mavis/svelte/agents/qa-tester.md +20 -0
  607. package/presets/mavis/svelte/agents/security-reviewer.md +17 -0
  608. package/presets/mavis/svelte/agents/solution-architect.md +17 -0
  609. package/presets/mavis/svelte/agents/task-analyst.md +17 -0
  610. package/presets/mavis/svelte/agents/task-router.md +17 -0
  611. package/presets/mavis/svelte/agents/tech-writer.md +17 -0
  612. package/presets/mavis/svelte/agents/unit-test-generator.md +18 -0
  613. package/presets/mavis/svelte/agents/unit-test-healer.md +18 -0
  614. package/presets/mavis/svelte/agents/unit-test-planner.md +18 -0
  615. package/presets/mavis/svelte/rules/preset-pr-checklist.md +2 -2
  616. package/presets/opencode/README.md +1 -1
  617. package/presets/opencode/android-kotlin/OPENCODE.md +23 -2
  618. package/presets/opencode/android-kotlin/REPO_AGENTS.md +1 -1
  619. package/presets/opencode/android-kotlin/adapter-map.json +2 -2
  620. package/presets/opencode/android-kotlin/agents/accessibility-reviewer.md +15 -0
  621. package/presets/opencode/android-kotlin/agents/api-contract-reviewer.md +16 -0
  622. package/presets/opencode/android-kotlin/agents/build-verifier.md +17 -0
  623. package/presets/opencode/android-kotlin/agents/ci-investigator.md +25 -0
  624. package/presets/opencode/android-kotlin/agents/code-reviewer.md +16 -0
  625. package/presets/opencode/android-kotlin/agents/codebase-analyzer.md +15 -0
  626. package/presets/opencode/android-kotlin/agents/debugger.md +25 -0
  627. package/presets/opencode/android-kotlin/agents/feature-developer.md +25 -0
  628. package/presets/opencode/android-kotlin/agents/instrumentation-test-generator.md +16 -0
  629. package/presets/opencode/android-kotlin/agents/instrumentation-test-healer.md +16 -0
  630. package/presets/opencode/android-kotlin/agents/instrumentation-test-planner.md +16 -0
  631. package/presets/opencode/android-kotlin/agents/migration-specialist.md +15 -0
  632. package/presets/opencode/android-kotlin/agents/mockup-reviewer.md +15 -0
  633. package/presets/opencode/android-kotlin/agents/openspec-author.md +15 -0
  634. package/presets/opencode/android-kotlin/agents/performance-auditor.md +15 -0
  635. package/presets/opencode/android-kotlin/agents/qa-tester.md +17 -0
  636. package/presets/opencode/android-kotlin/agents/security-reviewer.md +15 -0
  637. package/presets/opencode/android-kotlin/agents/solution-architect.md +15 -0
  638. package/presets/opencode/android-kotlin/agents/task-analyst.md +15 -0
  639. package/presets/opencode/android-kotlin/agents/task-router.md +15 -0
  640. package/presets/opencode/android-kotlin/agents/tech-writer.md +15 -0
  641. package/presets/opencode/android-kotlin/agents/unit-test-generator.md +16 -0
  642. package/presets/opencode/android-kotlin/agents/unit-test-healer.md +16 -0
  643. package/presets/opencode/android-kotlin/agents/unit-test-planner.md +16 -0
  644. package/presets/opencode/android-kotlin/opencode.json +14 -0
  645. package/presets/opencode/android-kotlin/rules/README.md +7 -2
  646. package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +2 -2
  647. package/presets/opencode/go/OPENCODE.md +23 -2
  648. package/presets/opencode/go/REPO_AGENTS.md +1 -1
  649. package/presets/opencode/go/adapter-map.json +2 -2
  650. package/presets/opencode/go/agents/api-contract-reviewer.md +17 -0
  651. package/presets/opencode/go/agents/build-verifier.md +17 -0
  652. package/presets/opencode/go/agents/ci-investigator.md +29 -0
  653. package/presets/opencode/go/agents/code-reviewer.md +16 -0
  654. package/presets/opencode/go/agents/codebase-analyzer.md +15 -0
  655. package/presets/opencode/go/agents/debugger.md +29 -0
  656. package/presets/opencode/go/agents/feature-developer.md +29 -0
  657. package/presets/opencode/go/agents/integration-test-generator.md +17 -0
  658. package/presets/opencode/go/agents/integration-test-healer.md +17 -0
  659. package/presets/opencode/go/agents/integration-test-planner.md +17 -0
  660. package/presets/opencode/go/agents/migration-specialist.md +15 -0
  661. package/presets/opencode/go/agents/openspec-author.md +15 -0
  662. package/presets/opencode/go/agents/performance-auditor.md +15 -0
  663. package/presets/opencode/go/agents/qa-tester.md +18 -0
  664. package/presets/opencode/go/agents/security-reviewer.md +15 -0
  665. package/presets/opencode/go/agents/solution-architect.md +15 -0
  666. package/presets/opencode/go/agents/task-analyst.md +15 -0
  667. package/presets/opencode/go/agents/task-router.md +15 -0
  668. package/presets/opencode/go/agents/tech-writer.md +15 -0
  669. package/presets/opencode/go/agents/unit-test-generator.md +16 -0
  670. package/presets/opencode/go/agents/unit-test-healer.md +16 -0
  671. package/presets/opencode/go/agents/unit-test-planner.md +16 -0
  672. package/presets/opencode/go/opencode.json +14 -0
  673. package/presets/opencode/go/rules/README.md +7 -2
  674. package/presets/opencode/go/rules/preset-pr-checklist.md +2 -2
  675. package/presets/opencode/ios-swift/OPENCODE.md +23 -2
  676. package/presets/opencode/ios-swift/REPO_AGENTS.md +1 -1
  677. package/presets/opencode/ios-swift/adapter-map.json +2 -2
  678. package/presets/opencode/ios-swift/agents/accessibility-reviewer.md +15 -0
  679. package/presets/opencode/ios-swift/agents/api-contract-reviewer.md +16 -0
  680. package/presets/opencode/ios-swift/agents/build-verifier.md +17 -0
  681. package/presets/opencode/ios-swift/agents/ci-investigator.md +24 -0
  682. package/presets/opencode/ios-swift/agents/code-reviewer.md +16 -0
  683. package/presets/opencode/ios-swift/agents/codebase-analyzer.md +15 -0
  684. package/presets/opencode/ios-swift/agents/debugger.md +24 -0
  685. package/presets/opencode/ios-swift/agents/feature-developer.md +24 -0
  686. package/presets/opencode/ios-swift/agents/migration-specialist.md +15 -0
  687. package/presets/opencode/ios-swift/agents/mockup-reviewer.md +15 -0
  688. package/presets/opencode/ios-swift/agents/openspec-author.md +15 -0
  689. package/presets/opencode/ios-swift/agents/performance-auditor.md +15 -0
  690. package/presets/opencode/ios-swift/agents/qa-tester.md +17 -0
  691. package/presets/opencode/ios-swift/agents/security-reviewer.md +15 -0
  692. package/presets/opencode/ios-swift/agents/solution-architect.md +15 -0
  693. package/presets/opencode/ios-swift/agents/task-analyst.md +15 -0
  694. package/presets/opencode/ios-swift/agents/task-router.md +15 -0
  695. package/presets/opencode/ios-swift/agents/tech-writer.md +15 -0
  696. package/presets/opencode/ios-swift/agents/unit-test-generator.md +16 -0
  697. package/presets/opencode/ios-swift/agents/unit-test-healer.md +16 -0
  698. package/presets/opencode/ios-swift/agents/unit-test-planner.md +16 -0
  699. package/presets/opencode/ios-swift/agents/xcuitest-test-generator.md +16 -0
  700. package/presets/opencode/ios-swift/agents/xcuitest-test-healer.md +16 -0
  701. package/presets/opencode/ios-swift/agents/xcuitest-test-planner.md +16 -0
  702. package/presets/opencode/ios-swift/opencode.json +14 -0
  703. package/presets/opencode/ios-swift/rules/README.md +7 -2
  704. package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +2 -2
  705. package/presets/opencode/java/OPENCODE.md +23 -2
  706. package/presets/opencode/java/REPO_AGENTS.md +1 -1
  707. package/presets/opencode/java/adapter-map.json +2 -2
  708. package/presets/opencode/java/agents/api-contract-reviewer.md +17 -0
  709. package/presets/opencode/java/agents/build-verifier.md +17 -0
  710. package/presets/opencode/java/agents/ci-investigator.md +29 -0
  711. package/presets/opencode/java/agents/code-reviewer.md +16 -0
  712. package/presets/opencode/java/agents/codebase-analyzer.md +15 -0
  713. package/presets/opencode/java/agents/debugger.md +29 -0
  714. package/presets/opencode/java/agents/feature-developer.md +29 -0
  715. package/presets/opencode/java/agents/integration-test-generator.md +17 -0
  716. package/presets/opencode/java/agents/integration-test-healer.md +17 -0
  717. package/presets/opencode/java/agents/integration-test-planner.md +17 -0
  718. package/presets/opencode/java/agents/migration-specialist.md +15 -0
  719. package/presets/opencode/java/agents/openspec-author.md +15 -0
  720. package/presets/opencode/java/agents/performance-auditor.md +15 -0
  721. package/presets/opencode/java/agents/qa-tester.md +18 -0
  722. package/presets/opencode/java/agents/security-reviewer.md +15 -0
  723. package/presets/opencode/java/agents/solution-architect.md +15 -0
  724. package/presets/opencode/java/agents/task-analyst.md +15 -0
  725. package/presets/opencode/java/agents/task-router.md +15 -0
  726. package/presets/opencode/java/agents/tech-writer.md +15 -0
  727. package/presets/opencode/java/agents/unit-test-generator.md +16 -0
  728. package/presets/opencode/java/agents/unit-test-healer.md +16 -0
  729. package/presets/opencode/java/agents/unit-test-planner.md +16 -0
  730. package/presets/opencode/java/opencode.json +14 -0
  731. package/presets/opencode/java/rules/README.md +7 -2
  732. package/presets/opencode/java/rules/preset-pr-checklist.md +2 -2
  733. package/presets/opencode/mcp-ts/OPENCODE.md +23 -2
  734. package/presets/opencode/mcp-ts/REPO_AGENTS.md +1 -1
  735. package/presets/opencode/mcp-ts/adapter-map.json +2 -2
  736. package/presets/opencode/mcp-ts/agents/build-verifier.md +17 -0
  737. package/presets/opencode/mcp-ts/agents/feature-developer.md +22 -0
  738. package/presets/opencode/mcp-ts/agents/security-reviewer.md +15 -0
  739. package/presets/opencode/mcp-ts/agents/solution-architect.md +15 -0
  740. package/presets/opencode/mcp-ts/agents/task-analyst.md +15 -0
  741. package/presets/opencode/mcp-ts/agents/task-router.md +15 -0
  742. package/presets/opencode/mcp-ts/opencode.json +14 -0
  743. package/presets/opencode/mcp-ts/rules/README.md +7 -2
  744. package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +2 -2
  745. package/presets/opencode/next/OPENCODE.md +23 -2
  746. package/presets/opencode/next/REPO_AGENTS.md +1 -1
  747. package/presets/opencode/next/adapter-map.json +58 -2
  748. package/presets/opencode/next/agents/accessibility-reviewer.md +17 -0
  749. package/presets/opencode/next/agents/api-contract-reviewer.md +19 -0
  750. package/presets/opencode/next/agents/build-verifier.md +17 -0
  751. package/presets/opencode/next/agents/ci-investigator.md +34 -0
  752. package/presets/opencode/next/agents/code-reviewer.md +18 -0
  753. package/presets/opencode/next/agents/codebase-analyzer.md +17 -0
  754. package/presets/opencode/next/agents/debugger.md +34 -0
  755. package/presets/opencode/next/agents/feature-developer.md +34 -0
  756. package/presets/opencode/next/agents/migration-specialist.md +17 -0
  757. package/presets/opencode/next/agents/mockup-reviewer.md +17 -0
  758. package/presets/opencode/next/agents/openspec-author.md +17 -0
  759. package/presets/opencode/next/agents/performance-auditor.md +17 -0
  760. package/presets/opencode/next/agents/playwright-test-generator.md +19 -0
  761. package/presets/opencode/next/agents/playwright-test-healer.md +19 -0
  762. package/presets/opencode/next/agents/playwright-test-planner.md +19 -0
  763. package/presets/opencode/next/agents/qa-tester.md +20 -0
  764. package/presets/opencode/next/agents/security-reviewer.md +17 -0
  765. package/presets/opencode/next/agents/solution-architect.md +17 -0
  766. package/presets/opencode/next/agents/task-analyst.md +17 -0
  767. package/presets/opencode/next/agents/task-router.md +17 -0
  768. package/presets/opencode/next/agents/tech-writer.md +17 -0
  769. package/presets/opencode/next/agents/unit-test-generator.md +18 -0
  770. package/presets/opencode/next/agents/unit-test-healer.md +18 -0
  771. package/presets/opencode/next/agents/unit-test-planner.md +18 -0
  772. package/presets/opencode/next/ai-local/rules-library/agent-artifacts-no-local-paths.md +38 -0
  773. package/presets/opencode/next/ai-local/rules-library/commit-hygiene.md +17 -0
  774. package/presets/opencode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +41 -0
  775. package/presets/opencode/next/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
  776. package/presets/opencode/next/ai-local/rules-library/pre-pr-checklist.md +16 -0
  777. package/presets/opencode/next/ai-local/rules-library/router-pages.md +23 -0
  778. package/presets/opencode/next/ai-local/rules-library/single-source-copy-constants.md +16 -0
  779. package/presets/opencode/next/opencode.json +19 -0
  780. package/presets/opencode/next/rules/README.md +7 -2
  781. package/presets/opencode/next/rules/preset-pr-checklist.md +2 -2
  782. package/presets/opencode/nuxt/OPENCODE.md +23 -2
  783. package/presets/opencode/nuxt/REPO_AGENTS.md +1 -1
  784. package/presets/opencode/nuxt/adapter-map.json +2 -2
  785. package/presets/opencode/nuxt/agents/accessibility-reviewer.md +17 -0
  786. package/presets/opencode/nuxt/agents/api-contract-reviewer.md +19 -0
  787. package/presets/opencode/nuxt/agents/build-verifier.md +17 -0
  788. package/presets/opencode/nuxt/agents/ci-investigator.md +34 -0
  789. package/presets/opencode/nuxt/agents/code-reviewer.md +18 -0
  790. package/presets/opencode/nuxt/agents/codebase-analyzer.md +17 -0
  791. package/presets/opencode/nuxt/agents/debugger.md +34 -0
  792. package/presets/opencode/nuxt/agents/feature-developer.md +34 -0
  793. package/presets/opencode/nuxt/agents/migration-specialist.md +17 -0
  794. package/presets/opencode/nuxt/agents/mockup-reviewer.md +17 -0
  795. package/presets/opencode/nuxt/agents/openspec-author.md +17 -0
  796. package/presets/opencode/nuxt/agents/performance-auditor.md +17 -0
  797. package/presets/opencode/nuxt/agents/playwright-test-generator.md +19 -0
  798. package/presets/opencode/nuxt/agents/playwright-test-healer.md +19 -0
  799. package/presets/opencode/nuxt/agents/playwright-test-planner.md +19 -0
  800. package/presets/opencode/nuxt/agents/qa-tester.md +20 -0
  801. package/presets/opencode/nuxt/agents/security-reviewer.md +17 -0
  802. package/presets/opencode/nuxt/agents/solution-architect.md +17 -0
  803. package/presets/opencode/nuxt/agents/task-analyst.md +17 -0
  804. package/presets/opencode/nuxt/agents/task-router.md +17 -0
  805. package/presets/opencode/nuxt/agents/tech-writer.md +17 -0
  806. package/presets/opencode/nuxt/agents/unit-test-generator.md +18 -0
  807. package/presets/opencode/nuxt/agents/unit-test-healer.md +18 -0
  808. package/presets/opencode/nuxt/agents/unit-test-planner.md +18 -0
  809. package/presets/opencode/nuxt/opencode.json +19 -0
  810. package/presets/opencode/nuxt/rules/README.md +7 -2
  811. package/presets/opencode/nuxt/rules/preset-pr-checklist.md +2 -2
  812. package/presets/opencode/php-hexagonal/OPENCODE.md +23 -2
  813. package/presets/opencode/php-hexagonal/REPO_AGENTS.md +1 -1
  814. package/presets/opencode/php-hexagonal/adapter-map.json +2 -2
  815. package/presets/opencode/php-hexagonal/agents/api-contract-reviewer.md +17 -0
  816. package/presets/opencode/php-hexagonal/agents/build-verifier.md +17 -0
  817. package/presets/opencode/php-hexagonal/agents/ci-investigator.md +29 -0
  818. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +16 -0
  819. package/presets/opencode/php-hexagonal/agents/codebase-analyzer.md +15 -0
  820. package/presets/opencode/php-hexagonal/agents/debugger.md +29 -0
  821. package/presets/opencode/php-hexagonal/agents/feature-developer.md +29 -0
  822. package/presets/opencode/php-hexagonal/agents/integration-test-generator.md +17 -0
  823. package/presets/opencode/php-hexagonal/agents/integration-test-healer.md +17 -0
  824. package/presets/opencode/php-hexagonal/agents/integration-test-planner.md +17 -0
  825. package/presets/opencode/php-hexagonal/agents/migration-specialist.md +15 -0
  826. package/presets/opencode/php-hexagonal/agents/openspec-author.md +15 -0
  827. package/presets/opencode/php-hexagonal/agents/performance-auditor.md +15 -0
  828. package/presets/opencode/php-hexagonal/agents/qa-tester.md +18 -0
  829. package/presets/opencode/php-hexagonal/agents/security-reviewer.md +15 -0
  830. package/presets/opencode/php-hexagonal/agents/solution-architect.md +15 -0
  831. package/presets/opencode/php-hexagonal/agents/task-analyst.md +15 -0
  832. package/presets/opencode/php-hexagonal/agents/task-router.md +15 -0
  833. package/presets/opencode/php-hexagonal/agents/tech-writer.md +15 -0
  834. package/presets/opencode/php-hexagonal/agents/unit-test-generator.md +16 -0
  835. package/presets/opencode/php-hexagonal/agents/unit-test-healer.md +16 -0
  836. package/presets/opencode/php-hexagonal/agents/unit-test-planner.md +16 -0
  837. package/presets/opencode/php-hexagonal/opencode.json +14 -0
  838. package/presets/opencode/php-hexagonal/rules/README.md +7 -2
  839. package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +2 -2
  840. package/presets/opencode/php-laravel/OPENCODE.md +23 -2
  841. package/presets/opencode/php-laravel/REPO_AGENTS.md +1 -1
  842. package/presets/opencode/php-laravel/adapter-map.json +2 -2
  843. package/presets/opencode/php-laravel/agents/api-contract-reviewer.md +18 -0
  844. package/presets/opencode/php-laravel/agents/build-verifier.md +17 -0
  845. package/presets/opencode/php-laravel/agents/ci-investigator.md +29 -0
  846. package/presets/opencode/php-laravel/agents/code-reviewer.md +16 -0
  847. package/presets/opencode/php-laravel/agents/codebase-analyzer.md +15 -0
  848. package/presets/opencode/php-laravel/agents/debugger.md +29 -0
  849. package/presets/opencode/php-laravel/agents/feature-developer.md +29 -0
  850. package/presets/opencode/php-laravel/agents/integration-test-generator.md +17 -0
  851. package/presets/opencode/php-laravel/agents/integration-test-healer.md +17 -0
  852. package/presets/opencode/php-laravel/agents/integration-test-planner.md +17 -0
  853. package/presets/opencode/php-laravel/agents/migration-specialist.md +15 -0
  854. package/presets/opencode/php-laravel/agents/openspec-author.md +15 -0
  855. package/presets/opencode/php-laravel/agents/performance-auditor.md +15 -0
  856. package/presets/opencode/php-laravel/agents/qa-tester.md +18 -0
  857. package/presets/opencode/php-laravel/agents/security-reviewer.md +15 -0
  858. package/presets/opencode/php-laravel/agents/solution-architect.md +15 -0
  859. package/presets/opencode/php-laravel/agents/task-analyst.md +15 -0
  860. package/presets/opencode/php-laravel/agents/task-router.md +15 -0
  861. package/presets/opencode/php-laravel/agents/tech-writer.md +15 -0
  862. package/presets/opencode/php-laravel/agents/unit-test-generator.md +16 -0
  863. package/presets/opencode/php-laravel/agents/unit-test-healer.md +16 -0
  864. package/presets/opencode/php-laravel/agents/unit-test-planner.md +16 -0
  865. package/presets/opencode/php-laravel/opencode.json +14 -0
  866. package/presets/opencode/php-laravel/rules/README.md +7 -2
  867. package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +2 -2
  868. package/presets/opencode/platform-contract.json +1 -1
  869. package/presets/opencode/svelte/OPENCODE.md +23 -2
  870. package/presets/opencode/svelte/REPO_AGENTS.md +1 -1
  871. package/presets/opencode/svelte/adapter-map.json +2 -2
  872. package/presets/opencode/svelte/agents/accessibility-reviewer.md +17 -0
  873. package/presets/opencode/svelte/agents/api-contract-reviewer.md +19 -0
  874. package/presets/opencode/svelte/agents/build-verifier.md +17 -0
  875. package/presets/opencode/svelte/agents/ci-investigator.md +34 -0
  876. package/presets/opencode/svelte/agents/code-reviewer.md +18 -0
  877. package/presets/opencode/svelte/agents/codebase-analyzer.md +17 -0
  878. package/presets/opencode/svelte/agents/debugger.md +34 -0
  879. package/presets/opencode/svelte/agents/feature-developer.md +34 -0
  880. package/presets/opencode/svelte/agents/migration-specialist.md +17 -0
  881. package/presets/opencode/svelte/agents/mockup-reviewer.md +17 -0
  882. package/presets/opencode/svelte/agents/openspec-author.md +17 -0
  883. package/presets/opencode/svelte/agents/performance-auditor.md +17 -0
  884. package/presets/opencode/svelte/agents/playwright-test-generator.md +19 -0
  885. package/presets/opencode/svelte/agents/playwright-test-healer.md +19 -0
  886. package/presets/opencode/svelte/agents/playwright-test-planner.md +19 -0
  887. package/presets/opencode/svelte/agents/qa-tester.md +20 -0
  888. package/presets/opencode/svelte/agents/security-reviewer.md +17 -0
  889. package/presets/opencode/svelte/agents/solution-architect.md +17 -0
  890. package/presets/opencode/svelte/agents/task-analyst.md +17 -0
  891. package/presets/opencode/svelte/agents/task-router.md +17 -0
  892. package/presets/opencode/svelte/agents/tech-writer.md +17 -0
  893. package/presets/opencode/svelte/agents/unit-test-generator.md +18 -0
  894. package/presets/opencode/svelte/agents/unit-test-healer.md +18 -0
  895. package/presets/opencode/svelte/agents/unit-test-planner.md +18 -0
  896. package/presets/opencode/svelte/opencode.json +19 -0
  897. package/presets/opencode/svelte/rules/README.md +7 -2
  898. package/presets/opencode/svelte/rules/preset-pr-checklist.md +2 -2
  899. package/scripts/check-claude-agent-blocks.mjs +82 -0
  900. package/scripts/check-local-overlay.sh +40 -4
  901. package/scripts/check-mavis-local-overlay.mjs +23 -0
  902. package/scripts/check-mavis-platform-contract.mjs +5 -2
  903. package/scripts/check-opencode-local-overlay.mjs +19 -0
  904. package/scripts/check-opencode-platform-contract.mjs +5 -2
  905. package/scripts/check-preset-structure.sh +9 -0
  906. package/scripts/check-preset-token-budget.sh +7 -0
  907. package/scripts/fixtures/cli-golden/claude/next.json +34 -33
  908. package/scripts/fixtures/cli-golden/cursor/next.json +9 -2
  909. package/scripts/fixtures/cli-golden/mavis/android-kotlin.json +27 -27
  910. package/scripts/fixtures/cli-golden/mavis/go.json +25 -25
  911. package/scripts/fixtures/cli-golden/mavis/ios-swift.json +27 -27
  912. package/scripts/fixtures/cli-golden/mavis/java.json +25 -25
  913. package/scripts/fixtures/cli-golden/mavis/mcp-ts.json +9 -9
  914. package/scripts/fixtures/cli-golden/mavis/next.json +34 -27
  915. package/scripts/fixtures/cli-golden/mavis/nuxt.json +27 -27
  916. package/scripts/fixtures/cli-golden/mavis/php-hexagonal.json +25 -25
  917. package/scripts/fixtures/cli-golden/mavis/php-laravel.json +25 -25
  918. package/scripts/fixtures/cli-golden/mavis/svelte.json +27 -27
  919. package/scripts/fixtures/cli-golden/opencode/android-kotlin.json +29 -29
  920. package/scripts/fixtures/cli-golden/opencode/go.json +27 -27
  921. package/scripts/fixtures/cli-golden/opencode/ios-swift.json +29 -29
  922. package/scripts/fixtures/cli-golden/opencode/java.json +27 -27
  923. package/scripts/fixtures/cli-golden/opencode/mcp-ts.json +11 -11
  924. package/scripts/fixtures/cli-golden/opencode/next.json +36 -29
  925. package/scripts/fixtures/cli-golden/opencode/nuxt.json +29 -29
  926. package/scripts/fixtures/cli-golden/opencode/php-hexagonal.json +27 -27
  927. package/scripts/fixtures/cli-golden/opencode/php-laravel.json +27 -27
  928. package/scripts/fixtures/cli-golden/opencode/svelte.json +29 -29
  929. package/scripts/inject-claude-agent-rules-block.mjs +83 -0
  930. package/scripts/lib/generate-adapter-common.mjs +182 -0
  931. package/scripts/lib/generate-mavis-adapter.mjs +55 -10
  932. package/scripts/lib/generate-opencode-adapter.mjs +76 -12
  933. package/scripts/lib/stack-platform-profiles.mjs +321 -1
  934. package/scripts/sync-claude-harness-wiring.mjs +56 -0
  935. package/scripts/sync-claude-settings.mjs +81 -0
  936. package/scripts/sync-dogfood-claude.sh +62 -0
  937. package/scripts/test-cli-mcp-merge.mjs +54 -0
  938. package/scripts/test-mavis-orchestration.mjs +3 -2
@@ -5,6 +5,21 @@ readonly: false
5
5
  model: fast
6
6
  ---
7
7
 
8
+ ## Rules to load (subagent context)
9
+
10
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
11
+
12
+ - `.claude/rules/stack/ios-app-core.md`
13
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
14
+ - `.claude/rules/tooling-and-review/code-quality.md`
15
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
16
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
17
+ - `.claude/rules/architecture/reference-features.md` — analog files first
18
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
19
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
20
+
21
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
22
+
8
23
  You are a task router for an **iOS Swift/SwiftUI** agent team. You **do not** implement tasks — you classify intent and plan the agent pipeline.
9
24
 
10
25
  ## Inputs
@@ -5,6 +5,21 @@ readonly: false
5
5
  model: fast
6
6
  ---
7
7
 
8
+ ## Rules to load (subagent context)
9
+
10
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
11
+
12
+ - `.claude/rules/stack/ios-app-core.md`
13
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
14
+ - `.claude/rules/tooling-and-review/code-quality.md`
15
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
16
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
17
+ - `.claude/rules/architecture/reference-features.md` — analog files first
18
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
19
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
20
+
21
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
22
+
8
23
  You are a technical writer for an **iOS Swift/SwiftUI** team.
9
24
 
10
25
  ## Inputs
@@ -51,4 +66,3 @@ The `openspec/**` file tree is owned by the dedicated agent **`openspec-author`*
51
66
  ## Product specs (docs/specs)
52
67
 
53
68
  Post-delivery: when behavior or public docs changed and `docs/specs/` is in play, load **`product-specs`** (+ **`product-specs-authoring`** if updating specs). Sync page/feature specs + INDEX in the **same change set**. **Never invent** product behavior without AC/code source; label inferred lines `status: draft`. Soft-fail on miss; no-op if INDEX absent and sync not requested.
54
-
@@ -5,6 +5,22 @@ readonly: false
5
5
  model: inherit
6
6
  ---
7
7
 
8
+ ## Rules to load (subagent context)
9
+
10
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
11
+
12
+ - `.claude/rules/stack/ios-app-core.md`
13
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
14
+ - `.claude/rules/tooling-and-review/code-quality.md`
15
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
16
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
17
+ - `.claude/rules/architecture/reference-features.md` — analog files first
18
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
19
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
20
+ - `.claude/rules/testing/unit.md`
21
+
22
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
23
+
8
24
  You generate unit tests from project test plans for **iOS Swift**.
9
25
 
10
26
  ## Inputs
@@ -5,6 +5,22 @@ readonly: false
5
5
  model: inherit
6
6
  ---
7
7
 
8
+ ## Rules to load (subagent context)
9
+
10
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
11
+
12
+ - `.claude/rules/stack/ios-app-core.md`
13
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
14
+ - `.claude/rules/tooling-and-review/code-quality.md`
15
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
16
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
17
+ - `.claude/rules/architecture/reference-features.md` — analog files first
18
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
19
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
20
+ - `.claude/rules/testing/unit.md`
21
+
22
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
23
+
8
24
  You debug and fix failing **iOS unit tests**.
9
25
 
10
26
  ## Inputs
@@ -5,6 +5,22 @@ readonly: false
5
5
  model: inherit
6
6
  ---
7
7
 
8
+ ## Rules to load (subagent context)
9
+
10
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
11
+
12
+ - `.claude/rules/stack/ios-app-core.md`
13
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
14
+ - `.claude/rules/tooling-and-review/code-quality.md`
15
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
16
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
17
+ - `.claude/rules/architecture/reference-features.md` — analog files first
18
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
19
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
20
+ - `.claude/rules/testing/unit.md`
21
+
22
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
23
+
8
24
  You are a unit test planner for an **iOS** codebase using XCTest or Swift Testing.
9
25
 
10
26
  Use the **`unit-testing` skill** and `testing/unit.md`.
@@ -5,6 +5,22 @@ readonly: false
5
5
  model: inherit
6
6
  ---
7
7
 
8
+ ## Rules to load (subagent context)
9
+
10
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
11
+
12
+ - `.claude/rules/stack/ios-app-core.md`
13
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
14
+ - `.claude/rules/tooling-and-review/code-quality.md`
15
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
16
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
17
+ - `.claude/rules/architecture/reference-features.md` — analog files first
18
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
19
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
20
+ - `.claude/rules/testing/ui.md`
21
+
22
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
23
+
8
24
  You generate XCUITest cases from project UI test plans.
9
25
 
10
26
  ## Inputs
@@ -5,6 +5,22 @@ readonly: false
5
5
  model: inherit
6
6
  ---
7
7
 
8
+ ## Rules to load (subagent context)
9
+
10
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
11
+
12
+ - `.claude/rules/stack/ios-app-core.md`
13
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
14
+ - `.claude/rules/tooling-and-review/code-quality.md`
15
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
16
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
17
+ - `.claude/rules/architecture/reference-features.md` — analog files first
18
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
19
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
20
+ - `.claude/rules/testing/ui.md`
21
+
22
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
23
+
8
24
  You debug and fix failing **XCUITest** UI tests.
9
25
 
10
26
  ## Inputs
@@ -5,6 +5,22 @@ readonly: false
5
5
  model: inherit
6
6
  ---
7
7
 
8
+ ## Rules to load (subagent context)
9
+
10
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
11
+
12
+ - `.claude/rules/stack/ios-app-core.md`
13
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
14
+ - `.claude/rules/tooling-and-review/code-quality.md`
15
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
16
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
17
+ - `.claude/rules/architecture/reference-features.md` — analog files first
18
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
19
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
20
+ - `.claude/rules/testing/ui.md`
21
+
22
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
23
+
8
24
  You are an expert UI test planner for an **iOS** app using XCUITest.
9
25
 
10
26
  ## Project structure
@@ -5,12 +5,13 @@
5
5
  | `chain-team-phases.sh` | Pipeline chaining after subagent stop (`TEAM_ROOT=.ai.local/team`) |
6
6
  | `guard-shell-command.sh` | Destructive git / package-manager guard; **allows** `xcodebuild` / `simctl` / `xcrun` |
7
7
 
8
- Claude Code may not use Cursor `hooks.json`. Wire scripts per project docs when enabling agent-team auto-chain.
8
+ No `hooks.json`. Default chain and shell guard are registered in `.claude/settings.json` (see **Shipped wiring**). Cookbook scripts in `hooks/examples/` stay unwired; keep stack-safe recipes (this preset: **ios-swift**).
9
9
 
10
- **No `hooks.json` in Claude preset** (platform limit — same as next Claude).
10
+ ## Shipped wiring (Claude Code settings)
11
11
 
12
- ## Optional cookbook
12
+ `.claude/settings.json` `hooks` (https://code.claude.com/docs/en/hooks) registers:
13
13
 
14
- Example scripts live in `hooks/examples/` (secret-guard, format-edited, test-on-save). They are **not** auto-enabled.
14
+ - `PreToolUse` matcher `Bash` → `guard-shell-command.sh` (reads `tool_input.command`; emits `permissionDecision` `ask` or `allow`)
15
+ - `SubagentStop` → `chain-team-phases.sh` (kebab-case `agent_type` maps to `status: completed`; empty or non-kebab types are ignored; `stop_hook_active` does not recurse)
15
16
 
16
- To wire in Claude Code: copy an `.example.sh` into `hooks/`, make executable, and register per [Claude Code hooks](https://code.claude.com/docs/en/hooks) for your project. Keep stack-safe recipes (this preset: **ios-swift**). Cursor twin examples under `presets/cursor/ios-swift/hooks/examples/` are the same allowlist forks.
17
+ There is no `hooks.json`. Cookbook scripts under `hooks/examples/` stay unwired. A hook crash is not a deny (Cursor `failClosed` has no Claude field); `ask` is the supported review decision.
@@ -21,6 +21,24 @@ try {
21
21
  process.exit(0);
22
22
  }
23
23
 
24
+ // Claude Code SubagentStop has hook_event_name / agent_type / stop_hook_active, not status.
25
+ // Kebab-case agent_type (preset roles) is the completed signal. Empty or non-kebab
26
+ // types (Claude internal agents) do not advance the pipeline. stop_hook_active
27
+ // means this hook already continued the turn — do not recurse.
28
+ // Manual pipes of {"status":"completed"} skip this block.
29
+ if (hookInput.hook_event_name === 'SubagentStop') {
30
+ if (hookInput.stop_hook_active === true) {
31
+ process.stdout.write('{}');
32
+ process.exit(0);
33
+ }
34
+ const agentType = typeof hookInput.agent_type === 'string' ? hookInput.agent_type : '';
35
+ if (!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(agentType)) {
36
+ process.stdout.write('{}');
37
+ process.exit(0);
38
+ }
39
+ if (hookInput.status == null) hookInput.status = 'completed';
40
+ }
41
+
24
42
  if (hookInput.status !== 'completed') {
25
43
  process.stdout.write('{}');
26
44
  process.exit(0);
@@ -10,6 +10,8 @@ Optional scripts under `hooks/examples/`. **Not** referenced from default `hooks
10
10
 
11
11
  ## Wiring (Claude Code)
12
12
 
13
+ Default `.claude/settings.json` already registers `guard-shell-command.sh` on `PreToolUse` (matcher `Bash`) and `chain-team-phases.sh` on `SubagentStop`. Cookbook scripts are not in that default set.
14
+
13
15
  Claude Code has no preset `hooks.json`; hooks are registered in `.claude/settings.json` and fire on events such as `PreToolUse`, `PostToolUse`, and `Stop`.
14
16
 
15
17
  1. Copy an example into `hooks/` (drop `.example` suffix), e.g. `cp hooks/examples/secret-guard.example.sh hooks/secret-guard.sh`.
@@ -19,20 +19,43 @@ try {
19
19
  process.exit(0);
20
20
  }
21
21
 
22
- const command = String(event.command || event.input?.command || '');
23
- if (!command.trim()) {
24
- process.stdout.write('{ "permission": "allow" }');
25
- process.exit(0);
26
- }
22
+ const claudePreTool = event.hook_event_name === 'PreToolUse';
23
+ const command = String(
24
+ event.command
25
+ || (event.input && event.input.command)
26
+ || (event.tool_input && event.tool_input.command)
27
+ || '',
28
+ );
27
29
 
28
- function out(permission, userMessage, agentMessage) {
30
+ function out(permission, userMessage) {
31
+ if (claudePreTool) {
32
+ const decision = permission === 'ask' || permission === 'deny' ? permission : 'allow';
33
+ const hookSpecificOutput = {
34
+ hookEventName: 'PreToolUse',
35
+ permissionDecision: decision,
36
+ };
37
+ if (userMessage && decision !== 'allow') {
38
+ hookSpecificOutput.permissionDecisionReason = userMessage;
39
+ }
40
+ process.stdout.write(JSON.stringify({ hookSpecificOutput }));
41
+ return;
42
+ }
43
+ if (!userMessage) {
44
+ process.stdout.write('{ "permission": "allow" }');
45
+ return;
46
+ }
29
47
  process.stdout.write(JSON.stringify({
30
48
  permission,
31
49
  user_message: userMessage,
32
- agent_message: agentMessage || userMessage,
50
+ agent_message: userMessage,
33
51
  }));
34
52
  }
35
53
 
54
+ if (!command.trim()) {
55
+ out('allow');
56
+ process.exit(0);
57
+ }
58
+
36
59
  const dangerousGit = /\bgit\s+(reset\s+--hard|clean\s+-[^\n]*f|push\s+--force|push\s+-f|checkout\s+--\s+)/;
37
60
  if (dangerousGit.test(command)) {
38
61
  out(
@@ -61,7 +84,7 @@ if (!expected && fs.existsSync('package.json')) {
61
84
  }
62
85
 
63
86
  if (!expected) {
64
- process.stdout.write('{ "permission": "allow" }');
87
+ out('allow');
65
88
  process.exit(0);
66
89
  }
67
90
 
@@ -75,5 +98,5 @@ if (used && used !== expected) {
75
98
  process.exit(0);
76
99
  }
77
100
 
78
- process.stdout.write('{ "permission": "allow" }');
101
+ out('allow');
79
102
  NODE
@@ -13,7 +13,7 @@ In Claude Code all `.md` files under `rules/` are **discovered recursively**. Bo
13
13
 
14
14
  ## Loading budget
15
15
 
16
- - **Session-start (no `paths:`):** 3–5 — `ios-app-core`, `boundaries`, `code-quality` (≤200 body lines total)
16
+ - **Session-start (no `paths:`):** 3–5 — `ios-app-core`, `boundaries`, `code-quality` (≤200 body lines total), `ai-local-overlay`
17
17
  - **Everything else** — with `paths:` (commands/team/agents and/or Feature/Swift globs)
18
18
  - **Soft twin depth:** domain rules ≥15 body lines; thin aliases (`agent-team-intake`, `technical-retro`) may be shorter (as in next)
19
19
 
@@ -1,10 +1,5 @@
1
1
  ---
2
2
  description: Local overlay from .ai.local/ (consumer-owned rules with priority over preset rules) — MANDATORY
3
- paths:
4
- - "**/.ai.local/**"
5
- - "**/AGENTS.md"
6
- - "**/CLAUDE.md"
7
- alwaysApply: false
8
3
  impact: CRITICAL
9
4
  ---
10
5
 
@@ -30,7 +30,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
30
30
  - [ ] **README:** stack `rules/README.md` core→stack mapping / catalog updated if stems added
31
31
  - [ ] **CHANGELOG / package README:** note when public preset paths or install surface change
32
32
  - [ ] **i18n anchors:** kept-marked Cyrillic fragments in `tests-unit.md(c)` stay consistent with their English counterparts. Run `packages/ai-rules/scripts/check-preset-i18n.sh`.
33
- - [ ] **Dogfood:** run `packages/ai-rules/scripts/sync-dogfood-cursor.sh` (and `sync-dogfood-mavis.sh` / `sync-dogfood-opencode.sh` when those platforms changed), or document an intentional skip, when maintaining this monorepo
33
+ - [ ] **Dogfood:** run `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, and `sync-dogfood-opencode.sh` when those platforms changed, or document an intentional skip, when maintaining this monorepo
34
34
  - [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
35
35
 
36
36
  ## Pointers
@@ -40,6 +40,6 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
40
40
  - Budget: `preset-token-budget`
41
41
  - Leakage: `preset-no-cross-stack-leakage`
42
42
  - Validation: stack `agents/build-verifier.md` → preset-structure section
43
- - Dogfood scripts: `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-mavis.sh`, `sync-dogfood-opencode.sh`
43
+ - Dogfood scripts: `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, `sync-dogfood-opencode.sh`
44
44
  - Drift script: `packages/ai-rules/scripts/check-shared-core-drift.sh`
45
45
  - Orchestrator: when editing presets, load this checklist + twin-sync
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/claude-code-settings.json",
3
+ "permissions": {
4
+ "deny": [
5
+ "Bash(git commit *)",
6
+ "Bash(git push *)"
7
+ ],
8
+ "ask": []
9
+ },
10
+ "hooks": {
11
+ "PreToolUse": [
12
+ {
13
+ "matcher": "Bash",
14
+ "hooks": [
15
+ {
16
+ "type": "command",
17
+ "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/guard-shell-command.sh"
18
+ }
19
+ ]
20
+ }
21
+ ],
22
+ "SubagentStop": [
23
+ {
24
+ "hooks": [
25
+ {
26
+ "type": "command",
27
+ "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/chain-team-phases.sh"
28
+ }
29
+ ]
30
+ }
31
+ ]
32
+ }
33
+ }
@@ -4,7 +4,8 @@ Preset for Java backends using ports & adapters (Spring Boot default).
4
4
 
5
5
  **Repo-root agents:** see [`AGENTS.md`](../../AGENTS.md) at the project root.
6
6
 
7
- - Session-start: `java-app-core`, `architecture/boundaries`, `code-quality` (3–5).
7
+ - Session-start: `java-app-core`, `architecture/boundaries`, `code-quality`, `ai-local-overlay` (3–5).
8
+ - **Local overlay (session-start):** `ai-local-overlay` has no `paths:` and counts in the 3–5 budget. On every turn, probe `ls -la .ai.local`, apply `.ai.local/rules/*.md` and `.ai.local/conventions.md`, and acknowledge `Using .ai.local: <rule-name>`. Guide: `docs/LOCAL-OVERLAY.md`.
8
9
  - Delivery: `architecture/feature-delivery.md` + skill `feature-delivery`.
9
10
  - After Java edits: `tooling-and-review/post-change-test.md` (+ `java-tooling`).
10
11
  - Integration tests: agents `integration-test-*` + skill `integration-testing` (never Playwright/XCUITest).
@@ -27,3 +28,16 @@ Preset for Java backends using ports & adapters (Spring Boot default).
27
28
  5. Secrets/authz logging — `security-reviewer` + `security-java`.
28
29
 
29
30
  Init: `npx @bonesofspring/ai-rules init claude --preset java` (also copies `REPO_AGENTS.md` → root `AGENTS.md`).
31
+
32
+ ## Harness wiring
33
+
34
+ - **Subagent rules** are re-declared inside every `.claude/agents/*.md` via
35
+ the `## Rules to load (subagent context)` block (always-on + zone rules
36
+ filtered to stems that exist for this stack, using the nested
37
+ `.claude/rules/<topic>/<stem>.md` paths). Claude Code subagents inherit
38
+ no parent context, so this block is the authoritative mechanism.
39
+ - `.claude/settings.json` ships harness-level denials (universal
40
+ `git commit/push deny`; JS stacks also `npx jest* deny` and `npm/npx/pnpm/bun`
41
+ ask). Re-init overwrites the file (consumer can edit afterwards); mirror
42
+ with root `AGENTS.md` if you change the harness.
43
+ - **Pipeline hooks:** `.claude/settings.json` `hooks` wires `guard-shell-command.sh` (`PreToolUse` / `Bash`, `permissionDecision` `ask` or `allow`) and `chain-team-phases.sh` (`SubagentStop` for kebab-case `agent_type`). See `hooks/README.md`. No `hooks.json`.
@@ -69,4 +69,4 @@ A `.ai.local/` directory MAY exist at the repo root or at any nesting depth in m
69
69
 
70
70
  Plain markdown rules under `.ai.local/rules/*.md` are read by the agent with higher priority than preset rules. Living gotchas live in `.ai.local/conventions.md`.
71
71
 
72
- Authoring guide: `docs/LOCAL-OVERLAY.md` in the `@bonesofspring/ai-rules` package. The `ai-local-overlay` rule (always-on for Cursor, on-demand for Claude) is the mechanism; this `MANDATORY` section is the reinforcement.
72
+ On every turn, probe `ls -la .ai.local`, apply `.ai.local/rules/*.md` and `.ai.local/conventions.md`, and acknowledge `Using .ai.local: <rule-name>`. Authoring guide: `docs/LOCAL-OVERLAY.md` in the `@bonesofspring/ai-rules` package. The `ai-local-overlay` rule is always-on on Cursor and session-start on Claude (no `paths:`). Mavis and OpenCode have no native `alwaysApply`; this section plus the platform entry's essential-rules list is the reinforcement.
@@ -4,6 +4,23 @@ description: API contract review specialist. Validates OpenAPI/Protobuf DTOs, ma
4
4
  readonly: false
5
5
  ---
6
6
 
7
+ ## Rules to load (subagent context)
8
+
9
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
10
+
11
+ - `.claude/rules/stack/java-app-core.md`
12
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
13
+ - `.claude/rules/tooling-and-review/code-quality.md`
14
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
15
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
16
+ - `.claude/rules/architecture/reference-features.md` — analog files first
17
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
18
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
19
+ - `.claude/rules/api-and-data/api-http.md`
20
+ - `.claude/rules/api-and-data/api-grpc.md`
21
+
22
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
23
+
7
24
  Review **HTTP/gRPC contract alignment** for Java hexagonal services.
8
25
 
9
26
  ## Focus
@@ -5,6 +5,23 @@ readonly: false
5
5
  model: fast
6
6
  ---
7
7
 
8
+ ## Rules to load (subagent context)
9
+
10
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
11
+
12
+ - `.claude/rules/stack/java-app-core.md`
13
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
14
+ - `.claude/rules/tooling-and-review/code-quality.md`
15
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
16
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
17
+ - `.claude/rules/architecture/reference-features.md` — analog files first
18
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
19
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
20
+ - `.claude/rules/tooling-and-review/java-tooling.md`
21
+ - `.claude/rules/tooling-and-review/post-change-test.md`
22
+
23
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
24
+
8
25
  You are the build verifier for **Java hexagonal** services (and for **ai-rules preset packaging** when scope says so).
9
26
 
10
27
  ## Consumer Java repos
@@ -4,6 +4,35 @@ description: Investigates failing CI checks on PRs and branches — mvn test / .
4
4
  readonly: false
5
5
  ---
6
6
 
7
+ ## Rules to load (subagent context)
8
+
9
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
10
+
11
+ - `.claude/rules/stack/java-app-core.md`
12
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
13
+ - `.claude/rules/tooling-and-review/code-quality.md`
14
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
15
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
16
+ - `.claude/rules/architecture/reference-features.md` — analog files first
17
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
18
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
19
+ - `.claude/rules/architecture/domain-layer.md`
20
+ - `.claude/rules/architecture/application-usecases.md`
21
+ - `.claude/rules/architecture/ports-interfaces.md`
22
+ - `.claude/rules/api-and-data/adapters-driven.md`
23
+ - `.claude/rules/api-and-data/adapters-driving.md`
24
+ - `.claude/rules/architecture/composition-root.md`
25
+ - `.claude/rules/architecture/module-public-api.md`
26
+ - `.claude/rules/api-and-data/persistence-adapters.md`
27
+ - `.claude/rules/api-and-data/messaging-adapters.md`
28
+ - `.claude/rules/stack/java-conventions.md`
29
+ - `.claude/rules/api-and-data/api-http.md`
30
+ - `.claude/rules/api-and-data/api-grpc.md`
31
+ - `.claude/rules/tooling-and-review/java-tooling.md`
32
+ - `.claude/rules/tooling-and-review/post-change-test.md`
33
+
34
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
35
+
7
36
  Triage red CI for Java repos (and ai-rules preset-structure when relevant).
8
37
 
9
38
  ## Steps
@@ -5,6 +5,22 @@ readonly: false
5
5
  model: fast
6
6
  ---
7
7
 
8
+ ## Rules to load (subagent context)
9
+
10
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
11
+
12
+ - `.claude/rules/stack/java-app-core.md`
13
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
14
+ - `.claude/rules/tooling-and-review/code-quality.md`
15
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
16
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
17
+ - `.claude/rules/architecture/reference-features.md` — analog files first
18
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
19
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
20
+ - `.claude/rules/tooling-and-review/code-review.md`
21
+
22
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
23
+
8
24
  You are a senior Java hexagonal code reviewer. Write only review artifacts under `.ai.local/team/**`; do not modify production code.
9
25
 
10
26
  ## Inputs
@@ -5,6 +5,21 @@ readonly: false
5
5
  model: fast
6
6
  ---
7
7
 
8
+ ## Rules to load (subagent context)
9
+
10
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
11
+
12
+ - `.claude/rules/stack/java-app-core.md`
13
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
14
+ - `.claude/rules/tooling-and-review/code-quality.md`
15
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
16
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
17
+ - `.claude/rules/architecture/reference-features.md` — analog files first
18
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
19
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
20
+
21
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
22
+
8
23
  You are a specialist at understanding HOW this Java hexagonal service works. Document implementation details with precise `path:line` references.
9
24
 
10
25
  ## CRITICAL — explain as-is only
@@ -4,6 +4,35 @@ description: Debugging specialist for errors, test failures, and unexpected beha
4
4
  readonly: false
5
5
  ---
6
6
 
7
+ ## Rules to load (subagent context)
8
+
9
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
10
+
11
+ - `.claude/rules/stack/java-app-core.md`
12
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
13
+ - `.claude/rules/tooling-and-review/code-quality.md`
14
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
15
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
16
+ - `.claude/rules/architecture/reference-features.md` — analog files first
17
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
18
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
19
+ - `.claude/rules/architecture/domain-layer.md`
20
+ - `.claude/rules/architecture/application-usecases.md`
21
+ - `.claude/rules/architecture/ports-interfaces.md`
22
+ - `.claude/rules/api-and-data/adapters-driven.md`
23
+ - `.claude/rules/api-and-data/adapters-driving.md`
24
+ - `.claude/rules/architecture/composition-root.md`
25
+ - `.claude/rules/architecture/module-public-api.md`
26
+ - `.claude/rules/api-and-data/persistence-adapters.md`
27
+ - `.claude/rules/api-and-data/messaging-adapters.md`
28
+ - `.claude/rules/stack/java-conventions.md`
29
+ - `.claude/rules/api-and-data/api-http.md`
30
+ - `.claude/rules/api-and-data/api-grpc.md`
31
+ - `.claude/rules/tooling-and-review/java-tooling.md`
32
+ - `.claude/rules/tooling-and-review/post-change-test.md`
33
+
34
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
35
+
7
36
  Investigate with **runtime evidence**: failing `mvn test` / `./gradlew test` output, logs, stack traces, minimal repro.
8
37
 
9
38
  Use the **`debug-investigation` skill** for the investigation loop.
@@ -4,6 +4,35 @@ description: Feature implementation specialist for Java hexagonal services. Impl
4
4
  readonly: false
5
5
  ---
6
6
 
7
+ ## Rules to load (subagent context)
8
+
9
+ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Read these rules explicitly before acting:
10
+
11
+ - `.claude/rules/stack/java-app-core.md`
12
+ - `.claude/rules/architecture/boundaries.md` — layer boundaries and allowed imports
13
+ - `.claude/rules/tooling-and-review/code-quality.md`
14
+ - `.claude/rules/tooling-and-review/ai-local-overlay.md`
15
+ - `.claude/rules/architecture/feature-delivery.md` — layer order, mockup gate, ux-design gate
16
+ - `.claude/rules/architecture/reference-features.md` — analog files first
17
+ - `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
18
+ - `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
19
+ - `.claude/rules/architecture/domain-layer.md`
20
+ - `.claude/rules/architecture/application-usecases.md`
21
+ - `.claude/rules/architecture/ports-interfaces.md`
22
+ - `.claude/rules/api-and-data/adapters-driven.md`
23
+ - `.claude/rules/api-and-data/adapters-driving.md`
24
+ - `.claude/rules/architecture/composition-root.md`
25
+ - `.claude/rules/architecture/module-public-api.md`
26
+ - `.claude/rules/api-and-data/persistence-adapters.md`
27
+ - `.claude/rules/api-and-data/messaging-adapters.md`
28
+ - `.claude/rules/stack/java-conventions.md`
29
+ - `.claude/rules/api-and-data/api-http.md`
30
+ - `.claude/rules/api-and-data/api-grpc.md`
31
+ - `.claude/rules/tooling-and-review/java-tooling.md`
32
+ - `.claude/rules/tooling-and-review/post-change-test.md`
33
+
34
+ Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
35
+
7
36
  Implement Java features following hexagonal boundaries.
8
37
 
9
38
  ## Order