@bonesofspring/ai-rules 0.2.34 → 0.2.36

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 (1491) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/bin/cli.js +247 -337
  3. package/bin/lib/fs-utils.js +203 -0
  4. package/bin/lib/merged-config.js +305 -0
  5. package/bin/lib/safe-path.js +7 -3
  6. package/bin/lib/seed-ai-local-team.js +18 -2
  7. package/bin/mavis-install.js +67 -173
  8. package/bin/opencode-install.js +165 -227
  9. package/docs/PRESET-CONTRIBUTION.md +33 -12
  10. package/package.json +13 -2
  11. package/presets/_shared/README.md +2 -0
  12. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -1
  13. package/presets/_shared/core/architecture/feature-delivery-workflow.md +1 -1
  14. package/presets/_shared/core/meta/preset-no-cross-stack-leakage.md +0 -1
  15. package/presets/_shared/core/meta/preset-pr-checklist.md +6 -2
  16. package/presets/_shared/core/meta/preset-token-budget.md +2 -3
  17. package/presets/_shared/core/meta/preset-twin-sync.md +5 -5
  18. package/presets/_shared/core/quality/self-review-and-context-hygiene.md +11 -0
  19. package/presets/_shared/core/review/mockup-review.md +34 -29
  20. package/presets/claude/android-kotlin/REPO_AGENTS.md +10 -6
  21. package/presets/claude/android-kotlin/agents/build-verifier.md +3 -37
  22. package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -1
  23. package/presets/claude/android-kotlin/agents/debugger.md +1 -1
  24. package/presets/claude/android-kotlin/agents/feature-developer.md +1 -1
  25. package/presets/claude/android-kotlin/agents/openspec-author.md +1 -1
  26. package/presets/claude/android-kotlin/agents/task-analyst.md +1 -1
  27. package/presets/claude/android-kotlin/agents/tech-writer.md +1 -1
  28. package/presets/claude/android-kotlin/agents/unit-test-generator.md +1 -1
  29. package/presets/claude/android-kotlin/agents/unit-test-planner.md +1 -1
  30. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +49 -17
  31. package/presets/claude/android-kotlin/rules/api-and-data/networking.md +1 -1
  32. package/presets/claude/android-kotlin/rules/architecture/boundaries.md +2 -2
  33. package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +13 -18
  34. package/presets/claude/android-kotlin/rules/architecture/module-public-api.md +1 -1
  35. package/presets/claude/android-kotlin/rules/architecture/product-specs-authoring.md +1 -0
  36. package/presets/claude/android-kotlin/rules/architecture/product-specs.md +1 -0
  37. package/presets/claude/android-kotlin/rules/architecture/reference-features.md +1 -2
  38. package/presets/claude/android-kotlin/rules/stack/android-app-core.md +2 -2
  39. package/presets/claude/android-kotlin/rules/stack/kotlin-conventions.md +1 -1
  40. package/presets/claude/android-kotlin/rules/testing/ui.md +1 -1
  41. package/presets/claude/android-kotlin/rules/testing/unit.md +2 -2
  42. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +1 -3
  43. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +236 -11
  44. package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +7 -31
  45. package/presets/claude/android-kotlin/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  46. package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +1 -5
  47. package/presets/claude/android-kotlin/rules/tooling-and-review/design-guidance.md +1 -2
  48. package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +1 -2
  49. package/presets/claude/android-kotlin/rules/tooling-and-review/mcp-usage.md +1 -2
  50. package/presets/claude/android-kotlin/rules/tooling-and-review/mockup-review.md +35 -32
  51. package/presets/claude/android-kotlin/rules/tooling-and-review/post-change-build.md +2 -6
  52. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-goals.md +2 -3
  53. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-layering.md +2 -3
  54. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  55. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  56. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-token-budget.md +4 -6
  57. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +7 -8
  58. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-writing-style.md +2 -3
  59. package/presets/claude/android-kotlin/rules/tooling-and-review/technical-retro.md +1 -3
  60. package/presets/claude/android-kotlin/rules/tooling-and-review/ux-design.md +1 -3
  61. package/presets/claude/android-kotlin/rules/ui-and-accessibility/compose.md +1 -1
  62. package/presets/claude/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  63. package/presets/claude/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  64. package/presets/claude/android-kotlin/team/README.md +2 -2
  65. package/presets/claude/go/REPO_AGENTS.md +10 -6
  66. package/presets/claude/go/agents/build-verifier.md +3 -29
  67. package/presets/claude/go/agents/ci-investigator.md +2 -2
  68. package/presets/claude/go/agents/code-reviewer.md +1 -1
  69. package/presets/claude/go/agents/debugger.md +1 -1
  70. package/presets/claude/go/agents/feature-developer.md +1 -3
  71. package/presets/claude/go/agents/openspec-author.md +1 -1
  72. package/presets/claude/go/agents/task-analyst.md +1 -1
  73. package/presets/claude/go/agents/tech-writer.md +1 -1
  74. package/presets/claude/go/hooks/chain-team-phases.sh +51 -19
  75. package/presets/claude/go/rules/api-and-data/adapters-driven.md +1 -1
  76. package/presets/claude/go/rules/api-and-data/adapters-driving.md +2 -2
  77. package/presets/claude/go/rules/architecture/boundaries.md +1 -0
  78. package/presets/claude/go/rules/architecture/feature-delivery.md +45 -41
  79. package/presets/claude/go/rules/architecture/product-specs-authoring.md +1 -0
  80. package/presets/claude/go/rules/architecture/product-specs.md +1 -0
  81. package/presets/claude/go/rules/architecture/reference-features.md +37 -21
  82. package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +1 -6
  83. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +76 -50
  84. package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +7 -31
  85. package/presets/claude/go/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  86. package/presets/claude/go/rules/tooling-and-review/code-quality.md +1 -1
  87. package/presets/claude/go/rules/tooling-and-review/code-review.md +1 -6
  88. package/presets/claude/go/rules/tooling-and-review/design-guidance.md +1 -2
  89. package/presets/claude/go/rules/tooling-and-review/go-tooling.md +2 -7
  90. package/presets/claude/go/rules/tooling-and-review/language-policy.md +1 -2
  91. package/presets/claude/go/rules/tooling-and-review/mcp-usage.md +1 -2
  92. package/presets/claude/go/rules/tooling-and-review/post-change-test.md +2 -7
  93. package/presets/claude/go/rules/tooling-and-review/preset-goals.md +2 -3
  94. package/presets/claude/go/rules/tooling-and-review/preset-layering.md +2 -3
  95. package/presets/claude/go/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  96. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  97. package/presets/claude/go/rules/tooling-and-review/preset-token-budget.md +4 -6
  98. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +7 -8
  99. package/presets/claude/go/rules/tooling-and-review/preset-writing-style.md +2 -3
  100. package/presets/claude/go/rules/tooling-and-review/technical-retro.md +1 -6
  101. package/presets/claude/go/skills/ci-investigation/SKILL.md +2 -2
  102. package/presets/claude/go/skills/technical-retro/SKILL.md +13 -2
  103. package/presets/claude/go/team/README.md +2 -2
  104. package/presets/claude/ios-swift/REPO_AGENTS.md +10 -6
  105. package/presets/claude/ios-swift/agents/build-verifier.md +3 -39
  106. package/presets/claude/ios-swift/agents/code-reviewer.md +1 -1
  107. package/presets/claude/ios-swift/agents/debugger.md +1 -1
  108. package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
  109. package/presets/claude/ios-swift/agents/openspec-author.md +1 -1
  110. package/presets/claude/ios-swift/agents/task-analyst.md +1 -1
  111. package/presets/claude/ios-swift/agents/tech-writer.md +1 -1
  112. package/presets/claude/ios-swift/agents/unit-test-generator.md +1 -1
  113. package/presets/claude/ios-swift/agents/unit-test-planner.md +1 -1
  114. package/presets/claude/ios-swift/agents/xcuitest-test-generator.md +1 -1
  115. package/presets/claude/ios-swift/agents/xcuitest-test-planner.md +2 -2
  116. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +49 -17
  117. package/presets/claude/ios-swift/rules/api-and-data/networking.md +3 -1
  118. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +58 -9
  119. package/presets/claude/ios-swift/rules/architecture/product-specs-authoring.md +1 -0
  120. package/presets/claude/ios-swift/rules/architecture/product-specs.md +1 -0
  121. package/presets/claude/ios-swift/rules/architecture/reference-features.md +44 -7
  122. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +1 -3
  123. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +236 -11
  124. package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +7 -31
  125. package/presets/claude/ios-swift/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  126. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +1 -5
  127. package/presets/claude/ios-swift/rules/tooling-and-review/design-guidance.md +1 -2
  128. package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +1 -2
  129. package/presets/claude/ios-swift/rules/tooling-and-review/mcp-usage.md +1 -2
  130. package/presets/claude/ios-swift/rules/tooling-and-review/mockup-review.md +35 -32
  131. package/presets/claude/ios-swift/rules/tooling-and-review/post-change-build.md +2 -6
  132. package/presets/claude/ios-swift/rules/tooling-and-review/preset-goals.md +2 -3
  133. package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +2 -3
  134. package/presets/claude/ios-swift/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  135. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  136. package/presets/claude/ios-swift/rules/tooling-and-review/preset-token-budget.md +4 -6
  137. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +7 -8
  138. package/presets/claude/ios-swift/rules/tooling-and-review/preset-writing-style.md +2 -3
  139. package/presets/claude/ios-swift/rules/tooling-and-review/security-ios.md +0 -2
  140. package/presets/claude/ios-swift/rules/tooling-and-review/technical-retro.md +1 -3
  141. package/presets/claude/ios-swift/rules/tooling-and-review/ux-design.md +1 -3
  142. package/presets/claude/ios-swift/rules/tooling-and-review/xcode-tooling.md +1 -5
  143. package/presets/claude/ios-swift/rules/ui-and-accessibility/swiftui.md +2 -1
  144. package/presets/claude/ios-swift/rules/ui-and-accessibility/viewmodels.md +2 -1
  145. package/presets/claude/ios-swift/skills/technical-retro/SKILL.md +13 -2
  146. package/presets/claude/ios-swift/skills/unit-testing/SKILL.md +1 -1
  147. package/presets/claude/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  148. package/presets/claude/ios-swift/team/README.md +2 -2
  149. package/presets/claude/java/REPO_AGENTS.md +10 -6
  150. package/presets/claude/java/agents/build-verifier.md +3 -39
  151. package/presets/claude/java/agents/ci-investigator.md +2 -2
  152. package/presets/claude/java/agents/code-reviewer.md +1 -1
  153. package/presets/claude/java/agents/debugger.md +1 -1
  154. package/presets/claude/java/agents/feature-developer.md +1 -3
  155. package/presets/claude/java/agents/openspec-author.md +1 -1
  156. package/presets/claude/java/agents/task-analyst.md +1 -1
  157. package/presets/claude/java/agents/tech-writer.md +1 -1
  158. package/presets/claude/java/hooks/chain-team-phases.sh +51 -19
  159. package/presets/claude/java/rules/api-and-data/adapters-driven.md +2 -1
  160. package/presets/claude/java/rules/api-and-data/adapters-driving.md +3 -2
  161. package/presets/claude/java/rules/api-and-data/api-grpc.md +1 -0
  162. package/presets/claude/java/rules/api-and-data/api-http.md +1 -0
  163. package/presets/claude/java/rules/api-and-data/messaging-adapters.md +1 -1
  164. package/presets/claude/java/rules/api-and-data/persistence-adapters.md +1 -0
  165. package/presets/claude/java/rules/architecture/application-usecases.md +2 -1
  166. package/presets/claude/java/rules/architecture/boundaries.md +1 -0
  167. package/presets/claude/java/rules/architecture/composition-root.md +1 -0
  168. package/presets/claude/java/rules/architecture/domain-layer.md +2 -1
  169. package/presets/claude/java/rules/architecture/feature-delivery.md +46 -43
  170. package/presets/claude/java/rules/architecture/module-public-api.md +1 -0
  171. package/presets/claude/java/rules/architecture/ports-interfaces.md +2 -1
  172. package/presets/claude/java/rules/architecture/product-specs-authoring.md +1 -0
  173. package/presets/claude/java/rules/architecture/product-specs.md +1 -0
  174. package/presets/claude/java/rules/architecture/reference-features.md +38 -22
  175. package/presets/claude/java/rules/stack/java-conventions.md +1 -0
  176. package/presets/claude/java/rules/testing/e2e.md +1 -0
  177. package/presets/claude/java/rules/testing/integration.md +1 -0
  178. package/presets/claude/java/rules/testing/unit.md +1 -0
  179. package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +1 -7
  180. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +76 -51
  181. package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +7 -31
  182. package/presets/claude/java/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  183. package/presets/claude/java/rules/tooling-and-review/code-quality.md +1 -1
  184. package/presets/claude/java/rules/tooling-and-review/code-review.md +1 -7
  185. package/presets/claude/java/rules/tooling-and-review/design-guidance.md +1 -2
  186. package/presets/claude/java/rules/tooling-and-review/java-tooling.md +0 -3
  187. package/presets/claude/java/rules/tooling-and-review/language-policy.md +1 -2
  188. package/presets/claude/java/rules/tooling-and-review/mcp-usage.md +1 -2
  189. package/presets/claude/java/rules/tooling-and-review/post-change-test.md +0 -3
  190. package/presets/claude/java/rules/tooling-and-review/preset-goals.md +2 -3
  191. package/presets/claude/java/rules/tooling-and-review/preset-layering.md +2 -3
  192. package/presets/claude/java/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  193. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  194. package/presets/claude/java/rules/tooling-and-review/preset-token-budget.md +4 -6
  195. package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +7 -8
  196. package/presets/claude/java/rules/tooling-and-review/preset-writing-style.md +2 -3
  197. package/presets/claude/java/rules/tooling-and-review/security-java.md +1 -0
  198. package/presets/claude/java/rules/tooling-and-review/technical-retro.md +1 -7
  199. package/presets/claude/java/skills/ci-investigation/SKILL.md +2 -2
  200. package/presets/claude/java/skills/technical-retro/SKILL.md +13 -2
  201. package/presets/claude/java/team/README.md +2 -2
  202. package/presets/claude/mcp-ts/REPO_AGENTS.md +10 -6
  203. package/presets/claude/mcp-ts/agents/README.md +1 -1
  204. package/presets/claude/mcp-ts/agents/build-verifier.md +3 -32
  205. package/presets/claude/mcp-ts/agents/feature-developer.md +1 -1
  206. package/presets/claude/mcp-ts/agents/task-analyst.md +1 -1
  207. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +50 -18
  208. package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +45 -36
  209. package/presets/claude/mcp-ts/rules/architecture/product-specs-authoring.md +1 -0
  210. package/presets/claude/mcp-ts/rules/architecture/product-specs.md +1 -0
  211. package/presets/claude/mcp-ts/rules/architecture/reference-features.md +36 -19
  212. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +1 -3
  213. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +78 -49
  214. package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +7 -31
  215. package/presets/claude/mcp-ts/rules/tooling-and-review/anti-sycophancy-discipline.md +2 -4
  216. package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +1 -2
  217. package/presets/claude/mcp-ts/rules/tooling-and-review/design-guidance.md +1 -2
  218. package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +1 -2
  219. package/presets/claude/mcp-ts/rules/tooling-and-review/mcp-usage.md +1 -2
  220. package/presets/claude/mcp-ts/rules/tooling-and-review/post-change-test.md +1 -5
  221. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-goals.md +2 -3
  222. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +2 -3
  223. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  224. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  225. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-token-budget.md +4 -6
  226. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +7 -8
  227. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-writing-style.md +2 -3
  228. package/presets/claude/mcp-ts/rules/tooling-and-review/technical-retro.md +1 -3
  229. package/presets/claude/mcp-ts/team/README.md +2 -2
  230. package/presets/claude/next/REPO_AGENTS.md +11 -7
  231. package/presets/claude/next/agents/build-verifier.md +2 -42
  232. package/presets/claude/next/agents/code-reviewer.md +9 -38
  233. package/presets/claude/next/agents/debugger.md +1 -1
  234. package/presets/claude/next/agents/feature-developer.md +14 -15
  235. package/presets/claude/next/agents/mockup-reviewer.md +14 -13
  236. package/presets/claude/next/agents/openspec-author.md +1 -1
  237. package/presets/claude/next/agents/task-analyst.md +1 -1
  238. package/presets/claude/next/agents/tech-writer.md +1 -1
  239. package/presets/claude/next/agents/unit-test-generator.md +1 -1
  240. package/presets/claude/next/agents/unit-test-planner.md +1 -1
  241. package/presets/claude/next/commands/task.md +5 -3
  242. package/presets/claude/next/hooks/chain-team-phases.sh +49 -17
  243. package/presets/claude/next/rules/anti-hallucination/react-next-anti-hallucination.md +5 -3
  244. package/presets/claude/next/rules/api-and-data/api-services.md +1 -1
  245. package/presets/claude/next/rules/api-and-data/http-client.md +10 -9
  246. package/presets/claude/next/rules/api-and-data/store-rtk.md +2 -2
  247. package/presets/claude/next/rules/architecture/architecture-boundaries-ui.md +1 -0
  248. package/presets/claude/next/rules/architecture/architecture-boundaries.md +17 -24
  249. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +89 -42
  250. package/presets/claude/next/rules/architecture/layer-barrel-exports.md +10 -9
  251. package/presets/claude/next/rules/architecture/product-specs-authoring.md +1 -0
  252. package/presets/claude/next/rules/architecture/product-specs.md +2 -1
  253. package/presets/claude/next/rules/architecture/public-imports.md +4 -3
  254. package/presets/claude/next/rules/architecture/reference-features.md +47 -7
  255. package/presets/claude/next/rules/stack/arrow-functions.md +3 -2
  256. package/presets/claude/next/rules/stack/navigation-router-ui.md +2 -1
  257. package/presets/claude/next/rules/stack/navigation-router.md +13 -14
  258. package/presets/claude/next/rules/stack/next-app-core.md +4 -4
  259. package/presets/claude/next/rules/stack/next-app-router.md +8 -7
  260. package/presets/claude/next/rules/stack/next-static-export.md +5 -4
  261. package/presets/claude/next/rules/stack/no-type-assertion.md +13 -13
  262. package/presets/claude/next/rules/stack/types-jsdoc.md +15 -17
  263. package/presets/claude/next/rules/testing/playwright-agents.md +3 -4
  264. package/presets/claude/next/rules/testing/tests-e2e-structure.md +6 -5
  265. package/presets/claude/next/rules/testing/tests-unit.md +3 -2
  266. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +2 -3
  267. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +291 -55
  268. package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +5 -43
  269. package/presets/claude/next/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  270. package/presets/claude/next/rules/tooling-and-review/code-quality.md +2 -2
  271. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +5 -21
  272. package/presets/claude/next/rules/tooling-and-review/design-guidance.md +1 -2
  273. package/presets/claude/next/rules/tooling-and-review/language-policy.md +1 -2
  274. package/presets/claude/next/rules/tooling-and-review/mcp-usage.md +1 -2
  275. package/presets/claude/next/rules/tooling-and-review/mockup-review.md +45 -48
  276. package/presets/claude/next/rules/tooling-and-review/package-manager.md +4 -0
  277. package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +9 -13
  278. package/presets/claude/next/rules/tooling-and-review/preset-goals.md +2 -3
  279. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +2 -3
  280. package/presets/claude/next/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  281. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  282. package/presets/claude/next/rules/tooling-and-review/preset-token-budget.md +4 -6
  283. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +7 -8
  284. package/presets/claude/next/rules/tooling-and-review/preset-writing-style.md +2 -3
  285. package/presets/claude/next/rules/tooling-and-review/security-next.md +1 -3
  286. package/presets/claude/next/rules/tooling-and-review/technical-retro.md +2 -4
  287. package/presets/claude/next/rules/tooling-and-review/ux-design.md +1 -3
  288. package/presets/claude/next/rules/ui-and-accessibility/component-catalog-gate.md +4 -3
  289. package/presets/claude/next/rules/ui-and-accessibility/css-property-order.md +3 -2
  290. package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +13 -21
  291. package/presets/claude/next/rules/ui-and-accessibility/forms-validation.md +1 -1
  292. package/presets/claude/next/rules/ui-and-accessibility/no-props-spread.md +11 -31
  293. package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +5 -4
  294. package/presets/claude/next/rules/ui-and-accessibility/react-ui.md +9 -14
  295. package/presets/claude/next/skills/code-review/SKILL.md +1 -1
  296. package/presets/claude/next/skills/figma-fidelity/SKILL.md +76 -49
  297. package/presets/claude/next/skills/mockup-review/SKILL.md +4 -2
  298. package/presets/claude/next/skills/react-performance/SKILL.md +1 -1
  299. package/presets/claude/next/skills/technical-retro/SKILL.md +13 -2
  300. package/presets/claude/next/skills/unit-testing/SKILL.md +1 -1
  301. package/presets/claude/next/team/README.md +2 -2
  302. package/presets/claude/nuxt/REPO_AGENTS.md +10 -6
  303. package/presets/claude/nuxt/agents/build-verifier.md +1 -39
  304. package/presets/claude/nuxt/agents/code-reviewer.md +1 -1
  305. package/presets/claude/nuxt/agents/debugger.md +1 -1
  306. package/presets/claude/nuxt/agents/feature-developer.md +1 -1
  307. package/presets/claude/nuxt/agents/openspec-author.md +1 -1
  308. package/presets/claude/nuxt/agents/task-analyst.md +1 -1
  309. package/presets/claude/nuxt/agents/tech-writer.md +1 -1
  310. package/presets/claude/nuxt/agents/unit-test-generator.md +1 -1
  311. package/presets/claude/nuxt/agents/unit-test-planner.md +1 -1
  312. package/presets/claude/nuxt/hooks/chain-team-phases.sh +49 -17
  313. package/presets/claude/nuxt/rules/anti-hallucination/vue-nuxt-anti-hallucination.md +4 -1
  314. package/presets/claude/nuxt/rules/api-and-data/api-services.md +9 -7
  315. package/presets/claude/nuxt/rules/api-and-data/http-client.md +1 -0
  316. package/presets/claude/nuxt/rules/api-and-data/store-pinia.md +1 -0
  317. package/presets/claude/nuxt/rules/architecture/architecture-boundaries.md +9 -8
  318. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +72 -22
  319. package/presets/claude/nuxt/rules/architecture/layer-barrel-exports.md +9 -7
  320. package/presets/claude/nuxt/rules/architecture/product-specs-authoring.md +1 -0
  321. package/presets/claude/nuxt/rules/architecture/product-specs.md +1 -0
  322. package/presets/claude/nuxt/rules/architecture/public-imports.md +7 -7
  323. package/presets/claude/nuxt/rules/architecture/reference-features.md +46 -10
  324. package/presets/claude/nuxt/rules/stack/navigation-router-ui.md +8 -3
  325. package/presets/claude/nuxt/rules/stack/navigation-router.md +7 -2
  326. package/presets/claude/nuxt/rules/stack/no-type-assertion.md +2 -5
  327. package/presets/claude/nuxt/rules/stack/nuxt-pages-routing.md +7 -3
  328. package/presets/claude/nuxt/rules/stack/script-setup-conventions.md +3 -1
  329. package/presets/claude/nuxt/rules/stack/types-jsdoc.md +21 -16
  330. package/presets/claude/nuxt/rules/testing/playwright-agents.md +3 -1
  331. package/presets/claude/nuxt/rules/testing/tests-e2e-structure.md +5 -4
  332. package/presets/claude/nuxt/rules/testing/tests-unit.md +3 -1
  333. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +1 -1
  334. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +237 -9
  335. package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +7 -31
  336. package/presets/claude/nuxt/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -7
  337. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +7 -13
  338. package/presets/claude/nuxt/rules/tooling-and-review/design-guidance.md +1 -7
  339. package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +1 -2
  340. package/presets/claude/nuxt/rules/tooling-and-review/mcp-usage.md +1 -7
  341. package/presets/claude/nuxt/rules/tooling-and-review/mockup-review.md +35 -32
  342. package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +1 -3
  343. package/presets/claude/nuxt/rules/tooling-and-review/preset-goals.md +2 -3
  344. package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +4 -1
  345. package/presets/claude/nuxt/rules/tooling-and-review/preset-no-cross-stack-leakage.md +4 -2
  346. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +10 -3
  347. package/presets/claude/nuxt/rules/tooling-and-review/preset-token-budget.md +4 -3
  348. package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +9 -6
  349. package/presets/claude/nuxt/rules/tooling-and-review/preset-writing-style.md +2 -3
  350. package/presets/claude/nuxt/rules/tooling-and-review/security-nuxt.md +1 -0
  351. package/presets/claude/nuxt/rules/tooling-and-review/technical-retro.md +1 -1
  352. package/presets/claude/nuxt/rules/tooling-and-review/ux-design.md +1 -3
  353. package/presets/claude/nuxt/rules/ui-and-accessibility/css-property-order.md +4 -1
  354. package/presets/claude/nuxt/rules/ui-and-accessibility/no-v-bind-spread.md +4 -1
  355. package/presets/claude/nuxt/rules/ui-and-accessibility/vue-a11y-coding.md +7 -3
  356. package/presets/claude/nuxt/rules/ui-and-accessibility/vue-ui.md +6 -3
  357. package/presets/claude/nuxt/skills/technical-retro/SKILL.md +13 -2
  358. package/presets/claude/nuxt/skills/unit-testing/SKILL.md +1 -1
  359. package/presets/claude/nuxt/team/README.md +2 -2
  360. package/presets/claude/php-hexagonal/REPO_AGENTS.md +10 -6
  361. package/presets/claude/php-hexagonal/agents/build-verifier.md +3 -39
  362. package/presets/claude/php-hexagonal/agents/ci-investigator.md +2 -2
  363. package/presets/claude/php-hexagonal/agents/code-reviewer.md +1 -1
  364. package/presets/claude/php-hexagonal/agents/debugger.md +1 -1
  365. package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -3
  366. package/presets/claude/php-hexagonal/agents/openspec-author.md +1 -1
  367. package/presets/claude/php-hexagonal/agents/task-analyst.md +1 -1
  368. package/presets/claude/php-hexagonal/agents/tech-writer.md +1 -1
  369. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  370. package/presets/claude/php-hexagonal/rules/api-and-data/adapters-driven.md +3 -1
  371. package/presets/claude/php-hexagonal/rules/api-and-data/adapters-driving.md +5 -2
  372. package/presets/claude/php-hexagonal/rules/api-and-data/api-grpc.md +3 -2
  373. package/presets/claude/php-hexagonal/rules/api-and-data/api-http.md +4 -1
  374. package/presets/claude/php-hexagonal/rules/api-and-data/persistence-adapters.md +2 -1
  375. package/presets/claude/php-hexagonal/rules/architecture/application-usecases.md +2 -1
  376. package/presets/claude/php-hexagonal/rules/architecture/composition-root.md +5 -2
  377. package/presets/claude/php-hexagonal/rules/architecture/domain-layer.md +2 -1
  378. package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +45 -43
  379. package/presets/claude/php-hexagonal/rules/architecture/ports-interfaces.md +4 -2
  380. package/presets/claude/php-hexagonal/rules/architecture/product-specs-authoring.md +1 -0
  381. package/presets/claude/php-hexagonal/rules/architecture/product-specs.md +1 -0
  382. package/presets/claude/php-hexagonal/rules/architecture/reference-features.md +36 -25
  383. package/presets/claude/php-hexagonal/rules/stack/php-app-core.md +1 -1
  384. package/presets/claude/php-hexagonal/rules/stack/php-conventions.md +1 -0
  385. package/presets/claude/php-hexagonal/rules/testing/integration.md +4 -3
  386. package/presets/claude/php-hexagonal/rules/testing/unit.md +3 -1
  387. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +1 -7
  388. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +76 -51
  389. package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +7 -31
  390. package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  391. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +1 -1
  392. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +1 -7
  393. package/presets/claude/php-hexagonal/rules/tooling-and-review/design-guidance.md +1 -2
  394. package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +1 -2
  395. package/presets/claude/php-hexagonal/rules/tooling-and-review/mcp-usage.md +1 -2
  396. package/presets/claude/php-hexagonal/rules/tooling-and-review/php-tooling.md +1 -3
  397. package/presets/claude/php-hexagonal/rules/tooling-and-review/post-change-test.md +4 -6
  398. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-goals.md +2 -3
  399. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +2 -3
  400. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  401. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  402. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-token-budget.md +4 -6
  403. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +7 -8
  404. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-writing-style.md +2 -3
  405. package/presets/claude/php-hexagonal/rules/tooling-and-review/security-php.md +4 -1
  406. package/presets/claude/php-hexagonal/rules/tooling-and-review/technical-retro.md +1 -7
  407. package/presets/claude/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  408. package/presets/claude/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  409. package/presets/claude/php-hexagonal/team/README.md +2 -2
  410. package/presets/claude/php-laravel/REPO_AGENTS.md +10 -6
  411. package/presets/claude/php-laravel/agents/build-verifier.md +3 -39
  412. package/presets/claude/php-laravel/agents/ci-investigator.md +2 -2
  413. package/presets/claude/php-laravel/agents/code-reviewer.md +1 -1
  414. package/presets/claude/php-laravel/agents/debugger.md +1 -1
  415. package/presets/claude/php-laravel/agents/feature-developer.md +1 -3
  416. package/presets/claude/php-laravel/agents/openspec-author.md +1 -1
  417. package/presets/claude/php-laravel/agents/task-analyst.md +1 -1
  418. package/presets/claude/php-laravel/agents/tech-writer.md +1 -1
  419. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +51 -19
  420. package/presets/claude/php-laravel/rules/api-and-data/eloquent-persistence.md +2 -0
  421. package/presets/claude/php-laravel/rules/api-and-data/events-listeners.md +2 -0
  422. package/presets/claude/php-laravel/rules/api-and-data/form-requests.md +2 -0
  423. package/presets/claude/php-laravel/rules/api-and-data/http-layer.md +2 -0
  424. package/presets/claude/php-laravel/rules/api-and-data/jobs-queues.md +2 -0
  425. package/presets/claude/php-laravel/rules/api-and-data/policies-authorization.md +2 -0
  426. package/presets/claude/php-laravel/rules/api-and-data/routes-api.md +2 -0
  427. package/presets/claude/php-laravel/rules/architecture/actions-services.md +2 -0
  428. package/presets/claude/php-laravel/rules/architecture/boundaries.md +2 -0
  429. package/presets/claude/php-laravel/rules/architecture/domain-layer.md +2 -0
  430. package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +46 -43
  431. package/presets/claude/php-laravel/rules/architecture/module-public-api.md +1 -0
  432. package/presets/claude/php-laravel/rules/architecture/product-specs-authoring.md +1 -0
  433. package/presets/claude/php-laravel/rules/architecture/product-specs.md +1 -0
  434. package/presets/claude/php-laravel/rules/architecture/reference-features.md +37 -27
  435. package/presets/claude/php-laravel/rules/architecture/service-providers.md +2 -0
  436. package/presets/claude/php-laravel/rules/stack/laravel-app-core.md +3 -1
  437. package/presets/claude/php-laravel/rules/stack/laravel-conventions.md +2 -0
  438. package/presets/claude/php-laravel/rules/testing/e2e.md +1 -0
  439. package/presets/claude/php-laravel/rules/testing/integration.md +2 -0
  440. package/presets/claude/php-laravel/rules/testing/unit.md +2 -0
  441. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +1 -3
  442. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +76 -47
  443. package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +7 -31
  444. package/presets/claude/php-laravel/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  445. package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +1 -1
  446. package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +1 -3
  447. package/presets/claude/php-laravel/rules/tooling-and-review/design-guidance.md +1 -2
  448. package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +1 -2
  449. package/presets/claude/php-laravel/rules/tooling-and-review/mcp-usage.md +1 -2
  450. package/presets/claude/php-laravel/rules/tooling-and-review/php-tooling.md +2 -1
  451. package/presets/claude/php-laravel/rules/tooling-and-review/post-change-test.md +5 -4
  452. package/presets/claude/php-laravel/rules/tooling-and-review/preset-goals.md +2 -3
  453. package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +3 -2
  454. package/presets/claude/php-laravel/rules/tooling-and-review/preset-no-cross-stack-leakage.md +3 -3
  455. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +9 -4
  456. package/presets/claude/php-laravel/rules/tooling-and-review/preset-token-budget.md +5 -5
  457. package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +8 -7
  458. package/presets/claude/php-laravel/rules/tooling-and-review/preset-writing-style.md +2 -3
  459. package/presets/claude/php-laravel/rules/tooling-and-review/security-php.md +2 -0
  460. package/presets/claude/php-laravel/rules/tooling-and-review/technical-retro.md +1 -3
  461. package/presets/claude/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  462. package/presets/claude/php-laravel/skills/technical-retro/SKILL.md +13 -2
  463. package/presets/claude/php-laravel/team/README.md +2 -2
  464. package/presets/claude/svelte/REPO_AGENTS.md +10 -6
  465. package/presets/claude/svelte/agents/build-verifier.md +1 -39
  466. package/presets/claude/svelte/agents/code-reviewer.md +1 -1
  467. package/presets/claude/svelte/agents/debugger.md +1 -1
  468. package/presets/claude/svelte/agents/feature-developer.md +1 -1
  469. package/presets/claude/svelte/agents/openspec-author.md +1 -1
  470. package/presets/claude/svelte/agents/task-analyst.md +1 -1
  471. package/presets/claude/svelte/agents/tech-writer.md +1 -1
  472. package/presets/claude/svelte/agents/unit-test-generator.md +1 -1
  473. package/presets/claude/svelte/agents/unit-test-planner.md +1 -1
  474. package/presets/claude/svelte/hooks/chain-team-phases.sh +49 -17
  475. package/presets/claude/svelte/rules/anti-hallucination/svelte-sveltekit-anti-hallucination.md +3 -1
  476. package/presets/claude/svelte/rules/api-and-data/api-services.md +1 -0
  477. package/presets/claude/svelte/rules/api-and-data/store-svelte.md +1 -0
  478. package/presets/claude/svelte/rules/architecture/architecture-boundaries.md +1 -0
  479. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +58 -8
  480. package/presets/claude/svelte/rules/architecture/layer-barrel-exports.md +7 -6
  481. package/presets/claude/svelte/rules/architecture/product-specs-authoring.md +1 -0
  482. package/presets/claude/svelte/rules/architecture/product-specs.md +1 -0
  483. package/presets/claude/svelte/rules/architecture/public-imports.md +1 -0
  484. package/presets/claude/svelte/rules/architecture/reference-features.md +46 -9
  485. package/presets/claude/svelte/rules/stack/no-type-assertion.md +1 -1
  486. package/presets/claude/svelte/rules/stack/svelte-script-conventions.md +2 -1
  487. package/presets/claude/svelte/rules/stack/types-jsdoc.md +19 -15
  488. package/presets/claude/svelte/rules/testing/tests-e2e-structure.md +5 -4
  489. package/presets/claude/svelte/rules/testing/tests-unit.md +3 -1
  490. package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +1 -2
  491. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +238 -11
  492. package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +7 -31
  493. package/presets/claude/svelte/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  494. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +7 -13
  495. package/presets/claude/svelte/rules/tooling-and-review/design-guidance.md +1 -2
  496. package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +1 -2
  497. package/presets/claude/svelte/rules/tooling-and-review/mcp-usage.md +1 -2
  498. package/presets/claude/svelte/rules/tooling-and-review/mockup-review.md +35 -32
  499. package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +2 -4
  500. package/presets/claude/svelte/rules/tooling-and-review/preset-goals.md +2 -3
  501. package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +2 -2
  502. package/presets/claude/svelte/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -3
  503. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +8 -4
  504. package/presets/claude/svelte/rules/tooling-and-review/preset-token-budget.md +4 -5
  505. package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +7 -7
  506. package/presets/claude/svelte/rules/tooling-and-review/preset-writing-style.md +2 -3
  507. package/presets/claude/svelte/rules/tooling-and-review/technical-retro.md +1 -2
  508. package/presets/claude/svelte/rules/tooling-and-review/ux-design.md +1 -3
  509. package/presets/claude/svelte/rules/ui-and-accessibility/css-property-order.md +3 -1
  510. package/presets/claude/svelte/skills/technical-retro/SKILL.md +13 -2
  511. package/presets/claude/svelte/skills/unit-testing/SKILL.md +1 -1
  512. package/presets/claude/svelte/team/README.md +2 -2
  513. package/presets/cursor/android-kotlin/REPO_AGENTS.md +10 -6
  514. package/presets/cursor/android-kotlin/agents/build-verifier.md +3 -37
  515. package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -1
  516. package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
  517. package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
  518. package/presets/cursor/android-kotlin/agents/openspec-author.md +1 -1
  519. package/presets/cursor/android-kotlin/agents/task-analyst.md +1 -1
  520. package/presets/cursor/android-kotlin/agents/tech-writer.md +1 -1
  521. package/presets/cursor/android-kotlin/agents/unit-test-generator.md +1 -1
  522. package/presets/cursor/android-kotlin/agents/unit-test-planner.md +1 -1
  523. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +49 -17
  524. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +2 -2
  525. package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +7 -30
  526. package/presets/cursor/android-kotlin/rules/anti-sycophancy-discipline.mdc +0 -2
  527. package/presets/cursor/android-kotlin/rules/design-guidance.mdc +0 -2
  528. package/presets/cursor/android-kotlin/rules/language-policy.mdc +1 -1
  529. package/presets/cursor/android-kotlin/rules/mockup-review.mdc +34 -29
  530. package/presets/cursor/android-kotlin/rules/preset-goals.mdc +2 -2
  531. package/presets/cursor/android-kotlin/rules/preset-layering.mdc +2 -2
  532. package/presets/cursor/android-kotlin/rules/preset-no-cross-stack-leakage.mdc +2 -3
  533. package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +8 -4
  534. package/presets/cursor/android-kotlin/rules/preset-token-budget.mdc +4 -5
  535. package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +7 -7
  536. package/presets/cursor/android-kotlin/rules/preset-writing-style.mdc +2 -2
  537. package/presets/cursor/android-kotlin/rules/reference-features.mdc +0 -2
  538. package/presets/cursor/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  539. package/presets/cursor/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  540. package/presets/cursor/android-kotlin/team/README.md +1 -1
  541. package/presets/cursor/go/REPO_AGENTS.md +10 -6
  542. package/presets/cursor/go/agents/build-verifier.md +3 -29
  543. package/presets/cursor/go/agents/ci-investigator.md +2 -2
  544. package/presets/cursor/go/agents/code-reviewer.md +1 -1
  545. package/presets/cursor/go/agents/debugger.md +1 -1
  546. package/presets/cursor/go/agents/feature-developer.md +1 -3
  547. package/presets/cursor/go/agents/openspec-author.md +1 -1
  548. package/presets/cursor/go/agents/task-analyst.md +1 -1
  549. package/presets/cursor/go/agents/tech-writer.md +1 -1
  550. package/presets/cursor/go/hooks/chain-team-phases.sh +51 -19
  551. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +1 -1
  552. package/presets/cursor/go/rules/ai-local-overlay.mdc +7 -30
  553. package/presets/cursor/go/rules/anti-sycophancy-discipline.mdc +0 -2
  554. package/presets/cursor/go/rules/design-guidance.mdc +0 -2
  555. package/presets/cursor/go/rules/language-policy.mdc +1 -1
  556. package/presets/cursor/go/rules/preset-goals.mdc +2 -2
  557. package/presets/cursor/go/rules/preset-layering.mdc +2 -2
  558. package/presets/cursor/go/rules/preset-no-cross-stack-leakage.mdc +2 -3
  559. package/presets/cursor/go/rules/preset-pr-checklist.mdc +8 -4
  560. package/presets/cursor/go/rules/preset-token-budget.mdc +4 -5
  561. package/presets/cursor/go/rules/preset-twin-sync.mdc +7 -7
  562. package/presets/cursor/go/rules/preset-writing-style.mdc +2 -2
  563. package/presets/cursor/go/rules/reference-features.mdc +0 -3
  564. package/presets/cursor/go/skills/ci-investigation/SKILL.md +2 -2
  565. package/presets/cursor/go/skills/technical-retro/SKILL.md +13 -2
  566. package/presets/cursor/go/team/README.md +1 -1
  567. package/presets/cursor/ios-swift/REPO_AGENTS.md +10 -6
  568. package/presets/cursor/ios-swift/agents/build-verifier.md +3 -39
  569. package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -1
  570. package/presets/cursor/ios-swift/agents/debugger.md +1 -1
  571. package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
  572. package/presets/cursor/ios-swift/agents/openspec-author.md +1 -1
  573. package/presets/cursor/ios-swift/agents/task-analyst.md +1 -1
  574. package/presets/cursor/ios-swift/agents/tech-writer.md +1 -1
  575. package/presets/cursor/ios-swift/agents/unit-test-generator.md +1 -1
  576. package/presets/cursor/ios-swift/agents/unit-test-planner.md +1 -1
  577. package/presets/cursor/ios-swift/agents/xcuitest-test-generator.md +1 -1
  578. package/presets/cursor/ios-swift/agents/xcuitest-test-planner.md +2 -2
  579. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +49 -17
  580. package/presets/cursor/ios-swift/rules/README.md +1 -1
  581. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +2 -2
  582. package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +7 -30
  583. package/presets/cursor/ios-swift/rules/anti-sycophancy-discipline.mdc +0 -2
  584. package/presets/cursor/ios-swift/rules/design-guidance.mdc +0 -2
  585. package/presets/cursor/ios-swift/rules/language-policy.mdc +1 -1
  586. package/presets/cursor/ios-swift/rules/mockup-review.mdc +34 -29
  587. package/presets/cursor/ios-swift/rules/networking-services.mdc +4 -1
  588. package/presets/cursor/ios-swift/rules/preset-goals.mdc +2 -2
  589. package/presets/cursor/ios-swift/rules/preset-layering.mdc +2 -2
  590. package/presets/cursor/ios-swift/rules/preset-no-cross-stack-leakage.mdc +2 -3
  591. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +8 -4
  592. package/presets/cursor/ios-swift/rules/preset-token-budget.mdc +4 -5
  593. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +7 -7
  594. package/presets/cursor/ios-swift/rules/preset-writing-style.mdc +2 -2
  595. package/presets/cursor/ios-swift/rules/reference-features.mdc +0 -6
  596. package/presets/cursor/ios-swift/rules/state-and-viewmodels.mdc +3 -1
  597. package/presets/cursor/ios-swift/rules/swiftui-ui.mdc +3 -1
  598. package/presets/cursor/ios-swift/skills/technical-retro/SKILL.md +13 -2
  599. package/presets/cursor/ios-swift/skills/unit-testing/SKILL.md +1 -1
  600. package/presets/cursor/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  601. package/presets/cursor/ios-swift/team/README.md +1 -1
  602. package/presets/cursor/java/REPO_AGENTS.md +10 -6
  603. package/presets/cursor/java/agents/build-verifier.md +3 -39
  604. package/presets/cursor/java/agents/ci-investigator.md +2 -2
  605. package/presets/cursor/java/agents/code-reviewer.md +1 -1
  606. package/presets/cursor/java/agents/debugger.md +1 -1
  607. package/presets/cursor/java/agents/feature-developer.md +1 -3
  608. package/presets/cursor/java/agents/openspec-author.md +1 -1
  609. package/presets/cursor/java/agents/task-analyst.md +1 -1
  610. package/presets/cursor/java/agents/tech-writer.md +1 -1
  611. package/presets/cursor/java/hooks/chain-team-phases.sh +51 -19
  612. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +1 -1
  613. package/presets/cursor/java/rules/ai-local-overlay.mdc +7 -30
  614. package/presets/cursor/java/rules/anti-sycophancy-discipline.mdc +0 -2
  615. package/presets/cursor/java/rules/design-guidance.mdc +0 -2
  616. package/presets/cursor/java/rules/language-policy.mdc +1 -1
  617. package/presets/cursor/java/rules/preset-goals.mdc +2 -2
  618. package/presets/cursor/java/rules/preset-layering.mdc +2 -2
  619. package/presets/cursor/java/rules/preset-no-cross-stack-leakage.mdc +2 -3
  620. package/presets/cursor/java/rules/preset-pr-checklist.mdc +8 -4
  621. package/presets/cursor/java/rules/preset-token-budget.mdc +4 -5
  622. package/presets/cursor/java/rules/preset-twin-sync.mdc +7 -7
  623. package/presets/cursor/java/rules/preset-writing-style.mdc +2 -2
  624. package/presets/cursor/java/rules/reference-features.mdc +0 -4
  625. package/presets/cursor/java/skills/ci-investigation/SKILL.md +2 -2
  626. package/presets/cursor/java/skills/technical-retro/SKILL.md +13 -2
  627. package/presets/cursor/java/team/README.md +1 -1
  628. package/presets/cursor/mcp-ts/REPO_AGENTS.md +10 -6
  629. package/presets/cursor/mcp-ts/agents/README.md +1 -1
  630. package/presets/cursor/mcp-ts/agents/build-verifier.md +3 -32
  631. package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
  632. package/presets/cursor/mcp-ts/agents/task-analyst.md +1 -1
  633. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +50 -18
  634. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +1 -1
  635. package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +7 -30
  636. package/presets/cursor/mcp-ts/rules/anti-sycophancy-discipline.mdc +0 -3
  637. package/presets/cursor/mcp-ts/rules/language-policy.mdc +1 -1
  638. package/presets/cursor/mcp-ts/rules/preset-goals.mdc +2 -2
  639. package/presets/cursor/mcp-ts/rules/preset-layering.mdc +2 -2
  640. package/presets/cursor/mcp-ts/rules/preset-no-cross-stack-leakage.mdc +2 -3
  641. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +8 -4
  642. package/presets/cursor/mcp-ts/rules/preset-token-budget.mdc +4 -5
  643. package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +7 -7
  644. package/presets/cursor/mcp-ts/rules/preset-writing-style.mdc +2 -2
  645. package/presets/cursor/mcp-ts/rules/reference-features.mdc +0 -2
  646. package/presets/cursor/mcp-ts/team/README.md +1 -1
  647. package/presets/cursor/next/REPO_AGENTS.md +11 -7
  648. package/presets/cursor/next/agents/build-verifier.md +2 -42
  649. package/presets/cursor/next/agents/code-reviewer.md +9 -38
  650. package/presets/cursor/next/agents/debugger.md +1 -1
  651. package/presets/cursor/next/agents/feature-developer.md +14 -25
  652. package/presets/cursor/next/agents/mockup-reviewer.md +14 -13
  653. package/presets/cursor/next/agents/openspec-author.md +1 -1
  654. package/presets/cursor/next/agents/task-analyst.md +1 -1
  655. package/presets/cursor/next/agents/tech-writer.md +1 -1
  656. package/presets/cursor/next/agents/unit-test-generator.md +1 -1
  657. package/presets/cursor/next/agents/unit-test-planner.md +1 -1
  658. package/presets/cursor/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  659. package/presets/cursor/next/ai-local/rules-library/analytics-events.md +1 -1
  660. package/presets/cursor/next/ai-local/rules-library/api-contract-source.md +1 -1
  661. package/presets/cursor/next/ai-local/rules-library/code-style.md +1 -1
  662. package/presets/cursor/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  663. package/presets/cursor/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  664. package/presets/cursor/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  665. package/presets/cursor/next/ai-local/rules-library/no-react-fc.md +1 -1
  666. package/presets/cursor/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  667. package/presets/cursor/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  668. package/presets/cursor/next/ai-local/rules-library/router-pages.md +1 -1
  669. package/presets/cursor/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  670. package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  671. package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  672. package/presets/cursor/next/commands/task.md +5 -3
  673. package/presets/cursor/next/hooks/chain-team-phases.sh +49 -17
  674. package/presets/cursor/next/rules/README.md +4 -5
  675. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +4 -4
  676. package/presets/cursor/next/rules/ai-local-overlay.mdc +5 -42
  677. package/presets/cursor/next/rules/anti-sycophancy-discipline.mdc +0 -2
  678. package/presets/cursor/next/rules/arrow-functions.mdc +1 -1
  679. package/presets/cursor/next/rules/code-review-mr.mdc +3 -16
  680. package/presets/cursor/next/rules/design-guidance.mdc +0 -2
  681. package/presets/cursor/next/rules/design-tokens-binding.mdc +14 -20
  682. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +4 -11
  683. package/presets/cursor/next/rules/language-policy.mdc +1 -1
  684. package/presets/cursor/next/rules/mockup-review.mdc +44 -45
  685. package/presets/cursor/next/rules/navigation-router-stack.mdc +1 -1
  686. package/presets/cursor/next/rules/navigation-router-ui.mdc +1 -1
  687. package/presets/cursor/next/rules/no-props-spread.mdc +1 -26
  688. package/presets/cursor/next/rules/preset-goals.mdc +2 -2
  689. package/presets/cursor/next/rules/preset-layering.mdc +2 -2
  690. package/presets/cursor/next/rules/preset-no-cross-stack-leakage.mdc +2 -3
  691. package/presets/cursor/next/rules/preset-pr-checklist.mdc +8 -4
  692. package/presets/cursor/next/rules/preset-token-budget.mdc +4 -5
  693. package/presets/cursor/next/rules/preset-twin-sync.mdc +7 -7
  694. package/presets/cursor/next/rules/preset-writing-style.mdc +2 -2
  695. package/presets/cursor/next/rules/product-specs.mdc +1 -1
  696. package/presets/cursor/next/rules/public-imports.mdc +2 -2
  697. package/presets/cursor/next/rules/react-next-anti-hallucination.mdc +5 -1
  698. package/presets/cursor/next/rules/react-ui.mdc +1 -7
  699. package/presets/cursor/next/rules/reference-features.mdc +0 -5
  700. package/presets/cursor/next/rules/tests-e2e-structure.mdc +0 -1
  701. package/presets/cursor/next/rules/tests-unit.mdc +0 -1
  702. package/presets/cursor/next/rules/types-jsdoc.mdc +14 -17
  703. package/presets/cursor/next/skills/code-review/SKILL.md +1 -1
  704. package/presets/cursor/next/skills/figma-fidelity/SKILL.md +76 -49
  705. package/presets/cursor/next/skills/mockup-review/SKILL.md +4 -2
  706. package/presets/cursor/next/skills/react-performance/SKILL.md +1 -1
  707. package/presets/cursor/next/skills/technical-retro/SKILL.md +13 -2
  708. package/presets/cursor/next/skills/unit-testing/SKILL.md +1 -1
  709. package/presets/cursor/next/team/README.md +1 -1
  710. package/presets/cursor/nuxt/REPO_AGENTS.md +10 -6
  711. package/presets/cursor/nuxt/agents/build-verifier.md +1 -39
  712. package/presets/cursor/nuxt/agents/code-reviewer.md +1 -1
  713. package/presets/cursor/nuxt/agents/debugger.md +1 -1
  714. package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
  715. package/presets/cursor/nuxt/agents/openspec-author.md +1 -1
  716. package/presets/cursor/nuxt/agents/task-analyst.md +1 -1
  717. package/presets/cursor/nuxt/agents/tech-writer.md +1 -1
  718. package/presets/cursor/nuxt/agents/unit-test-generator.md +1 -1
  719. package/presets/cursor/nuxt/agents/unit-test-planner.md +1 -1
  720. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +49 -17
  721. package/presets/cursor/nuxt/rules/README.md +3 -3
  722. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +2 -2
  723. package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +7 -30
  724. package/presets/cursor/nuxt/rules/anti-sycophancy-discipline.mdc +0 -2
  725. package/presets/cursor/nuxt/rules/css-property-order-stylelint.mdc +4 -1
  726. package/presets/cursor/nuxt/rules/design-guidance.mdc +0 -2
  727. package/presets/cursor/nuxt/rules/language-policy.mdc +1 -1
  728. package/presets/cursor/nuxt/rules/mockup-review.mdc +34 -29
  729. package/presets/cursor/nuxt/rules/no-v-bind-spread.mdc +4 -1
  730. package/presets/cursor/nuxt/rules/nuxt-pages-routing.mdc +8 -1
  731. package/presets/cursor/nuxt/rules/preset-goals.mdc +2 -2
  732. package/presets/cursor/nuxt/rules/preset-layering.mdc +2 -2
  733. package/presets/cursor/nuxt/rules/preset-no-cross-stack-leakage.mdc +2 -3
  734. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +8 -4
  735. package/presets/cursor/nuxt/rules/preset-token-budget.mdc +4 -5
  736. package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +7 -7
  737. package/presets/cursor/nuxt/rules/preset-writing-style.mdc +2 -2
  738. package/presets/cursor/nuxt/rules/public-imports.mdc +2 -2
  739. package/presets/cursor/nuxt/rules/reference-features.mdc +0 -5
  740. package/presets/cursor/nuxt/rules/script-setup-conventions.mdc +3 -1
  741. package/presets/cursor/nuxt/rules/tests-e2e-structure.mdc +0 -1
  742. package/presets/cursor/nuxt/rules/tests-unit.mdc +0 -1
  743. package/presets/cursor/nuxt/rules/types-jsdoc.mdc +18 -14
  744. package/presets/cursor/nuxt/rules/vue-a11y-coding.mdc +7 -1
  745. package/presets/cursor/nuxt/rules/vue-nuxt-anti-hallucination.mdc +9 -1
  746. package/presets/cursor/nuxt/rules/vue-ui.mdc +7 -1
  747. package/presets/cursor/nuxt/skills/technical-retro/SKILL.md +13 -2
  748. package/presets/cursor/nuxt/skills/unit-testing/SKILL.md +1 -1
  749. package/presets/cursor/nuxt/team/README.md +1 -1
  750. package/presets/cursor/php-hexagonal/REPO_AGENTS.md +10 -6
  751. package/presets/cursor/php-hexagonal/agents/build-verifier.md +3 -39
  752. package/presets/cursor/php-hexagonal/agents/ci-investigator.md +2 -2
  753. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -1
  754. package/presets/cursor/php-hexagonal/agents/debugger.md +1 -1
  755. package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -3
  756. package/presets/cursor/php-hexagonal/agents/openspec-author.md +1 -1
  757. package/presets/cursor/php-hexagonal/agents/task-analyst.md +1 -1
  758. package/presets/cursor/php-hexagonal/agents/tech-writer.md +1 -1
  759. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  760. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +1 -1
  761. package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +7 -30
  762. package/presets/cursor/php-hexagonal/rules/anti-sycophancy-discipline.mdc +0 -2
  763. package/presets/cursor/php-hexagonal/rules/design-guidance.mdc +0 -2
  764. package/presets/cursor/php-hexagonal/rules/language-policy.mdc +1 -1
  765. package/presets/cursor/php-hexagonal/rules/preset-goals.mdc +2 -2
  766. package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +2 -2
  767. package/presets/cursor/php-hexagonal/rules/preset-no-cross-stack-leakage.mdc +2 -3
  768. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +8 -4
  769. package/presets/cursor/php-hexagonal/rules/preset-token-budget.mdc +4 -5
  770. package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +7 -7
  771. package/presets/cursor/php-hexagonal/rules/preset-writing-style.mdc +2 -2
  772. package/presets/cursor/php-hexagonal/rules/reference-features.mdc +0 -5
  773. package/presets/cursor/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  774. package/presets/cursor/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  775. package/presets/cursor/php-hexagonal/team/README.md +1 -1
  776. package/presets/cursor/php-laravel/REPO_AGENTS.md +10 -6
  777. package/presets/cursor/php-laravel/agents/build-verifier.md +3 -39
  778. package/presets/cursor/php-laravel/agents/ci-investigator.md +2 -2
  779. package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -1
  780. package/presets/cursor/php-laravel/agents/debugger.md +1 -1
  781. package/presets/cursor/php-laravel/agents/feature-developer.md +1 -3
  782. package/presets/cursor/php-laravel/agents/openspec-author.md +1 -1
  783. package/presets/cursor/php-laravel/agents/task-analyst.md +1 -1
  784. package/presets/cursor/php-laravel/agents/tech-writer.md +1 -1
  785. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +51 -19
  786. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +1 -1
  787. package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +7 -30
  788. package/presets/cursor/php-laravel/rules/anti-sycophancy-discipline.mdc +0 -2
  789. package/presets/cursor/php-laravel/rules/design-guidance.mdc +0 -2
  790. package/presets/cursor/php-laravel/rules/language-policy.mdc +1 -1
  791. package/presets/cursor/php-laravel/rules/preset-goals.mdc +2 -2
  792. package/presets/cursor/php-laravel/rules/preset-layering.mdc +2 -2
  793. package/presets/cursor/php-laravel/rules/preset-no-cross-stack-leakage.mdc +2 -3
  794. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +8 -4
  795. package/presets/cursor/php-laravel/rules/preset-token-budget.mdc +4 -5
  796. package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +7 -7
  797. package/presets/cursor/php-laravel/rules/preset-writing-style.mdc +2 -2
  798. package/presets/cursor/php-laravel/rules/reference-features.mdc +0 -5
  799. package/presets/cursor/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  800. package/presets/cursor/php-laravel/skills/technical-retro/SKILL.md +13 -2
  801. package/presets/cursor/php-laravel/team/README.md +1 -1
  802. package/presets/cursor/svelte/REPO_AGENTS.md +10 -6
  803. package/presets/cursor/svelte/agents/build-verifier.md +1 -39
  804. package/presets/cursor/svelte/agents/code-reviewer.md +1 -1
  805. package/presets/cursor/svelte/agents/debugger.md +1 -1
  806. package/presets/cursor/svelte/agents/feature-developer.md +1 -1
  807. package/presets/cursor/svelte/agents/openspec-author.md +1 -1
  808. package/presets/cursor/svelte/agents/task-analyst.md +1 -1
  809. package/presets/cursor/svelte/agents/tech-writer.md +1 -1
  810. package/presets/cursor/svelte/agents/unit-test-generator.md +1 -1
  811. package/presets/cursor/svelte/agents/unit-test-planner.md +1 -1
  812. package/presets/cursor/svelte/hooks/chain-team-phases.sh +49 -17
  813. package/presets/cursor/svelte/rules/README.md +2 -2
  814. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +2 -2
  815. package/presets/cursor/svelte/rules/ai-local-overlay.mdc +7 -30
  816. package/presets/cursor/svelte/rules/anti-sycophancy-discipline.mdc +0 -2
  817. package/presets/cursor/svelte/rules/css-property-order-stylelint.mdc +4 -1
  818. package/presets/cursor/svelte/rules/design-guidance.mdc +0 -2
  819. package/presets/cursor/svelte/rules/language-policy.mdc +1 -1
  820. package/presets/cursor/svelte/rules/mockup-review.mdc +34 -29
  821. package/presets/cursor/svelte/rules/preset-goals.mdc +2 -2
  822. package/presets/cursor/svelte/rules/preset-layering.mdc +2 -2
  823. package/presets/cursor/svelte/rules/preset-no-cross-stack-leakage.mdc +2 -3
  824. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +8 -4
  825. package/presets/cursor/svelte/rules/preset-token-budget.mdc +4 -5
  826. package/presets/cursor/svelte/rules/preset-twin-sync.mdc +7 -7
  827. package/presets/cursor/svelte/rules/preset-writing-style.mdc +2 -2
  828. package/presets/cursor/svelte/rules/reference-features.mdc +0 -6
  829. package/presets/cursor/svelte/rules/svelte-script-conventions.mdc +3 -1
  830. package/presets/cursor/svelte/rules/svelte-sveltekit-anti-hallucination.mdc +6 -1
  831. package/presets/cursor/svelte/rules/tests-e2e-structure.mdc +0 -1
  832. package/presets/cursor/svelte/rules/tests-unit.mdc +0 -1
  833. package/presets/cursor/svelte/rules/types-jsdoc.mdc +18 -14
  834. package/presets/cursor/svelte/skills/technical-retro/SKILL.md +13 -2
  835. package/presets/cursor/svelte/skills/unit-testing/SKILL.md +1 -1
  836. package/presets/cursor/svelte/team/README.md +1 -1
  837. package/presets/mavis/android-kotlin/REPO_AGENTS.md +10 -6
  838. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  839. package/presets/mavis/android-kotlin/agents/build-verifier.md +2 -36
  840. package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -1
  841. package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
  842. package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
  843. package/presets/mavis/android-kotlin/agents/openspec-author.md +1 -1
  844. package/presets/mavis/android-kotlin/agents/task-analyst.md +1 -1
  845. package/presets/mavis/android-kotlin/agents/tech-writer.md +1 -1
  846. package/presets/mavis/android-kotlin/agents/unit-test-generator.md +1 -1
  847. package/presets/mavis/android-kotlin/agents/unit-test-planner.md +1 -1
  848. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +49 -17
  849. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -1
  850. package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +7 -30
  851. package/presets/mavis/android-kotlin/rules/mockup-review.md +34 -29
  852. package/presets/mavis/android-kotlin/rules/preset-no-cross-stack-leakage.md +0 -1
  853. package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +6 -2
  854. package/presets/mavis/android-kotlin/rules/preset-token-budget.md +2 -3
  855. package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +5 -5
  856. package/presets/mavis/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  857. package/presets/mavis/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  858. package/presets/mavis/android-kotlin/team/README.md +1 -1
  859. package/presets/mavis/go/REPO_AGENTS.md +10 -6
  860. package/presets/mavis/go/adapter-map.json +1 -1
  861. package/presets/mavis/go/agents/build-verifier.md +2 -28
  862. package/presets/mavis/go/agents/ci-investigator.md +2 -2
  863. package/presets/mavis/go/agents/code-reviewer.md +1 -1
  864. package/presets/mavis/go/agents/debugger.md +1 -1
  865. package/presets/mavis/go/agents/feature-developer.md +1 -3
  866. package/presets/mavis/go/agents/openspec-author.md +1 -1
  867. package/presets/mavis/go/agents/task-analyst.md +1 -1
  868. package/presets/mavis/go/agents/tech-writer.md +1 -1
  869. package/presets/mavis/go/hooks/chain-team-phases.sh +51 -19
  870. package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -1
  871. package/presets/mavis/go/rules/ai-local-overlay.md +7 -30
  872. package/presets/mavis/go/rules/feature-delivery-workflow.md +1 -1
  873. package/presets/mavis/go/rules/preset-no-cross-stack-leakage.md +0 -1
  874. package/presets/mavis/go/rules/preset-pr-checklist.md +6 -2
  875. package/presets/mavis/go/rules/preset-token-budget.md +2 -3
  876. package/presets/mavis/go/rules/preset-twin-sync.md +5 -5
  877. package/presets/mavis/go/skills/ci-investigation/SKILL.md +1 -1
  878. package/presets/mavis/go/skills/technical-retro/SKILL.md +13 -2
  879. package/presets/mavis/go/team/README.md +1 -1
  880. package/presets/mavis/ios-swift/REPO_AGENTS.md +10 -6
  881. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  882. package/presets/mavis/ios-swift/agents/build-verifier.md +2 -38
  883. package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -1
  884. package/presets/mavis/ios-swift/agents/debugger.md +1 -1
  885. package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
  886. package/presets/mavis/ios-swift/agents/openspec-author.md +1 -1
  887. package/presets/mavis/ios-swift/agents/task-analyst.md +1 -1
  888. package/presets/mavis/ios-swift/agents/tech-writer.md +1 -1
  889. package/presets/mavis/ios-swift/agents/unit-test-generator.md +1 -1
  890. package/presets/mavis/ios-swift/agents/unit-test-planner.md +1 -1
  891. package/presets/mavis/ios-swift/agents/xcuitest-test-generator.md +1 -1
  892. package/presets/mavis/ios-swift/agents/xcuitest-test-planner.md +2 -2
  893. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +49 -17
  894. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -1
  895. package/presets/mavis/ios-swift/rules/ai-local-overlay.md +7 -30
  896. package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +1 -1
  897. package/presets/mavis/ios-swift/rules/mockup-review.md +34 -29
  898. package/presets/mavis/ios-swift/rules/preset-no-cross-stack-leakage.md +0 -1
  899. package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +6 -2
  900. package/presets/mavis/ios-swift/rules/preset-token-budget.md +2 -3
  901. package/presets/mavis/ios-swift/rules/preset-twin-sync.md +5 -5
  902. package/presets/mavis/ios-swift/skills/technical-retro/SKILL.md +13 -2
  903. package/presets/mavis/ios-swift/skills/unit-testing/SKILL.md +1 -1
  904. package/presets/mavis/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  905. package/presets/mavis/ios-swift/team/README.md +1 -1
  906. package/presets/mavis/java/REPO_AGENTS.md +10 -6
  907. package/presets/mavis/java/adapter-map.json +1 -1
  908. package/presets/mavis/java/agents/build-verifier.md +2 -38
  909. package/presets/mavis/java/agents/ci-investigator.md +2 -2
  910. package/presets/mavis/java/agents/code-reviewer.md +1 -1
  911. package/presets/mavis/java/agents/debugger.md +1 -1
  912. package/presets/mavis/java/agents/feature-developer.md +1 -3
  913. package/presets/mavis/java/agents/openspec-author.md +1 -1
  914. package/presets/mavis/java/agents/task-analyst.md +1 -1
  915. package/presets/mavis/java/agents/tech-writer.md +1 -1
  916. package/presets/mavis/java/hooks/chain-team-phases.sh +51 -19
  917. package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -1
  918. package/presets/mavis/java/rules/ai-local-overlay.md +7 -30
  919. package/presets/mavis/java/rules/feature-delivery-workflow.md +1 -1
  920. package/presets/mavis/java/rules/preset-no-cross-stack-leakage.md +0 -1
  921. package/presets/mavis/java/rules/preset-pr-checklist.md +6 -2
  922. package/presets/mavis/java/rules/preset-token-budget.md +2 -3
  923. package/presets/mavis/java/rules/preset-twin-sync.md +5 -5
  924. package/presets/mavis/java/skills/ci-investigation/SKILL.md +1 -1
  925. package/presets/mavis/java/skills/technical-retro/SKILL.md +13 -2
  926. package/presets/mavis/java/team/README.md +1 -1
  927. package/presets/mavis/mcp-ts/REPO_AGENTS.md +10 -6
  928. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  929. package/presets/mavis/mcp-ts/agents/README.md +1 -1
  930. package/presets/mavis/mcp-ts/agents/build-verifier.md +2 -31
  931. package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
  932. package/presets/mavis/mcp-ts/agents/task-analyst.md +1 -1
  933. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +50 -18
  934. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -1
  935. package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +7 -30
  936. package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +1 -1
  937. package/presets/mavis/mcp-ts/rules/preset-no-cross-stack-leakage.md +0 -1
  938. package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +6 -2
  939. package/presets/mavis/mcp-ts/rules/preset-token-budget.md +2 -3
  940. package/presets/mavis/mcp-ts/rules/preset-twin-sync.md +5 -5
  941. package/presets/mavis/mcp-ts/team/README.md +1 -1
  942. package/presets/mavis/next/REPO_AGENTS.md +11 -7
  943. package/presets/mavis/next/adapter-map.json +1 -1
  944. package/presets/mavis/next/agents/build-verifier.md +2 -42
  945. package/presets/mavis/next/agents/code-reviewer.md +9 -38
  946. package/presets/mavis/next/agents/debugger.md +1 -1
  947. package/presets/mavis/next/agents/feature-developer.md +14 -25
  948. package/presets/mavis/next/agents/mockup-reviewer.md +14 -13
  949. package/presets/mavis/next/agents/openspec-author.md +1 -1
  950. package/presets/mavis/next/agents/task-analyst.md +1 -1
  951. package/presets/mavis/next/agents/tech-writer.md +1 -1
  952. package/presets/mavis/next/agents/unit-test-generator.md +1 -1
  953. package/presets/mavis/next/agents/unit-test-planner.md +1 -1
  954. package/presets/mavis/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  955. package/presets/mavis/next/ai-local/rules-library/analytics-events.md +1 -1
  956. package/presets/mavis/next/ai-local/rules-library/api-contract-source.md +1 -1
  957. package/presets/mavis/next/ai-local/rules-library/code-style.md +1 -1
  958. package/presets/mavis/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  959. package/presets/mavis/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  960. package/presets/mavis/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  961. package/presets/mavis/next/ai-local/rules-library/no-react-fc.md +1 -1
  962. package/presets/mavis/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  963. package/presets/mavis/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  964. package/presets/mavis/next/ai-local/rules-library/router-pages.md +1 -1
  965. package/presets/mavis/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  966. package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  967. package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  968. package/presets/mavis/next/commands/task.md +5 -3
  969. package/presets/mavis/next/hooks/chain-team-phases.sh +49 -17
  970. package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -1
  971. package/presets/mavis/next/rules/ai-local-overlay.md +5 -42
  972. package/presets/mavis/next/rules/code-review-mr.md +3 -16
  973. package/presets/mavis/next/rules/design-tokens-binding.md +6 -19
  974. package/presets/mavis/next/rules/feature-delivery-workflow.md +5 -12
  975. package/presets/mavis/next/rules/mockup-review.md +44 -45
  976. package/presets/mavis/next/rules/navigation-router-stack.md +1 -1
  977. package/presets/mavis/next/rules/navigation-router-ui.md +1 -1
  978. package/presets/mavis/next/rules/no-props-spread.md +1 -26
  979. package/presets/mavis/next/rules/preset-no-cross-stack-leakage.md +0 -1
  980. package/presets/mavis/next/rules/preset-pr-checklist.md +6 -2
  981. package/presets/mavis/next/rules/preset-token-budget.md +2 -3
  982. package/presets/mavis/next/rules/preset-twin-sync.md +5 -5
  983. package/presets/mavis/next/rules/product-specs.md +1 -1
  984. package/presets/mavis/next/rules/public-imports.md +2 -2
  985. package/presets/mavis/next/rules/react-ui.md +1 -7
  986. package/presets/mavis/next/rules/tests-e2e-structure.md +0 -1
  987. package/presets/mavis/next/rules/tests-unit.md +0 -1
  988. package/presets/mavis/next/rules/types-jsdoc.md +14 -17
  989. package/presets/mavis/next/skills/code-review/SKILL.md +1 -1
  990. package/presets/mavis/next/skills/figma-fidelity/SKILL.md +75 -48
  991. package/presets/mavis/next/skills/mockup-review/SKILL.md +4 -2
  992. package/presets/mavis/next/skills/react-performance/SKILL.md +1 -1
  993. package/presets/mavis/next/skills/technical-retro/SKILL.md +13 -2
  994. package/presets/mavis/next/skills/unit-testing/SKILL.md +1 -1
  995. package/presets/mavis/next/team/README.md +1 -1
  996. package/presets/mavis/nuxt/REPO_AGENTS.md +10 -6
  997. package/presets/mavis/nuxt/adapter-map.json +1 -1
  998. package/presets/mavis/nuxt/agents/build-verifier.md +1 -39
  999. package/presets/mavis/nuxt/agents/code-reviewer.md +1 -1
  1000. package/presets/mavis/nuxt/agents/debugger.md +1 -1
  1001. package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
  1002. package/presets/mavis/nuxt/agents/openspec-author.md +1 -1
  1003. package/presets/mavis/nuxt/agents/task-analyst.md +1 -1
  1004. package/presets/mavis/nuxt/agents/tech-writer.md +1 -1
  1005. package/presets/mavis/nuxt/agents/unit-test-generator.md +1 -1
  1006. package/presets/mavis/nuxt/agents/unit-test-planner.md +1 -1
  1007. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +49 -17
  1008. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -1
  1009. package/presets/mavis/nuxt/rules/ai-local-overlay.md +7 -30
  1010. package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +1 -1
  1011. package/presets/mavis/nuxt/rules/mockup-review.md +34 -29
  1012. package/presets/mavis/nuxt/rules/preset-no-cross-stack-leakage.md +0 -1
  1013. package/presets/mavis/nuxt/rules/preset-pr-checklist.md +6 -2
  1014. package/presets/mavis/nuxt/rules/preset-token-budget.md +2 -3
  1015. package/presets/mavis/nuxt/rules/preset-twin-sync.md +5 -5
  1016. package/presets/mavis/nuxt/rules/public-imports.md +2 -2
  1017. package/presets/mavis/nuxt/rules/tests-e2e-structure.md +0 -1
  1018. package/presets/mavis/nuxt/rules/tests-unit.md +0 -1
  1019. package/presets/mavis/nuxt/rules/types-jsdoc.md +18 -14
  1020. package/presets/mavis/nuxt/skills/technical-retro/SKILL.md +13 -2
  1021. package/presets/mavis/nuxt/skills/unit-testing/SKILL.md +1 -1
  1022. package/presets/mavis/nuxt/team/README.md +1 -1
  1023. package/presets/mavis/php-hexagonal/REPO_AGENTS.md +10 -6
  1024. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  1025. package/presets/mavis/php-hexagonal/agents/build-verifier.md +2 -38
  1026. package/presets/mavis/php-hexagonal/agents/ci-investigator.md +2 -2
  1027. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -1
  1028. package/presets/mavis/php-hexagonal/agents/debugger.md +1 -1
  1029. package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -3
  1030. package/presets/mavis/php-hexagonal/agents/openspec-author.md +1 -1
  1031. package/presets/mavis/php-hexagonal/agents/task-analyst.md +1 -1
  1032. package/presets/mavis/php-hexagonal/agents/tech-writer.md +1 -1
  1033. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  1034. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
  1035. package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +7 -30
  1036. package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
  1037. package/presets/mavis/php-hexagonal/rules/preset-no-cross-stack-leakage.md +0 -1
  1038. package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +6 -2
  1039. package/presets/mavis/php-hexagonal/rules/preset-token-budget.md +2 -3
  1040. package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +5 -5
  1041. package/presets/mavis/php-hexagonal/skills/ci-investigation/SKILL.md +1 -1
  1042. package/presets/mavis/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  1043. package/presets/mavis/php-hexagonal/team/README.md +1 -1
  1044. package/presets/mavis/php-laravel/REPO_AGENTS.md +10 -6
  1045. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  1046. package/presets/mavis/php-laravel/agents/build-verifier.md +2 -38
  1047. package/presets/mavis/php-laravel/agents/ci-investigator.md +2 -2
  1048. package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -1
  1049. package/presets/mavis/php-laravel/agents/debugger.md +1 -1
  1050. package/presets/mavis/php-laravel/agents/feature-developer.md +1 -3
  1051. package/presets/mavis/php-laravel/agents/openspec-author.md +1 -1
  1052. package/presets/mavis/php-laravel/agents/task-analyst.md +1 -1
  1053. package/presets/mavis/php-laravel/agents/tech-writer.md +1 -1
  1054. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +51 -19
  1055. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -1
  1056. package/presets/mavis/php-laravel/rules/ai-local-overlay.md +7 -30
  1057. package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +1 -1
  1058. package/presets/mavis/php-laravel/rules/preset-no-cross-stack-leakage.md +0 -1
  1059. package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +6 -2
  1060. package/presets/mavis/php-laravel/rules/preset-token-budget.md +2 -3
  1061. package/presets/mavis/php-laravel/rules/preset-twin-sync.md +5 -5
  1062. package/presets/mavis/php-laravel/skills/ci-investigation/SKILL.md +1 -1
  1063. package/presets/mavis/php-laravel/skills/technical-retro/SKILL.md +13 -2
  1064. package/presets/mavis/php-laravel/team/README.md +1 -1
  1065. package/presets/mavis/svelte/REPO_AGENTS.md +10 -6
  1066. package/presets/mavis/svelte/adapter-map.json +1 -1
  1067. package/presets/mavis/svelte/agents/build-verifier.md +1 -39
  1068. package/presets/mavis/svelte/agents/code-reviewer.md +1 -1
  1069. package/presets/mavis/svelte/agents/debugger.md +1 -1
  1070. package/presets/mavis/svelte/agents/feature-developer.md +1 -1
  1071. package/presets/mavis/svelte/agents/openspec-author.md +1 -1
  1072. package/presets/mavis/svelte/agents/task-analyst.md +1 -1
  1073. package/presets/mavis/svelte/agents/tech-writer.md +1 -1
  1074. package/presets/mavis/svelte/agents/unit-test-generator.md +1 -1
  1075. package/presets/mavis/svelte/agents/unit-test-planner.md +1 -1
  1076. package/presets/mavis/svelte/hooks/chain-team-phases.sh +49 -17
  1077. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -1
  1078. package/presets/mavis/svelte/rules/ai-local-overlay.md +7 -30
  1079. package/presets/mavis/svelte/rules/feature-delivery-workflow.md +1 -1
  1080. package/presets/mavis/svelte/rules/mockup-review.md +34 -29
  1081. package/presets/mavis/svelte/rules/preset-no-cross-stack-leakage.md +0 -1
  1082. package/presets/mavis/svelte/rules/preset-pr-checklist.md +6 -2
  1083. package/presets/mavis/svelte/rules/preset-token-budget.md +2 -3
  1084. package/presets/mavis/svelte/rules/preset-twin-sync.md +5 -5
  1085. package/presets/mavis/svelte/rules/tests-e2e-structure.md +0 -1
  1086. package/presets/mavis/svelte/rules/tests-unit.md +0 -1
  1087. package/presets/mavis/svelte/rules/types-jsdoc.md +18 -14
  1088. package/presets/mavis/svelte/skills/technical-retro/SKILL.md +13 -2
  1089. package/presets/mavis/svelte/skills/unit-testing/SKILL.md +1 -1
  1090. package/presets/mavis/svelte/team/README.md +1 -1
  1091. package/presets/opencode/android-kotlin/OPENCODE.md +6 -4
  1092. package/presets/opencode/android-kotlin/REPO_AGENTS.md +10 -6
  1093. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  1094. package/presets/opencode/android-kotlin/agents/build-verifier.md +3 -37
  1095. package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
  1096. package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
  1097. package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
  1098. package/presets/opencode/android-kotlin/agents/openspec-author.md +1 -1
  1099. package/presets/opencode/android-kotlin/agents/task-analyst.md +1 -1
  1100. package/presets/opencode/android-kotlin/agents/tech-writer.md +1 -1
  1101. package/presets/opencode/android-kotlin/agents/unit-test-generator.md +1 -1
  1102. package/presets/opencode/android-kotlin/agents/unit-test-planner.md +1 -1
  1103. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +49 -17
  1104. package/presets/opencode/android-kotlin/opencode.json +12 -0
  1105. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -1
  1106. package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +7 -30
  1107. package/presets/opencode/android-kotlin/rules/mockup-review.md +34 -29
  1108. package/presets/opencode/android-kotlin/rules/preset-no-cross-stack-leakage.md +0 -1
  1109. package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +6 -2
  1110. package/presets/opencode/android-kotlin/rules/preset-token-budget.md +2 -3
  1111. package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +5 -5
  1112. package/presets/opencode/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  1113. package/presets/opencode/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  1114. package/presets/opencode/android-kotlin/team/README.md +1 -1
  1115. package/presets/opencode/go/OPENCODE.md +6 -4
  1116. package/presets/opencode/go/REPO_AGENTS.md +10 -6
  1117. package/presets/opencode/go/adapter-map.json +1 -1
  1118. package/presets/opencode/go/agents/build-verifier.md +3 -29
  1119. package/presets/opencode/go/agents/ci-investigator.md +2 -2
  1120. package/presets/opencode/go/agents/code-reviewer.md +1 -1
  1121. package/presets/opencode/go/agents/debugger.md +1 -1
  1122. package/presets/opencode/go/agents/feature-developer.md +1 -3
  1123. package/presets/opencode/go/agents/openspec-author.md +1 -1
  1124. package/presets/opencode/go/agents/task-analyst.md +1 -1
  1125. package/presets/opencode/go/agents/tech-writer.md +1 -1
  1126. package/presets/opencode/go/hooks/chain-team-phases.sh +51 -19
  1127. package/presets/opencode/go/opencode.json +12 -0
  1128. package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -1
  1129. package/presets/opencode/go/rules/ai-local-overlay.md +7 -30
  1130. package/presets/opencode/go/rules/feature-delivery-workflow.md +1 -1
  1131. package/presets/opencode/go/rules/preset-no-cross-stack-leakage.md +0 -1
  1132. package/presets/opencode/go/rules/preset-pr-checklist.md +6 -2
  1133. package/presets/opencode/go/rules/preset-token-budget.md +2 -3
  1134. package/presets/opencode/go/rules/preset-twin-sync.md +5 -5
  1135. package/presets/opencode/go/skills/ci-investigation/SKILL.md +2 -2
  1136. package/presets/opencode/go/skills/technical-retro/SKILL.md +13 -2
  1137. package/presets/opencode/go/team/README.md +1 -1
  1138. package/presets/opencode/ios-swift/OPENCODE.md +6 -4
  1139. package/presets/opencode/ios-swift/REPO_AGENTS.md +10 -6
  1140. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  1141. package/presets/opencode/ios-swift/agents/build-verifier.md +3 -39
  1142. package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
  1143. package/presets/opencode/ios-swift/agents/debugger.md +1 -1
  1144. package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
  1145. package/presets/opencode/ios-swift/agents/openspec-author.md +1 -1
  1146. package/presets/opencode/ios-swift/agents/task-analyst.md +1 -1
  1147. package/presets/opencode/ios-swift/agents/tech-writer.md +1 -1
  1148. package/presets/opencode/ios-swift/agents/unit-test-generator.md +1 -1
  1149. package/presets/opencode/ios-swift/agents/unit-test-planner.md +1 -1
  1150. package/presets/opencode/ios-swift/agents/xcuitest-test-generator.md +1 -1
  1151. package/presets/opencode/ios-swift/agents/xcuitest-test-planner.md +2 -2
  1152. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +49 -17
  1153. package/presets/opencode/ios-swift/opencode.json +12 -0
  1154. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -1
  1155. package/presets/opencode/ios-swift/rules/ai-local-overlay.md +7 -30
  1156. package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +1 -1
  1157. package/presets/opencode/ios-swift/rules/mockup-review.md +34 -29
  1158. package/presets/opencode/ios-swift/rules/preset-no-cross-stack-leakage.md +0 -1
  1159. package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +6 -2
  1160. package/presets/opencode/ios-swift/rules/preset-token-budget.md +2 -3
  1161. package/presets/opencode/ios-swift/rules/preset-twin-sync.md +5 -5
  1162. package/presets/opencode/ios-swift/skills/technical-retro/SKILL.md +13 -2
  1163. package/presets/opencode/ios-swift/skills/unit-testing/SKILL.md +1 -1
  1164. package/presets/opencode/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  1165. package/presets/opencode/ios-swift/team/README.md +1 -1
  1166. package/presets/opencode/java/OPENCODE.md +6 -4
  1167. package/presets/opencode/java/REPO_AGENTS.md +10 -6
  1168. package/presets/opencode/java/adapter-map.json +1 -1
  1169. package/presets/opencode/java/agents/build-verifier.md +3 -39
  1170. package/presets/opencode/java/agents/ci-investigator.md +2 -2
  1171. package/presets/opencode/java/agents/code-reviewer.md +1 -1
  1172. package/presets/opencode/java/agents/debugger.md +1 -1
  1173. package/presets/opencode/java/agents/feature-developer.md +1 -3
  1174. package/presets/opencode/java/agents/openspec-author.md +1 -1
  1175. package/presets/opencode/java/agents/task-analyst.md +1 -1
  1176. package/presets/opencode/java/agents/tech-writer.md +1 -1
  1177. package/presets/opencode/java/hooks/chain-team-phases.sh +51 -19
  1178. package/presets/opencode/java/opencode.json +12 -0
  1179. package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -1
  1180. package/presets/opencode/java/rules/ai-local-overlay.md +7 -30
  1181. package/presets/opencode/java/rules/feature-delivery-workflow.md +1 -1
  1182. package/presets/opencode/java/rules/preset-no-cross-stack-leakage.md +0 -1
  1183. package/presets/opencode/java/rules/preset-pr-checklist.md +6 -2
  1184. package/presets/opencode/java/rules/preset-token-budget.md +2 -3
  1185. package/presets/opencode/java/rules/preset-twin-sync.md +5 -5
  1186. package/presets/opencode/java/skills/ci-investigation/SKILL.md +2 -2
  1187. package/presets/opencode/java/skills/technical-retro/SKILL.md +13 -2
  1188. package/presets/opencode/java/team/README.md +1 -1
  1189. package/presets/opencode/mcp-ts/OPENCODE.md +6 -4
  1190. package/presets/opencode/mcp-ts/REPO_AGENTS.md +10 -6
  1191. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  1192. package/presets/opencode/mcp-ts/agents/README.md +1 -1
  1193. package/presets/opencode/mcp-ts/agents/build-verifier.md +3 -32
  1194. package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
  1195. package/presets/opencode/mcp-ts/agents/task-analyst.md +1 -1
  1196. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +50 -18
  1197. package/presets/opencode/mcp-ts/opencode.json +12 -0
  1198. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -1
  1199. package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +7 -30
  1200. package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +1 -1
  1201. package/presets/opencode/mcp-ts/rules/preset-no-cross-stack-leakage.md +0 -1
  1202. package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +6 -2
  1203. package/presets/opencode/mcp-ts/rules/preset-token-budget.md +2 -3
  1204. package/presets/opencode/mcp-ts/rules/preset-twin-sync.md +5 -5
  1205. package/presets/opencode/mcp-ts/team/README.md +1 -1
  1206. package/presets/opencode/next/OPENCODE.md +6 -4
  1207. package/presets/opencode/next/REPO_AGENTS.md +11 -7
  1208. package/presets/opencode/next/adapter-map.json +1 -1
  1209. package/presets/opencode/next/agents/build-verifier.md +2 -42
  1210. package/presets/opencode/next/agents/code-reviewer.md +9 -38
  1211. package/presets/opencode/next/agents/debugger.md +1 -1
  1212. package/presets/opencode/next/agents/feature-developer.md +14 -25
  1213. package/presets/opencode/next/agents/mockup-reviewer.md +14 -13
  1214. package/presets/opencode/next/agents/openspec-author.md +1 -1
  1215. package/presets/opencode/next/agents/task-analyst.md +1 -1
  1216. package/presets/opencode/next/agents/tech-writer.md +1 -1
  1217. package/presets/opencode/next/agents/unit-test-generator.md +1 -1
  1218. package/presets/opencode/next/agents/unit-test-planner.md +1 -1
  1219. package/presets/opencode/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  1220. package/presets/opencode/next/ai-local/rules-library/analytics-events.md +1 -1
  1221. package/presets/opencode/next/ai-local/rules-library/api-contract-source.md +1 -1
  1222. package/presets/opencode/next/ai-local/rules-library/code-style.md +1 -1
  1223. package/presets/opencode/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  1224. package/presets/opencode/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  1225. package/presets/opencode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  1226. package/presets/opencode/next/ai-local/rules-library/no-react-fc.md +1 -1
  1227. package/presets/opencode/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  1228. package/presets/opencode/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  1229. package/presets/opencode/next/ai-local/rules-library/router-pages.md +1 -1
  1230. package/presets/opencode/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  1231. package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  1232. package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  1233. package/presets/opencode/next/commands/task.md +5 -3
  1234. package/presets/opencode/next/hooks/chain-team-phases.sh +49 -17
  1235. package/presets/opencode/next/opencode.json +12 -0
  1236. package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -1
  1237. package/presets/opencode/next/rules/ai-local-overlay.md +5 -42
  1238. package/presets/opencode/next/rules/code-review-mr.md +3 -16
  1239. package/presets/opencode/next/rules/design-tokens-binding.md +6 -19
  1240. package/presets/opencode/next/rules/feature-delivery-workflow.md +5 -12
  1241. package/presets/opencode/next/rules/mockup-review.md +44 -45
  1242. package/presets/opencode/next/rules/navigation-router-stack.md +1 -1
  1243. package/presets/opencode/next/rules/navigation-router-ui.md +1 -1
  1244. package/presets/opencode/next/rules/no-props-spread.md +1 -26
  1245. package/presets/opencode/next/rules/preset-no-cross-stack-leakage.md +0 -1
  1246. package/presets/opencode/next/rules/preset-pr-checklist.md +6 -2
  1247. package/presets/opencode/next/rules/preset-token-budget.md +2 -3
  1248. package/presets/opencode/next/rules/preset-twin-sync.md +5 -5
  1249. package/presets/opencode/next/rules/product-specs.md +1 -1
  1250. package/presets/opencode/next/rules/public-imports.md +2 -2
  1251. package/presets/opencode/next/rules/react-ui.md +1 -7
  1252. package/presets/opencode/next/rules/tests-e2e-structure.md +0 -1
  1253. package/presets/opencode/next/rules/tests-unit.md +0 -1
  1254. package/presets/opencode/next/rules/types-jsdoc.md +14 -17
  1255. package/presets/opencode/next/skills/code-review/SKILL.md +1 -1
  1256. package/presets/opencode/next/skills/figma-fidelity/SKILL.md +76 -49
  1257. package/presets/opencode/next/skills/mockup-review/SKILL.md +4 -2
  1258. package/presets/opencode/next/skills/react-performance/SKILL.md +1 -1
  1259. package/presets/opencode/next/skills/technical-retro/SKILL.md +13 -2
  1260. package/presets/opencode/next/skills/unit-testing/SKILL.md +1 -1
  1261. package/presets/opencode/next/team/README.md +1 -1
  1262. package/presets/opencode/nuxt/OPENCODE.md +6 -4
  1263. package/presets/opencode/nuxt/REPO_AGENTS.md +10 -6
  1264. package/presets/opencode/nuxt/adapter-map.json +1 -1
  1265. package/presets/opencode/nuxt/agents/build-verifier.md +1 -39
  1266. package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
  1267. package/presets/opencode/nuxt/agents/debugger.md +1 -1
  1268. package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
  1269. package/presets/opencode/nuxt/agents/openspec-author.md +1 -1
  1270. package/presets/opencode/nuxt/agents/task-analyst.md +1 -1
  1271. package/presets/opencode/nuxt/agents/tech-writer.md +1 -1
  1272. package/presets/opencode/nuxt/agents/unit-test-generator.md +1 -1
  1273. package/presets/opencode/nuxt/agents/unit-test-planner.md +1 -1
  1274. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +49 -17
  1275. package/presets/opencode/nuxt/opencode.json +12 -0
  1276. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -1
  1277. package/presets/opencode/nuxt/rules/ai-local-overlay.md +7 -30
  1278. package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +1 -1
  1279. package/presets/opencode/nuxt/rules/mockup-review.md +34 -29
  1280. package/presets/opencode/nuxt/rules/preset-no-cross-stack-leakage.md +0 -1
  1281. package/presets/opencode/nuxt/rules/preset-pr-checklist.md +6 -2
  1282. package/presets/opencode/nuxt/rules/preset-token-budget.md +2 -3
  1283. package/presets/opencode/nuxt/rules/preset-twin-sync.md +5 -5
  1284. package/presets/opencode/nuxt/rules/public-imports.md +2 -2
  1285. package/presets/opencode/nuxt/rules/tests-e2e-structure.md +0 -1
  1286. package/presets/opencode/nuxt/rules/tests-unit.md +0 -1
  1287. package/presets/opencode/nuxt/rules/types-jsdoc.md +18 -14
  1288. package/presets/opencode/nuxt/skills/technical-retro/SKILL.md +13 -2
  1289. package/presets/opencode/nuxt/skills/unit-testing/SKILL.md +1 -1
  1290. package/presets/opencode/nuxt/team/README.md +1 -1
  1291. package/presets/opencode/php-hexagonal/OPENCODE.md +6 -4
  1292. package/presets/opencode/php-hexagonal/REPO_AGENTS.md +10 -6
  1293. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  1294. package/presets/opencode/php-hexagonal/agents/build-verifier.md +3 -39
  1295. package/presets/opencode/php-hexagonal/agents/ci-investigator.md +2 -2
  1296. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
  1297. package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
  1298. package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -3
  1299. package/presets/opencode/php-hexagonal/agents/openspec-author.md +1 -1
  1300. package/presets/opencode/php-hexagonal/agents/task-analyst.md +1 -1
  1301. package/presets/opencode/php-hexagonal/agents/tech-writer.md +1 -1
  1302. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  1303. package/presets/opencode/php-hexagonal/opencode.json +12 -0
  1304. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
  1305. package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +7 -30
  1306. package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
  1307. package/presets/opencode/php-hexagonal/rules/preset-no-cross-stack-leakage.md +0 -1
  1308. package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +6 -2
  1309. package/presets/opencode/php-hexagonal/rules/preset-token-budget.md +2 -3
  1310. package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +5 -5
  1311. package/presets/opencode/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  1312. package/presets/opencode/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  1313. package/presets/opencode/php-hexagonal/team/README.md +1 -1
  1314. package/presets/opencode/php-laravel/OPENCODE.md +6 -4
  1315. package/presets/opencode/php-laravel/REPO_AGENTS.md +10 -6
  1316. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  1317. package/presets/opencode/php-laravel/agents/build-verifier.md +3 -39
  1318. package/presets/opencode/php-laravel/agents/ci-investigator.md +2 -2
  1319. package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
  1320. package/presets/opencode/php-laravel/agents/debugger.md +1 -1
  1321. package/presets/opencode/php-laravel/agents/feature-developer.md +1 -3
  1322. package/presets/opencode/php-laravel/agents/openspec-author.md +1 -1
  1323. package/presets/opencode/php-laravel/agents/task-analyst.md +1 -1
  1324. package/presets/opencode/php-laravel/agents/tech-writer.md +1 -1
  1325. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +51 -19
  1326. package/presets/opencode/php-laravel/opencode.json +12 -0
  1327. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -1
  1328. package/presets/opencode/php-laravel/rules/ai-local-overlay.md +7 -30
  1329. package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +1 -1
  1330. package/presets/opencode/php-laravel/rules/preset-no-cross-stack-leakage.md +0 -1
  1331. package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +6 -2
  1332. package/presets/opencode/php-laravel/rules/preset-token-budget.md +2 -3
  1333. package/presets/opencode/php-laravel/rules/preset-twin-sync.md +5 -5
  1334. package/presets/opencode/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  1335. package/presets/opencode/php-laravel/skills/technical-retro/SKILL.md +13 -2
  1336. package/presets/opencode/php-laravel/team/README.md +1 -1
  1337. package/presets/opencode/svelte/OPENCODE.md +6 -4
  1338. package/presets/opencode/svelte/REPO_AGENTS.md +10 -6
  1339. package/presets/opencode/svelte/adapter-map.json +1 -1
  1340. package/presets/opencode/svelte/agents/build-verifier.md +1 -39
  1341. package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
  1342. package/presets/opencode/svelte/agents/debugger.md +1 -1
  1343. package/presets/opencode/svelte/agents/feature-developer.md +1 -1
  1344. package/presets/opencode/svelte/agents/openspec-author.md +1 -1
  1345. package/presets/opencode/svelte/agents/task-analyst.md +1 -1
  1346. package/presets/opencode/svelte/agents/tech-writer.md +1 -1
  1347. package/presets/opencode/svelte/agents/unit-test-generator.md +1 -1
  1348. package/presets/opencode/svelte/agents/unit-test-planner.md +1 -1
  1349. package/presets/opencode/svelte/hooks/chain-team-phases.sh +49 -17
  1350. package/presets/opencode/svelte/opencode.json +12 -0
  1351. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -1
  1352. package/presets/opencode/svelte/rules/ai-local-overlay.md +7 -30
  1353. package/presets/opencode/svelte/rules/feature-delivery-workflow.md +1 -1
  1354. package/presets/opencode/svelte/rules/mockup-review.md +34 -29
  1355. package/presets/opencode/svelte/rules/preset-no-cross-stack-leakage.md +0 -1
  1356. package/presets/opencode/svelte/rules/preset-pr-checklist.md +6 -2
  1357. package/presets/opencode/svelte/rules/preset-token-budget.md +2 -3
  1358. package/presets/opencode/svelte/rules/preset-twin-sync.md +5 -5
  1359. package/presets/opencode/svelte/rules/tests-e2e-structure.md +0 -1
  1360. package/presets/opencode/svelte/rules/tests-unit.md +0 -1
  1361. package/presets/opencode/svelte/rules/types-jsdoc.md +18 -14
  1362. package/presets/opencode/svelte/skills/technical-retro/SKILL.md +13 -2
  1363. package/presets/opencode/svelte/skills/unit-testing/SKILL.md +1 -1
  1364. package/presets/opencode/svelte/team/README.md +1 -1
  1365. package/scripts/_lib/agent-write-scopes.json +0 -27
  1366. package/scripts/_lib/embed-stems.json +0 -38
  1367. package/scripts/capture-cli-golden.mjs +0 -51
  1368. package/scripts/check-chain-hook-coverage.sh +0 -124
  1369. package/scripts/check-claude-agent-blocks.mjs +0 -82
  1370. package/scripts/check-figma-contract-presence.sh +0 -119
  1371. package/scripts/check-frontmatter.mjs +0 -83
  1372. package/scripts/check-generated-drift.mjs +0 -146
  1373. package/scripts/check-hook-only-lifecycle.sh +0 -46
  1374. package/scripts/check-local-overlay.sh +0 -283
  1375. package/scripts/check-mavis-adapter-map.mjs +0 -306
  1376. package/scripts/check-mavis-local-overlay.mjs +0 -79
  1377. package/scripts/check-mavis-platform-contract.mjs +0 -390
  1378. package/scripts/check-mavis-token-budget.mjs +0 -48
  1379. package/scripts/check-opencode-adapter-map.mjs +0 -306
  1380. package/scripts/check-opencode-local-overlay.mjs +0 -75
  1381. package/scripts/check-opencode-platform-contract.mjs +0 -390
  1382. package/scripts/check-opencode-token-budget.mjs +0 -48
  1383. package/scripts/check-parallel-plan.sh +0 -353
  1384. package/scripts/check-plan-contract.sh +0 -133
  1385. package/scripts/check-preset-goal-contract.sh +0 -214
  1386. package/scripts/check-preset-i18n.sh +0 -61
  1387. package/scripts/check-preset-language-policy.sh +0 -292
  1388. package/scripts/check-preset-leakage.sh +0 -545
  1389. package/scripts/check-preset-prompt-persistence.sh +0 -218
  1390. package/scripts/check-preset-self-review-contract.sh +0 -179
  1391. package/scripts/check-preset-structure.sh +0 -297
  1392. package/scripts/check-preset-token-budget.sh +0 -258
  1393. package/scripts/check-preset-twin-map.sh +0 -122
  1394. package/scripts/check-rule-eval.mjs +0 -165
  1395. package/scripts/check-shared-core-drift.sh +0 -155
  1396. package/scripts/check-step-graph-contract.sh +0 -123
  1397. package/scripts/check-task-router-intents.sh +0 -154
  1398. package/scripts/fixtures/cli-golden/claude/next.json +0 -146
  1399. package/scripts/fixtures/cli-golden/cursor/next.json +0 -168
  1400. package/scripts/fixtures/cli-golden/mavis/android-kotlin.json +0 -110
  1401. package/scripts/fixtures/cli-golden/mavis/go.json +0 -103
  1402. package/scripts/fixtures/cli-golden/mavis/ios-swift.json +0 -109
  1403. package/scripts/fixtures/cli-golden/mavis/java.json +0 -103
  1404. package/scripts/fixtures/cli-golden/mavis/mcp-ts.json +0 -74
  1405. package/scripts/fixtures/cli-golden/mavis/next.json +0 -161
  1406. package/scripts/fixtures/cli-golden/mavis/nuxt.json +0 -128
  1407. package/scripts/fixtures/cli-golden/mavis/php-hexagonal.json +0 -103
  1408. package/scripts/fixtures/cli-golden/mavis/php-laravel.json +0 -103
  1409. package/scripts/fixtures/cli-golden/mavis/svelte.json +0 -128
  1410. package/scripts/fixtures/cli-golden/opencode/android-kotlin.json +0 -110
  1411. package/scripts/fixtures/cli-golden/opencode/go.json +0 -103
  1412. package/scripts/fixtures/cli-golden/opencode/ios-swift.json +0 -109
  1413. package/scripts/fixtures/cli-golden/opencode/java.json +0 -103
  1414. package/scripts/fixtures/cli-golden/opencode/mcp-ts.json +0 -74
  1415. package/scripts/fixtures/cli-golden/opencode/next.json +0 -161
  1416. package/scripts/fixtures/cli-golden/opencode/nuxt.json +0 -128
  1417. package/scripts/fixtures/cli-golden/opencode/php-hexagonal.json +0 -103
  1418. package/scripts/fixtures/cli-golden/opencode/php-laravel.json +0 -103
  1419. package/scripts/fixtures/cli-golden/opencode/svelte.json +0 -128
  1420. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/AGENTS.md +0 -1
  1421. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/rules/extra.mdc +0 -1
  1422. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/rules/sample.mdc +0 -2
  1423. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/MAVIS.md +0 -1
  1424. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/adapter-map.json +0 -26
  1425. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/rules/sample.md +0 -2
  1426. package/scripts/fixtures/mavis-adapter-map/valid/cursor/AGENTS.md +0 -1
  1427. package/scripts/fixtures/mavis-adapter-map/valid/cursor/rules/sample.mdc +0 -2
  1428. package/scripts/fixtures/mavis-adapter-map/valid/mavis/MAVIS.md +0 -1
  1429. package/scripts/fixtures/mavis-adapter-map/valid/mavis/adapter-map.json +0 -26
  1430. package/scripts/fixtures/mavis-adapter-map/valid/mavis/rules/sample.md +0 -2
  1431. package/scripts/fixtures/mavis-platform-contract/invalid-minimax-destination.json +0 -131
  1432. package/scripts/fixtures/mavis-platform-contract/invalid-missing-capability.json +0 -126
  1433. package/scripts/fixtures/mavis-platform-contract/invalid-released-unknown-stack.json +0 -133
  1434. package/scripts/fixtures/mavis-platform-contract/invalid-unknown-native-path.json +0 -131
  1435. package/scripts/fixtures/mavis-platform-contract/invalid-version-pin.json +0 -132
  1436. package/scripts/fixtures/mavis-platform-contract/valid.json +0 -127
  1437. package/scripts/fixtures/mavis-probe/AGENTS.md +0 -6
  1438. package/scripts/fixtures/mavis-probe/agents/probe-agent.md +0 -6
  1439. package/scripts/fixtures/mavis-probe/fake-mcode.mjs +0 -98
  1440. package/scripts/fixtures/mavis-probe/output.schema.json +0 -28
  1441. package/scripts/fixtures/mavis-probe/rules/probe.md +0 -5
  1442. package/scripts/fixtures/mavis-probe/skills/probe/SKILL.md +0 -11
  1443. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/AGENTS.md +0 -1
  1444. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/rules/extra.mdc +0 -1
  1445. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/rules/sample.mdc +0 -2
  1446. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/OPENCODE.md +0 -1
  1447. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/adapter-map.json +0 -26
  1448. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/rules/sample.md +0 -2
  1449. package/scripts/fixtures/opencode-adapter-map/valid/cursor/AGENTS.md +0 -1
  1450. package/scripts/fixtures/opencode-adapter-map/valid/cursor/rules/sample.mdc +0 -2
  1451. package/scripts/fixtures/opencode-adapter-map/valid/opencode/OPENCODE.md +0 -1
  1452. package/scripts/fixtures/opencode-adapter-map/valid/opencode/adapter-map.json +0 -26
  1453. package/scripts/fixtures/opencode-adapter-map/valid/opencode/rules/sample.md +0 -2
  1454. package/scripts/fixtures/opencode-platform-contract/invalid-home-destination.json +0 -131
  1455. package/scripts/fixtures/opencode-platform-contract/invalid-missing-capability.json +0 -126
  1456. package/scripts/fixtures/opencode-platform-contract/invalid-released-unknown-stack.json +0 -133
  1457. package/scripts/fixtures/opencode-platform-contract/invalid-unknown-native-path.json +0 -131
  1458. package/scripts/fixtures/opencode-platform-contract/invalid-version-pin.json +0 -132
  1459. package/scripts/fixtures/opencode-platform-contract/valid.json +0 -127
  1460. package/scripts/generate-mavis.mjs +0 -14
  1461. package/scripts/generate-opencode.mjs +0 -14
  1462. package/scripts/inject-claude-agent-rules-block.mjs +0 -83
  1463. package/scripts/lib/cli-golden.mjs +0 -50
  1464. package/scripts/lib/discover-hooks.mjs +0 -94
  1465. package/scripts/lib/generate-adapter-common.mjs +0 -603
  1466. package/scripts/lib/generate-mavis-adapter.mjs +0 -550
  1467. package/scripts/lib/generate-opencode-adapter.mjs +0 -662
  1468. package/scripts/lib/stack-platform-profiles.mjs +0 -468
  1469. package/scripts/probe-mavis-capabilities.mjs +0 -480
  1470. package/scripts/sync-claude-harness-wiring.mjs +0 -56
  1471. package/scripts/sync-claude-settings.mjs +0 -81
  1472. package/scripts/sync-dogfood-claude.sh +0 -62
  1473. package/scripts/sync-dogfood-cursor.sh +0 -50
  1474. package/scripts/sync-dogfood-mavis.sh +0 -69
  1475. package/scripts/sync-dogfood-opencode.sh +0 -67
  1476. package/scripts/sync-shared-core-embeds.sh +0 -103
  1477. package/scripts/test-agent-task-metrics-hooks.mjs +0 -1225
  1478. package/scripts/test-chain-team-phases-coverage.mjs +0 -822
  1479. package/scripts/test-cli-init-clean.mjs +0 -794
  1480. package/scripts/test-cli-mcp-merge.mjs +0 -214
  1481. package/scripts/test-mavis-context-budget.mjs +0 -50
  1482. package/scripts/test-mavis-orchestration.mjs +0 -650
  1483. package/scripts/test-opencode-context-budget.mjs +0 -49
  1484. package/scripts/test-parallel-plan-fixtures.mjs +0 -173
  1485. package/scripts/test-plan-contract-fixtures.mjs +0 -132
  1486. package/scripts/test-preset-goal-contract-fixtures.mjs +0 -162
  1487. package/scripts/test-preset-language-policy-fixtures.mjs +0 -194
  1488. package/scripts/test-preset-prompt-persistence-fixtures.mjs +0 -232
  1489. package/scripts/test-preset-self-review-contract-fixtures.mjs +0 -163
  1490. package/scripts/test-probe-mavis-capabilities.mjs +0 -205
  1491. package/scripts/test-task-router-intents-fixtures.mjs +0 -109
