@bonesofspring/ai-rules 0.2.48 → 0.2.51

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 (639) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/README.md +15 -2
  3. package/bin/cli.js +52 -13
  4. package/bin/lib/ai-local-drift.js +665 -0
  5. package/bin/lib/seed-ai-local-team.js +153 -35
  6. package/bin/mavis-install.js +6 -0
  7. package/bin/opencode-install.js +13 -2
  8. package/docs/LOCAL-OVERLAY.md +77 -1
  9. package/docs/PRESET-CONTRIBUTION.md +17 -4
  10. package/package.json +5 -1
  11. package/presets/_shared/ai-local/scripts/derive-gate-signals.mjs +1 -0
  12. package/presets/_shared/ai-local/scripts/efficacy-oracle.mjs +1 -1
  13. package/presets/_shared/ai-local/scripts/manifest.mjs +30 -9
  14. package/presets/_shared/ai-local/scripts/rule-improver.mjs +531 -60
  15. package/presets/_shared/ai-local/scripts/run.mjs +56 -1
  16. package/presets/_shared/ai-local/scripts/signals.mjs +125 -6
  17. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +5 -2
  18. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -1
  19. package/presets/_shared/core/quality/anti-hallucination-contract.md +2 -0
  20. package/presets/_shared/core/quality/code-quality-and-refactoring.md +1 -8
  21. package/presets/_shared/core/quality/interactive-questions.md +27 -0
  22. package/presets/_shared/core/review/code-review-mr.md +20 -1
  23. package/presets/_shared/core/review/receiving-code-review.md +7 -0
  24. package/presets/_shared/core/review/technical-retro.md +2 -0
  25. package/presets/_shared/hooks/chain-team-phases.sh.tmpl +9 -0
  26. package/presets/claude/android-kotlin/agents/build-verifier.md +1 -1
  27. package/presets/claude/android-kotlin/agents/code-reviewer.md +15 -1
  28. package/presets/claude/android-kotlin/agents/debugger.md +1 -1
  29. package/presets/claude/android-kotlin/agents/feature-developer.md +1 -1
  30. package/presets/claude/android-kotlin/agents/qa-tester.md +1 -1
  31. package/presets/claude/android-kotlin/commands/technical-retro.md +1 -1
  32. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +9 -0
  33. package/presets/claude/android-kotlin/rules/README.md +1 -0
  34. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  35. package/presets/claude/android-kotlin/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  36. package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +1 -8
  37. package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +20 -1
  38. package/presets/claude/android-kotlin/rules/tooling-and-review/interactive-questions.md +34 -0
  39. package/presets/claude/android-kotlin/rules/tooling-and-review/technical-retro.md +2 -0
  40. package/presets/claude/android-kotlin/skills/code-review/SKILL.md +11 -1
  41. package/presets/claude/android-kotlin/skills/technical-retro/SKILL.md +1 -1
  42. package/presets/claude/go/agents/build-verifier.md +1 -1
  43. package/presets/claude/go/agents/code-reviewer.md +37 -3
  44. package/presets/claude/go/agents/debugger.md +1 -1
  45. package/presets/claude/go/agents/feature-developer.md +1 -1
  46. package/presets/claude/go/agents/qa-tester.md +1 -1
  47. package/presets/claude/go/commands/technical-retro.md +1 -1
  48. package/presets/claude/go/hooks/chain-team-phases.sh +9 -0
  49. package/presets/claude/go/rules/README.md +1 -0
  50. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  51. package/presets/claude/go/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  52. package/presets/claude/go/rules/tooling-and-review/code-quality.md +1 -8
  53. package/presets/claude/go/rules/tooling-and-review/code-review.md +20 -1
  54. package/presets/claude/go/rules/tooling-and-review/interactive-questions.md +34 -0
  55. package/presets/claude/go/rules/tooling-and-review/technical-retro.md +2 -0
  56. package/presets/claude/go/skills/code-review/SKILL.md +10 -1
  57. package/presets/claude/go/skills/technical-retro/SKILL.md +1 -1
  58. package/presets/claude/ios-swift/agents/build-verifier.md +1 -1
  59. package/presets/claude/ios-swift/agents/code-reviewer.md +15 -1
  60. package/presets/claude/ios-swift/agents/debugger.md +1 -1
  61. package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
  62. package/presets/claude/ios-swift/agents/qa-tester.md +1 -1
  63. package/presets/claude/ios-swift/commands/technical-retro.md +1 -1
  64. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +9 -0
  65. package/presets/claude/ios-swift/rules/README.md +2 -0
  66. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  67. package/presets/claude/ios-swift/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  68. package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +1 -8
  69. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +20 -1
  70. package/presets/claude/ios-swift/rules/tooling-and-review/interactive-questions.md +34 -0
  71. package/presets/claude/ios-swift/rules/tooling-and-review/technical-retro.md +2 -0
  72. package/presets/claude/ios-swift/skills/code-review/SKILL.md +11 -1
  73. package/presets/claude/ios-swift/skills/technical-retro/SKILL.md +1 -1
  74. package/presets/claude/java/agents/build-verifier.md +1 -1
  75. package/presets/claude/java/agents/code-reviewer.md +37 -3
  76. package/presets/claude/java/agents/debugger.md +1 -1
  77. package/presets/claude/java/agents/feature-developer.md +1 -1
  78. package/presets/claude/java/agents/qa-tester.md +1 -1
  79. package/presets/claude/java/commands/technical-retro.md +1 -1
  80. package/presets/claude/java/hooks/chain-team-phases.sh +9 -0
  81. package/presets/claude/java/rules/README.md +1 -0
  82. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  83. package/presets/claude/java/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  84. package/presets/claude/java/rules/tooling-and-review/code-quality.md +1 -8
  85. package/presets/claude/java/rules/tooling-and-review/code-review.md +20 -1
  86. package/presets/claude/java/rules/tooling-and-review/interactive-questions.md +34 -0
  87. package/presets/claude/java/rules/tooling-and-review/technical-retro.md +2 -0
  88. package/presets/claude/java/skills/code-review/SKILL.md +10 -1
  89. package/presets/claude/java/skills/technical-retro/SKILL.md +1 -1
  90. package/presets/claude/mcp-ts/agents/build-verifier.md +1 -1
  91. package/presets/claude/mcp-ts/agents/feature-developer.md +1 -1
  92. package/presets/claude/mcp-ts/commands/technical-retro.md +1 -1
  93. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +9 -0
  94. package/presets/claude/mcp-ts/rules/README.md +1 -0
  95. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  96. package/presets/claude/mcp-ts/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  97. package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +1 -8
  98. package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +20 -1
  99. package/presets/claude/mcp-ts/rules/tooling-and-review/interactive-questions.md +34 -0
  100. package/presets/claude/mcp-ts/rules/tooling-and-review/technical-retro.md +2 -0
  101. package/presets/claude/mcp-ts/skills/code-review/SKILL.md +8 -0
  102. package/presets/claude/next/agents/build-verifier.md +1 -1
  103. package/presets/claude/next/agents/code-reviewer.md +15 -1
  104. package/presets/claude/next/agents/debugger.md +1 -1
  105. package/presets/claude/next/agents/feature-developer.md +1 -1
  106. package/presets/claude/next/agents/qa-tester.md +1 -1
  107. package/presets/claude/next/commands/technical-retro.md +1 -1
  108. package/presets/claude/next/hooks/chain-team-phases.sh +9 -0
  109. package/presets/claude/next/rules/README.md +3 -1
  110. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  111. package/presets/claude/next/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  112. package/presets/claude/next/rules/tooling-and-review/code-quality.md +1 -8
  113. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +20 -1
  114. package/presets/claude/next/rules/tooling-and-review/interactive-questions.md +34 -0
  115. package/presets/claude/next/rules/tooling-and-review/technical-retro.md +2 -0
  116. package/presets/claude/next/skills/code-review/SKILL.md +12 -2
  117. package/presets/claude/next/skills/technical-retro/SKILL.md +1 -1
  118. package/presets/claude/nuxt/agents/build-verifier.md +1 -1
  119. package/presets/claude/nuxt/agents/code-reviewer.md +15 -1
  120. package/presets/claude/nuxt/agents/debugger.md +1 -1
  121. package/presets/claude/nuxt/agents/feature-developer.md +1 -1
  122. package/presets/claude/nuxt/agents/qa-tester.md +1 -1
  123. package/presets/claude/nuxt/commands/technical-retro.md +1 -1
  124. package/presets/claude/nuxt/hooks/chain-team-phases.sh +9 -0
  125. package/presets/claude/nuxt/rules/README.md +2 -0
  126. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  127. package/presets/claude/nuxt/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  128. package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +1 -8
  129. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +20 -1
  130. package/presets/claude/nuxt/rules/tooling-and-review/interactive-questions.md +34 -0
  131. package/presets/claude/nuxt/rules/tooling-and-review/technical-retro.md +2 -0
  132. package/presets/claude/nuxt/skills/code-review/SKILL.md +11 -1
  133. package/presets/claude/nuxt/skills/technical-retro/SKILL.md +1 -1
  134. package/presets/claude/php-hexagonal/agents/build-verifier.md +1 -1
  135. package/presets/claude/php-hexagonal/agents/code-reviewer.md +37 -3
  136. package/presets/claude/php-hexagonal/agents/debugger.md +1 -1
  137. package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -1
  138. package/presets/claude/php-hexagonal/agents/qa-tester.md +1 -1
  139. package/presets/claude/php-hexagonal/commands/technical-retro.md +1 -1
  140. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +9 -0
  141. package/presets/claude/php-hexagonal/rules/README.md +1 -0
  142. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  143. package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  144. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +1 -8
  145. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +20 -1
  146. package/presets/claude/php-hexagonal/rules/tooling-and-review/interactive-questions.md +34 -0
  147. package/presets/claude/php-hexagonal/rules/tooling-and-review/technical-retro.md +2 -0
  148. package/presets/claude/php-hexagonal/skills/code-review/SKILL.md +10 -1
  149. package/presets/claude/php-hexagonal/skills/technical-retro/SKILL.md +1 -1
  150. package/presets/claude/php-laravel/agents/build-verifier.md +1 -1
  151. package/presets/claude/php-laravel/agents/code-reviewer.md +37 -3
  152. package/presets/claude/php-laravel/agents/debugger.md +1 -1
  153. package/presets/claude/php-laravel/agents/feature-developer.md +1 -1
  154. package/presets/claude/php-laravel/agents/qa-tester.md +1 -1
  155. package/presets/claude/php-laravel/commands/technical-retro.md +1 -1
  156. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +9 -0
  157. package/presets/claude/php-laravel/rules/README.md +1 -0
  158. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  159. package/presets/claude/php-laravel/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  160. package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +1 -8
  161. package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +20 -1
  162. package/presets/claude/php-laravel/rules/tooling-and-review/interactive-questions.md +34 -0
  163. package/presets/claude/php-laravel/rules/tooling-and-review/technical-retro.md +2 -0
  164. package/presets/claude/php-laravel/skills/code-review/SKILL.md +10 -1
  165. package/presets/claude/php-laravel/skills/technical-retro/SKILL.md +1 -1
  166. package/presets/claude/svelte/agents/build-verifier.md +1 -1
  167. package/presets/claude/svelte/agents/code-reviewer.md +15 -1
  168. package/presets/claude/svelte/agents/debugger.md +1 -1
  169. package/presets/claude/svelte/agents/feature-developer.md +1 -1
  170. package/presets/claude/svelte/agents/qa-tester.md +1 -1
  171. package/presets/claude/svelte/commands/technical-retro.md +1 -1
  172. package/presets/claude/svelte/hooks/chain-team-phases.sh +9 -0
  173. package/presets/claude/svelte/rules/README.md +2 -0
  174. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  175. package/presets/claude/svelte/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  176. package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +1 -8
  177. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +20 -1
  178. package/presets/claude/svelte/rules/tooling-and-review/interactive-questions.md +34 -0
  179. package/presets/claude/svelte/rules/tooling-and-review/technical-retro.md +2 -0
  180. package/presets/claude/svelte/skills/code-review/SKILL.md +11 -1
  181. package/presets/claude/svelte/skills/technical-retro/SKILL.md +1 -1
  182. package/presets/cursor/android-kotlin/agents/build-verifier.md +1 -1
  183. package/presets/cursor/android-kotlin/agents/code-reviewer.md +15 -1
  184. package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
  185. package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
  186. package/presets/cursor/android-kotlin/agents/qa-tester.md +1 -1
  187. package/presets/cursor/android-kotlin/commands/technical-retro.md +1 -1
  188. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +9 -0
  189. package/presets/cursor/android-kotlin/rules/README.md +1 -0
  190. package/presets/cursor/android-kotlin/rules/anti-hallucination-contract.mdc +2 -0
  191. package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +1 -8
  192. package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +20 -1
  193. package/presets/cursor/android-kotlin/rules/interactive-questions.mdc +34 -0
  194. package/presets/cursor/android-kotlin/rules/technical-retro.mdc +2 -0
  195. package/presets/cursor/android-kotlin/skills/code-review/SKILL.md +11 -1
  196. package/presets/cursor/android-kotlin/skills/technical-retro/SKILL.md +1 -1
  197. package/presets/cursor/go/agents/build-verifier.md +1 -1
  198. package/presets/cursor/go/agents/code-reviewer.md +37 -3
  199. package/presets/cursor/go/agents/debugger.md +1 -1
  200. package/presets/cursor/go/agents/feature-developer.md +1 -1
  201. package/presets/cursor/go/agents/qa-tester.md +1 -1
  202. package/presets/cursor/go/commands/technical-retro.md +1 -1
  203. package/presets/cursor/go/hooks/chain-team-phases.sh +9 -0
  204. package/presets/cursor/go/rules/README.md +2 -1
  205. package/presets/cursor/go/rules/anti-hallucination-contract.mdc +2 -0
  206. package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +1 -8
  207. package/presets/cursor/go/rules/code-review-mr.mdc +20 -1
  208. package/presets/cursor/go/rules/interactive-questions.mdc +34 -0
  209. package/presets/cursor/go/rules/technical-retro.mdc +2 -0
  210. package/presets/cursor/go/skills/code-review/SKILL.md +10 -1
  211. package/presets/cursor/go/skills/technical-retro/SKILL.md +1 -1
  212. package/presets/cursor/ios-swift/agents/build-verifier.md +1 -1
  213. package/presets/cursor/ios-swift/agents/code-reviewer.md +15 -1
  214. package/presets/cursor/ios-swift/agents/debugger.md +1 -1
  215. package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
  216. package/presets/cursor/ios-swift/agents/qa-tester.md +1 -1
  217. package/presets/cursor/ios-swift/commands/technical-retro.md +1 -1
  218. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +9 -0
  219. package/presets/cursor/ios-swift/rules/README.md +1 -0
  220. package/presets/cursor/ios-swift/rules/anti-hallucination-contract.mdc +2 -0
  221. package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +1 -8
  222. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +20 -1
  223. package/presets/cursor/ios-swift/rules/interactive-questions.mdc +34 -0
  224. package/presets/cursor/ios-swift/rules/technical-retro.mdc +2 -0
  225. package/presets/cursor/ios-swift/skills/code-review/SKILL.md +11 -1
  226. package/presets/cursor/ios-swift/skills/technical-retro/SKILL.md +1 -1
  227. package/presets/cursor/java/agents/build-verifier.md +1 -1
  228. package/presets/cursor/java/agents/code-reviewer.md +37 -3
  229. package/presets/cursor/java/agents/debugger.md +1 -1
  230. package/presets/cursor/java/agents/feature-developer.md +1 -1
  231. package/presets/cursor/java/agents/qa-tester.md +1 -1
  232. package/presets/cursor/java/commands/technical-retro.md +1 -1
  233. package/presets/cursor/java/hooks/chain-team-phases.sh +9 -0
  234. package/presets/cursor/java/rules/README.md +2 -1
  235. package/presets/cursor/java/rules/anti-hallucination-contract.mdc +2 -0
  236. package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +1 -8
  237. package/presets/cursor/java/rules/code-review-mr.mdc +20 -1
  238. package/presets/cursor/java/rules/interactive-questions.mdc +34 -0
  239. package/presets/cursor/java/rules/technical-retro.mdc +2 -0
  240. package/presets/cursor/java/skills/code-review/SKILL.md +10 -1
  241. package/presets/cursor/java/skills/technical-retro/SKILL.md +1 -1
  242. package/presets/cursor/mcp-ts/agents/build-verifier.md +1 -1
  243. package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
  244. package/presets/cursor/mcp-ts/commands/technical-retro.md +1 -1
  245. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +9 -0
  246. package/presets/cursor/mcp-ts/rules/README.md +2 -1
  247. package/presets/cursor/mcp-ts/rules/anti-hallucination-contract.mdc +2 -0
  248. package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +1 -8
  249. package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +20 -1
  250. package/presets/cursor/mcp-ts/rules/interactive-questions.mdc +34 -0
  251. package/presets/cursor/mcp-ts/rules/technical-retro.mdc +2 -0
  252. package/presets/cursor/mcp-ts/skills/code-review/SKILL.md +8 -0
  253. package/presets/cursor/next/agents/build-verifier.md +1 -1
  254. package/presets/cursor/next/agents/code-reviewer.md +15 -1
  255. package/presets/cursor/next/agents/debugger.md +1 -1
  256. package/presets/cursor/next/agents/feature-developer.md +1 -1
  257. package/presets/cursor/next/agents/qa-tester.md +1 -1
  258. package/presets/cursor/next/commands/technical-retro.md +1 -1
  259. package/presets/cursor/next/hooks/chain-team-phases.sh +9 -0
  260. package/presets/cursor/next/rules/README.md +2 -1
  261. package/presets/cursor/next/rules/anti-hallucination-contract.mdc +2 -0
  262. package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +1 -8
  263. package/presets/cursor/next/rules/code-review-mr.mdc +20 -1
  264. package/presets/cursor/next/rules/interactive-questions.mdc +34 -0
  265. package/presets/cursor/next/rules/technical-retro.mdc +2 -0
  266. package/presets/cursor/next/skills/code-review/SKILL.md +12 -2
  267. package/presets/cursor/next/skills/technical-retro/SKILL.md +1 -1
  268. package/presets/cursor/nuxt/agents/build-verifier.md +1 -1
  269. package/presets/cursor/nuxt/agents/code-reviewer.md +15 -1
  270. package/presets/cursor/nuxt/agents/debugger.md +1 -1
  271. package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
  272. package/presets/cursor/nuxt/agents/qa-tester.md +1 -1
  273. package/presets/cursor/nuxt/commands/technical-retro.md +1 -1
  274. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +9 -0
  275. package/presets/cursor/nuxt/rules/README.md +2 -1
  276. package/presets/cursor/nuxt/rules/anti-hallucination-contract.mdc +2 -0
  277. package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +1 -8
  278. package/presets/cursor/nuxt/rules/code-review-mr.mdc +20 -1
  279. package/presets/cursor/nuxt/rules/interactive-questions.mdc +34 -0
  280. package/presets/cursor/nuxt/rules/technical-retro.mdc +2 -0
  281. package/presets/cursor/nuxt/skills/code-review/SKILL.md +11 -1
  282. package/presets/cursor/nuxt/skills/technical-retro/SKILL.md +1 -1
  283. package/presets/cursor/php-hexagonal/agents/build-verifier.md +1 -1
  284. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +37 -3
  285. package/presets/cursor/php-hexagonal/agents/debugger.md +1 -1
  286. package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -1
  287. package/presets/cursor/php-hexagonal/agents/qa-tester.md +1 -1
  288. package/presets/cursor/php-hexagonal/commands/technical-retro.md +1 -1
  289. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +9 -0
  290. package/presets/cursor/php-hexagonal/rules/README.md +2 -1
  291. package/presets/cursor/php-hexagonal/rules/anti-hallucination-contract.mdc +2 -0
  292. package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +1 -8
  293. package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +20 -1
  294. package/presets/cursor/php-hexagonal/rules/interactive-questions.mdc +34 -0
  295. package/presets/cursor/php-hexagonal/rules/technical-retro.mdc +2 -0
  296. package/presets/cursor/php-hexagonal/skills/code-review/SKILL.md +10 -1
  297. package/presets/cursor/php-hexagonal/skills/technical-retro/SKILL.md +1 -1
  298. package/presets/cursor/php-laravel/agents/build-verifier.md +1 -1
  299. package/presets/cursor/php-laravel/agents/code-reviewer.md +37 -3
  300. package/presets/cursor/php-laravel/agents/debugger.md +1 -1
  301. package/presets/cursor/php-laravel/agents/feature-developer.md +1 -1
  302. package/presets/cursor/php-laravel/agents/qa-tester.md +1 -1
  303. package/presets/cursor/php-laravel/commands/technical-retro.md +1 -1
  304. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +9 -0
  305. package/presets/cursor/php-laravel/rules/README.md +2 -1
  306. package/presets/cursor/php-laravel/rules/anti-hallucination-contract.mdc +2 -0
  307. package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +1 -8
  308. package/presets/cursor/php-laravel/rules/code-review-mr.mdc +20 -1
  309. package/presets/cursor/php-laravel/rules/interactive-questions.mdc +34 -0
  310. package/presets/cursor/php-laravel/rules/technical-retro.mdc +2 -0
  311. package/presets/cursor/php-laravel/skills/code-review/SKILL.md +10 -1
  312. package/presets/cursor/php-laravel/skills/technical-retro/SKILL.md +1 -1
  313. package/presets/cursor/svelte/agents/build-verifier.md +1 -1
  314. package/presets/cursor/svelte/agents/code-reviewer.md +15 -1
  315. package/presets/cursor/svelte/agents/debugger.md +1 -1
  316. package/presets/cursor/svelte/agents/feature-developer.md +1 -1
  317. package/presets/cursor/svelte/agents/qa-tester.md +1 -1
  318. package/presets/cursor/svelte/commands/technical-retro.md +1 -1
  319. package/presets/cursor/svelte/hooks/chain-team-phases.sh +9 -0
  320. package/presets/cursor/svelte/rules/README.md +2 -1
  321. package/presets/cursor/svelte/rules/anti-hallucination-contract.mdc +2 -0
  322. package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +1 -8
  323. package/presets/cursor/svelte/rules/code-review-mr.mdc +20 -1
  324. package/presets/cursor/svelte/rules/interactive-questions.mdc +34 -0
  325. package/presets/cursor/svelte/rules/technical-retro.mdc +2 -0
  326. package/presets/cursor/svelte/skills/code-review/SKILL.md +11 -1
  327. package/presets/cursor/svelte/skills/technical-retro/SKILL.md +1 -1
  328. package/presets/mavis/android-kotlin/adapter-map.json +10 -1
  329. package/presets/mavis/android-kotlin/agents/build-verifier.md +1 -1
  330. package/presets/mavis/android-kotlin/agents/code-reviewer.md +15 -1
  331. package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
  332. package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
  333. package/presets/mavis/android-kotlin/agents/qa-tester.md +1 -1
  334. package/presets/mavis/android-kotlin/commands/technical-retro.md +1 -1
  335. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +9 -0
  336. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -1
  337. package/presets/mavis/android-kotlin/rules/anti-hallucination-contract.md +2 -0
  338. package/presets/mavis/android-kotlin/rules/code-quality-and-refactoring.md +1 -8
  339. package/presets/mavis/android-kotlin/rules/code-review-mr.md +20 -1
  340. package/presets/mavis/android-kotlin/rules/interactive-questions.md +29 -0
  341. package/presets/mavis/android-kotlin/rules/technical-retro.md +2 -0
  342. package/presets/mavis/android-kotlin/skills/code-review/SKILL.md +11 -1
  343. package/presets/mavis/android-kotlin/skills/technical-retro/SKILL.md +1 -1
  344. package/presets/mavis/go/adapter-map.json +10 -1
  345. package/presets/mavis/go/agents/build-verifier.md +1 -1
  346. package/presets/mavis/go/agents/code-reviewer.md +37 -3
  347. package/presets/mavis/go/agents/debugger.md +1 -1
  348. package/presets/mavis/go/agents/feature-developer.md +1 -1
  349. package/presets/mavis/go/agents/qa-tester.md +1 -1
  350. package/presets/mavis/go/commands/technical-retro.md +1 -1
  351. package/presets/mavis/go/hooks/chain-team-phases.sh +9 -0
  352. package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -1
  353. package/presets/mavis/go/rules/anti-hallucination-contract.md +2 -0
  354. package/presets/mavis/go/rules/code-quality-and-refactoring.md +1 -8
  355. package/presets/mavis/go/rules/code-review-mr.md +20 -1
  356. package/presets/mavis/go/rules/interactive-questions.md +29 -0
  357. package/presets/mavis/go/rules/technical-retro.md +2 -0
  358. package/presets/mavis/go/skills/code-review/SKILL.md +10 -1
  359. package/presets/mavis/go/skills/technical-retro/SKILL.md +1 -1
  360. package/presets/mavis/ios-swift/adapter-map.json +10 -1
  361. package/presets/mavis/ios-swift/agents/build-verifier.md +1 -1
  362. package/presets/mavis/ios-swift/agents/code-reviewer.md +15 -1
  363. package/presets/mavis/ios-swift/agents/debugger.md +1 -1
  364. package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
  365. package/presets/mavis/ios-swift/agents/qa-tester.md +1 -1
  366. package/presets/mavis/ios-swift/commands/technical-retro.md +1 -1
  367. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +9 -0
  368. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -1
  369. package/presets/mavis/ios-swift/rules/anti-hallucination-contract.md +2 -0
  370. package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +1 -8
  371. package/presets/mavis/ios-swift/rules/code-review-mr.md +20 -1
  372. package/presets/mavis/ios-swift/rules/interactive-questions.md +29 -0
  373. package/presets/mavis/ios-swift/rules/technical-retro.md +2 -0
  374. package/presets/mavis/ios-swift/skills/code-review/SKILL.md +11 -1
  375. package/presets/mavis/ios-swift/skills/technical-retro/SKILL.md +1 -1
  376. package/presets/mavis/java/adapter-map.json +10 -1
  377. package/presets/mavis/java/agents/build-verifier.md +1 -1
  378. package/presets/mavis/java/agents/code-reviewer.md +37 -3
  379. package/presets/mavis/java/agents/debugger.md +1 -1
  380. package/presets/mavis/java/agents/feature-developer.md +1 -1
  381. package/presets/mavis/java/agents/qa-tester.md +1 -1
  382. package/presets/mavis/java/commands/technical-retro.md +1 -1
  383. package/presets/mavis/java/hooks/chain-team-phases.sh +9 -0
  384. package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -1
  385. package/presets/mavis/java/rules/anti-hallucination-contract.md +2 -0
  386. package/presets/mavis/java/rules/code-quality-and-refactoring.md +1 -8
  387. package/presets/mavis/java/rules/code-review-mr.md +20 -1
  388. package/presets/mavis/java/rules/interactive-questions.md +29 -0
  389. package/presets/mavis/java/rules/technical-retro.md +2 -0
  390. package/presets/mavis/java/skills/code-review/SKILL.md +10 -1
  391. package/presets/mavis/java/skills/technical-retro/SKILL.md +1 -1
  392. package/presets/mavis/mcp-ts/adapter-map.json +10 -1
  393. package/presets/mavis/mcp-ts/agents/build-verifier.md +1 -1
  394. package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
  395. package/presets/mavis/mcp-ts/commands/technical-retro.md +1 -1
  396. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +9 -0
  397. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -1
  398. package/presets/mavis/mcp-ts/rules/anti-hallucination-contract.md +2 -0
  399. package/presets/mavis/mcp-ts/rules/code-quality-and-refactoring.md +1 -8
  400. package/presets/mavis/mcp-ts/rules/code-review-mr.md +20 -1
  401. package/presets/mavis/mcp-ts/rules/interactive-questions.md +29 -0
  402. package/presets/mavis/mcp-ts/rules/technical-retro.md +2 -0
  403. package/presets/mavis/mcp-ts/skills/code-review/SKILL.md +8 -0
  404. package/presets/mavis/next/adapter-map.json +10 -1
  405. package/presets/mavis/next/agents/build-verifier.md +1 -1
  406. package/presets/mavis/next/agents/code-reviewer.md +15 -1
  407. package/presets/mavis/next/agents/debugger.md +1 -1
  408. package/presets/mavis/next/agents/feature-developer.md +1 -1
  409. package/presets/mavis/next/agents/qa-tester.md +1 -1
  410. package/presets/mavis/next/commands/technical-retro.md +1 -1
  411. package/presets/mavis/next/hooks/chain-team-phases.sh +9 -0
  412. package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -1
  413. package/presets/mavis/next/rules/anti-hallucination-contract.md +2 -0
  414. package/presets/mavis/next/rules/code-quality-and-refactoring.md +1 -8
  415. package/presets/mavis/next/rules/code-review-mr.md +20 -1
  416. package/presets/mavis/next/rules/interactive-questions.md +29 -0
  417. package/presets/mavis/next/rules/technical-retro.md +2 -0
  418. package/presets/mavis/next/skills/code-review/SKILL.md +12 -2
  419. package/presets/mavis/next/skills/technical-retro/SKILL.md +1 -1
  420. package/presets/mavis/nuxt/adapter-map.json +10 -1
  421. package/presets/mavis/nuxt/agents/build-verifier.md +1 -1
  422. package/presets/mavis/nuxt/agents/code-reviewer.md +15 -1
  423. package/presets/mavis/nuxt/agents/debugger.md +1 -1
  424. package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
  425. package/presets/mavis/nuxt/agents/qa-tester.md +1 -1
  426. package/presets/mavis/nuxt/commands/technical-retro.md +1 -1
  427. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +9 -0
  428. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -1
  429. package/presets/mavis/nuxt/rules/anti-hallucination-contract.md +2 -0
  430. package/presets/mavis/nuxt/rules/code-quality-and-refactoring.md +1 -8
  431. package/presets/mavis/nuxt/rules/code-review-mr.md +20 -1
  432. package/presets/mavis/nuxt/rules/interactive-questions.md +29 -0
  433. package/presets/mavis/nuxt/rules/technical-retro.md +2 -0
  434. package/presets/mavis/nuxt/skills/code-review/SKILL.md +11 -1
  435. package/presets/mavis/nuxt/skills/technical-retro/SKILL.md +1 -1
  436. package/presets/mavis/php-hexagonal/adapter-map.json +10 -1
  437. package/presets/mavis/php-hexagonal/agents/build-verifier.md +1 -1
  438. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +37 -3
  439. package/presets/mavis/php-hexagonal/agents/debugger.md +1 -1
  440. package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -1
  441. package/presets/mavis/php-hexagonal/agents/qa-tester.md +1 -1
  442. package/presets/mavis/php-hexagonal/commands/technical-retro.md +1 -1
  443. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +9 -0
  444. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
  445. package/presets/mavis/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
  446. package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +1 -8
  447. package/presets/mavis/php-hexagonal/rules/code-review-mr.md +20 -1
  448. package/presets/mavis/php-hexagonal/rules/interactive-questions.md +29 -0
  449. package/presets/mavis/php-hexagonal/rules/technical-retro.md +2 -0
  450. package/presets/mavis/php-hexagonal/skills/code-review/SKILL.md +10 -1
  451. package/presets/mavis/php-hexagonal/skills/technical-retro/SKILL.md +1 -1
  452. package/presets/mavis/php-laravel/adapter-map.json +10 -1
  453. package/presets/mavis/php-laravel/agents/build-verifier.md +1 -1
  454. package/presets/mavis/php-laravel/agents/code-reviewer.md +37 -3
  455. package/presets/mavis/php-laravel/agents/debugger.md +1 -1
  456. package/presets/mavis/php-laravel/agents/feature-developer.md +1 -1
  457. package/presets/mavis/php-laravel/agents/qa-tester.md +1 -1
  458. package/presets/mavis/php-laravel/commands/technical-retro.md +1 -1
  459. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +9 -0
  460. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -1
  461. package/presets/mavis/php-laravel/rules/anti-hallucination-contract.md +2 -0
  462. package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +1 -8
  463. package/presets/mavis/php-laravel/rules/code-review-mr.md +20 -1
  464. package/presets/mavis/php-laravel/rules/interactive-questions.md +29 -0
  465. package/presets/mavis/php-laravel/rules/technical-retro.md +2 -0
  466. package/presets/mavis/php-laravel/skills/code-review/SKILL.md +10 -1
  467. package/presets/mavis/php-laravel/skills/technical-retro/SKILL.md +1 -1
  468. package/presets/mavis/svelte/adapter-map.json +10 -1
  469. package/presets/mavis/svelte/agents/build-verifier.md +1 -1
  470. package/presets/mavis/svelte/agents/code-reviewer.md +15 -1
  471. package/presets/mavis/svelte/agents/debugger.md +1 -1
  472. package/presets/mavis/svelte/agents/feature-developer.md +1 -1
  473. package/presets/mavis/svelte/agents/qa-tester.md +1 -1
  474. package/presets/mavis/svelte/commands/technical-retro.md +1 -1
  475. package/presets/mavis/svelte/hooks/chain-team-phases.sh +9 -0
  476. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -1
  477. package/presets/mavis/svelte/rules/anti-hallucination-contract.md +2 -0
  478. package/presets/mavis/svelte/rules/code-quality-and-refactoring.md +1 -8
  479. package/presets/mavis/svelte/rules/code-review-mr.md +20 -1
  480. package/presets/mavis/svelte/rules/interactive-questions.md +29 -0
  481. package/presets/mavis/svelte/rules/technical-retro.md +2 -0
  482. package/presets/mavis/svelte/skills/code-review/SKILL.md +11 -1
  483. package/presets/mavis/svelte/skills/technical-retro/SKILL.md +1 -1
  484. package/presets/opencode/android-kotlin/adapter-map.json +10 -1
  485. package/presets/opencode/android-kotlin/agents/build-verifier.md +1 -1
  486. package/presets/opencode/android-kotlin/agents/code-reviewer.md +15 -1
  487. package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
  488. package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
  489. package/presets/opencode/android-kotlin/agents/qa-tester.md +1 -1
  490. package/presets/opencode/android-kotlin/commands/technical-retro.md +1 -1
  491. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +9 -0
  492. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -1
  493. package/presets/opencode/android-kotlin/rules/anti-hallucination-contract.md +2 -0
  494. package/presets/opencode/android-kotlin/rules/code-quality-and-refactoring.md +1 -8
  495. package/presets/opencode/android-kotlin/rules/code-review-mr.md +20 -1
  496. package/presets/opencode/android-kotlin/rules/interactive-questions.md +29 -0
  497. package/presets/opencode/android-kotlin/rules/technical-retro.md +2 -0
  498. package/presets/opencode/android-kotlin/skills/code-review/SKILL.md +11 -1
  499. package/presets/opencode/android-kotlin/skills/technical-retro/SKILL.md +1 -1
  500. package/presets/opencode/go/adapter-map.json +10 -1
  501. package/presets/opencode/go/agents/build-verifier.md +1 -1
  502. package/presets/opencode/go/agents/code-reviewer.md +37 -3
  503. package/presets/opencode/go/agents/debugger.md +1 -1
  504. package/presets/opencode/go/agents/feature-developer.md +1 -1
  505. package/presets/opencode/go/agents/qa-tester.md +1 -1
  506. package/presets/opencode/go/commands/technical-retro.md +1 -1
  507. package/presets/opencode/go/hooks/chain-team-phases.sh +9 -0
  508. package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -1
  509. package/presets/opencode/go/rules/anti-hallucination-contract.md +2 -0
  510. package/presets/opencode/go/rules/code-quality-and-refactoring.md +1 -8
  511. package/presets/opencode/go/rules/code-review-mr.md +20 -1
  512. package/presets/opencode/go/rules/interactive-questions.md +29 -0
  513. package/presets/opencode/go/rules/technical-retro.md +2 -0
  514. package/presets/opencode/go/skills/code-review/SKILL.md +10 -1
  515. package/presets/opencode/go/skills/technical-retro/SKILL.md +1 -1
  516. package/presets/opencode/ios-swift/adapter-map.json +10 -1
  517. package/presets/opencode/ios-swift/agents/build-verifier.md +1 -1
  518. package/presets/opencode/ios-swift/agents/code-reviewer.md +15 -1
  519. package/presets/opencode/ios-swift/agents/debugger.md +1 -1
  520. package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
  521. package/presets/opencode/ios-swift/agents/qa-tester.md +1 -1
  522. package/presets/opencode/ios-swift/commands/technical-retro.md +1 -1
  523. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +9 -0
  524. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -1
  525. package/presets/opencode/ios-swift/rules/anti-hallucination-contract.md +2 -0
  526. package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +1 -8
  527. package/presets/opencode/ios-swift/rules/code-review-mr.md +20 -1
  528. package/presets/opencode/ios-swift/rules/interactive-questions.md +29 -0
  529. package/presets/opencode/ios-swift/rules/technical-retro.md +2 -0
  530. package/presets/opencode/ios-swift/skills/code-review/SKILL.md +11 -1
  531. package/presets/opencode/ios-swift/skills/technical-retro/SKILL.md +1 -1
  532. package/presets/opencode/java/adapter-map.json +10 -1
  533. package/presets/opencode/java/agents/build-verifier.md +1 -1
  534. package/presets/opencode/java/agents/code-reviewer.md +37 -3
  535. package/presets/opencode/java/agents/debugger.md +1 -1
  536. package/presets/opencode/java/agents/feature-developer.md +1 -1
  537. package/presets/opencode/java/agents/qa-tester.md +1 -1
  538. package/presets/opencode/java/commands/technical-retro.md +1 -1
  539. package/presets/opencode/java/hooks/chain-team-phases.sh +9 -0
  540. package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -1
  541. package/presets/opencode/java/rules/anti-hallucination-contract.md +2 -0
  542. package/presets/opencode/java/rules/code-quality-and-refactoring.md +1 -8
  543. package/presets/opencode/java/rules/code-review-mr.md +20 -1
  544. package/presets/opencode/java/rules/interactive-questions.md +29 -0
  545. package/presets/opencode/java/rules/technical-retro.md +2 -0
  546. package/presets/opencode/java/skills/code-review/SKILL.md +10 -1
  547. package/presets/opencode/java/skills/technical-retro/SKILL.md +1 -1
  548. package/presets/opencode/mcp-ts/adapter-map.json +10 -1
  549. package/presets/opencode/mcp-ts/agents/build-verifier.md +1 -1
  550. package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
  551. package/presets/opencode/mcp-ts/commands/technical-retro.md +1 -1
  552. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +9 -0
  553. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -1
  554. package/presets/opencode/mcp-ts/rules/anti-hallucination-contract.md +2 -0
  555. package/presets/opencode/mcp-ts/rules/code-quality-and-refactoring.md +1 -8
  556. package/presets/opencode/mcp-ts/rules/code-review-mr.md +20 -1
  557. package/presets/opencode/mcp-ts/rules/interactive-questions.md +29 -0
  558. package/presets/opencode/mcp-ts/rules/technical-retro.md +2 -0
  559. package/presets/opencode/mcp-ts/skills/code-review/SKILL.md +8 -0
  560. package/presets/opencode/next/adapter-map.json +10 -1
  561. package/presets/opencode/next/agents/build-verifier.md +1 -1
  562. package/presets/opencode/next/agents/code-reviewer.md +15 -1
  563. package/presets/opencode/next/agents/debugger.md +1 -1
  564. package/presets/opencode/next/agents/feature-developer.md +1 -1
  565. package/presets/opencode/next/agents/qa-tester.md +1 -1
  566. package/presets/opencode/next/commands/technical-retro.md +1 -1
  567. package/presets/opencode/next/hooks/chain-team-phases.sh +9 -0
  568. package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -1
  569. package/presets/opencode/next/rules/anti-hallucination-contract.md +2 -0
  570. package/presets/opencode/next/rules/code-quality-and-refactoring.md +1 -8
  571. package/presets/opencode/next/rules/code-review-mr.md +20 -1
  572. package/presets/opencode/next/rules/interactive-questions.md +29 -0
  573. package/presets/opencode/next/rules/technical-retro.md +2 -0
  574. package/presets/opencode/next/skills/code-review/SKILL.md +12 -2
  575. package/presets/opencode/next/skills/technical-retro/SKILL.md +1 -1
  576. package/presets/opencode/nuxt/adapter-map.json +10 -1
  577. package/presets/opencode/nuxt/agents/build-verifier.md +1 -1
  578. package/presets/opencode/nuxt/agents/code-reviewer.md +15 -1
  579. package/presets/opencode/nuxt/agents/debugger.md +1 -1
  580. package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
  581. package/presets/opencode/nuxt/agents/qa-tester.md +1 -1
  582. package/presets/opencode/nuxt/commands/technical-retro.md +1 -1
  583. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +9 -0
  584. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -1
  585. package/presets/opencode/nuxt/rules/anti-hallucination-contract.md +2 -0
  586. package/presets/opencode/nuxt/rules/code-quality-and-refactoring.md +1 -8
  587. package/presets/opencode/nuxt/rules/code-review-mr.md +20 -1
  588. package/presets/opencode/nuxt/rules/interactive-questions.md +29 -0
  589. package/presets/opencode/nuxt/rules/technical-retro.md +2 -0
  590. package/presets/opencode/nuxt/skills/code-review/SKILL.md +11 -1
  591. package/presets/opencode/nuxt/skills/technical-retro/SKILL.md +1 -1
  592. package/presets/opencode/php-hexagonal/adapter-map.json +10 -1
  593. package/presets/opencode/php-hexagonal/agents/build-verifier.md +1 -1
  594. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +37 -3
  595. package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
  596. package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -1
  597. package/presets/opencode/php-hexagonal/agents/qa-tester.md +1 -1
  598. package/presets/opencode/php-hexagonal/commands/technical-retro.md +1 -1
  599. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +9 -0
  600. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
  601. package/presets/opencode/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
  602. package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +1 -8
  603. package/presets/opencode/php-hexagonal/rules/code-review-mr.md +20 -1
  604. package/presets/opencode/php-hexagonal/rules/interactive-questions.md +29 -0
  605. package/presets/opencode/php-hexagonal/rules/technical-retro.md +2 -0
  606. package/presets/opencode/php-hexagonal/skills/code-review/SKILL.md +10 -1
  607. package/presets/opencode/php-hexagonal/skills/technical-retro/SKILL.md +1 -1
  608. package/presets/opencode/php-laravel/adapter-map.json +10 -1
  609. package/presets/opencode/php-laravel/agents/build-verifier.md +1 -1
  610. package/presets/opencode/php-laravel/agents/code-reviewer.md +37 -3
  611. package/presets/opencode/php-laravel/agents/debugger.md +1 -1
  612. package/presets/opencode/php-laravel/agents/feature-developer.md +1 -1
  613. package/presets/opencode/php-laravel/agents/qa-tester.md +1 -1
  614. package/presets/opencode/php-laravel/commands/technical-retro.md +1 -1
  615. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +9 -0
  616. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -1
  617. package/presets/opencode/php-laravel/rules/anti-hallucination-contract.md +2 -0
  618. package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +1 -8
  619. package/presets/opencode/php-laravel/rules/code-review-mr.md +20 -1
  620. package/presets/opencode/php-laravel/rules/interactive-questions.md +29 -0
  621. package/presets/opencode/php-laravel/rules/technical-retro.md +2 -0
  622. package/presets/opencode/php-laravel/skills/code-review/SKILL.md +10 -1
  623. package/presets/opencode/php-laravel/skills/technical-retro/SKILL.md +1 -1
  624. package/presets/opencode/svelte/adapter-map.json +10 -1
  625. package/presets/opencode/svelte/agents/build-verifier.md +1 -1
  626. package/presets/opencode/svelte/agents/code-reviewer.md +15 -1
  627. package/presets/opencode/svelte/agents/debugger.md +1 -1
  628. package/presets/opencode/svelte/agents/feature-developer.md +1 -1
  629. package/presets/opencode/svelte/agents/qa-tester.md +1 -1
  630. package/presets/opencode/svelte/commands/technical-retro.md +1 -1
  631. package/presets/opencode/svelte/hooks/chain-team-phases.sh +9 -0
  632. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -1
  633. package/presets/opencode/svelte/rules/anti-hallucination-contract.md +2 -0
  634. package/presets/opencode/svelte/rules/code-quality-and-refactoring.md +1 -8
  635. package/presets/opencode/svelte/rules/code-review-mr.md +20 -1
  636. package/presets/opencode/svelte/rules/interactive-questions.md +29 -0
  637. package/presets/opencode/svelte/rules/technical-retro.md +2 -0
  638. package/presets/opencode/svelte/skills/code-review/SKILL.md +11 -1
  639. package/presets/opencode/svelte/skills/technical-retro/SKILL.md +1 -1
