@bonesofspring/ai-rules 0.2.34 → 0.2.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1491) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/bin/cli.js +247 -337
  3. package/bin/lib/fs-utils.js +203 -0
  4. package/bin/lib/merged-config.js +305 -0
  5. package/bin/lib/safe-path.js +7 -3
  6. package/bin/lib/seed-ai-local-team.js +18 -2
  7. package/bin/mavis-install.js +67 -173
  8. package/bin/opencode-install.js +165 -227
  9. package/docs/PRESET-CONTRIBUTION.md +33 -12
  10. package/package.json +13 -2
  11. package/presets/_shared/README.md +2 -0
  12. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -1
  13. package/presets/_shared/core/architecture/feature-delivery-workflow.md +1 -1
  14. package/presets/_shared/core/meta/preset-no-cross-stack-leakage.md +0 -1
  15. package/presets/_shared/core/meta/preset-pr-checklist.md +6 -2
  16. package/presets/_shared/core/meta/preset-token-budget.md +2 -3
  17. package/presets/_shared/core/meta/preset-twin-sync.md +5 -5
  18. package/presets/_shared/core/quality/self-review-and-context-hygiene.md +11 -0
  19. package/presets/_shared/core/review/mockup-review.md +34 -29
  20. package/presets/claude/android-kotlin/REPO_AGENTS.md +10 -6
  21. package/presets/claude/android-kotlin/agents/build-verifier.md +3 -37
  22. package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -1
  23. package/presets/claude/android-kotlin/agents/debugger.md +1 -1
  24. package/presets/claude/android-kotlin/agents/feature-developer.md +1 -1
  25. package/presets/claude/android-kotlin/agents/openspec-author.md +1 -1
  26. package/presets/claude/android-kotlin/agents/task-analyst.md +1 -1
  27. package/presets/claude/android-kotlin/agents/tech-writer.md +1 -1
  28. package/presets/claude/android-kotlin/agents/unit-test-generator.md +1 -1
  29. package/presets/claude/android-kotlin/agents/unit-test-planner.md +1 -1
  30. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +49 -17
  31. package/presets/claude/android-kotlin/rules/api-and-data/networking.md +1 -1
  32. package/presets/claude/android-kotlin/rules/architecture/boundaries.md +2 -2
  33. package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +13 -18
  34. package/presets/claude/android-kotlin/rules/architecture/module-public-api.md +1 -1
  35. package/presets/claude/android-kotlin/rules/architecture/product-specs-authoring.md +1 -0
  36. package/presets/claude/android-kotlin/rules/architecture/product-specs.md +1 -0
  37. package/presets/claude/android-kotlin/rules/architecture/reference-features.md +1 -2
  38. package/presets/claude/android-kotlin/rules/stack/android-app-core.md +2 -2
  39. package/presets/claude/android-kotlin/rules/stack/kotlin-conventions.md +1 -1
  40. package/presets/claude/android-kotlin/rules/testing/ui.md +1 -1
  41. package/presets/claude/android-kotlin/rules/testing/unit.md +2 -2
  42. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +1 -3
  43. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +236 -11
  44. package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +7 -31
  45. package/presets/claude/android-kotlin/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  46. package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +1 -5
  47. package/presets/claude/android-kotlin/rules/tooling-and-review/design-guidance.md +1 -2
  48. package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +1 -2
  49. package/presets/claude/android-kotlin/rules/tooling-and-review/mcp-usage.md +1 -2
  50. package/presets/claude/android-kotlin/rules/tooling-and-review/mockup-review.md +35 -32
  51. package/presets/claude/android-kotlin/rules/tooling-and-review/post-change-build.md +2 -6
  52. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-goals.md +2 -3
  53. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-layering.md +2 -3
  54. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  55. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  56. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-token-budget.md +4 -6
  57. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +7 -8
  58. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-writing-style.md +2 -3
  59. package/presets/claude/android-kotlin/rules/tooling-and-review/technical-retro.md +1 -3
  60. package/presets/claude/android-kotlin/rules/tooling-and-review/ux-design.md +1 -3
  61. package/presets/claude/android-kotlin/rules/ui-and-accessibility/compose.md +1 -1
  62. package/presets/claude/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  63. package/presets/claude/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  64. package/presets/claude/android-kotlin/team/README.md +2 -2
  65. package/presets/claude/go/REPO_AGENTS.md +10 -6
  66. package/presets/claude/go/agents/build-verifier.md +3 -29
  67. package/presets/claude/go/agents/ci-investigator.md +2 -2
  68. package/presets/claude/go/agents/code-reviewer.md +1 -1
  69. package/presets/claude/go/agents/debugger.md +1 -1
  70. package/presets/claude/go/agents/feature-developer.md +1 -3
  71. package/presets/claude/go/agents/openspec-author.md +1 -1
  72. package/presets/claude/go/agents/task-analyst.md +1 -1
  73. package/presets/claude/go/agents/tech-writer.md +1 -1
  74. package/presets/claude/go/hooks/chain-team-phases.sh +51 -19
  75. package/presets/claude/go/rules/api-and-data/adapters-driven.md +1 -1
  76. package/presets/claude/go/rules/api-and-data/adapters-driving.md +2 -2
  77. package/presets/claude/go/rules/architecture/boundaries.md +1 -0
  78. package/presets/claude/go/rules/architecture/feature-delivery.md +45 -41
  79. package/presets/claude/go/rules/architecture/product-specs-authoring.md +1 -0
  80. package/presets/claude/go/rules/architecture/product-specs.md +1 -0
  81. package/presets/claude/go/rules/architecture/reference-features.md +37 -21
  82. package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +1 -6
  83. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +76 -50
  84. package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +7 -31
  85. package/presets/claude/go/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  86. package/presets/claude/go/rules/tooling-and-review/code-quality.md +1 -1
  87. package/presets/claude/go/rules/tooling-and-review/code-review.md +1 -6
  88. package/presets/claude/go/rules/tooling-and-review/design-guidance.md +1 -2
  89. package/presets/claude/go/rules/tooling-and-review/go-tooling.md +2 -7
  90. package/presets/claude/go/rules/tooling-and-review/language-policy.md +1 -2
  91. package/presets/claude/go/rules/tooling-and-review/mcp-usage.md +1 -2
  92. package/presets/claude/go/rules/tooling-and-review/post-change-test.md +2 -7
  93. package/presets/claude/go/rules/tooling-and-review/preset-goals.md +2 -3
  94. package/presets/claude/go/rules/tooling-and-review/preset-layering.md +2 -3
  95. package/presets/claude/go/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  96. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  97. package/presets/claude/go/rules/tooling-and-review/preset-token-budget.md +4 -6
  98. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +7 -8
  99. package/presets/claude/go/rules/tooling-and-review/preset-writing-style.md +2 -3
  100. package/presets/claude/go/rules/tooling-and-review/technical-retro.md +1 -6
  101. package/presets/claude/go/skills/ci-investigation/SKILL.md +2 -2
  102. package/presets/claude/go/skills/technical-retro/SKILL.md +13 -2
  103. package/presets/claude/go/team/README.md +2 -2
  104. package/presets/claude/ios-swift/REPO_AGENTS.md +10 -6
  105. package/presets/claude/ios-swift/agents/build-verifier.md +3 -39
  106. package/presets/claude/ios-swift/agents/code-reviewer.md +1 -1
  107. package/presets/claude/ios-swift/agents/debugger.md +1 -1
  108. package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
  109. package/presets/claude/ios-swift/agents/openspec-author.md +1 -1
  110. package/presets/claude/ios-swift/agents/task-analyst.md +1 -1
  111. package/presets/claude/ios-swift/agents/tech-writer.md +1 -1
  112. package/presets/claude/ios-swift/agents/unit-test-generator.md +1 -1
  113. package/presets/claude/ios-swift/agents/unit-test-planner.md +1 -1
  114. package/presets/claude/ios-swift/agents/xcuitest-test-generator.md +1 -1
  115. package/presets/claude/ios-swift/agents/xcuitest-test-planner.md +2 -2
  116. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +49 -17
  117. package/presets/claude/ios-swift/rules/api-and-data/networking.md +3 -1
  118. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +58 -9
  119. package/presets/claude/ios-swift/rules/architecture/product-specs-authoring.md +1 -0
  120. package/presets/claude/ios-swift/rules/architecture/product-specs.md +1 -0
  121. package/presets/claude/ios-swift/rules/architecture/reference-features.md +44 -7
  122. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +1 -3
  123. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +236 -11
  124. package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +7 -31
  125. package/presets/claude/ios-swift/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  126. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +1 -5
  127. package/presets/claude/ios-swift/rules/tooling-and-review/design-guidance.md +1 -2
  128. package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +1 -2
  129. package/presets/claude/ios-swift/rules/tooling-and-review/mcp-usage.md +1 -2
  130. package/presets/claude/ios-swift/rules/tooling-and-review/mockup-review.md +35 -32
  131. package/presets/claude/ios-swift/rules/tooling-and-review/post-change-build.md +2 -6
  132. package/presets/claude/ios-swift/rules/tooling-and-review/preset-goals.md +2 -3
  133. package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +2 -3
  134. package/presets/claude/ios-swift/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  135. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  136. package/presets/claude/ios-swift/rules/tooling-and-review/preset-token-budget.md +4 -6
  137. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +7 -8
  138. package/presets/claude/ios-swift/rules/tooling-and-review/preset-writing-style.md +2 -3
  139. package/presets/claude/ios-swift/rules/tooling-and-review/security-ios.md +0 -2
  140. package/presets/claude/ios-swift/rules/tooling-and-review/technical-retro.md +1 -3
  141. package/presets/claude/ios-swift/rules/tooling-and-review/ux-design.md +1 -3
  142. package/presets/claude/ios-swift/rules/tooling-and-review/xcode-tooling.md +1 -5
  143. package/presets/claude/ios-swift/rules/ui-and-accessibility/swiftui.md +2 -1
  144. package/presets/claude/ios-swift/rules/ui-and-accessibility/viewmodels.md +2 -1
  145. package/presets/claude/ios-swift/skills/technical-retro/SKILL.md +13 -2
  146. package/presets/claude/ios-swift/skills/unit-testing/SKILL.md +1 -1
  147. package/presets/claude/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  148. package/presets/claude/ios-swift/team/README.md +2 -2
  149. package/presets/claude/java/REPO_AGENTS.md +10 -6
  150. package/presets/claude/java/agents/build-verifier.md +3 -39
  151. package/presets/claude/java/agents/ci-investigator.md +2 -2
  152. package/presets/claude/java/agents/code-reviewer.md +1 -1
  153. package/presets/claude/java/agents/debugger.md +1 -1
  154. package/presets/claude/java/agents/feature-developer.md +1 -3
  155. package/presets/claude/java/agents/openspec-author.md +1 -1
  156. package/presets/claude/java/agents/task-analyst.md +1 -1
  157. package/presets/claude/java/agents/tech-writer.md +1 -1
  158. package/presets/claude/java/hooks/chain-team-phases.sh +51 -19
  159. package/presets/claude/java/rules/api-and-data/adapters-driven.md +2 -1
  160. package/presets/claude/java/rules/api-and-data/adapters-driving.md +3 -2
  161. package/presets/claude/java/rules/api-and-data/api-grpc.md +1 -0
  162. package/presets/claude/java/rules/api-and-data/api-http.md +1 -0
  163. package/presets/claude/java/rules/api-and-data/messaging-adapters.md +1 -1
  164. package/presets/claude/java/rules/api-and-data/persistence-adapters.md +1 -0
  165. package/presets/claude/java/rules/architecture/application-usecases.md +2 -1
  166. package/presets/claude/java/rules/architecture/boundaries.md +1 -0
  167. package/presets/claude/java/rules/architecture/composition-root.md +1 -0
  168. package/presets/claude/java/rules/architecture/domain-layer.md +2 -1
  169. package/presets/claude/java/rules/architecture/feature-delivery.md +46 -43
  170. package/presets/claude/java/rules/architecture/module-public-api.md +1 -0
  171. package/presets/claude/java/rules/architecture/ports-interfaces.md +2 -1
  172. package/presets/claude/java/rules/architecture/product-specs-authoring.md +1 -0
  173. package/presets/claude/java/rules/architecture/product-specs.md +1 -0
  174. package/presets/claude/java/rules/architecture/reference-features.md +38 -22
  175. package/presets/claude/java/rules/stack/java-conventions.md +1 -0
  176. package/presets/claude/java/rules/testing/e2e.md +1 -0
  177. package/presets/claude/java/rules/testing/integration.md +1 -0
  178. package/presets/claude/java/rules/testing/unit.md +1 -0
  179. package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +1 -7
  180. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +76 -51
  181. package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +7 -31
  182. package/presets/claude/java/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  183. package/presets/claude/java/rules/tooling-and-review/code-quality.md +1 -1
  184. package/presets/claude/java/rules/tooling-and-review/code-review.md +1 -7
  185. package/presets/claude/java/rules/tooling-and-review/design-guidance.md +1 -2
  186. package/presets/claude/java/rules/tooling-and-review/java-tooling.md +0 -3
  187. package/presets/claude/java/rules/tooling-and-review/language-policy.md +1 -2
  188. package/presets/claude/java/rules/tooling-and-review/mcp-usage.md +1 -2
  189. package/presets/claude/java/rules/tooling-and-review/post-change-test.md +0 -3
  190. package/presets/claude/java/rules/tooling-and-review/preset-goals.md +2 -3
  191. package/presets/claude/java/rules/tooling-and-review/preset-layering.md +2 -3
  192. package/presets/claude/java/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  193. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  194. package/presets/claude/java/rules/tooling-and-review/preset-token-budget.md +4 -6
  195. package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +7 -8
  196. package/presets/claude/java/rules/tooling-and-review/preset-writing-style.md +2 -3
  197. package/presets/claude/java/rules/tooling-and-review/security-java.md +1 -0
  198. package/presets/claude/java/rules/tooling-and-review/technical-retro.md +1 -7
  199. package/presets/claude/java/skills/ci-investigation/SKILL.md +2 -2
  200. package/presets/claude/java/skills/technical-retro/SKILL.md +13 -2
  201. package/presets/claude/java/team/README.md +2 -2
  202. package/presets/claude/mcp-ts/REPO_AGENTS.md +10 -6
  203. package/presets/claude/mcp-ts/agents/README.md +1 -1
  204. package/presets/claude/mcp-ts/agents/build-verifier.md +3 -32
  205. package/presets/claude/mcp-ts/agents/feature-developer.md +1 -1
  206. package/presets/claude/mcp-ts/agents/task-analyst.md +1 -1
  207. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +50 -18
  208. package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +45 -36
  209. package/presets/claude/mcp-ts/rules/architecture/product-specs-authoring.md +1 -0
  210. package/presets/claude/mcp-ts/rules/architecture/product-specs.md +1 -0
  211. package/presets/claude/mcp-ts/rules/architecture/reference-features.md +36 -19
  212. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +1 -3
  213. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +78 -49
  214. package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +7 -31
  215. package/presets/claude/mcp-ts/rules/tooling-and-review/anti-sycophancy-discipline.md +2 -4
  216. package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +1 -2
  217. package/presets/claude/mcp-ts/rules/tooling-and-review/design-guidance.md +1 -2
  218. package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +1 -2
  219. package/presets/claude/mcp-ts/rules/tooling-and-review/mcp-usage.md +1 -2
  220. package/presets/claude/mcp-ts/rules/tooling-and-review/post-change-test.md +1 -5
  221. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-goals.md +2 -3
  222. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +2 -3
  223. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  224. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  225. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-token-budget.md +4 -6
  226. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +7 -8
  227. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-writing-style.md +2 -3
  228. package/presets/claude/mcp-ts/rules/tooling-and-review/technical-retro.md +1 -3
  229. package/presets/claude/mcp-ts/team/README.md +2 -2
  230. package/presets/claude/next/REPO_AGENTS.md +11 -7
  231. package/presets/claude/next/agents/build-verifier.md +2 -42
  232. package/presets/claude/next/agents/code-reviewer.md +9 -38
  233. package/presets/claude/next/agents/debugger.md +1 -1
  234. package/presets/claude/next/agents/feature-developer.md +14 -15
  235. package/presets/claude/next/agents/mockup-reviewer.md +14 -13
  236. package/presets/claude/next/agents/openspec-author.md +1 -1
  237. package/presets/claude/next/agents/task-analyst.md +1 -1
  238. package/presets/claude/next/agents/tech-writer.md +1 -1
  239. package/presets/claude/next/agents/unit-test-generator.md +1 -1
  240. package/presets/claude/next/agents/unit-test-planner.md +1 -1
  241. package/presets/claude/next/commands/task.md +5 -3
  242. package/presets/claude/next/hooks/chain-team-phases.sh +49 -17
  243. package/presets/claude/next/rules/anti-hallucination/react-next-anti-hallucination.md +5 -3
  244. package/presets/claude/next/rules/api-and-data/api-services.md +1 -1
  245. package/presets/claude/next/rules/api-and-data/http-client.md +10 -9
  246. package/presets/claude/next/rules/api-and-data/store-rtk.md +2 -2
  247. package/presets/claude/next/rules/architecture/architecture-boundaries-ui.md +1 -0
  248. package/presets/claude/next/rules/architecture/architecture-boundaries.md +17 -24
  249. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +89 -42
  250. package/presets/claude/next/rules/architecture/layer-barrel-exports.md +10 -9
  251. package/presets/claude/next/rules/architecture/product-specs-authoring.md +1 -0
  252. package/presets/claude/next/rules/architecture/product-specs.md +2 -1
  253. package/presets/claude/next/rules/architecture/public-imports.md +4 -3
  254. package/presets/claude/next/rules/architecture/reference-features.md +47 -7
  255. package/presets/claude/next/rules/stack/arrow-functions.md +3 -2
  256. package/presets/claude/next/rules/stack/navigation-router-ui.md +2 -1
  257. package/presets/claude/next/rules/stack/navigation-router.md +13 -14
  258. package/presets/claude/next/rules/stack/next-app-core.md +4 -4
  259. package/presets/claude/next/rules/stack/next-app-router.md +8 -7
  260. package/presets/claude/next/rules/stack/next-static-export.md +5 -4
  261. package/presets/claude/next/rules/stack/no-type-assertion.md +13 -13
  262. package/presets/claude/next/rules/stack/types-jsdoc.md +15 -17
  263. package/presets/claude/next/rules/testing/playwright-agents.md +3 -4
  264. package/presets/claude/next/rules/testing/tests-e2e-structure.md +6 -5
  265. package/presets/claude/next/rules/testing/tests-unit.md +3 -2
  266. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +2 -3
  267. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +291 -55
  268. package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +5 -43
  269. package/presets/claude/next/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  270. package/presets/claude/next/rules/tooling-and-review/code-quality.md +2 -2
  271. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +5 -21
  272. package/presets/claude/next/rules/tooling-and-review/design-guidance.md +1 -2
  273. package/presets/claude/next/rules/tooling-and-review/language-policy.md +1 -2
  274. package/presets/claude/next/rules/tooling-and-review/mcp-usage.md +1 -2
  275. package/presets/claude/next/rules/tooling-and-review/mockup-review.md +45 -48
  276. package/presets/claude/next/rules/tooling-and-review/package-manager.md +4 -0
  277. package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +9 -13
  278. package/presets/claude/next/rules/tooling-and-review/preset-goals.md +2 -3
  279. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +2 -3
  280. package/presets/claude/next/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  281. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  282. package/presets/claude/next/rules/tooling-and-review/preset-token-budget.md +4 -6
  283. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +7 -8
  284. package/presets/claude/next/rules/tooling-and-review/preset-writing-style.md +2 -3
  285. package/presets/claude/next/rules/tooling-and-review/security-next.md +1 -3
  286. package/presets/claude/next/rules/tooling-and-review/technical-retro.md +2 -4
  287. package/presets/claude/next/rules/tooling-and-review/ux-design.md +1 -3
  288. package/presets/claude/next/rules/ui-and-accessibility/component-catalog-gate.md +4 -3
  289. package/presets/claude/next/rules/ui-and-accessibility/css-property-order.md +3 -2
  290. package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +13 -21
  291. package/presets/claude/next/rules/ui-and-accessibility/forms-validation.md +1 -1
  292. package/presets/claude/next/rules/ui-and-accessibility/no-props-spread.md +11 -31
  293. package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +5 -4
  294. package/presets/claude/next/rules/ui-and-accessibility/react-ui.md +9 -14
  295. package/presets/claude/next/skills/code-review/SKILL.md +1 -1
  296. package/presets/claude/next/skills/figma-fidelity/SKILL.md +76 -49
  297. package/presets/claude/next/skills/mockup-review/SKILL.md +4 -2
  298. package/presets/claude/next/skills/react-performance/SKILL.md +1 -1
  299. package/presets/claude/next/skills/technical-retro/SKILL.md +13 -2
  300. package/presets/claude/next/skills/unit-testing/SKILL.md +1 -1
  301. package/presets/claude/next/team/README.md +2 -2
  302. package/presets/claude/nuxt/REPO_AGENTS.md +10 -6
  303. package/presets/claude/nuxt/agents/build-verifier.md +1 -39
  304. package/presets/claude/nuxt/agents/code-reviewer.md +1 -1
  305. package/presets/claude/nuxt/agents/debugger.md +1 -1
  306. package/presets/claude/nuxt/agents/feature-developer.md +1 -1
  307. package/presets/claude/nuxt/agents/openspec-author.md +1 -1
  308. package/presets/claude/nuxt/agents/task-analyst.md +1 -1
  309. package/presets/claude/nuxt/agents/tech-writer.md +1 -1
  310. package/presets/claude/nuxt/agents/unit-test-generator.md +1 -1
  311. package/presets/claude/nuxt/agents/unit-test-planner.md +1 -1
  312. package/presets/claude/nuxt/hooks/chain-team-phases.sh +49 -17
  313. package/presets/claude/nuxt/rules/anti-hallucination/vue-nuxt-anti-hallucination.md +4 -1
  314. package/presets/claude/nuxt/rules/api-and-data/api-services.md +9 -7
  315. package/presets/claude/nuxt/rules/api-and-data/http-client.md +1 -0
  316. package/presets/claude/nuxt/rules/api-and-data/store-pinia.md +1 -0
  317. package/presets/claude/nuxt/rules/architecture/architecture-boundaries.md +9 -8
  318. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +72 -22
  319. package/presets/claude/nuxt/rules/architecture/layer-barrel-exports.md +9 -7
  320. package/presets/claude/nuxt/rules/architecture/product-specs-authoring.md +1 -0
  321. package/presets/claude/nuxt/rules/architecture/product-specs.md +1 -0
  322. package/presets/claude/nuxt/rules/architecture/public-imports.md +7 -7
  323. package/presets/claude/nuxt/rules/architecture/reference-features.md +46 -10
  324. package/presets/claude/nuxt/rules/stack/navigation-router-ui.md +8 -3
  325. package/presets/claude/nuxt/rules/stack/navigation-router.md +7 -2
  326. package/presets/claude/nuxt/rules/stack/no-type-assertion.md +2 -5
  327. package/presets/claude/nuxt/rules/stack/nuxt-pages-routing.md +7 -3
  328. package/presets/claude/nuxt/rules/stack/script-setup-conventions.md +3 -1
  329. package/presets/claude/nuxt/rules/stack/types-jsdoc.md +21 -16
  330. package/presets/claude/nuxt/rules/testing/playwright-agents.md +3 -1
  331. package/presets/claude/nuxt/rules/testing/tests-e2e-structure.md +5 -4
  332. package/presets/claude/nuxt/rules/testing/tests-unit.md +3 -1
  333. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +1 -1
  334. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +237 -9
  335. package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +7 -31
  336. package/presets/claude/nuxt/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -7
  337. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +7 -13
  338. package/presets/claude/nuxt/rules/tooling-and-review/design-guidance.md +1 -7
  339. package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +1 -2
  340. package/presets/claude/nuxt/rules/tooling-and-review/mcp-usage.md +1 -7
  341. package/presets/claude/nuxt/rules/tooling-and-review/mockup-review.md +35 -32
  342. package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +1 -3
  343. package/presets/claude/nuxt/rules/tooling-and-review/preset-goals.md +2 -3
  344. package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +4 -1
  345. package/presets/claude/nuxt/rules/tooling-and-review/preset-no-cross-stack-leakage.md +4 -2
  346. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +10 -3
  347. package/presets/claude/nuxt/rules/tooling-and-review/preset-token-budget.md +4 -3
  348. package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +9 -6
  349. package/presets/claude/nuxt/rules/tooling-and-review/preset-writing-style.md +2 -3
  350. package/presets/claude/nuxt/rules/tooling-and-review/security-nuxt.md +1 -0
  351. package/presets/claude/nuxt/rules/tooling-and-review/technical-retro.md +1 -1
  352. package/presets/claude/nuxt/rules/tooling-and-review/ux-design.md +1 -3
  353. package/presets/claude/nuxt/rules/ui-and-accessibility/css-property-order.md +4 -1
  354. package/presets/claude/nuxt/rules/ui-and-accessibility/no-v-bind-spread.md +4 -1
  355. package/presets/claude/nuxt/rules/ui-and-accessibility/vue-a11y-coding.md +7 -3
  356. package/presets/claude/nuxt/rules/ui-and-accessibility/vue-ui.md +6 -3
  357. package/presets/claude/nuxt/skills/technical-retro/SKILL.md +13 -2
  358. package/presets/claude/nuxt/skills/unit-testing/SKILL.md +1 -1
  359. package/presets/claude/nuxt/team/README.md +2 -2
  360. package/presets/claude/php-hexagonal/REPO_AGENTS.md +10 -6
  361. package/presets/claude/php-hexagonal/agents/build-verifier.md +3 -39
  362. package/presets/claude/php-hexagonal/agents/ci-investigator.md +2 -2
  363. package/presets/claude/php-hexagonal/agents/code-reviewer.md +1 -1
  364. package/presets/claude/php-hexagonal/agents/debugger.md +1 -1
  365. package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -3
  366. package/presets/claude/php-hexagonal/agents/openspec-author.md +1 -1
  367. package/presets/claude/php-hexagonal/agents/task-analyst.md +1 -1
  368. package/presets/claude/php-hexagonal/agents/tech-writer.md +1 -1
  369. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  370. package/presets/claude/php-hexagonal/rules/api-and-data/adapters-driven.md +3 -1
  371. package/presets/claude/php-hexagonal/rules/api-and-data/adapters-driving.md +5 -2
  372. package/presets/claude/php-hexagonal/rules/api-and-data/api-grpc.md +3 -2
  373. package/presets/claude/php-hexagonal/rules/api-and-data/api-http.md +4 -1
  374. package/presets/claude/php-hexagonal/rules/api-and-data/persistence-adapters.md +2 -1
  375. package/presets/claude/php-hexagonal/rules/architecture/application-usecases.md +2 -1
  376. package/presets/claude/php-hexagonal/rules/architecture/composition-root.md +5 -2
  377. package/presets/claude/php-hexagonal/rules/architecture/domain-layer.md +2 -1
  378. package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +45 -43
  379. package/presets/claude/php-hexagonal/rules/architecture/ports-interfaces.md +4 -2
  380. package/presets/claude/php-hexagonal/rules/architecture/product-specs-authoring.md +1 -0
  381. package/presets/claude/php-hexagonal/rules/architecture/product-specs.md +1 -0
  382. package/presets/claude/php-hexagonal/rules/architecture/reference-features.md +36 -25
  383. package/presets/claude/php-hexagonal/rules/stack/php-app-core.md +1 -1
  384. package/presets/claude/php-hexagonal/rules/stack/php-conventions.md +1 -0
  385. package/presets/claude/php-hexagonal/rules/testing/integration.md +4 -3
  386. package/presets/claude/php-hexagonal/rules/testing/unit.md +3 -1
  387. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +1 -7
  388. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +76 -51
  389. package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +7 -31
  390. package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  391. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +1 -1
  392. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +1 -7
  393. package/presets/claude/php-hexagonal/rules/tooling-and-review/design-guidance.md +1 -2
  394. package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +1 -2
  395. package/presets/claude/php-hexagonal/rules/tooling-and-review/mcp-usage.md +1 -2
  396. package/presets/claude/php-hexagonal/rules/tooling-and-review/php-tooling.md +1 -3
  397. package/presets/claude/php-hexagonal/rules/tooling-and-review/post-change-test.md +4 -6
  398. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-goals.md +2 -3
  399. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +2 -3
  400. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  401. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  402. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-token-budget.md +4 -6
  403. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +7 -8
  404. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-writing-style.md +2 -3
  405. package/presets/claude/php-hexagonal/rules/tooling-and-review/security-php.md +4 -1
  406. package/presets/claude/php-hexagonal/rules/tooling-and-review/technical-retro.md +1 -7
  407. package/presets/claude/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  408. package/presets/claude/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  409. package/presets/claude/php-hexagonal/team/README.md +2 -2
  410. package/presets/claude/php-laravel/REPO_AGENTS.md +10 -6
  411. package/presets/claude/php-laravel/agents/build-verifier.md +3 -39
  412. package/presets/claude/php-laravel/agents/ci-investigator.md +2 -2
  413. package/presets/claude/php-laravel/agents/code-reviewer.md +1 -1
  414. package/presets/claude/php-laravel/agents/debugger.md +1 -1
  415. package/presets/claude/php-laravel/agents/feature-developer.md +1 -3
  416. package/presets/claude/php-laravel/agents/openspec-author.md +1 -1
  417. package/presets/claude/php-laravel/agents/task-analyst.md +1 -1
  418. package/presets/claude/php-laravel/agents/tech-writer.md +1 -1
  419. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +51 -19
  420. package/presets/claude/php-laravel/rules/api-and-data/eloquent-persistence.md +2 -0
  421. package/presets/claude/php-laravel/rules/api-and-data/events-listeners.md +2 -0
  422. package/presets/claude/php-laravel/rules/api-and-data/form-requests.md +2 -0
  423. package/presets/claude/php-laravel/rules/api-and-data/http-layer.md +2 -0
  424. package/presets/claude/php-laravel/rules/api-and-data/jobs-queues.md +2 -0
  425. package/presets/claude/php-laravel/rules/api-and-data/policies-authorization.md +2 -0
  426. package/presets/claude/php-laravel/rules/api-and-data/routes-api.md +2 -0
  427. package/presets/claude/php-laravel/rules/architecture/actions-services.md +2 -0
  428. package/presets/claude/php-laravel/rules/architecture/boundaries.md +2 -0
  429. package/presets/claude/php-laravel/rules/architecture/domain-layer.md +2 -0
  430. package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +46 -43
  431. package/presets/claude/php-laravel/rules/architecture/module-public-api.md +1 -0
  432. package/presets/claude/php-laravel/rules/architecture/product-specs-authoring.md +1 -0
  433. package/presets/claude/php-laravel/rules/architecture/product-specs.md +1 -0
  434. package/presets/claude/php-laravel/rules/architecture/reference-features.md +37 -27
  435. package/presets/claude/php-laravel/rules/architecture/service-providers.md +2 -0
  436. package/presets/claude/php-laravel/rules/stack/laravel-app-core.md +3 -1
  437. package/presets/claude/php-laravel/rules/stack/laravel-conventions.md +2 -0
  438. package/presets/claude/php-laravel/rules/testing/e2e.md +1 -0
  439. package/presets/claude/php-laravel/rules/testing/integration.md +2 -0
  440. package/presets/claude/php-laravel/rules/testing/unit.md +2 -0
  441. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +1 -3
  442. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +76 -47
  443. package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +7 -31
  444. package/presets/claude/php-laravel/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  445. package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +1 -1
  446. package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +1 -3
  447. package/presets/claude/php-laravel/rules/tooling-and-review/design-guidance.md +1 -2
  448. package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +1 -2
  449. package/presets/claude/php-laravel/rules/tooling-and-review/mcp-usage.md +1 -2
  450. package/presets/claude/php-laravel/rules/tooling-and-review/php-tooling.md +2 -1
  451. package/presets/claude/php-laravel/rules/tooling-and-review/post-change-test.md +5 -4
  452. package/presets/claude/php-laravel/rules/tooling-and-review/preset-goals.md +2 -3
  453. package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +3 -2
  454. package/presets/claude/php-laravel/rules/tooling-and-review/preset-no-cross-stack-leakage.md +3 -3
  455. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +9 -4
  456. package/presets/claude/php-laravel/rules/tooling-and-review/preset-token-budget.md +5 -5
  457. package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +8 -7
  458. package/presets/claude/php-laravel/rules/tooling-and-review/preset-writing-style.md +2 -3
  459. package/presets/claude/php-laravel/rules/tooling-and-review/security-php.md +2 -0
  460. package/presets/claude/php-laravel/rules/tooling-and-review/technical-retro.md +1 -3
  461. package/presets/claude/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  462. package/presets/claude/php-laravel/skills/technical-retro/SKILL.md +13 -2
  463. package/presets/claude/php-laravel/team/README.md +2 -2
  464. package/presets/claude/svelte/REPO_AGENTS.md +10 -6
  465. package/presets/claude/svelte/agents/build-verifier.md +1 -39
  466. package/presets/claude/svelte/agents/code-reviewer.md +1 -1
  467. package/presets/claude/svelte/agents/debugger.md +1 -1
  468. package/presets/claude/svelte/agents/feature-developer.md +1 -1
  469. package/presets/claude/svelte/agents/openspec-author.md +1 -1
  470. package/presets/claude/svelte/agents/task-analyst.md +1 -1
  471. package/presets/claude/svelte/agents/tech-writer.md +1 -1
  472. package/presets/claude/svelte/agents/unit-test-generator.md +1 -1
  473. package/presets/claude/svelte/agents/unit-test-planner.md +1 -1
  474. package/presets/claude/svelte/hooks/chain-team-phases.sh +49 -17
  475. package/presets/claude/svelte/rules/anti-hallucination/svelte-sveltekit-anti-hallucination.md +3 -1
  476. package/presets/claude/svelte/rules/api-and-data/api-services.md +1 -0
  477. package/presets/claude/svelte/rules/api-and-data/store-svelte.md +1 -0
  478. package/presets/claude/svelte/rules/architecture/architecture-boundaries.md +1 -0
  479. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +58 -8
  480. package/presets/claude/svelte/rules/architecture/layer-barrel-exports.md +7 -6
  481. package/presets/claude/svelte/rules/architecture/product-specs-authoring.md +1 -0
  482. package/presets/claude/svelte/rules/architecture/product-specs.md +1 -0
  483. package/presets/claude/svelte/rules/architecture/public-imports.md +1 -0
  484. package/presets/claude/svelte/rules/architecture/reference-features.md +46 -9
  485. package/presets/claude/svelte/rules/stack/no-type-assertion.md +1 -1
  486. package/presets/claude/svelte/rules/stack/svelte-script-conventions.md +2 -1
  487. package/presets/claude/svelte/rules/stack/types-jsdoc.md +19 -15
  488. package/presets/claude/svelte/rules/testing/tests-e2e-structure.md +5 -4
  489. package/presets/claude/svelte/rules/testing/tests-unit.md +3 -1
  490. package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +1 -2
  491. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +238 -11
  492. package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +7 -31
  493. package/presets/claude/svelte/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  494. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +7 -13
  495. package/presets/claude/svelte/rules/tooling-and-review/design-guidance.md +1 -2
  496. package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +1 -2
  497. package/presets/claude/svelte/rules/tooling-and-review/mcp-usage.md +1 -2
  498. package/presets/claude/svelte/rules/tooling-and-review/mockup-review.md +35 -32
  499. package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +2 -4
  500. package/presets/claude/svelte/rules/tooling-and-review/preset-goals.md +2 -3
  501. package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +2 -2
  502. package/presets/claude/svelte/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -3
  503. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +8 -4
  504. package/presets/claude/svelte/rules/tooling-and-review/preset-token-budget.md +4 -5
  505. package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +7 -7
  506. package/presets/claude/svelte/rules/tooling-and-review/preset-writing-style.md +2 -3
  507. package/presets/claude/svelte/rules/tooling-and-review/technical-retro.md +1 -2
  508. package/presets/claude/svelte/rules/tooling-and-review/ux-design.md +1 -3
  509. package/presets/claude/svelte/rules/ui-and-accessibility/css-property-order.md +3 -1
  510. package/presets/claude/svelte/skills/technical-retro/SKILL.md +13 -2
  511. package/presets/claude/svelte/skills/unit-testing/SKILL.md +1 -1
  512. package/presets/claude/svelte/team/README.md +2 -2
  513. package/presets/cursor/android-kotlin/REPO_AGENTS.md +10 -6
  514. package/presets/cursor/android-kotlin/agents/build-verifier.md +3 -37
  515. package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -1
  516. package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
  517. package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
  518. package/presets/cursor/android-kotlin/agents/openspec-author.md +1 -1
  519. package/presets/cursor/android-kotlin/agents/task-analyst.md +1 -1
  520. package/presets/cursor/android-kotlin/agents/tech-writer.md +1 -1
  521. package/presets/cursor/android-kotlin/agents/unit-test-generator.md +1 -1
  522. package/presets/cursor/android-kotlin/agents/unit-test-planner.md +1 -1
  523. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +49 -17
  524. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +2 -2
  525. package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +7 -30
  526. package/presets/cursor/android-kotlin/rules/anti-sycophancy-discipline.mdc +0 -2
  527. package/presets/cursor/android-kotlin/rules/design-guidance.mdc +0 -2
  528. package/presets/cursor/android-kotlin/rules/language-policy.mdc +1 -1
  529. package/presets/cursor/android-kotlin/rules/mockup-review.mdc +34 -29
  530. package/presets/cursor/android-kotlin/rules/preset-goals.mdc +2 -2
  531. package/presets/cursor/android-kotlin/rules/preset-layering.mdc +2 -2
  532. package/presets/cursor/android-kotlin/rules/preset-no-cross-stack-leakage.mdc +2 -3
  533. package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +8 -4
  534. package/presets/cursor/android-kotlin/rules/preset-token-budget.mdc +4 -5
  535. package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +7 -7
  536. package/presets/cursor/android-kotlin/rules/preset-writing-style.mdc +2 -2
  537. package/presets/cursor/android-kotlin/rules/reference-features.mdc +0 -2
  538. package/presets/cursor/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  539. package/presets/cursor/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  540. package/presets/cursor/android-kotlin/team/README.md +1 -1
  541. package/presets/cursor/go/REPO_AGENTS.md +10 -6
  542. package/presets/cursor/go/agents/build-verifier.md +3 -29
  543. package/presets/cursor/go/agents/ci-investigator.md +2 -2
  544. package/presets/cursor/go/agents/code-reviewer.md +1 -1
  545. package/presets/cursor/go/agents/debugger.md +1 -1
  546. package/presets/cursor/go/agents/feature-developer.md +1 -3
  547. package/presets/cursor/go/agents/openspec-author.md +1 -1
  548. package/presets/cursor/go/agents/task-analyst.md +1 -1
  549. package/presets/cursor/go/agents/tech-writer.md +1 -1
  550. package/presets/cursor/go/hooks/chain-team-phases.sh +51 -19
  551. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +1 -1
  552. package/presets/cursor/go/rules/ai-local-overlay.mdc +7 -30
  553. package/presets/cursor/go/rules/anti-sycophancy-discipline.mdc +0 -2
  554. package/presets/cursor/go/rules/design-guidance.mdc +0 -2
  555. package/presets/cursor/go/rules/language-policy.mdc +1 -1
  556. package/presets/cursor/go/rules/preset-goals.mdc +2 -2
  557. package/presets/cursor/go/rules/preset-layering.mdc +2 -2
  558. package/presets/cursor/go/rules/preset-no-cross-stack-leakage.mdc +2 -3
  559. package/presets/cursor/go/rules/preset-pr-checklist.mdc +8 -4
  560. package/presets/cursor/go/rules/preset-token-budget.mdc +4 -5
  561. package/presets/cursor/go/rules/preset-twin-sync.mdc +7 -7
  562. package/presets/cursor/go/rules/preset-writing-style.mdc +2 -2
  563. package/presets/cursor/go/rules/reference-features.mdc +0 -3
  564. package/presets/cursor/go/skills/ci-investigation/SKILL.md +2 -2
  565. package/presets/cursor/go/skills/technical-retro/SKILL.md +13 -2
  566. package/presets/cursor/go/team/README.md +1 -1
  567. package/presets/cursor/ios-swift/REPO_AGENTS.md +10 -6
  568. package/presets/cursor/ios-swift/agents/build-verifier.md +3 -39
  569. package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -1
  570. package/presets/cursor/ios-swift/agents/debugger.md +1 -1
  571. package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
  572. package/presets/cursor/ios-swift/agents/openspec-author.md +1 -1
  573. package/presets/cursor/ios-swift/agents/task-analyst.md +1 -1
  574. package/presets/cursor/ios-swift/agents/tech-writer.md +1 -1
  575. package/presets/cursor/ios-swift/agents/unit-test-generator.md +1 -1
  576. package/presets/cursor/ios-swift/agents/unit-test-planner.md +1 -1
  577. package/presets/cursor/ios-swift/agents/xcuitest-test-generator.md +1 -1
  578. package/presets/cursor/ios-swift/agents/xcuitest-test-planner.md +2 -2
  579. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +49 -17
  580. package/presets/cursor/ios-swift/rules/README.md +1 -1
  581. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +2 -2
  582. package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +7 -30
  583. package/presets/cursor/ios-swift/rules/anti-sycophancy-discipline.mdc +0 -2
  584. package/presets/cursor/ios-swift/rules/design-guidance.mdc +0 -2
  585. package/presets/cursor/ios-swift/rules/language-policy.mdc +1 -1
  586. package/presets/cursor/ios-swift/rules/mockup-review.mdc +34 -29
  587. package/presets/cursor/ios-swift/rules/networking-services.mdc +4 -1
  588. package/presets/cursor/ios-swift/rules/preset-goals.mdc +2 -2
  589. package/presets/cursor/ios-swift/rules/preset-layering.mdc +2 -2
  590. package/presets/cursor/ios-swift/rules/preset-no-cross-stack-leakage.mdc +2 -3
  591. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +8 -4
  592. package/presets/cursor/ios-swift/rules/preset-token-budget.mdc +4 -5
  593. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +7 -7
  594. package/presets/cursor/ios-swift/rules/preset-writing-style.mdc +2 -2
  595. package/presets/cursor/ios-swift/rules/reference-features.mdc +0 -6
  596. package/presets/cursor/ios-swift/rules/state-and-viewmodels.mdc +3 -1
  597. package/presets/cursor/ios-swift/rules/swiftui-ui.mdc +3 -1
  598. package/presets/cursor/ios-swift/skills/technical-retro/SKILL.md +13 -2
  599. package/presets/cursor/ios-swift/skills/unit-testing/SKILL.md +1 -1
  600. package/presets/cursor/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  601. package/presets/cursor/ios-swift/team/README.md +1 -1
  602. package/presets/cursor/java/REPO_AGENTS.md +10 -6
  603. package/presets/cursor/java/agents/build-verifier.md +3 -39
  604. package/presets/cursor/java/agents/ci-investigator.md +2 -2
  605. package/presets/cursor/java/agents/code-reviewer.md +1 -1
  606. package/presets/cursor/java/agents/debugger.md +1 -1
  607. package/presets/cursor/java/agents/feature-developer.md +1 -3
  608. package/presets/cursor/java/agents/openspec-author.md +1 -1
  609. package/presets/cursor/java/agents/task-analyst.md +1 -1
  610. package/presets/cursor/java/agents/tech-writer.md +1 -1
  611. package/presets/cursor/java/hooks/chain-team-phases.sh +51 -19
  612. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +1 -1
  613. package/presets/cursor/java/rules/ai-local-overlay.mdc +7 -30
  614. package/presets/cursor/java/rules/anti-sycophancy-discipline.mdc +0 -2
  615. package/presets/cursor/java/rules/design-guidance.mdc +0 -2
  616. package/presets/cursor/java/rules/language-policy.mdc +1 -1
  617. package/presets/cursor/java/rules/preset-goals.mdc +2 -2
  618. package/presets/cursor/java/rules/preset-layering.mdc +2 -2
  619. package/presets/cursor/java/rules/preset-no-cross-stack-leakage.mdc +2 -3
  620. package/presets/cursor/java/rules/preset-pr-checklist.mdc +8 -4
  621. package/presets/cursor/java/rules/preset-token-budget.mdc +4 -5
  622. package/presets/cursor/java/rules/preset-twin-sync.mdc +7 -7
  623. package/presets/cursor/java/rules/preset-writing-style.mdc +2 -2
  624. package/presets/cursor/java/rules/reference-features.mdc +0 -4
  625. package/presets/cursor/java/skills/ci-investigation/SKILL.md +2 -2
  626. package/presets/cursor/java/skills/technical-retro/SKILL.md +13 -2
  627. package/presets/cursor/java/team/README.md +1 -1
  628. package/presets/cursor/mcp-ts/REPO_AGENTS.md +10 -6
  629. package/presets/cursor/mcp-ts/agents/README.md +1 -1
  630. package/presets/cursor/mcp-ts/agents/build-verifier.md +3 -32
  631. package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
  632. package/presets/cursor/mcp-ts/agents/task-analyst.md +1 -1
  633. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +50 -18
  634. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +1 -1
  635. package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +7 -30
  636. package/presets/cursor/mcp-ts/rules/anti-sycophancy-discipline.mdc +0 -3
  637. package/presets/cursor/mcp-ts/rules/language-policy.mdc +1 -1
  638. package/presets/cursor/mcp-ts/rules/preset-goals.mdc +2 -2
  639. package/presets/cursor/mcp-ts/rules/preset-layering.mdc +2 -2
  640. package/presets/cursor/mcp-ts/rules/preset-no-cross-stack-leakage.mdc +2 -3
  641. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +8 -4
  642. package/presets/cursor/mcp-ts/rules/preset-token-budget.mdc +4 -5
  643. package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +7 -7
  644. package/presets/cursor/mcp-ts/rules/preset-writing-style.mdc +2 -2
  645. package/presets/cursor/mcp-ts/rules/reference-features.mdc +0 -2
  646. package/presets/cursor/mcp-ts/team/README.md +1 -1
  647. package/presets/cursor/next/REPO_AGENTS.md +11 -7
  648. package/presets/cursor/next/agents/build-verifier.md +2 -42
  649. package/presets/cursor/next/agents/code-reviewer.md +9 -38
  650. package/presets/cursor/next/agents/debugger.md +1 -1
  651. package/presets/cursor/next/agents/feature-developer.md +14 -25
  652. package/presets/cursor/next/agents/mockup-reviewer.md +14 -13
  653. package/presets/cursor/next/agents/openspec-author.md +1 -1
  654. package/presets/cursor/next/agents/task-analyst.md +1 -1
  655. package/presets/cursor/next/agents/tech-writer.md +1 -1
  656. package/presets/cursor/next/agents/unit-test-generator.md +1 -1
  657. package/presets/cursor/next/agents/unit-test-planner.md +1 -1
  658. package/presets/cursor/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  659. package/presets/cursor/next/ai-local/rules-library/analytics-events.md +1 -1
  660. package/presets/cursor/next/ai-local/rules-library/api-contract-source.md +1 -1
  661. package/presets/cursor/next/ai-local/rules-library/code-style.md +1 -1
  662. package/presets/cursor/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  663. package/presets/cursor/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  664. package/presets/cursor/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  665. package/presets/cursor/next/ai-local/rules-library/no-react-fc.md +1 -1
  666. package/presets/cursor/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  667. package/presets/cursor/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  668. package/presets/cursor/next/ai-local/rules-library/router-pages.md +1 -1
  669. package/presets/cursor/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  670. package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  671. package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  672. package/presets/cursor/next/commands/task.md +5 -3
  673. package/presets/cursor/next/hooks/chain-team-phases.sh +49 -17
  674. package/presets/cursor/next/rules/README.md +4 -5
  675. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +4 -4
  676. package/presets/cursor/next/rules/ai-local-overlay.mdc +5 -42
  677. package/presets/cursor/next/rules/anti-sycophancy-discipline.mdc +0 -2
  678. package/presets/cursor/next/rules/arrow-functions.mdc +1 -1
  679. package/presets/cursor/next/rules/code-review-mr.mdc +3 -16
  680. package/presets/cursor/next/rules/design-guidance.mdc +0 -2
  681. package/presets/cursor/next/rules/design-tokens-binding.mdc +14 -20
  682. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +4 -11
  683. package/presets/cursor/next/rules/language-policy.mdc +1 -1
  684. package/presets/cursor/next/rules/mockup-review.mdc +44 -45
  685. package/presets/cursor/next/rules/navigation-router-stack.mdc +1 -1
  686. package/presets/cursor/next/rules/navigation-router-ui.mdc +1 -1
  687. package/presets/cursor/next/rules/no-props-spread.mdc +1 -26
  688. package/presets/cursor/next/rules/preset-goals.mdc +2 -2
  689. package/presets/cursor/next/rules/preset-layering.mdc +2 -2
  690. package/presets/cursor/next/rules/preset-no-cross-stack-leakage.mdc +2 -3
  691. package/presets/cursor/next/rules/preset-pr-checklist.mdc +8 -4
  692. package/presets/cursor/next/rules/preset-token-budget.mdc +4 -5
  693. package/presets/cursor/next/rules/preset-twin-sync.mdc +7 -7
  694. package/presets/cursor/next/rules/preset-writing-style.mdc +2 -2
  695. package/presets/cursor/next/rules/product-specs.mdc +1 -1
  696. package/presets/cursor/next/rules/public-imports.mdc +2 -2
  697. package/presets/cursor/next/rules/react-next-anti-hallucination.mdc +5 -1
  698. package/presets/cursor/next/rules/react-ui.mdc +1 -7
  699. package/presets/cursor/next/rules/reference-features.mdc +0 -5
  700. package/presets/cursor/next/rules/tests-e2e-structure.mdc +0 -1
  701. package/presets/cursor/next/rules/tests-unit.mdc +0 -1
  702. package/presets/cursor/next/rules/types-jsdoc.mdc +14 -17
  703. package/presets/cursor/next/skills/code-review/SKILL.md +1 -1
  704. package/presets/cursor/next/skills/figma-fidelity/SKILL.md +76 -49
  705. package/presets/cursor/next/skills/mockup-review/SKILL.md +4 -2
  706. package/presets/cursor/next/skills/react-performance/SKILL.md +1 -1
  707. package/presets/cursor/next/skills/technical-retro/SKILL.md +13 -2
  708. package/presets/cursor/next/skills/unit-testing/SKILL.md +1 -1
  709. package/presets/cursor/next/team/README.md +1 -1
  710. package/presets/cursor/nuxt/REPO_AGENTS.md +10 -6
  711. package/presets/cursor/nuxt/agents/build-verifier.md +1 -39
  712. package/presets/cursor/nuxt/agents/code-reviewer.md +1 -1
  713. package/presets/cursor/nuxt/agents/debugger.md +1 -1
  714. package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
  715. package/presets/cursor/nuxt/agents/openspec-author.md +1 -1
  716. package/presets/cursor/nuxt/agents/task-analyst.md +1 -1
  717. package/presets/cursor/nuxt/agents/tech-writer.md +1 -1
  718. package/presets/cursor/nuxt/agents/unit-test-generator.md +1 -1
  719. package/presets/cursor/nuxt/agents/unit-test-planner.md +1 -1
  720. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +49 -17
  721. package/presets/cursor/nuxt/rules/README.md +3 -3
  722. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +2 -2
  723. package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +7 -30
  724. package/presets/cursor/nuxt/rules/anti-sycophancy-discipline.mdc +0 -2
  725. package/presets/cursor/nuxt/rules/css-property-order-stylelint.mdc +4 -1
  726. package/presets/cursor/nuxt/rules/design-guidance.mdc +0 -2
  727. package/presets/cursor/nuxt/rules/language-policy.mdc +1 -1
  728. package/presets/cursor/nuxt/rules/mockup-review.mdc +34 -29
  729. package/presets/cursor/nuxt/rules/no-v-bind-spread.mdc +4 -1
  730. package/presets/cursor/nuxt/rules/nuxt-pages-routing.mdc +8 -1
  731. package/presets/cursor/nuxt/rules/preset-goals.mdc +2 -2
  732. package/presets/cursor/nuxt/rules/preset-layering.mdc +2 -2
  733. package/presets/cursor/nuxt/rules/preset-no-cross-stack-leakage.mdc +2 -3
  734. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +8 -4
  735. package/presets/cursor/nuxt/rules/preset-token-budget.mdc +4 -5
  736. package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +7 -7
  737. package/presets/cursor/nuxt/rules/preset-writing-style.mdc +2 -2
  738. package/presets/cursor/nuxt/rules/public-imports.mdc +2 -2
  739. package/presets/cursor/nuxt/rules/reference-features.mdc +0 -5
  740. package/presets/cursor/nuxt/rules/script-setup-conventions.mdc +3 -1
  741. package/presets/cursor/nuxt/rules/tests-e2e-structure.mdc +0 -1
  742. package/presets/cursor/nuxt/rules/tests-unit.mdc +0 -1
  743. package/presets/cursor/nuxt/rules/types-jsdoc.mdc +18 -14
  744. package/presets/cursor/nuxt/rules/vue-a11y-coding.mdc +7 -1
  745. package/presets/cursor/nuxt/rules/vue-nuxt-anti-hallucination.mdc +9 -1
  746. package/presets/cursor/nuxt/rules/vue-ui.mdc +7 -1
  747. package/presets/cursor/nuxt/skills/technical-retro/SKILL.md +13 -2
  748. package/presets/cursor/nuxt/skills/unit-testing/SKILL.md +1 -1
  749. package/presets/cursor/nuxt/team/README.md +1 -1
  750. package/presets/cursor/php-hexagonal/REPO_AGENTS.md +10 -6
  751. package/presets/cursor/php-hexagonal/agents/build-verifier.md +3 -39
  752. package/presets/cursor/php-hexagonal/agents/ci-investigator.md +2 -2
  753. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -1
  754. package/presets/cursor/php-hexagonal/agents/debugger.md +1 -1
  755. package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -3
  756. package/presets/cursor/php-hexagonal/agents/openspec-author.md +1 -1
  757. package/presets/cursor/php-hexagonal/agents/task-analyst.md +1 -1
  758. package/presets/cursor/php-hexagonal/agents/tech-writer.md +1 -1
  759. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  760. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +1 -1
  761. package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +7 -30
  762. package/presets/cursor/php-hexagonal/rules/anti-sycophancy-discipline.mdc +0 -2
  763. package/presets/cursor/php-hexagonal/rules/design-guidance.mdc +0 -2
  764. package/presets/cursor/php-hexagonal/rules/language-policy.mdc +1 -1
  765. package/presets/cursor/php-hexagonal/rules/preset-goals.mdc +2 -2
  766. package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +2 -2
  767. package/presets/cursor/php-hexagonal/rules/preset-no-cross-stack-leakage.mdc +2 -3
  768. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +8 -4
  769. package/presets/cursor/php-hexagonal/rules/preset-token-budget.mdc +4 -5
  770. package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +7 -7
  771. package/presets/cursor/php-hexagonal/rules/preset-writing-style.mdc +2 -2
  772. package/presets/cursor/php-hexagonal/rules/reference-features.mdc +0 -5
  773. package/presets/cursor/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  774. package/presets/cursor/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  775. package/presets/cursor/php-hexagonal/team/README.md +1 -1
  776. package/presets/cursor/php-laravel/REPO_AGENTS.md +10 -6
  777. package/presets/cursor/php-laravel/agents/build-verifier.md +3 -39
  778. package/presets/cursor/php-laravel/agents/ci-investigator.md +2 -2
  779. package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -1
  780. package/presets/cursor/php-laravel/agents/debugger.md +1 -1
  781. package/presets/cursor/php-laravel/agents/feature-developer.md +1 -3
  782. package/presets/cursor/php-laravel/agents/openspec-author.md +1 -1
  783. package/presets/cursor/php-laravel/agents/task-analyst.md +1 -1
  784. package/presets/cursor/php-laravel/agents/tech-writer.md +1 -1
  785. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +51 -19
  786. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +1 -1
  787. package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +7 -30
  788. package/presets/cursor/php-laravel/rules/anti-sycophancy-discipline.mdc +0 -2
  789. package/presets/cursor/php-laravel/rules/design-guidance.mdc +0 -2
  790. package/presets/cursor/php-laravel/rules/language-policy.mdc +1 -1
  791. package/presets/cursor/php-laravel/rules/preset-goals.mdc +2 -2
  792. package/presets/cursor/php-laravel/rules/preset-layering.mdc +2 -2
  793. package/presets/cursor/php-laravel/rules/preset-no-cross-stack-leakage.mdc +2 -3
  794. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +8 -4
  795. package/presets/cursor/php-laravel/rules/preset-token-budget.mdc +4 -5
  796. package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +7 -7
  797. package/presets/cursor/php-laravel/rules/preset-writing-style.mdc +2 -2
  798. package/presets/cursor/php-laravel/rules/reference-features.mdc +0 -5
  799. package/presets/cursor/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  800. package/presets/cursor/php-laravel/skills/technical-retro/SKILL.md +13 -2
  801. package/presets/cursor/php-laravel/team/README.md +1 -1
  802. package/presets/cursor/svelte/REPO_AGENTS.md +10 -6
  803. package/presets/cursor/svelte/agents/build-verifier.md +1 -39
  804. package/presets/cursor/svelte/agents/code-reviewer.md +1 -1
  805. package/presets/cursor/svelte/agents/debugger.md +1 -1
  806. package/presets/cursor/svelte/agents/feature-developer.md +1 -1
  807. package/presets/cursor/svelte/agents/openspec-author.md +1 -1
  808. package/presets/cursor/svelte/agents/task-analyst.md +1 -1
  809. package/presets/cursor/svelte/agents/tech-writer.md +1 -1
  810. package/presets/cursor/svelte/agents/unit-test-generator.md +1 -1
  811. package/presets/cursor/svelte/agents/unit-test-planner.md +1 -1
  812. package/presets/cursor/svelte/hooks/chain-team-phases.sh +49 -17
  813. package/presets/cursor/svelte/rules/README.md +2 -2
  814. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +2 -2
  815. package/presets/cursor/svelte/rules/ai-local-overlay.mdc +7 -30
  816. package/presets/cursor/svelte/rules/anti-sycophancy-discipline.mdc +0 -2
  817. package/presets/cursor/svelte/rules/css-property-order-stylelint.mdc +4 -1
  818. package/presets/cursor/svelte/rules/design-guidance.mdc +0 -2
  819. package/presets/cursor/svelte/rules/language-policy.mdc +1 -1
  820. package/presets/cursor/svelte/rules/mockup-review.mdc +34 -29
  821. package/presets/cursor/svelte/rules/preset-goals.mdc +2 -2
  822. package/presets/cursor/svelte/rules/preset-layering.mdc +2 -2
  823. package/presets/cursor/svelte/rules/preset-no-cross-stack-leakage.mdc +2 -3
  824. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +8 -4
  825. package/presets/cursor/svelte/rules/preset-token-budget.mdc +4 -5
  826. package/presets/cursor/svelte/rules/preset-twin-sync.mdc +7 -7
  827. package/presets/cursor/svelte/rules/preset-writing-style.mdc +2 -2
  828. package/presets/cursor/svelte/rules/reference-features.mdc +0 -6
  829. package/presets/cursor/svelte/rules/svelte-script-conventions.mdc +3 -1
  830. package/presets/cursor/svelte/rules/svelte-sveltekit-anti-hallucination.mdc +6 -1
  831. package/presets/cursor/svelte/rules/tests-e2e-structure.mdc +0 -1
  832. package/presets/cursor/svelte/rules/tests-unit.mdc +0 -1
  833. package/presets/cursor/svelte/rules/types-jsdoc.mdc +18 -14
  834. package/presets/cursor/svelte/skills/technical-retro/SKILL.md +13 -2
  835. package/presets/cursor/svelte/skills/unit-testing/SKILL.md +1 -1
  836. package/presets/cursor/svelte/team/README.md +1 -1
  837. package/presets/mavis/android-kotlin/REPO_AGENTS.md +10 -6
  838. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  839. package/presets/mavis/android-kotlin/agents/build-verifier.md +2 -36
  840. package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -1
  841. package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
  842. package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
  843. package/presets/mavis/android-kotlin/agents/openspec-author.md +1 -1
  844. package/presets/mavis/android-kotlin/agents/task-analyst.md +1 -1
  845. package/presets/mavis/android-kotlin/agents/tech-writer.md +1 -1
  846. package/presets/mavis/android-kotlin/agents/unit-test-generator.md +1 -1
  847. package/presets/mavis/android-kotlin/agents/unit-test-planner.md +1 -1
  848. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +49 -17
  849. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -1
  850. package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +7 -30
  851. package/presets/mavis/android-kotlin/rules/mockup-review.md +34 -29
  852. package/presets/mavis/android-kotlin/rules/preset-no-cross-stack-leakage.md +0 -1
  853. package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +6 -2
  854. package/presets/mavis/android-kotlin/rules/preset-token-budget.md +2 -3
  855. package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +5 -5
  856. package/presets/mavis/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  857. package/presets/mavis/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  858. package/presets/mavis/android-kotlin/team/README.md +1 -1
  859. package/presets/mavis/go/REPO_AGENTS.md +10 -6
  860. package/presets/mavis/go/adapter-map.json +1 -1
  861. package/presets/mavis/go/agents/build-verifier.md +2 -28
  862. package/presets/mavis/go/agents/ci-investigator.md +2 -2
  863. package/presets/mavis/go/agents/code-reviewer.md +1 -1
  864. package/presets/mavis/go/agents/debugger.md +1 -1
  865. package/presets/mavis/go/agents/feature-developer.md +1 -3
  866. package/presets/mavis/go/agents/openspec-author.md +1 -1
  867. package/presets/mavis/go/agents/task-analyst.md +1 -1
  868. package/presets/mavis/go/agents/tech-writer.md +1 -1
  869. package/presets/mavis/go/hooks/chain-team-phases.sh +51 -19
  870. package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -1
  871. package/presets/mavis/go/rules/ai-local-overlay.md +7 -30
  872. package/presets/mavis/go/rules/feature-delivery-workflow.md +1 -1
  873. package/presets/mavis/go/rules/preset-no-cross-stack-leakage.md +0 -1
  874. package/presets/mavis/go/rules/preset-pr-checklist.md +6 -2
  875. package/presets/mavis/go/rules/preset-token-budget.md +2 -3
  876. package/presets/mavis/go/rules/preset-twin-sync.md +5 -5
  877. package/presets/mavis/go/skills/ci-investigation/SKILL.md +1 -1
  878. package/presets/mavis/go/skills/technical-retro/SKILL.md +13 -2
  879. package/presets/mavis/go/team/README.md +1 -1
  880. package/presets/mavis/ios-swift/REPO_AGENTS.md +10 -6
  881. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  882. package/presets/mavis/ios-swift/agents/build-verifier.md +2 -38
  883. package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -1
  884. package/presets/mavis/ios-swift/agents/debugger.md +1 -1
  885. package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
  886. package/presets/mavis/ios-swift/agents/openspec-author.md +1 -1
  887. package/presets/mavis/ios-swift/agents/task-analyst.md +1 -1
  888. package/presets/mavis/ios-swift/agents/tech-writer.md +1 -1
  889. package/presets/mavis/ios-swift/agents/unit-test-generator.md +1 -1
  890. package/presets/mavis/ios-swift/agents/unit-test-planner.md +1 -1
  891. package/presets/mavis/ios-swift/agents/xcuitest-test-generator.md +1 -1
  892. package/presets/mavis/ios-swift/agents/xcuitest-test-planner.md +2 -2
  893. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +49 -17
  894. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -1
  895. package/presets/mavis/ios-swift/rules/ai-local-overlay.md +7 -30
  896. package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +1 -1
  897. package/presets/mavis/ios-swift/rules/mockup-review.md +34 -29
  898. package/presets/mavis/ios-swift/rules/preset-no-cross-stack-leakage.md +0 -1
  899. package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +6 -2
  900. package/presets/mavis/ios-swift/rules/preset-token-budget.md +2 -3
  901. package/presets/mavis/ios-swift/rules/preset-twin-sync.md +5 -5
  902. package/presets/mavis/ios-swift/skills/technical-retro/SKILL.md +13 -2
  903. package/presets/mavis/ios-swift/skills/unit-testing/SKILL.md +1 -1
  904. package/presets/mavis/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  905. package/presets/mavis/ios-swift/team/README.md +1 -1
  906. package/presets/mavis/java/REPO_AGENTS.md +10 -6
  907. package/presets/mavis/java/adapter-map.json +1 -1
  908. package/presets/mavis/java/agents/build-verifier.md +2 -38
  909. package/presets/mavis/java/agents/ci-investigator.md +2 -2
  910. package/presets/mavis/java/agents/code-reviewer.md +1 -1
  911. package/presets/mavis/java/agents/debugger.md +1 -1
  912. package/presets/mavis/java/agents/feature-developer.md +1 -3
  913. package/presets/mavis/java/agents/openspec-author.md +1 -1
  914. package/presets/mavis/java/agents/task-analyst.md +1 -1
  915. package/presets/mavis/java/agents/tech-writer.md +1 -1
  916. package/presets/mavis/java/hooks/chain-team-phases.sh +51 -19
  917. package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -1
  918. package/presets/mavis/java/rules/ai-local-overlay.md +7 -30
  919. package/presets/mavis/java/rules/feature-delivery-workflow.md +1 -1
  920. package/presets/mavis/java/rules/preset-no-cross-stack-leakage.md +0 -1
  921. package/presets/mavis/java/rules/preset-pr-checklist.md +6 -2
  922. package/presets/mavis/java/rules/preset-token-budget.md +2 -3
  923. package/presets/mavis/java/rules/preset-twin-sync.md +5 -5
  924. package/presets/mavis/java/skills/ci-investigation/SKILL.md +1 -1
  925. package/presets/mavis/java/skills/technical-retro/SKILL.md +13 -2
  926. package/presets/mavis/java/team/README.md +1 -1
  927. package/presets/mavis/mcp-ts/REPO_AGENTS.md +10 -6
  928. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  929. package/presets/mavis/mcp-ts/agents/README.md +1 -1
  930. package/presets/mavis/mcp-ts/agents/build-verifier.md +2 -31
  931. package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
  932. package/presets/mavis/mcp-ts/agents/task-analyst.md +1 -1
  933. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +50 -18
  934. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -1
  935. package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +7 -30
  936. package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +1 -1
  937. package/presets/mavis/mcp-ts/rules/preset-no-cross-stack-leakage.md +0 -1
  938. package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +6 -2
  939. package/presets/mavis/mcp-ts/rules/preset-token-budget.md +2 -3
  940. package/presets/mavis/mcp-ts/rules/preset-twin-sync.md +5 -5
  941. package/presets/mavis/mcp-ts/team/README.md +1 -1
  942. package/presets/mavis/next/REPO_AGENTS.md +11 -7
  943. package/presets/mavis/next/adapter-map.json +1 -1
  944. package/presets/mavis/next/agents/build-verifier.md +2 -42
  945. package/presets/mavis/next/agents/code-reviewer.md +9 -38
  946. package/presets/mavis/next/agents/debugger.md +1 -1
  947. package/presets/mavis/next/agents/feature-developer.md +14 -25
  948. package/presets/mavis/next/agents/mockup-reviewer.md +14 -13
  949. package/presets/mavis/next/agents/openspec-author.md +1 -1
  950. package/presets/mavis/next/agents/task-analyst.md +1 -1
  951. package/presets/mavis/next/agents/tech-writer.md +1 -1
  952. package/presets/mavis/next/agents/unit-test-generator.md +1 -1
  953. package/presets/mavis/next/agents/unit-test-planner.md +1 -1
  954. package/presets/mavis/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  955. package/presets/mavis/next/ai-local/rules-library/analytics-events.md +1 -1
  956. package/presets/mavis/next/ai-local/rules-library/api-contract-source.md +1 -1
  957. package/presets/mavis/next/ai-local/rules-library/code-style.md +1 -1
  958. package/presets/mavis/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  959. package/presets/mavis/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  960. package/presets/mavis/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  961. package/presets/mavis/next/ai-local/rules-library/no-react-fc.md +1 -1
  962. package/presets/mavis/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  963. package/presets/mavis/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  964. package/presets/mavis/next/ai-local/rules-library/router-pages.md +1 -1
  965. package/presets/mavis/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  966. package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  967. package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  968. package/presets/mavis/next/commands/task.md +5 -3
  969. package/presets/mavis/next/hooks/chain-team-phases.sh +49 -17
  970. package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -1
  971. package/presets/mavis/next/rules/ai-local-overlay.md +5 -42
  972. package/presets/mavis/next/rules/code-review-mr.md +3 -16
  973. package/presets/mavis/next/rules/design-tokens-binding.md +6 -19
  974. package/presets/mavis/next/rules/feature-delivery-workflow.md +5 -12
  975. package/presets/mavis/next/rules/mockup-review.md +44 -45
  976. package/presets/mavis/next/rules/navigation-router-stack.md +1 -1
  977. package/presets/mavis/next/rules/navigation-router-ui.md +1 -1
  978. package/presets/mavis/next/rules/no-props-spread.md +1 -26
  979. package/presets/mavis/next/rules/preset-no-cross-stack-leakage.md +0 -1
  980. package/presets/mavis/next/rules/preset-pr-checklist.md +6 -2
  981. package/presets/mavis/next/rules/preset-token-budget.md +2 -3
  982. package/presets/mavis/next/rules/preset-twin-sync.md +5 -5
  983. package/presets/mavis/next/rules/product-specs.md +1 -1
  984. package/presets/mavis/next/rules/public-imports.md +2 -2
  985. package/presets/mavis/next/rules/react-ui.md +1 -7
  986. package/presets/mavis/next/rules/tests-e2e-structure.md +0 -1
  987. package/presets/mavis/next/rules/tests-unit.md +0 -1
  988. package/presets/mavis/next/rules/types-jsdoc.md +14 -17
  989. package/presets/mavis/next/skills/code-review/SKILL.md +1 -1
  990. package/presets/mavis/next/skills/figma-fidelity/SKILL.md +75 -48
  991. package/presets/mavis/next/skills/mockup-review/SKILL.md +4 -2
  992. package/presets/mavis/next/skills/react-performance/SKILL.md +1 -1
  993. package/presets/mavis/next/skills/technical-retro/SKILL.md +13 -2
  994. package/presets/mavis/next/skills/unit-testing/SKILL.md +1 -1
  995. package/presets/mavis/next/team/README.md +1 -1
  996. package/presets/mavis/nuxt/REPO_AGENTS.md +10 -6
  997. package/presets/mavis/nuxt/adapter-map.json +1 -1
  998. package/presets/mavis/nuxt/agents/build-verifier.md +1 -39
  999. package/presets/mavis/nuxt/agents/code-reviewer.md +1 -1
  1000. package/presets/mavis/nuxt/agents/debugger.md +1 -1
  1001. package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
  1002. package/presets/mavis/nuxt/agents/openspec-author.md +1 -1
  1003. package/presets/mavis/nuxt/agents/task-analyst.md +1 -1
  1004. package/presets/mavis/nuxt/agents/tech-writer.md +1 -1
  1005. package/presets/mavis/nuxt/agents/unit-test-generator.md +1 -1
  1006. package/presets/mavis/nuxt/agents/unit-test-planner.md +1 -1
  1007. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +49 -17
  1008. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -1
  1009. package/presets/mavis/nuxt/rules/ai-local-overlay.md +7 -30
  1010. package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +1 -1
  1011. package/presets/mavis/nuxt/rules/mockup-review.md +34 -29
  1012. package/presets/mavis/nuxt/rules/preset-no-cross-stack-leakage.md +0 -1
  1013. package/presets/mavis/nuxt/rules/preset-pr-checklist.md +6 -2
  1014. package/presets/mavis/nuxt/rules/preset-token-budget.md +2 -3
  1015. package/presets/mavis/nuxt/rules/preset-twin-sync.md +5 -5
  1016. package/presets/mavis/nuxt/rules/public-imports.md +2 -2
  1017. package/presets/mavis/nuxt/rules/tests-e2e-structure.md +0 -1
  1018. package/presets/mavis/nuxt/rules/tests-unit.md +0 -1
  1019. package/presets/mavis/nuxt/rules/types-jsdoc.md +18 -14
  1020. package/presets/mavis/nuxt/skills/technical-retro/SKILL.md +13 -2
  1021. package/presets/mavis/nuxt/skills/unit-testing/SKILL.md +1 -1
  1022. package/presets/mavis/nuxt/team/README.md +1 -1
  1023. package/presets/mavis/php-hexagonal/REPO_AGENTS.md +10 -6
  1024. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  1025. package/presets/mavis/php-hexagonal/agents/build-verifier.md +2 -38
  1026. package/presets/mavis/php-hexagonal/agents/ci-investigator.md +2 -2
  1027. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -1
  1028. package/presets/mavis/php-hexagonal/agents/debugger.md +1 -1
  1029. package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -3
  1030. package/presets/mavis/php-hexagonal/agents/openspec-author.md +1 -1
  1031. package/presets/mavis/php-hexagonal/agents/task-analyst.md +1 -1
  1032. package/presets/mavis/php-hexagonal/agents/tech-writer.md +1 -1
  1033. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  1034. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
  1035. package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +7 -30
  1036. package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
  1037. package/presets/mavis/php-hexagonal/rules/preset-no-cross-stack-leakage.md +0 -1
  1038. package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +6 -2
  1039. package/presets/mavis/php-hexagonal/rules/preset-token-budget.md +2 -3
  1040. package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +5 -5
  1041. package/presets/mavis/php-hexagonal/skills/ci-investigation/SKILL.md +1 -1
  1042. package/presets/mavis/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  1043. package/presets/mavis/php-hexagonal/team/README.md +1 -1
  1044. package/presets/mavis/php-laravel/REPO_AGENTS.md +10 -6
  1045. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  1046. package/presets/mavis/php-laravel/agents/build-verifier.md +2 -38
  1047. package/presets/mavis/php-laravel/agents/ci-investigator.md +2 -2
  1048. package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -1
  1049. package/presets/mavis/php-laravel/agents/debugger.md +1 -1
  1050. package/presets/mavis/php-laravel/agents/feature-developer.md +1 -3
  1051. package/presets/mavis/php-laravel/agents/openspec-author.md +1 -1
  1052. package/presets/mavis/php-laravel/agents/task-analyst.md +1 -1
  1053. package/presets/mavis/php-laravel/agents/tech-writer.md +1 -1
  1054. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +51 -19
  1055. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -1
  1056. package/presets/mavis/php-laravel/rules/ai-local-overlay.md +7 -30
  1057. package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +1 -1
  1058. package/presets/mavis/php-laravel/rules/preset-no-cross-stack-leakage.md +0 -1
  1059. package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +6 -2
  1060. package/presets/mavis/php-laravel/rules/preset-token-budget.md +2 -3
  1061. package/presets/mavis/php-laravel/rules/preset-twin-sync.md +5 -5
  1062. package/presets/mavis/php-laravel/skills/ci-investigation/SKILL.md +1 -1
  1063. package/presets/mavis/php-laravel/skills/technical-retro/SKILL.md +13 -2
  1064. package/presets/mavis/php-laravel/team/README.md +1 -1
  1065. package/presets/mavis/svelte/REPO_AGENTS.md +10 -6
  1066. package/presets/mavis/svelte/adapter-map.json +1 -1
  1067. package/presets/mavis/svelte/agents/build-verifier.md +1 -39
  1068. package/presets/mavis/svelte/agents/code-reviewer.md +1 -1
  1069. package/presets/mavis/svelte/agents/debugger.md +1 -1
  1070. package/presets/mavis/svelte/agents/feature-developer.md +1 -1
  1071. package/presets/mavis/svelte/agents/openspec-author.md +1 -1
  1072. package/presets/mavis/svelte/agents/task-analyst.md +1 -1
  1073. package/presets/mavis/svelte/agents/tech-writer.md +1 -1
  1074. package/presets/mavis/svelte/agents/unit-test-generator.md +1 -1
  1075. package/presets/mavis/svelte/agents/unit-test-planner.md +1 -1
  1076. package/presets/mavis/svelte/hooks/chain-team-phases.sh +49 -17
  1077. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -1
  1078. package/presets/mavis/svelte/rules/ai-local-overlay.md +7 -30
  1079. package/presets/mavis/svelte/rules/feature-delivery-workflow.md +1 -1
  1080. package/presets/mavis/svelte/rules/mockup-review.md +34 -29
  1081. package/presets/mavis/svelte/rules/preset-no-cross-stack-leakage.md +0 -1
  1082. package/presets/mavis/svelte/rules/preset-pr-checklist.md +6 -2
  1083. package/presets/mavis/svelte/rules/preset-token-budget.md +2 -3
  1084. package/presets/mavis/svelte/rules/preset-twin-sync.md +5 -5
  1085. package/presets/mavis/svelte/rules/tests-e2e-structure.md +0 -1
  1086. package/presets/mavis/svelte/rules/tests-unit.md +0 -1
  1087. package/presets/mavis/svelte/rules/types-jsdoc.md +18 -14
  1088. package/presets/mavis/svelte/skills/technical-retro/SKILL.md +13 -2
  1089. package/presets/mavis/svelte/skills/unit-testing/SKILL.md +1 -1
  1090. package/presets/mavis/svelte/team/README.md +1 -1
  1091. package/presets/opencode/android-kotlin/OPENCODE.md +6 -4
  1092. package/presets/opencode/android-kotlin/REPO_AGENTS.md +10 -6
  1093. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  1094. package/presets/opencode/android-kotlin/agents/build-verifier.md +3 -37
  1095. package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
  1096. package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
  1097. package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
  1098. package/presets/opencode/android-kotlin/agents/openspec-author.md +1 -1
  1099. package/presets/opencode/android-kotlin/agents/task-analyst.md +1 -1
  1100. package/presets/opencode/android-kotlin/agents/tech-writer.md +1 -1
  1101. package/presets/opencode/android-kotlin/agents/unit-test-generator.md +1 -1
  1102. package/presets/opencode/android-kotlin/agents/unit-test-planner.md +1 -1
  1103. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +49 -17
  1104. package/presets/opencode/android-kotlin/opencode.json +12 -0
  1105. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -1
  1106. package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +7 -30
  1107. package/presets/opencode/android-kotlin/rules/mockup-review.md +34 -29
  1108. package/presets/opencode/android-kotlin/rules/preset-no-cross-stack-leakage.md +0 -1
  1109. package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +6 -2
  1110. package/presets/opencode/android-kotlin/rules/preset-token-budget.md +2 -3
  1111. package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +5 -5
  1112. package/presets/opencode/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  1113. package/presets/opencode/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  1114. package/presets/opencode/android-kotlin/team/README.md +1 -1
  1115. package/presets/opencode/go/OPENCODE.md +6 -4
  1116. package/presets/opencode/go/REPO_AGENTS.md +10 -6
  1117. package/presets/opencode/go/adapter-map.json +1 -1
  1118. package/presets/opencode/go/agents/build-verifier.md +3 -29
  1119. package/presets/opencode/go/agents/ci-investigator.md +2 -2
  1120. package/presets/opencode/go/agents/code-reviewer.md +1 -1
  1121. package/presets/opencode/go/agents/debugger.md +1 -1
  1122. package/presets/opencode/go/agents/feature-developer.md +1 -3
  1123. package/presets/opencode/go/agents/openspec-author.md +1 -1
  1124. package/presets/opencode/go/agents/task-analyst.md +1 -1
  1125. package/presets/opencode/go/agents/tech-writer.md +1 -1
  1126. package/presets/opencode/go/hooks/chain-team-phases.sh +51 -19
  1127. package/presets/opencode/go/opencode.json +12 -0
  1128. package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -1
  1129. package/presets/opencode/go/rules/ai-local-overlay.md +7 -30
  1130. package/presets/opencode/go/rules/feature-delivery-workflow.md +1 -1
  1131. package/presets/opencode/go/rules/preset-no-cross-stack-leakage.md +0 -1
  1132. package/presets/opencode/go/rules/preset-pr-checklist.md +6 -2
  1133. package/presets/opencode/go/rules/preset-token-budget.md +2 -3
  1134. package/presets/opencode/go/rules/preset-twin-sync.md +5 -5
  1135. package/presets/opencode/go/skills/ci-investigation/SKILL.md +2 -2
  1136. package/presets/opencode/go/skills/technical-retro/SKILL.md +13 -2
  1137. package/presets/opencode/go/team/README.md +1 -1
  1138. package/presets/opencode/ios-swift/OPENCODE.md +6 -4
  1139. package/presets/opencode/ios-swift/REPO_AGENTS.md +10 -6
  1140. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  1141. package/presets/opencode/ios-swift/agents/build-verifier.md +3 -39
  1142. package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
  1143. package/presets/opencode/ios-swift/agents/debugger.md +1 -1
  1144. package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
  1145. package/presets/opencode/ios-swift/agents/openspec-author.md +1 -1
  1146. package/presets/opencode/ios-swift/agents/task-analyst.md +1 -1
  1147. package/presets/opencode/ios-swift/agents/tech-writer.md +1 -1
  1148. package/presets/opencode/ios-swift/agents/unit-test-generator.md +1 -1
  1149. package/presets/opencode/ios-swift/agents/unit-test-planner.md +1 -1
  1150. package/presets/opencode/ios-swift/agents/xcuitest-test-generator.md +1 -1
  1151. package/presets/opencode/ios-swift/agents/xcuitest-test-planner.md +2 -2
  1152. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +49 -17
  1153. package/presets/opencode/ios-swift/opencode.json +12 -0
  1154. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -1
  1155. package/presets/opencode/ios-swift/rules/ai-local-overlay.md +7 -30
  1156. package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +1 -1
  1157. package/presets/opencode/ios-swift/rules/mockup-review.md +34 -29
  1158. package/presets/opencode/ios-swift/rules/preset-no-cross-stack-leakage.md +0 -1
  1159. package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +6 -2
  1160. package/presets/opencode/ios-swift/rules/preset-token-budget.md +2 -3
  1161. package/presets/opencode/ios-swift/rules/preset-twin-sync.md +5 -5
  1162. package/presets/opencode/ios-swift/skills/technical-retro/SKILL.md +13 -2
  1163. package/presets/opencode/ios-swift/skills/unit-testing/SKILL.md +1 -1
  1164. package/presets/opencode/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  1165. package/presets/opencode/ios-swift/team/README.md +1 -1
  1166. package/presets/opencode/java/OPENCODE.md +6 -4
  1167. package/presets/opencode/java/REPO_AGENTS.md +10 -6
  1168. package/presets/opencode/java/adapter-map.json +1 -1
  1169. package/presets/opencode/java/agents/build-verifier.md +3 -39
  1170. package/presets/opencode/java/agents/ci-investigator.md +2 -2
  1171. package/presets/opencode/java/agents/code-reviewer.md +1 -1
  1172. package/presets/opencode/java/agents/debugger.md +1 -1
  1173. package/presets/opencode/java/agents/feature-developer.md +1 -3
  1174. package/presets/opencode/java/agents/openspec-author.md +1 -1
  1175. package/presets/opencode/java/agents/task-analyst.md +1 -1
  1176. package/presets/opencode/java/agents/tech-writer.md +1 -1
  1177. package/presets/opencode/java/hooks/chain-team-phases.sh +51 -19
  1178. package/presets/opencode/java/opencode.json +12 -0
  1179. package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -1
  1180. package/presets/opencode/java/rules/ai-local-overlay.md +7 -30
  1181. package/presets/opencode/java/rules/feature-delivery-workflow.md +1 -1
  1182. package/presets/opencode/java/rules/preset-no-cross-stack-leakage.md +0 -1
  1183. package/presets/opencode/java/rules/preset-pr-checklist.md +6 -2
  1184. package/presets/opencode/java/rules/preset-token-budget.md +2 -3
  1185. package/presets/opencode/java/rules/preset-twin-sync.md +5 -5
  1186. package/presets/opencode/java/skills/ci-investigation/SKILL.md +2 -2
  1187. package/presets/opencode/java/skills/technical-retro/SKILL.md +13 -2
  1188. package/presets/opencode/java/team/README.md +1 -1
  1189. package/presets/opencode/mcp-ts/OPENCODE.md +6 -4
  1190. package/presets/opencode/mcp-ts/REPO_AGENTS.md +10 -6
  1191. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  1192. package/presets/opencode/mcp-ts/agents/README.md +1 -1
  1193. package/presets/opencode/mcp-ts/agents/build-verifier.md +3 -32
  1194. package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
  1195. package/presets/opencode/mcp-ts/agents/task-analyst.md +1 -1
  1196. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +50 -18
  1197. package/presets/opencode/mcp-ts/opencode.json +12 -0
  1198. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -1
  1199. package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +7 -30
  1200. package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +1 -1
  1201. package/presets/opencode/mcp-ts/rules/preset-no-cross-stack-leakage.md +0 -1
  1202. package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +6 -2
  1203. package/presets/opencode/mcp-ts/rules/preset-token-budget.md +2 -3
  1204. package/presets/opencode/mcp-ts/rules/preset-twin-sync.md +5 -5
  1205. package/presets/opencode/mcp-ts/team/README.md +1 -1
  1206. package/presets/opencode/next/OPENCODE.md +6 -4
  1207. package/presets/opencode/next/REPO_AGENTS.md +11 -7
  1208. package/presets/opencode/next/adapter-map.json +1 -1
  1209. package/presets/opencode/next/agents/build-verifier.md +2 -42
  1210. package/presets/opencode/next/agents/code-reviewer.md +9 -38
  1211. package/presets/opencode/next/agents/debugger.md +1 -1
  1212. package/presets/opencode/next/agents/feature-developer.md +14 -25
  1213. package/presets/opencode/next/agents/mockup-reviewer.md +14 -13
  1214. package/presets/opencode/next/agents/openspec-author.md +1 -1
  1215. package/presets/opencode/next/agents/task-analyst.md +1 -1
  1216. package/presets/opencode/next/agents/tech-writer.md +1 -1
  1217. package/presets/opencode/next/agents/unit-test-generator.md +1 -1
  1218. package/presets/opencode/next/agents/unit-test-planner.md +1 -1
  1219. package/presets/opencode/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  1220. package/presets/opencode/next/ai-local/rules-library/analytics-events.md +1 -1
  1221. package/presets/opencode/next/ai-local/rules-library/api-contract-source.md +1 -1
  1222. package/presets/opencode/next/ai-local/rules-library/code-style.md +1 -1
  1223. package/presets/opencode/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  1224. package/presets/opencode/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  1225. package/presets/opencode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  1226. package/presets/opencode/next/ai-local/rules-library/no-react-fc.md +1 -1
  1227. package/presets/opencode/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  1228. package/presets/opencode/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  1229. package/presets/opencode/next/ai-local/rules-library/router-pages.md +1 -1
  1230. package/presets/opencode/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  1231. package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  1232. package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  1233. package/presets/opencode/next/commands/task.md +5 -3
  1234. package/presets/opencode/next/hooks/chain-team-phases.sh +49 -17
  1235. package/presets/opencode/next/opencode.json +12 -0
  1236. package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -1
  1237. package/presets/opencode/next/rules/ai-local-overlay.md +5 -42
  1238. package/presets/opencode/next/rules/code-review-mr.md +3 -16
  1239. package/presets/opencode/next/rules/design-tokens-binding.md +6 -19
  1240. package/presets/opencode/next/rules/feature-delivery-workflow.md +5 -12
  1241. package/presets/opencode/next/rules/mockup-review.md +44 -45
  1242. package/presets/opencode/next/rules/navigation-router-stack.md +1 -1
  1243. package/presets/opencode/next/rules/navigation-router-ui.md +1 -1
  1244. package/presets/opencode/next/rules/no-props-spread.md +1 -26
  1245. package/presets/opencode/next/rules/preset-no-cross-stack-leakage.md +0 -1
  1246. package/presets/opencode/next/rules/preset-pr-checklist.md +6 -2
  1247. package/presets/opencode/next/rules/preset-token-budget.md +2 -3
  1248. package/presets/opencode/next/rules/preset-twin-sync.md +5 -5
  1249. package/presets/opencode/next/rules/product-specs.md +1 -1
  1250. package/presets/opencode/next/rules/public-imports.md +2 -2
  1251. package/presets/opencode/next/rules/react-ui.md +1 -7
  1252. package/presets/opencode/next/rules/tests-e2e-structure.md +0 -1
  1253. package/presets/opencode/next/rules/tests-unit.md +0 -1
  1254. package/presets/opencode/next/rules/types-jsdoc.md +14 -17
  1255. package/presets/opencode/next/skills/code-review/SKILL.md +1 -1
  1256. package/presets/opencode/next/skills/figma-fidelity/SKILL.md +76 -49
  1257. package/presets/opencode/next/skills/mockup-review/SKILL.md +4 -2
  1258. package/presets/opencode/next/skills/react-performance/SKILL.md +1 -1
  1259. package/presets/opencode/next/skills/technical-retro/SKILL.md +13 -2
  1260. package/presets/opencode/next/skills/unit-testing/SKILL.md +1 -1
  1261. package/presets/opencode/next/team/README.md +1 -1
  1262. package/presets/opencode/nuxt/OPENCODE.md +6 -4
  1263. package/presets/opencode/nuxt/REPO_AGENTS.md +10 -6
  1264. package/presets/opencode/nuxt/adapter-map.json +1 -1
  1265. package/presets/opencode/nuxt/agents/build-verifier.md +1 -39
  1266. package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
  1267. package/presets/opencode/nuxt/agents/debugger.md +1 -1
  1268. package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
  1269. package/presets/opencode/nuxt/agents/openspec-author.md +1 -1
  1270. package/presets/opencode/nuxt/agents/task-analyst.md +1 -1
  1271. package/presets/opencode/nuxt/agents/tech-writer.md +1 -1
  1272. package/presets/opencode/nuxt/agents/unit-test-generator.md +1 -1
  1273. package/presets/opencode/nuxt/agents/unit-test-planner.md +1 -1
  1274. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +49 -17
  1275. package/presets/opencode/nuxt/opencode.json +12 -0
  1276. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -1
  1277. package/presets/opencode/nuxt/rules/ai-local-overlay.md +7 -30
  1278. package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +1 -1
  1279. package/presets/opencode/nuxt/rules/mockup-review.md +34 -29
  1280. package/presets/opencode/nuxt/rules/preset-no-cross-stack-leakage.md +0 -1
  1281. package/presets/opencode/nuxt/rules/preset-pr-checklist.md +6 -2
  1282. package/presets/opencode/nuxt/rules/preset-token-budget.md +2 -3
  1283. package/presets/opencode/nuxt/rules/preset-twin-sync.md +5 -5
  1284. package/presets/opencode/nuxt/rules/public-imports.md +2 -2
  1285. package/presets/opencode/nuxt/rules/tests-e2e-structure.md +0 -1
  1286. package/presets/opencode/nuxt/rules/tests-unit.md +0 -1
  1287. package/presets/opencode/nuxt/rules/types-jsdoc.md +18 -14
  1288. package/presets/opencode/nuxt/skills/technical-retro/SKILL.md +13 -2
  1289. package/presets/opencode/nuxt/skills/unit-testing/SKILL.md +1 -1
  1290. package/presets/opencode/nuxt/team/README.md +1 -1
  1291. package/presets/opencode/php-hexagonal/OPENCODE.md +6 -4
  1292. package/presets/opencode/php-hexagonal/REPO_AGENTS.md +10 -6
  1293. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  1294. package/presets/opencode/php-hexagonal/agents/build-verifier.md +3 -39
  1295. package/presets/opencode/php-hexagonal/agents/ci-investigator.md +2 -2
  1296. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
  1297. package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
  1298. package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -3
  1299. package/presets/opencode/php-hexagonal/agents/openspec-author.md +1 -1
  1300. package/presets/opencode/php-hexagonal/agents/task-analyst.md +1 -1
  1301. package/presets/opencode/php-hexagonal/agents/tech-writer.md +1 -1
  1302. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +51 -19
  1303. package/presets/opencode/php-hexagonal/opencode.json +12 -0
  1304. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
  1305. package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +7 -30
  1306. package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
  1307. package/presets/opencode/php-hexagonal/rules/preset-no-cross-stack-leakage.md +0 -1
  1308. package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +6 -2
  1309. package/presets/opencode/php-hexagonal/rules/preset-token-budget.md +2 -3
  1310. package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +5 -5
  1311. package/presets/opencode/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  1312. package/presets/opencode/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  1313. package/presets/opencode/php-hexagonal/team/README.md +1 -1
  1314. package/presets/opencode/php-laravel/OPENCODE.md +6 -4
  1315. package/presets/opencode/php-laravel/REPO_AGENTS.md +10 -6
  1316. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  1317. package/presets/opencode/php-laravel/agents/build-verifier.md +3 -39
  1318. package/presets/opencode/php-laravel/agents/ci-investigator.md +2 -2
  1319. package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
  1320. package/presets/opencode/php-laravel/agents/debugger.md +1 -1
  1321. package/presets/opencode/php-laravel/agents/feature-developer.md +1 -3
  1322. package/presets/opencode/php-laravel/agents/openspec-author.md +1 -1
  1323. package/presets/opencode/php-laravel/agents/task-analyst.md +1 -1
  1324. package/presets/opencode/php-laravel/agents/tech-writer.md +1 -1
  1325. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +51 -19
  1326. package/presets/opencode/php-laravel/opencode.json +12 -0
  1327. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -1
  1328. package/presets/opencode/php-laravel/rules/ai-local-overlay.md +7 -30
  1329. package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +1 -1
  1330. package/presets/opencode/php-laravel/rules/preset-no-cross-stack-leakage.md +0 -1
  1331. package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +6 -2
  1332. package/presets/opencode/php-laravel/rules/preset-token-budget.md +2 -3
  1333. package/presets/opencode/php-laravel/rules/preset-twin-sync.md +5 -5
  1334. package/presets/opencode/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  1335. package/presets/opencode/php-laravel/skills/technical-retro/SKILL.md +13 -2
  1336. package/presets/opencode/php-laravel/team/README.md +1 -1
  1337. package/presets/opencode/svelte/OPENCODE.md +6 -4
  1338. package/presets/opencode/svelte/REPO_AGENTS.md +10 -6
  1339. package/presets/opencode/svelte/adapter-map.json +1 -1
  1340. package/presets/opencode/svelte/agents/build-verifier.md +1 -39
  1341. package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
  1342. package/presets/opencode/svelte/agents/debugger.md +1 -1
  1343. package/presets/opencode/svelte/agents/feature-developer.md +1 -1
  1344. package/presets/opencode/svelte/agents/openspec-author.md +1 -1
  1345. package/presets/opencode/svelte/agents/task-analyst.md +1 -1
  1346. package/presets/opencode/svelte/agents/tech-writer.md +1 -1
  1347. package/presets/opencode/svelte/agents/unit-test-generator.md +1 -1
  1348. package/presets/opencode/svelte/agents/unit-test-planner.md +1 -1
  1349. package/presets/opencode/svelte/hooks/chain-team-phases.sh +49 -17
  1350. package/presets/opencode/svelte/opencode.json +12 -0
  1351. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -1
  1352. package/presets/opencode/svelte/rules/ai-local-overlay.md +7 -30
  1353. package/presets/opencode/svelte/rules/feature-delivery-workflow.md +1 -1
  1354. package/presets/opencode/svelte/rules/mockup-review.md +34 -29
  1355. package/presets/opencode/svelte/rules/preset-no-cross-stack-leakage.md +0 -1
  1356. package/presets/opencode/svelte/rules/preset-pr-checklist.md +6 -2
  1357. package/presets/opencode/svelte/rules/preset-token-budget.md +2 -3
  1358. package/presets/opencode/svelte/rules/preset-twin-sync.md +5 -5
  1359. package/presets/opencode/svelte/rules/tests-e2e-structure.md +0 -1
  1360. package/presets/opencode/svelte/rules/tests-unit.md +0 -1
  1361. package/presets/opencode/svelte/rules/types-jsdoc.md +18 -14
  1362. package/presets/opencode/svelte/skills/technical-retro/SKILL.md +13 -2
  1363. package/presets/opencode/svelte/skills/unit-testing/SKILL.md +1 -1
  1364. package/presets/opencode/svelte/team/README.md +1 -1
  1365. package/scripts/_lib/agent-write-scopes.json +0 -27
  1366. package/scripts/_lib/embed-stems.json +0 -38
  1367. package/scripts/capture-cli-golden.mjs +0 -51
  1368. package/scripts/check-chain-hook-coverage.sh +0 -124
  1369. package/scripts/check-claude-agent-blocks.mjs +0 -82
  1370. package/scripts/check-figma-contract-presence.sh +0 -119
  1371. package/scripts/check-frontmatter.mjs +0 -83
  1372. package/scripts/check-generated-drift.mjs +0 -146
  1373. package/scripts/check-hook-only-lifecycle.sh +0 -46
  1374. package/scripts/check-local-overlay.sh +0 -283
  1375. package/scripts/check-mavis-adapter-map.mjs +0 -306
  1376. package/scripts/check-mavis-local-overlay.mjs +0 -79
  1377. package/scripts/check-mavis-platform-contract.mjs +0 -390
  1378. package/scripts/check-mavis-token-budget.mjs +0 -48
  1379. package/scripts/check-opencode-adapter-map.mjs +0 -306
  1380. package/scripts/check-opencode-local-overlay.mjs +0 -75
  1381. package/scripts/check-opencode-platform-contract.mjs +0 -390
  1382. package/scripts/check-opencode-token-budget.mjs +0 -48
  1383. package/scripts/check-parallel-plan.sh +0 -353
  1384. package/scripts/check-plan-contract.sh +0 -133
  1385. package/scripts/check-preset-goal-contract.sh +0 -214
  1386. package/scripts/check-preset-i18n.sh +0 -61
  1387. package/scripts/check-preset-language-policy.sh +0 -292
  1388. package/scripts/check-preset-leakage.sh +0 -545
  1389. package/scripts/check-preset-prompt-persistence.sh +0 -218
  1390. package/scripts/check-preset-self-review-contract.sh +0 -179
  1391. package/scripts/check-preset-structure.sh +0 -297
  1392. package/scripts/check-preset-token-budget.sh +0 -258
  1393. package/scripts/check-preset-twin-map.sh +0 -122
  1394. package/scripts/check-rule-eval.mjs +0 -165
  1395. package/scripts/check-shared-core-drift.sh +0 -155
  1396. package/scripts/check-step-graph-contract.sh +0 -123
  1397. package/scripts/check-task-router-intents.sh +0 -154
  1398. package/scripts/fixtures/cli-golden/claude/next.json +0 -146
  1399. package/scripts/fixtures/cli-golden/cursor/next.json +0 -168
  1400. package/scripts/fixtures/cli-golden/mavis/android-kotlin.json +0 -110
  1401. package/scripts/fixtures/cli-golden/mavis/go.json +0 -103
  1402. package/scripts/fixtures/cli-golden/mavis/ios-swift.json +0 -109
  1403. package/scripts/fixtures/cli-golden/mavis/java.json +0 -103
  1404. package/scripts/fixtures/cli-golden/mavis/mcp-ts.json +0 -74
  1405. package/scripts/fixtures/cli-golden/mavis/next.json +0 -161
  1406. package/scripts/fixtures/cli-golden/mavis/nuxt.json +0 -128
  1407. package/scripts/fixtures/cli-golden/mavis/php-hexagonal.json +0 -103
  1408. package/scripts/fixtures/cli-golden/mavis/php-laravel.json +0 -103
  1409. package/scripts/fixtures/cli-golden/mavis/svelte.json +0 -128
  1410. package/scripts/fixtures/cli-golden/opencode/android-kotlin.json +0 -110
  1411. package/scripts/fixtures/cli-golden/opencode/go.json +0 -103
  1412. package/scripts/fixtures/cli-golden/opencode/ios-swift.json +0 -109
  1413. package/scripts/fixtures/cli-golden/opencode/java.json +0 -103
  1414. package/scripts/fixtures/cli-golden/opencode/mcp-ts.json +0 -74
  1415. package/scripts/fixtures/cli-golden/opencode/next.json +0 -161
  1416. package/scripts/fixtures/cli-golden/opencode/nuxt.json +0 -128
  1417. package/scripts/fixtures/cli-golden/opencode/php-hexagonal.json +0 -103
  1418. package/scripts/fixtures/cli-golden/opencode/php-laravel.json +0 -103
  1419. package/scripts/fixtures/cli-golden/opencode/svelte.json +0 -128
  1420. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/AGENTS.md +0 -1
  1421. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/rules/extra.mdc +0 -1
  1422. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/rules/sample.mdc +0 -2
  1423. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/MAVIS.md +0 -1
  1424. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/adapter-map.json +0 -26
  1425. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/rules/sample.md +0 -2
  1426. package/scripts/fixtures/mavis-adapter-map/valid/cursor/AGENTS.md +0 -1
  1427. package/scripts/fixtures/mavis-adapter-map/valid/cursor/rules/sample.mdc +0 -2
  1428. package/scripts/fixtures/mavis-adapter-map/valid/mavis/MAVIS.md +0 -1
  1429. package/scripts/fixtures/mavis-adapter-map/valid/mavis/adapter-map.json +0 -26
  1430. package/scripts/fixtures/mavis-adapter-map/valid/mavis/rules/sample.md +0 -2
  1431. package/scripts/fixtures/mavis-platform-contract/invalid-minimax-destination.json +0 -131
  1432. package/scripts/fixtures/mavis-platform-contract/invalid-missing-capability.json +0 -126
  1433. package/scripts/fixtures/mavis-platform-contract/invalid-released-unknown-stack.json +0 -133
  1434. package/scripts/fixtures/mavis-platform-contract/invalid-unknown-native-path.json +0 -131
  1435. package/scripts/fixtures/mavis-platform-contract/invalid-version-pin.json +0 -132
  1436. package/scripts/fixtures/mavis-platform-contract/valid.json +0 -127
  1437. package/scripts/fixtures/mavis-probe/AGENTS.md +0 -6
  1438. package/scripts/fixtures/mavis-probe/agents/probe-agent.md +0 -6
  1439. package/scripts/fixtures/mavis-probe/fake-mcode.mjs +0 -98
  1440. package/scripts/fixtures/mavis-probe/output.schema.json +0 -28
  1441. package/scripts/fixtures/mavis-probe/rules/probe.md +0 -5
  1442. package/scripts/fixtures/mavis-probe/skills/probe/SKILL.md +0 -11
  1443. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/AGENTS.md +0 -1
  1444. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/rules/extra.mdc +0 -1
  1445. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/rules/sample.mdc +0 -2
  1446. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/OPENCODE.md +0 -1
  1447. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/adapter-map.json +0 -26
  1448. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/rules/sample.md +0 -2
  1449. package/scripts/fixtures/opencode-adapter-map/valid/cursor/AGENTS.md +0 -1
  1450. package/scripts/fixtures/opencode-adapter-map/valid/cursor/rules/sample.mdc +0 -2
  1451. package/scripts/fixtures/opencode-adapter-map/valid/opencode/OPENCODE.md +0 -1
  1452. package/scripts/fixtures/opencode-adapter-map/valid/opencode/adapter-map.json +0 -26
  1453. package/scripts/fixtures/opencode-adapter-map/valid/opencode/rules/sample.md +0 -2
  1454. package/scripts/fixtures/opencode-platform-contract/invalid-home-destination.json +0 -131
  1455. package/scripts/fixtures/opencode-platform-contract/invalid-missing-capability.json +0 -126
  1456. package/scripts/fixtures/opencode-platform-contract/invalid-released-unknown-stack.json +0 -133
  1457. package/scripts/fixtures/opencode-platform-contract/invalid-unknown-native-path.json +0 -131
  1458. package/scripts/fixtures/opencode-platform-contract/invalid-version-pin.json +0 -132
  1459. package/scripts/fixtures/opencode-platform-contract/valid.json +0 -127
  1460. package/scripts/generate-mavis.mjs +0 -14
  1461. package/scripts/generate-opencode.mjs +0 -14
  1462. package/scripts/inject-claude-agent-rules-block.mjs +0 -83
  1463. package/scripts/lib/cli-golden.mjs +0 -50
  1464. package/scripts/lib/discover-hooks.mjs +0 -94
  1465. package/scripts/lib/generate-adapter-common.mjs +0 -603
  1466. package/scripts/lib/generate-mavis-adapter.mjs +0 -550
  1467. package/scripts/lib/generate-opencode-adapter.mjs +0 -662
  1468. package/scripts/lib/stack-platform-profiles.mjs +0 -468
  1469. package/scripts/probe-mavis-capabilities.mjs +0 -480
  1470. package/scripts/sync-claude-harness-wiring.mjs +0 -56
  1471. package/scripts/sync-claude-settings.mjs +0 -81
  1472. package/scripts/sync-dogfood-claude.sh +0 -62
  1473. package/scripts/sync-dogfood-cursor.sh +0 -50
  1474. package/scripts/sync-dogfood-mavis.sh +0 -69
  1475. package/scripts/sync-dogfood-opencode.sh +0 -67
  1476. package/scripts/sync-shared-core-embeds.sh +0 -103
  1477. package/scripts/test-agent-task-metrics-hooks.mjs +0 -1225
  1478. package/scripts/test-chain-team-phases-coverage.mjs +0 -822
  1479. package/scripts/test-cli-init-clean.mjs +0 -794
  1480. package/scripts/test-cli-mcp-merge.mjs +0 -214
  1481. package/scripts/test-mavis-context-budget.mjs +0 -50
  1482. package/scripts/test-mavis-orchestration.mjs +0 -650
  1483. package/scripts/test-opencode-context-budget.mjs +0 -49
  1484. package/scripts/test-parallel-plan-fixtures.mjs +0 -173
  1485. package/scripts/test-plan-contract-fixtures.mjs +0 -132
  1486. package/scripts/test-preset-goal-contract-fixtures.mjs +0 -162
  1487. package/scripts/test-preset-language-policy-fixtures.mjs +0 -194
  1488. package/scripts/test-preset-prompt-persistence-fixtures.mjs +0 -232
  1489. package/scripts/test-preset-self-review-contract-fixtures.mjs +0 -163
  1490. package/scripts/test-probe-mavis-capabilities.mjs +0 -205
  1491. package/scripts/test-task-router-intents-fixtures.mjs +0 -109