@@ -95,7 +95,9 @@ Sync marker (after frontmatter in platform files):
95
95
 
96
96
  **Lineage stems (reference):** `architecture/feature-delivery-workflow`, `architecture/reference-features.template`, `agent-team/agent-team-orchestrator`.
97
97
 
98
- **Prompt-persistence contract (always-on behavior):** every task persists the user's **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent) — written by the `/task` **Slug** bootstrap and, for non-`/task` work requests, by `agent-team-intake`. Every **subsequent user-authored** prompt for the same slug (a new message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer) is appended verbatim by the orchestrator only to the **append-only** `.ai.local/team/tasks/<slug>/prompt-log.md` ledger — `seq` = current max + 1, created on the first follow-up (absence is valid), never rewritten or duplicated; machine-generated hook `followup_message` and empty/argument-less invocations are excluded. It rides existing bodies (`agent-team-orchestrator` + `agent-team-intake` rules, `commands/task.md` + `commands/task-continue.md`) and adds **no** always-on rule. Register both paths on the manifest `routing` entry — never in `artifacts[]` bodies (`core/agent-team/agent-artifact-contracts.md` § Prompt artifact / § Prompt log). Enforced by `scripts/check-preset-prompt-persistence.sh` (wired into `check-preset-structure.sh`).
98
+ **Internal (reference):** `agent-team/agent-artifact-contracts`, `agent-team/agent-task-metrics`. Package-internal schema/SoT docs shipped only inside `@bonesofspring/ai-rules` — **no** adapter embed target and **not** installed into consumer repos. Consumer-facing rules cite them by stem name; consumers read the shipped `.ai.local/team/README.md` schema instead. Every file under `_shared/core` **must** be classified as `embed | lineage | internal` in `scripts/_lib/embed-stems.json`; `check-shared-core-drift.sh` fails on an unclassified core file (a file in none of the lists is silently never embedded and never drift-checked).
99
+
100
+ **Prompt-persistence contract (always-on behavior):** every task persists the user's **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent) — written by the `/task` **Slug** bootstrap and, for non-`/task` work requests, by `agent-team-intake`. Every **subsequent user-authored** prompt for the same slug (a new message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer) is appended verbatim by the orchestrator only to the **append-only** `.ai.local/team/tasks/<slug>/prompt-log.md` ledger — `seq` = current max + 1, created on the first follow-up (absence is valid), never rewritten or duplicated; machine-generated hook `followup_message` and empty/argument-less invocations are excluded. It rides existing bodies (`agent-team-orchestrator` + `agent-team-intake` rules, `commands/task.md` + `commands/task-continue.md`) and adds **no** always-on rule. Register both paths on the manifest `routing` entry — never in `artifacts[]` bodies (`core/agent-team/agent-artifact-contracts.md` § Prompt artifact / § Prompt log). The obligation is anchored on the **always-on** root entry `REPO_AGENTS.md` → `AGENTS.md` (native always-on for every platform), because the A–D consumers (`commands/task.md`, `agent-team-intake`, `agent-team-orchestrator`) are all `referenced`/lazy and only fire under `/task`. Enforced by `scripts/check-preset-prompt-persistence.sh` (wired into `check-preset-structure.sh`), which now also asserts the `REPO_AGENTS.md` clause (check **E**).
99
101
 
