@bonesofspring/ai-rules 0.2.34 → 0.2.35

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 (1467) 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 +296 -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 +120 -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/hooks/chain-team-phases.sh +49 -17
  242. package/presets/claude/next/rules/anti-hallucination/react-next-anti-hallucination.md +5 -3
  243. package/presets/claude/next/rules/api-and-data/api-services.md +1 -1
  244. package/presets/claude/next/rules/api-and-data/http-client.md +10 -9
  245. package/presets/claude/next/rules/api-and-data/store-rtk.md +2 -2
  246. package/presets/claude/next/rules/architecture/architecture-boundaries-ui.md +1 -0
  247. package/presets/claude/next/rules/architecture/architecture-boundaries.md +17 -24
  248. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +89 -42
  249. package/presets/claude/next/rules/architecture/layer-barrel-exports.md +10 -9
  250. package/presets/claude/next/rules/architecture/product-specs-authoring.md +1 -0
  251. package/presets/claude/next/rules/architecture/product-specs.md +2 -1
  252. package/presets/claude/next/rules/architecture/public-imports.md +4 -3
  253. package/presets/claude/next/rules/architecture/reference-features.md +47 -7
  254. package/presets/claude/next/rules/stack/arrow-functions.md +3 -2
  255. package/presets/claude/next/rules/stack/navigation-router-ui.md +2 -1
  256. package/presets/claude/next/rules/stack/navigation-router.md +13 -14
  257. package/presets/claude/next/rules/stack/next-app-core.md +4 -4
  258. package/presets/claude/next/rules/stack/next-app-router.md +8 -7
  259. package/presets/claude/next/rules/stack/next-static-export.md +5 -4
  260. package/presets/claude/next/rules/stack/no-type-assertion.md +13 -13
  261. package/presets/claude/next/rules/stack/types-jsdoc.md +15 -17
  262. package/presets/claude/next/rules/testing/playwright-agents.md +3 -4
  263. package/presets/claude/next/rules/testing/tests-e2e-structure.md +6 -5
  264. package/presets/claude/next/rules/testing/tests-unit.md +3 -2
  265. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +2 -3
  266. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +291 -55
  267. package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +5 -43
  268. package/presets/claude/next/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  269. package/presets/claude/next/rules/tooling-and-review/code-quality.md +2 -2
  270. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +5 -21
  271. package/presets/claude/next/rules/tooling-and-review/design-guidance.md +1 -2
  272. package/presets/claude/next/rules/tooling-and-review/language-policy.md +1 -2
  273. package/presets/claude/next/rules/tooling-and-review/mcp-usage.md +1 -2
  274. package/presets/claude/next/rules/tooling-and-review/mockup-review.md +45 -48
  275. package/presets/claude/next/rules/tooling-and-review/package-manager.md +4 -0
  276. package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +9 -13
  277. package/presets/claude/next/rules/tooling-and-review/preset-goals.md +2 -3
  278. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +2 -3
  279. package/presets/claude/next/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  280. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  281. package/presets/claude/next/rules/tooling-and-review/preset-token-budget.md +4 -6
  282. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +7 -8
  283. package/presets/claude/next/rules/tooling-and-review/preset-writing-style.md +2 -3
  284. package/presets/claude/next/rules/tooling-and-review/security-next.md +1 -3
  285. package/presets/claude/next/rules/tooling-and-review/technical-retro.md +2 -4
  286. package/presets/claude/next/rules/tooling-and-review/ux-design.md +1 -3
  287. package/presets/claude/next/rules/ui-and-accessibility/component-catalog-gate.md +4 -3
  288. package/presets/claude/next/rules/ui-and-accessibility/css-property-order.md +3 -2
  289. package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +13 -21
  290. package/presets/claude/next/rules/ui-and-accessibility/forms-validation.md +1 -1
  291. package/presets/claude/next/rules/ui-and-accessibility/no-props-spread.md +11 -31
  292. package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +5 -4
  293. package/presets/claude/next/rules/ui-and-accessibility/react-ui.md +9 -14
  294. package/presets/claude/next/skills/code-review/SKILL.md +1 -1
  295. package/presets/claude/next/skills/figma-fidelity/SKILL.md +76 -49
  296. package/presets/claude/next/skills/mockup-review/SKILL.md +4 -2
  297. package/presets/claude/next/skills/react-performance/SKILL.md +1 -1
  298. package/presets/claude/next/skills/technical-retro/SKILL.md +13 -2
  299. package/presets/claude/next/skills/unit-testing/SKILL.md +1 -1
  300. package/presets/claude/next/team/README.md +2 -2
  301. package/presets/claude/nuxt/REPO_AGENTS.md +10 -6
  302. package/presets/claude/nuxt/agents/build-verifier.md +1 -39
  303. package/presets/claude/nuxt/agents/code-reviewer.md +1 -1
  304. package/presets/claude/nuxt/agents/debugger.md +1 -1
  305. package/presets/claude/nuxt/agents/feature-developer.md +1 -1
  306. package/presets/claude/nuxt/agents/openspec-author.md +1 -1
  307. package/presets/claude/nuxt/agents/task-analyst.md +1 -1
  308. package/presets/claude/nuxt/agents/tech-writer.md +1 -1
  309. package/presets/claude/nuxt/agents/unit-test-generator.md +1 -1
  310. package/presets/claude/nuxt/agents/unit-test-planner.md +1 -1
  311. package/presets/claude/nuxt/hooks/chain-team-phases.sh +49 -17
  312. package/presets/claude/nuxt/rules/anti-hallucination/vue-nuxt-anti-hallucination.md +4 -1
  313. package/presets/claude/nuxt/rules/api-and-data/api-services.md +9 -7
  314. package/presets/claude/nuxt/rules/api-and-data/http-client.md +1 -0
  315. package/presets/claude/nuxt/rules/api-and-data/store-pinia.md +1 -0
  316. package/presets/claude/nuxt/rules/architecture/architecture-boundaries.md +9 -8
  317. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +72 -22
  318. package/presets/claude/nuxt/rules/architecture/layer-barrel-exports.md +9 -7
  319. package/presets/claude/nuxt/rules/architecture/product-specs-authoring.md +1 -0
  320. package/presets/claude/nuxt/rules/architecture/product-specs.md +1 -0
  321. package/presets/claude/nuxt/rules/architecture/public-imports.md +7 -7
  322. package/presets/claude/nuxt/rules/architecture/reference-features.md +46 -10
  323. package/presets/claude/nuxt/rules/stack/navigation-router-ui.md +8 -3
  324. package/presets/claude/nuxt/rules/stack/navigation-router.md +7 -2
  325. package/presets/claude/nuxt/rules/stack/no-type-assertion.md +2 -5
  326. package/presets/claude/nuxt/rules/stack/nuxt-pages-routing.md +7 -3
  327. package/presets/claude/nuxt/rules/stack/script-setup-conventions.md +3 -1
  328. package/presets/claude/nuxt/rules/stack/types-jsdoc.md +21 -16
  329. package/presets/claude/nuxt/rules/testing/playwright-agents.md +3 -1
  330. package/presets/claude/nuxt/rules/testing/tests-e2e-structure.md +5 -4
  331. package/presets/claude/nuxt/rules/testing/tests-unit.md +3 -1
  332. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +1 -1
  333. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +237 -9
  334. package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +7 -31
  335. package/presets/claude/nuxt/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -7
  336. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +7 -13
  337. package/presets/claude/nuxt/rules/tooling-and-review/design-guidance.md +1 -7
  338. package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +1 -2
  339. package/presets/claude/nuxt/rules/tooling-and-review/mcp-usage.md +1 -7
  340. package/presets/claude/nuxt/rules/tooling-and-review/mockup-review.md +35 -32
  341. package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +1 -3
  342. package/presets/claude/nuxt/rules/tooling-and-review/preset-goals.md +2 -3
  343. package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +4 -1
  344. package/presets/claude/nuxt/rules/tooling-and-review/preset-no-cross-stack-leakage.md +4 -2
  345. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +10 -3
  346. package/presets/claude/nuxt/rules/tooling-and-review/preset-token-budget.md +4 -3
  347. package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +9 -6
  348. package/presets/claude/nuxt/rules/tooling-and-review/preset-writing-style.md +2 -3
  349. package/presets/claude/nuxt/rules/tooling-and-review/security-nuxt.md +1 -0
  350. package/presets/claude/nuxt/rules/tooling-and-review/technical-retro.md +1 -1
  351. package/presets/claude/nuxt/rules/tooling-and-review/ux-design.md +1 -3
  352. package/presets/claude/nuxt/rules/ui-and-accessibility/css-property-order.md +4 -1
  353. package/presets/claude/nuxt/rules/ui-and-accessibility/no-v-bind-spread.md +4 -1
  354. package/presets/claude/nuxt/rules/ui-and-accessibility/vue-a11y-coding.md +7 -3
  355. package/presets/claude/nuxt/rules/ui-and-accessibility/vue-ui.md +6 -3
  356. package/presets/claude/nuxt/skills/technical-retro/SKILL.md +13 -2
  357. package/presets/claude/nuxt/skills/unit-testing/SKILL.md +1 -1
  358. package/presets/claude/nuxt/team/README.md +2 -2
  359. package/presets/claude/php-hexagonal/REPO_AGENTS.md +10 -6
  360. package/presets/claude/php-hexagonal/agents/build-verifier.md +3 -39
  361. package/presets/claude/php-hexagonal/agents/ci-investigator.md +2 -2
  362. package/presets/claude/php-hexagonal/agents/code-reviewer.md +1 -1
  363. package/presets/claude/php-hexagonal/agents/debugger.md +1 -1
  364. package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -3
  365. package/presets/claude/php-hexagonal/agents/openspec-author.md +1 -1
  366. package/presets/claude/php-hexagonal/agents/task-analyst.md +1 -1
  367. package/presets/claude/php-hexagonal/agents/tech-writer.md +1 -1
  368. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  369. package/presets/claude/php-hexagonal/rules/api-and-data/adapters-driven.md +3 -1
  370. package/presets/claude/php-hexagonal/rules/api-and-data/adapters-driving.md +5 -2
  371. package/presets/claude/php-hexagonal/rules/api-and-data/api-grpc.md +3 -2
  372. package/presets/claude/php-hexagonal/rules/api-and-data/api-http.md +4 -1
  373. package/presets/claude/php-hexagonal/rules/api-and-data/persistence-adapters.md +2 -1
  374. package/presets/claude/php-hexagonal/rules/architecture/application-usecases.md +2 -1
  375. package/presets/claude/php-hexagonal/rules/architecture/composition-root.md +5 -2
  376. package/presets/claude/php-hexagonal/rules/architecture/domain-layer.md +2 -1
  377. package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +45 -43
  378. package/presets/claude/php-hexagonal/rules/architecture/ports-interfaces.md +4 -2
  379. package/presets/claude/php-hexagonal/rules/architecture/product-specs-authoring.md +1 -0
  380. package/presets/claude/php-hexagonal/rules/architecture/product-specs.md +1 -0
  381. package/presets/claude/php-hexagonal/rules/architecture/reference-features.md +36 -25
  382. package/presets/claude/php-hexagonal/rules/stack/php-app-core.md +1 -1
  383. package/presets/claude/php-hexagonal/rules/stack/php-conventions.md +1 -0
  384. package/presets/claude/php-hexagonal/rules/testing/integration.md +4 -3
  385. package/presets/claude/php-hexagonal/rules/testing/unit.md +3 -1
  386. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +1 -7
  387. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +76 -51
  388. package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +7 -31
  389. package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  390. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +1 -1
  391. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +1 -7
  392. package/presets/claude/php-hexagonal/rules/tooling-and-review/design-guidance.md +1 -2
  393. package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +1 -2
  394. package/presets/claude/php-hexagonal/rules/tooling-and-review/mcp-usage.md +1 -2
  395. package/presets/claude/php-hexagonal/rules/tooling-and-review/php-tooling.md +1 -3
  396. package/presets/claude/php-hexagonal/rules/tooling-and-review/post-change-test.md +4 -6
  397. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-goals.md +2 -3
  398. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +2 -3
  399. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  400. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  401. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-token-budget.md +4 -6
  402. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +7 -8
  403. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-writing-style.md +2 -3
  404. package/presets/claude/php-hexagonal/rules/tooling-and-review/security-php.md +4 -1
  405. package/presets/claude/php-hexagonal/rules/tooling-and-review/technical-retro.md +1 -7
  406. package/presets/claude/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  407. package/presets/claude/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  408. package/presets/claude/php-hexagonal/team/README.md +2 -2
  409. package/presets/claude/php-laravel/REPO_AGENTS.md +10 -6
  410. package/presets/claude/php-laravel/agents/build-verifier.md +3 -39
  411. package/presets/claude/php-laravel/agents/ci-investigator.md +2 -2
  412. package/presets/claude/php-laravel/agents/code-reviewer.md +1 -1
  413. package/presets/claude/php-laravel/agents/debugger.md +1 -1
  414. package/presets/claude/php-laravel/agents/feature-developer.md +1 -3
  415. package/presets/claude/php-laravel/agents/openspec-author.md +1 -1
  416. package/presets/claude/php-laravel/agents/task-analyst.md +1 -1
  417. package/presets/claude/php-laravel/agents/tech-writer.md +1 -1
  418. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +51 -19
  419. package/presets/claude/php-laravel/rules/api-and-data/eloquent-persistence.md +2 -0
  420. package/presets/claude/php-laravel/rules/api-and-data/events-listeners.md +2 -0
  421. package/presets/claude/php-laravel/rules/api-and-data/form-requests.md +2 -0
  422. package/presets/claude/php-laravel/rules/api-and-data/http-layer.md +2 -0
  423. package/presets/claude/php-laravel/rules/api-and-data/jobs-queues.md +2 -0
  424. package/presets/claude/php-laravel/rules/api-and-data/policies-authorization.md +2 -0
  425. package/presets/claude/php-laravel/rules/api-and-data/routes-api.md +2 -0
  426. package/presets/claude/php-laravel/rules/architecture/actions-services.md +2 -0
  427. package/presets/claude/php-laravel/rules/architecture/boundaries.md +2 -0
  428. package/presets/claude/php-laravel/rules/architecture/domain-layer.md +2 -0
  429. package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +46 -43
  430. package/presets/claude/php-laravel/rules/architecture/module-public-api.md +1 -0
  431. package/presets/claude/php-laravel/rules/architecture/product-specs-authoring.md +1 -0
  432. package/presets/claude/php-laravel/rules/architecture/product-specs.md +1 -0
  433. package/presets/claude/php-laravel/rules/architecture/reference-features.md +37 -27
  434. package/presets/claude/php-laravel/rules/architecture/service-providers.md +2 -0
  435. package/presets/claude/php-laravel/rules/stack/laravel-app-core.md +3 -1
  436. package/presets/claude/php-laravel/rules/stack/laravel-conventions.md +2 -0
  437. package/presets/claude/php-laravel/rules/testing/e2e.md +1 -0
  438. package/presets/claude/php-laravel/rules/testing/integration.md +2 -0
  439. package/presets/claude/php-laravel/rules/testing/unit.md +2 -0
  440. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +1 -3
  441. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +76 -47
  442. package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +7 -31
  443. package/presets/claude/php-laravel/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  444. package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +1 -1
  445. package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +1 -3
  446. package/presets/claude/php-laravel/rules/tooling-and-review/design-guidance.md +1 -2
  447. package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +1 -2
  448. package/presets/claude/php-laravel/rules/tooling-and-review/mcp-usage.md +1 -2
  449. package/presets/claude/php-laravel/rules/tooling-and-review/php-tooling.md +2 -1
  450. package/presets/claude/php-laravel/rules/tooling-and-review/post-change-test.md +5 -4
  451. package/presets/claude/php-laravel/rules/tooling-and-review/preset-goals.md +2 -3
  452. package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +3 -2
  453. package/presets/claude/php-laravel/rules/tooling-and-review/preset-no-cross-stack-leakage.md +3 -3
  454. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +9 -4
  455. package/presets/claude/php-laravel/rules/tooling-and-review/preset-token-budget.md +5 -5
  456. package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +8 -7
  457. package/presets/claude/php-laravel/rules/tooling-and-review/preset-writing-style.md +2 -3
  458. package/presets/claude/php-laravel/rules/tooling-and-review/security-php.md +2 -0
  459. package/presets/claude/php-laravel/rules/tooling-and-review/technical-retro.md +1 -3
  460. package/presets/claude/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  461. package/presets/claude/php-laravel/skills/technical-retro/SKILL.md +13 -2
  462. package/presets/claude/php-laravel/team/README.md +2 -2
  463. package/presets/claude/svelte/REPO_AGENTS.md +10 -6
  464. package/presets/claude/svelte/agents/build-verifier.md +1 -39
  465. package/presets/claude/svelte/agents/code-reviewer.md +1 -1
  466. package/presets/claude/svelte/agents/debugger.md +1 -1
  467. package/presets/claude/svelte/agents/feature-developer.md +1 -1
  468. package/presets/claude/svelte/agents/openspec-author.md +1 -1
  469. package/presets/claude/svelte/agents/task-analyst.md +1 -1
  470. package/presets/claude/svelte/agents/tech-writer.md +1 -1
  471. package/presets/claude/svelte/agents/unit-test-generator.md +1 -1
  472. package/presets/claude/svelte/agents/unit-test-planner.md +1 -1
  473. package/presets/claude/svelte/hooks/chain-team-phases.sh +49 -17
  474. package/presets/claude/svelte/rules/anti-hallucination/svelte-sveltekit-anti-hallucination.md +3 -1
  475. package/presets/claude/svelte/rules/api-and-data/api-services.md +1 -0
  476. package/presets/claude/svelte/rules/api-and-data/store-svelte.md +1 -0
  477. package/presets/claude/svelte/rules/architecture/architecture-boundaries.md +1 -0
  478. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +58 -8
  479. package/presets/claude/svelte/rules/architecture/layer-barrel-exports.md +7 -6
  480. package/presets/claude/svelte/rules/architecture/product-specs-authoring.md +1 -0
  481. package/presets/claude/svelte/rules/architecture/product-specs.md +1 -0
  482. package/presets/claude/svelte/rules/architecture/public-imports.md +1 -0
  483. package/presets/claude/svelte/rules/architecture/reference-features.md +46 -9
  484. package/presets/claude/svelte/rules/stack/no-type-assertion.md +1 -1
  485. package/presets/claude/svelte/rules/stack/svelte-script-conventions.md +2 -1
  486. package/presets/claude/svelte/rules/stack/types-jsdoc.md +19 -15
  487. package/presets/claude/svelte/rules/testing/tests-e2e-structure.md +5 -4
  488. package/presets/claude/svelte/rules/testing/tests-unit.md +3 -1
  489. package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +1 -2
  490. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +238 -11
  491. package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +7 -31
  492. package/presets/claude/svelte/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  493. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +7 -13
  494. package/presets/claude/svelte/rules/tooling-and-review/design-guidance.md +1 -2
  495. package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +1 -2
  496. package/presets/claude/svelte/rules/tooling-and-review/mcp-usage.md +1 -2
  497. package/presets/claude/svelte/rules/tooling-and-review/mockup-review.md +35 -32
  498. package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +2 -4
  499. package/presets/claude/svelte/rules/tooling-and-review/preset-goals.md +2 -3
  500. package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +2 -2
  501. package/presets/claude/svelte/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -3
  502. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +8 -4
  503. package/presets/claude/svelte/rules/tooling-and-review/preset-token-budget.md +4 -5
  504. package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +7 -7
  505. package/presets/claude/svelte/rules/tooling-and-review/preset-writing-style.md +2 -3
  506. package/presets/claude/svelte/rules/tooling-and-review/technical-retro.md +1 -2
  507. package/presets/claude/svelte/rules/tooling-and-review/ux-design.md +1 -3
  508. package/presets/claude/svelte/rules/ui-and-accessibility/css-property-order.md +3 -1
  509. package/presets/claude/svelte/skills/technical-retro/SKILL.md +13 -2
  510. package/presets/claude/svelte/skills/unit-testing/SKILL.md +1 -1
  511. package/presets/claude/svelte/team/README.md +2 -2
  512. package/presets/cursor/android-kotlin/REPO_AGENTS.md +10 -6
  513. package/presets/cursor/android-kotlin/agents/build-verifier.md +3 -37
  514. package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -1
  515. package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
  516. package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
  517. package/presets/cursor/android-kotlin/agents/openspec-author.md +1 -1
  518. package/presets/cursor/android-kotlin/agents/task-analyst.md +1 -1
  519. package/presets/cursor/android-kotlin/agents/tech-writer.md +1 -1
  520. package/presets/cursor/android-kotlin/agents/unit-test-generator.md +1 -1
  521. package/presets/cursor/android-kotlin/agents/unit-test-planner.md +1 -1
  522. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +49 -17
  523. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +2 -2
  524. package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +7 -30
  525. package/presets/cursor/android-kotlin/rules/anti-sycophancy-discipline.mdc +0 -2
  526. package/presets/cursor/android-kotlin/rules/design-guidance.mdc +0 -2
  527. package/presets/cursor/android-kotlin/rules/language-policy.mdc +1 -1
  528. package/presets/cursor/android-kotlin/rules/mockup-review.mdc +34 -29
  529. package/presets/cursor/android-kotlin/rules/preset-goals.mdc +2 -2
  530. package/presets/cursor/android-kotlin/rules/preset-layering.mdc +2 -2
  531. package/presets/cursor/android-kotlin/rules/preset-no-cross-stack-leakage.mdc +2 -3
  532. package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +8 -4
  533. package/presets/cursor/android-kotlin/rules/preset-token-budget.mdc +4 -5
  534. package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +7 -7
  535. package/presets/cursor/android-kotlin/rules/preset-writing-style.mdc +2 -2
  536. package/presets/cursor/android-kotlin/rules/reference-features.mdc +0 -2
  537. package/presets/cursor/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  538. package/presets/cursor/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  539. package/presets/cursor/android-kotlin/team/README.md +1 -1
  540. package/presets/cursor/go/REPO_AGENTS.md +10 -6
  541. package/presets/cursor/go/agents/build-verifier.md +3 -29
  542. package/presets/cursor/go/agents/ci-investigator.md +2 -2
  543. package/presets/cursor/go/agents/code-reviewer.md +1 -1
  544. package/presets/cursor/go/agents/debugger.md +1 -1
  545. package/presets/cursor/go/agents/feature-developer.md +1 -3
  546. package/presets/cursor/go/agents/openspec-author.md +1 -1
  547. package/presets/cursor/go/agents/task-analyst.md +1 -1
  548. package/presets/cursor/go/agents/tech-writer.md +1 -1
  549. package/presets/cursor/go/hooks/chain-team-phases.sh +51 -19
  550. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +1 -1
  551. package/presets/cursor/go/rules/ai-local-overlay.mdc +7 -30
  552. package/presets/cursor/go/rules/anti-sycophancy-discipline.mdc +0 -2
  553. package/presets/cursor/go/rules/design-guidance.mdc +0 -2
  554. package/presets/cursor/go/rules/language-policy.mdc +1 -1
  555. package/presets/cursor/go/rules/preset-goals.mdc +2 -2
  556. package/presets/cursor/go/rules/preset-layering.mdc +2 -2
  557. package/presets/cursor/go/rules/preset-no-cross-stack-leakage.mdc +2 -3
  558. package/presets/cursor/go/rules/preset-pr-checklist.mdc +8 -4
  559. package/presets/cursor/go/rules/preset-token-budget.mdc +4 -5
  560. package/presets/cursor/go/rules/preset-twin-sync.mdc +7 -7
  561. package/presets/cursor/go/rules/preset-writing-style.mdc +2 -2
  562. package/presets/cursor/go/rules/reference-features.mdc +0 -3
  563. package/presets/cursor/go/skills/ci-investigation/SKILL.md +2 -2
  564. package/presets/cursor/go/skills/technical-retro/SKILL.md +13 -2
  565. package/presets/cursor/go/team/README.md +1 -1
  566. package/presets/cursor/ios-swift/REPO_AGENTS.md +10 -6
  567. package/presets/cursor/ios-swift/agents/build-verifier.md +3 -39
  568. package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -1
  569. package/presets/cursor/ios-swift/agents/debugger.md +1 -1
  570. package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
  571. package/presets/cursor/ios-swift/agents/openspec-author.md +1 -1
  572. package/presets/cursor/ios-swift/agents/task-analyst.md +1 -1
  573. package/presets/cursor/ios-swift/agents/tech-writer.md +1 -1
  574. package/presets/cursor/ios-swift/agents/unit-test-generator.md +1 -1
  575. package/presets/cursor/ios-swift/agents/unit-test-planner.md +1 -1
  576. package/presets/cursor/ios-swift/agents/xcuitest-test-generator.md +1 -1
  577. package/presets/cursor/ios-swift/agents/xcuitest-test-planner.md +2 -2
  578. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +49 -17
  579. package/presets/cursor/ios-swift/rules/README.md +1 -1
  580. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +2 -2
  581. package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +7 -30
  582. package/presets/cursor/ios-swift/rules/anti-sycophancy-discipline.mdc +0 -2
  583. package/presets/cursor/ios-swift/rules/design-guidance.mdc +0 -2
  584. package/presets/cursor/ios-swift/rules/language-policy.mdc +1 -1
  585. package/presets/cursor/ios-swift/rules/mockup-review.mdc +34 -29
  586. package/presets/cursor/ios-swift/rules/networking-services.mdc +4 -1
  587. package/presets/cursor/ios-swift/rules/preset-goals.mdc +2 -2
  588. package/presets/cursor/ios-swift/rules/preset-layering.mdc +2 -2
  589. package/presets/cursor/ios-swift/rules/preset-no-cross-stack-leakage.mdc +2 -3
  590. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +8 -4
  591. package/presets/cursor/ios-swift/rules/preset-token-budget.mdc +4 -5
  592. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +7 -7
  593. package/presets/cursor/ios-swift/rules/preset-writing-style.mdc +2 -2
  594. package/presets/cursor/ios-swift/rules/reference-features.mdc +0 -6
  595. package/presets/cursor/ios-swift/rules/state-and-viewmodels.mdc +3 -1
  596. package/presets/cursor/ios-swift/rules/swiftui-ui.mdc +3 -1
  597. package/presets/cursor/ios-swift/skills/technical-retro/SKILL.md +13 -2
  598. package/presets/cursor/ios-swift/skills/unit-testing/SKILL.md +1 -1
  599. package/presets/cursor/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  600. package/presets/cursor/ios-swift/team/README.md +1 -1
  601. package/presets/cursor/java/REPO_AGENTS.md +10 -6
  602. package/presets/cursor/java/agents/build-verifier.md +3 -39
  603. package/presets/cursor/java/agents/ci-investigator.md +2 -2
  604. package/presets/cursor/java/agents/code-reviewer.md +1 -1
  605. package/presets/cursor/java/agents/debugger.md +1 -1
  606. package/presets/cursor/java/agents/feature-developer.md +1 -3
  607. package/presets/cursor/java/agents/openspec-author.md +1 -1
  608. package/presets/cursor/java/agents/task-analyst.md +1 -1
  609. package/presets/cursor/java/agents/tech-writer.md +1 -1
  610. package/presets/cursor/java/hooks/chain-team-phases.sh +51 -19
  611. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +1 -1
  612. package/presets/cursor/java/rules/ai-local-overlay.mdc +7 -30
  613. package/presets/cursor/java/rules/anti-sycophancy-discipline.mdc +0 -2
  614. package/presets/cursor/java/rules/design-guidance.mdc +0 -2
  615. package/presets/cursor/java/rules/language-policy.mdc +1 -1
  616. package/presets/cursor/java/rules/preset-goals.mdc +2 -2
  617. package/presets/cursor/java/rules/preset-layering.mdc +2 -2
  618. package/presets/cursor/java/rules/preset-no-cross-stack-leakage.mdc +2 -3
  619. package/presets/cursor/java/rules/preset-pr-checklist.mdc +8 -4
  620. package/presets/cursor/java/rules/preset-token-budget.mdc +4 -5
  621. package/presets/cursor/java/rules/preset-twin-sync.mdc +7 -7
  622. package/presets/cursor/java/rules/preset-writing-style.mdc +2 -2
  623. package/presets/cursor/java/rules/reference-features.mdc +0 -4
  624. package/presets/cursor/java/skills/ci-investigation/SKILL.md +2 -2
  625. package/presets/cursor/java/skills/technical-retro/SKILL.md +13 -2
  626. package/presets/cursor/java/team/README.md +1 -1
  627. package/presets/cursor/mcp-ts/REPO_AGENTS.md +10 -6
  628. package/presets/cursor/mcp-ts/agents/README.md +1 -1
  629. package/presets/cursor/mcp-ts/agents/build-verifier.md +3 -32
  630. package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
  631. package/presets/cursor/mcp-ts/agents/task-analyst.md +1 -1
  632. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +50 -18
  633. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +1 -1
  634. package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +7 -30
  635. package/presets/cursor/mcp-ts/rules/anti-sycophancy-discipline.mdc +0 -3
  636. package/presets/cursor/mcp-ts/rules/language-policy.mdc +1 -1
  637. package/presets/cursor/mcp-ts/rules/preset-goals.mdc +2 -2
  638. package/presets/cursor/mcp-ts/rules/preset-layering.mdc +2 -2
  639. package/presets/cursor/mcp-ts/rules/preset-no-cross-stack-leakage.mdc +2 -3
  640. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +8 -4
  641. package/presets/cursor/mcp-ts/rules/preset-token-budget.mdc +4 -5
  642. package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +7 -7
  643. package/presets/cursor/mcp-ts/rules/preset-writing-style.mdc +2 -2
  644. package/presets/cursor/mcp-ts/rules/reference-features.mdc +0 -2
  645. package/presets/cursor/mcp-ts/team/README.md +1 -1
  646. package/presets/cursor/next/REPO_AGENTS.md +11 -7
  647. package/presets/cursor/next/agents/build-verifier.md +2 -42
  648. package/presets/cursor/next/agents/code-reviewer.md +9 -38
  649. package/presets/cursor/next/agents/debugger.md +1 -1
  650. package/presets/cursor/next/agents/feature-developer.md +14 -25
  651. package/presets/cursor/next/agents/mockup-reviewer.md +14 -13
  652. package/presets/cursor/next/agents/openspec-author.md +1 -1
  653. package/presets/cursor/next/agents/task-analyst.md +1 -1
  654. package/presets/cursor/next/agents/tech-writer.md +1 -1
  655. package/presets/cursor/next/agents/unit-test-generator.md +1 -1
  656. package/presets/cursor/next/agents/unit-test-planner.md +1 -1
  657. package/presets/cursor/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  658. package/presets/cursor/next/ai-local/rules-library/analytics-events.md +1 -1
  659. package/presets/cursor/next/ai-local/rules-library/api-contract-source.md +1 -1
  660. package/presets/cursor/next/ai-local/rules-library/code-style.md +1 -1
  661. package/presets/cursor/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  662. package/presets/cursor/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  663. package/presets/cursor/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  664. package/presets/cursor/next/ai-local/rules-library/no-react-fc.md +1 -1
  665. package/presets/cursor/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  666. package/presets/cursor/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  667. package/presets/cursor/next/ai-local/rules-library/router-pages.md +1 -1
  668. package/presets/cursor/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  669. package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  670. package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  671. package/presets/cursor/next/hooks/chain-team-phases.sh +49 -17
  672. package/presets/cursor/next/rules/README.md +4 -5
  673. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +4 -4
  674. package/presets/cursor/next/rules/ai-local-overlay.mdc +5 -42
  675. package/presets/cursor/next/rules/anti-sycophancy-discipline.mdc +0 -2
  676. package/presets/cursor/next/rules/arrow-functions.mdc +1 -1
  677. package/presets/cursor/next/rules/code-review-mr.mdc +3 -16
  678. package/presets/cursor/next/rules/design-guidance.mdc +0 -2
  679. package/presets/cursor/next/rules/design-tokens-binding.mdc +14 -20
  680. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +4 -11
  681. package/presets/cursor/next/rules/language-policy.mdc +1 -1
  682. package/presets/cursor/next/rules/mockup-review.mdc +44 -45
  683. package/presets/cursor/next/rules/navigation-router-stack.mdc +1 -1
  684. package/presets/cursor/next/rules/navigation-router-ui.mdc +1 -1
  685. package/presets/cursor/next/rules/no-props-spread.mdc +1 -26
  686. package/presets/cursor/next/rules/preset-goals.mdc +2 -2
  687. package/presets/cursor/next/rules/preset-layering.mdc +2 -2
  688. package/presets/cursor/next/rules/preset-no-cross-stack-leakage.mdc +2 -3
  689. package/presets/cursor/next/rules/preset-pr-checklist.mdc +8 -4
  690. package/presets/cursor/next/rules/preset-token-budget.mdc +4 -5
  691. package/presets/cursor/next/rules/preset-twin-sync.mdc +7 -7
  692. package/presets/cursor/next/rules/preset-writing-style.mdc +2 -2
  693. package/presets/cursor/next/rules/product-specs.mdc +1 -1
  694. package/presets/cursor/next/rules/public-imports.mdc +2 -2
  695. package/presets/cursor/next/rules/react-next-anti-hallucination.mdc +5 -1
  696. package/presets/cursor/next/rules/react-ui.mdc +1 -7
  697. package/presets/cursor/next/rules/reference-features.mdc +0 -5
  698. package/presets/cursor/next/rules/tests-e2e-structure.mdc +0 -1
  699. package/presets/cursor/next/rules/tests-unit.mdc +0 -1
  700. package/presets/cursor/next/rules/types-jsdoc.mdc +14 -17
  701. package/presets/cursor/next/skills/code-review/SKILL.md +1 -1
  702. package/presets/cursor/next/skills/figma-fidelity/SKILL.md +76 -49
  703. package/presets/cursor/next/skills/mockup-review/SKILL.md +4 -2
  704. package/presets/cursor/next/skills/react-performance/SKILL.md +1 -1
  705. package/presets/cursor/next/skills/technical-retro/SKILL.md +13 -2
  706. package/presets/cursor/next/skills/unit-testing/SKILL.md +1 -1
  707. package/presets/cursor/next/team/README.md +1 -1
  708. package/presets/cursor/nuxt/REPO_AGENTS.md +10 -6
  709. package/presets/cursor/nuxt/agents/build-verifier.md +1 -39
  710. package/presets/cursor/nuxt/agents/code-reviewer.md +1 -1
  711. package/presets/cursor/nuxt/agents/debugger.md +1 -1
  712. package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
  713. package/presets/cursor/nuxt/agents/openspec-author.md +1 -1
  714. package/presets/cursor/nuxt/agents/task-analyst.md +1 -1
  715. package/presets/cursor/nuxt/agents/tech-writer.md +1 -1
  716. package/presets/cursor/nuxt/agents/unit-test-generator.md +1 -1
  717. package/presets/cursor/nuxt/agents/unit-test-planner.md +1 -1
  718. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +49 -17
  719. package/presets/cursor/nuxt/rules/README.md +3 -3
  720. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +2 -2
  721. package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +7 -30
  722. package/presets/cursor/nuxt/rules/anti-sycophancy-discipline.mdc +0 -2
  723. package/presets/cursor/nuxt/rules/css-property-order-stylelint.mdc +4 -1
  724. package/presets/cursor/nuxt/rules/design-guidance.mdc +0 -2
  725. package/presets/cursor/nuxt/rules/language-policy.mdc +1 -1
  726. package/presets/cursor/nuxt/rules/mockup-review.mdc +34 -29
  727. package/presets/cursor/nuxt/rules/no-v-bind-spread.mdc +4 -1
  728. package/presets/cursor/nuxt/rules/nuxt-pages-routing.mdc +8 -1
  729. package/presets/cursor/nuxt/rules/preset-goals.mdc +2 -2
  730. package/presets/cursor/nuxt/rules/preset-layering.mdc +2 -2
  731. package/presets/cursor/nuxt/rules/preset-no-cross-stack-leakage.mdc +2 -3
  732. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +8 -4
  733. package/presets/cursor/nuxt/rules/preset-token-budget.mdc +4 -5
  734. package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +7 -7
  735. package/presets/cursor/nuxt/rules/preset-writing-style.mdc +2 -2
  736. package/presets/cursor/nuxt/rules/public-imports.mdc +2 -2
  737. package/presets/cursor/nuxt/rules/reference-features.mdc +0 -5
  738. package/presets/cursor/nuxt/rules/script-setup-conventions.mdc +3 -1
  739. package/presets/cursor/nuxt/rules/tests-e2e-structure.mdc +0 -1
  740. package/presets/cursor/nuxt/rules/tests-unit.mdc +0 -1
  741. package/presets/cursor/nuxt/rules/types-jsdoc.mdc +18 -14
  742. package/presets/cursor/nuxt/rules/vue-a11y-coding.mdc +7 -1
  743. package/presets/cursor/nuxt/rules/vue-nuxt-anti-hallucination.mdc +9 -1
  744. package/presets/cursor/nuxt/rules/vue-ui.mdc +7 -1
  745. package/presets/cursor/nuxt/skills/technical-retro/SKILL.md +13 -2
  746. package/presets/cursor/nuxt/skills/unit-testing/SKILL.md +1 -1
  747. package/presets/cursor/nuxt/team/README.md +1 -1
  748. package/presets/cursor/php-hexagonal/REPO_AGENTS.md +10 -6
  749. package/presets/cursor/php-hexagonal/agents/build-verifier.md +3 -39
  750. package/presets/cursor/php-hexagonal/agents/ci-investigator.md +2 -2
  751. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -1
  752. package/presets/cursor/php-hexagonal/agents/debugger.md +1 -1
  753. package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -3
  754. package/presets/cursor/php-hexagonal/agents/openspec-author.md +1 -1
  755. package/presets/cursor/php-hexagonal/agents/task-analyst.md +1 -1
  756. package/presets/cursor/php-hexagonal/agents/tech-writer.md +1 -1
  757. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  758. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +1 -1
  759. package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +7 -30
  760. package/presets/cursor/php-hexagonal/rules/anti-sycophancy-discipline.mdc +0 -2
  761. package/presets/cursor/php-hexagonal/rules/design-guidance.mdc +0 -2
  762. package/presets/cursor/php-hexagonal/rules/language-policy.mdc +1 -1
  763. package/presets/cursor/php-hexagonal/rules/preset-goals.mdc +2 -2
  764. package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +2 -2
  765. package/presets/cursor/php-hexagonal/rules/preset-no-cross-stack-leakage.mdc +2 -3
  766. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +8 -4
  767. package/presets/cursor/php-hexagonal/rules/preset-token-budget.mdc +4 -5
  768. package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +7 -7
  769. package/presets/cursor/php-hexagonal/rules/preset-writing-style.mdc +2 -2
  770. package/presets/cursor/php-hexagonal/rules/reference-features.mdc +0 -5
  771. package/presets/cursor/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  772. package/presets/cursor/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  773. package/presets/cursor/php-hexagonal/team/README.md +1 -1
  774. package/presets/cursor/php-laravel/REPO_AGENTS.md +10 -6
  775. package/presets/cursor/php-laravel/agents/build-verifier.md +3 -39
  776. package/presets/cursor/php-laravel/agents/ci-investigator.md +2 -2
  777. package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -1
  778. package/presets/cursor/php-laravel/agents/debugger.md +1 -1
  779. package/presets/cursor/php-laravel/agents/feature-developer.md +1 -3
  780. package/presets/cursor/php-laravel/agents/openspec-author.md +1 -1
  781. package/presets/cursor/php-laravel/agents/task-analyst.md +1 -1
  782. package/presets/cursor/php-laravel/agents/tech-writer.md +1 -1
  783. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +51 -19
  784. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +1 -1
  785. package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +7 -30
  786. package/presets/cursor/php-laravel/rules/anti-sycophancy-discipline.mdc +0 -2
  787. package/presets/cursor/php-laravel/rules/design-guidance.mdc +0 -2
  788. package/presets/cursor/php-laravel/rules/language-policy.mdc +1 -1
  789. package/presets/cursor/php-laravel/rules/preset-goals.mdc +2 -2
  790. package/presets/cursor/php-laravel/rules/preset-layering.mdc +2 -2
  791. package/presets/cursor/php-laravel/rules/preset-no-cross-stack-leakage.mdc +2 -3
  792. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +8 -4
  793. package/presets/cursor/php-laravel/rules/preset-token-budget.mdc +4 -5
  794. package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +7 -7
  795. package/presets/cursor/php-laravel/rules/preset-writing-style.mdc +2 -2
  796. package/presets/cursor/php-laravel/rules/reference-features.mdc +0 -5
  797. package/presets/cursor/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  798. package/presets/cursor/php-laravel/skills/technical-retro/SKILL.md +13 -2
  799. package/presets/cursor/php-laravel/team/README.md +1 -1
  800. package/presets/cursor/svelte/REPO_AGENTS.md +10 -6
  801. package/presets/cursor/svelte/agents/build-verifier.md +1 -39
  802. package/presets/cursor/svelte/agents/code-reviewer.md +1 -1
  803. package/presets/cursor/svelte/agents/debugger.md +1 -1
  804. package/presets/cursor/svelte/agents/feature-developer.md +1 -1
  805. package/presets/cursor/svelte/agents/openspec-author.md +1 -1
  806. package/presets/cursor/svelte/agents/task-analyst.md +1 -1
  807. package/presets/cursor/svelte/agents/tech-writer.md +1 -1
  808. package/presets/cursor/svelte/agents/unit-test-generator.md +1 -1
  809. package/presets/cursor/svelte/agents/unit-test-planner.md +1 -1
  810. package/presets/cursor/svelte/hooks/chain-team-phases.sh +49 -17
  811. package/presets/cursor/svelte/rules/README.md +2 -2
  812. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +2 -2
  813. package/presets/cursor/svelte/rules/ai-local-overlay.mdc +7 -30
  814. package/presets/cursor/svelte/rules/anti-sycophancy-discipline.mdc +0 -2
  815. package/presets/cursor/svelte/rules/css-property-order-stylelint.mdc +4 -1
  816. package/presets/cursor/svelte/rules/design-guidance.mdc +0 -2
  817. package/presets/cursor/svelte/rules/language-policy.mdc +1 -1
  818. package/presets/cursor/svelte/rules/mockup-review.mdc +34 -29
  819. package/presets/cursor/svelte/rules/preset-goals.mdc +2 -2
  820. package/presets/cursor/svelte/rules/preset-layering.mdc +2 -2
  821. package/presets/cursor/svelte/rules/preset-no-cross-stack-leakage.mdc +2 -3
  822. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +8 -4
  823. package/presets/cursor/svelte/rules/preset-token-budget.mdc +4 -5
  824. package/presets/cursor/svelte/rules/preset-twin-sync.mdc +7 -7
  825. package/presets/cursor/svelte/rules/preset-writing-style.mdc +2 -2
  826. package/presets/cursor/svelte/rules/reference-features.mdc +0 -6
  827. package/presets/cursor/svelte/rules/svelte-script-conventions.mdc +3 -1
  828. package/presets/cursor/svelte/rules/svelte-sveltekit-anti-hallucination.mdc +6 -1
  829. package/presets/cursor/svelte/rules/tests-e2e-structure.mdc +0 -1
  830. package/presets/cursor/svelte/rules/tests-unit.mdc +0 -1
  831. package/presets/cursor/svelte/rules/types-jsdoc.mdc +18 -14
  832. package/presets/cursor/svelte/skills/technical-retro/SKILL.md +13 -2
  833. package/presets/cursor/svelte/skills/unit-testing/SKILL.md +1 -1
  834. package/presets/cursor/svelte/team/README.md +1 -1
  835. package/presets/mavis/android-kotlin/REPO_AGENTS.md +10 -6
  836. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  837. package/presets/mavis/android-kotlin/agents/build-verifier.md +2 -36
  838. package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -1
  839. package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
  840. package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
  841. package/presets/mavis/android-kotlin/agents/openspec-author.md +1 -1
  842. package/presets/mavis/android-kotlin/agents/task-analyst.md +1 -1
  843. package/presets/mavis/android-kotlin/agents/tech-writer.md +1 -1
  844. package/presets/mavis/android-kotlin/agents/unit-test-generator.md +1 -1
  845. package/presets/mavis/android-kotlin/agents/unit-test-planner.md +1 -1
  846. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +49 -17
  847. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -1
  848. package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +7 -30
  849. package/presets/mavis/android-kotlin/rules/mockup-review.md +34 -29
  850. package/presets/mavis/android-kotlin/rules/preset-no-cross-stack-leakage.md +0 -1
  851. package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +6 -2
  852. package/presets/mavis/android-kotlin/rules/preset-token-budget.md +2 -3
  853. package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +5 -5
  854. package/presets/mavis/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  855. package/presets/mavis/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  856. package/presets/mavis/android-kotlin/team/README.md +1 -1
  857. package/presets/mavis/go/REPO_AGENTS.md +10 -6
  858. package/presets/mavis/go/adapter-map.json +1 -1
  859. package/presets/mavis/go/agents/build-verifier.md +2 -28
  860. package/presets/mavis/go/agents/ci-investigator.md +2 -2
  861. package/presets/mavis/go/agents/code-reviewer.md +1 -1
  862. package/presets/mavis/go/agents/debugger.md +1 -1
  863. package/presets/mavis/go/agents/feature-developer.md +1 -3
  864. package/presets/mavis/go/agents/openspec-author.md +1 -1
  865. package/presets/mavis/go/agents/task-analyst.md +1 -1
  866. package/presets/mavis/go/agents/tech-writer.md +1 -1
  867. package/presets/mavis/go/hooks/chain-team-phases.sh +51 -19
  868. package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -1
  869. package/presets/mavis/go/rules/ai-local-overlay.md +7 -30
  870. package/presets/mavis/go/rules/feature-delivery-workflow.md +1 -1
  871. package/presets/mavis/go/rules/preset-no-cross-stack-leakage.md +0 -1
  872. package/presets/mavis/go/rules/preset-pr-checklist.md +6 -2
  873. package/presets/mavis/go/rules/preset-token-budget.md +2 -3
  874. package/presets/mavis/go/rules/preset-twin-sync.md +5 -5
  875. package/presets/mavis/go/skills/ci-investigation/SKILL.md +1 -1
  876. package/presets/mavis/go/skills/technical-retro/SKILL.md +13 -2
  877. package/presets/mavis/go/team/README.md +1 -1
  878. package/presets/mavis/ios-swift/REPO_AGENTS.md +10 -6
  879. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  880. package/presets/mavis/ios-swift/agents/build-verifier.md +2 -38
  881. package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -1
  882. package/presets/mavis/ios-swift/agents/debugger.md +1 -1
  883. package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
  884. package/presets/mavis/ios-swift/agents/openspec-author.md +1 -1
  885. package/presets/mavis/ios-swift/agents/task-analyst.md +1 -1
  886. package/presets/mavis/ios-swift/agents/tech-writer.md +1 -1
  887. package/presets/mavis/ios-swift/agents/unit-test-generator.md +1 -1
  888. package/presets/mavis/ios-swift/agents/unit-test-planner.md +1 -1
  889. package/presets/mavis/ios-swift/agents/xcuitest-test-generator.md +1 -1
  890. package/presets/mavis/ios-swift/agents/xcuitest-test-planner.md +2 -2
  891. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +49 -17
  892. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -1
  893. package/presets/mavis/ios-swift/rules/ai-local-overlay.md +7 -30
  894. package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +1 -1
  895. package/presets/mavis/ios-swift/rules/mockup-review.md +34 -29
  896. package/presets/mavis/ios-swift/rules/preset-no-cross-stack-leakage.md +0 -1
  897. package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +6 -2
  898. package/presets/mavis/ios-swift/rules/preset-token-budget.md +2 -3
  899. package/presets/mavis/ios-swift/rules/preset-twin-sync.md +5 -5
  900. package/presets/mavis/ios-swift/skills/technical-retro/SKILL.md +13 -2
  901. package/presets/mavis/ios-swift/skills/unit-testing/SKILL.md +1 -1
  902. package/presets/mavis/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  903. package/presets/mavis/ios-swift/team/README.md +1 -1
  904. package/presets/mavis/java/REPO_AGENTS.md +10 -6
  905. package/presets/mavis/java/adapter-map.json +1 -1
  906. package/presets/mavis/java/agents/build-verifier.md +2 -38
  907. package/presets/mavis/java/agents/ci-investigator.md +2 -2
  908. package/presets/mavis/java/agents/code-reviewer.md +1 -1
  909. package/presets/mavis/java/agents/debugger.md +1 -1
  910. package/presets/mavis/java/agents/feature-developer.md +1 -3
  911. package/presets/mavis/java/agents/openspec-author.md +1 -1
  912. package/presets/mavis/java/agents/task-analyst.md +1 -1
  913. package/presets/mavis/java/agents/tech-writer.md +1 -1
  914. package/presets/mavis/java/hooks/chain-team-phases.sh +51 -19
  915. package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -1
  916. package/presets/mavis/java/rules/ai-local-overlay.md +7 -30
  917. package/presets/mavis/java/rules/feature-delivery-workflow.md +1 -1
  918. package/presets/mavis/java/rules/preset-no-cross-stack-leakage.md +0 -1
  919. package/presets/mavis/java/rules/preset-pr-checklist.md +6 -2
  920. package/presets/mavis/java/rules/preset-token-budget.md +2 -3
  921. package/presets/mavis/java/rules/preset-twin-sync.md +5 -5
  922. package/presets/mavis/java/skills/ci-investigation/SKILL.md +1 -1
  923. package/presets/mavis/java/skills/technical-retro/SKILL.md +13 -2
  924. package/presets/mavis/java/team/README.md +1 -1
  925. package/presets/mavis/mcp-ts/REPO_AGENTS.md +10 -6
  926. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  927. package/presets/mavis/mcp-ts/agents/README.md +1 -1
  928. package/presets/mavis/mcp-ts/agents/build-verifier.md +2 -31
  929. package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
  930. package/presets/mavis/mcp-ts/agents/task-analyst.md +1 -1
  931. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +50 -18
  932. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -1
  933. package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +7 -30
  934. package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +1 -1
  935. package/presets/mavis/mcp-ts/rules/preset-no-cross-stack-leakage.md +0 -1
  936. package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +6 -2
  937. package/presets/mavis/mcp-ts/rules/preset-token-budget.md +2 -3
  938. package/presets/mavis/mcp-ts/rules/preset-twin-sync.md +5 -5
  939. package/presets/mavis/mcp-ts/team/README.md +1 -1
  940. package/presets/mavis/next/REPO_AGENTS.md +11 -7
  941. package/presets/mavis/next/adapter-map.json +1 -1
  942. package/presets/mavis/next/agents/build-verifier.md +2 -42
  943. package/presets/mavis/next/agents/code-reviewer.md +9 -38
  944. package/presets/mavis/next/agents/debugger.md +1 -1
  945. package/presets/mavis/next/agents/feature-developer.md +14 -25
  946. package/presets/mavis/next/agents/mockup-reviewer.md +14 -13
  947. package/presets/mavis/next/agents/openspec-author.md +1 -1
  948. package/presets/mavis/next/agents/task-analyst.md +1 -1
  949. package/presets/mavis/next/agents/tech-writer.md +1 -1
  950. package/presets/mavis/next/agents/unit-test-generator.md +1 -1
  951. package/presets/mavis/next/agents/unit-test-planner.md +1 -1
  952. package/presets/mavis/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  953. package/presets/mavis/next/ai-local/rules-library/analytics-events.md +1 -1
  954. package/presets/mavis/next/ai-local/rules-library/api-contract-source.md +1 -1
  955. package/presets/mavis/next/ai-local/rules-library/code-style.md +1 -1
  956. package/presets/mavis/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  957. package/presets/mavis/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  958. package/presets/mavis/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  959. package/presets/mavis/next/ai-local/rules-library/no-react-fc.md +1 -1
  960. package/presets/mavis/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  961. package/presets/mavis/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  962. package/presets/mavis/next/ai-local/rules-library/router-pages.md +1 -1
  963. package/presets/mavis/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  964. package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  965. package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  966. package/presets/mavis/next/hooks/chain-team-phases.sh +49 -17
  967. package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -1
  968. package/presets/mavis/next/rules/ai-local-overlay.md +5 -42
  969. package/presets/mavis/next/rules/code-review-mr.md +3 -16
  970. package/presets/mavis/next/rules/design-tokens-binding.md +6 -19
  971. package/presets/mavis/next/rules/feature-delivery-workflow.md +5 -12
  972. package/presets/mavis/next/rules/mockup-review.md +44 -45
  973. package/presets/mavis/next/rules/navigation-router-stack.md +1 -1
  974. package/presets/mavis/next/rules/navigation-router-ui.md +1 -1
  975. package/presets/mavis/next/rules/no-props-spread.md +1 -26
  976. package/presets/mavis/next/rules/preset-no-cross-stack-leakage.md +0 -1
  977. package/presets/mavis/next/rules/preset-pr-checklist.md +6 -2
  978. package/presets/mavis/next/rules/preset-token-budget.md +2 -3
  979. package/presets/mavis/next/rules/preset-twin-sync.md +5 -5
  980. package/presets/mavis/next/rules/product-specs.md +1 -1
  981. package/presets/mavis/next/rules/public-imports.md +2 -2
  982. package/presets/mavis/next/rules/react-ui.md +1 -7
  983. package/presets/mavis/next/rules/tests-e2e-structure.md +0 -1
  984. package/presets/mavis/next/rules/tests-unit.md +0 -1
  985. package/presets/mavis/next/rules/types-jsdoc.md +14 -17
  986. package/presets/mavis/next/skills/code-review/SKILL.md +1 -1
  987. package/presets/mavis/next/skills/figma-fidelity/SKILL.md +75 -48
  988. package/presets/mavis/next/skills/mockup-review/SKILL.md +4 -2
  989. package/presets/mavis/next/skills/react-performance/SKILL.md +1 -1
  990. package/presets/mavis/next/skills/technical-retro/SKILL.md +13 -2
  991. package/presets/mavis/next/skills/unit-testing/SKILL.md +1 -1
  992. package/presets/mavis/next/team/README.md +1 -1
  993. package/presets/mavis/nuxt/REPO_AGENTS.md +10 -6
  994. package/presets/mavis/nuxt/adapter-map.json +1 -1
  995. package/presets/mavis/nuxt/agents/build-verifier.md +1 -39
  996. package/presets/mavis/nuxt/agents/code-reviewer.md +1 -1
  997. package/presets/mavis/nuxt/agents/debugger.md +1 -1
  998. package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
  999. package/presets/mavis/nuxt/agents/openspec-author.md +1 -1
  1000. package/presets/mavis/nuxt/agents/task-analyst.md +1 -1
  1001. package/presets/mavis/nuxt/agents/tech-writer.md +1 -1
  1002. package/presets/mavis/nuxt/agents/unit-test-generator.md +1 -1
  1003. package/presets/mavis/nuxt/agents/unit-test-planner.md +1 -1
  1004. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +49 -17
  1005. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -1
  1006. package/presets/mavis/nuxt/rules/ai-local-overlay.md +7 -30
  1007. package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +1 -1
  1008. package/presets/mavis/nuxt/rules/mockup-review.md +34 -29
  1009. package/presets/mavis/nuxt/rules/preset-no-cross-stack-leakage.md +0 -1
  1010. package/presets/mavis/nuxt/rules/preset-pr-checklist.md +6 -2
  1011. package/presets/mavis/nuxt/rules/preset-token-budget.md +2 -3
  1012. package/presets/mavis/nuxt/rules/preset-twin-sync.md +5 -5
  1013. package/presets/mavis/nuxt/rules/public-imports.md +2 -2
  1014. package/presets/mavis/nuxt/rules/tests-e2e-structure.md +0 -1
  1015. package/presets/mavis/nuxt/rules/tests-unit.md +0 -1
  1016. package/presets/mavis/nuxt/rules/types-jsdoc.md +18 -14
  1017. package/presets/mavis/nuxt/skills/technical-retro/SKILL.md +13 -2
  1018. package/presets/mavis/nuxt/skills/unit-testing/SKILL.md +1 -1
  1019. package/presets/mavis/nuxt/team/README.md +1 -1
  1020. package/presets/mavis/php-hexagonal/REPO_AGENTS.md +10 -6
  1021. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  1022. package/presets/mavis/php-hexagonal/agents/build-verifier.md +2 -38
  1023. package/presets/mavis/php-hexagonal/agents/ci-investigator.md +2 -2
  1024. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -1
  1025. package/presets/mavis/php-hexagonal/agents/debugger.md +1 -1
  1026. package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -3
  1027. package/presets/mavis/php-hexagonal/agents/openspec-author.md +1 -1
  1028. package/presets/mavis/php-hexagonal/agents/task-analyst.md +1 -1
  1029. package/presets/mavis/php-hexagonal/agents/tech-writer.md +1 -1
  1030. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  1031. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
  1032. package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +7 -30
  1033. package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
  1034. package/presets/mavis/php-hexagonal/rules/preset-no-cross-stack-leakage.md +0 -1
  1035. package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +6 -2
  1036. package/presets/mavis/php-hexagonal/rules/preset-token-budget.md +2 -3
  1037. package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +5 -5
  1038. package/presets/mavis/php-hexagonal/skills/ci-investigation/SKILL.md +1 -1
  1039. package/presets/mavis/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  1040. package/presets/mavis/php-hexagonal/team/README.md +1 -1
  1041. package/presets/mavis/php-laravel/REPO_AGENTS.md +10 -6
  1042. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  1043. package/presets/mavis/php-laravel/agents/build-verifier.md +2 -38
  1044. package/presets/mavis/php-laravel/agents/ci-investigator.md +2 -2
  1045. package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -1
  1046. package/presets/mavis/php-laravel/agents/debugger.md +1 -1
  1047. package/presets/mavis/php-laravel/agents/feature-developer.md +1 -3
  1048. package/presets/mavis/php-laravel/agents/openspec-author.md +1 -1
  1049. package/presets/mavis/php-laravel/agents/task-analyst.md +1 -1
  1050. package/presets/mavis/php-laravel/agents/tech-writer.md +1 -1
  1051. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +51 -19
  1052. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -1
  1053. package/presets/mavis/php-laravel/rules/ai-local-overlay.md +7 -30
  1054. package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +1 -1
  1055. package/presets/mavis/php-laravel/rules/preset-no-cross-stack-leakage.md +0 -1
  1056. package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +6 -2
  1057. package/presets/mavis/php-laravel/rules/preset-token-budget.md +2 -3
  1058. package/presets/mavis/php-laravel/rules/preset-twin-sync.md +5 -5
  1059. package/presets/mavis/php-laravel/skills/ci-investigation/SKILL.md +1 -1
  1060. package/presets/mavis/php-laravel/skills/technical-retro/SKILL.md +13 -2
  1061. package/presets/mavis/php-laravel/team/README.md +1 -1
  1062. package/presets/mavis/svelte/REPO_AGENTS.md +10 -6
  1063. package/presets/mavis/svelte/adapter-map.json +1 -1
  1064. package/presets/mavis/svelte/agents/build-verifier.md +1 -39
  1065. package/presets/mavis/svelte/agents/code-reviewer.md +1 -1
  1066. package/presets/mavis/svelte/agents/debugger.md +1 -1
  1067. package/presets/mavis/svelte/agents/feature-developer.md +1 -1
  1068. package/presets/mavis/svelte/agents/openspec-author.md +1 -1
  1069. package/presets/mavis/svelte/agents/task-analyst.md +1 -1
  1070. package/presets/mavis/svelte/agents/tech-writer.md +1 -1
  1071. package/presets/mavis/svelte/agents/unit-test-generator.md +1 -1
  1072. package/presets/mavis/svelte/agents/unit-test-planner.md +1 -1
  1073. package/presets/mavis/svelte/hooks/chain-team-phases.sh +49 -17
  1074. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -1
  1075. package/presets/mavis/svelte/rules/ai-local-overlay.md +7 -30
  1076. package/presets/mavis/svelte/rules/feature-delivery-workflow.md +1 -1
  1077. package/presets/mavis/svelte/rules/mockup-review.md +34 -29
  1078. package/presets/mavis/svelte/rules/preset-no-cross-stack-leakage.md +0 -1
  1079. package/presets/mavis/svelte/rules/preset-pr-checklist.md +6 -2
  1080. package/presets/mavis/svelte/rules/preset-token-budget.md +2 -3
  1081. package/presets/mavis/svelte/rules/preset-twin-sync.md +5 -5
  1082. package/presets/mavis/svelte/rules/tests-e2e-structure.md +0 -1
  1083. package/presets/mavis/svelte/rules/tests-unit.md +0 -1
  1084. package/presets/mavis/svelte/rules/types-jsdoc.md +18 -14
  1085. package/presets/mavis/svelte/skills/technical-retro/SKILL.md +13 -2
  1086. package/presets/mavis/svelte/skills/unit-testing/SKILL.md +1 -1
  1087. package/presets/mavis/svelte/team/README.md +1 -1
  1088. package/presets/opencode/android-kotlin/REPO_AGENTS.md +10 -6
  1089. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  1090. package/presets/opencode/android-kotlin/agents/build-verifier.md +3 -37
  1091. package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
  1092. package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
  1093. package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
  1094. package/presets/opencode/android-kotlin/agents/openspec-author.md +1 -1
  1095. package/presets/opencode/android-kotlin/agents/task-analyst.md +1 -1
  1096. package/presets/opencode/android-kotlin/agents/tech-writer.md +1 -1
  1097. package/presets/opencode/android-kotlin/agents/unit-test-generator.md +1 -1
  1098. package/presets/opencode/android-kotlin/agents/unit-test-planner.md +1 -1
  1099. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +49 -17
  1100. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -1
  1101. package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +7 -30
  1102. package/presets/opencode/android-kotlin/rules/mockup-review.md +34 -29
  1103. package/presets/opencode/android-kotlin/rules/preset-no-cross-stack-leakage.md +0 -1
  1104. package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +6 -2
  1105. package/presets/opencode/android-kotlin/rules/preset-token-budget.md +2 -3
  1106. package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +5 -5
  1107. package/presets/opencode/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  1108. package/presets/opencode/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  1109. package/presets/opencode/android-kotlin/team/README.md +1 -1
  1110. package/presets/opencode/go/REPO_AGENTS.md +10 -6
  1111. package/presets/opencode/go/adapter-map.json +1 -1
  1112. package/presets/opencode/go/agents/build-verifier.md +3 -29
  1113. package/presets/opencode/go/agents/ci-investigator.md +2 -2
  1114. package/presets/opencode/go/agents/code-reviewer.md +1 -1
  1115. package/presets/opencode/go/agents/debugger.md +1 -1
  1116. package/presets/opencode/go/agents/feature-developer.md +1 -3
  1117. package/presets/opencode/go/agents/openspec-author.md +1 -1
  1118. package/presets/opencode/go/agents/task-analyst.md +1 -1
  1119. package/presets/opencode/go/agents/tech-writer.md +1 -1
  1120. package/presets/opencode/go/hooks/chain-team-phases.sh +51 -19
  1121. package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -1
  1122. package/presets/opencode/go/rules/ai-local-overlay.md +7 -30
  1123. package/presets/opencode/go/rules/feature-delivery-workflow.md +1 -1
  1124. package/presets/opencode/go/rules/preset-no-cross-stack-leakage.md +0 -1
  1125. package/presets/opencode/go/rules/preset-pr-checklist.md +6 -2
  1126. package/presets/opencode/go/rules/preset-token-budget.md +2 -3
  1127. package/presets/opencode/go/rules/preset-twin-sync.md +5 -5
  1128. package/presets/opencode/go/skills/ci-investigation/SKILL.md +2 -2
  1129. package/presets/opencode/go/skills/technical-retro/SKILL.md +13 -2
  1130. package/presets/opencode/go/team/README.md +1 -1
  1131. package/presets/opencode/ios-swift/REPO_AGENTS.md +10 -6
  1132. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  1133. package/presets/opencode/ios-swift/agents/build-verifier.md +3 -39
  1134. package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
  1135. package/presets/opencode/ios-swift/agents/debugger.md +1 -1
  1136. package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
  1137. package/presets/opencode/ios-swift/agents/openspec-author.md +1 -1
  1138. package/presets/opencode/ios-swift/agents/task-analyst.md +1 -1
  1139. package/presets/opencode/ios-swift/agents/tech-writer.md +1 -1
  1140. package/presets/opencode/ios-swift/agents/unit-test-generator.md +1 -1
  1141. package/presets/opencode/ios-swift/agents/unit-test-planner.md +1 -1
  1142. package/presets/opencode/ios-swift/agents/xcuitest-test-generator.md +1 -1
  1143. package/presets/opencode/ios-swift/agents/xcuitest-test-planner.md +2 -2
  1144. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +49 -17
  1145. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -1
  1146. package/presets/opencode/ios-swift/rules/ai-local-overlay.md +7 -30
  1147. package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +1 -1
  1148. package/presets/opencode/ios-swift/rules/mockup-review.md +34 -29
  1149. package/presets/opencode/ios-swift/rules/preset-no-cross-stack-leakage.md +0 -1
  1150. package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +6 -2
  1151. package/presets/opencode/ios-swift/rules/preset-token-budget.md +2 -3
  1152. package/presets/opencode/ios-swift/rules/preset-twin-sync.md +5 -5
  1153. package/presets/opencode/ios-swift/skills/technical-retro/SKILL.md +13 -2
  1154. package/presets/opencode/ios-swift/skills/unit-testing/SKILL.md +1 -1
  1155. package/presets/opencode/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  1156. package/presets/opencode/ios-swift/team/README.md +1 -1
  1157. package/presets/opencode/java/REPO_AGENTS.md +10 -6
  1158. package/presets/opencode/java/adapter-map.json +1 -1
  1159. package/presets/opencode/java/agents/build-verifier.md +3 -39
  1160. package/presets/opencode/java/agents/ci-investigator.md +2 -2
  1161. package/presets/opencode/java/agents/code-reviewer.md +1 -1
  1162. package/presets/opencode/java/agents/debugger.md +1 -1
  1163. package/presets/opencode/java/agents/feature-developer.md +1 -3
  1164. package/presets/opencode/java/agents/openspec-author.md +1 -1
  1165. package/presets/opencode/java/agents/task-analyst.md +1 -1
  1166. package/presets/opencode/java/agents/tech-writer.md +1 -1
  1167. package/presets/opencode/java/hooks/chain-team-phases.sh +51 -19
  1168. package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -1
  1169. package/presets/opencode/java/rules/ai-local-overlay.md +7 -30
  1170. package/presets/opencode/java/rules/feature-delivery-workflow.md +1 -1
  1171. package/presets/opencode/java/rules/preset-no-cross-stack-leakage.md +0 -1
  1172. package/presets/opencode/java/rules/preset-pr-checklist.md +6 -2
  1173. package/presets/opencode/java/rules/preset-token-budget.md +2 -3
  1174. package/presets/opencode/java/rules/preset-twin-sync.md +5 -5
  1175. package/presets/opencode/java/skills/ci-investigation/SKILL.md +2 -2
  1176. package/presets/opencode/java/skills/technical-retro/SKILL.md +13 -2
  1177. package/presets/opencode/java/team/README.md +1 -1
  1178. package/presets/opencode/mcp-ts/REPO_AGENTS.md +10 -6
  1179. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  1180. package/presets/opencode/mcp-ts/agents/README.md +1 -1
  1181. package/presets/opencode/mcp-ts/agents/build-verifier.md +3 -32
  1182. package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
  1183. package/presets/opencode/mcp-ts/agents/task-analyst.md +1 -1
  1184. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +50 -18
  1185. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -1
  1186. package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +7 -30
  1187. package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +1 -1
  1188. package/presets/opencode/mcp-ts/rules/preset-no-cross-stack-leakage.md +0 -1
  1189. package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +6 -2
  1190. package/presets/opencode/mcp-ts/rules/preset-token-budget.md +2 -3
  1191. package/presets/opencode/mcp-ts/rules/preset-twin-sync.md +5 -5
  1192. package/presets/opencode/mcp-ts/team/README.md +1 -1
  1193. package/presets/opencode/next/REPO_AGENTS.md +11 -7
  1194. package/presets/opencode/next/adapter-map.json +1 -1
  1195. package/presets/opencode/next/agents/build-verifier.md +2 -42
  1196. package/presets/opencode/next/agents/code-reviewer.md +9 -38
  1197. package/presets/opencode/next/agents/debugger.md +1 -1
  1198. package/presets/opencode/next/agents/feature-developer.md +14 -25
  1199. package/presets/opencode/next/agents/mockup-reviewer.md +14 -13
  1200. package/presets/opencode/next/agents/openspec-author.md +1 -1
  1201. package/presets/opencode/next/agents/task-analyst.md +1 -1
  1202. package/presets/opencode/next/agents/tech-writer.md +1 -1
  1203. package/presets/opencode/next/agents/unit-test-generator.md +1 -1
  1204. package/presets/opencode/next/agents/unit-test-planner.md +1 -1
  1205. package/presets/opencode/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  1206. package/presets/opencode/next/ai-local/rules-library/analytics-events.md +1 -1
  1207. package/presets/opencode/next/ai-local/rules-library/api-contract-source.md +1 -1
  1208. package/presets/opencode/next/ai-local/rules-library/code-style.md +1 -1
  1209. package/presets/opencode/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  1210. package/presets/opencode/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  1211. package/presets/opencode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  1212. package/presets/opencode/next/ai-local/rules-library/no-react-fc.md +1 -1
  1213. package/presets/opencode/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  1214. package/presets/opencode/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  1215. package/presets/opencode/next/ai-local/rules-library/router-pages.md +1 -1
  1216. package/presets/opencode/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  1217. package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  1218. package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  1219. package/presets/opencode/next/hooks/chain-team-phases.sh +49 -17
  1220. package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -1
  1221. package/presets/opencode/next/rules/ai-local-overlay.md +5 -42
  1222. package/presets/opencode/next/rules/code-review-mr.md +3 -16
  1223. package/presets/opencode/next/rules/design-tokens-binding.md +6 -19
  1224. package/presets/opencode/next/rules/feature-delivery-workflow.md +5 -12
  1225. package/presets/opencode/next/rules/mockup-review.md +44 -45
  1226. package/presets/opencode/next/rules/navigation-router-stack.md +1 -1
  1227. package/presets/opencode/next/rules/navigation-router-ui.md +1 -1
  1228. package/presets/opencode/next/rules/no-props-spread.md +1 -26
  1229. package/presets/opencode/next/rules/preset-no-cross-stack-leakage.md +0 -1
  1230. package/presets/opencode/next/rules/preset-pr-checklist.md +6 -2
  1231. package/presets/opencode/next/rules/preset-token-budget.md +2 -3
  1232. package/presets/opencode/next/rules/preset-twin-sync.md +5 -5
  1233. package/presets/opencode/next/rules/product-specs.md +1 -1
  1234. package/presets/opencode/next/rules/public-imports.md +2 -2
  1235. package/presets/opencode/next/rules/react-ui.md +1 -7
  1236. package/presets/opencode/next/rules/tests-e2e-structure.md +0 -1
  1237. package/presets/opencode/next/rules/tests-unit.md +0 -1
  1238. package/presets/opencode/next/rules/types-jsdoc.md +14 -17
  1239. package/presets/opencode/next/skills/code-review/SKILL.md +1 -1
  1240. package/presets/opencode/next/skills/figma-fidelity/SKILL.md +76 -49
  1241. package/presets/opencode/next/skills/mockup-review/SKILL.md +4 -2
  1242. package/presets/opencode/next/skills/react-performance/SKILL.md +1 -1
  1243. package/presets/opencode/next/skills/technical-retro/SKILL.md +13 -2
  1244. package/presets/opencode/next/skills/unit-testing/SKILL.md +1 -1
  1245. package/presets/opencode/next/team/README.md +1 -1
  1246. package/presets/opencode/nuxt/REPO_AGENTS.md +10 -6
  1247. package/presets/opencode/nuxt/adapter-map.json +1 -1
  1248. package/presets/opencode/nuxt/agents/build-verifier.md +1 -39
  1249. package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
  1250. package/presets/opencode/nuxt/agents/debugger.md +1 -1
  1251. package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
  1252. package/presets/opencode/nuxt/agents/openspec-author.md +1 -1
  1253. package/presets/opencode/nuxt/agents/task-analyst.md +1 -1
  1254. package/presets/opencode/nuxt/agents/tech-writer.md +1 -1
  1255. package/presets/opencode/nuxt/agents/unit-test-generator.md +1 -1
  1256. package/presets/opencode/nuxt/agents/unit-test-planner.md +1 -1
  1257. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +49 -17
  1258. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -1
  1259. package/presets/opencode/nuxt/rules/ai-local-overlay.md +7 -30
  1260. package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +1 -1
  1261. package/presets/opencode/nuxt/rules/mockup-review.md +34 -29
  1262. package/presets/opencode/nuxt/rules/preset-no-cross-stack-leakage.md +0 -1
  1263. package/presets/opencode/nuxt/rules/preset-pr-checklist.md +6 -2
  1264. package/presets/opencode/nuxt/rules/preset-token-budget.md +2 -3
  1265. package/presets/opencode/nuxt/rules/preset-twin-sync.md +5 -5
  1266. package/presets/opencode/nuxt/rules/public-imports.md +2 -2
  1267. package/presets/opencode/nuxt/rules/tests-e2e-structure.md +0 -1
  1268. package/presets/opencode/nuxt/rules/tests-unit.md +0 -1
  1269. package/presets/opencode/nuxt/rules/types-jsdoc.md +18 -14
  1270. package/presets/opencode/nuxt/skills/technical-retro/SKILL.md +13 -2
  1271. package/presets/opencode/nuxt/skills/unit-testing/SKILL.md +1 -1
  1272. package/presets/opencode/nuxt/team/README.md +1 -1
  1273. package/presets/opencode/php-hexagonal/REPO_AGENTS.md +10 -6
  1274. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  1275. package/presets/opencode/php-hexagonal/agents/build-verifier.md +3 -39
  1276. package/presets/opencode/php-hexagonal/agents/ci-investigator.md +2 -2
  1277. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
  1278. package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
  1279. package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -3
  1280. package/presets/opencode/php-hexagonal/agents/openspec-author.md +1 -1
  1281. package/presets/opencode/php-hexagonal/agents/task-analyst.md +1 -1
  1282. package/presets/opencode/php-hexagonal/agents/tech-writer.md +1 -1
  1283. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  1284. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
  1285. package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +7 -30
  1286. package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
  1287. package/presets/opencode/php-hexagonal/rules/preset-no-cross-stack-leakage.md +0 -1
  1288. package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +6 -2
  1289. package/presets/opencode/php-hexagonal/rules/preset-token-budget.md +2 -3
  1290. package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +5 -5
  1291. package/presets/opencode/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  1292. package/presets/opencode/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  1293. package/presets/opencode/php-hexagonal/team/README.md +1 -1
  1294. package/presets/opencode/php-laravel/REPO_AGENTS.md +10 -6
  1295. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  1296. package/presets/opencode/php-laravel/agents/build-verifier.md +3 -39
  1297. package/presets/opencode/php-laravel/agents/ci-investigator.md +2 -2
  1298. package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
  1299. package/presets/opencode/php-laravel/agents/debugger.md +1 -1
  1300. package/presets/opencode/php-laravel/agents/feature-developer.md +1 -3
  1301. package/presets/opencode/php-laravel/agents/openspec-author.md +1 -1
  1302. package/presets/opencode/php-laravel/agents/task-analyst.md +1 -1
  1303. package/presets/opencode/php-laravel/agents/tech-writer.md +1 -1
  1304. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +51 -19
  1305. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -1
  1306. package/presets/opencode/php-laravel/rules/ai-local-overlay.md +7 -30
  1307. package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +1 -1
  1308. package/presets/opencode/php-laravel/rules/preset-no-cross-stack-leakage.md +0 -1
  1309. package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +6 -2
  1310. package/presets/opencode/php-laravel/rules/preset-token-budget.md +2 -3
  1311. package/presets/opencode/php-laravel/rules/preset-twin-sync.md +5 -5
  1312. package/presets/opencode/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  1313. package/presets/opencode/php-laravel/skills/technical-retro/SKILL.md +13 -2
  1314. package/presets/opencode/php-laravel/team/README.md +1 -1
  1315. package/presets/opencode/svelte/REPO_AGENTS.md +10 -6
  1316. package/presets/opencode/svelte/adapter-map.json +1 -1
  1317. package/presets/opencode/svelte/agents/build-verifier.md +1 -39
  1318. package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
  1319. package/presets/opencode/svelte/agents/debugger.md +1 -1
  1320. package/presets/opencode/svelte/agents/feature-developer.md +1 -1
  1321. package/presets/opencode/svelte/agents/openspec-author.md +1 -1
  1322. package/presets/opencode/svelte/agents/task-analyst.md +1 -1
  1323. package/presets/opencode/svelte/agents/tech-writer.md +1 -1
  1324. package/presets/opencode/svelte/agents/unit-test-generator.md +1 -1
  1325. package/presets/opencode/svelte/agents/unit-test-planner.md +1 -1
  1326. package/presets/opencode/svelte/hooks/chain-team-phases.sh +49 -17
  1327. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -1
  1328. package/presets/opencode/svelte/rules/ai-local-overlay.md +7 -30
  1329. package/presets/opencode/svelte/rules/feature-delivery-workflow.md +1 -1
  1330. package/presets/opencode/svelte/rules/mockup-review.md +34 -29
  1331. package/presets/opencode/svelte/rules/preset-no-cross-stack-leakage.md +0 -1
  1332. package/presets/opencode/svelte/rules/preset-pr-checklist.md +6 -2
  1333. package/presets/opencode/svelte/rules/preset-token-budget.md +2 -3
  1334. package/presets/opencode/svelte/rules/preset-twin-sync.md +5 -5
  1335. package/presets/opencode/svelte/rules/tests-e2e-structure.md +0 -1
  1336. package/presets/opencode/svelte/rules/tests-unit.md +0 -1
  1337. package/presets/opencode/svelte/rules/types-jsdoc.md +18 -14
  1338. package/presets/opencode/svelte/skills/technical-retro/SKILL.md +13 -2
  1339. package/presets/opencode/svelte/skills/unit-testing/SKILL.md +1 -1
  1340. package/presets/opencode/svelte/team/README.md +1 -1
  1341. package/scripts/_lib/agent-write-scopes.json +0 -27
  1342. package/scripts/_lib/embed-stems.json +0 -38
  1343. package/scripts/capture-cli-golden.mjs +0 -51
  1344. package/scripts/check-chain-hook-coverage.sh +0 -124
  1345. package/scripts/check-claude-agent-blocks.mjs +0 -82
  1346. package/scripts/check-figma-contract-presence.sh +0 -119
  1347. package/scripts/check-frontmatter.mjs +0 -83
  1348. package/scripts/check-generated-drift.mjs +0 -146
  1349. package/scripts/check-hook-only-lifecycle.sh +0 -46
  1350. package/scripts/check-local-overlay.sh +0 -283
  1351. package/scripts/check-mavis-adapter-map.mjs +0 -306
  1352. package/scripts/check-mavis-local-overlay.mjs +0 -79
  1353. package/scripts/check-mavis-platform-contract.mjs +0 -390
  1354. package/scripts/check-mavis-token-budget.mjs +0 -48
  1355. package/scripts/check-opencode-adapter-map.mjs +0 -306
  1356. package/scripts/check-opencode-local-overlay.mjs +0 -75
  1357. package/scripts/check-opencode-platform-contract.mjs +0 -390
  1358. package/scripts/check-opencode-token-budget.mjs +0 -48
  1359. package/scripts/check-parallel-plan.sh +0 -353
  1360. package/scripts/check-plan-contract.sh +0 -133
  1361. package/scripts/check-preset-goal-contract.sh +0 -214
  1362. package/scripts/check-preset-i18n.sh +0 -61
  1363. package/scripts/check-preset-language-policy.sh +0 -292
  1364. package/scripts/check-preset-leakage.sh +0 -545
  1365. package/scripts/check-preset-prompt-persistence.sh +0 -218
  1366. package/scripts/check-preset-self-review-contract.sh +0 -179
  1367. package/scripts/check-preset-structure.sh +0 -297
  1368. package/scripts/check-preset-token-budget.sh +0 -258
  1369. package/scripts/check-preset-twin-map.sh +0 -122
  1370. package/scripts/check-rule-eval.mjs +0 -165
  1371. package/scripts/check-shared-core-drift.sh +0 -155
  1372. package/scripts/check-step-graph-contract.sh +0 -123
  1373. package/scripts/check-task-router-intents.sh +0 -154
  1374. package/scripts/fixtures/cli-golden/claude/next.json +0 -146
  1375. package/scripts/fixtures/cli-golden/cursor/next.json +0 -168
  1376. package/scripts/fixtures/cli-golden/mavis/android-kotlin.json +0 -110
  1377. package/scripts/fixtures/cli-golden/mavis/go.json +0 -103
  1378. package/scripts/fixtures/cli-golden/mavis/ios-swift.json +0 -109
  1379. package/scripts/fixtures/cli-golden/mavis/java.json +0 -103
  1380. package/scripts/fixtures/cli-golden/mavis/mcp-ts.json +0 -74
  1381. package/scripts/fixtures/cli-golden/mavis/next.json +0 -161
  1382. package/scripts/fixtures/cli-golden/mavis/nuxt.json +0 -128
  1383. package/scripts/fixtures/cli-golden/mavis/php-hexagonal.json +0 -103
  1384. package/scripts/fixtures/cli-golden/mavis/php-laravel.json +0 -103
  1385. package/scripts/fixtures/cli-golden/mavis/svelte.json +0 -128
  1386. package/scripts/fixtures/cli-golden/opencode/android-kotlin.json +0 -110
  1387. package/scripts/fixtures/cli-golden/opencode/go.json +0 -103
  1388. package/scripts/fixtures/cli-golden/opencode/ios-swift.json +0 -109
  1389. package/scripts/fixtures/cli-golden/opencode/java.json +0 -103
  1390. package/scripts/fixtures/cli-golden/opencode/mcp-ts.json +0 -74
  1391. package/scripts/fixtures/cli-golden/opencode/next.json +0 -161
  1392. package/scripts/fixtures/cli-golden/opencode/nuxt.json +0 -128
  1393. package/scripts/fixtures/cli-golden/opencode/php-hexagonal.json +0 -103
  1394. package/scripts/fixtures/cli-golden/opencode/php-laravel.json +0 -103
  1395. package/scripts/fixtures/cli-golden/opencode/svelte.json +0 -128
  1396. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/AGENTS.md +0 -1
  1397. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/rules/extra.mdc +0 -1
  1398. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/rules/sample.mdc +0 -2
  1399. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/MAVIS.md +0 -1
  1400. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/adapter-map.json +0 -26
  1401. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/rules/sample.md +0 -2
  1402. package/scripts/fixtures/mavis-adapter-map/valid/cursor/AGENTS.md +0 -1
  1403. package/scripts/fixtures/mavis-adapter-map/valid/cursor/rules/sample.mdc +0 -2
  1404. package/scripts/fixtures/mavis-adapter-map/valid/mavis/MAVIS.md +0 -1
  1405. package/scripts/fixtures/mavis-adapter-map/valid/mavis/adapter-map.json +0 -26
  1406. package/scripts/fixtures/mavis-adapter-map/valid/mavis/rules/sample.md +0 -2
  1407. package/scripts/fixtures/mavis-platform-contract/invalid-minimax-destination.json +0 -131
  1408. package/scripts/fixtures/mavis-platform-contract/invalid-missing-capability.json +0 -126
  1409. package/scripts/fixtures/mavis-platform-contract/invalid-released-unknown-stack.json +0 -133
  1410. package/scripts/fixtures/mavis-platform-contract/invalid-unknown-native-path.json +0 -131
  1411. package/scripts/fixtures/mavis-platform-contract/invalid-version-pin.json +0 -132
  1412. package/scripts/fixtures/mavis-platform-contract/valid.json +0 -127
  1413. package/scripts/fixtures/mavis-probe/AGENTS.md +0 -6
  1414. package/scripts/fixtures/mavis-probe/agents/probe-agent.md +0 -6
  1415. package/scripts/fixtures/mavis-probe/fake-mcode.mjs +0 -98
  1416. package/scripts/fixtures/mavis-probe/output.schema.json +0 -28
  1417. package/scripts/fixtures/mavis-probe/rules/probe.md +0 -5
  1418. package/scripts/fixtures/mavis-probe/skills/probe/SKILL.md +0 -11
  1419. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/AGENTS.md +0 -1
  1420. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/rules/extra.mdc +0 -1
  1421. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/rules/sample.mdc +0 -2
  1422. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/OPENCODE.md +0 -1
  1423. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/adapter-map.json +0 -26
  1424. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/rules/sample.md +0 -2
  1425. package/scripts/fixtures/opencode-adapter-map/valid/cursor/AGENTS.md +0 -1
  1426. package/scripts/fixtures/opencode-adapter-map/valid/cursor/rules/sample.mdc +0 -2
  1427. package/scripts/fixtures/opencode-adapter-map/valid/opencode/OPENCODE.md +0 -1
  1428. package/scripts/fixtures/opencode-adapter-map/valid/opencode/adapter-map.json +0 -26
  1429. package/scripts/fixtures/opencode-adapter-map/valid/opencode/rules/sample.md +0 -2
  1430. package/scripts/fixtures/opencode-platform-contract/invalid-home-destination.json +0 -131
  1431. package/scripts/fixtures/opencode-platform-contract/invalid-missing-capability.json +0 -126
  1432. package/scripts/fixtures/opencode-platform-contract/invalid-released-unknown-stack.json +0 -133
  1433. package/scripts/fixtures/opencode-platform-contract/invalid-unknown-native-path.json +0 -131
  1434. package/scripts/fixtures/opencode-platform-contract/invalid-version-pin.json +0 -132
  1435. package/scripts/fixtures/opencode-platform-contract/valid.json +0 -127
  1436. package/scripts/generate-mavis.mjs +0 -14
  1437. package/scripts/generate-opencode.mjs +0 -14
  1438. package/scripts/inject-claude-agent-rules-block.mjs +0 -83
  1439. package/scripts/lib/cli-golden.mjs +0 -50
  1440. package/scripts/lib/discover-hooks.mjs +0 -94
  1441. package/scripts/lib/generate-adapter-common.mjs +0 -603
  1442. package/scripts/lib/generate-mavis-adapter.mjs +0 -550
  1443. package/scripts/lib/generate-opencode-adapter.mjs +0 -662
  1444. package/scripts/lib/stack-platform-profiles.mjs +0 -468
  1445. package/scripts/probe-mavis-capabilities.mjs +0 -480
  1446. package/scripts/sync-claude-harness-wiring.mjs +0 -56
  1447. package/scripts/sync-claude-settings.mjs +0 -81
  1448. package/scripts/sync-dogfood-claude.sh +0 -62
  1449. package/scripts/sync-dogfood-cursor.sh +0 -50
  1450. package/scripts/sync-dogfood-mavis.sh +0 -69
  1451. package/scripts/sync-dogfood-opencode.sh +0 -67
  1452. package/scripts/sync-shared-core-embeds.sh +0 -103
  1453. package/scripts/test-agent-task-metrics-hooks.mjs +0 -1225
  1454. package/scripts/test-chain-team-phases-coverage.mjs +0 -822
  1455. package/scripts/test-cli-init-clean.mjs +0 -794
  1456. package/scripts/test-cli-mcp-merge.mjs +0 -214
  1457. package/scripts/test-mavis-context-budget.mjs +0 -50
  1458. package/scripts/test-mavis-orchestration.mjs +0 -650
  1459. package/scripts/test-opencode-context-budget.mjs +0 -49
  1460. package/scripts/test-parallel-plan-fixtures.mjs +0 -173
  1461. package/scripts/test-plan-contract-fixtures.mjs +0 -132
  1462. package/scripts/test-preset-goal-contract-fixtures.mjs +0 -162
  1463. package/scripts/test-preset-language-policy-fixtures.mjs +0 -194
  1464. package/scripts/test-preset-prompt-persistence-fixtures.mjs +0 -232
  1465. package/scripts/test-preset-self-review-contract-fixtures.mjs +0 -163
  1466. package/scripts/test-probe-mavis-capabilities.mjs +0 -205
  1467. package/scripts/test-task-router-intents-fixtures.mjs +0 -109
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  description: Code review requirements for MCP TypeScript MRs
3
- paths:
4
- - src/**/*
3
+ paths: []
5
4
  ---