@@ -1,20 +1,15 @@
1
1
  ---
2
- paths:
3
- - .claude/commands/**/*
4
- - .ai.local/team/**/*
5
- - .claude/agents/**/*
2
+ description: Orchestrates the agent team via task-router and pipeline.json. Use for /task, /task-continue, task decomposition, or when the user describes a feature, bug, or review request.
3
+ paths: []
6
4
  ---
7
5
 
8
6
  <!-- shared-core: agent-team/agent-team-orchestrator.md -->
9
- <!-- shared-core: quality/context-and-iteration.md -->
10
- <!-- shared-core: quality/self-review-and-context-hygiene.md -->
11
-
12
7
 
13
8
  # Agent team orchestrator
14
9
 
15
10
  Parent agent = **manager**. Router plans; specialists execute. Artifacts: `.ai.local/team/tasks/<slug>/`.
16
11
 
17
- Work request without `/task` — see **`tooling-and-review/agent-team-intake.md`**.
12
+ Work request without `/task` — see **agent-team-intake** (when to suggest the router instead of coding directly).
18
13
 
19
14
  ## Entry points
20
15
 
@@ -25,38 +20,279 @@ Work request without `/task` — see **`tooling-and-review/agent-team-intake.md`
25
20
  | `/spec-start [desc]` | Generate/bootstrap `docs/specs` — router intent `spec-gen` → analyst author mode → human gate |