100
102
  **Native-language policy (always-on behavior):** development, reasoning, and every artifact stay **English**; every user-facing interaction (clarifying questions, plan/human-gate prompts, `/task-continue`, status answers, summaries, escalations) is written in the user's **native language**. The language is resolved once (`.ai.local/conventions.md` `## Language` — nearest `.ai.local` wins — else inferred from the prompt language, mixed → dominant, else English) and persisted per task as an additive `language: <BCP-47>` line in the `prompt.md` header (+ a `.memlog.md` `event:`; never `status.json` / `metrics.json` / an `artifacts[]` body). The detailed rule is a **requestable** EMBED stem (`core/agent-team/language-policy.md`); the essential clause rides existing always-on bodies (`ai-local-overlay`, the stack `<stack>-app-core`, root `REPO_AGENTS.md` → `AGENTS.md`) and adds **no** new always-on slot. Enforced by `scripts/check-preset-language-policy.sh` (wired into `check-preset-structure.sh`). Runtime output language is **orthogonal** to preset prose language — the prose stays English (`docs/PRESET-ENGLISH-STYLE.md`).
101
103
 
@@ -123,10 +125,24 @@ Session-start body budget (where documented): ≤200 lines total (stretch ≤170
123
125
  **Author meta-rules** (`preset-goals`, `preset-layering`, `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`):
124
126
 
125
127
  - **Never** `alwaysApply: true` / never among the Claude session-start rules.
126
- - Cursor: `globs` → `packages/ai-rules/presets/**` (+ dogfood `.cursor/**` where useful).
127
- - Claude: `paths:` → `packages/ai-rules/presets/**/*` **plus** dogfood `.claude/**/*` (and optionally `.cursor/rules/**/*`, `.ai.local/team/tasks/**/*` for parity with Cursor meta globs).
128
+ - Cursor `globs` / Claude `paths:` → ai-rules repo paths only: `packages/ai-rules/presets/**/*`, `packages/ai-rules/scripts/**/*`, `packages/ai-rules/docs/**/*`. No consumer paths (`.cursor/**`, `.claude/**`, `.ai.local/**`) — those attach meta rules to ordinary pipeline work in consumer repos.
129
+ - **Preset-authoring-only.** The `preset-*` prefix marks a rule authored for maintainers of this package; it is installed but intentionally never consumer-loaded (no agent/command/skill/entry names it). `check-preset-reachability.sh` recognizes the prefix as this class and exempts it — do not add a consumer-facing rule with a `preset-` prefix, and do not rename an authoring meta rule away from it.
130
+
131
+ `check-preset-token-budget.sh` FAILs on always-on meta rules; consumer `build-verifier` agents carry no preset-structure checks.
132
+
133
+ ---
134
+
135
+ ## Rule reachability (OpenCode / Mavis)
136
+
137
+ `adapter-map.json` labels every rule `loadMode`, but only `root-entry` is an enforced load path. A rule labelled `referenced` ("lazy Read … not auto-loaded") can ship with **nothing** that ever names it — the file exists and the adapter-map gate is green, yet no agent, command, skill, or entry will ever read it (e.g. a requested rule that no `## Rules to load` block lists).
138
+
139
+ Reachability per `(platform, stack)`:
140
+
141
+ 1. **direct** — the stem is named by the entry (`OPENCODE.md` / `MAVIS.md` / `REPO_AGENTS.md` / `opencode.json`), an agent, a command, or a skill.
142
+ 2. **always-on** — the closure of rule→rule references starting from the `root-entry` rules (a conditional rule reached only from an always-on rule counts, e.g. `next-app-core` → `next-static-export`).
143
+ 3. a rule reachable by neither, and not `preset-*`, **fails**.
128
144
 
129
- `build-verifier` in each stack documents preset-structure **FAIL** checks for budget and meta loading.
145
+ Gate: `scripts/check-preset-reachability.sh` (wired into `check-preset-structure.sh`; `yarn check:preset-reachability`). When adding a `referenced` rule, name it from an always-on rule, an agent's `## Rules to load (subagent context)` block, a command, a skill, or the root entry — or prefix an authoring-only meta rule with `preset-`.
130
146
 
131
147
  ---
132
148
 
@@ -148,10 +164,13 @@ Summary:
148
164
  - [ ] README / catalog updated when stems added
149
165
  - [ ] CHANGELOG / package README if public install surface changes
150
166
  - [ ] Dogfood: `scripts/sync-dogfood-cursor.sh` (or intentional skip documented)
167
+ - [ ] Core classification: every `_shared/core/**` file is `embed | lineage | internal` in `_lib/embed-stems.json`
168
+ - [ ] Reachability: every new OpenCode/Mavis rule is named by an agent/command/skill/entry or an always-on rule (or is `preset-*` authoring-only) — `scripts/check-preset-reachability.sh`
151
169
  - [ ] Embed drift: `scripts/check-shared-core-drift.sh` after core/embed edits
152
170
  - [ ] Structure gates: `yarn check:preset-structure` (or `bash scripts/check-preset-structure.sh`) passes
171
+ - [ ] Generated trees regenerated (`generate-mavis.mjs` + `generate-opencode.mjs`) and CLI goldens recaptured (`capture-cli-golden.mjs`) after any preset-installed file changes
153
172
 
154
- Validation: stack `agents/build-verifier.md` → **preset-structure validation** section; CI workflow `preset-structure.yml`.
173
+ Validation: `yarn check:preset-structure` + the `preset-pr-checklist` rule; CI workflow `preset-structure.yml`.
155
174
 
156
175
  ---
157
176
 
@@ -201,7 +220,7 @@ Consumer guide: [`OPENCODE.md`](./OPENCODE.md). Compatibility evidence: [`OPENCO
201
220
  | Discovery skill | `skills/spec-discovery/` — requestable; 11 methods + claim ledger; author-mode research-before-spec only (not default `/task`) |
202
221
  | Command | `/spec-start` → task-analyst author mode → human gate (no dedicated `spec-author` agent) |
203
222
  | Agents | **task-analyst** primary author; **tech-writer** post-sync (9 stacks; **mcp-ts analyst-only**); **feature-developer** consumes approved specs as SoT |
204
- | Validation | code-reviewer **WARN** drift / **FAIL** broken INDEX or missing required FM on touched specs; build-verifier **FAIL** missing assets/twins/requestable; optional `scripts/check-product-specs.sh` (**WARN** default, **`--strict`** FAIL; ships in the npm `files` tarball). Checker is bash INDEX/keys/headings — it does **not** evaluate `frontmatter-v1.schema.json` |
223
+ | Validation | code-reviewer **WARN** drift / **FAIL** broken INDEX or missing required FM on touched specs; `check:preset-structure` **FAIL** missing assets/twins/requestable; optional `scripts/check-product-specs.sh` (**WARN** default, **`--strict`** FAIL; ships in the npm `files` tarball). Checker is bash INDEX/keys/headings — it does **not** evaluate `frontmatter-v1.schema.json` |
205
224
  | Dogfood | `dogfood/mcp-ts-sample/docs/specs/` — mcp-ts field semantics (`routes` = tool names) |
206
225
 
207
226
  When adding or changing either stem: update **both** ×20 adapters, README mapping rows, and run `check:shared-core-drift` + `check:preset-structure`.
@@ -229,7 +248,7 @@ Recent additions: **`android-kotlin`** (scaffolded from `ios-swift` agent-team +
229
248
  4. **Embed core** — add `<!-- shared-core: … -->` adapters for shared stems; fill `## Stack notes` with stack examples only in adapters (Go: hexagonal layers; Android: Activity/Compose paths).
230
249
  5. **Claude twin** — create topic `.md` files + **Cursor→Claude mapping table** in `claude/<stack>/rules/README.md`. `go` ships `ui-and-accessibility/README.md` as N/A stub only.
231
250
  6. **Meta-rules** — add six `preset-*.mdc` / `preset-*.md` wrappers with preset-path globs (same as existing stacks).
232
- 7. **build-verifier** — include preset-structure checks + stack leakage list.
251
+ 7. **build-verifier** — consumer gate only (stack tooling); preset-structure checks live in `scripts/check-*.sh` and `preset-pr-checklist`.
233
252
  8. **Platform artifacts** — see next section.
234
253
  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.
235
254
  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`.
@@ -310,7 +329,7 @@ Hooks scripts may fork per stack (e.g. ios-swift `chain-team-phases.sh` must not
310
329
  ## Where to put a new rule
311
330
 
312
331
  1. **Shared principle for all stacks?** → `_shared/core/` → adapters in each stack with marker + Stack notes.
313
- 2. **One stack only?** → `presets/cursor/<stack>/rules/<stem>.mdc` + Claude twin under the correct topic folder.
332
+ 2. **One stack only?** → add `presets/cursor/<stack>/rules/<stem>.mdc`, add its Claude README mapping row, then run `generate-claude.mjs --stack <stack>`.
314
333
  3. **Preset author workflow?** → `_shared/core/meta/` + `preset-*.mdc` / `tooling-and-review/preset-*.md` with preset globs only.
315
334
  4. **Heavy workflow (orchestrator, feature-delivery, code-review)?** → requestable / `paths:` / globs — **not** always-on.
316
335
 
@@ -334,7 +353,7 @@ Parity is by **stem and mapping table**, not identical directory shape. Use `cla
334
353
  | `preset-goals` | `core/meta/preset-goals.md` | Presets' primary goal — autonomous simple **and** complex execution, maximum quality, project specifics |
335
354
  | `preset-layering` | `core/meta/preset-layering.md` | Core → Stack → Platform |
336
355
  | `preset-twin-sync` | `core/meta/preset-twin-sync.md` | SoT, same-PR twins, mapping |
337
- | `preset-token-budget` | `core/meta/preset-token-budget.md` | ≤3 always-on, meta loading |
356
+ | `preset-token-budget` | `core/meta/preset-token-budget.md` | 3–5 always-on; meta requestable |
338
357
  | `preset-pr-checklist` | `core/meta/preset-pr-checklist.md` | Merge checklist |
339
358
  | `preset-no-cross-stack-leakage` | `core/meta/preset-no-cross-stack-leakage.md` | Forbidden cross-stack strings |
340
359
 
@@ -346,12 +365,14 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
346
365
 
347
366
  | Script / npm | Purpose |
348
367
  |--------------|---------|
368
+ | `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. |
349
369
  | `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/`. |
350
- | `scripts/check-shared-core-drift.sh` / `yarn check:shared-core-drift` | Check embed-mode adapters vs core; lists lineage consumers. Soft by default; set `AI_RULES_DRIFT_FAIL=1` (or use `check:preset-structure`) to exit non-zero on drift. |
370
+ | `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. |
351
371
  | `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`. |
352
372
  | `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–5**, `preset-*` always-on, or intended body sum > **200**. Stacks include `nuxt`, `svelte`. |
353
373
  | `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**. |
354
- | `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, 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`. |
374
+ | `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`. |
375
+ | `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`. |
355
376
  | `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>` `native language`; `REPO_AGENTS.md` `native language`), 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`. |
356
377
  | `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`. |
357
378
  | `scripts/check-preset-structure.sh` / `yarn check:preset-structure` | Orchestrator: twin-map + token-budget + leakage + shared-core drift (**all hard**; drift via `AI_RULES_DRIFT_FAIL=1`). Does **not** run rule-eval. |
@@ -436,5 +457,5 @@ When changing intent detection — especially `figma.com` + UX-review wording
436
457
  - CLI codegen / auto twin sync
437
458
  - Physical Cursor topic folders mirroring Claude
438
459
  - Mass rewrite of stack domain rule bodies
439
- - Dedicated `preset-verifier` agent (today: `build-verifier` preset-structure section + structure scripts)
460
+ - Dedicated `preset-verifier` agent (today: structure scripts + `preset-pr-checklist`)
440
461
  - ~~Tighten leakage WARN heuristics~~ — done: negation mentions suppressed; fixture `skipped` must list Phase-1 roster agents only (`mcp-ts` policy)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonesofspring/ai-rules",
3
- "version": "0.2.34",
3
+ "version": "0.2.36",
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",
@@ -27,9 +27,14 @@
27
27
  "bin",
28
28
  "docs",
29
29
  "presets",
30
- "scripts"
30
+ "scripts/check-product-specs.sh",
31
+ "scripts/aggregate-agent-task-metrics.mjs",
32
+ "scripts/close-agent-task-human-gate.mjs"
31
33
  ],
32
34
  "scripts": {
35
+ "check:all": "bash scripts/check-preset-structure.sh && node scripts/check-rule-eval.mjs && node scripts/test-parallel-plan-fixtures.mjs",
36
+ "check:fast": "AI_RULES_SKIP_HOOK_TESTS=1 bash scripts/check-preset-structure.sh",
37
+ "test:hooks": "node scripts/test-chain-team-phases-coverage.mjs && node scripts/test-agent-task-metrics-hooks.mjs",
33
38
  "check:preset-structure": "bash scripts/check-preset-structure.sh",
34
39
  "check:parallel-plan": "bash scripts/check-parallel-plan.sh",
35
40
  "check:step-graph-contract": "bash scripts/check-step-graph-contract.sh",
@@ -40,6 +45,7 @@
40
45
  "check:preset-leakage": "bash scripts/check-preset-leakage.sh",
41
46
  "check:figma-contract": "bash scripts/check-figma-contract-presence.sh",
42
47
  "check:hook-only-lifecycle": "bash scripts/check-hook-only-lifecycle.sh",
48
+ "check:preset-reachability": "bash scripts/check-preset-reachability.sh",
43
49
  "check:local-overlay": "bash scripts/check-local-overlay.sh",
44
50
  "check:preset-i18n": "AI_RULES_I18N_FAIL=1 AI_RULES_I18N_SOFT=0 bash scripts/check-preset-i18n.sh",
45
51
  "check:frontmatter": "node scripts/check-frontmatter.mjs",
@@ -48,6 +54,9 @@
48
54
  "check:product-specs:dogfood": "bash scripts/check-product-specs.sh ../../dogfood/mcp-ts-sample",
49
55
  "check:rule-eval": "node scripts/check-rule-eval.mjs",
50
56
  "check:generated-drift": "node scripts/check-generated-drift.mjs",
57
+ "test:generated-drift-fixtures": "node scripts/test-generated-drift-fixtures.mjs",
58
+ "test:generate-claude-fixtures": "node scripts/test-generate-claude-fixtures.mjs",
59
+ "test:generated-drift-claude-fixtures": "node scripts/test-generated-drift-claude-fixtures.mjs",
51
60
  "test:cli-mcp-merge": "node scripts/test-cli-mcp-merge.mjs",
52
61
  "test:cli-init-clean": "node scripts/test-cli-init-clean.mjs",
53
62
  "test:chain-coverage": "node scripts/test-chain-team-phases-coverage.mjs",
@@ -64,6 +73,8 @@
64
73
  "check:opencode-local-overlay": "node scripts/check-opencode-local-overlay.mjs",
65
74
  "test:opencode-context-budget": "node scripts/test-opencode-context-budget.mjs",
66
75
  "test:probe-mavis-capabilities": "node scripts/test-probe-mavis-capabilities.mjs",
76
+ "fix:generated": "node scripts/fix-generated.mjs",
77
+ "generate:claude": "node scripts/generate-claude.mjs",
67
78
  "generate:mavis": "node scripts/generate-mavis.mjs",
68
79
  "generate:opencode": "node scripts/generate-opencode.mjs"
69
80
  },
@@ -18,6 +18,8 @@ Meta-rules: `core/meta/preset-*.md` (e.g. `preset-goals`). Guide: [`docs/PRESET-
18
18
  3. **Embed** adapters must match core (minus frontmatter / `## Stack notes`). **Lineage** adapters are stack-specific; do not expect a byte match.
19
19
  4. Gate: `scripts/check-shared-core-drift.sh`. Dogfood: `scripts/sync-dogfood-cursor.sh`.
20
20
 
21
+ Every core file is classified in `scripts/_lib/embed-stems.json` as **embed**, **lineage**, or **internal** (package-internal SoT: `agent-artifact-contracts`, `agent-task-metrics` — no embed target, never shipped to consumers, cited by stem name from consumer rules). The drift gate **fails** on an unclassified core file.
22
+
21
23
  `/task` templates live in each stack’s `team/` and seed **`.ai.local/team/`** — not this folder.
22
24
 
23
25
  Every task persists the user’s **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent), and every **subsequent user-authored** prompt is appended verbatim to the **append-only** `.ai.local/team/tasks/<slug>/prompt-log.md` ledger (orchestrator-only, `seq` = max + 1, created on first follow-up; hook `followup_message` excluded). The contract lives in `core/agent-team/` (orchestrator + intake rules and `agent-artifact-contracts.md` § Prompt artifact / § Prompt log); both paths are registered on the `routing` manifest entry — never in `artifacts[]` bodies.