6
5
 
7
6
  <!-- shared-core: review/code-review-mr.md -->
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  description: Design guidance (smells & patterns) for MCP TypeScript servers
3
- paths:
4
- - src/**/*
3
+ paths: []
5
4
  ---
6
5
 
7
6
  <!-- shared-core: quality/design-guidance.md -->
@@ -3,8 +3,7 @@ description: "Native-language dialogue policy: development/reasoning/artifacts s
3
3
  paths:
4
4
  - .ai.local/**/*
5
5
  - AGENTS.md
6
- - CLAUDE.md
7
- - .claude/**/*
6
+ - .cursor/**/*
8
7
  ---
9
8
 
10
9
  <!-- shared-core: agent-team/language-policy.md -->
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  description: When to call shipped Context7 and local overlay MCP — detect presence, use if the task fits, degrade.
3
- paths:
4
- - src/**/*
3
+ paths: []
5
4
  ---
6
5
 
7
6
  <!-- shared-core: quality/mcp-usage.md -->
@@ -1,10 +1,6 @@
1
1
  ---
2
2
  description: Mandatory typecheck + tests after TypeScript MCP edits
3
- paths:
4
- - src/**/*.ts
5
- - src/**/*.tsx
6
- - package.json
7
- - "**/*.{test,spec}.ts"
3
+ paths: []
8
4
  ---