@@ -11,8 +11,18 @@ const fs = require('fs');
11
11
  const path = require('path');
12
12
  const { assertSafeDest } = require('./safe-path');
13
13
  const { ENGINE_SCRIPTS, ENGINE_SOURCE_RELATIVE } = require('./engine-scripts');
14
+ const { runTemplateDrift } = require('./ai-local-drift');
14
15
 
15
16
  const LEGACY_TOOLS = ['cursor', 'claude', 'mavis', 'opencode'];
17
+ /** Content of `.ai.local/.gitignore`; also the template digest the record tracks. */
18
+ const AI_LOCAL_GITIGNORE = [
19
+ '# Files written by the in-task self-learning engine and by legacy-team',
20
+ '# migration backups. Local safety net — never commit.',
21
+ '*.lock',
22
+ '*.tmp',
23
+ '.rollback/',
24
+ '',
25
+ ].join('\n');
16
26
  const POINTER_README = `# Agent team artifacts moved
17
27
 
18
28
  Runtime artifacts now live at \`.ai.local/team/\` (shared across Cursor, Claude, Mavis, and OpenCode).
@@ -230,32 +240,33 @@ function ensureAiLocalIgnored(aiLocalRoot) {
230
240
  return false;
231
241
  }
232
242
  fs.mkdirSync(aiLocalRoot, { recursive: true });
233
- fs.writeFileSync(
234
- ignoreFile,
235
- [
236
- '# Files written by the in-task self-learning engine and by legacy-team',
237
- '# migration backups. Local safety net — never commit.',
238
- '*.lock',
239
- '*.tmp',
240
- '.rollback/',
241
- '',
242
- ].join('\n'),
243
- );
243
+ fs.writeFileSync(ignoreFile, AI_LOCAL_GITIGNORE);
244
244
  return true;
245
245
  }
246
246
 
247
+ /**
248
+ * Preset-root-relative directory holding the shipped engine scripts.
249
+ * `presetTeamSrc` is `<presetBase>/team`, so three levels up is the preset root.
250
+ */
251
+ function engineSourceDir(presetTeamSrc) {
252
+ if (!presetTeamSrc) {
253
+ return null;
254
+ }
255
+ return path.resolve(presetTeamSrc, '..', '..', '..', ...ENGINE_SOURCE_RELATIVE.split('/'));
256
+ }
257
+
247
258
  /**
248
259
  * Seed the shipped self-learning engine (`presets/_shared/ai-local/scripts/`)
249
260
  * into `<cwd>/.ai.local/scripts/`. Skip-if-exists: a consumer edit is never
250
261
  * overwritten and there is no `--force`. Returns the absolute paths this call
251
- * created so an init rollback removes exactly those.
262
+ * created so an init rollback removes exactly those, plus the rels it wrote.
252
263
  */
253
264
  function seedEngineScripts({ cwd, presetTeamSrc }) {
254
- const result = { seeded: 0, skipped: 0, created: [] };
265
+ const result = { seeded: 0, skipped: 0, created: [], written: [] };
255
266
  if (!presetTeamSrc) {
256
267
  return result;
257
268
  }
258
- const sourceDir = path.resolve(presetTeamSrc, '..', '..', '..', ...ENGINE_SOURCE_RELATIVE.split('/'));
269
+ const sourceDir = engineSourceDir(presetTeamSrc);
259
270
  if (!fs.existsSync(sourceDir) || !fs.statSync(sourceDir).isDirectory()) {
260
271
  return result;
261
272
  }
@@ -276,6 +287,7 @@ function seedEngineScripts({ cwd, presetTeamSrc }) {
276
287
  copyFile(source, dest);
277
288
  result.seeded += 1;
278
289
  result.created.push(dest);
290
+ result.written.push(`.ai.local/scripts/${name}`);
279
291
  }
280
292
  if (!destExisted && result.created.length > 0) {
281
293
  result.created.unshift(destDir);
@@ -291,43 +303,53 @@ function seedEngineScripts({ cwd, presetTeamSrc }) {
291
303
  return result;
292
304
  }
293
305
 
306
+ /** Rewrite `team/README.md` and `team/fixtures/`; returns the rels it wrote. */
294
307
  function copyTemplates(presetTeamSrc, dest) {
308
+ const written = [];
295
309
  if (!presetTeamSrc || !fs.existsSync(presetTeamSrc)) {
296
- return;
310
+ return written;
297
311
  }
298
312
  const readme = path.join(presetTeamSrc, 'README.md');
299
313
  if (fs.existsSync(readme)) {
300
314
  copyFile(readme, path.join(dest, 'README.md'));
315
+ written.push('.ai.local/team/README.md');
301
316
  }
302
317
  const fixturesSrc = path.join(presetTeamSrc, 'fixtures');
303
318
  if (fs.existsSync(fixturesSrc)) {
304
- copyTree(fixturesSrc, path.join(dest, 'fixtures'));
319
+ const copied = copyTree(fixturesSrc, path.join(dest, 'fixtures')).copied;
320
+ for (const rel of copied) {
321
+ written.push(`.ai.local/team/fixtures/${rel}`);
322
+ }
305
323
  }
306
324
  const gitkeepSrc = path.join(presetTeamSrc, 'tasks', '.gitkeep');
307
325
  if (fs.existsSync(gitkeepSrc) && !hasConsumerTaskSlugs(path.join(dest, 'tasks'))) {
308
326
  copyFile(gitkeepSrc, path.join(dest, 'tasks', '.gitkeep'));
327
+ written.push('.ai.local/team/tasks/.gitkeep');
309
328
  }
329
+ return written;
310
330
  }
311
331
 
312
332
  /**
313
333
  * Seed `.ai.local/conventions.md` (the living-conventions file the overlay probes)
314
334
  * from the preset template. Never overwrites an existing consumer file.
335
+ *
336
+ * @returns {string | null} the rel this call wrote
315
337
  */
316
338
  function seedConventions(presetTeamSrc, cwd) {
317
339
  if (!presetTeamSrc) {
318
- return false;
340
+ return null;
319
341
  }
320
342
  const template = path.join(path.dirname(presetTeamSrc), 'ai-local', 'conventions.md');
321
343
  if (!fs.existsSync(template)) {
322
- return false;
344
+ return null;
323
345
  }
324
346
  const dest = path.join(cwd, '.ai.local', 'conventions.md');
325
347
  if (fs.existsSync(dest)) {
326
- return false;
348
+ return null;
327
349
  }
328
350
  copyFile(template, dest);
329
351
  console.log('Seeded .ai.local/conventions.md');
330
- return true;
352
+ return '.ai.local/conventions.md';
331
353
  }
332
354
 
333
355
  /**
@@ -340,7 +362,7 @@ function seedConventions(presetTeamSrc, cwd) {
340
362
  */
341
363
  function seedAiLocalRules(presetTeamSrc, cwd) {
342
364
  if (!presetTeamSrc) {
343
- return { seeded: false, created: [] };
365
+ return { seeded: false, created: [], written: [] };
344
366
  }
345
367
  const libraryDir = path.join(path.dirname(presetTeamSrc), 'ai-local', 'rules-library');
346
368
  if (!fs.existsSync(libraryDir) || !fs.statSync(libraryDir).isDirectory()) {
@@ -348,6 +370,7 @@ function seedAiLocalRules(presetTeamSrc, cwd) {
348
370
  }
349
371
  const destDir = path.join(cwd, '.ai.local', 'rules-library');
350
372
  assertSafeDest(cwd, destDir, '.ai.local/rules-library');
373
+ const written = [];
351
374
  let copied = 0;
352
375
  let skipped = 0;
353
376
  for (const entry of fs.readdirSync(libraryDir)) {
@@ -360,13 +383,21 @@ function seedAiLocalRules(presetTeamSrc, cwd) {
360
383
  }
361
384
  copyFile(src, dest);
362
385
  copied += 1;
386
+ written.push(`.ai.local/rules-library/${entry}`);
363
387
  }
364
388
  if (copied > 0) {
365
389
  console.log(`Seeded .ai.local/rules-library/ (${copied} rules; ${skipped} already present)`);
366
390
  }
367
- activateRouterPagesSeed(cwd, libraryDir);
391
+ const activated = activateRouterPagesSeed(cwd, libraryDir);
392
+ if (activated) {
393
+ written.push(activated);
394
+ }
368
395
  const active = seedActiveOverlayRules(presetTeamSrc, cwd);
369
- return { seeded: copied > 0 || active.seeded, created: active.created };
396
+ return {
397
+ seeded: copied > 0 || active.seeded,
398
+ created: active.created,
399
+ written: [...written, ...active.written],
400
+ };
370
401
  }
371
402
 
372
403
  /**
@@ -375,15 +406,16 @@ function seedAiLocalRules(presetTeamSrc, cwd) {
375
406
  */
376
407
  function seedActiveOverlayRules(presetTeamSrc, cwd) {
377
408
  if (!presetTeamSrc) {
378
- return { seeded: false, created: [] };
409
+ return { seeded: false, created: [], written: [] };
379
410
  }
380
411
  const rulesDir = path.join(path.dirname(presetTeamSrc), 'ai-local', 'rules');
381
412
  if (!fs.existsSync(rulesDir) || !fs.statSync(rulesDir).isDirectory()) {
382
- return { seeded: false, created: [] };
413
+ return { seeded: false, created: [], written: [] };
383
414
  }
384
415
  const destDir = path.join(cwd, '.ai.local', 'rules');
385
416
  assertSafeDest(cwd, destDir, '.ai.local/rules');
386
417
  const created = [];
418
+ const written = [];
387
419
  for (const entry of fs.readdirSync(rulesDir)) {
388
420
  if (!entry.endsWith('.md')) continue;
389
421
  const src = path.join(rulesDir, entry);
@@ -392,11 +424,12 @@ function seedActiveOverlayRules(presetTeamSrc, cwd) {
392
424
  if (fs.existsSync(dest)) continue;
393
425
  copyFile(src, dest);
394
426
  created.push(dest);
427
+ written.push(`.ai.local/rules/${entry}`);
395
428
  }
396
429
  if (created.length > 0) {
397
430
  console.log(`Activated .ai.local/rules/ (${created.length} rule${created.length === 1 ? '' : 's'})`);
398
431
  }
399
- return { seeded: created.length > 0, created };
432
+ return { seeded: created.length > 0, created, written };
400
433
  }
401
434
 
402
435
  function hasStaticExport(cwd) {
@@ -418,14 +451,16 @@ function hasPagesApp(cwd) {
418
451
  ].some((rel) => fs.existsSync(path.join(cwd, rel)));
419
452
  }
420
453
 
454
+ /** @returns {string | null} the rel written when the Pages Router seed activates */
421
455
  function activateRouterPagesSeed(cwd, libraryDir) {
422
456
  const seed = path.join(libraryDir, 'router-pages.md');
423
- if (!fs.existsSync(seed) || !hasStaticExport(cwd) || !hasPagesApp(cwd)) return;
457
+ if (!fs.existsSync(seed) || !hasStaticExport(cwd) || !hasPagesApp(cwd)) return null;
424
458
  const dest = path.join(cwd, '.ai.local', 'rules', 'router-pages.md');
425
459
  assertSafeDest(cwd, dest, '.ai.local/rules/router-pages.md');
426
- if (fs.existsSync(dest)) return;
460
+ if (fs.existsSync(dest)) return null;
427
461
  copyFile(seed, dest);
428
462
  console.log('Activated .ai.local/rules/router-pages.md (static export + Pages Router)');
463
+ return '.ai.local/rules/router-pages.md';
429
464
  }
430
465
 
431
466
  /**
@@ -564,13 +599,78 @@ function migrateLegacyTeams(cwd, dest) {
564
599
  }
565
600
 
566
601
  /**
567
- * @param {{ cwd: string, presetTeamSrc?: string }} options
602
+ * Every rel the preset can seed into `.ai.local/`, mapped to the template bytes.
603
+ * This is the allowlist the record and the merge use: it is built from the
604
+ * preset tree, never by walking the consumer's `.ai.local/`, so `team/tasks/**`,
605
+ * `requirements/**`, `adr/**`, and engine runtime state are unreachable.
606
+ *
607
+ * `.ai.local/team/**` is absent on purpose: `copyTemplates` rewrites
608
+ * `team/README.md` and `team/fixtures/**` unconditionally before anything can be
609
+ * classified, and `team/tasks/**` is consumer-owned, so recording any of them
610
+ * would promise a protection the seed does not give.
611
+ *
612
+ * @returns {Map<string, Buffer>} rel → template bytes
613
+ */
614
+ function templateEntries(presetTeamSrc) {
615
+ const out = new Map();
616
+ const addFile = (rel, abs) => {
617
+ let stat;
618
+ try {
619
+ stat = fs.lstatSync(abs);
620
+ } catch {
621
+ return;
622
+ }
623
+ if (!stat.isFile()) {
624
+ return;
625
+ }
626
+ out.set(rel, fs.readFileSync(abs));
627
+ };
628
+ const addDir = (relPrefix, dir, accept) => {
629
+ let stat;
630
+ try {
631
+ stat = fs.lstatSync(dir);
632
+ } catch {
633
+ return;
634
+ }
635
+ if (!stat.isDirectory()) {
636
+ return;
637
+ }
638
+ for (const name of fs.readdirSync(dir).sort()) {
639
+ if (!accept(name)) continue;
640
+ addFile(`${relPrefix}${name}`, path.join(dir, name));
641
+ }
642
+ };
643
+
644
+ if (!presetTeamSrc) {
645
+ return out;
646
+ }
647
+ const presetBase = path.dirname(presetTeamSrc);
648
+ const libraryDir = path.join(presetBase, 'ai-local', 'rules-library');
649
+ addFile('.ai.local/conventions.md', path.join(presetBase, 'ai-local', 'conventions.md'));
650
+ addDir('.ai.local/rules-library/', libraryDir, (name) => name.endsWith('.md'));
651
+ // The activation seed is a template byte too: `activateRouterPagesSeed` copies it
652
+ // into `rules/` when the repo shape matches, and an active copy shipped by the
653
+ // preset keeps precedence because it is added after this line.
654
+ addFile('.ai.local/rules/router-pages.md', path.join(libraryDir, 'router-pages.md'));
655
+ addDir('.ai.local/rules/', path.join(presetBase, 'ai-local', 'rules'), (name) => name.endsWith('.md'));
656
+ const engineDir = engineSourceDir(presetTeamSrc);
657
+ if (engineDir) {
658
+ for (const name of ENGINE_SCRIPTS) {
659
+ addFile(`.ai.local/scripts/${name}`, path.join(engineDir, name));
660
+ }
661
+ }
662
+ out.set('.ai.local/.gitignore', Buffer.from(AI_LOCAL_GITIGNORE));
663
+ return out;
664
+ }
665
+
666
+ /**
667
+ * @param {{ cwd: string, presetTeamSrc?: string, source?: string, packageVersion?: string, mergeAiLocal?: boolean, writeFile?: (dest: string, content: string | Buffer, label: string) => void, trackFile?: (dest: string, label: string) => void }} options
568
668
  * `createdPaths` lists what an init rollback may remove: the fresh-seed tree
569
669
  * plus every engine module / ignore file this call created (never a path that
570
670
  * already existed, never a consumer-modified file).
571
671
  * @returns {{ created: boolean, createdPaths: string[], migrated: boolean, refreshed: boolean, conventionsSeeded: boolean, rulesLibrarySeeded: boolean, engineSeeded: boolean }}
572
672
  */
