@bonesofspring/ai-rules 0.2.51 → 0.2.53

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 (376) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/README.md +27 -3
  3. package/bin/cli.js +565 -61
  4. package/bin/lib/ai-local-drift.js +55 -14
  5. package/bin/lib/engine-scripts.js +10 -0
  6. package/bin/lib/mcp/clients.js +168 -0
  7. package/bin/lib/mcp/credentials.js +298 -0
  8. package/bin/lib/mcp/doctor.js +394 -0
  9. package/bin/lib/mcp/prompt.js +115 -0
  10. package/bin/lib/mcp/registry.js +170 -0
  11. package/bin/lib/mcp/run.js +123 -0
  12. package/bin/lib/merged-config.js +45 -0
  13. package/bin/lib/seed-ai-local-team.js +23 -7
  14. package/bin/lib/tool-installs.js +27 -0
  15. package/bin/mavis-install.js +2 -0
  16. package/bin/opencode-install.js +2 -0
  17. package/docs/LOCAL-OVERLAY.md +1 -1
  18. package/docs/MCP-SETUP.md +62 -0
  19. package/docs/PRESET-CONTRIBUTION.md +14 -10
  20. package/docs/TEAM-DB.md +173 -0
  21. package/docs/openapi/team-db.v1.json +5085 -0
  22. package/mcp/gitlab.mjs +123 -0
  23. package/mcp/lib/envfile.mjs +126 -0
  24. package/mcp/lib/yandex.mjs +384 -0
  25. package/mcp/yandex-mcp-proxy.mjs +155 -0
  26. package/mcp/yandex-token-refresh.mjs +65 -0
  27. package/package.json +18 -1
  28. package/presets/_shared/ai-local/scripts/manifest.mjs +112 -3
  29. package/presets/_shared/ai-local/scripts/rule-improver.mjs +428 -91
  30. package/presets/_shared/ai-local/scripts/run.mjs +22 -4
  31. package/presets/_shared/ai-local/scripts/signals.mjs +4 -1
  32. package/presets/_shared/ai-local/scripts/team-db-api.mjs +1275 -0
  33. package/presets/_shared/ai-local/scripts/team-db-dashboard.mjs +1067 -0
  34. package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +1301 -0
  35. package/presets/_shared/ai-local/scripts/team-db-project.mjs +1506 -0
  36. package/presets/_shared/ai-local/scripts/team-db-schema.mjs +831 -0
  37. package/presets/_shared/ai-local/scripts/team-db.mjs +251 -0
  38. package/presets/_shared/core/meta/preset-pr-checklist.md +1 -1
  39. package/presets/_shared/core/quality/interactive-questions.md +8 -8
  40. package/presets/_shared/hooks/chain-team-phases.sh.tmpl +109 -0
  41. package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -0
  42. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +109 -0
  43. package/presets/claude/android-kotlin/rules/tooling-and-review/interactive-questions.md +8 -8
  44. package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +1 -1
  45. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  46. package/presets/claude/android-kotlin/team/README.md +10 -0
  47. package/presets/claude/go/agents/code-reviewer.md +1 -0
  48. package/presets/claude/go/hooks/chain-team-phases.sh +109 -0
  49. package/presets/claude/go/rules/tooling-and-review/interactive-questions.md +8 -8
  50. package/presets/claude/go/rules/tooling-and-review/language-policy.md +1 -1
  51. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  52. package/presets/claude/go/team/README.md +10 -0
  53. package/presets/claude/ios-swift/agents/code-reviewer.md +1 -0
  54. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +109 -0
  55. package/presets/claude/ios-swift/rules/tooling-and-review/interactive-questions.md +8 -8
  56. package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +1 -1
  57. package/presets/claude/ios-swift/rules/tooling-and-review/post-change-build.md +1 -1
  58. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  59. package/presets/claude/ios-swift/team/README.md +10 -0
  60. package/presets/claude/java/agents/code-reviewer.md +1 -0
  61. package/presets/claude/java/hooks/chain-team-phases.sh +109 -0
  62. package/presets/claude/java/rules/tooling-and-review/interactive-questions.md +8 -8
  63. package/presets/claude/java/rules/tooling-and-review/language-policy.md +1 -1
  64. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  65. package/presets/claude/java/team/README.md +10 -0
  66. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +109 -0
  67. package/presets/claude/mcp-ts/rules/tooling-and-review/interactive-questions.md +8 -8
  68. package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +1 -1
  69. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  70. package/presets/claude/mcp-ts/team/README.md +10 -0
  71. package/presets/claude/next/MCP.md +7 -0
  72. package/presets/claude/next/README.md +1 -1
  73. package/presets/claude/next/REPO_AGENTS.md +1 -1
  74. package/presets/claude/next/agents/README.md +3 -3
  75. package/presets/claude/next/agents/build-verifier.md +9 -3
  76. package/presets/claude/next/agents/code-reviewer.md +2 -1
  77. package/presets/claude/next/agents/codebase-analyzer.md +1 -1
  78. package/presets/claude/next/agents/feature-developer.md +18 -8
  79. package/presets/claude/next/agents/openspec-author.md +1 -1
  80. package/presets/claude/next/agents/playwright-test-generator.md +22 -68
  81. package/presets/claude/next/agents/playwright-test-healer.md +27 -54
  82. package/presets/claude/next/agents/playwright-test-planner.md +18 -51
  83. package/presets/claude/next/agents/task-analyst.md +25 -9
  84. package/presets/claude/next/agents/task-router.md +1 -1
  85. package/presets/claude/next/agents/tech-writer.md +1 -1
  86. package/presets/claude/next/hooks/chain-team-phases.sh +109 -0
  87. package/presets/claude/next/mcp.json +3 -3
  88. package/presets/claude/next/rules/anti-hallucination/react-next-anti-hallucination.md +1 -1
  89. package/presets/claude/next/rules/architecture/layer-barrel-exports.md +1 -1
  90. package/presets/claude/next/rules/architecture/reference-features.md +1 -1
  91. package/presets/claude/next/rules/stack/navigation-router-ui.md +1 -1
  92. package/presets/claude/next/rules/stack/navigation-router.md +14 -0
  93. package/presets/claude/next/rules/stack/next-app-core.md +19 -17
  94. package/presets/claude/next/rules/stack/next-app-router.md +5 -17
  95. package/presets/claude/next/rules/stack/next-static-export.md +1 -1
  96. package/presets/claude/next/rules/tooling-and-review/interactive-questions.md +8 -8
  97. package/presets/claude/next/rules/tooling-and-review/language-policy.md +1 -1
  98. package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +1 -1
  99. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  100. package/presets/claude/next/rules/tooling-and-review/preset-token-budget.md +1 -1
  101. package/presets/claude/next/rules/tooling-and-review/security-next.md +28 -3
  102. package/presets/claude/next/rules/ui-and-accessibility/css-property-order.md +1 -1
  103. package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +4 -4
  104. package/presets/claude/next/rules/ui-and-accessibility/forms-validation.md +2 -2
  105. package/presets/claude/next/team/README.md +21 -0
  106. package/presets/claude/next/team/fixtures/feature-with-figma-url.json +10 -0
  107. package/presets/claude/next/team/fixtures/feature-with-ux-no-figma.json +10 -0
  108. package/presets/claude/next/team/fixtures/mockup-review-standalone.json +9 -0
  109. package/presets/claude/next/team/fixtures/ux-design-standalone.json +9 -0
  110. package/presets/claude/nuxt/agents/code-reviewer.md +1 -0
  111. package/presets/claude/nuxt/hooks/chain-team-phases.sh +109 -0
  112. package/presets/claude/nuxt/rules/architecture/layer-barrel-exports.md +1 -1
  113. package/presets/claude/nuxt/rules/stack/navigation-router-ui.md +1 -1
  114. package/presets/claude/nuxt/rules/tooling-and-review/interactive-questions.md +8 -8
  115. package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +1 -1
  116. package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +1 -1
  117. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  118. package/presets/claude/nuxt/team/README.md +10 -0
  119. package/presets/claude/php-hexagonal/agents/code-reviewer.md +1 -0
  120. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +109 -0
  121. package/presets/claude/php-hexagonal/rules/tooling-and-review/interactive-questions.md +8 -8
  122. package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +1 -1
  123. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  124. package/presets/claude/php-hexagonal/team/README.md +10 -0
  125. package/presets/claude/php-laravel/agents/code-reviewer.md +1 -0
  126. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +109 -0
  127. package/presets/claude/php-laravel/rules/tooling-and-review/interactive-questions.md +8 -8
  128. package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +1 -1
  129. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  130. package/presets/claude/php-laravel/team/README.md +10 -0
  131. package/presets/claude/svelte/agents/code-reviewer.md +1 -0
  132. package/presets/claude/svelte/hooks/chain-team-phases.sh +109 -0
  133. package/presets/claude/svelte/rules/architecture/layer-barrel-exports.md +1 -1
  134. package/presets/claude/svelte/rules/tooling-and-review/interactive-questions.md +8 -8
  135. package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +1 -1
  136. package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +1 -1
  137. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  138. package/presets/claude/svelte/team/README.md +10 -0
  139. package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -0
  140. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +109 -0
  141. package/presets/cursor/android-kotlin/rules/README.md +1 -0
  142. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +3 -3
  143. package/presets/cursor/android-kotlin/rules/interactive-questions.mdc +8 -8
  144. package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +1 -1
  145. package/presets/cursor/android-kotlin/team/README.md +10 -0
  146. package/presets/cursor/go/agents/code-reviewer.md +1 -0
  147. package/presets/cursor/go/hooks/chain-team-phases.sh +109 -0
  148. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +2 -2
  149. package/presets/cursor/go/rules/interactive-questions.mdc +8 -8
  150. package/presets/cursor/go/rules/preset-pr-checklist.mdc +1 -1
  151. package/presets/cursor/go/team/README.md +10 -0
  152. package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -0
  153. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +109 -0
  154. package/presets/cursor/ios-swift/rules/README.md +1 -0
  155. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +3 -3
  156. package/presets/cursor/ios-swift/rules/interactive-questions.mdc +8 -8
  157. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +1 -1
  158. package/presets/cursor/ios-swift/team/README.md +10 -0
  159. package/presets/cursor/java/agents/code-reviewer.md +1 -0
  160. package/presets/cursor/java/hooks/chain-team-phases.sh +109 -0
  161. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +2 -2
  162. package/presets/cursor/java/rules/interactive-questions.mdc +8 -8
  163. package/presets/cursor/java/rules/preset-pr-checklist.mdc +1 -1
  164. package/presets/cursor/java/team/README.md +10 -0
  165. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +109 -0
  166. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +2 -2
  167. package/presets/cursor/mcp-ts/rules/interactive-questions.mdc +8 -8
  168. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +1 -1
  169. package/presets/cursor/mcp-ts/team/README.md +10 -0
  170. package/presets/cursor/next/MCP.md +14 -0
  171. package/presets/cursor/next/REPO_AGENTS.md +1 -1
  172. package/presets/cursor/next/agents/code-reviewer.md +1 -0
  173. package/presets/cursor/next/agents/playwright-test-healer.md +1 -0
  174. package/presets/cursor/next/ai-local/rules-library/router-pages.md +5 -5
  175. package/presets/cursor/next/hooks/chain-team-phases.sh +109 -0
  176. package/presets/cursor/next/mcp.json +3 -3
  177. package/presets/cursor/next/rules/README.md +1 -1
  178. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +1 -1
  179. package/presets/cursor/next/rules/css-property-order-stylelint.mdc +1 -1
  180. package/presets/cursor/next/rules/design-tokens-binding.mdc +4 -4
  181. package/presets/cursor/next/rules/forms-validation.mdc +2 -2
  182. package/presets/cursor/next/rules/interactive-questions.mdc +8 -8
  183. package/presets/cursor/next/rules/navigation-router-stack.mdc +14 -1
  184. package/presets/cursor/next/rules/next-app-core.mdc +19 -17
  185. package/presets/cursor/next/rules/next-app-router.mdc +5 -17
  186. package/presets/cursor/next/rules/next-static-export.mdc +1 -1
  187. package/presets/cursor/next/rules/preset-pr-checklist.mdc +1 -1
  188. package/presets/cursor/next/rules/preset-token-budget.mdc +1 -1
  189. package/presets/cursor/next/rules/react-next-anti-hallucination.mdc +1 -1
  190. package/presets/cursor/next/rules/reference-features.mdc +1 -1
  191. package/presets/cursor/next/rules/security-next.mdc +28 -3
  192. package/presets/cursor/next/team/README.md +21 -0
  193. package/presets/cursor/next/team/fixtures/feature-with-figma-url.json +10 -0
  194. package/presets/cursor/next/team/fixtures/feature-with-ux-no-figma.json +10 -0
  195. package/presets/cursor/next/team/fixtures/mockup-review-standalone.json +9 -0
  196. package/presets/cursor/next/team/fixtures/ux-design-standalone.json +9 -0
  197. package/presets/cursor/nuxt/agents/code-reviewer.md +1 -0
  198. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +109 -0
  199. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +1 -1
  200. package/presets/cursor/nuxt/rules/interactive-questions.mdc +8 -8
  201. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +1 -1
  202. package/presets/cursor/nuxt/team/README.md +10 -0
  203. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -0
  204. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +109 -0
  205. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +2 -2
  206. package/presets/cursor/php-hexagonal/rules/interactive-questions.mdc +8 -8
  207. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +1 -1
  208. package/presets/cursor/php-hexagonal/team/README.md +10 -0
  209. package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -0
  210. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +109 -0
  211. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +2 -2
  212. package/presets/cursor/php-laravel/rules/interactive-questions.mdc +8 -8
  213. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +1 -1
  214. package/presets/cursor/php-laravel/team/README.md +10 -0
  215. package/presets/cursor/svelte/agents/code-reviewer.md +1 -0
  216. package/presets/cursor/svelte/hooks/chain-team-phases.sh +109 -0
  217. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +1 -1
  218. package/presets/cursor/svelte/rules/interactive-questions.mdc +8 -8
  219. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +1 -1
  220. package/presets/cursor/svelte/team/README.md +10 -0
  221. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  222. package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -0
  223. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +109 -0
  224. package/presets/mavis/android-kotlin/rules/interactive-questions.md +8 -8
  225. package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +1 -1
  226. package/presets/mavis/android-kotlin/team/README.md +10 -0
  227. package/presets/mavis/go/adapter-map.json +1 -1
  228. package/presets/mavis/go/agents/code-reviewer.md +1 -0
  229. package/presets/mavis/go/hooks/chain-team-phases.sh +109 -0
  230. package/presets/mavis/go/rules/interactive-questions.md +8 -8
  231. package/presets/mavis/go/rules/preset-pr-checklist.md +1 -1
  232. package/presets/mavis/go/team/README.md +10 -0
  233. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  234. package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -0
  235. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +109 -0
  236. package/presets/mavis/ios-swift/rules/interactive-questions.md +8 -8
  237. package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +1 -1
  238. package/presets/mavis/ios-swift/team/README.md +10 -0
  239. package/presets/mavis/java/adapter-map.json +1 -1
  240. package/presets/mavis/java/agents/code-reviewer.md +1 -0
  241. package/presets/mavis/java/hooks/chain-team-phases.sh +109 -0
  242. package/presets/mavis/java/rules/interactive-questions.md +8 -8
  243. package/presets/mavis/java/rules/preset-pr-checklist.md +1 -1
  244. package/presets/mavis/java/team/README.md +10 -0
  245. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  246. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +109 -0
  247. package/presets/mavis/mcp-ts/rules/interactive-questions.md +8 -8
  248. package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +1 -1
  249. package/presets/mavis/mcp-ts/team/README.md +10 -0
  250. package/presets/mavis/next/MCP.md +14 -0
  251. package/presets/mavis/next/REPO_AGENTS.md +1 -1
  252. package/presets/mavis/next/adapter-map.json +1 -1
  253. package/presets/mavis/next/agents/code-reviewer.md +1 -0
  254. package/presets/mavis/next/agents/playwright-test-healer.md +1 -0
  255. package/presets/mavis/next/ai-local/rules-library/router-pages.md +5 -5
  256. package/presets/mavis/next/hooks/chain-team-phases.sh +109 -0
  257. package/presets/mavis/next/mcp.json +3 -3
  258. package/presets/mavis/next/rules/css-property-order-stylelint.md +1 -1
  259. package/presets/mavis/next/rules/design-tokens-binding.md +4 -4
  260. package/presets/mavis/next/rules/forms-validation.md +2 -2
  261. package/presets/mavis/next/rules/interactive-questions.md +8 -8
  262. package/presets/mavis/next/rules/navigation-router-stack.md +12 -0
  263. package/presets/mavis/next/rules/next-app-core.md +18 -17
  264. package/presets/mavis/next/rules/next-app-router.md +4 -17
  265. package/presets/mavis/next/rules/next-static-export.md +1 -1
  266. package/presets/mavis/next/rules/preset-pr-checklist.md +1 -1
  267. package/presets/mavis/next/rules/react-next-anti-hallucination.md +1 -1
  268. package/presets/mavis/next/rules/reference-features.md +1 -1
  269. package/presets/mavis/next/rules/security-next.md +24 -3
  270. package/presets/mavis/next/team/README.md +21 -0
  271. package/presets/mavis/next/team/fixtures/feature-with-figma-url.json +10 -0
  272. package/presets/mavis/next/team/fixtures/feature-with-ux-no-figma.json +10 -0
  273. package/presets/mavis/next/team/fixtures/mockup-review-standalone.json +9 -0
  274. package/presets/mavis/next/team/fixtures/ux-design-standalone.json +9 -0
  275. package/presets/mavis/nuxt/adapter-map.json +1 -1
  276. package/presets/mavis/nuxt/agents/code-reviewer.md +1 -0
  277. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +109 -0
  278. package/presets/mavis/nuxt/rules/interactive-questions.md +8 -8
  279. package/presets/mavis/nuxt/rules/preset-pr-checklist.md +1 -1
  280. package/presets/mavis/nuxt/team/README.md +10 -0
  281. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  282. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -0
  283. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +109 -0
  284. package/presets/mavis/php-hexagonal/rules/interactive-questions.md +8 -8
  285. package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +1 -1
  286. package/presets/mavis/php-hexagonal/team/README.md +10 -0
  287. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  288. package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -0
  289. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +109 -0
  290. package/presets/mavis/php-laravel/rules/interactive-questions.md +8 -8
  291. package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +1 -1
  292. package/presets/mavis/php-laravel/team/README.md +10 -0
  293. package/presets/mavis/svelte/adapter-map.json +1 -1
  294. package/presets/mavis/svelte/agents/code-reviewer.md +1 -0
  295. package/presets/mavis/svelte/hooks/chain-team-phases.sh +109 -0
  296. package/presets/mavis/svelte/rules/interactive-questions.md +8 -8
  297. package/presets/mavis/svelte/rules/preset-pr-checklist.md +1 -1
  298. package/presets/mavis/svelte/team/README.md +10 -0
  299. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  300. package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -0
  301. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +109 -0
  302. package/presets/opencode/android-kotlin/rules/interactive-questions.md +8 -8
  303. package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +1 -1
  304. package/presets/opencode/android-kotlin/team/README.md +10 -0
  305. package/presets/opencode/go/adapter-map.json +1 -1
  306. package/presets/opencode/go/agents/code-reviewer.md +1 -0
  307. package/presets/opencode/go/hooks/chain-team-phases.sh +109 -0
  308. package/presets/opencode/go/rules/interactive-questions.md +8 -8
  309. package/presets/opencode/go/rules/preset-pr-checklist.md +1 -1
  310. package/presets/opencode/go/team/README.md +10 -0
  311. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  312. package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -0
  313. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +109 -0
  314. package/presets/opencode/ios-swift/rules/interactive-questions.md +8 -8
  315. package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +1 -1
  316. package/presets/opencode/ios-swift/team/README.md +10 -0
  317. package/presets/opencode/java/adapter-map.json +1 -1
  318. package/presets/opencode/java/agents/code-reviewer.md +1 -0
  319. package/presets/opencode/java/hooks/chain-team-phases.sh +109 -0
  320. package/presets/opencode/java/rules/interactive-questions.md +8 -8
  321. package/presets/opencode/java/rules/preset-pr-checklist.md +1 -1
  322. package/presets/opencode/java/team/README.md +10 -0
  323. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  324. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +109 -0
  325. package/presets/opencode/mcp-ts/rules/interactive-questions.md +8 -8
  326. package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +1 -1
  327. package/presets/opencode/mcp-ts/team/README.md +10 -0
  328. package/presets/opencode/next/MCP.md +14 -0
  329. package/presets/opencode/next/REPO_AGENTS.md +1 -1
  330. package/presets/opencode/next/adapter-map.json +1 -1
  331. package/presets/opencode/next/agents/code-reviewer.md +1 -0
  332. package/presets/opencode/next/agents/playwright-test-healer.md +1 -0
  333. package/presets/opencode/next/ai-local/rules-library/router-pages.md +5 -5
  334. package/presets/opencode/next/hooks/chain-team-phases.sh +109 -0
  335. package/presets/opencode/next/opencode.json +3 -3
  336. package/presets/opencode/next/rules/css-property-order-stylelint.md +1 -1
  337. package/presets/opencode/next/rules/design-tokens-binding.md +4 -4
  338. package/presets/opencode/next/rules/forms-validation.md +2 -2
  339. package/presets/opencode/next/rules/interactive-questions.md +8 -8
  340. package/presets/opencode/next/rules/navigation-router-stack.md +12 -0
  341. package/presets/opencode/next/rules/next-app-core.md +18 -17
  342. package/presets/opencode/next/rules/next-app-router.md +4 -17
  343. package/presets/opencode/next/rules/next-static-export.md +1 -1
  344. package/presets/opencode/next/rules/preset-pr-checklist.md +1 -1
  345. package/presets/opencode/next/rules/react-next-anti-hallucination.md +1 -1
  346. package/presets/opencode/next/rules/reference-features.md +1 -1
  347. package/presets/opencode/next/rules/security-next.md +24 -3
  348. package/presets/opencode/next/team/README.md +21 -0
  349. package/presets/opencode/next/team/fixtures/feature-with-figma-url.json +10 -0
  350. package/presets/opencode/next/team/fixtures/feature-with-ux-no-figma.json +10 -0
  351. package/presets/opencode/next/team/fixtures/mockup-review-standalone.json +9 -0
  352. package/presets/opencode/next/team/fixtures/ux-design-standalone.json +9 -0
  353. package/presets/opencode/nuxt/adapter-map.json +1 -1
  354. package/presets/opencode/nuxt/agents/code-reviewer.md +1 -0
  355. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +109 -0
  356. package/presets/opencode/nuxt/rules/interactive-questions.md +8 -8
  357. package/presets/opencode/nuxt/rules/preset-pr-checklist.md +1 -1
  358. package/presets/opencode/nuxt/team/README.md +10 -0
  359. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  360. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -0
  361. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +109 -0
  362. package/presets/opencode/php-hexagonal/rules/interactive-questions.md +8 -8
  363. package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +1 -1
  364. package/presets/opencode/php-hexagonal/team/README.md +10 -0
  365. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  366. package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -0
  367. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +109 -0
  368. package/presets/opencode/php-laravel/rules/interactive-questions.md +8 -8
  369. package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +1 -1
  370. package/presets/opencode/php-laravel/team/README.md +10 -0
  371. package/presets/opencode/svelte/adapter-map.json +1 -1
  372. package/presets/opencode/svelte/agents/code-reviewer.md +1 -0
  373. package/presets/opencode/svelte/hooks/chain-team-phases.sh +109 -0
  374. package/presets/opencode/svelte/rules/interactive-questions.md +8 -8
  375. package/presets/opencode/svelte/rules/preset-pr-checklist.md +1 -1
  376. package/presets/opencode/svelte/team/README.md +10 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,84 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.53