@@ -121,7 +121,7 @@ Each producing agent runs a **pre-receipt self-review** of its own output — go
121
121
 
122
122
  - **Context loss vs excess/noise.** *Loss* = a dropped/misattributed AC or constraint, a stale plan vs the current request, a forgotten prior decision. *Excess/noise* = irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk.
123
123
  - **Re-anchor.** On detected drift, return the run to the framed task: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Re-anchor is a **trigger source of the existing `plan-graph` `replan`** — no second orchestrator, no `status.json`/`metrics.json` field.
124
- - **Recording & ratchet.** The producer writes a `## Self-review` block in the artifact it owns; the correction lives only in `.memlog.md` (hook-only lifecycle preserved). No self-review, context-health pass, or re-anchor for `bounded`/`spike` tasks (or the `light` profile) — ratchet up for `standard`/`architectural`, never down past a required verification gate. See the requestable `quality/self-review-and-context-hygiene` contract.
124
+ - **Recording & ratchet.** The producer writes a `## Self-review` block in the artifact it owns; the correction lives only in `.memlog.md` (hook-only lifecycle preserved). No self-review, context-health pass, or re-anchor for `bounded`/`spike` tasks (or the `light` profile) — ratchet up for `standard`/`architectural`, never down past a required verification gate. See the requestable `quality/self-review-and-context-hygiene` contract — including the optional rule-improvement loop (append wrong-turn signals to `.ai.local/signals.jsonl` and run `.ai.local/scripts/rule-improver.mjs`) when that script exists.
125
125
 