26
21
  | `/technical-retro [slug]` | Retro with agent team block |
27
22
 
28
- ## Roles
29
-
30
- | Agent | May edit production code | Typical intent |
31
- |-------|--------------------------|----------------|
32
- | `task-router` | no | Every `/task` — writes `pipeline.json` |
33
- | `task-analyst` | no | feature, refactor, test-only, a11y, docs-only, migration, ux-design, spec-gen |
34
- | `solution-architect` | no | spike, complex cross-layer feature |
35
- | `migration-specialist` | no | migration — phased upgrade plan |
36
- | `api-contract-reviewer` | no | new/changed backend API contracts |
37
- | `debugger` | yes, minimal fixes only | bugfix |
38
- | `ci-investigator` | yes, minimal CI fixes | ci-fix |
23
+ ## Roles (shared catalog)
24
+
25
+ Roster of specialists is **stack-specific** (agent names and write scopes differ). See **Stack notes** in the stack adapter for the live Roles table. Common patterns:
26
+
27
+ | Kind | Examples (names vary by stack) |
28
+ |------|--------------------------------|
29
+ | Planning | `task-router`, `task-analyst` (plus skill `ux-design` for behavioral UX **where the stack has a UI surface**), `solution-architect`, `migration-specialist` |
30
+ | Implementation | `feature-developer`, `debugger`, `ci-investigator` |
31
+ | Gates / review | `build-verifier`, `code-reviewer`, `security-reviewer`, `performance-auditor`; plus stack-native a11y/UI reviewer and `mockup-reviewer` **only when the stack has a UI surface** |
32
+ | Tests | unit planner/generator/healer; e2e/UI planner/generator/healer (stack-native) |
33
+ | Docs | `tech-writer` |
34
+
35
+ **Cursor frontmatter:** all team pipeline agents use `readonly: false` so they can write team artifacts. Production/app restrictions live in the agent prompt body — do **not** set `readonly: true`.
36
+
37
+ Full prompts: stack `agents/*.md`. Artifact conventions: stack `team/README.md`; schema SoT: **agent-artifact-contracts**.
38
+
39
+ ## Dynamic pipeline
40
+
41
+ ```mermaid
42
+ flowchart TD
43
+ task["/task prompt"]
44
+ router["task-router"]
45
+ pipeline["pipeline.json"]
46
+ step0["steps 0..N"]
47
+ gate{"humanGates?"}
48
+ hook["subagentStop hook"]
49
+ retro["/technical-retro"]
50
+
51
+ task --> router
52
+ router --> pipeline
53
+ pipeline --> step0
54
+ step0 --> gate
55
+ gate -->|"/task-continue"| step0
56
+ step0 --> hook
57
+ hook --> step0
58
+ step0 --> retro
59
+ ```
60
+
61
+ **Source of truth for order:** `pipeline.json` → `steps[]`. Never hardcode analyst → dev → review → QA when `pipeline.json` exists.
62
+
63
+ ## Routing decision contract
64
+
65
+ Keep top-level `profile` (`light` | `standard` | `full`) and add a top-level `routingDecision` object:
66
+
67
+ ```json
68
+ {
69
+ "profile": "standard",
70
+ "routingDecision": {
71
+ "complexity": "moderate",
72
+ "riskFlags": ["behavior-regression"],
73
+ "routingReasons": [
74
+ "The failure needs root-cause analysis before a bounded fix.",
75
+ "Behavior changes require validation and independent review."
76
+ ],
77
+ "estimatedWorkPackages": 1,
78
+ "openDecisionCount": 0
79
+ }
80
+ }
81
+ ```
82
+
83
+ | Field | Contract |
84
+ |-------|----------|
85
+ | `complexity` | `low` \| `moderate` \| `high`; classify scope and coordination, not perceived coding difficulty |
86
+ | `riskFlags` | Array of concrete signals such as `public-contract`, `cross-layer`, `security-sensitive`, `migration`, `destructive`, `concurrency-state`, `external-dependency`, `unclear-acceptance-criteria`, `broad-test-surface`, `behavior-regression` |
87
+ | `routingReasons` | Non-empty, auditable facts from the request; each reason explains a profile, gate, specialist, skip, or checkpoint choice |
88
+ | `estimatedWorkPackages` | Integer ≥1; count meaningful independently verifiable delivery scopes, not files or agents |
89
+ | `openDecisionCount` | Integer ≥0; unresolved product/architecture/contract choices at routing time |
90
+
91
+ Rubric:
92
+
93
+ - `low`: one bounded scope, explicit acceptance criteria, reversible change, no risk flags or open decisions. Use `light` only when stack verification policy permits.
94
+ - `moderate`: several files or adjacent concerns, a regression/refactor with known boundaries, or one contained risk flag. Usually `standard`.
95
+ - `high`: cross-layer/public-contract work, migration/destructive/security/concurrency risk, broad test surface, multiple work packages, or unclear acceptance criteria. Usually `full`.
96
+ - Increase the profile when risk, open decisions, or required checkpoints demand it; do not lower complexity merely because the implementation is familiar.
97
+ - Do not write generic reasons such as “standard by default.” Name the observed signal and the routing consequence.
98
+
99
+ Existing pipelines without `routingDecision` remain valid; routers emit it for new pipelines. The block is documentary routing evidence in P0 and does not change hook behavior.
100
+
101
+ ## Metrics lifecycle
102
+
103
+ For local metrics policy and the `metrics.json` ledger, see **agent-task-metrics**. The orchestration runtime records `task_started` and one `attempt_started` before each invocation; the hook records host-clock terminal and human-gate events. Keep active attempt identities in `status.json.activeAttempts` so parallel completions can be bound safely.
104
+
105
+ Do not calculate durations in agents. For parallel steps, never attribute a stop using `currentAgent` alone: use a stable runtime identity, the sole active attempt, or an explicit receipt marked with fallback confidence. An unattributable stop with in-flight attempts never returns bare `{}` — the hook repairs the binding (payload agent → sole unrecorded slot → `currentAgent`) with `attributionConfidence: "fallback"`, or emits a deterministic resume handoff. See **agent-task-metrics** § Parallel waves.
106
+
107
+ ## Artifact context index and receipts
108
+
109
+ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. The full schema and completion conventions live in **agent-artifact-contracts**.
110
+
111
+ - Read the manifest before broad prior-artifact discovery. Each step receives authoritative input entry IDs, owns named output entry IDs, and finishes with one terminal receipt linked to AC/task IDs.
112
+ - Markdown remains detailed evidence; the manifest points to authoritative paths and records producer, status, timestamps, outcome, and evidence paths.
113
+ - Agents upsert only the items they own in `manifest.artifacts[]` and preserve all foreign items in that array. Parallel agents use distinct IDs; the parent/orchestrator serializes manifest merges. The top-level array key is `artifacts` — not `entries`; see `agent-artifact-contracts.md` for the schema callout.
114
+ - The orchestration runtime/hook is the single writer for `status.json` lifecycle fields and `metrics.json`. Agents read status for eligibility but never rewrite unrelated state, gate, retry, attempt, timestamp, or metrics fields.
115
+ - Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
116
+
117
+ ## Plan revision (replanning)
118
+
119
+ Replanning is a **named, auditable operation** — never a silent reorder. Trigger it when an evaluation oracle fails twice on the same task, when scope or requirements change, or when a previously unknown dependency/consumer is discovered. Procedure: append `decision: replan rev N → N+1` (with the reason) to `.memlog.md`, update `decomposition.md` (task add/remove or dependency change) and any optional plan fields, then **re-run the affected gate**. Scope-changing revisions return to the human gate.
120
+
121
+ ## Context budget & checkpoint/resume
122
+
123
+ Work in bounded waves (one artifact class across the target surface); mechanical waves (generation, embed sync) are delegated to repo scripts rather than spent on tokens. **Checkpoint** each completed wave to `.memlog.md` (`## <date>` + an `event:` line) and record the produced paths on the `implementation` manifest entry (`authoritativePaths`). A resumed run (e.g. `/task-continue`) reads `artifact-manifest.json` + `.memlog.md` and continues at the first stage whose exit criteria are unmet — never re-derive state from the chat. See **context-and-iteration** for the budget, checkpoint, resume, and refinement loop.
124
+
125
+ ## Self-review & context hygiene
126
+
127
+ Each producing agent runs a **pre-receipt self-review** of its own output — goal/AC coverage, evidence presence, and alignment/drift — **before** it emits its terminal receipt. It is a producer-side step, **not** a new pipeline agent or step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
128
+
129
+ - **Context loss vs excess/noise.** *Loss* = a dropped/misattributed AC or constraint, a stale plan vs the current request, a forgotten prior decision. *Excess/noise* = irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk.
130
+ - **Re-anchor.** On detected drift, return the run to the framed task: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Re-anchor is a **trigger source of the existing `plan-graph` `replan`** — no second orchestrator, no `status.json`/`metrics.json` field.
131
+ - **Recording & ratchet.** The producer writes a `## Self-review` block in the artifact it owns; the correction lives only in `.memlog.md` (hook-only lifecycle preserved). No self-review, context-health pass, or re-anchor for `bounded`/`spike` tasks (or the `light` profile) — ratchet up for `standard`/`architectural`, never down past a required verification gate. See the requestable `quality/self-review-and-context-hygiene` contract — including the optional rule-improvement loop (append wrong-turn signals to `.ai.local/signals.jsonl` and run `.ai.local/scripts/rule-improver.mjs`) when that script exists.
132
+
133
+ ## status.json (pipeline mode)
134
+
135
+ ```json
136
+ {
137
+ "slug": "...",
138
+ "intent": "feature",
139
+ "pipelineIndex": 0,
140
+ "currentAgent": "task-analyst",
141
+ "phase": "executing",
142
+ "state": "in_progress",
143
+ "awaitingHumanGate": false,
144
+ "activeAttempts": {},
145
+ "lastCompletedAttempt": null,
146
+ "parallelCompleted": [],
147
+ "parallelOutcomes": {}
148
+ }
149
+ ```
150
+
151
+ | Field | Meaning |
152
+ |-------|---------|
153
+ | `activeAttempts` | Transient timing bridge keyed by `attemptId` |
154
+ | `lastCompletedAttempt` | Diagnostic pointer to the latest finished attempt |
155
+ | `parallelCompleted` | Agents that have stopped in the current parallel step |
156
+ | `parallelOutcomes` | Per-agent `{ outcome, attemptId, confidence }` for the current parallel join; cleared when the step/wave advances, retained across a retry of the same step |
157
+ | `joinedSlots` | Persistent satisfaction ledger `"<stepIndex>:<agent>" → { agent, stepIndex, attemptId, outcome }`; the ready-queue history (graph mode) |
158
+ | `waveSteps` | Step indexes of the in-flight wave; cleared on wave completion |
159
+ | `waveId` | `<runId>:wave-<firstStepIndex>` for the in-flight wave |
160
+ | `graphMode` | Cached `steps.some(s => Array.isArray(s.dependsOn))` |
161
+ | `blockedSteps` | Steps that ended `blocked`, excluded from the ready set until a human-approved retry |
162
+
163
+ Additional states: `blocked` — a step (or a parallel producer) cannot proceed; in graph mode independent ready steps still dispatch, and a fully-gated run emits a deterministic notice (no stall).
164
+
165
+ | state | Meaning |
166
+ |-------|---------|
167
+ | `in_progress` | Current step running |
168
+ | `completed` | Current step done; hook advances |
169
+ | `awaiting_approval` | Human gate; wait for `/task-continue` |
170
+ | `changes_requested` | Reviewer blocked; re-run developer (`retryAfterFix`) |
171
+ | `validation_failed` | build-verifier failed; re-run developer then build-verifier |
172
+ | `blocked` | Pipeline / step cannot proceed (e.g. `pipeline_parse_error`, completion of a parallel step whose producer's receipt was missing — see `agent-artifact-contracts.md` § Completion receipts) |
173
+ | `awaiting_artifact_receipt` | Producer stopped but the bound or assigned-output receipt was missing or stale; hook keeps the attempt active and does not advance. See `agent-artifact-contracts.md` (Schema field name + Receipt binding) for the silent-bug class that lands here. |
174
+
175
+ On each `subagentStop`, the hook reconciles `status.state` from the completing producer's terminal `artifact-manifest.json` receipt (`completed` \| `changes_requested` \| `validation_failed`) when agents left lifecycle fields untouched. Parent orchestrators must wait for that handoff before invoking the next step.
176
+
177
+ ## Pipeline step options
178
+
179
+ | Field | Use |
180
+ |-------|-----|
181
+ | `skipIf` | `debugger.fixed` / `ci-investigator.resolved` — hook skips step when artifact says fix applied |
182
+ | `parallel: true` | `agent` is array — invoke **all** agents in one parent turn; each appends to `parallelCompleted` |
183
+ | `id` | Stable step handle; the recommended value is the decomposition task ID when 1:1. Unique vs other ids and `taskIds`. |
184
+ | `dependsOn` | Step `id`s / `taskIds` that must be satisfied before dispatch. Optional; **any** occurrence switches the hook to graph mode. |
185
+ | `taskIds` | Decomposition task IDs the step realizes — the shared vocabulary with `decomposition.md` and a `dependsOn` alias. |
186
+ | `writeScopes` | Declared write surface for conflict analysis (see **plan-graph** § Conflict model). |
187
+ | `scope` | e.g. `unit-in-dev`, `e2e-only` — passed to developer/qa |
188
+ | `model` | `cheap` \| `standard` \| `strong` — optional tier override |
189
+
190
+ ## Rules (strict)
191
+
192
+ 1. **`/task` always starts with task-router** (except user says "skip router" with documented pipeline).
193
+ 2. Read `pipeline.json` before every subagent invocation.
194
+ 3. One role per Task call — **except** parallel steps: multiple Task calls in one message.
195
+ 4. **Never** skip `humanGates` without `/task-continue` or explicit user approval.
196
+ 5. Persist handoffs to disk (`brief.md`, `decomposition.md`, `debug-report.md`, `validation-report.md`, `architecture.md`, `migration-plan.md`, `ci-report.md`, `a11y-review.md`, `perf-report.md`, `security-review.md`, `api-contract-review.md`, `unit-test-plan.md`, `documentation.md`, `review.md`, `mockup-review.md`, `ux-design.md`) and update the producer-owned terminal receipt in `artifact-manifest.json`.
197
+ 6. On `changes_requested` from reviewers: hook sets `retryAfterFix` → developer → same reviewer. Exception: embedded `mockup-reviewer` FAIL (`changes_requested` while the completed/current agent is `mockup-reviewer`) → `awaiting_approval` / `/task-continue` only — do **not** `retryAfterFix` to developer. A `mockup-reviewer` verdict `mockup-change-requested` (a defect whose fix belongs in the design source, not the implementation) routes the same way — `awaiting_approval`, no developer retry.
198
+ 7. On `validation_failed` from `build-verifier`: hook sets `retryAfterFix: build-verifier` → developer → build-verifier.
199
+ 8. When all steps complete, suggest `/technical-retro <slug>`.
200
+ 9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
201
+ 10. **Persist the verbatim original prompt.** Every `/task` and every routed work request writes the user's raw prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). It is not a manifest `artifacts[]` body — register the path on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact. Also append every **subsequent user-authored** prompt for the same slug — a new user message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer — to the append-only `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; never rewrite or duplicate an entry; never log machine-generated hook `followup_message` or empty/argument-less invocations). Register its path on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
202
+ 11. **Answer the user in the resolved dialogue language for the whole task.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English) and pass it to every step; `/task-continue` keeps it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See **language-policy**.
203
+ 12. **Invoke the ready set, and never advance before reconciliation.** In graph mode the hook computes the ready queue; invoke exactly the handoff's agent list (a wave in one assistant turn, multiple Task calls) and do not start any next step from your own reasoning until the hook records the join and emits the next handoff. The wave is the join unit; `status.joinedSlots` is the satisfaction ledger.
204
+ 13. **Only a proven conflict-free set is `parallel: true`.** Disjoint declared `writeScopes`, distinct agents, distinct `artifactOutputIds`, no shared lifecycle file; `mockup-reviewer` is never parallel (its FAIL gate is serial). See **plan-graph** § Conflict model.
205
+
206
+ ## Team artifact I/O (Cursor Shell sandbox)
207
+
208
+ - **Persist the original prompt.** For **every** task — `/task` or a routed work request — write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). The header is additive provenance only; the fenced text block holds the user's words unchanged. It is not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
209
+ - **Append follow-up prompts.** When a user-authored prompt arrives for an active slug (new message, `/task-continue` args, gate feedback, clarification), append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` — `seq` = current max + 1, create on first append, never rewrite or duplicate an entry, never touch `prompt.md`. Exclude hook `followup_message` and empty/argument-less invocations. Not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
210
+ - **Answer in the resolved dialogue language.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins) and reuse it for every user-facing message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and artifacts stay **English**. See **language-policy**.
211
+ - Create/update team task dirs with the **Write** tool (parents are created automatically). Do **not** bootstrap slug dirs with Shell `mkdir -p` — default sandbox returns `Operation not permitted` (worse on macOS Desktop/Documents with TCC).
212
+ - If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
213
+ - Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
214
+
215
+ ## Invoking agents
216
+
217
+ Use Task tool or `/agent-name`. Pass: slug, artifact paths, step `scope` if set.
218
+
219
+ ### Model when invoking (Task)
220
+
221
+ 1. Read `steps[i].model` if present; else use the agent’s frontmatter `model` (see `agents/README.md` matrix).
222
+ 2. Map abstract tiers:
223
+ - **`cheap`** → pass Task `model: "fast"` when the tool accepts it (or rely on agent `fast`).
224
+ - **`standard`** → omit Task `model` (frontmatter `inherit` / mid default).
225
+ - **`strong`** → **never** pass `fast`; rely on agent pin or parent Max model.
226
+ 3. Parallel steps: apply the step-level `model` to **each** agent in the array (or omit → each agent’s own frontmatter).
227
+
228
+ After each agent completes, verify its terminal manifest receipt, then let the orchestration runtime/hook reconcile `status.json` (`completed`, a blocking outcome, or `awaiting_approval`) from that receipt. Do not ask the agent to mutate shared lifecycle fields, and do not invoke the next specialist until the hook has written the handoff / updated `status.json`.
229
+
230
+ ## Legacy mode
231
+
232
+ If `pipeline.json` is missing, fall back to fixed phases: analysis → development → review → testing. Hook supports both.
233
+
234
+ ## Skip pipeline when
235
+
236
+ Do **not** run `/task` + router for:
237
+
238
+ - Pure questions («как работает X» (how does X work), «объясни» (explain)) — prefer agent **`codebase-analyzer`** for deep traces; inline OK for trivial one-liners. <!-- i18n-keep: E4 -->
239
+ - Typo / one-file fix / trivial config with no architecture risk.
240
+ - User explicitly says «без pipeline» (no pipeline), «просто сделай» (just do it), or continues an active slug. <!-- i18n-keep: E4 -->
241
+ - Single-line `docs-only` with no code impact.
242
+
243
+ Borderline work requests — see **agent-team-intake**.
244
+
245
+ ## Auto-detection (optional)
246
+
247
+ When user describes a **non-trivial task** (not a question), suggest `/task <message>` or run router if they agree.
248
+
249
+ ## Preset authoring
250
+
251
+ When the work edits `packages/ai-rules/presets/**` (or dogfood `.cursor/` sync of presets), follow meta-rules: **preset-goals**, **preset-pr-checklist**, **preset-twin-sync**, **preset-layering**, **preset-token-budget**, **preset-no-cross-stack-leakage**.
252
+
253
+ ## Stack notes
254
+
255
+ ### Roles
256
+
257
+ | Agent | App / prod writes | Typical intent |
258
+ |-------|-------------------|----------------|
259
+ | `task-router` | no (team only) | Every `/task` — writes `pipeline.json` |
260
+ | `task-analyst` | no (team only) | feature, refactor, test-only, a11y, docs-only, migration, ux-design, spec-gen |
261
+ | `solution-architect` | no (team only) | spike, complex cross-layer feature |
262
+ | `migration-specialist` | no (team only) | migration — phased upgrade plan |
263
+ | `api-contract-reviewer` | no (team only) | new/changed backend API contracts |
264
+ | `debugger` | minimal fix | bugfix |
265
+ | `ci-investigator` | minimal CI fix | ci-fix — minimal CI repair |
39
266
  | `feature-developer` | yes | feature, bugfix, refactor, migration, a11y |
40
- | `build-verifier` | no | lint/type-check/unit gate after developer |
41
- | `accessibility-reviewer` | no | a11y, UI-heavy feature |
42
- | `performance-auditor` | no | perf-audit, perf-sensitive feature |
267
+ | `build-verifier` | no (team only) | lint/type-check/unit gate after developer |
268
+ | `accessibility-reviewer` | no (team only) | a11y, UI-heavy feature |
269
+ | `performance-auditor` | no (team only) | perf-audit, perf-sensitive feature |
43
270
  | `mockup-reviewer` | no (team only) | mockup-review, feature/refactor/spike/spec-gen with `figma.com` |
44
- | `code-reviewer` | no | most pipelines, review-only |
45
- | `security-reviewer` | no | auth, forms, sensitive data |
271
+ | `code-reviewer` | no (team only) | most pipelines, review-only |
272
+ | `security-reviewer` | no (team only) | auth, forms, sensitive data |
46
273
  | `qa-tester` | tests only | feature, bugfix, test-only |
47
- | `unit-test-planner` | no | unit-only — coverage plan |
274
+ | `unit-test-planner` | no (team only) | unit-only — coverage plan |
48
275
  | `unit-test-generator` | tests only | unit-only — spec generation |
49
276
  | `unit-test-healer` | tests only | failing/flaky unit tests |
50
- | `playwright-test-planner` | no | e2e scenario planning |
51
- | `playwright-test-generator` | tests only | e2e spec generation |
52
- | `playwright-test-healer` | tests only | failing/flaky e2e fixes |
53
- | `tech-writer` | docs only | docs-only, feature/migration docs |
54
- | `openspec-author` | `openspec/**` only | openspec-change (`/opsx:propose`, `/opsx:apply`, `/opsx:archive`, openspec refresh) |
277
+ | `playwright-test-planner` | e2e plans | e2e scenario planning |
278
+ | `playwright-test-generator` | e2e tests | e2e spec generation |
279
+ | `playwright-test-healer` | e2e fixes | failing/flaky e2e fixes |
280
+ | `tech-writer` | docs / team | docs-only, feature/migration docs |
55
281
 
56
- Full prompts: `.claude/agents/*.md`. Artifact conventions: `.ai.local/team/README.md`; schema SoT: **agent-artifact-contracts**.
282
+ **Cursor frontmatter:** all team pipeline agents use `readonly: false` so they can write `.ai.local/team/**`. Production/app restrictions live in the agent prompt body — do **not** set `readonly: true` (Cursor blocks *all* file writes, including team artifacts).
283
+
284
+ Full prompts: `.cursor/agents/*.md`. Artifact conventions: `.ai.local/team/README.md`; schema SoT: **agent-artifact-contracts**.
57
285
 
58
286
  **Behavioral UX:** `task-analyst` loads requestable skill `ux-design` for standalone intent `ux-design` and embedded required-signal / advisory UI AC. No `ux-designer` agent in v1.
59
287
 
288
+ **Product specs:** When `/task` or `/spec-start` touches pages/features/`docs/specs`: if INDEX exists and no generate intent → instruct next agent to load requestable **`product-specs`** (consume; soft-fail; never invent). If generate/bootstrap/`spec-gen` → load **`product-specs-authoring`** + skill **`spec-authoring`** inside **task-analyst** (not a separate pipeline step); pass created spec paths + INDEX diff in handoff; human gate must approve before feature-developer. No-op if INDEX absent and no author intent.
289
+
290
+ ### UI / Figma parity routing
291
+
292
+ A `mockup-reviewer` verdict **`mockup-change-requested`** (a Figma-side defect whose fix belongs in Figma) routes exactly like the embedded `mockup-reviewer` FAIL: receipt `changes_requested`, artifact `blocked` → the hook sets `awaiting_approval` (`/task-continue`), and there is **no** `feature-developer` retry. Standalone report → receipt `completed`. The human action is named in the `## Mockup change requests` handoff (fix Figma → re-run `mockup-review` → new `specVersion` → `/task-continue`). This adds **no** hook/gate/retry change.
293
+
294
+ When editing `packages/ai-rules/presets/**`, follow **`tooling-and-review/preset-goals.md`** + **`tooling-and-review/preset-pr-checklist.md`** (+ twin-sync / layering / token-budget / leakage meta-rules).
295
+
60
296
  ## Dynamic pipeline
61
297
 
62
298
  ```mermaid
@@ -107,7 +343,7 @@ Each producing agent runs a **pre-receipt self-review** of its own output — go
107
343
 
108
344
  - **Context loss vs excess/noise.** *Loss* = a dropped/misattributed AC or constraint, a stale plan vs the current request, a forgotten prior decision. *Excess/noise* = irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk.
109
345
  - **Re-anchor.** On detected drift, return the run to the framed task: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Re-anchor is a **trigger source of the existing `plan-graph` `replan`** — no second orchestrator, no `status.json`/`metrics.json` field.
110
- - **Recording & ratchet.** The producer writes a `## Self-review` block in the artifact it owns; the correction lives only in `.memlog.md` (hook-only lifecycle preserved). No self-review, context-health pass, or re-anchor for `bounded`/`spike` tasks (or the `light` profile) — ratchet up for `standard`/`architectural`, never down past a required verification gate. See the requestable `quality/self-review-and-context-hygiene` contract.
346
+ - **Recording & ratchet.** The producer writes a `## Self-review` block in the artifact it owns; the correction lives only in `.memlog.md` (hook-only lifecycle preserved). No self-review, context-health pass, or re-anchor for `bounded`/`spike` tasks (or the `light` profile) — ratchet up for `standard`/`architectural`, never down past a required verification gate. See the requestable `quality/self-review-and-context-hygiene` contract — including the optional rule-improvement loop (append wrong-turn signals to `.ai.local/signals.jsonl` and run `.ai.local/scripts/rule-improver.mjs`) when that script exists.
111
347
 
112
348
  ## Context budget & checkpoint/resume
113
349
 
@@ -143,7 +379,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
143
379
  | state | Meaning |
144
380
  |-------|---------|
145
381
  | `in_progress` | Current step running |
146
- | `completed` | Current step done; hook or orchestrator advances |
382
+ | `completed` | Current step done; hook advances |
147
383
  | `awaiting_approval` | Human gate; wait for `/task-continue` |
148
384
  | `changes_requested` | Reviewer blocked; re-run developer (`retryAfterFix`) |
149
385
  | `validation_failed` | build-verifier failed; re-run developer then build-verifier |
@@ -154,10 +390,10 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
154
390
 
155
391
  | Field | Use |
156
392
  |-------|-----|
157
- | `skipIf` | `debugger.fixed` / `ci-investigator.resolved` |
158
- | `parallel: true` | `agent` array — invoke all in one parent turn |
159
- | `scope` | e.g. `unit-in-dev`, `e2e-only` |
160
- | `model` | `cheap` \| `standard` \| `strong` — optional tier override |
393
+ | `skipIf` | `debugger.fixed` / `ci-investigator.resolved` — hook skips step when artifact says fix applied |
394
+ | `parallel: true` | `agent` is array — invoke **all** agents in one parent turn; each appends to `parallelCompleted` |
395
+ | `scope` | e.g. `unit-in-dev`, `e2e-only` — passed to developer/qa |
396
+ | `model` | `cheap` \| `standard` \| `strong` — optional tier override (see below) |
161
397
 
162
398
  ## Parallel scheduling (graph mode)
163
399
 
@@ -173,20 +409,20 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
173
409
 
174
410
  1. **`/task` always starts with task-router** (except user says "skip router" with documented pipeline).
175
411
  2. Read `pipeline.json` before every subagent invocation.
176
- 3. One role per subagent call — **except** parallel steps.
412
+ 3. One role per Task call — **except** parallel steps: multiple Task calls in one message.
177
413
  4. **Never** skip `humanGates` without `/task-continue` or explicit user approval.
178
- 5. Persist handoffs including `validation-report.md`, `mockup-review.md`, and `ux-design.md` when produced (write files; do not rely on Shell `mkdir` alone).
179
- 6. On `changes_requested`: hook sets `retryAfterFix` → developer → same reviewer. Exception: embedded `mockup-reviewer` FAIL → `awaiting_approval` / `/task-continue` only — do **not** retry `feature-developer`. A `mockup-reviewer` verdict `mockup-change-requested` (a defect whose fix belongs in the design source, not the implementation) routes the same way — `awaiting_approval`, no developer retry.
180
- 7. On `validation_failed`: hook sets `retryAfterFix: build-verifier` → developer → build-verifier.
414
+ 5. Persist handoffs to disk (including `mockup-review.md` and `ux-design.md` when those producers ran) and update the producer-owned terminal receipt in `artifact-manifest.json`; Markdown remains detailed evidence.
415
+ 6. On `changes_requested` from reviewers: hook sets `retryAfterFix` → developer → same reviewer. Exception: embedded `mockup-reviewer` FAIL → `awaiting_approval` / `/task-continue` only — do **not** retry `feature-developer`.
416
+ 7. On `validation_failed` from `build-verifier`: hook sets `retryAfterFix: build-verifier` → developer → build-verifier.
181
417
  8. When all steps complete, suggest `/technical-retro <slug>`.
182
- 9. If `autoChain: false`, manual step only.
418
+ 9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
183
419
  10. **Persist the verbatim original prompt.** Every `/task` and every routed work request writes the user's raw prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). Not a manifest `artifacts[]` body — register the path on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact. Also append every **subsequent user-authored** prompt for the same slug — a new user message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer — to the append-only `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; never rewrite or duplicate an entry; never log machine-generated hook `followup_message` or empty/argument-less invocations). Register its path on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
184
420
  11. **Answer the user in the resolved dialogue language for the whole task.** Resolve once at task start
185
421
  (`.ai.local` `## Language` → prompt language → English) and pass it to every step; `/task-continue` keeps
186
422
  it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See
187
423
  **language-policy**.
188
424
 
189
- ## Team artifact I/O
425
+ ## Team artifact I/O (Cursor Shell sandbox)
190
426
 
191
427
  - **Persist the original prompt.** For **every** task — `/task` or a routed work request — write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). The header is additive provenance only; the fenced text block holds the user's words unchanged. Not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
192
428
  - **Append follow-up prompts.** When a user-authored prompt arrives for an active slug (new message, `/task-continue` args, gate feedback, clarification), append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` — `seq` = current max + 1, create on first append, never rewrite or duplicate an entry, never touch `prompt.md`. Exclude hook `followup_message` and empty/argument-less invocations. Not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
@@ -196,26 +432,28 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
196
432
  `.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and
197
433
  artifacts stay **English**. See **language-policy**.
198
434
 
199
- Create `.ai.local/team/tasks/<slug>/**` by writing files (Write/Edit). Avoid Shell-only `mkdir` as the bootstrap step.
435
+ - Create/update `.ai.local/team/tasks/<slug>/**` with the **Write** tool (parents are created automatically). Do **not** bootstrap slug dirs with Shell `mkdir -p` — default sandbox returns `Operation not permitted` (worse on macOS Desktop/Documents with TCC `com.apple.macl`).
436
+ - If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
437
+ - Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
200
438
 
201
439
  ## Invoking agents
202
440
 
203
- Use the available Claude Code subagent / Agent tool. Pass: slug, artifact paths, step `scope` if set.
441
+ Use Task tool or `/agent-name`. Pass: slug, artifact paths, step `scope` if set.
204
442
 
205
- ### Model when invoking
443
+ ### Model when invoking (Task)
206
444
 
207
445
  1. Read `steps[i].model` if present; else use the agent’s frontmatter `model` (see `agents/README.md` matrix).
208
- 2. Map abstract tiers for the Agent tool `model` param:
209
- - **`cheap`** → `haiku` (or rely on frontmatter `fast`).
210
- - **`standard`** → omit / `sonnet` / inherit.
211
- - **`strong`** → `opus` (matches strong-agent frontmatter). Prefer explicit per-invocation `model` when frontmatter pins are flaky.
212
- 3. Parallel steps: apply the step-level `model` to each agent (or omit → each frontmatter).
446
+ 2. Map abstract tiers:
447
+ - **`cheap`** → pass Task `model: "fast"` when the tool accepts it (or rely on agent `fast`).
448
+ - **`standard`** → omit Task `model` (frontmatter `inherit` / mid default).
449
+ - **`strong`** → **never** pass `fast`; rely on agent pin (`claude-opus-4-8[effort=high]`) or parent Max model. If Task allows an explicit model ID from the allowed list, prefer the strong agent’s frontmatter ID.
450
+ 3. Parallel steps: apply the step-level `model` to **each** agent in the array (or omit → each agent’s own frontmatter).
213
451
 
214
452
  After each agent completes, verify its terminal manifest receipt, then let the orchestration runtime/hook reconcile `status.json` (`completed`, a blocking outcome, or `awaiting_approval`) from that receipt. Do not ask the agent to mutate shared lifecycle fields, and do not invoke the next specialist until the hook has written the handoff / updated `status.json`.
215
453
 
216
454
  ## Legacy mode
217
455
 
218
- If `pipeline.json` is missing, fall back to fixed phases: analysis → development → review → testing.
456
+ If `pipeline.json` is missing, fall back to fixed phases: analysis → development → review → testing. Hook supports both.
219
457
 
220
458
  ## Skip pipeline when
221
459
 
@@ -234,6 +472,4 @@ When user describes a **non-trivial task** (not a question), suggest `/task <mes
234
472
 
235
473
  ## Preset authoring
236
474
 
237
- **Product specs:** When `/task` or `/spec-start` touches pages/features/`docs/specs`: if INDEX exists and no generate intent → instruct next agent to load requestable **`product-specs`** (consume; soft-fail; never invent). If generate/bootstrap/`spec-gen` → load **`product-specs-authoring`** + skill **`spec-authoring`** inside **task-analyst** (not a separate pipeline step); pass created spec paths + INDEX diff in handoff; human gate must approve before feature-developer. No-op if INDEX absent and no author intent.
238
-
239
- When editing `packages/ai-rules/presets/**`, follow **`tooling-and-review/preset-goals.md`** + **`tooling-and-review/preset-pr-checklist.md`** (+ twin-sync / layering / token-budget / leakage).
475
+ When the work edits `packages/ai-rules/presets/**` (or dogfood `.cursor/` sync of presets), follow meta-rules: **preset-goals**, **preset-pr-checklist**, **preset-twin-sync**, **preset-layering**, **preset-token-budget**, **preset-no-cross-stack-leakage**.
@@ -11,51 +11,13 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
11
11
 
12
12
  1. **Probe** — before answering, run `ls -la .ai.local` from the repository root.
13
13
  2. **Walk** — if `.ai.local/` exists at multiple levels (monorepo), read every level from root to leaf. **Deeper wins** in practice: more specific rules appear later in the assembled context and take precedence.
14
- 3. **Apply** — treat every `.ai.local/rules/*.md` and `.ai.local/conventions.md` as a higher-priority rule for this repo. Do **not** load `.ai.local/team/**` as rules (shared pipeline artifacts). The block below ("Authoring `.ai.local/rules/*.md`") defines the conventions.
15
- 4. **Activate seeds** — if `.ai.local/rules-library/<seed>.md` exists and matches the current task scope, treat it as the applicable local rule and tell the owner to move it into `.ai.local/rules/`. Seeds are **staged-inactive** templates shipped by `init` (e.g. `router-pages`, `no-react-fc`, `storybook-ui-quality-gate`, `component-child-decomposition`); they do **not** apply until moved.
14
+ 3. **Apply** — treat every `.ai.local/rules/*.md` and `.ai.local/conventions.md` as a higher-priority rule for this repo. Do **not** load `.ai.local/team/**` as rules (shared pipeline artifacts).
15
+ 4. **Activate seeds** — if `.ai.local/rules-library/<seed>.md` exists and matches the current task scope, treat it as the applicable local rule and tell the owner to move it into `.ai.local/rules/`. Seeds are **staged-inactive** until moved. Do not read the whole library up front; read a seed body only when the task matches its name.
16
16
  5. **Conflict** — if a local rule conflicts with a preset rule, **the local rule wins**. If a local rule body contains `override: kill <preset-rule-name>`, drop that preset rule from your context window entirely.
17
17
  6. **Acknowledge** — when answering a user question, briefly state which `.ai.local/` rules apply to the current task (one line is enough). Format: `Using .ai.local: <rule-name>(, <rule-name>)*`. If no `.ai.local/` exists, do NOT mention this rule.
18
- 7. **Language** — reply to the user in their **native language**: read the `## Language` section of
19
- `.ai.local/conventions.md` (nearest `.ai.local` first); if unset, infer from the prompt language; else
20
- English. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
18
+ 7. **Language** — reply to the user in their **native language**: read the `## Language` section of `.ai.local/conventions.md` (nearest `.ai.local` first); if unset, infer from the prompt language; else English. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
19
+ 8. **Re-read** — before answering a question that touches a local rule, re-read that file. A file added mid-session needs a new session to be reliable.
21
20
 
22
21
  If `.ai.local/` does not exist → **no-op**, do not error. Do not produce any log line about its absence.
23
22
 
24
- ## Authoring `.ai.local/rules/*.md` (consumer-side reference)
25
-
26
- Each `.ai.local/rules/<name>.md` is a plain-markdown rule body. The model parses it as:
27
-
28
- - Lines before `## Body` are scope metadata. Only `glob:` / `globs:` / `override:` lines are recognised.
29
- - Everything from `## Body` onward is the rule body.
30
- - `glob: always` → always-on. Counts against your context budget.
31
- - `globs: <comma-separated globs>` → on-demand; applies only when matching files are in focus.
32
- - `override: kill <preset-rule-name>` → drop that preset rule from context.
33
-
34
- Keep files ≤ 120 lines. Match the style of preset rules (short sections, bullets, code examples).
35
-
36
- ## What `init` overwrites vs preserves
37
-
38
- `init` manages the tool trees; they are **not** the home of durable project config.
39
-
40
- | Overwritten / merged by `init` | Preserved |
41
- |---|---|
42
- | `.cursor/**`, `.claude/**`, `.mavis/**`, `.opencode/**` (rules, agents, skills, commands, hooks) | `.ai.local/**` |
43
- | root `AGENTS.md` (from `REPO_AGENTS.md`) | `docs/specs/**`, `openspec/**` |
44
- | tool MCP config (`.cursor/mcp.json`; `opencode.json` — `mcp` merged, other blocks may be rewritten) | repo-root `.mcp.json`, `.ai/context/**`, `.ai.local/rules/**` |
45
-
46
- Put durable project-owned agent config and authoritative specs **outside** the tool trees (`.ai.local/`, `.ai/context/`, repo-root `.mcp.json`). After any re-init, verify consumer-owned blocks you added to a managed file (e.g. `opencode.json` `instructions` / `permission.bash`) survived.
47
-
48
- ## Limitations (read this)
49
-
50
- - Cursor, Claude, Mavis, and OpenCode do **not** natively read `.ai.local/`. This rule is a **prompt-only** mechanism: it asks you, the model, to read and apply the files. Reliability is high but not 100%.
51
- - If a user adds a file to `.ai.local/` mid-session, **restart the session** to be sure it is picked up.
52
- - "Priority" is **contextual**, not enforced. Always re-read the local rule before answering questions that touch it.
53
- - This rule is **not** session-start (Claude convention); it loads on touch of `.ai.local/**` or `AGENTS.md`/`CLAUDE.md`. The "every turn" mandate is enforced by the body text, not by Cursor/Claude loading semantics.
54
-
55
- ## Pointers
56
-
57
- - Authoring guide: `docs/LOCAL-OVERLAY.md` in the `@bonesofspring/ai-rules` package.
58
- - Living gotchas: `.ai.local/conventions.md`. Pipeline artifacts: `.ai.local/team/` (do not load as rules).
59
- - Staged seeds: `.ai.local/rules-library/**` (move a matching seed into `.ai.local/rules/` to activate).
60
- - Root `AGENTS.md` reinforces this rule with a `MANDATORY` section.
61
- - Language policy: `language-policy` (native dialogue; English development/artifacts).
23
+ Authoring format, what `init` overwrites, and the full limitation list live in `docs/LOCAL-OVERLAY.md` in the `@bonesofspring/ai-rules` package. Load that file when writing `.ai.local/rules/` or changing install scope — not on an ordinary turn.
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  description: Anti-sycophancy discipline for code generation and review — VERIFY, failure modes, UNTESTED, honest status. Load when writing or changing code.
3
- paths:
4
- - app/src/**/*.{ts,tsx}
3
+ paths: []
5
4
  ---