9
5
 
10
6
  # Post-change test (requestable; must after TS MCP edits)
@@ -2,9 +2,8 @@
2
2
  description: "Preset authoring: the presets' primary goal — autonomous simple AND complex execution, maximum quality, project specifics. Use when editing packages/ai-rules/presets/**."
3
3
  paths:
4
4
  - packages/ai-rules/presets/**/*
5
- - .claude/**/*
6
- - .cursor/rules/**/*
7
- - .ai.local/team/tasks/**/*
5
+ - packages/ai-rules/scripts/**/*
6
+ - packages/ai-rules/docs/**/*
8
7
  ---
9
8
 
10
9
  <!-- shared-core: meta/preset-goals.md -->
@@ -2,9 +2,8 @@
2
2
  description: Preset authoring meta-rule (preset-layering)
3
3
  paths:
4
4
  - packages/ai-rules/presets/**/*
5
- - .claude/**/*
6
- - .cursor/rules/**/*
7
- - .ai.local/team/tasks/**/*
5
+ - packages/ai-rules/scripts/**/*
6
+ - packages/ai-rules/docs/**/*
8
7
  ---
9
8
 
10
9
  <!-- shared-core: meta/preset-layering.md -->
@@ -2,9 +2,8 @@
2
2
  description: Preset authoring meta-rule (preset-no-cross-stack-leakage)