126
126
  ## status.json (pipeline mode)
127
127
 
@@ -8,7 +8,7 @@ Typical feature with data and UI. Concrete directories and rule stems — in the
8
8
  2. **Transport / DTO** — DTOs and mappers Domain ↔ transport (must not leak into UI).
9
9
  3. **Services / Data** — repository / API-service implementations via the stack’s public clients.
10
10
  4. **State** — store / ViewModel / use cases; no direct HTTP and no DTOs in UI.
11
- 5. **UI** — thin views/components; data via state; design system. If the prompt or `brief.md` contains a `figma.com` URL, **mockup review must complete** (or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue`) **before UI work**. When required-signal and **no** `figma.com`, **`ux-design.md` must exist** (not `INCOMPLETE`) before UI work — else blocked, hand back to analyst. Non-UI tasks no-op these gates. When a mockup contract exists for the WP, the UI step consumes it (per-node spec = the binding baseline) and a **mandatory post-implementation verification gate** runs against it at every declared viewport — screenshot / value / state / structural-parity diff plus a freeze re-check; unmapped implemented components are findings, not silent additions.
11
+ 5. **UI** — thin views/components; data via state; design system. If the prompt or `brief.md` contains a `figma.com` URL, **mockup review must complete** (or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue`) **before UI work**. When required-signal and **no** `figma.com`, **`ux-design.md` must exist** (not `INCOMPLETE`) before UI work — else blocked, hand back to analyst. Non-UI tasks no-op these gates. When a mockup contract exists for the WP, the UI step consumes it (per-node spec = the binding baseline) and a post-implementation verification gate runs against it (scope per `mockup-review` § Post-implementation gate) — screenshot / value / state / structural-parity diff plus a freeze re-check; unmapped implemented components are findings, not silent additions.
12
12
  6. **Tests** — unit for mappers / non-trivial logic; e2e/UI per stack convention.