573
- function seedAiLocalTeam({ cwd, presetTeamSrc }) {
673
+ function seedAiLocalTeam({ cwd, presetTeamSrc, source, packageVersion, mergeAiLocal, writeFile, trackFile }) {
574
674
  const dest = destTeamRoot(cwd);
575
675
  const aiLocalRoot = path.join(cwd, '.ai.local');
576
676
  const empty = {
@@ -623,14 +723,32 @@ function seedAiLocalTeam({ cwd, presetTeamSrc }) {
623
723
  ...engine.created,
624
724
  ];
625
725
  const migrated = migrateLegacyTeams(cwd, dest);
626
- copyTemplates(presetTeamSrc, dest);
627
- const conventionsSeeded = seedConventions(presetTeamSrc, cwd);
726
+ const templateWritten = copyTemplates(presetTeamSrc, dest);
727
+ const conventionsRel = seedConventions(presetTeamSrc, cwd);
628
728
  const rulesSeed = seedAiLocalRules(presetTeamSrc, cwd);
629
729
  const rulesLibrarySeeded = rulesSeed.seeded;
630
730
  if (!freshPaths.includes(path.join(aiLocalRoot, 'rules'))) {
631
731
  for (const created of rulesSeed.created) createdPaths.push(created);
632
732
  }
633
733
 
734
+ const written = [
735
+ ...templateWritten,
736
+ ...(conventionsRel ? [conventionsRel] : []),
737
+ ...rulesSeed.written,
738
+ ...engine.written,
739
+ ...(ignoreCreated ? ['.ai.local/.gitignore'] : []),
740
+ ];
741
+ runTemplateDrift({
742
+ cwd,
743
+ written,
744
+ templates: templateEntries(presetTeamSrc),
745
+ source,
746
+ packageVersion,
747
+ mergeAiLocal,
748
+ writeFile,
749
+ trackFile,
750
+ });
751
+
634
752
  if (migrated) {
635
753
  console.log('Migrated legacy .{tool}/team → .ai.local/team');
636
754
  }
@@ -642,7 +760,7 @@ function seedAiLocalTeam({ cwd, presetTeamSrc }) {
642
760
  createdPaths,
643
761
  migrated: false,
644
762
  refreshed: false,
645
- conventionsSeeded,
763
+ conventionsSeeded: Boolean(conventionsRel),
646
764
  rulesLibrarySeeded,
647
765
  engineSeeded: engine.seeded > 0,
648
766
  };
@@ -659,7 +777,7 @@ function seedAiLocalTeam({ cwd, presetTeamSrc }) {
659
777
  createdPaths,
660
778
  migrated,
661
779
  refreshed: true,
662
- conventionsSeeded,
780
+ conventionsSeeded: Boolean(conventionsRel),
663
781
  rulesLibrarySeeded,
664
782
  engineSeeded: engine.seeded > 0,
665
783
  };
@@ -670,7 +788,7 @@ function seedAiLocalTeam({ cwd, presetTeamSrc }) {
670
788
  createdPaths,
671
789
  migrated,
672
790
  refreshed: false,
673
- conventionsSeeded,
791
+ conventionsSeeded: Boolean(conventionsRel),
674
792
  rulesLibrarySeeded,
675
793
  engineSeeded: engine.seeded > 0,
676
794
  };
@@ -160,6 +160,7 @@ function cmdInitMavis({ preset, cwdOption, helpers }) {
160
160
  seedAiLocalTeam,
161
161
  installMcpJson,
162
162
  getPackageRoot,
163
+ mergeAiLocal,
163
164
  } = helpers;
164
165
  const packageRoot = getPackageRoot();
165
166
  const cwd = resolveTargetCwd(cwdOption);
@@ -250,6 +251,11 @@ function cmdInitMavis({ preset, cwdOption, helpers }) {
250
251
  const teamResult = seedAiLocalTeam({
251
252
  cwd,
252
253
  presetTeamSrc: path.join(sourceBase, 'team'),
254
+ source: `mavis/${stack}`,
255
+ packageVersion: packageVersion(packageRoot),
256
+ mergeAiLocal: Boolean(mergeAiLocal),
257
+ writeFile: (dest, content, label) => tx.writeFile(dest, content, label),
258
+ trackFile: (dest, label) => tx.track(dest, label),
253
259
  });
254
260
  for (const created of teamResult.createdPaths || []) {
255
261
  tx.addCreated(created);
@@ -337,8 +337,14 @@ function installOpencodeJson(mcpFrom, mcpDestAbs, destLabel, tx, priorRecord) {
337
337
  }
338
338
 
339
339
  function cmdInitOpencode({ preset, cwdOption, helpers }) {
340
- const { resolveTargetCwd, validatePresetName, seedDocsSpecsIfAbsent, seedAiLocalTeam, getPackageRoot } =
341
- helpers;
340
+ const {
341
+ resolveTargetCwd,
342
+ validatePresetName,
343
+ seedDocsSpecsIfAbsent,
344
+ seedAiLocalTeam,
345
+ getPackageRoot,
346
+ mergeAiLocal,
347
+ } = helpers;
342
348
  const packageRoot = getPackageRoot();
343
349
  const cwd = resolveTargetCwd(cwdOption);
344
350
  const contract = loadContract(packageRoot);
@@ -424,6 +430,11 @@ function cmdInitOpencode({ preset, cwdOption, helpers }) {
424
430
  const teamResult = seedAiLocalTeam({
425
431
  cwd,
426
432
  presetTeamSrc: path.join(sourceBase, 'team'),
433
+ source: `opencode/${stack}`,
434
+ packageVersion: packageVersion(packageRoot),
435
+ mergeAiLocal: Boolean(mergeAiLocal),
436
+ writeFile: (dest, content, label) => tx.writeFile(dest, content, label),
437
+ trackFile: (dest, label) => tx.track(dest, label),
427
438
  });
428
439
  for (const created of teamResult.createdPaths || []) {
429
440
  tx.addCreated(created);
@@ -19,6 +19,8 @@ Put a `.ai.local/` directory in your repo. Write rules as plain markdown. The `a
19
19
  └── tasks/<slug>/
20
20
  ```
21
21
 
22
+ `init` and `update` write `.ai.local/.template-base.json` — the digest of every `.ai.local/` file that holds a shipped template byte — so `update` can tell a file you edited from a file the preset moved. Your own bytes never become a base. See [Template drift](#template-drift).
23
+
22
24
  No IDE config, no `@include`, no codegen. Same files work in Cursor, Claude Code, Mavis, and OpenCode.
23
25
 
24
26
  ## How it works
@@ -31,7 +33,7 @@ No IDE config, no `@include`, no codegen. Same files work in Cursor, Claude Code
31
33
 
32
34
  ## Seed library (`.ai.local/rules-library/`)
33
35
 
34
- `init` copies `presets/<tool>/<stack>/ai-local/rules/*.md` into `.ai.local/rules/` and does not overwrite an existing file. The next stack ships `task-levels` there, so L0–L3 selection applies on install.
36
+ `init` copies `presets/<tool>/<stack>/ai-local/rules/*.md` into `.ai.local/rules/`; an existing consumer file is never overwritten by seeding. The one exception is opt-in and hash-gated: `update --merge-ai-local` may replace a file whose recorded base still matches — see [Template drift](#template-drift). The next stack ships `task-levels` there, so L0–L3 selection applies on install.
35
37
 
36
38
  `init` also seeds **staged-inactive** rule templates into `.ai.local/rules-library/`. They ship with every install but **do not apply** until you move a matching file into `.ai.local/rules/`.
37
39
 
@@ -44,6 +46,80 @@ The `ai-local-overlay` rule instructs the model to treat a matching seed as the
44
46
  git mv .ai.local/rules-library/router-pages.md .ai.local/rules/router-pages.md
45
47
  ```
46
48
 
49
+ ## Template drift
50
+
51
+ Your `.ai.local/` is yours. The preset still ships those files, so their text moves between releases — and until now nothing told you which of your files had moved and which you had edited.
52
+
53
+ `init` and `update` write **`.ai.local/.template-base.json`**:
54
+
55
+ ```json
56
+ {
57
+ "schemaVersion": 1,
58
+ "packageVersion": "0.2.50",
59
+ "files": {
60
+ ".ai.local/rules/task-levels.md": {
61
+ "sha256": "<digest of the seeded bytes>",
62
+ "normSha256": "<digest with line endings and trailing newlines normalised>",
63
+ "source": "cursor/next"
64
+ }
65
+ }
66
+ }
67
+ ```
68
+
69
+ - One entry per `.ai.local/` rel whose current bytes are a shipped template byte — the rels the seed wrote plus a file that already holds the current template. No tree walk, so `.ai.local/team/**`, `.ai.local/requirements/**`, `.ai.local/adr/**`, and the engine's runtime files are never recorded, never compared, and never written by the merge. `team/README.md` and `team/fixtures/**` are absent too: the seed refreshes them on every run, so a record of them would promise a protection it cannot give. **A file you edited is never recorded**: your bytes never become a base, so no later run can mistake them for an untouched template copy.
70
+ - Sorted keys, no timestamp, `source` = `<tool>/<preset>` (the tool that wrote the file keeps the attribution).
71
+ - The record is **not** in `<tool>/.ai-rules-install.json`, so `clean <tool>` still removes nothing under `.ai.local/`. Commit it: it is small and the next `update` rewrites it deterministically.
72
+
73
+ ### The default summary line
74
+
75
+ Plain `update` prints one line per tree when anything drifted — one, not one per installed tool:
76
+
77
+ ```text
78
+ .ai.local drift: 3 behind template, 1 edited locally (run with --merge-ai-local to fast-forward the untouched ones)
79
+ ```
80
+
81
+ *Behind* means the preset text moved and your file still holds the recorded base — only those files are ever fast-forwarded. *Edited locally* means your bytes differ from both the base and the current template: you changed the file, or the file predates the record and cannot be attributed. The line writes nothing to a consumer file; it is a report.
82
+
83
+ Every installed tool's pass classifies its own template map. Each rel is counted once per tree: the first pass reports it, and a later pass does not add it again or replace its proposal. A later pass whose template already matches the file adopts it and drops that proposal. Files two tools own separately still both appear, so `init claude` followed by `init cursor` reports the same rels as a `cursor`-first tree. The line itself is printed once per tree, after the last pass of the command.
84
+
85
+ ### `update --merge-ai-local`
86
+
87
+ The flag is opt-in, and it never touches a file you edited:
88
+
89
+ | Your file | Outcome | What the run does |
90
+ |---|---|---|
91
+ | Still holds the recorded base, preset moved | fast-forward | writes the preset bytes, re-records both digests, prints `merge-ai-local: fast-forward <rel>` |
92
+ | Already equals the current template, but has no base or a stale one (installed before this feature, the seed skipped it, or you applied a proposal yourself) | adopt | records the **template** digests as the base, **writes nothing**, prints `merge-ai-local: adopt <rel>` |
93
+ | Differs from both the base and the current template — you edited it | drift | keeps your file byte-identical, writes a unified diff and the preset copy to `.ai.local/.rollback/template-drift/`, prints `merge-ai-local: drift <rel> → <diff>` |
94
+ | Recorded by another tool or preset | noop | this pass leaves it alone; a `source` of `claude/next` is never fast-forwarded by a `cursor/next` run — the writing tool's own pass decides it, so a tool you `clean`ed stops reporting its files until you install it again (see limits below) |
95
+
96
+ The sink is `<rel with / → __>.diff` plus `<…>.template-new`. No sink entry ends in `.md` and nothing is created under `rules/` or beside `conventions.md`: the overlay probe loads every `*.md` under `rules/`, so a sidecar there would be read as instruction text. **No conflict marker is ever written under `.ai.local/**`** — a divergence is a diff you apply, never a `<<<<<<<` you clean up.
97
+
98
+ Two consecutive flagged runs leave the tree byte-identical; the second reports zero fast-forwards. A file that is still drifted keeps its `kept edited locally` count and its proposal, so a still-drifted tree repeats the line rather than going silent. A four-tool `update` merges once per tree, because `.ai.local/` is one tree with one record. Apply the proposal yourself and the next `update` (flagged or not) adopts the file instead of reporting it again.
99
+
100
+ ### First run on a pre-feature tree
101
+
102
+ The record only exists from the release that introduced it. On a tree installed earlier, the first `update` (the flag is not required for this step) records every file that already holds the shipped template; nothing is overwritten, and a file that differs is reported as *edited locally* instead of being recorded. `init` records the base immediately, so a fresh install needs no adoption step. The next release then has something to compare against.
103
+
104
+ Recording is deliberately conservative: a file whose bytes differ from the current template is never adopted, because a base equal to your bytes would make the *next* preset release fast-forward over your edit.
105
+
106
+ ### Limits — what stays manual
107
+
108
+ - **`conventions.md` body edits.** Your prose is the part the preset cannot know. Only line-ending and trailing-newline churn is normalised away; a wording change stays a reported diff.
109
+ - **A rule you rewrote.** Local rules win by contract; replacing one changes precedence, not just bytes. It is reported as *edited locally*, never fast-forwarded, and never becomes a base — apply the proposal if you want the preset text, and the next run records the result.
110
+ - **A file whose owning tool you `clean`ed.** The record keeps the `source` of the tool that wrote a file, and only that tool's pass classifies it. `clean claude` leaves the record and that `source` in place, so a file attributed to `claude` is neither reported nor merged — even when another installed tool ships a newer copy — until you run `init claude` again. Deleting the entry from `.ai.local/.template-base.json` re-attributes the file to the next pass that ships it: if it already matches that preset's template, the next `update` records it; if not, the flagged run offers a diff instead, and applying it completes the re-attribution.
111
+ - **Both sides changed.** The sink shows the diff; resolution is yours.
112
+ - **`override: kill` and `i18n-keep` disagreements.** A fast-forward copies the preset file whole, so it can neither move nor duplicate a marker — and a disagreement is reported rather than resolved.
113
+ - **`.ai.local/team/**`, `.ai.local/requirements/**`, `.ai.local/adr/**`, engine runtime state.** Out of scope by allowlist. `team/README.md` and `team/fixtures/**` are refreshed by the seed on every run before any comparison, so edit them and your edit is gone — they are seed-owned, not drift-tracked, and never reported.
114
+ - **A file you deleted, or a preset that dropped a file.** Absence is intent; nothing is re-seeded or removed. A rel the owning preset no longer ships loses its record entry and its proposal on the next flagged run, so the record does not accumulate dead keys.
115
+ - **A record written by a newer CLI.** A `schemaVersion` above this CLI's own makes it skip the record and the merge with a warning rather than rewrite the file as v1.
116
+ - **An activated seed** (`rules-library/X.md` → `rules/X.md`). Activation stays a judgement call; the pair is not auto-merged.
117
+ - **Three-way merge.** Not implemented: without a stored copy of the old preset bytes a line merge would invent conflicts inside files that load on every turn.
118
+
119
+ ### Git noise
120
+
121
+ On a tree installed before `.ai.local/.gitignore` carried `.rollback/`, the sink shows up as untracked files. That is noise, not data loss: the directory is a tool-owned proposal area, safe to delete, and a fresh install ignores it from the start. The root `.gitignore` is never edited.
122
+
47
123
  ## How to write `.ai.local/rules/*.md`
48
124
 
49
125
  One file = one rule. Plain markdown. **No YAML frontmatter** — the format is shared across IDEs, so each file uses a tiny markdown header for scoping.
@@ -169,9 +169,19 @@ Summary:
169
169
  - [ ] Embed drift: `scripts/check-shared-core-drift.sh` after core/embed edits
170
170
  - [ ] Anti-hallucination: `check-anti-hallucination-coverage.mjs` passes. New skill families are registered in `SKILL_CONTRACT_CLASS` (`writer` loads the stack floor; `reader` loads the contract only). `code-review` is `writer`.
171
171
  - [ ] Structure gates: `yarn check:preset-structure` (or `bash scripts/check-preset-structure.sh`) passes
172
+ - [ ] Twin drift: after editing a Claude `commands/**` or `skills/**` file, `node scripts/check-preset-twin-drift.mjs` passes — mirror the change in the Cursor twin (delta unchanged) or record a deliberate divergence with `--update`
172
173
  - [ ] Generated trees regenerated (`generate-mavis.mjs` + `generate-opencode.mjs`) and CLI goldens recaptured (`capture-cli-golden.mjs`) after any preset-installed file changes
173
174
 
174
- Validation: `yarn check:preset-structure` + the `preset-pr-checklist` rule; CI workflow `preset-structure.yml`.
175
+ Validation: `yarn check:preset-structure` + the `preset-pr-checklist` rule; CI workflow `preset-structure.yml` (`check`, `hooks`, `ai-local-engine-tests`).
176
+
177
+ ## Release order
178
+
179
+ The published artifact must document the release it carries.
180
+
181
+ 1. Write the `CHANGELOG.md` section for the version and bump `packages/ai-rules/package.json` to that version **in one commit** — the gate compares the two, so a changelog-only commit is red.
182
+ 2. Tag the release and publish the tag.
183
+
184
+ A tag that carries a version bump without its changelog section ships the previous release's notes. `scripts/check-release-consistency.mjs` (wired into `check-preset-structure.sh`, alias `yarn check:release-consistency`) fails the build when `package.json` version and the newest `## <version>` heading in `CHANGELOG.md` disagree; fixture `test-release-consistency.mjs` covers the two failure shapes.
175
185
 
176
186
  ## Anti-hallucination oracle
177
187
 
@@ -268,7 +278,7 @@ Recent additions: **`android-kotlin`** (scaffolded from `ios-swift` agent-team +
268
278
  6. **Meta-rules** — add six `preset-*.mdc` / `preset-*.md` wrappers with preset-path globs (same as existing stacks).
269
279
  7. **build-verifier** — consumer gate only (stack tooling); preset-structure checks live in `scripts/check-*.sh` and `preset-pr-checklist`.
270
280
  8. **Platform artifacts** — see next section.
271
- 9. **Structure scripts** — add stack name to `STACKS` in `check-preset-twin-map.sh`, `check-preset-token-budget.sh`, `check-preset-leakage.sh`; fork `chain-team-phases.sh` byte-wise from other stacks.
281
+ 9. **Structure scripts** — add stack name to `STACKS` in `check-preset-twin-map.sh`, `check-preset-token-budget.sh`, `check-preset-leakage.sh`; fork `chain-team-phases.sh` byte-wise from other stacks; run `node scripts/check-preset-twin-drift.mjs --update` once the new stack ships Claude `commands/**` and `skills/**` (every new twin pair needs a baseline row).
272
282
  10. **Platform registration** — add the stack to `STACK_PROFILES` in `scripts/lib/stack-platform-profiles.mjs`, to `releasedStacks` in both `presets/mavis/platform-contract.json` and `presets/opencode/platform-contract.json`, then generate the derived trees: `node scripts/generate-mavis.mjs --stack <name>` and `node scripts/generate-opencode.mjs --stack <name>`. Verify with `node scripts/check-generated-drift.mjs`.
273
283
  11. **Document** — stack `README.md`, `rules/README.md` core→stack table, twin row in this guide, link `_shared/README.md`.
274
284
  12. **Package README** — list new preset name under install examples for all four platforms (`init cursor|claude|mavis|opencode --preset <name>`).
@@ -350,6 +360,7 @@ Hooks scripts may fork per stack (e.g. ios-swift `chain-team-phases.sh` must not
350
360
  2. **One stack only?** → add `presets/cursor/<stack>/rules/<stem>.mdc`, add its Claude README mapping row, then run `generate-claude.mjs --stack <stack>`.
351
361
  3. **Preset author workflow?** → `_shared/core/meta/` + `preset-*.mdc` / `tooling-and-review/preset-*.md` with preset globs only.
352
362
  4. **Heavy workflow (orchestrator, feature-delivery, code-review)?** → requestable / `paths:` / globs — **not** always-on.
363
+ 5. **Situational guidance that every turn would carry?** → keep it out of the always-on rule: add a requestable stem (`_shared/core/quality/<stem>.md` + `presets/cursor/<stack>/rules/<stem>.mdc` with `alwaysApply: false`, classify it in `scripts/_lib/embed-stems.json`, add the Claude README mapping rows) and leave a pointer in the always-on rule. `scripts/check-next-attached-budget.mjs` keeps 5 free lines under the `next` UI cap, so a release cannot land on the cap.
353
364
 
354
365
  See packaged **`preset-layering`** and **`preset-no-cross-stack-leakage`** for details.
355
366
 
@@ -386,18 +397,20 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
386
397
  | `yarn fix:generated` | Regenerate every released generated platform and recapture all required CLI goldens. Run after changing Cursor SoT, before fail-only checks. Dogfood sync remains separate. |
387
398
  | `scripts/sync-dogfood-cursor.sh` | Copy `presets/cursor/<preset>/` → root `.cursor/` (`AI_RULES_DOGFOOD_PRESET`, default `next`). Also copies `REPO_AGENTS.md` → repo-root `AGENTS.md`. Seeds `.ai.local/team` templates; preserves `.ai.local/team/tasks/`. |
388
399
  | `scripts/check-shared-core-drift.sh` / `yarn check:shared-core-drift` | Check embed-mode adapters vs core; lists lineage consumers. **Always hard:** every `_shared/core/**` file must be classified `embed | lineage | internal` in `_lib/embed-stems.json` (unclassified → exit 1). Drift is soft by default; set `AI_RULES_DRIFT_FAIL=1` (or use `check:preset-structure`) to exit non-zero. |
389
- | `scripts/check-preset-twin-map.sh` / `yarn check:preset-twin-map` | **FAIL** if Cursor `.mdc` missing from Claude mapping table, twin file missing, or orphan topic `.md` (excl. `**/README.md`). Stacks: `next`, `nuxt`, `svelte`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`. |
400
+ | `scripts/check-preset-twin-map.sh` / `yarn check:preset-twin-map` | **FAIL** if Cursor `.mdc` missing from Claude mapping table, twin file missing, or orphan topic `.md` (excl. `**/README.md`). Stacks: `next`, `nuxt`, `svelte`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`. **Rules only** — commands and skills are guarded by `check-preset-twin-drift.mjs`. |
401
+ | `scripts/check-preset-twin-drift.mjs` / `yarn check:preset-twin-drift` | **FAIL** when a hand-maintained Claude twin (`presets/claude/<stack>/{commands,skills}/**/*.md`) drifts further from its Cursor source than `scripts/_lib/claude-twin-drift-baseline.json` records, when a command/skill has no twin on the other side, or when a new pair has no baseline row. Full parity is not required: mirror a change in both twins (delta unchanged) or record a deliberate divergence with `--update`. Fixture `test-preset-twin-drift.mjs`. |
390
402
  | `scripts/check-preset-token-budget.sh` / `yarn check:preset-token-budget` | **FAIL** if Cursor `alwaysApply: true` or Claude no-`paths:` (excl. README) count is outside **3–10**, `preset-*` always-on, or intended body sum > **4000**. Stacks include `nuxt`, `svelte`. |
391
403
  | `scripts/check-preset-leakage.sh` / `yarn check:preset-leakage` | **FAIL** on forbidden stems in `hooks/**/*.sh` (recursive), wrong-stack agent filenames, or **positive** (non-negation) agent body mentions; **FAIL** if chain scripts are byte-identical across stacks. Explicit **negation** of forbidden stems in agent bodies is **suppressed** (INFO summary count only — not a merge blocker). Non-negation mentions in `build-verifier` → **WARN only**. |
392
404
  | `scripts/check-preset-prompt-persistence.sh` / `yarn check:preset-structure` | **FAIL** if the prompt-persistence contract (`prompt.md` + the append-only `prompt-log.md` ledger, both on the `routing` entry) is missing from any platform × stack command (`task.md` + `task-continue.md`), orchestrator, or intake body, from the **always-on** root `REPO_AGENTS.md` entry (check **E** — reachability without `/task`), or a core `agent-artifact-contracts` anchor (`## Prompt artifact` / `## Prompt log`) is gone; **refuses vacuous PASS** when the iteration set is empty. Wired into `check-preset-structure.sh` next to `goal-contract`; fixture `test-preset-prompt-persistence-fixtures.mjs`. |
393
405
  | `scripts/check-preset-reachability.sh` / `yarn check:preset-reachability` | **FAIL** if a non-`preset-*` OpenCode/Mavis rule is reachable by neither a direct reference (entry / agent / command / skill) nor the transitive closure of rule→rule references from the `root-entry` rules. `preset-*` meta rules are exempt as preset-authoring-only. **Refuses vacuous PASS** on an empty iteration set. Wired into `check-preset-structure.sh` next to `prompt-persistence`. |
394
406
  | `scripts/check-preset-language-policy.sh` / `yarn check:preset-structure` | **FAIL** if the native-language policy is absent: the core `_shared/core/agent-team/language-policy.md` tokens, the `language-policy` consumer + `<!-- shared-core -->` marker, the Cursor `globs:`/`alwaysApply: false` + Claude `paths:` shape, the `## Language` setting home (with a BCP-47 marker) in `ai-local/conventions.md`, the always-on anchors (`ai-local-overlay` + `<app-core>` + `REPO_AGENTS.md` must contain `native language` and `every user message`), or the `language:` persistence token in `commands/task.md`; **refuses vacuous PASS** when the iteration set is empty. Wired into `check-preset-structure.sh` next to `goal-contract` / `prompt-persistence`; fixture `test-preset-language-policy-fixtures.mjs`. |
395
- | `scripts/check-preset-self-review-contract.sh` / `yarn check:preset-structure` | **FAIL** if the producer-side self-review / context-hygiene contract is absent: the core `_shared/core/quality/self-review-and-context-hygiene.md` tokens (G0 non-vacuous guard), the `<!-- shared-core: quality/self-review-and-context-hygiene.md -->` marker on `task-analyst` / `feature-developer` / `build-verifier` (×10) and on `debugger` / `code-reviewer` where present (skip-if-absent → `mcp-ts`), the `Self-review` + `re-anchor` tokens on every orchestrator rule, `Self-review` in `team/README.md` + `commands/task.md`, and leakage-free core + docs; **refuses vacuous PASS** when the iteration set is empty. Wired into `check-preset-structure.sh` next to `goal-contract`; fixture `test-preset-self-review-contract-fixtures.mjs`. |
407
+ | `scripts/check-preset-self-review-contract.sh` / `yarn check:preset-structure` | **FAIL** if the producer-side self-review / context-hygiene contract is absent: the core `_shared/core/quality/self-review-and-context-hygiene.md` tokens (G0 non-vacuous guard), the `<!-- shared-core: quality/self-review-and-context-hygiene.md -->` marker on `task-analyst` / `feature-developer` / `build-verifier` (×10) and on `debugger` / `code-reviewer` where present (skip-if-absent → `mcp-ts`), the `Self-review` + `re-anchor` tokens on every orchestrator rule, `Self-review` in `team/README.md` + `commands/task.md`, and leakage-free core + docs; **refuses vacuous PASS** when the iteration set is empty. Also holds two prose contracts: the canonical self-learning-loop sentence must not be followed by unsanctioned prose (an allowlist — a spliced tail fails), and every retro carrier (command, skill, rule) must state `finding_category`. Wired into `check-preset-structure.sh` next to `goal-contract`; fixture `test-preset-self-review-contract-fixtures.mjs`. |
396
408
  | `scripts/check-anti-hallucination-coverage.mjs` | **FAIL** when the shared contract, a Cursor load-line embed, a writer stack floor, or a generated Rules-to-load stem is missing. Writer roles are `implementer`, `unit-test`, `e2e`, `qa`, and `reviewer` (`code-reviewer` loads `STACK_FLOOR_STEMS` plus the contract). `/task` and the orchestrator must not name a floor stem. Does not scan consumer `app/**` and does not call Context7. Fixture `test-anti-hallucination-coverage.mjs` deletes `anti-hallucination-contract` from `next.reviewer` in memory and expects FAIL mentioning `next` and `reviewer`. Wired into `check-preset-structure.sh` immediately after `check-claude-agent-blocks.mjs`. |
397
409
  | `scripts/check-preset-structure.sh` / `yarn check:preset-structure` | Orchestrator: twin-map + token-budget + leakage + shared-core drift + anti-hallucination coverage (**all hard**; drift via `AI_RULES_DRIFT_FAIL=1`). Does **not** run rule-eval. |
398
410
  | `scripts/check-product-specs.sh` / `yarn check:product-specs` | Opt-in consumer tree check: frontmatter v1 keys + required body headings on `docs/specs/**` (bash; does **not** run JSON Schema). Ships in the npm package `files` (`scripts/`). **WARN** by default; **`--strict`** exits non-zero. |
399
411
  | `yarn check:product-specs:dogfood` | Same script against monorepo `dogfood/mcp-ts-sample`. Soft WARN inside `check:preset-structure` + CI step (`continue-on-error`); not a hard consumer CI gate. |
400
412
  | `scripts/check-rule-eval.mjs` / `yarn check:rule-eval` | Opt-in: validates Incorrect/Correct pairs + `impact:` on **next-only** golden stems (`eval/next/manifest.json`). Backend / ios / php-hexagonal / php-laravel stems are out of scope until a stack adds `eval/<stack>/`. Not part of `check:preset-structure`. |
413
+ | `scripts/check-release-consistency.mjs` / `yarn check:release-consistency` | **FAIL** when `packages/ai-rules/package.json` version and the newest `## <version>` heading in `CHANGELOG.md` disagree — a tag must not ship the previous release's notes. Wired into `check-preset-structure.sh`; fixture `test-release-consistency.mjs`. |
401
414
 
402
415
  Run from `packages/ai-rules/`:
403
416
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonesofspring/ai-rules",
3
- "version": "0.2.48",
3
+ "version": "0.2.51",
4
4
  "description": "Presets of Cursor, Claude, Mavis, and OpenCode rules/commands for Revy Ross personal use",
5
5
  "license": "MIT",
6
6
  "author": "Revy Ross",
@@ -41,6 +41,8 @@
41
41
  "test:parallel-plan-fixtures": "node scripts/test-parallel-plan-fixtures.mjs",
42
42
  "check:claude-agent-blocks": "node scripts/check-claude-agent-blocks.mjs",
43
43
  "check:preset-twin-map": "bash scripts/check-preset-twin-map.sh",
44
+ "check:preset-twin-drift": "node scripts/check-preset-twin-drift.mjs",
45
+ "test:twin-drift-fixtures": "node scripts/test-preset-twin-drift.mjs",
44
46
  "check:preset-token-budget": "bash scripts/check-preset-token-budget.sh",
45
47
  "check:preset-leakage": "bash scripts/check-preset-leakage.sh",
46
48
  "check:figma-contract": "bash scripts/check-figma-contract-presence.sh",
@@ -55,6 +57,7 @@
55
57
  "check:product-specs:dogfood": "bash scripts/check-product-specs.sh ../../dogfood/mcp-ts-sample",
56
58
  "check:rule-eval": "node scripts/check-rule-eval.mjs",
57
59
  "check:next-attached-budget": "node scripts/check-next-attached-budget.mjs",
60
+ "check:release-consistency": "node scripts/check-release-consistency.mjs",
58
61
  "check:generated-drift": "node scripts/check-generated-drift.mjs",
59
62
  "check:hook-body-parity": "node scripts/check-hook-body-parity.mjs",
60
63
  "test:hook-body-parity-fixtures": "node scripts/test-hook-body-parity-fixtures.mjs",
@@ -62,6 +65,7 @@
62
65
  "test:generated-drift-fixtures": "node scripts/test-generated-drift-fixtures.mjs",
63
66
  "test:generate-claude-fixtures": "node scripts/test-generate-claude-fixtures.mjs",
64
67
  "test:generated-drift-claude-fixtures": "node scripts/test-generated-drift-claude-fixtures.mjs",
68
+ "test:rule-improver": "node scripts/test-rule-improver-ledger.mjs",
65
69
  "test:cli-mcp-merge": "node scripts/test-cli-mcp-merge.mjs",
66
70
  "test:cli-init-clean": "node scripts/test-cli-init-clean.mjs",
67
71
  "test:cli-update": "node scripts/test-cli-update.mjs",
@@ -170,6 +170,7 @@ export function deriveGateSignals({ baseDir = DEFAULT_BASE_DIR, isDenied = defau
170
170
  stem,
171
171
  source: 'gate',
172
172
  status: 'proposed',
173
+ finding_category: 'process',
173
174
  });
174
175
  }
175
176
  }
@@ -50,7 +50,7 @@ const QUALITY_OUTCOMES = new Set(['changes_requested', 'validation_failed']);
50
50
  // `seed-staged`/`staged`/`proposed`/`rejected` never act; `rollback` removes
51
51
  // the rule. None of the non-applied actions may form a `t0`/cohort verdict.
52
52
  const APPLIED_ACTIONS = new Set(['rule-created', 'conventions-added', 'applied']);
53
- const ROLLED_BACK_ACTIONS = new Set(['rollback', 'rolled_back']);
53
+ const ROLLED_BACK_ACTIONS = new Set(['rollback', 'rolled_back', 'unloaded']);
54
54
 
55
55
  // --- Pure helpers -------------------------------------------------------------
56
56