3
3
  paths:
4
4
  - packages/ai-rules/presets/**/*
5
- - .claude/**/*
6
- - .cursor/rules/**/*
7
- - .ai.local/team/tasks/**/*
5
+ - packages/ai-rules/scripts/**/*
6
+ - packages/ai-rules/docs/**/*
8
7
  ---
9
8
 
10
9
  <!-- shared-core: meta/preset-no-cross-stack-leakage.md -->
@@ -92,7 +91,6 @@ Required instead: package-manager–discovered typecheck/test (`mcp-ts-tooling`,
92
91
  ## Soft / document
93
92
 
94
93
  - Mentioning the other stack in **docs** comparing presets is OK.
95
- - `build-verifier` may reference other stacks when validating **preset packaging** (`scope: preset-structure-validation`).
96
94
 
97
95
  ## Chain fork
98
96
 
@@ -2,9 +2,8 @@
2
2
  description: Preset authoring meta-rule (preset-pr-checklist)
3
3
  paths:
4
4
  - packages/ai-rules/presets/**/*
5
- - .claude/**/*
6
- - .cursor/rules/**/*
7
- - .ai.local/team/tasks/**/*
5
+ - packages/ai-rules/scripts/**/*
6
+ - packages/ai-rules/docs/**/*
8
7
  ---
9
8
 
10
9
  <!-- shared-core: meta/preset-pr-checklist.md -->
@@ -19,7 +18,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
19
18
  - [ ] **Writing:** rules concise and testable, no demagogy or duplicated prose (`preset-writing-style`)
20
19
  - [ ] **SoT:** edits in `packages/…` (not only root `.cursor/`)
21
20
  - [ ] **Core:** if `_shared/core/**` changed — all `<!-- shared-core: … -->` consumers updated (or documented intentional fork)
22
- - [ ] **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`)
21
+ - [ ] **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`)
23
22
  - [ ] **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)