13
13
  7. **Completion** — stack post-change gate (lint/build) + package/toolchain rules. When the current WP spans **more than one** layer or module, `implementation.md` includes a **Code Map** (3–8 annotated repo-relative paths) and **Suggested Review Order** (`concern | path:line | ≤15 word note`). Omit both for a single-file or single-layer WP.
14
14
 
@@ -81,7 +81,6 @@ Required instead: package-manager–discovered typecheck/test (`mcp-ts-tooling`,
81
81
  ## Soft / document
82
82
 
83
83
  - Mentioning the other stack in **docs** comparing presets is OK.
84
- - `build-verifier` may reference other stacks when validating **preset packaging** (`scope: preset-structure-validation`).
85
84
 
86
85
  ## Chain fork
87
86
 
@@ -8,7 +8,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
8
8
  - [ ] **Writing:** rules concise and testable, no demagogy or duplicated prose (`preset-writing-style`)
9
9
  - [ ] **SoT:** edits in `packages/…` (not only root `.cursor/`)
10
10
  - [ ] **Core:** if `_shared/core/**` changed — all `<!-- shared-core: … -->` consumers updated (or documented intentional fork)
11
- - [ ] **Twin:** Cursor change → Claude twin **same PR** (**FAIL** if missing on next, nuxt, svelte, ios-swift, android-kotlin, go, java, mcp-ts, php-hexagonal, and php-laravel — see `preset-twin-sync`)
11
+ - [ ] **Twin:** Cursor change → run `generate-claude.mjs --stack <stack>` and commit the Claude twin **same PR** (**FAIL** if missing or stale on next, nuxt, svelte, ios-swift, android-kotlin, go, java, mcp-ts, php-hexagonal, and php-laravel — see `preset-twin-sync`)
12
12
  - [ ] **Mavis derive:** mapped `cursor/<stack>/` change → `mavis/<stack>/` + `adapter-map.json` **same PR** when the stack is in `releasedStacks` (run `generate-mavis.mjs --stack <stack>` + `check-mavis-adapter-map.mjs`; see `preset-twin-sync` § Mavis derivation)
13
13
  - [ ] **OpenCode derive:** mapped `cursor/<stack>/` change → `opencode/<stack>/` + `adapter-map.json` **same PR** when the stack is in `releasedStacks` (run `generate-opencode.mjs --stack <stack>` + `check-opencode-adapter-map.mjs`; see `preset-twin-sync` § OpenCode derivation)
14
14
  - [ ] **Mapping:** `claude/<stack>/rules/README.md` mapping table is current
@@ -23,6 +23,10 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
23
23
  - [ ] **i18n anchors:** kept-marked Cyrillic fragments in `tests-unit.md(c)` stay consistent with their English counterparts. Run `packages/ai-rules/scripts/check-preset-i18n.sh`.
24
24
  - [ ] **Dogfood:** run `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, and `sync-dogfood-opencode.sh` when those platforms changed, or document an intentional skip, when maintaining this monorepo
25
25
  - [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
26
+ - [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
27
+ - [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
28
+ - [ ] **Rule eval (soft):** `node packages/ai-rules/scripts/check-rule-eval.mjs` when rule bodies changed
29
+ - [ ] **Gate:** `yarn check:preset-structure` from `packages/ai-rules/` (twin-map, token-budget, leakage, drift, i18n, local overlay)
26
30
 
27
31
  ## Pointers
28
32
 
@@ -32,7 +36,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
32
36
  - Sync: `preset-twin-sync`
33
37
  - Budget: `preset-token-budget`
34
38
  - Leakage: `preset-no-cross-stack-leakage`
35
- - Validation: stack `agents/build-verifier.md` → preset-structure section
39
+ - Validation: `yarn check:preset-structure` (`packages/ai-rules/scripts/check-preset-structure.sh`)
36
40
  - Dogfood scripts: `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, `sync-dogfood-opencode.sh`
37
41
  - Drift script: `packages/ai-rules/scripts/check-shared-core-drift.sh`
38
42
  - Orchestrator: when editing presets, load this checklist + twin-sync
@@ -25,8 +25,7 @@ Session-start body budget:
25
25
  Rules for preset authors (`preset-layering`, `preset-twin-sync`, …):
26
26
 
27
27
  - **Never** `alwaysApply: true` on consumer installs.
28
- - Cursor: `globs` limited to `packages/ai-rules/presets/**` (and dogfood `.cursor/**` where useful).
29
- - Claude: `paths:` limited to `packages/ai-rules/presets/**` (and `.claude/**` dogfood if present).
28
+ - Cursor `globs` / Claude `paths:` limited to ai-rules repo paths: `packages/ai-rules/presets/**`, `packages/ai-rules/scripts/**`, `packages/ai-rules/docs/**`. No consumer paths (`.cursor/**`, `.claude/**`, `.ai.local/**`) — they would attach to ordinary pipeline work.
30
29
 
31
30
  ## Heavy workflows
32
31
 
@@ -34,4 +33,4 @@ Orchestrator, feature-delivery, code-review, post-change gates, domain globs —
34
33
 
35
34
  ## Verifier
36
35
 
37
- build-verifier **FAIL** if Cursor `alwaysApply` count or Claude session-start count is outside **3–5** (Claude count **excludes `**/README.md`**), or if a `preset-*` meta rule is marked always-on.
36
+ `check-preset-token-budget.sh` FAILs if Cursor `alwaysApply` count or Claude session-start count is outside **3–5** (Claude count **excludes `**/README.md`**), or if a `preset-*` meta rule is marked always-on.
@@ -6,7 +6,7 @@ Cursor `.mdc` is the **SoT per stack**; every other platform tree is derived in
6
6
 
7
7
  | Target | From | Command / rule |
8
8
  |--------|------|----------------|
9
- | **Claude twin** | `cursor/<stack>/rules/*.mdc` | hand-derived: body + `paths:` (from `globs:`), drop `alwaysApply`; row **required** in `claude/<stack>/rules/README.md` |
9
+ | **Claude twin** | `cursor/<stack>/rules/*.mdc` | `generate-claude.mjs --stack <stack>`; destination row **required** in `claude/<stack>/rules/README.md` |
10
10
  | **Mavis** | `cursor/<stack>/**` | `generate-mavis.mjs --stack <stack>`; manifest `adapter-map.json` required |
11
11
  | **OpenCode** | `cursor/<stack>/**` | `generate-opencode.mjs --stack <stack>`; manifest `adapter-map.json` required |
12
12
 
@@ -21,9 +21,9 @@ Validate: `check-mavis-adapter-map.mjs`, `check-opencode-adapter-map.mjs`, `chec
21
21
  ## Same-PR checklist
22
22
 
23
23
  1. Edit the Cursor rule first (body + frontmatter).
24
- 2. Update the Claude twin (body + `paths:`); update the README mapping row if the stem/path changed.
24
+ 2. Add or update the Claude README mapping row when the stem/path changed, then run `generate-claude.mjs --stack <stack>`.
25
25
  3. Core changed → sync every `<!-- shared-core: … -->` consumer (`sync-shared-core-embeds.sh`).
26
- 4. Cursor source changed → regenerate `mavis/<stack>/` and `opencode/<stack>/` and refresh each `adapter-map.json` `sourceRevision`.
26
+ 4. Cursor source changed → run `yarn fix:generated` to regenerate Claude, Mavis, and OpenCode and recapture required CLI goldens.
27
27
 
28
28
  ## Twin depth
29
29
 
@@ -31,9 +31,9 @@ Validate: `check-mavis-adapter-map.mjs`, `check-opencode-adapter-map.mjs`, `chec
31
31
  - **Thin aliases** (`agent-team-intake`, `technical-retro`): may be shorter (soft) if they only point to a command/skill.
32
32
  - **Slim-companion rules** (UI-edit bundle, slim app-cores, slim tooling): may be shorter only if the body is a pointer into shared-core / stack prose. `check-preset-token-budget.sh` enforces this via `SLIM_COMPANION_ALLOWLIST` and the 5-line floor; 6–14-line stems outside the allow-list are slim violations.
33
33
 
34
- ## Severity (build-verifier)
34
+ ## Severity (`check:preset-structure`)
35
35
 
36
- - Missing Claude twin for a changed Cursor rule → **FAIL** (all 10 stacks; mapping table required).
36
+ - Missing or stale generated Claude twin for a changed Cursor rule → **FAIL** (all 10 stacks; mapping table required).
37
37
  - `cursor/<stack>` mapped source changed without mavis / opencode regeneration, or with `adapter-map.json` `sourceRevision` drift → **FAIL**.
38
38
 
39
39
  Dogfood: sync packages → root `.cursor/` after Cursor SoT changes (never the reverse): `sync-dogfood-cursor.sh`.
@@ -44,6 +44,17 @@ multi-wave work). It ratchets down for bounded/spike tasks (see § Ratchet).
44
44
  (`event:` line; or `decision: replan rev N → N+1` when the plan changes).