4
+
5
+ ### The team runtime gains a rebuildable SQLite projection and a local dashboard
6
+
7
+ - **Files stay authoritative.** A new `team-db` module family (six scripts in `.ai.local/scripts/`) projects `.ai.local/team/` into `.ai.local/team/team.db`. The two write seams — the chain hook after its file writes and `manifest.mjs` after a receipt — run one bounded 5 s child; a failure logs one line and never fails a file write. `AI_RULES_TEAM_DB_DISABLE=1` is the kill switch.
8
+ - **Read-only surface.** `team-db.mjs serve` binds loopback by default and serves a no-build dashboard and a frozen OpenAPI 3.1 document (`docs/openapi/team-db.v1.json`). `POST /api/v1/sync` is the only mutation; every other route is `GET`/`HEAD`.
9
+ - **Install surface.** `init` now seeds thirteen engine scripts and ignores `team.db`, `team.db-wal`, `team.db-shm`, and `team-db-errors.log` in `.ai.local/.gitignore`; the consumer root `.gitignore` is untouched. `engines` stays `>=18`: `node:sqlite` is required only at runtime (Node 22.13.0+), with a file-only fallback and no dependency change.
10
+ - **Gates.** `yarn test:team-db` runs the schema, project, dual-write, contract, API, security, dashboard, concurrency, and FAIL-direction fixture suites; `check-preset-structure.sh` wires every one. Concurrency covers two first projections on a missing database, mixed writers/readers, `SIGKILL` recovery, a held lock, and the hook budget.
11
+ - **Docs.** [`docs/TEAM-DB.md`](docs/TEAM-DB.md) states the behavior contract, the Node floor with its release-note citation, the exact environment names, retention, privacy, and rollback.
12
+
13
+ ### MCP pack
14
+
15
+ - **Runtime in the package.** The GitLab wrapper over `@zereight/mcp-gitlab`, the Yandex stdio→HTTP proxy, and the `yc` IAM refresh move into `mcp/**` and ship in `files`; no consumer copy and no new dependency. `engines` stays `>=18`, and every `mcp` command stops on Node < 20 with one next step.
16
+ - **One command per provider.** `ai-rules mcp setup|add|remove|doctor|refresh|run` — `setup` prompts once, registers only the clients present, and ends with a four-area doctor; `doctor` exits 0/1/2 and names one next command per failure; `refresh` re-runs the Yandex browser login.
17
+ - **Four clients.** Cursor, Claude Code, Mavis, and OpenCode get their native shape from one registry, pinned to the exact installed version: a re-run is byte-identical, foreign entries are preserved, and no token or absolute path enters a config.
18
+ - **Credentials.** GitLab URL + token live in `.ai-rules/mcp/credentials.env` (`0600`, self-ignored); Yandex writes only non-secret settings and keeps the IAM token in the `yc` profile.
19
+ - **Opt-in.** `init` ships no entry for these servers — a credential-less server would fail in every consumer. Setup guide: [`docs/MCP-SETUP.md`](docs/MCP-SETUP.md).
20
+
21
+ ### Upgrade
22
+
23
+ - Run `npx @bonesofspring/ai-rules update` to refresh the managed preset files and seed the thirteen `.ai.local/scripts/` modules.
24
+ - `team-db` needs Node 22.13.0+ at runtime for `node:sqlite`; older runtimes stay file-only. `AI_RULES_TEAM_DB_DISABLE=1` disables the projection.
25
+ - MCP servers are opt-in: run `npx @bonesofspring/ai-rules@latest mcp setup gitlab` or `... mcp setup yandex`. `init` ships no credential-less entry; MCP commands need Node 20+.
26
+
27
+ ## 0.2.52
28
+
29
+ ### The `next` preset catches up with Next 16 and its own gates
30
+
31
+ - **`proxy.ts` and lowercase auth/session files.** `security-next` attaches on `**/auth*.{ts,tsx}`, `**/session*.{ts,tsx}`, `app/**/proxy.ts`, and `app/src/**/proxy*.{ts,tsx}`; its prose states that a token refresh may live in `middleware` / `proxy`, that neither is an authorisation boundary, and that a layout-only check is not one either. `next-static-export` and both anti-hallucination banlists list `proxy.ts`.
32
+ - **Pages Router work loads the routing rule.** `navigation-router-stack` attaches on `app/src/pages/**/*`; the `router-pages` seed now points at `app/src/pages`, `app/src/ui/pages`, and `app/src/app`.
33
+ - **Correct env advice.** `next-app-core` states that `NEXT_PUBLIC_*` in `.env*` is inlined at build, that `next.config.*` `env` is optional, and that Server Components may read server-only env while Client Components never read `process.env`. The rule is compressed to keep the attached-budget headroom; the per-layer detail stays in `architecture-boundaries`.
34
+ - **Metadata is server-only.** `next-app-router` states that `export const metadata` cannot live in a `'use client'` file and belongs in a server `layout.tsx` / `page.tsx` or a wrapper; the example no longer contradicts the prose.
35
+ - **Claude agent parity is a gate.** The six `next` Claude agents (`playwright-test-healer`, `playwright-test-generator`, `playwright-test-planner`, `feature-developer`, `build-verifier`, `task-analyst`) are refreshed from their Cursor bodies; `test.fixme()` is gone, the blanket "do not ask" becomes the `interactive-questions` policy, Playwright output follows `app/__tests__/e2e/**` + `*.cases.md`, and the implementation rail, preset DoD, and decomposition template sections are back. `check-claude-agent-parity.mjs` ratchets every agent pair against `scripts/_lib/claude-agent-parity-baseline.json`; `task-router` and the other unrefreshed pairs are recorded at their current divergence.
36
+ - **Claude `model` aliases.** The six cheap agents pin `haiku`; the agent README documents per-invocation `model` → frontmatter → `CLAUDE_CODE_SUBAGENT_MODEL` → parent.
37
+ - **Generated Claude output is consumer-correct.** The Claude generator rewrites `.cursor/` globs, mapped `.mdc` references in descriptions and bodies, and the narrow `.cursor/rules` / `.cursor/team` body tokens; `check-consumer-links.mjs` fails when committed Claude rules or agents carry a `.cursor/` path or a resolvable `.mdc` reference, with a line-hash allowlist for the two legitimate lines.
38
+ - **MCP pins.** `@upstash/context7-mcp`, `@playwright/mcp`, and `chrome-devtools-mcp` are refreshed from the registry; `MCP.md` documents the pin policy.
39
+ - **Eval coverage.** `eval/next/manifest.json` registers `next-app-core`, `next-app-router`, and `navigation-router-stack`, with Incorrect/Correct pairs for the env, proxy/metadata, Pages-vs-App, and proxy surfaces.
40
+ - **Docs.** Both session-start lists name all four stems, `check-rule-eval` is described as a hard gate inside `check:preset-structure`, `reference-features` drops the source-only links, and the stack notes in `forms-validation`, `design-tokens-binding`, and `css-property-order-stylelint` are conditional on the repo stack.
41
+ - **Fixtures.** The team `pipeline.json` example and four fixtures carry `profile` + `routingDecision`.
42
+
43
+ ### The self-learning cap holds across runs
44
+
45
+ - **One auto-apply per task slug.** A later run reads `conventions-added` rows and will not auto-apply another signature for a slug that already spent its apply. Rollback frees the slug. Unload does not.
46
+ - **High severity without a path stays visible.** The lesson gate still refuses a conventions bullet and a seed. A high-severity pending lesson appends `action: "pending-lesson"` to `rule-changes.jsonl`. A low-severity pending lesson stays in the report only.
47
+ - **A crashed write is not an applied row.** The file is renamed before the ledger line. A kill between them leaves an `.intent` sidecar; the next run finishes the ledger row or drops the intent. `*.intent` is in the seeded `.ai.local/.gitignore`, and an existing ignore file gains any missing required line.
48
+ - **Nested overlay targets use one root.** Ledger paths and lesson paths resolve against the same root: the git root when `.git` is found, otherwise the overlay parent.
49
+
50
+ ### A nested overlay keeps its own project root
51
+
52
+ - **Two roots, one job each.** The **project root** (the directory that holds `.ai.local/`) owns lesson paths, script names and file I/O. The **repo root** (git) owns the ledger's `target`, which is stored repo-relative so the committed file carries no machine path. A nested overlay (`packages/foo/.ai.local/`) resolves `app/src` against `packages/foo/`, not against the git root — the previous single root made the lesson gate fail there and the loop never auto-applied.
53
+ - **A legacy row rolls back the file it wrote.** A ledger row written before the split carries a project-relative `target`; it now resolves against the project root when that is where the file lives, instead of writing to a path outside the overlay.
54
+ - **A spent slug is not freed by a later row.** Every `conventions-added` row for a signature contributes its slugs; a later row for the same signature cannot hand back a slug an earlier row spent. A `rollback` frees exactly the slugs it names.
55
+ - **`run.mjs --status` never throws.** An unreadable rule degrades the envelope to `unreadable` and the report still prints; the engine keeps failing closed.
56
+ - **`rollbackInverse` reconciles a pending commit.** A leftover `.intent` sidecar from a killed run is finished or dropped before the rollback writes, instead of being overwritten.
57
+ - **`yarn test:ai-local` runs on every runtime.** A small runner enumerates `.ai.local/scripts/*.test.mjs` and hands an explicit file list to `node --test`; `node --test <dir>` is a glob on Node 22+ and fails with `MODULE_NOT_FOUND`, and a shell glob needs a POSIX shell. CI calls the same runner.
58
+
59
+ ### Gates that fail on the case they were written for
60
+
61
+ - **Twin drift detects a one-sided rewrite after a mirrored change.** The ratchet compares the twins' difference, not two absolute snapshots, so a mirrored edit no longer makes the detector blind to the next one-sided edit. A baseline without its hash rows is a failure, not a silent downgrade.
62
+ - **`--update` cannot widen the twin-drift baseline by accident.** Raising an allowance needs `--update --widen`; dropping an orphan row needs `--update --prune`. A plain `--update` refuses both and leaves the file untouched. The ratchet now records the **divergence** between the twins, not two absolute snapshots, so a one-sided rewrite is caught even after a mirrored change.
63
+ - **The self-review tail is bounded by the section, not the paragraph.** Prose moved one blank line down is still caught; a tail in a later `## ` section is out of scope by design.
64
+ - **Release consistency compares semver.** `1.0.0-rc.10` above `1.0.0-rc.2` and `alpha-2` above `alpha-1` are valid changelogs and pass; a heading that looks like a version but is not one is reported.
65
+ - **The attached-budget caps bind.** The four new fixtures are calibrated to the measured totals plus the script's own headroom margin instead of a flat 400.
66
+ - **The Cursor family is checked for the shared contract.** Every adapter of a shared stem must carry the stem's required sentences — a platform whose adapter is not a byte-embed of the core cannot be covered by a body diff, so the normative fragments are pinned separately. A Cursor adapter can no longer silently lose shared-core prose.
67
+ - **The owning-agent roster cannot shrink silently.** A prompt that still carries the receipt-binding callout while its agent left the roster is a failure.
68
+
69
+ ### Drift classification
70
+
71
+ - **`--check` prints rels and writes nothing.** `init` and `update` accept it. `clean --merge-ai-local` and `clean --check` exit 1.
72
+ - **A recreated file is not "edited locally".** When another tool's init creates a file that was missing, the record takes that tool as the owner. `team/**` stays on the previous owner because the seed refreshes it every run.
73
+ - **A corrupt template record is not an empty base.** Unreadable `.template-base.json` skips the merge and warns, instead of resetting the base.
74
+
75
+ ### Upgrade
76
+
77
+ - Run `npx @bonesofspring/ai-rules update`. The installed `next` rules, Claude agents, team fixtures, generated Mavis/OpenCode trees, and MCP config are managed and refresh from the preset; `update` keeps each tool's recorded preset.
78
+ - MCP pins move to `@upstash/context7-mcp@4.5.0`, `@playwright/mcp@0.0.84`, and `chrome-devtools-mcp@1.12.0`. The merge keeps extra local servers; user-level MCP is untouched.
79
+ - The `router-pages` seed stays staged-inactive in `.ai.local/rules-library/`. If it is already active in `.ai.local/rules/router-pages.md`, update that consumer-owned copy manually — `init` / `update` do not overwrite `.ai.local/rules/**`.
80
+ - No `.ai.local` migration and no task-artifact change: `init` / `update` still never overwrite `tasks/<slug>/`. The new `check-claude-agent-parity` and `check-consumer-links` gates are preset-maintenance checks; consumer installs do not run them.
81
+
3
82
  ## 0.2.51