24
23
  - [ ] **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)
25
24
  - [ ] **Mapping:** `claude/<stack>/rules/README.md` mapping table is current
@@ -34,6 +33,10 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
34
33
  - [ ] **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`.
35
34
  - [ ] **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
36
35
  - [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
36
+ - [ ] **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
37
+ - [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
38
+ - [ ] **Rule eval (soft):** `node packages/ai-rules/scripts/check-rule-eval.mjs` when rule bodies changed
39
+ - [ ] **Gate:** `yarn check:preset-structure` from `packages/ai-rules/` (twin-map, token-budget, leakage, drift, i18n, local overlay)
37
40
 
38
41
  ## Pointers
39
42
 
@@ -43,7 +46,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
43
46
  - Sync: `preset-twin-sync`
44
47
  - Budget: `preset-token-budget`
45
48
  - Leakage: `preset-no-cross-stack-leakage`
46
- - Validation: stack `agents/build-verifier.md` → preset-structure section
49
+ - Validation: `yarn check:preset-structure` (`packages/ai-rules/scripts/check-preset-structure.sh`)
47
50
  - Dogfood scripts: `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, `sync-dogfood-opencode.sh`
48
51
  - Drift script: `packages/ai-rules/scripts/check-shared-core-drift.sh`
49
52
  - Orchestrator: when editing presets, load this checklist + twin-sync