45
45
  - Adds **no** `status.json` / `metrics.json` field (hook-only lifecycle preserved).
46
46
 
47
+ ## In-task rule-improvement loop (optional)
48
+
49
+ - **Opt-in and conditional — only when `.ai.local/scripts/rule-improver.mjs` exists.** At the pre-receipt
50
+ self-review, if you observed a wrong-turn or gate failure, append one signal line to `.ai.local/signals.jsonl`
51
+ (`kind` ∈ `correction|retry|waste|reversal|dead-end`; `signature` = the canonical `kind:normalized-issue` dedup
52
+ key; full field set per `.ai.local/scripts/signals.mjs`), then run `node .ai.local/scripts/rule-improver.mjs`.
53
+ - The script enforces the Rule of Three (≥2 distinct tasks → edit a local rule or `conventions.md` gotcha; ≥3 →
54
+ stage a new rule) and applies or stages per the two-band autonomy policy. Never count the threshold by hand; never
55
+ edit the script. No store or script → skip silently. Not a new pipeline step and not a lifecycle field.
56
+ - **Ratchet.** Inherits the § Ratchet — `bounded`/`spike`/`light` tasks skip this exactly as they skip self-review.
57
+
47
58
  ## Ratchet (bounded / spike)
48
59
 
49
60
  - No self-review ceremony, no context-health pass, and no re-anchor for one-file / trivial tasks