4
83
 
5
84
  ### A shared `.ai.local/` rel is counted once
@@ -50,6 +129,19 @@
50
129
  - The hook side (`<platform>/hooks/chain-team-phases.sh`) is managed, so `update` replaces it; an entry whose `status` was written as a receipt outcome now stalls with the rewrite command instead of a generic missing receipt.
51
130
  - `update --merge-ai-local` fast-forwards a file whose recorded base still matches. It does not refresh a pre-record engine script; delete that script to take the seeded copy.
52
131
 
132
+ ### A fresh install ignores the template record
133
+
134
+ - **`.template-base.json`.** The seeded `.ai.local/.gitignore` lists it, so the install record does not show up as an untracked file on every release.
135
+
136
+ ### Interactive questions follow the host schema
137
+
138
+ - **No shared numeric limits.** Header length, option-label length, and option count are whatever the host schema allows. The shared rule no longer states OpenCode's 30 characters / 2–5 options, which Claude Code rejects (`header` ≤12, options 2–4).
139
+ - **Free-form is the host's channel.** When the host already accepts typed text, do not add an option labeled "Other": a plain option returns its label. A host with no free-form channel still needs an explicit "Other" that opens a text prompt, or prose.
140
+
141
+ ### Cursor resume of an interrupted producer
142
+
143
+ - **Same sentence as the other hosts.** Each Cursor `agent-team-orchestrator` adapter now says an interrupted producer is resumed, not restarted, and that a host which writes no `status.json` resumes from `artifact-manifest.json` plus `.memlog.md`.
144
+
53
145
  ## 0.2.50