@@ -2,9 +2,8 @@
2
2
  description: Preset authoring meta-rule (preset-token-budget)
3
3
  paths:
4
4
  - packages/ai-rules/presets/**/*
5
- - .claude/**/*
6
- - .cursor/rules/**/*
7
- - .ai.local/team/tasks/**/*
5
+ - packages/ai-rules/scripts/**/*
6
+ - packages/ai-rules/docs/**/*
8
7
  ---
9
8
 
10
9
  <!-- shared-core: meta/preset-token-budget.md -->
@@ -36,8 +35,7 @@ Session-start body budget:
36
35
  Rules for preset authors (`preset-layering`, `preset-twin-sync`, …):
37
36
 
38
37
  - **Never** `alwaysApply: true` on consumer installs.
39
- - Cursor: `globs` limited to `packages/ai-rules/presets/**` (and dogfood `.cursor/**` where useful).
40
- - Claude: `paths:` limited to `packages/ai-rules/presets/**` (and `.claude/**` dogfood if present).
38
+ - 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.
41
39
 
42
40
  ## Heavy workflows
43
41
 
@@ -45,4 +43,4 @@ Orchestrator, feature-delivery, code-review, post-change gates, domain globs —
45
43
 
46
44
  ## Verifier
47
45
 
48
- 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.
46
+ `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.
@@ -2,9 +2,8 @@
2
2
  description: Preset authoring meta-rule (preset-twin-sync)
3
3
  paths:
4
4
  - packages/ai-rules/presets/**/*
5
- - .claude/**/*
6
- - .cursor/rules/**/*
7
- - .ai.local/team/tasks/**/*
5
+ - packages/ai-rules/scripts/**/*
6
+ - packages/ai-rules/docs/**/*
8
7
  ---
9
8
 
10
9
  <!-- shared-core: meta/preset-twin-sync.md -->
@@ -17,7 +16,7 @@ Cursor `.mdc` is the **SoT per stack**; every other platform tree is derived in
17
16
 
18
17
  | Target | From | Command / rule |
19
18
  |--------|------|----------------|
20
- | **Claude twin** | `cursor/<stack>/rules/*.mdc` | hand-derived: body + `paths:` (from `globs:`), drop `alwaysApply`; row **required** in `claude/<stack>/rules/README.md` |
19
+ | **Claude twin** | `cursor/<stack>/rules/*.mdc` | `generate-claude.mjs --stack <stack>`; destination row **required** in `claude/<stack>/rules/README.md` |
21
20
  | **Mavis** | `cursor/<stack>/**` | `generate-mavis.mjs --stack <stack>`; manifest `adapter-map.json` required |
22
21
  | **OpenCode** | `cursor/<stack>/**` | `generate-opencode.mjs --stack <stack>`; manifest `adapter-map.json` required |
23
22
 
@@ -32,9 +31,9 @@ Validate: `check-mavis-adapter-map.mjs`, `check-opencode-adapter-map.mjs`, `chec
32
31
  ## Same-PR checklist
33
32
 
34
33
  1. Edit the Cursor rule first (body + frontmatter).
35
- 2. Update the Claude twin (body + `paths:`); update the README mapping row if the stem/path changed.
34
+ 2. Add or update the Claude README mapping row when the stem/path changed, then run `generate-claude.mjs --stack <stack>`.
36
35
  3. Core changed → sync every `<!-- shared-core: … -->` consumer (`sync-shared-core-embeds.sh`).
37
- 4. Cursor source changed → regenerate `mavis/<stack>/` and `opencode/<stack>/` and refresh each `adapter-map.json` `sourceRevision`.
36
+ 4. Cursor source changed → run `yarn fix:generated` to regenerate Claude, Mavis, and OpenCode and recapture required CLI goldens.
38
37
 
39
38
  ## Twin depth
40
39
 
@@ -42,9 +41,9 @@ Validate: `check-mavis-adapter-map.mjs`, `check-opencode-adapter-map.mjs`, `chec
42
41
  - **Thin aliases** (`agent-team-intake`, `technical-retro`): may be shorter (soft) if they only point to a command/skill.
43
42
  - **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.
44
43
 
45
- ## Severity (build-verifier)
44
+ ## Severity (`check:preset-structure`)
46
45
 
47
- - Missing Claude twin for a changed Cursor rule → **FAIL** (all 10 stacks; mapping table required).
46
+ - Missing or stale generated Claude twin for a changed Cursor rule → **FAIL** (all 10 stacks; mapping table required).
48
47
  - `cursor/<stack>` mapped source changed without mavis / opencode regeneration, or with `adapter-map.json` `sourceRevision` drift → **FAIL**.
49
48
 
50
49
  Dogfood: sync packages → root `.cursor/` after Cursor SoT changes (never the reverse): `sync-dogfood-cursor.sh`.
@@ -2,9 +2,8 @@
2
2
  description: "Preset authoring: concise, no-demagogy prose for preset rules, docs, and artifacts. Use when editing packages/ai-rules/presets/**."
3
3
  paths:
4
4
  - packages/ai-rules/presets/**/*
5
- - .claude/**/*
6
- - .cursor/rules/**/*
7
- - .ai.local/team/tasks/**/*
5
+ - packages/ai-rules/scripts/**/*
6
+ - packages/ai-rules/docs/**/*
8
7
  ---
9
8
 
10
9
  <!-- shared-core: meta/preset-writing-style.md -->
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  description: Technical retrospective facilitator (on-demand /technical-retro)
3
- paths:
4
- - .ai.local/team/**/*
5
- - .ai.local/team/**/*
3
+ paths: []
6
4
  ---
7
5
 
8
6
  <!-- shared-core: review/technical-retro.md -->
@@ -75,7 +75,7 @@ Same JSON on Claude, Mavis, or OpenCode: `bash .<tool>/hooks/chain-team-phases.s
75
75
  ## Contracts
76
76
 
77
77
  - Manifest schema: shared core `agent-team/agent-artifact-contracts.md`. Read it first; producers upsert only their IDs.
78
- - Metrics: append-only allowlisted events — `agent-team/agent-task-metrics.md`. Aggregate: `node packages/ai-rules/scripts/aggregate-agent-task-metrics.mjs --team-root .ai.local/team`.
78
+ - Metrics: append-only allowlisted events — `agent-team/agent-task-metrics.md`. Aggregate: `node node_modules/@bonesofspring/ai-rules/scripts/aggregate-agent-task-metrics.mjs --team-root .ai.local/team`.
79
79
  - Commit `.ai.local/team/` templates (and slugs if you want them in clones).
80
80
 
81
81
  ## Plan graph & checkpoint (optional)
@@ -93,5 +93,5 @@ Same JSON on Claude, Mavis, or OpenCode: `bash .<tool>/hooks/chain-team-phases.s
93
93
  ## Contracts
94
94
 
95
95
  - Manifest schema: shared core `agent-team/agent-artifact-contracts.md`. Read it first; producers upsert only their IDs.
96
- - Metrics: append-only allowlisted events — `agent-team/agent-task-metrics.md`. Aggregate: `node packages/ai-rules/scripts/aggregate-agent-task-metrics.mjs --team-root .ai.local/team`.
96
+ - Metrics: append-only allowlisted events — `agent-team/agent-task-metrics.md`. Aggregate: `node node_modules/@bonesofspring/ai-rules/scripts/aggregate-agent-task-metrics.mjs --team-root .ai.local/team`.
97
97
  - Commit `.ai.local/team/` templates (and slugs if you want them in clones).