@@ -30,7 +30,7 @@ Cite `fileKey` + node IDs. Screenshots are supporting evidence, not a second rev
30
30
 
31
31
  ## Review dimensions
32
32
 
33
- ### DS components (AC-4)
33
+ ### DS components
34
34
 
35
35
  When an attached library is detectable (`search_design_system` / `get_metadata`): list **library component instances vs custom frames** with file/node references. Flag substitutions where a DS equivalent exists.
36
36
 
@@ -40,14 +40,14 @@ When an attached library is detectable (`search_design_system` / `get_metadata`)
40
40
 
41
41
  Confidence: `high` (MCP library match) / `low` (unpublished or mixed) — prefer `PASS_WITH_NOTES` over FAIL when confidence is low.
42
42
 
43
- ### Tokens (AC-5)
43
+ ### Tokens
44
44
 
45
45
  When variables/styles are available (`get_variable_defs`, style metadata): flag fills, strokes, spacing, or typography that use raw values instead of bound variables/styles.
46
46
 
47
47
  - Isolated unbound values → **WARN** (`PASS_WITH_NOTES`)
48
- - Wholesale token ignore on a library-attached file (systemic; treat as critical DS with AC-4) → **FAIL**
48
+ - Wholesale token ignore on a library-attached file (systemic; treat as critical DS) → **FAIL**
49
49
 
50
- ### Quality (AC-6)
50
+ ### Quality
51
51
 
52
52
  Cover at minimum, each item PASS / WARN / FAIL eligible:
53
53
 
@@ -57,9 +57,9 @@ Cover at minimum, each item PASS / WARN / FAIL eligible:
57
57
  - Component variant/property correctness
58
58
  - Detached or orphaned component instances
59
59
 
60
- Naming hygiene, minor detached instances, text-style drift → **WARN**. Detached **core** DS component that is a substitution → **FAIL** (same as AC-4 critical). Absolute layout on a region that is the only «responsive» evidence → WARN unless it also fails viewports.
60
+ Naming hygiene, minor detached instances, text-style drift → **WARN**. Detached **core** DS component that is a substitution → **FAIL** (same as a critical DS-component finding). Absolute layout on a region that is the only «responsive» evidence → WARN unless it also fails viewports.
61
61
 
62
- ### Feature coverage (AC-7)
62
+ ### Feature coverage
63
63
 
64
64
  Map **flows → screens/frames**, **actions → interactive elements**, and **states** (empty, loading, error, success, disabled/validation). List explicit **missing** items. Label scope **`inferred`** when only a URL is provided (no brief AC).
65
65
 
@@ -67,7 +67,7 @@ Map **flows → screens/frames**, **actions → interactive elements**, and **st
67
67
  - Missing empty/loading/error/success on a form/list called out in AC → **FAIL**
68
68
  - Missing secondary states (disabled/validation) not in AC → **WARN**
69
69
 
70
- ### Viewports (AC-8)
70
+ ### Viewports
71
71
 
72
72
  Verify **≥3 viewport representations** (small / medium / large) via dedicated frames, Figma viewport presets, or responsive component variants.
73
73
 
@@ -78,9 +78,9 @@ Verify **≥3 viewport representations** (small / medium / large) via dedicated
78
78
 
79
79
  Isolated **WARN** never blocks. Overall verdict = worst FAIL > BLOCKED_MCP > PASS_WITH_NOTES > PASS. Multiple WARNs without FAIL → `PASS_WITH_NOTES`, not FAIL.
80
80
 
81
- ## Node→component map (AC-1)
81
+ ## Node→component map
82
82
 
83
- The map MUST cover the **root node first**, then **every non-decorative child** (decorative leaves may be skipped, and the skip MUST be justified in one line). Every row MUST resolve to exactly one target:
83
+ The map covers the root node first, then every non-decorative child (a skipped decorative leaf gets a one-line justification). Every row resolves to exactly one target:
84
84
 
85
85
  - `existing` — a component already in the repo UI layer (the redesign / refactor case), **with** its intended `delta` (`new` | `restyle` | `restructure` | `unchanged`);
86
86
  - `ds` — an attached design-system / library symbol;
@@ -88,11 +88,11 @@ The map MUST cover the **root node first**, then **every non-decorative child**
88
88
 
89
89
  New-components-only wording that omits the existing / redesign case → **FAIL**. A `new` row without a parent, or an `existing` row without a `delta`, → **FAIL**.
90
90
 
91
- ## Per-node spec (AC-4)
91
+ ## Per-node spec
92
92
 
93
- The mockup spec MUST be **per node**, not a file-level or subtree-level variable list. Every node row carries its **own** bound values for **color / spacing / radius / effect / typography / text**, plus assets, each with the design-source variable or text-style name **and** the repo token / symbol it maps to. A node row with an empty value set where the node has any bound value, or a value present without its source name + repo token → **FAIL**.
93
+ The mockup spec is per node, not a file-level or subtree-level variable list. Every node row carries its own bound values for color / spacing / radius / effect / typography / text, plus assets, each with the design-source variable or text-style name and the repo token / symbol it maps to. A node row with an empty value set where the node has any bound value, or a value present without its source name + repo token → **FAIL**.
94
94
 
95
- ## Design-source defect taxonomy (AC-9)
95
+ ## Design-source defect taxonomy
96
96
 
97
97
  Classify every design-source defect into exactly one category, each with the node reference and an actionable disposition:
98
98
 
@@ -102,29 +102,34 @@ Classify every design-source defect into exactly one category, each with the nod
102
102
 
103
103
  A category without a disposition, or a finding without a node id → **FAIL**.
104
104
 
105
- ## Mockup change escalation (AC-10)
105
+ ## Mockup change escalation
106
106
 
107
107
  A defect whose fix is a change **in the design source** (not in the implementation) is escalated as a `mockup-change-requested` **report** verdict — never silently approximated. The escalation names the human action (fix the design source → re-run the mockup review) and lists one row per defect. The receipt vocabulary is unchanged.
108
108
 
109
- ## Contract freeze (AC-17)
109
+ ## Contract freeze
110
110
 
111
111
  The per-node spec + node map form a **frozen contract**. Record a checksum over the spec and the design-source revision. Any later read that observes a changed revision for the root or a mapped node emits `MOCKUP_CHANGED_AFTER_CONTRACT` with the changed node ids. Re-baselining requires a **new mockup-review pass**; a downstream agent may never mutate the contract checksum / version in place.
112
112
 
113
113
  ## Degradation
114
114
 
115
- When a required design-source or browser-automation MCP is unavailable, the check is **never silently skipped**. Emit a named `degraded:` / `blocked:` marker identifying the disabled check, and cap the verdict: `BLOCKED_MCP` when the design source itself is unavailable, otherwise no better than `PASS_WITH_NOTES`. A verdict may never exceed `PASS_WITH_NOTES` while any mandatory check is degraded, and no fidelity claim may be invented.
115
+ When a required design-source or browser-automation MCP is unavailable, the check is **never silently skipped**. Emit a named `degraded:` / `blocked:` marker identifying the disabled check, and cap the verdict: `BLOCKED_MCP` when the design source itself is unavailable, otherwise no better than `PASS_WITH_NOTES`. A verdict may never exceed `PASS_WITH_NOTES` while any in-scope check is degraded, and no fidelity claim may be invented.
116
116
 
117
- ## Post-implementation gate (mandatory)
117
+ ## Post-implementation gate
118
118
 
119
- For a UI work package with a mockup contract, post-implementation verification is **mandatory, not advisory**, and runs at **every** declared viewport (no sampling):
119
+ For a UI work package with a mockup contract, verify the implementation before the work package is complete. Scope is proportional:
120
+
121
+ - **default** — nodes changed by the diff, at the project's primary viewports (e.g. mobile + desktop);
122
+ - **full** — every contract node at every declared viewport plus a fluid sweep between them, when the task opts in (e.g. `fidelity: full`) or adds a new screen.
123
+
124
+ In-scope checks:
120
125
 
121
126
  - **screenshot diff** — the design-source frame vs the running application captured at the same width;
122
127
  - **state diff** — two-way against the required state matrix (a state present in the mockup but missing in the implementation → `blocker`; a state required by the task but absent from the mockup → `mockup-change-requested`);
123
- - **value diff** — per node × property (typography / color / spacing / radius / effect / asset / text): the expected design-source value vs the rendered / computed actual, using the live DOM and the running application;
128
+ - **value diff** — per node × property (typography / color / spacing / radius / effect / asset / text): the expected design-source value vs the rendered / computed actual;
124
129
  - **structural parity** — the implemented component tree against the node map, 1:1;
125
130
  - **freeze re-check** — re-read the design-source revision and compare it to the recorded one.
126
131
 
127
- A mandatory check skipped without a named marker → **FAIL**. The product MCP names and the exact per-check matrix live in the adapter **Stack notes** and the post-implementation skill.
132
+ An in-scope check skipped without a named marker → **FAIL**. The product MCP names and the procedure live in the adapter **Stack notes** and the post-implementation skill.
128
133
 
129
134
  ## Report headings
130
135
 
@@ -144,17 +149,17 @@ PASS | PASS_WITH_NOTES | FAIL | BLOCKED_MCP | mockup-change-requested
144
149
  ## Critical (must fix)
145
150
  ## Warnings (should fix)
146
151
  ## Suggestions
147
- ## DS compliance (AC-4, AC-5)
148
- ## Quality (AC-6)
149
- ## Feature coverage (AC-7)
150
- ## Viewport matrix (AC-8)
152
+ ## DS compliance
153
+ ## Quality
154
+ ## Feature coverage
155
+ ## Viewport matrix
151
156
  ## Design contract
152
- ## Node decomposition (AC-2)
153
- ## Per-node spec (AC-4)
154
- ## State matrix (AC-6)
155
- ## Design-source defect taxonomy (AC-9)
156
- ## Mockup change requests (AC-10)
157
- ## Contract freeze (AC-17)
157
+ ## Node decomposition
158
+ ## Per-node spec
159
+ ## State matrix
160
+ ## Design-source defect taxonomy
161
+ ## Mockup change requests
162
+ ## Contract freeze
158
163
  ## AC coverage
159
164
  | Criterion | Status | Notes |
160
165
  ```
@@ -20,19 +20,23 @@ Per-tool: `init cursor|claude|mavis|opencode --preset android-kotlin`. `init` ov
20
20
 
21
21
  ## Presence-based load
22
22
 
23
- When the tree exists, read the tool map, then the essential rules. Do not preload the full catalog.
23
+ Read the map and the essential rules for the tool you are running in. Do not preload the full catalog. Do not read the other installed tool trees — their copies of the same rules belong to that host.
24
24
 
25
- - If `.cursor/` exists: read `.cursor/AGENTS.md`.
26
- - If `.claude/` exists: read `.claude/CLAUDE.md`.
27
- - If `.mavis/` exists: read `.mavis/AGENTS.md`, then `.mavis/rules/android-app-core.md`, `.mavis/rules/architecture-boundaries.md`, `.mavis/rules/code-quality-and-refactoring.md`, `.mavis/rules/ai-local-overlay.md`.
28
- - If `.opencode/` exists: read `.opencode/AGENTS.md`, then `.opencode/rules/android-app-core.md`, `.opencode/rules/architecture-boundaries.md`, `.opencode/rules/code-quality-and-refactoring.md`, `.opencode/rules/ai-local-overlay.md`.
25
+ - Cursor host: `.cursor/AGENTS.md`. Always-on rules are already injected.
26
+ - Claude Code host: `.claude/CLAUDE.md`. Session-start rules are already injected.
27
+ - Mavis host: read `.mavis/AGENTS.md`, then `.mavis/rules/android-app-core.md`, `.mavis/rules/architecture-boundaries.md`, `.mavis/rules/code-quality-and-refactoring.md`, `.mavis/rules/ai-local-overlay.md`.
28
+ - OpenCode host: read `.opencode/AGENTS.md`, then `.opencode/rules/android-app-core.md`, `.opencode/rules/architecture-boundaries.md`, `.opencode/rules/code-quality-and-refactoring.md`, `.opencode/rules/ai-local-overlay.md`.
29
29
 
30
- Mavis has no native rule discovery without those root paths. OpenCode has no `alwaysApply` engine — the four `.opencode/rules/*.md` files above are the always-on set.
30
+ Mavis has no native rule discovery without those root paths. OpenCode has no `alwaysApply` engine — those root-entry files are its always-on set.
31
31
 
32
32
  ## Pipelines are shared
33
33
 
34
34
  `/task` slug, `status.json`, and `metrics.json` live under `.ai.local/team/tasks/<slug>/`. Cursor, Claude, Mavis, and OpenCode share this folder (including `init multi`).
35
35
 
36
+ ## Prompt persistence (every work request)
37
+
38
+ For **every** work request — with or without `/task` — persist the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent; never overwrite on resume). Append each **subsequent** user-authored prompt for the same slug (a new message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer) verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; never rewrite or duplicate an entry; never touch `prompt.md`). Never persist machine-generated hook messages or empty/argument-less invocations; pure questions and trivial one-liners are not work requests. Details: the `agent-team-intake` and `agent-team-orchestrator` rules.
39
+
36
40
  ## Commands (test / lint / build)
37
41
 
38
42
  Discover the Gradle wrapper (`./gradlew` or a documented wrapper script from README/CI). Modules/variants — from Gradle + `gradle/libs.versions.toml` / `build-logic/`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: build-verifier
3
- description: Validation gate specialist. Discovers Gradle compile/lint/unit after implementation; writes validation-report.md. Never fixes app source. For preset packaging tasks, validates android-kotlin structure.
3
+ description: Validation gate specialist. Discovers Gradle compile/lint/unit after implementation; writes validation-report.md. Never fixes app source.
4
4
  readonly: false
5
5
  model: fast
6
6
  ---
@@ -30,7 +30,7 @@ You **validate** Android/Kotlin implementation quality — do not edit productio
30
30
 
31
31
  1. `.ai.local/team/tasks/<slug>/brief.md` and `decomposition.md`.
32
32
  2. `.ai.local/team/tasks/<slug>/pipeline.json` — step context and `scope`.
33
- 3. Git diff / changed files (Kotlin/Android modules or preset paths).
33
+ 3. Git diff / changed files (Kotlin/Android modules).
34
34
 
35
35
  ## App / feature validation (default)
36
36
 
@@ -58,39 +58,7 @@ Before you run the project gate and write the terminal validation receipt, self-
58
58
 
59
59
  **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
60
60
 
61
- Record a `## Self-review` block in `validation-report.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
62
-
63
- ## Preset-structure validation (when scope is preset / packages/ai-rules)
64
-
65
- When validating **android-kotlin preset** changes (or `scope: preset-structure-validation`), **also** run these checks. Skip Gradle app builds if there are **no** Android app changes.
66
-
67
- ### FAIL (android-kotlin packaging)
68
-
69
- 1. **Token budget:** Cursor `alwaysApply: true` count 3–5; Claude rules without `paths:` 3–5 (**exclude `**/README.md`**). Meta `preset-*` rules must **not** be always-on.
70
- 2. **Chain fork:** `hooks/chain-team-phases.sh` byte-≠ every other stack (Cursor + Claude).
71
- 3. **Forbidden handoff strings** in android-kotlin `chain-team-phases.sh` (Cursor + Claude): `playwright-test-`, `playwright-agents`, `playwright-e2e`, `user-playwright`, `app/__tests__/e2e`, `xcuitest-test-`, positive `xcodebuild` / `SwiftLint` as required handoffs, positive yarn `lint:js` / `lint:css`.
72
- 4. **Required handoff stems:** `AGENT_HANDOFF` includes `instrumentation-test-planner` (or generator/healer); `build-verifier` prose mentions `gradle-tooling` and/or `post-change-build`.
73
- 5. **Roster:** ~22 agent stems; no `playwright-test-*`, `xcuitest-test-*`, `integration-test-*` files; no `react-performance` skill.
74
- 6. **Twin presence (hard):** Cursor rule → Claude twin + mapping row — **FAIL** if missing.
75
- 7. **Mapping / README:** `claude/android-kotlin/rules/README.md` mapping table present.
76
- 8. **shared-core consumers:** if `_shared/core/**` changed, matching embeds updated (or intentional fork documented).
77
- 9. **Session-start body budget:** sum of the intended always-on / session-start bodies ≤ **200** lines.
78
- 10. **Embed drift:** `packages/ai-rules/scripts/check-shared-core-drift.sh` with `AI_RULES_DRIFT_FAIL=1`.
79
- 11. **Root AGENTS template:** ship `REPO_AGENTS.md` → **FAIL** if missing.
80
- 12. **Hooks cookbook:** `hooks.json` must **not** reference `hooks/examples/`.
81
- 13. **AC-11 vendor neutrality:** no private consumer repo names, brand/product vendor strings, or org-specific type names in `presets/{cursor,claude}/android-kotlin/**`.
82
- 14. Prefer `yarn check:preset-structure` (twin-map + token-budget + leakage + i18n).
83
-
84
-
85
- **mockup-reviewer (UI):** `agents/mockup-reviewer.md` and `skills/mockup-review/` must exist (Cursor + Claude). Missing → **FAIL**. Backend stacks must **not** ship that agent file or a required `mockup-reviewer` chain handoff → **FAIL** if present.
86
-
87
- **ux-design (UI):** `skills/ux-design/` and requestable rule `ux-design` (`ux-design.mdc` / `tooling-and-review/ux-design.md`) must exist (Cursor + Claude). Missing → **FAIL**. Do **not** require `agents/ux-designer.md`. Backend stacks must **not** ship that agent file or a required `ux-design` skill/rule/handoff → **FAIL** if present.
88
-
89
-
90
- ### Soft rules
91
-
92
- - Thin aliases (`agent-team-intake`, `technical-retro`) may be &lt;15 body lines; domain rules ≥15.
93
- - Peer installable presets include `android-kotlin` alongside `next`, `nuxt`, `svelte`, `ios-swift`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`.
61
+ Record a `## Self-review` block in `validation-report.md` (goal/AC coverage, evidence, alignment/drift). Optional loop: when `.ai.local/scripts/rule-improver.mjs` exists, append wrong-turn signals to `.ai.local/signals.jsonl` and run the improver (see the requestable `self-review-and-context-hygiene` contract). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
94
62
 
95
63
  ## Output
96
64
 
@@ -109,5 +77,3 @@ Write the owned validation receipt (`completed` or `validation_failed`). Do not
109
77
  - **Terminal receipt:** cover applicable AC/task IDs; emit `completed` or `validation_failed`.
110
78
  - **Shared state:** never mutate `status.json` or `metrics.json`.
111
79
 
112
- 13. **Product-specs assets (FAIL):** package must ship `presets/_shared/assets/docs-specs/INDEX.md`, `_templates/page.md`, `_templates/feature.md`. Cursor+Claude twins for `product-specs` and `product-specs-authoring` must embed matching shared-core markers; both stems **requestable** (`alwaysApply: false` / Claude `paths: docs/specs/**`) — never session-start.
113
- 14. **Optional consumer check (WARN default):** `scripts/check-product-specs.sh` + schema stub may exist for opt-in consumer CI; **FAIL** only with `--strict` or AC that requires named specs — do not force consumer CI.
@@ -62,7 +62,7 @@ Before you emit the terminal review receipt, self-audit the review artifact: eve
62
62
 
63
63
  **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
64
64
 
65
- Record a `## Self-review` block in `review.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
65
+ Record a `## Self-review` block in `review.md` (goal/AC coverage, evidence, alignment/drift). Optional loop: when `.ai.local/scripts/rule-improver.mjs` exists, append wrong-turn signals to `.ai.local/signals.jsonl` and run the improver (see the requestable `self-review-and-context-hygiene` contract). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
66
66
 
67
67
  ## Review artifact
68
68