54
146
 
55
147
  `0.2.49` was never published (no tag, no npm version) — its notes ship as `0.2.50`.
package/README.md CHANGED
@@ -23,7 +23,7 @@ Run `init` from the **app root** (`--cwd` if needed). Default `--preset` is `nex
23
23
  | Root agents | `REPO_AGENTS.md` → `AGENTS.md` (same file on all four) | | | |
24
24
  | `/task` artifacts | **`.ai.local/team/`** (shared; templates refreshed; `tasks/<slug>/` never overwritten) | | | |
25
25
  | Template drift | **`.ai.local/.template-base.json`** (shared; one record per tree of files that hold a shipped template byte; `update` prints one drift line, `update --merge-ai-local` fast-forwards a file only when its recorded base still matches and reports the rest) | | | |
26
- | Self-learning engine | **`.ai.local/scripts/`** (shared; seven scripts — the engine plus `manifest.mjs`, the manifest writer; existing files never overwritten) | | | |
26
+ | Self-learning engine | **`.ai.local/scripts/`** (shared; thirteen scripts — the engine, `manifest.mjs`, and the six `team-db*.mjs` projection modules; existing files never overwritten) | | | |
27
27
  | Specs seed | `docs/specs/` copied only if the directory is **absent** | | | |
28
28
 
29
29
  The engine is the in-task self-learning loop: `.ai.local/signals.jsonl` → `.ai.local/rule-changes.jsonl` →
@@ -38,8 +38,9 @@ node .ai.local/scripts/run.mjs --strict # read-only check: exit 1 when capture
38
38
 
39
39
  `init` seeds the engine with **skip-if-exists** — a modified `run.mjs` stays yours and is reported as kept; there is no
40
40
  `--force`. Re-running `init` does not update a seeded module, so delete the file to pick up a newer engine. The seeded
41
- tree is byte-identical to `presets/_shared/ai-local/scripts/`, and `.ai.local/.gitignore` (created only when absent)
42
- ignores `*.lock`, `*.tmp`, and `.rollback/`; the root `.gitignore` is never edited.
41
+ tree is byte-identical to `presets/_shared/ai-local/scripts/`, and `.ai.local/.gitignore` (created when absent, missing
42
+ required lines appended to an existing file) ignores `*.lock`, `*.tmp`, `.rollback/`, `team.db`, `team.db-wal`,
43
+ `team.db-shm`, and `team-db-errors.log`; the root `.gitignore` is never edited.
43
44
 
44
45
  The same seeding ships `manifest.mjs`, the writer for `.ai.local/team/tasks/<slug>/artifact-manifest.json`:
45
46
 
@@ -52,6 +53,28 @@ node .ai.local/scripts/manifest.mjs check --slug <slug>
52
53
 
53
54
  Producers merge their receipt with it — the manifest is a whole-file merge target, never a fragment edit.
54
55
 
56
+ ### SQLite projection
57
+
58
+ The same seeded tree carries a rebuildable projection of `.ai.local/team/` into
59
+ `.ai.local/team/team.db` (SQLite, WAL). The **files stay authoritative**: the database is
60
+ derived, git-ignored, and safe to delete. The two write seams (the chain hook after its
61
+ file writes, and `manifest.mjs` after a receipt is printed) run a bounded 5 s child; a
62
+ failure is written to `team-db-errors.log` and never fails a file write.
63
+
64
+ ```bash
65
+ node .ai.local/scripts/team-db.mjs init # create/migrate the database
66
+ node .ai.local/scripts/team-db.mjs sync # full backfill + reconciliation
67
+ node .ai.local/scripts/team-db.mjs sync --slug <slug> # the bounded hook-shaped projection
68
+ node .ai.local/scripts/team-db.mjs check # schema, fingerprint, integrity
69
+ node .ai.local/scripts/team-db.mjs serve # http://127.0.0.1:4178 + dashboard
70
+ AI_RULES_TEAM_DB_DISABLE=1 node .ai.local/scripts/team-db.mjs sync # no-op: file-only mode
71
+ ```
72
+
73
+ Requires Node 22.13.0+ for `node:sqlite`; older runtimes stay file-only with one line and exit 0.
74
+ `team-db.mjs serve` binds loopback only, is read-only apart from `POST /api/v1/sync`, and
75
+ serves the OpenAPI 3.1 document at `/openapi.json`. Details, environment names, retention,
76
+ and rollback: [`docs/TEAM-DB.md`](docs/TEAM-DB.md).
77
+
55
78
  Living exceptions: **`.ai.local/rules/`** and **`.ai.local/conventions.md`** (`init` does not overwrite them). The only exception is opt-in and hash-gated: `update --merge-ai-local` fast-forwards a file whose recorded base in `.ai.local/.template-base.json` still matches, keeps an edited file byte-identical, and diverts its unified diff to `.ai.local/.rollback/template-drift/` (never a `.md`, never a conflict marker). Plain `update` only prints one drift line and records the files that already hold the shipped template; your own bytes never become a base. Overlay does not load `.ai.local/team/**` as rules; see [`docs/LOCAL-OVERLAY.md`](docs/LOCAL-OVERLAY.md#template-drift).
56
79
 
57
80
  **`clean <tool>`** removes only CLI-managed paths under that tool root. It does **not** wipe the whole `.cursor/` / `.claude/` tree, and it **never** deletes `.ai.local/`. Root `AGENTS.md` is removed only when no other tool install remains.
@@ -99,6 +122,7 @@ Every installed preset ships requestable `anti-hallucination-contract` (not alwa
99
122
  - Layers: [`presets/_shared/README.md`](presets/_shared/README.md)
100
123
  - Guide: [`docs/PRESET-CONTRIBUTION.md`](docs/PRESET-CONTRIBUTION.md)
101
124
  - Overlay: [`docs/LOCAL-OVERLAY.md`](docs/LOCAL-OVERLAY.md)
125
+ - MCP setup: [`docs/MCP-SETUP.md`](docs/MCP-SETUP.md)
102
126
  - Dogfood: [`scripts/sync-dogfood-cursor.sh`](scripts/sync-dogfood-cursor.sh), [`scripts/sync-dogfood-claude.sh`](scripts/sync-dogfood-claude.sh), [`scripts/sync-dogfood-mavis.sh`](scripts/sync-dogfood-mavis.sh), [`scripts/sync-dogfood-opencode.sh`](scripts/sync-dogfood-opencode.sh) — seeds `.ai.local/team`, preserves slugs
103
127
  - Gates: `yarn check:preset-structure`
104
128