6
5
 
7
6
  <!-- shared-core: quality/anti-sycophancy-discipline.md -->
@@ -71,6 +71,6 @@ Style enforcement (formatter / linter / post-change gate) lives in the **stack t
71
71
  ## Stack notes
72
72
 
73
73
  - Before adding a new UI control, check existing UI code and project packages.
74
- - Public API: index/barrel files and explicitly exported entities (`public-imports.mdc`, `layer-barrel-exports.mdc`).
74
+ - Public API: index/barrel files and explicitly exported entities (`architecture/public-imports.md`, `architecture/layer-barrel-exports.md`).
75
75
  - Allowed examples: shared hook/utility; typing `any`/`unknown`; splitting a large component; CSS tokens instead of “magic” values.
76
- - Lint/stylelint — only **`post-change-lint.mdc`**; ESLint config: `app/eslint.config.mjs`. Disabling a rule (`eslint-disable`) — only **locally** (line/small block) with a short “why” comment. Style prose in domain rules stays thin — prefer ESLint/Stylelint over duplicating formatter recipes.
76
+ - Lint/stylelint — only **`tooling-and-review/post-change-lint.md`**; ESLint config: `app/eslint.config.mjs`. Disabling a rule (`eslint-disable`) — only **locally** (line/small block) with a short “why” comment. Style prose in domain rules stays thin — prefer ESLint/Stylelint over duplicating formatter recipes.
@@ -1,9 +1,6 @@
1
1
  ---