@@ -20,19 +20,23 @@ Per-tool: `init cursor|claude|mavis|opencode --preset next`. `init` overwrites t
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/next-app-core.md`, `.mavis/rules/package-manager.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/next-app-core.md`, `.opencode/rules/package-manager.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/next-app-core.md`, `.mavis/rules/package-manager.md`, `.mavis/rules/code-quality-and-refactoring.md`, `.mavis/rules/ai-local-overlay.md`.
28
+ - OpenCode host: read `.opencode/AGENTS.md`, then `.opencode/rules/next-app-core.md`, `.opencode/rules/package-manager.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
  Working directory for app scripts: **`app/`**. Detect the package manager from lockfile / `packageManager` (`package-manager` rule).
@@ -72,7 +76,7 @@ Gotchas, local patterns, and team decisions: **`.ai.local/conventions.md`** (fil
72
76
 
73
77
  ## Seed library (`.ai.local/rules-library/`)
74
78
 
75
- `init` seeds **staged-inactive** rule templates here (Cursor `.mdc` sources analog: `presets/cursor/next/ai-local/rules-library/**`). They are **not** active until moved into `.ai.local/rules/`. When a seed matches the task scope, apply it and tell the owner to move it. Typical seeds: `router-pages` (Pages Router override), `no-react-fc`, `component-child-decomposition`, `single-source-copy-constants`, `commit-hygiene`, `pre-pr-checklist`, `api-contract-source`, `agent-pipeline-gates`, `task-levels`, `analytics-events`, `feature-flags-experiments`, `pwa-service-worker`, `qa-test-cases`, `forms-validation`, and the `storybook-*` set.
79
+ `init` seeds **staged-inactive** rule templates here (Cursor `.mdc` sources analog: `presets/cursor/next/ai-local/rules-library/**`). They are **not** active until moved into `.ai.local/rules/`. When a seed matches the task scope, apply it and tell the owner to move it. Typical seeds: `router-pages` (Pages Router override), `no-react-fc`, `component-child-decomposition`, `single-source-copy-constants`, `commit-hygiene`, `pre-pr-checklist`, `api-contract-source`, `agent-pipeline-gates`, `task-levels`, `analytics-events`, `feature-flags-experiments`, `pwa-service-worker`, `qa-test-cases`, and the `storybook-*` set. (`forms-validation` is an active rule, not a seed.)
76
80
 
77
81
  ## Managed vs preserved
78
82
 
@@ -59,45 +59,9 @@ Before you run the project gate and write the terminal validation receipt, self-
59
59
 
60
60
  **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.
61
61
 
62
- 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
+ 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).
63
63
 
64
- ## Preset-structure validation (when scope is preset / packages/ai-rules)
65
-
66
- When validating **preset packaging** changes (paths under `packages/ai-rules/presets/**`, or `scope: preset-structure-validation` / `preset-artifacts-only`), run these checks. Skip app lint if there are **no** app source changes.
67
-
68
- ### FAIL (all stacks)
69
-
70
- 1. **Token budget:** Cursor `alwaysApply: true` count 3–5 (extra slots reserved for `ai-local-overlay`); Claude rules without `paths:` 3–5 (**exclude `**/README.md`** — Option A). Meta `preset-*` rules must **not** be session-start (must have `paths:`).
71
- 2. **Leakage (next):** hooks/agents must not require `xcuitest-test-*` handoffs or `xcodebuild` as the default Next post-change gate. See `tooling-and-review/preset-no-cross-stack-leakage.md`.
72
- 3. **Mapping / README:** `rules/README.md` must include a Cursor→Claude mapping table; document core→stack mapping when `_shared` consumers exist.
73
- 4. **shared-core consumers:** if `_shared/core/**` changed, every file with matching `<!-- shared-core: … -->` in this PR must be updated (or intentional fork documented).
74
- 5. **Twin presence:** Cursor rule change without Claude twin same PR → **FAIL** (next, nuxt, svelte, ios-swift, go, java, mcp-ts, php-hexagonal, and php-laravel). Domain twin body ≥15 lines; thin aliases may be shorter.
75
- 6. **Session-start body budget:** sum body lines of the intended session-start rules ≤ **200** (stretch ≤170); do **not** include `**/README.md` — record in validation-report; FAIL if grossly over.
76
- 7. **Embed drift (hard in `check:preset-structure`):** run `packages/ai-rules/scripts/check-shared-core-drift.sh` with `AI_RULES_DRIFT_FAIL=1` (bundled by the structure orchestrator). Lineage stems excluded from body equality.
77
- 8. **Dogfood (monorepo soft):** prefer `packages/ai-rules/scripts/sync-dogfood-cursor.sh`; mass dogfood deletion without migration doc → risk / FAIL for maintainers.
78
-
79
- 9. **Root AGENTS template:** each installable preset (`cursor|claude` × `next|nuxt|svelte|ios-swift|go|java|mcp-ts|php-hexagonal|php-laravel`, plus released `mavis/<stack>` and `opencode/<stack>`) must ship `REPO_AGENTS.md` when validating preset packaging → **FAIL** if missing.
80
- 10. **Hooks cookbook:** default `hooks.json` must **not** reference `hooks/examples/` → **FAIL** if it does.
81
- 11. **Performance skill by stack:** next → `react-performance`; nuxt → `vue-performance`. **No react-performance/vue-performance on ios/go/java:** skill directory / required handoff must be absent under ios-swift, go, java, mcp-ts, php-hexagonal, and php-laravel → **FAIL** (leakage). Prefer `check:preset-leakage`.
82
- 12. **Rule eval (WARN):** `scripts/check-rule-eval.mjs` / `yarn check:rule-eval` should exist for maintainers; smoke optional. Hard fail only when the opt-in eval job runs — not part of default `check:preset-structure`.
83
-
84
- 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.
85
- 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.
86
- 15. **Mavis derive (next):** when `presets/mavis/**` or mapped `cursor/next` sources change, run `check:mavis-adapter-map`, `check:mavis-token-budget`, `check:mavis-local-overlay`, and `check:mavis-platform-contract`. Adapter-map `sourceRevision` drift → **FAIL**.
87
- 16. **OpenCode derive (next):** when `presets/opencode/**` or mapped `cursor/next` sources change, run `check:opencode-adapter-map`, `check:opencode-token-budget`, `check:opencode-local-overlay`, `check:opencode-platform-contract`, and `test:opencode-context-budget`. Adapter-map `sourceRevision` drift → **FAIL**.
88
-
89
-
90
- **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.
91
-
92
- **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.
93
-
94
-
95
- ### Soft notes
96
-
97
- - Thin aliases may be &lt;15 body lines.
98
- - Embed vs lineage: `docs/PRESET-CONTRIBUTION.md`, `_shared/README.md`.
99
-
100
- ### Local overlay compliance (soft gate)
64
+ ## Local overlay compliance (soft gate)
101
65
 
102
66
  When the agent's transcript touches files in the repo, do a **soft check** on `.ai.local/`:
103
67
 
@@ -107,10 +71,6 @@ When the agent's transcript touches files in the repo, do a **soft check** on `.
107
71
 
108
72
  Soft WARNs do **not** fail the pipeline. They appear in the validation report under `## Soft notes` and are reviewed by the human gate. Repeated soft WARNs across runs on the same repo → log a recommendation to promote the local rule to a preset rule (`docs/LOCAL-OVERLAY.md` § "When to upgrade to a preset change").
109
73
 
110
- ### ios-swift-only checks
111
-
112
- When ios-swift paths are also in the PR, apply ios-swift verifier checks (chain fork, Playwright leakage) — **FAIL**.
113
-
114
74
  ## Output
115
75
 
116
76
  Write `.ai.local/team/tasks/<slug>/validation-report.md`:
@@ -51,46 +51,17 @@ Before you emit the terminal review receipt, self-audit the review artifact: eve
51
51
 
52
52
  **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.
53
53
 
54
- 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).
54
+ 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).
55
55
 
56
56
  ## UI / Figma parity gate (UI-touching MR)
57
57
 
58
- When the diff touches **UI / layout / styling** — paths under `app/src/ui/**` (components, pages, styles, hooks used by UI), or edits to global layout/CSS/tokens, or renamed/reordered UI files — AND a Figma mockup reference exists in `brief.md` / `decomposition.md` (Figma URL, fileKey, or node id) **or** `mockup-review.md` is present in the task:
58
+ Applies when the diff touches UI / layout / styling (`app/src/ui/**`, global layout / CSS / tokens, renamed or reordered UI files) and a Figma reference exists (URL, fileKey, or node id in `brief.md` / `decomposition.md`, or `mockup-review.md` is present). Does not apply to MRs with no UI diff and no Figma reference.
59
59
 
60
- - **Do a detailed, pixel-accurate comparison** of the implementation against the mockup, **across every viewport the project uses**. The project’s accepted viewport set is the one declared in the `mockup-review` AC-8 / Stack notes (web buckets ~375 / ~768 / ~1280 mapped to small / medium / large) and/or the Storybook viewport toolbar in this repo — fetch the full set, do not sample.
61
- - For each viewport: pull the Figma frame via Figma MCP `get_screenshot` (prefer the node-link if present) and capture the running app at the same width (Playwright MCP / Chrome DevTools MCP). Compare structure, spacing, typography, color, iconography, states, and interactive affordances. **Storybook visual baselines are not a substitute.**
62
-
63
- ### Per-element parity checklist (mandatory)
64
-
65
- For every UI element in the diff scope, verify against the Figma node and the `mockup-review.md` `## Design contract` (when present) and the **`design-tokens-binding`** discipline. Findings cite **`path:line`** + Figma node id + viewport.
66
-
67
- 1. **Typography** — font-family, size, line-height, weight, letter-spacing, color. Must match the Figma text style / `tokens-typography` mapping. A `Text variant="…"` DS component is the safe mirror; a raw `font-size: 14px; line-height: 20px;` wrapper is a finding unless the Figma text style maps to a raw token (and the token is used, not a literal).
68
- 2. **Color** — fills, strokes, icon color, link color, placeholder color. Must bind to `@sds/tokens-colors` / `@sds/brand-colors` / the project token module (or the Figma variable mapped in the Design contract). Raw `#…` / `rgb(…)` is a finding. Hover / active / focus / disabled states must use the bound state color from the token set, not a literal.
69
- 3. **Spacing** — padding, gap, margin, border-radius. Must match the Figma spacing / radius variable (Design contract) or the repo spacing scale. Raw `padding: 16px;` is a finding if a token exists. Auto-layout intent (direction, gap, alignment) preserved — no reflow to absolute positioning without a brief reason.
70
- 4. **Imagery & icons** — image `src`, intrinsic `width`/`height`, aspect ratio match the Figma asset / `get_design_context` recommendation; rendered with `next/image` (or repo convention). Icons must use the `@sds/icon` (or DS) symbol name from the Figma component instance. A `placeholder`, an invented image URL, a guessed icon name, or a stretched aspect ratio is a finding. `alt` text matches the Figma node copy when meaningful.
71
- 5. **States** — empty / loading / error / success / disabled / validation visible in the Figma must be implemented. Missing states present in the mockup → `blocker`.
72
- 6. **Structure & responsive** — direction (row / column), alignment, wrap, overflow match the Figma. The implementation responds to the project viewport set without horizontal scroll or clipped content at any accepted width (unless the Figma explicitly clips).
73
- 7. **Auto-layout vs absolute** — for a region that is the only responsive evidence in Figma, the implementation must use flex / grid with the same gap / padding, not absolute positioning.
74
-
75
- ### Post-implementation gate sub-sections (AC-3 / AC-6 / AC-7 / AC-17 / AC-22)
76
-
77
- When a frozen contract exists (`.ai.local/team/tasks/<slug>/figma-contract.json`), the parity gate runs the full G0..G6 procedure (requestable skill `figma-fidelity`) and emits, inside `## Figma parity (UI)`: `## Post-impl screenshot diff (AC-6)`, `## Variable/value diff (AC-7)`, `## Effect parity (AC-20)`, `## Asset / icon audit (AC-21)`, `## Theme / mode parity (AC-25)`, `## i18n / RTL stress (AC-24)`, `## Viewport matrix (AC-23)`, `## Contract freeze (AC-17)`, `## AC coverage`.
78
-
79
- - **Structural parity (AC-3):** implemented tree vs `nodes[]` 1:1; unmapped addition → finding; missing mapped component → `blocker`.
80
- - **Value diff (AC-7):** per node × property, expected (contract) vs rendered/computed actual (chrome-devtools MCP `getComputedStyle`; Playwright MCP as substitute). "Compare visually" with no value rows → finding.
81
- - **Two-way state diff (AC-22):** a mockup state missing in the implementation → `blocker`; an AC-required state absent from the mockup → `mockup-change-requested`.
82
- - **Freeze (AC-17):** a changed `lastModified`/`version` for the root or a mapped node → `MOCKUP_CHANGED_AFTER_CONTRACT` (`blocker`).
83
- - **Degradation:** a degraded mandatory check (browser / Figma MCP down, source revision unknown) → `unable_to_compare` → `REQUEST_CHANGES`, with the named `degraded:` / `blocked:` marker — never a silent PASS.
84
-
85
- ### Findings, severity, and section
86
-
87
- - Findings cite `path:line` + Figma node id + viewport + severity. Layout / style deviations from the mockup → **`important`**; user-visible / broken / missing-state → **`blocker`**; latent / cosmetic → **`nit`**.
88
- - Emit a `## Figma parity (UI)` section in `review.md` with the per-viewport verdict, a findings table, and screenshots / links. The section must reference the `## Design contract` from `mockup-review.md` and the **`design-tokens-binding`** discipline. **If you cannot perform the comparison** (no Figma URL in brief, or Figma MCP down with no manual screenshots) → still emit the section with verdict `unable_to_compare` and a one-line reason. **Never** skip the section on a UI-touching MR with a Figma reference.
89
- - **Hard rules:**
90
- - UI-touching MR with a Figma reference and a missing or `unable_to_compare` parity section → **REQUEST_CHANGES**.
91
- - Unbound raw values where a token exists (typography / color / spacing / imagery) → `blocker` (user-visible) or `important` (latent). Do not approve on Storybook baselines alone.
92
-
93
- The gate does **not** apply to MRs with no UI/layout diff and no Figma reference (e.g. pure store/reducer or test-only changes).
60
+ - **Procedure:** skill **`figma-fidelity`** — scope (default: changed nodes at the primary viewports; full matrix on `fidelity: full` or new screens), G0..G6, degradation markers, UI WP Definition of Done. Bind expectations to the `## Design contract` / `figma-contract.json` and the **`design-tokens-binding`** discipline.
61
+ - **Per element:** typography, color (including hover / active / focus / disabled), spacing / radius, imagery and icons (`src`, intrinsic size, DS symbol, `alt`), states, structure / responsive, auto-layout vs absolute positioning.
62
+ - **Findings:** `path:line` + Figma node id + viewport + severity. Deviation from the mockup → `important`; user-visible / broken / missing state / missing mapped component → `blocker`; latent / cosmetic → `nit`.
63
+ - **Section:** always emit `## Figma parity (UI)` in `review.md`; when the comparison cannot run, verdict `unable_to_compare` with a one-line reason.
64
+ - **Hard rules:** missing or `unable_to_compare` parity → `REQUEST_CHANGES`; unbound raw values where a token exists → `blocker` (user-visible) or `important` (latent); do not approve on Storybook baselines alone.
94
65
 
95
66
  ## Review artifact
96
67
 
@@ -112,9 +83,9 @@ APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
112
83
  - ...
113
84
 
114
85
  ## Figma parity (UI)
115
- - Viewports compared: …
86
+ - Scope: default | full — viewports compared: …
116
87
  - Per-viewport verdict: …
117
- - Sub-sections: Post-impl screenshot diff (AC-6) / Variable/value diff (AC-7) / Effect parity (AC-20) / Asset-icon audit (AC-21) / Theme-mode parity (AC-25) / i18n-RTL stress (AC-24) / Viewport matrix (AC-23) / Contract freeze (AC-17)
88
+ - Sub-sections: the ones `figma-fidelity` names for this scope
118
89
  - Findings: `path:line` | node id | viewport | severity | note
119
90
  - (If UI gate not applicable: `N/A — no UI diff / no Figma reference`.)
120
91
 
@@ -93,7 +93,7 @@ Before you set `fixApplied: true` and emit the terminal receipt, self-audit the
93
93
 
94
94
  **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.
95
95
 
96
- Record a `## Self-review` block in `debug-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).
96
+ Record a `## Self-review` block in `debug-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).
97
97
 
98
98
 
99
99
  ## MCP usage
@@ -47,7 +47,9 @@ You are a senior frontend developer working in a Next.js monorepo with strict la
47
47
  3. Read `pipeline.json` for step context and scope.
48
48
  4. Follow the **`feature-delivery` skill** (layer order, reference features, validation handoff).