2
- paths:
3
- - .claude/commands/**/*
4
- - .claude/agents/code-reviewer.md
5
- - .claude/skills/code-review/**/*
6
- - .ai.local/team/**/review.md
2
+ description: Requirements for Cursor agents reviewing merge requests
3
+ paths: []
7
4
  ---
8
5
 
9
6
  <!-- shared-core: review/code-review-mr.md -->
@@ -62,23 +59,10 @@ On-demand rule for review flows. **Procedure and output format:** skill `code-re
62
59
 
63
60
  ### UI / Figma parity (web)
64
61
 
65
- When the diff touches UI / layout / styling (paths under `app/src/ui/**`, global layout/CSS/tokens) AND a Figma mockup is referenced in `brief.md` / `decomposition.md` (URL, fileKey, or node id) **or** `mockup-review.md` is present:
62
+ When the diff touches UI / layout / styling (`app/src/ui/**`, global layout / CSS / tokens) and a Figma reference exists (URL, fileKey, or node id in `brief.md` / `decomposition.md`, or `mockup-review.md` is present):
66
63
 
67
- - The `code-reviewer` agent must perform a **detailed, pixel-accurate** comparison of the implementation against the mockup, **across every viewport the project uses** (the `mockup-review` AC-8 / Stack notes set — web buckets ~375 / ~768 / ~1280 small/medium/large — and the Storybook viewport toolbar in this repo). Figma frames via Figma MCP `get_screenshot`; the running app via Playwright MCP / Chrome DevTools MCP at the matching width.
68
- - The comparison is a **per-element parity check** (typography / color / spacing / imagery / states / structure / auto-layout intent) per the `code-reviewer` UI / Figma parity gate. Bind to the `mockup-review.md` `## Design contract` and the **`ui-and-accessibility/design-tokens-binding.md`** discipline (`@sds/tokens-*` / DS components, no raw `#…` / `px` where a token exists).
69
- - Findings: `path:line` + Figma node id + viewport + severity. Emit a `## Figma parity (UI)` section in `review.md`.
70
- - **Storybook visual baselines are not a substitute.** Approving a UI MR on Storybook baselines alone is not acceptable when a Figma reference exists.
71
- - Missing or `unable_to_compare` parity section on a UI-touching MR with a Figma reference → `REQUEST_CHANGES`. Unbound raw values where a token exists (typography / color / spacing / imagery) → `blocker` / `important`. The full gate lives in the `code-reviewer` agent prompt; this rule cross-references it.
72
-
73
- ### UI / Figma parity — post-implementation gate (AC-3 / AC-6 / AC-7 / AC-17)
74
-
75
- When a UI-touching MR has a frozen contract (`.ai.local/team/tasks/<slug>/figma-contract.json`), the parity section runs the same G0..G6 gate as the requestable skill `figma-fidelity` and emits the umbrella `## Figma parity (UI)` section with these 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)`, `## AC coverage`.
76
-
77
- - **Value diff (AC-7):** per node × property, expected (contract) vs rendered/computed actual, using chrome-devtools MCP `getComputedStyle` (or Playwright MCP as substitute). "Compare visually" with no value rows → not acceptable.
78
- - **Structural parity (AC-3):** implemented component tree vs `nodes[]`, 1:1; an unmapped addition → finding; a missing mapped component → `blocker`.
79
- - **Two-way state diff (AC-22):** a state present in the mockup but missing in the implementation → `blocker`; a state required by AC but absent from the mockup → `mockup-change-requested`.
80
- - **Freeze check (AC-17):** re-read the design-source revision; a changed `lastModified`/`version` for the root or a mapped node → `MOCKUP_CHANGED_AFTER_CONTRACT` (`blocker`); do not silently re-baseline.
81
- - **Degradation → `unable_to_compare`:** a degraded mandatory check (browser MCP or Figma MCP down, source revision unknown) → verdict `unable_to_compare` → `REQUEST_CHANGES`, with the named `degraded:` / `blocked:` marker. Never a silent PASS.
64
+ - Run skill **`figma-fidelity`** (scope, G0..G6, degradation → `unable_to_compare`) and emit `## Figma parity (UI)` in `review.md`; findings carry `path:line` + Figma node id + viewport + severity.
65
+ - Storybook visual baselines are not a substitute. Missing or `unable_to_compare` parity → `REQUEST_CHANGES`; unbound raw values where a token exists (`ui-and-accessibility/design-tokens-binding.md`) → `blocker` / `important`.
82
66
 
83
67
  ### Spec / docs sync (behaviour change)
84
68
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  description: Design smells (Fowler) and curated GoF patterns for agents. Load when assessing structure, smells, or pattern fit.
3
- paths:
4
- - app/src/**/*.{ts,tsx}
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
- - app/src/**/*.{ts,tsx}
3
+ paths: []
5
4
  ---
6
5
 
7
6
  <!-- shared-core: quality/mcp-usage.md -->