49
49
  5. **Verify carry-over at HEAD before applying** (refactor intent only). When the brief comes from a prior review's carry-over findings list, for each item run `git show HEAD:<path>` or `grep` to confirm the finding still applies at the current HEAD; if the file already contains the fix (carry-over was closed in a prior uncommitted batch), mark it as **NO-OP at HEAD** in `implementation.md` and skip the edit; if the file is unchanged, apply the fix and cite file:line. Target ≤2 NO-OP items per refactor pipeline.
50
- 6. **Figma node-link precondition.** If `brief.md` / `decomposition.md` / the prompt contains a Figma URL with a node id (`?node-id=…`), do **not** start UI implementation until the frozen contract `.ai.local/team/tasks/<slug>/figma-contract.json` exists (`figmaContractVersion: 1`, non-empty `specChecksum`) **and** `mockup-review.md` contains its `## Design contract` projection. Re-confirm the contract with a **single** `get_metadata` call on the root node: compare `lastModified` / `version` to `sourceRevision`; a mismatch → `MOCKUP_CHANGED_AFTER_CONTRACT` → emit `blocked` and hand back (no silent re-baseline). The contract is the binding table for typography / color / spacing / imagery; `nodes[]` is the component map. Load requestable rule **`ui-and-accessibility/design-tokens-binding`** before writing UI — bind every value to a contract token; raw `#…` / `px` are a finding.
50
+ 6. **Figma node-link precondition.** If `brief.md` / `decomposition.md` / the prompt contains a Figma URL with a node id (`?node-id=…`), do not start UI implementation until `.ai.local/team/tasks/<slug>/figma-contract.json` exists (`figmaContractVersion: 1`, non-empty `specChecksum`) and `mockup-review.md` contains its `## Design contract` projection.
51
+ - Re-confirm the freeze with one `get_metadata` call on the root node (`lastModified` / `version` vs `sourceRevision`); mismatch → `MOCKUP_CHANGED_AFTER_CONTRACT` → emit `blocked` and hand back (no silent re-baseline).
52
+ - Load requestable rule **`ui-and-accessibility/design-tokens-binding`** before writing UI; bind every value to a contract token (raw `#…` / `px` are a finding). `nodes[]` is the component map.
51
53
 
52
54
  ## Task execution rules
53
55
 
@@ -102,24 +104,21 @@ Before you emit the terminal implementation receipt (per wave for multi-wave wor
102
104
 
103
105
  **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.
104
106
 
105
- Record a `## Self-review` block in `implementation.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).
107
+ Record a `## Self-review` block in `implementation.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).
106
108
 
107
- ## UI self-check vs Figma (mandatory for UI WPs with a Figma reference)
109
+ ## UI self-check vs Figma
108
110
 
109
- When this WP touched UI / layout / styling (paths under `app/src/ui/**`, global layout/CSS/tokens) AND a Figma reference exists in `brief.md` / `decomposition.md` (or `mockup-review.md` is present):
111
+ When this WP touched UI / layout / styling (`app/src/ui/**`, global layout / CSS / tokens) and a Figma reference exists (`brief.md`, `decomposition.md`, or `mockup-review.md`): run skill **`figma-fidelity`** (scope, G0..G6, degradation markers), fix deviations before the implementation receipt, and record the result in `implementation.md`:
110
112
 
111
- 1. **Render** the changed routes at **each project viewport** (the set from `mockup-review` AC-8 / Stack notes — web buckets ~375 / ~768 / ~1280 small/medium/large — and the repo’s Storybook viewport toolbar). Use Playwright MCP or Chrome DevTools MCP (the app must be running; if not, note the limitation and still perform the self-check as far as possible).
112
- 2. **Compare** each rendered viewport to the Figma `get_screenshot` (prefer the node-link). For each UI element in the diff scope, check the per-element parity list in the `code-reviewer` UI / Figma parity gate: typography, color, spacing, imagery, states, structure/responsive, auto-layout intent.
113
- 3. **Fix** obvious deviations before the implementation receipt (font family / size / line-height / color / spacing / image src+size / icon name / state). Bind to the Design contract; load **`ui-and-accessibility/design-tokens-binding`** if a value is missing.
114
- 4. **Record** a `## UI self-check vs Figma` block in `implementation.md` (viewports checked, MCP/app status, deviations fixed `path:line | node id | viewport | what | fix`, remaining gaps). If the app was not runnable or MCP was down, still emit the block with the limitation — the reviewer will gate.
115
-
116
- This is the developer-side counterpart to the `code-reviewer` UI / Figma parity gate; together they close the fidelity loop (extract contract → bind → self-check → review-block). The full procedure is the requestable skill **`figma-fidelity`** (G0..G6). Additionally record, per the returned gate:
113
+ ```markdown
114
+ ## UI self-check vs Figma
115
+ - Scope: <default | full> — viewports: <e.g. 375, 1280>
116
+ - MCP / app status: <ok | degraded: reason>
117
+ - Deviations fixed: `path:line` | node id | viewport | what | fix
118
+ - Remaining gaps / known limits: <… or none>
119
+ ```
117
120
 
118
- - `## Structural parity (AC-3)` — implemented component tree vs `figma-contract.json` `nodes[]`, 1:1 (unmapped addition → finding; missing mapped component → blocker).
119
- - `## Variable/value diff (AC-7)` — per node × property, expected (contract) vs rendered/computed actual.
120
- - `## Geometry / auto-layout audit (AC-18)` — padding / gap / margin / border-box + auto-layout direction, with numeric deltas.
121
- - `## State matrix diff (AC-22)` — two-way state coverage (mockup↔impl).
122
- - `## UI WP Definition of Done (AC-28)` — the checklist from `figma-fidelity`; a UI WP is **not** done while any item is unmet or degraded without a marker.
121
+ Add the sections the skill names (structural parity, value / geometry diff, state matrix diff, UI WP Definition of Done). If the app is not runnable or MCP is down, still emit the block with a `degraded:` / `blocked:` marker — the reviewer gates.
123
122
 
124
123
  ## Anti-hallucination (Next / React / RTK)
125
124
 
@@ -50,7 +50,7 @@ MCP unavailable or OAuth fail → verdict `BLOCKED_MCP`. Do not invent DS claims
50
50
 
51
51
  Follow the requestable `mockup-review` checklist (DS components, tokens, quality, coverage, viewports). Do not duplicate that checklist here.
52
52
 
53
- ## Node-link input: child→component decomposition (AC-2, mandatory)
53
+ ## Node-link input: child→component decomposition (mandatory)
54
54
 
55
55
  When the Figma URL (in prompt, `brief.md`, or `decomposition.md`) contains a node id (`?node-id=…` or `…/node/…`):
56
56
 
@@ -60,27 +60,28 @@ When the Figma URL (in prompt, `brief.md`, or `decomposition.md`) contains a nod
60
60
  - existing `app/src/ui/**` component → name it (e.g. `RiskProfilePage/components/ProfileHealthCard`);
61
61
  - attached library component (e.g. `@sds/*`) → name the library symbol and the local wrapper;
62
62
  - no analog → mark `new: <ProposedName>` and the parent component it belongs to.
63
- 4. **Emit the map** in the report under `## Node decomposition (AC-2)` as a table (node id, node name, type, target component / action). Add a short prose summary of grouping / boundaries.
63
+ 4. **Emit the map** in the report under `## Node decomposition` as a table (node id, node name, type, target component / action). Add a short prose summary of grouping / boundaries.
64
64
  5. **Extract the Design contract** (mandatory for node-link input) and emit it as a separate `## Design contract` section, **above** the Node decomposition table — the developer reads it first:
65
65
  - **Figma variables** (one `get_variable_defs` call per file): list the variables used by the subtree (color, spacing, radius, effect). Map each to the repo equivalent: `@sds/tokens-colors` / `@sds/brand-colors` / `@sds/tokens` / project token module (e.g. `var(--text-primary, …)`).
66
66
  - **Text styles**: list the Figma text style names used (e.g. `Body/M`, `Heading/L`). Map to the repo typography component / token (`@sds/tokens-typography`, `Text variant="…"`, Linaria `var(--font-…, …)`).
67
67
  - **Components / assets**: list library component instances (`@sds/*` symbol name), image fills (asset URL / `get_design_context` recommendation), and icons (`@sds/icon` symbol name).
68
68
  - Call this once per file; do not dump the whole variable set — only what the subtree uses.
69
- 6. **Extend the AC-2 table** with a concise `Bindings` column (or a per-row note) capturing the text style, fill / spacing tokens, and asset source for that node. Keep the table scannable; put the long form in the Design contract section.
70
- 7. **Verdict rule.** Missing map **or** missing Design contract on a node-link input → verdict `FAIL` (mandatory pre-implementation step) unless MCP returned `BLOCKED_MCP`. Refusal to produce the map / contract on a node-link task is not an option — narrow the node with the user first (do not silently fall back to whole-file review).
69
+ 6. **Extend the node-decomposition table** with a concise `Bindings` column (or a per-row note) capturing the text style, fill / spacing tokens, and asset source for that node. Keep the table scannable; put the long form in the Design contract section.
70
+ 7. **Verdict rule.** Missing map **or** missing Design contract on a node-link input → verdict `FAIL` unless MCP returned `BLOCKED_MCP`. If the node is too large, narrow it with the user first (do not silently fall back to whole-file review).
71
71
 
72
72
  The map and the Design contract are the implementation contract the developer reads before coding; the DS/tokens/quality/coverage/viewport dimensions still apply on top.
73
73
 
74
- ## Contract artifact + per-node spec (AC-2 / AC-4 / AC-16 / AC-17)
74
+ ## Contract artifact + per-node spec
75
75
 
76
- 1. **Write the machine-readable contract first** to `.ai.local/team/tasks/<slug>/figma-contract.json` (`figmaContractVersion: 1`), then render the `mockup-review.md` projections from it so they cannot drift within one pass. Preset-owned keys (values come from the runtime MCP returns — do not assert a Figma schema): `source` (`fileKey`, `url`, `rootNodeId`, `rootNodeName`, `sourceRevision{lastModified,version}`), `specChecksum`, `scope`, `viewports[]`, `variables{}`, `nodes[]` (each with `target{kind,ref,delta}`, `componentKey`, `codeConnect`, `variables{color,spacing,radius,effect,typography,text}`, `asset`, `states[]`, `selector`, `acIds[]`), `stateMatrix`, `modes[]`, `locales[]`, `defects[]`.
77
- 2. **Per node (AC-4):** a node row carries its **own** values for color / spacing / radius / effect / typography / text plus assets — each with the design-source variable / text-style name **and** the repo token / symbol it maps to. No file-level or subtree-level variable list. Populate from `get_metadata` (tree), `get_design_context` + `get_variable_defs` (values), `search_design_system` (DS), `get_code_connect_map` (optional selectors).
78
- 3. **Freeze (AC-17):** record `specChecksum` (sha256 over the canonical JSON of `source`, `nodes[]`, `variables`, `stateMatrix`, `viewports` — stable key order) and `sourceRevision` (`lastModified` / `version` from `get_metadata`; `unknown` only with a `degraded:` marker on `## Contract freeze`).
76
+ 1. **Write the machine-readable contract first** to `.ai.local/team/tasks/<slug>/figma-contract.json` (`figmaContractVersion: 1`), then render the `mockup-review.md` projections from it so they cannot drift within one pass.
77
+ Preset-owned keys (values come from the runtime MCP returns — do not assert a Figma schema): `source` (`fileKey`, `url`, `rootNodeId`, `rootNodeName`, `sourceRevision{lastModified,version}`), `specChecksum`, `scope`, `viewports[]`, `variables{}`, `nodes[]` (each with `target{kind,ref,delta}`, `componentKey`, `codeConnect`, `variables{color,spacing,radius,effect,typography,text}`, `asset`, `states[]`, `selector`, `acIds[]`), `stateMatrix`, `modes[]`, `locales[]`, `defects[]`.
78
+ 2. **Per node:** a node row carries its **own** values for color / spacing / radius / effect / typography / text plus assets — each with the design-source variable / text-style name **and** the repo token / symbol it maps to. No file-level or subtree-level variable list. Populate from `get_metadata` (tree), `get_design_context` + `get_variable_defs` (values), `search_design_system` (DS), `get_code_connect_map` (optional selectors).
79
+ 3. **Freeze:** record `specChecksum` (sha256 over the canonical JSON of `source`, `nodes[]`, `variables`, `stateMatrix`, `viewports` — stable key order) and `sourceRevision` (`lastModified` / `version` from `get_metadata`; `unknown` only with a `degraded:` marker on `## Contract freeze`).
79
80
  4. **Register the path** on the **existing** `mockup-review` manifest entry `authoritativePaths` (add `figma-contract.json`; **no** new producer row, **no** new agent).
80
81
 
81
- ## Figma defect taxonomy + escalation (AC-9 / AC-10)
82
+ ## Figma defect taxonomy + escalation
82
83
 
83
- Classify every defect into exactly one category, each with the node id + an actionable disposition, and add one row per defect to `## Mockup change requests (AC-10)` (`nodeId | category | evidence | requested change | why the agent cannot reproduce faithfully`):
84
+ Classify every defect into exactly one category, each with the node id + an actionable disposition, and add one row per defect to `## Mockup change requests` (`nodeId | category | evidence | requested change | why the agent cannot reproduce faithfully`):
84
85
 
85
86
  - **(a) DS violation** — custom frame / raw value where an attached-library component or variable exists → cite node + suggested replacement.
86
87
  - **(b) Non-exportable effect / asset** — effect with no DS token, image fill with no export, or icon absent from the DS icon set → request the export / token / DS substitute.
@@ -93,8 +94,8 @@ Never silently approximate: a defect → verdict `mockup-change-requested`.
93
94
  Write `.ai.local/team/tasks/<slug>/figma-contract.json` (the source of truth) and `.ai.local/team/tasks/<slug>/mockup-review.md` (the rendered projections) using the report headings in the `mockup-review` rule. When the input is a node-link, the report **must** additionally include:
94
95
 
95
96
  - `## Design contract` (above Node decomposition) — Figma variables, text styles, components/assets used by the subtree, with the repo mapping (`@sds/tokens-*` / DS components / project token module). This is the binding table the developer uses for typography, color, spacing, and imagery.
96
- - `## Node decomposition (AC-2)` — the child→component map (table) plus a short prose summary, with a `Bindings` column / per-row note for the Figma design bindings.
97
- - `## Per-node spec (AC-4)` · `## State matrix (AC-6)` · `## Design-source defect taxonomy (AC-9)` · `## Mockup change requests (AC-10)` · `## Contract freeze (AC-17)` — the projections of the corresponding `figma-contract.json` blocks; every value MUST equal the JSON.
97
+ - `## Node decomposition` — the child→component map (table) plus a short prose summary, with a `Bindings` column / per-row note for the Figma design bindings.
98
+ - `## Per-node spec` · `## State matrix` · `## Design-source defect taxonomy` · `## Mockup change requests` · `## Contract freeze` — the projections of the corresponding `figma-contract.json` blocks; every value equals the JSON.
98
99
 
99
100
  Both the Design contract and the Node decomposition are the developer’s pre-implementation contract; do not omit either on a node-link input.
100
101
 
@@ -106,7 +107,7 @@ Report verdict: `PASS | PASS_WITH_NOTES | FAIL | BLOCKED_MCP | mockup-change-req
106
107
  |---------|--------------------|------------------|-------------------|
107
108
  | `PASS` / `PASS_WITH_NOTES` | `completed` | `completed` | `completed` |
108
109
  | `FAIL` | `completed` (report-only, like `perf-audit`) | `changes_requested` | `blocked` |
109
- | `mockup-change-requested` (AC-10) | `completed` (report-only) | `changes_requested` | `blocked` |
110
+ | `mockup-change-requested` | `completed` (report-only) | `changes_requested` | `blocked` |
110
111
  | `BLOCKED_MCP` | `blocked` | `blocked` | `blocked` |
111
112
 
112
113
  The `mockup-review` manifest entry `authoritativePaths` carries `mockup-review.md` **and** `figma-contract.json`.
@@ -44,7 +44,7 @@ If `openspec/` is absent in the repo, stop and report `blocked` with the message
44
44
  4. `openspec/specs/<capability>/spec.md` — surviving applied specs (the "as-is" target).
45
45
  5. `openspec/changes/archive/<YYYY-MM-DD>-<change-id>/` — prior decisions (D-1..) and open questions (OQ-1..) reusable across changes.
46
46
  6. Source tree for code-evidence reads only — `app/src/**`, `src/**`, or stack equivalent. **Never edit.** Cite path:line in requirements, scenarios, design notes.
47
- 7. Pipeline step `scope` — must be `openspec:<change-id>` (e.g. `openspec:MEDCARD-11762-sync-offline-consultation-spec`).
47
+ 7. Pipeline step `scope` — must be `openspec:<change-id>` (e.g. `openspec:TASK-123-sync-offline-consultation-spec`).
48
48
 
49
49
  ## Phase discipline (mirrors `/opsx:propose` → `/opsx:apply` → `/opsx:archive`)
50
50