@bonesofspring/ai-rules 0.2.33 → 0.2.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1634) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/bin/cli.js +247 -337
  3. package/bin/lib/fs-utils.js +203 -0
  4. package/bin/lib/merged-config.js +296 -0
  5. package/bin/lib/safe-path.js +7 -3
  6. package/bin/lib/seed-ai-local-team.js +18 -2
  7. package/bin/mavis-install.js +67 -173
  8. package/bin/opencode-install.js +120 -227
  9. package/docs/PRESET-CONTRIBUTION.md +33 -12
  10. package/package.json +16 -2
  11. package/presets/_shared/README.md +3 -1
  12. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +22 -0
  13. package/presets/_shared/core/agent-team/agent-task-metrics.md +12 -1
  14. package/presets/_shared/core/agent-team/agent-team-intake.md +1 -1
  15. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +19 -5
  16. package/presets/_shared/core/agent-team/plan-graph.md +28 -0
  17. package/presets/_shared/core/agent-team/task-classification.md +2 -0
  18. package/presets/_shared/core/architecture/feature-delivery-workflow.md +1 -1
  19. package/presets/_shared/core/meta/preset-no-cross-stack-leakage.md +0 -1
  20. package/presets/_shared/core/meta/preset-pr-checklist.md +6 -2
  21. package/presets/_shared/core/meta/preset-token-budget.md +2 -3
  22. package/presets/_shared/core/meta/preset-twin-sync.md +5 -5
  23. package/presets/_shared/core/quality/self-review-and-context-hygiene.md +11 -0
  24. package/presets/_shared/core/review/mockup-review.md +34 -29
  25. package/presets/claude/android-kotlin/REPO_AGENTS.md +10 -6
  26. package/presets/claude/android-kotlin/agents/build-verifier.md +3 -37
  27. package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -1
  28. package/presets/claude/android-kotlin/agents/debugger.md +1 -1
  29. package/presets/claude/android-kotlin/agents/feature-developer.md +1 -1
  30. package/presets/claude/android-kotlin/agents/openspec-author.md +1 -1
  31. package/presets/claude/android-kotlin/agents/task-analyst.md +2 -2
  32. package/presets/claude/android-kotlin/agents/task-router.md +10 -0
  33. package/presets/claude/android-kotlin/agents/tech-writer.md +1 -1
  34. package/presets/claude/android-kotlin/agents/unit-test-generator.md +1 -1
  35. package/presets/claude/android-kotlin/agents/unit-test-planner.md +1 -1
  36. package/presets/claude/android-kotlin/commands/task-continue.md +1 -1
  37. package/presets/claude/android-kotlin/commands/task.md +1 -1
  38. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +418 -33
  39. package/presets/claude/android-kotlin/rules/api-and-data/networking.md +1 -1
  40. package/presets/claude/android-kotlin/rules/architecture/boundaries.md +2 -2
  41. package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +13 -18
  42. package/presets/claude/android-kotlin/rules/architecture/module-public-api.md +1 -1
  43. package/presets/claude/android-kotlin/rules/architecture/product-specs-authoring.md +1 -0
  44. package/presets/claude/android-kotlin/rules/architecture/product-specs.md +1 -0
  45. package/presets/claude/android-kotlin/rules/architecture/reference-features.md +1 -2
  46. package/presets/claude/android-kotlin/rules/stack/android-app-core.md +2 -2
  47. package/presets/claude/android-kotlin/rules/stack/kotlin-conventions.md +1 -1
  48. package/presets/claude/android-kotlin/rules/testing/ui.md +1 -1
  49. package/presets/claude/android-kotlin/rules/testing/unit.md +2 -2
  50. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +2 -4
  51. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +248 -12
  52. package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +7 -31
  53. package/presets/claude/android-kotlin/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  54. package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +1 -5
  55. package/presets/claude/android-kotlin/rules/tooling-and-review/design-guidance.md +1 -2
  56. package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +1 -2
  57. package/presets/claude/android-kotlin/rules/tooling-and-review/mcp-usage.md +1 -2
  58. package/presets/claude/android-kotlin/rules/tooling-and-review/mockup-review.md +35 -32
  59. package/presets/claude/android-kotlin/rules/tooling-and-review/post-change-build.md +2 -6
  60. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-goals.md +2 -3
  61. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-layering.md +2 -3
  62. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  63. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  64. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-token-budget.md +4 -6
  65. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +7 -8
  66. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-writing-style.md +2 -3
  67. package/presets/claude/android-kotlin/rules/tooling-and-review/technical-retro.md +1 -3
  68. package/presets/claude/android-kotlin/rules/tooling-and-review/ux-design.md +1 -3
  69. package/presets/claude/android-kotlin/rules/ui-and-accessibility/compose.md +1 -1
  70. package/presets/claude/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  71. package/presets/claude/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  72. package/presets/claude/android-kotlin/team/README.md +6 -3
  73. package/presets/claude/go/REPO_AGENTS.md +10 -6
  74. package/presets/claude/go/agents/build-verifier.md +3 -29
  75. package/presets/claude/go/agents/ci-investigator.md +2 -2
  76. package/presets/claude/go/agents/code-reviewer.md +1 -1
  77. package/presets/claude/go/agents/debugger.md +1 -1
  78. package/presets/claude/go/agents/feature-developer.md +1 -3
  79. package/presets/claude/go/agents/openspec-author.md +1 -1
  80. package/presets/claude/go/agents/task-analyst.md +2 -2
  81. package/presets/claude/go/agents/task-router.md +10 -0
  82. package/presets/claude/go/agents/tech-writer.md +1 -1
  83. package/presets/claude/go/commands/task-continue.md +1 -1
  84. package/presets/claude/go/commands/task.md +1 -1
  85. package/presets/claude/go/hooks/chain-team-phases.sh +418 -35
  86. package/presets/claude/go/rules/api-and-data/adapters-driven.md +1 -1
  87. package/presets/claude/go/rules/api-and-data/adapters-driving.md +2 -2
  88. package/presets/claude/go/rules/architecture/boundaries.md +1 -0
  89. package/presets/claude/go/rules/architecture/feature-delivery.md +45 -41
  90. package/presets/claude/go/rules/architecture/product-specs-authoring.md +1 -0
  91. package/presets/claude/go/rules/architecture/product-specs.md +1 -0
  92. package/presets/claude/go/rules/architecture/reference-features.md +37 -21
  93. package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +2 -7
  94. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +77 -40
  95. package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +7 -31
  96. package/presets/claude/go/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  97. package/presets/claude/go/rules/tooling-and-review/code-quality.md +1 -1
  98. package/presets/claude/go/rules/tooling-and-review/code-review.md +1 -6
  99. package/presets/claude/go/rules/tooling-and-review/design-guidance.md +1 -2
  100. package/presets/claude/go/rules/tooling-and-review/go-tooling.md +2 -7
  101. package/presets/claude/go/rules/tooling-and-review/language-policy.md +1 -2
  102. package/presets/claude/go/rules/tooling-and-review/mcp-usage.md +1 -2
  103. package/presets/claude/go/rules/tooling-and-review/post-change-test.md +2 -7
  104. package/presets/claude/go/rules/tooling-and-review/preset-goals.md +2 -3
  105. package/presets/claude/go/rules/tooling-and-review/preset-layering.md +2 -3
  106. package/presets/claude/go/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  107. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  108. package/presets/claude/go/rules/tooling-and-review/preset-token-budget.md +4 -6
  109. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +7 -8
  110. package/presets/claude/go/rules/tooling-and-review/preset-writing-style.md +2 -3
  111. package/presets/claude/go/rules/tooling-and-review/technical-retro.md +1 -6
  112. package/presets/claude/go/skills/ci-investigation/SKILL.md +2 -2
  113. package/presets/claude/go/skills/technical-retro/SKILL.md +13 -2
  114. package/presets/claude/go/team/README.md +6 -3
  115. package/presets/claude/ios-swift/REPO_AGENTS.md +10 -6
  116. package/presets/claude/ios-swift/agents/build-verifier.md +3 -39
  117. package/presets/claude/ios-swift/agents/code-reviewer.md +1 -1
  118. package/presets/claude/ios-swift/agents/debugger.md +1 -1
  119. package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
  120. package/presets/claude/ios-swift/agents/openspec-author.md +1 -1
  121. package/presets/claude/ios-swift/agents/task-analyst.md +2 -2
  122. package/presets/claude/ios-swift/agents/task-router.md +10 -0
  123. package/presets/claude/ios-swift/agents/tech-writer.md +1 -1
  124. package/presets/claude/ios-swift/agents/unit-test-generator.md +1 -1
  125. package/presets/claude/ios-swift/agents/unit-test-planner.md +1 -1
  126. package/presets/claude/ios-swift/agents/xcuitest-test-generator.md +1 -1
  127. package/presets/claude/ios-swift/agents/xcuitest-test-planner.md +2 -2
  128. package/presets/claude/ios-swift/commands/task-continue.md +1 -1
  129. package/presets/claude/ios-swift/commands/task.md +1 -1
  130. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +418 -33
  131. package/presets/claude/ios-swift/rules/api-and-data/networking.md +3 -1
  132. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +58 -9
  133. package/presets/claude/ios-swift/rules/architecture/product-specs-authoring.md +1 -0
  134. package/presets/claude/ios-swift/rules/architecture/product-specs.md +1 -0
  135. package/presets/claude/ios-swift/rules/architecture/reference-features.md +44 -7
  136. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +2 -4
  137. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +248 -12
  138. package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +7 -31
  139. package/presets/claude/ios-swift/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  140. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +1 -5
  141. package/presets/claude/ios-swift/rules/tooling-and-review/design-guidance.md +1 -2
  142. package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +1 -2
  143. package/presets/claude/ios-swift/rules/tooling-and-review/mcp-usage.md +1 -2
  144. package/presets/claude/ios-swift/rules/tooling-and-review/mockup-review.md +35 -32
  145. package/presets/claude/ios-swift/rules/tooling-and-review/post-change-build.md +2 -6
  146. package/presets/claude/ios-swift/rules/tooling-and-review/preset-goals.md +2 -3
  147. package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +2 -3
  148. package/presets/claude/ios-swift/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  149. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  150. package/presets/claude/ios-swift/rules/tooling-and-review/preset-token-budget.md +4 -6
  151. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +7 -8
  152. package/presets/claude/ios-swift/rules/tooling-and-review/preset-writing-style.md +2 -3
  153. package/presets/claude/ios-swift/rules/tooling-and-review/security-ios.md +0 -2
  154. package/presets/claude/ios-swift/rules/tooling-and-review/technical-retro.md +1 -3
  155. package/presets/claude/ios-swift/rules/tooling-and-review/ux-design.md +1 -3
  156. package/presets/claude/ios-swift/rules/tooling-and-review/xcode-tooling.md +1 -5
  157. package/presets/claude/ios-swift/rules/ui-and-accessibility/swiftui.md +2 -1
  158. package/presets/claude/ios-swift/rules/ui-and-accessibility/viewmodels.md +2 -1
  159. package/presets/claude/ios-swift/skills/technical-retro/SKILL.md +13 -2
  160. package/presets/claude/ios-swift/skills/unit-testing/SKILL.md +1 -1
  161. package/presets/claude/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  162. package/presets/claude/ios-swift/team/README.md +6 -3
  163. package/presets/claude/java/REPO_AGENTS.md +10 -6
  164. package/presets/claude/java/agents/build-verifier.md +3 -39
  165. package/presets/claude/java/agents/ci-investigator.md +2 -2
  166. package/presets/claude/java/agents/code-reviewer.md +1 -1
  167. package/presets/claude/java/agents/debugger.md +1 -1
  168. package/presets/claude/java/agents/feature-developer.md +1 -3
  169. package/presets/claude/java/agents/openspec-author.md +1 -1
  170. package/presets/claude/java/agents/task-analyst.md +2 -2
  171. package/presets/claude/java/agents/task-router.md +10 -0
  172. package/presets/claude/java/agents/tech-writer.md +1 -1
  173. package/presets/claude/java/commands/task-continue.md +1 -1
  174. package/presets/claude/java/commands/task.md +1 -1
  175. package/presets/claude/java/hooks/chain-team-phases.sh +418 -35
  176. package/presets/claude/java/rules/api-and-data/adapters-driven.md +2 -1
  177. package/presets/claude/java/rules/api-and-data/adapters-driving.md +3 -2
  178. package/presets/claude/java/rules/api-and-data/api-grpc.md +1 -0
  179. package/presets/claude/java/rules/api-and-data/api-http.md +1 -0
  180. package/presets/claude/java/rules/api-and-data/messaging-adapters.md +1 -1
  181. package/presets/claude/java/rules/api-and-data/persistence-adapters.md +1 -0
  182. package/presets/claude/java/rules/architecture/application-usecases.md +2 -1
  183. package/presets/claude/java/rules/architecture/boundaries.md +1 -0
  184. package/presets/claude/java/rules/architecture/composition-root.md +1 -0
  185. package/presets/claude/java/rules/architecture/domain-layer.md +2 -1
  186. package/presets/claude/java/rules/architecture/feature-delivery.md +46 -43
  187. package/presets/claude/java/rules/architecture/module-public-api.md +1 -0
  188. package/presets/claude/java/rules/architecture/ports-interfaces.md +2 -1
  189. package/presets/claude/java/rules/architecture/product-specs-authoring.md +1 -0
  190. package/presets/claude/java/rules/architecture/product-specs.md +1 -0
  191. package/presets/claude/java/rules/architecture/reference-features.md +38 -22
  192. package/presets/claude/java/rules/stack/java-conventions.md +1 -0
  193. package/presets/claude/java/rules/testing/e2e.md +1 -0
  194. package/presets/claude/java/rules/testing/integration.md +1 -0
  195. package/presets/claude/java/rules/testing/unit.md +1 -0
  196. package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +2 -8
  197. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +77 -41
  198. package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +7 -31
  199. package/presets/claude/java/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  200. package/presets/claude/java/rules/tooling-and-review/code-quality.md +1 -1
  201. package/presets/claude/java/rules/tooling-and-review/code-review.md +1 -7
  202. package/presets/claude/java/rules/tooling-and-review/design-guidance.md +1 -2
  203. package/presets/claude/java/rules/tooling-and-review/java-tooling.md +0 -3
  204. package/presets/claude/java/rules/tooling-and-review/language-policy.md +1 -2
  205. package/presets/claude/java/rules/tooling-and-review/mcp-usage.md +1 -2
  206. package/presets/claude/java/rules/tooling-and-review/post-change-test.md +0 -3
  207. package/presets/claude/java/rules/tooling-and-review/preset-goals.md +2 -3
  208. package/presets/claude/java/rules/tooling-and-review/preset-layering.md +2 -3
  209. package/presets/claude/java/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  210. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  211. package/presets/claude/java/rules/tooling-and-review/preset-token-budget.md +4 -6
  212. package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +7 -8
  213. package/presets/claude/java/rules/tooling-and-review/preset-writing-style.md +2 -3
  214. package/presets/claude/java/rules/tooling-and-review/security-java.md +1 -0
  215. package/presets/claude/java/rules/tooling-and-review/technical-retro.md +1 -7
  216. package/presets/claude/java/skills/ci-investigation/SKILL.md +2 -2
  217. package/presets/claude/java/skills/technical-retro/SKILL.md +13 -2
  218. package/presets/claude/java/team/README.md +6 -3
  219. package/presets/claude/mcp-ts/REPO_AGENTS.md +10 -6
  220. package/presets/claude/mcp-ts/agents/README.md +1 -1
  221. package/presets/claude/mcp-ts/agents/build-verifier.md +3 -32
  222. package/presets/claude/mcp-ts/agents/feature-developer.md +1 -1
  223. package/presets/claude/mcp-ts/agents/task-analyst.md +2 -2
  224. package/presets/claude/mcp-ts/agents/task-router.md +10 -0
  225. package/presets/claude/mcp-ts/commands/task-continue.md +1 -1
  226. package/presets/claude/mcp-ts/commands/task.md +1 -1
  227. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +417 -34
  228. package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +45 -36
  229. package/presets/claude/mcp-ts/rules/architecture/product-specs-authoring.md +1 -0
  230. package/presets/claude/mcp-ts/rules/architecture/product-specs.md +1 -0
  231. package/presets/claude/mcp-ts/rules/architecture/reference-features.md +36 -19
  232. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +2 -4
  233. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +79 -39
  234. package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +7 -31
  235. package/presets/claude/mcp-ts/rules/tooling-and-review/anti-sycophancy-discipline.md +2 -4
  236. package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +1 -2
  237. package/presets/claude/mcp-ts/rules/tooling-and-review/design-guidance.md +1 -2
  238. package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +1 -2
  239. package/presets/claude/mcp-ts/rules/tooling-and-review/mcp-usage.md +1 -2
  240. package/presets/claude/mcp-ts/rules/tooling-and-review/post-change-test.md +1 -5
  241. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-goals.md +2 -3
  242. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +2 -3
  243. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  244. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  245. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-token-budget.md +4 -6
  246. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +7 -8
  247. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-writing-style.md +2 -3
  248. package/presets/claude/mcp-ts/rules/tooling-and-review/technical-retro.md +1 -3
  249. package/presets/claude/mcp-ts/team/README.md +6 -3
  250. package/presets/claude/next/REPO_AGENTS.md +11 -7
  251. package/presets/claude/next/agents/build-verifier.md +2 -42
  252. package/presets/claude/next/agents/code-reviewer.md +9 -38
  253. package/presets/claude/next/agents/debugger.md +1 -1
  254. package/presets/claude/next/agents/feature-developer.md +14 -15
  255. package/presets/claude/next/agents/mockup-reviewer.md +14 -13
  256. package/presets/claude/next/agents/openspec-author.md +1 -1
  257. package/presets/claude/next/agents/task-analyst.md +2 -2
  258. package/presets/claude/next/agents/task-router.md +10 -0
  259. package/presets/claude/next/agents/tech-writer.md +1 -1
  260. package/presets/claude/next/agents/unit-test-generator.md +1 -1
  261. package/presets/claude/next/agents/unit-test-planner.md +1 -1
  262. package/presets/claude/next/commands/task-continue.md +1 -1
  263. package/presets/claude/next/commands/task.md +1 -1
  264. package/presets/claude/next/hooks/chain-team-phases.sh +418 -33
  265. package/presets/claude/next/rules/anti-hallucination/react-next-anti-hallucination.md +5 -3
  266. package/presets/claude/next/rules/api-and-data/api-services.md +1 -1
  267. package/presets/claude/next/rules/api-and-data/http-client.md +10 -9
  268. package/presets/claude/next/rules/api-and-data/store-rtk.md +2 -2
  269. package/presets/claude/next/rules/architecture/architecture-boundaries-ui.md +1 -0
  270. package/presets/claude/next/rules/architecture/architecture-boundaries.md +17 -24
  271. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +89 -42
  272. package/presets/claude/next/rules/architecture/layer-barrel-exports.md +10 -9
  273. package/presets/claude/next/rules/architecture/product-specs-authoring.md +1 -0
  274. package/presets/claude/next/rules/architecture/product-specs.md +2 -1
  275. package/presets/claude/next/rules/architecture/public-imports.md +4 -3
  276. package/presets/claude/next/rules/architecture/reference-features.md +47 -7
  277. package/presets/claude/next/rules/stack/arrow-functions.md +3 -2
  278. package/presets/claude/next/rules/stack/navigation-router-ui.md +2 -1
  279. package/presets/claude/next/rules/stack/navigation-router.md +13 -14
  280. package/presets/claude/next/rules/stack/next-app-core.md +4 -4
  281. package/presets/claude/next/rules/stack/next-app-router.md +8 -7
  282. package/presets/claude/next/rules/stack/next-static-export.md +5 -4
  283. package/presets/claude/next/rules/stack/no-type-assertion.md +13 -13
  284. package/presets/claude/next/rules/stack/types-jsdoc.md +15 -17
  285. package/presets/claude/next/rules/testing/playwright-agents.md +3 -4
  286. package/presets/claude/next/rules/testing/tests-e2e-structure.md +6 -5
  287. package/presets/claude/next/rules/testing/tests-unit.md +3 -2
  288. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +3 -4
  289. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +303 -56
  290. package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +5 -43
  291. package/presets/claude/next/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  292. package/presets/claude/next/rules/tooling-and-review/code-quality.md +2 -2
  293. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +5 -21
  294. package/presets/claude/next/rules/tooling-and-review/design-guidance.md +1 -2
  295. package/presets/claude/next/rules/tooling-and-review/language-policy.md +1 -2
  296. package/presets/claude/next/rules/tooling-and-review/mcp-usage.md +1 -2
  297. package/presets/claude/next/rules/tooling-and-review/mockup-review.md +45 -48
  298. package/presets/claude/next/rules/tooling-and-review/package-manager.md +4 -0
  299. package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +9 -13
  300. package/presets/claude/next/rules/tooling-and-review/preset-goals.md +2 -3
  301. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +2 -3
  302. package/presets/claude/next/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  303. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  304. package/presets/claude/next/rules/tooling-and-review/preset-token-budget.md +4 -6
  305. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +7 -8
  306. package/presets/claude/next/rules/tooling-and-review/preset-writing-style.md +2 -3
  307. package/presets/claude/next/rules/tooling-and-review/security-next.md +1 -3
  308. package/presets/claude/next/rules/tooling-and-review/technical-retro.md +2 -4
  309. package/presets/claude/next/rules/tooling-and-review/ux-design.md +1 -3
  310. package/presets/claude/next/rules/ui-and-accessibility/component-catalog-gate.md +4 -3
  311. package/presets/claude/next/rules/ui-and-accessibility/css-property-order.md +3 -2
  312. package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +13 -21
  313. package/presets/claude/next/rules/ui-and-accessibility/forms-validation.md +1 -1
  314. package/presets/claude/next/rules/ui-and-accessibility/no-props-spread.md +11 -31
  315. package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +5 -4
  316. package/presets/claude/next/rules/ui-and-accessibility/react-ui.md +9 -14
  317. package/presets/claude/next/skills/code-review/SKILL.md +1 -1
  318. package/presets/claude/next/skills/figma-fidelity/SKILL.md +76 -49
  319. package/presets/claude/next/skills/mockup-review/SKILL.md +4 -2
  320. package/presets/claude/next/skills/react-performance/SKILL.md +1 -1
  321. package/presets/claude/next/skills/technical-retro/SKILL.md +13 -2
  322. package/presets/claude/next/skills/unit-testing/SKILL.md +1 -1
  323. package/presets/claude/next/team/README.md +6 -3
  324. package/presets/claude/next/team/fixtures/artifact-manifest.example.json +1 -1
  325. package/presets/claude/next/team/fixtures/feature-parallel.json +84 -0
  326. package/presets/claude/nuxt/REPO_AGENTS.md +10 -6
  327. package/presets/claude/nuxt/agents/build-verifier.md +1 -39
  328. package/presets/claude/nuxt/agents/code-reviewer.md +1 -1
  329. package/presets/claude/nuxt/agents/debugger.md +1 -1
  330. package/presets/claude/nuxt/agents/feature-developer.md +1 -1
  331. package/presets/claude/nuxt/agents/openspec-author.md +1 -1
  332. package/presets/claude/nuxt/agents/task-analyst.md +2 -2
  333. package/presets/claude/nuxt/agents/task-router.md +10 -0
  334. package/presets/claude/nuxt/agents/tech-writer.md +1 -1
  335. package/presets/claude/nuxt/agents/unit-test-generator.md +1 -1
  336. package/presets/claude/nuxt/agents/unit-test-planner.md +1 -1
  337. package/presets/claude/nuxt/commands/task-continue.md +1 -1
  338. package/presets/claude/nuxt/commands/task.md +1 -1
  339. package/presets/claude/nuxt/hooks/chain-team-phases.sh +418 -33
  340. package/presets/claude/nuxt/rules/anti-hallucination/vue-nuxt-anti-hallucination.md +4 -1
  341. package/presets/claude/nuxt/rules/api-and-data/api-services.md +9 -7
  342. package/presets/claude/nuxt/rules/api-and-data/http-client.md +1 -0
  343. package/presets/claude/nuxt/rules/api-and-data/store-pinia.md +1 -0
  344. package/presets/claude/nuxt/rules/architecture/architecture-boundaries.md +9 -8
  345. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +72 -22
  346. package/presets/claude/nuxt/rules/architecture/layer-barrel-exports.md +9 -7
  347. package/presets/claude/nuxt/rules/architecture/product-specs-authoring.md +1 -0
  348. package/presets/claude/nuxt/rules/architecture/product-specs.md +1 -0
  349. package/presets/claude/nuxt/rules/architecture/public-imports.md +7 -7
  350. package/presets/claude/nuxt/rules/architecture/reference-features.md +46 -10
  351. package/presets/claude/nuxt/rules/stack/navigation-router-ui.md +8 -3
  352. package/presets/claude/nuxt/rules/stack/navigation-router.md +7 -2
  353. package/presets/claude/nuxt/rules/stack/no-type-assertion.md +2 -5
  354. package/presets/claude/nuxt/rules/stack/nuxt-pages-routing.md +7 -3
  355. package/presets/claude/nuxt/rules/stack/script-setup-conventions.md +3 -1
  356. package/presets/claude/nuxt/rules/stack/types-jsdoc.md +21 -16
  357. package/presets/claude/nuxt/rules/testing/playwright-agents.md +3 -1
  358. package/presets/claude/nuxt/rules/testing/tests-e2e-structure.md +5 -4
  359. package/presets/claude/nuxt/rules/testing/tests-unit.md +3 -1
  360. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +2 -2
  361. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +249 -10
  362. package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +7 -31
  363. package/presets/claude/nuxt/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -7
  364. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +7 -13
  365. package/presets/claude/nuxt/rules/tooling-and-review/design-guidance.md +1 -7
  366. package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +1 -2
  367. package/presets/claude/nuxt/rules/tooling-and-review/mcp-usage.md +1 -7
  368. package/presets/claude/nuxt/rules/tooling-and-review/mockup-review.md +35 -32
  369. package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +1 -3
  370. package/presets/claude/nuxt/rules/tooling-and-review/preset-goals.md +2 -3
  371. package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +4 -1
  372. package/presets/claude/nuxt/rules/tooling-and-review/preset-no-cross-stack-leakage.md +4 -2
  373. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +10 -3
  374. package/presets/claude/nuxt/rules/tooling-and-review/preset-token-budget.md +4 -3
  375. package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +9 -6
  376. package/presets/claude/nuxt/rules/tooling-and-review/preset-writing-style.md +2 -3
  377. package/presets/claude/nuxt/rules/tooling-and-review/security-nuxt.md +1 -0
  378. package/presets/claude/nuxt/rules/tooling-and-review/technical-retro.md +1 -1
  379. package/presets/claude/nuxt/rules/tooling-and-review/ux-design.md +1 -3
  380. package/presets/claude/nuxt/rules/ui-and-accessibility/css-property-order.md +4 -1
  381. package/presets/claude/nuxt/rules/ui-and-accessibility/no-v-bind-spread.md +4 -1
  382. package/presets/claude/nuxt/rules/ui-and-accessibility/vue-a11y-coding.md +7 -3
  383. package/presets/claude/nuxt/rules/ui-and-accessibility/vue-ui.md +6 -3
  384. package/presets/claude/nuxt/skills/technical-retro/SKILL.md +13 -2
  385. package/presets/claude/nuxt/skills/unit-testing/SKILL.md +1 -1
  386. package/presets/claude/nuxt/team/README.md +6 -3
  387. package/presets/claude/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  388. package/presets/claude/php-hexagonal/REPO_AGENTS.md +10 -6
  389. package/presets/claude/php-hexagonal/agents/build-verifier.md +3 -39
  390. package/presets/claude/php-hexagonal/agents/ci-investigator.md +2 -2
  391. package/presets/claude/php-hexagonal/agents/code-reviewer.md +1 -1
  392. package/presets/claude/php-hexagonal/agents/debugger.md +1 -1
  393. package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -3
  394. package/presets/claude/php-hexagonal/agents/openspec-author.md +1 -1
  395. package/presets/claude/php-hexagonal/agents/task-analyst.md +2 -2
  396. package/presets/claude/php-hexagonal/agents/task-router.md +10 -0
  397. package/presets/claude/php-hexagonal/agents/tech-writer.md +1 -1
  398. package/presets/claude/php-hexagonal/commands/task-continue.md +1 -1
  399. package/presets/claude/php-hexagonal/commands/task.md +1 -1
  400. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +418 -35
  401. package/presets/claude/php-hexagonal/rules/api-and-data/adapters-driven.md +3 -1
  402. package/presets/claude/php-hexagonal/rules/api-and-data/adapters-driving.md +5 -2
  403. package/presets/claude/php-hexagonal/rules/api-and-data/api-grpc.md +3 -2
  404. package/presets/claude/php-hexagonal/rules/api-and-data/api-http.md +4 -1
  405. package/presets/claude/php-hexagonal/rules/api-and-data/persistence-adapters.md +2 -1
  406. package/presets/claude/php-hexagonal/rules/architecture/application-usecases.md +2 -1
  407. package/presets/claude/php-hexagonal/rules/architecture/composition-root.md +5 -2
  408. package/presets/claude/php-hexagonal/rules/architecture/domain-layer.md +2 -1
  409. package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +45 -43
  410. package/presets/claude/php-hexagonal/rules/architecture/ports-interfaces.md +4 -2
  411. package/presets/claude/php-hexagonal/rules/architecture/product-specs-authoring.md +1 -0
  412. package/presets/claude/php-hexagonal/rules/architecture/product-specs.md +1 -0
  413. package/presets/claude/php-hexagonal/rules/architecture/reference-features.md +36 -25
  414. package/presets/claude/php-hexagonal/rules/stack/php-app-core.md +1 -1
  415. package/presets/claude/php-hexagonal/rules/stack/php-conventions.md +1 -0
  416. package/presets/claude/php-hexagonal/rules/testing/integration.md +4 -3
  417. package/presets/claude/php-hexagonal/rules/testing/unit.md +3 -1
  418. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +2 -8
  419. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +77 -41
  420. package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +7 -31
  421. package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  422. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +1 -1
  423. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +1 -7
  424. package/presets/claude/php-hexagonal/rules/tooling-and-review/design-guidance.md +1 -2
  425. package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +1 -2
  426. package/presets/claude/php-hexagonal/rules/tooling-and-review/mcp-usage.md +1 -2
  427. package/presets/claude/php-hexagonal/rules/tooling-and-review/php-tooling.md +1 -3
  428. package/presets/claude/php-hexagonal/rules/tooling-and-review/post-change-test.md +4 -6
  429. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-goals.md +2 -3
  430. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +2 -3
  431. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -4
  432. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +8 -5
  433. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-token-budget.md +4 -6
  434. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +7 -8
  435. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-writing-style.md +2 -3
  436. package/presets/claude/php-hexagonal/rules/tooling-and-review/security-php.md +4 -1
  437. package/presets/claude/php-hexagonal/rules/tooling-and-review/technical-retro.md +1 -7
  438. package/presets/claude/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  439. package/presets/claude/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  440. package/presets/claude/php-hexagonal/team/README.md +6 -3
  441. package/presets/claude/php-laravel/REPO_AGENTS.md +10 -6
  442. package/presets/claude/php-laravel/agents/build-verifier.md +3 -39
  443. package/presets/claude/php-laravel/agents/ci-investigator.md +2 -2
  444. package/presets/claude/php-laravel/agents/code-reviewer.md +1 -1
  445. package/presets/claude/php-laravel/agents/debugger.md +1 -1
  446. package/presets/claude/php-laravel/agents/feature-developer.md +1 -3
  447. package/presets/claude/php-laravel/agents/openspec-author.md +1 -1
  448. package/presets/claude/php-laravel/agents/task-analyst.md +2 -2
  449. package/presets/claude/php-laravel/agents/task-router.md +10 -0
  450. package/presets/claude/php-laravel/agents/tech-writer.md +1 -1
  451. package/presets/claude/php-laravel/commands/task-continue.md +1 -1
  452. package/presets/claude/php-laravel/commands/task.md +1 -1
  453. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +418 -35
  454. package/presets/claude/php-laravel/rules/api-and-data/eloquent-persistence.md +2 -0
  455. package/presets/claude/php-laravel/rules/api-and-data/events-listeners.md +2 -0
  456. package/presets/claude/php-laravel/rules/api-and-data/form-requests.md +2 -0
  457. package/presets/claude/php-laravel/rules/api-and-data/http-layer.md +2 -0
  458. package/presets/claude/php-laravel/rules/api-and-data/jobs-queues.md +2 -0
  459. package/presets/claude/php-laravel/rules/api-and-data/policies-authorization.md +2 -0
  460. package/presets/claude/php-laravel/rules/api-and-data/routes-api.md +2 -0
  461. package/presets/claude/php-laravel/rules/architecture/actions-services.md +2 -0
  462. package/presets/claude/php-laravel/rules/architecture/boundaries.md +2 -0
  463. package/presets/claude/php-laravel/rules/architecture/domain-layer.md +2 -0
  464. package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +46 -43
  465. package/presets/claude/php-laravel/rules/architecture/module-public-api.md +1 -0
  466. package/presets/claude/php-laravel/rules/architecture/product-specs-authoring.md +1 -0
  467. package/presets/claude/php-laravel/rules/architecture/product-specs.md +1 -0
  468. package/presets/claude/php-laravel/rules/architecture/reference-features.md +37 -27
  469. package/presets/claude/php-laravel/rules/architecture/service-providers.md +2 -0
  470. package/presets/claude/php-laravel/rules/stack/laravel-app-core.md +3 -1
  471. package/presets/claude/php-laravel/rules/stack/laravel-conventions.md +2 -0
  472. package/presets/claude/php-laravel/rules/testing/e2e.md +1 -0
  473. package/presets/claude/php-laravel/rules/testing/integration.md +2 -0
  474. package/presets/claude/php-laravel/rules/testing/unit.md +2 -0
  475. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +2 -4
  476. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +77 -37
  477. package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +7 -31
  478. package/presets/claude/php-laravel/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  479. package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +1 -1
  480. package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +1 -3
  481. package/presets/claude/php-laravel/rules/tooling-and-review/design-guidance.md +1 -2
  482. package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +1 -2
  483. package/presets/claude/php-laravel/rules/tooling-and-review/mcp-usage.md +1 -2
  484. package/presets/claude/php-laravel/rules/tooling-and-review/php-tooling.md +2 -1
  485. package/presets/claude/php-laravel/rules/tooling-and-review/post-change-test.md +5 -4
  486. package/presets/claude/php-laravel/rules/tooling-and-review/preset-goals.md +2 -3
  487. package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +3 -2
  488. package/presets/claude/php-laravel/rules/tooling-and-review/preset-no-cross-stack-leakage.md +3 -3
  489. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +9 -4
  490. package/presets/claude/php-laravel/rules/tooling-and-review/preset-token-budget.md +5 -5
  491. package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +8 -7
  492. package/presets/claude/php-laravel/rules/tooling-and-review/preset-writing-style.md +2 -3
  493. package/presets/claude/php-laravel/rules/tooling-and-review/security-php.md +2 -0
  494. package/presets/claude/php-laravel/rules/tooling-and-review/technical-retro.md +1 -3
  495. package/presets/claude/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  496. package/presets/claude/php-laravel/skills/technical-retro/SKILL.md +13 -2
  497. package/presets/claude/php-laravel/team/README.md +6 -3
  498. package/presets/claude/svelte/REPO_AGENTS.md +10 -6
  499. package/presets/claude/svelte/agents/build-verifier.md +1 -39
  500. package/presets/claude/svelte/agents/code-reviewer.md +1 -1
  501. package/presets/claude/svelte/agents/debugger.md +1 -1
  502. package/presets/claude/svelte/agents/feature-developer.md +1 -1
  503. package/presets/claude/svelte/agents/openspec-author.md +1 -1
  504. package/presets/claude/svelte/agents/task-analyst.md +2 -2
  505. package/presets/claude/svelte/agents/task-router.md +10 -0
  506. package/presets/claude/svelte/agents/tech-writer.md +1 -1
  507. package/presets/claude/svelte/agents/unit-test-generator.md +1 -1
  508. package/presets/claude/svelte/agents/unit-test-planner.md +1 -1
  509. package/presets/claude/svelte/commands/task-continue.md +1 -1
  510. package/presets/claude/svelte/commands/task.md +1 -1
  511. package/presets/claude/svelte/hooks/chain-team-phases.sh +418 -33
  512. package/presets/claude/svelte/rules/anti-hallucination/svelte-sveltekit-anti-hallucination.md +3 -1
  513. package/presets/claude/svelte/rules/api-and-data/api-services.md +1 -0
  514. package/presets/claude/svelte/rules/api-and-data/store-svelte.md +1 -0
  515. package/presets/claude/svelte/rules/architecture/architecture-boundaries.md +1 -0
  516. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +58 -8
  517. package/presets/claude/svelte/rules/architecture/layer-barrel-exports.md +7 -6
  518. package/presets/claude/svelte/rules/architecture/product-specs-authoring.md +1 -0
  519. package/presets/claude/svelte/rules/architecture/product-specs.md +1 -0
  520. package/presets/claude/svelte/rules/architecture/public-imports.md +1 -0
  521. package/presets/claude/svelte/rules/architecture/reference-features.md +46 -9
  522. package/presets/claude/svelte/rules/stack/no-type-assertion.md +1 -1
  523. package/presets/claude/svelte/rules/stack/svelte-script-conventions.md +2 -1
  524. package/presets/claude/svelte/rules/stack/types-jsdoc.md +19 -15
  525. package/presets/claude/svelte/rules/testing/tests-e2e-structure.md +5 -4
  526. package/presets/claude/svelte/rules/testing/tests-unit.md +3 -1
  527. package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +2 -3
  528. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +250 -12
  529. package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +7 -31
  530. package/presets/claude/svelte/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -2
  531. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +7 -13
  532. package/presets/claude/svelte/rules/tooling-and-review/design-guidance.md +1 -2
  533. package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +1 -2
  534. package/presets/claude/svelte/rules/tooling-and-review/mcp-usage.md +1 -2
  535. package/presets/claude/svelte/rules/tooling-and-review/mockup-review.md +35 -32
  536. package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +2 -4
  537. package/presets/claude/svelte/rules/tooling-and-review/preset-goals.md +2 -3
  538. package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +2 -2
  539. package/presets/claude/svelte/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -3
  540. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +8 -4
  541. package/presets/claude/svelte/rules/tooling-and-review/preset-token-budget.md +4 -5
  542. package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +7 -7
  543. package/presets/claude/svelte/rules/tooling-and-review/preset-writing-style.md +2 -3
  544. package/presets/claude/svelte/rules/tooling-and-review/technical-retro.md +1 -2
  545. package/presets/claude/svelte/rules/tooling-and-review/ux-design.md +1 -3
  546. package/presets/claude/svelte/rules/ui-and-accessibility/css-property-order.md +3 -1
  547. package/presets/claude/svelte/skills/technical-retro/SKILL.md +13 -2
  548. package/presets/claude/svelte/skills/unit-testing/SKILL.md +1 -1
  549. package/presets/claude/svelte/team/README.md +6 -3
  550. package/presets/claude/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  551. package/presets/cursor/android-kotlin/REPO_AGENTS.md +10 -6
  552. package/presets/cursor/android-kotlin/agents/build-verifier.md +3 -37
  553. package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -1
  554. package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
  555. package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
  556. package/presets/cursor/android-kotlin/agents/openspec-author.md +1 -1
  557. package/presets/cursor/android-kotlin/agents/task-analyst.md +2 -2
  558. package/presets/cursor/android-kotlin/agents/task-router.md +10 -0
  559. package/presets/cursor/android-kotlin/agents/tech-writer.md +1 -1
  560. package/presets/cursor/android-kotlin/agents/unit-test-generator.md +1 -1
  561. package/presets/cursor/android-kotlin/agents/unit-test-planner.md +1 -1
  562. package/presets/cursor/android-kotlin/commands/task-continue.md +1 -1
  563. package/presets/cursor/android-kotlin/commands/task.md +1 -1
  564. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +418 -33
  565. package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +1 -1
  566. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +14 -3
  567. package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +7 -30
  568. package/presets/cursor/android-kotlin/rules/anti-sycophancy-discipline.mdc +0 -2
  569. package/presets/cursor/android-kotlin/rules/design-guidance.mdc +0 -2
  570. package/presets/cursor/android-kotlin/rules/language-policy.mdc +1 -1
  571. package/presets/cursor/android-kotlin/rules/mockup-review.mdc +34 -29
  572. package/presets/cursor/android-kotlin/rules/preset-goals.mdc +2 -2
  573. package/presets/cursor/android-kotlin/rules/preset-layering.mdc +2 -2
  574. package/presets/cursor/android-kotlin/rules/preset-no-cross-stack-leakage.mdc +2 -3
  575. package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +8 -4
  576. package/presets/cursor/android-kotlin/rules/preset-token-budget.mdc +4 -5
  577. package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +7 -7
  578. package/presets/cursor/android-kotlin/rules/preset-writing-style.mdc +2 -2
  579. package/presets/cursor/android-kotlin/rules/reference-features.mdc +0 -2
  580. package/presets/cursor/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  581. package/presets/cursor/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  582. package/presets/cursor/android-kotlin/team/README.md +5 -2
  583. package/presets/cursor/go/REPO_AGENTS.md +10 -6
  584. package/presets/cursor/go/agents/build-verifier.md +3 -29
  585. package/presets/cursor/go/agents/ci-investigator.md +2 -2
  586. package/presets/cursor/go/agents/code-reviewer.md +1 -1
  587. package/presets/cursor/go/agents/debugger.md +1 -1
  588. package/presets/cursor/go/agents/feature-developer.md +1 -3
  589. package/presets/cursor/go/agents/openspec-author.md +1 -1
  590. package/presets/cursor/go/agents/task-analyst.md +2 -2
  591. package/presets/cursor/go/agents/task-router.md +10 -0
  592. package/presets/cursor/go/agents/tech-writer.md +1 -1
  593. package/presets/cursor/go/commands/task-continue.md +1 -1
  594. package/presets/cursor/go/commands/task.md +1 -1
  595. package/presets/cursor/go/hooks/chain-team-phases.sh +418 -35
  596. package/presets/cursor/go/rules/agent-team-intake.mdc +1 -1
  597. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +13 -2
  598. package/presets/cursor/go/rules/ai-local-overlay.mdc +7 -30
  599. package/presets/cursor/go/rules/anti-sycophancy-discipline.mdc +0 -2
  600. package/presets/cursor/go/rules/design-guidance.mdc +0 -2
  601. package/presets/cursor/go/rules/language-policy.mdc +1 -1
  602. package/presets/cursor/go/rules/preset-goals.mdc +2 -2
  603. package/presets/cursor/go/rules/preset-layering.mdc +2 -2
  604. package/presets/cursor/go/rules/preset-no-cross-stack-leakage.mdc +2 -3
  605. package/presets/cursor/go/rules/preset-pr-checklist.mdc +8 -4
  606. package/presets/cursor/go/rules/preset-token-budget.mdc +4 -5
  607. package/presets/cursor/go/rules/preset-twin-sync.mdc +7 -7
  608. package/presets/cursor/go/rules/preset-writing-style.mdc +2 -2
  609. package/presets/cursor/go/rules/reference-features.mdc +0 -3
  610. package/presets/cursor/go/skills/ci-investigation/SKILL.md +2 -2
  611. package/presets/cursor/go/skills/technical-retro/SKILL.md +13 -2
  612. package/presets/cursor/go/team/README.md +5 -2
  613. package/presets/cursor/ios-swift/REPO_AGENTS.md +10 -6
  614. package/presets/cursor/ios-swift/agents/build-verifier.md +3 -39
  615. package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -1
  616. package/presets/cursor/ios-swift/agents/debugger.md +1 -1
  617. package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
  618. package/presets/cursor/ios-swift/agents/openspec-author.md +1 -1
  619. package/presets/cursor/ios-swift/agents/task-analyst.md +2 -2
  620. package/presets/cursor/ios-swift/agents/task-router.md +10 -0
  621. package/presets/cursor/ios-swift/agents/tech-writer.md +1 -1
  622. package/presets/cursor/ios-swift/agents/unit-test-generator.md +1 -1
  623. package/presets/cursor/ios-swift/agents/unit-test-planner.md +1 -1
  624. package/presets/cursor/ios-swift/agents/xcuitest-test-generator.md +1 -1
  625. package/presets/cursor/ios-swift/agents/xcuitest-test-planner.md +2 -2
  626. package/presets/cursor/ios-swift/commands/task-continue.md +1 -1
  627. package/presets/cursor/ios-swift/commands/task.md +1 -1
  628. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +418 -33
  629. package/presets/cursor/ios-swift/rules/README.md +1 -1
  630. package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +1 -1
  631. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +14 -3
  632. package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +7 -30
  633. package/presets/cursor/ios-swift/rules/anti-sycophancy-discipline.mdc +0 -2
  634. package/presets/cursor/ios-swift/rules/design-guidance.mdc +0 -2
  635. package/presets/cursor/ios-swift/rules/language-policy.mdc +1 -1
  636. package/presets/cursor/ios-swift/rules/mockup-review.mdc +34 -29
  637. package/presets/cursor/ios-swift/rules/networking-services.mdc +4 -1
  638. package/presets/cursor/ios-swift/rules/preset-goals.mdc +2 -2
  639. package/presets/cursor/ios-swift/rules/preset-layering.mdc +2 -2
  640. package/presets/cursor/ios-swift/rules/preset-no-cross-stack-leakage.mdc +2 -3
  641. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +8 -4
  642. package/presets/cursor/ios-swift/rules/preset-token-budget.mdc +4 -5
  643. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +7 -7
  644. package/presets/cursor/ios-swift/rules/preset-writing-style.mdc +2 -2
  645. package/presets/cursor/ios-swift/rules/reference-features.mdc +0 -6
  646. package/presets/cursor/ios-swift/rules/state-and-viewmodels.mdc +3 -1
  647. package/presets/cursor/ios-swift/rules/swiftui-ui.mdc +3 -1
  648. package/presets/cursor/ios-swift/skills/technical-retro/SKILL.md +13 -2
  649. package/presets/cursor/ios-swift/skills/unit-testing/SKILL.md +1 -1
  650. package/presets/cursor/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  651. package/presets/cursor/ios-swift/team/README.md +5 -2
  652. package/presets/cursor/java/REPO_AGENTS.md +10 -6
  653. package/presets/cursor/java/agents/build-verifier.md +3 -39
  654. package/presets/cursor/java/agents/ci-investigator.md +2 -2
  655. package/presets/cursor/java/agents/code-reviewer.md +1 -1
  656. package/presets/cursor/java/agents/debugger.md +1 -1
  657. package/presets/cursor/java/agents/feature-developer.md +1 -3
  658. package/presets/cursor/java/agents/openspec-author.md +1 -1
  659. package/presets/cursor/java/agents/task-analyst.md +2 -2
  660. package/presets/cursor/java/agents/task-router.md +10 -0
  661. package/presets/cursor/java/agents/tech-writer.md +1 -1
  662. package/presets/cursor/java/commands/task-continue.md +1 -1
  663. package/presets/cursor/java/commands/task.md +1 -1
  664. package/presets/cursor/java/hooks/chain-team-phases.sh +418 -35
  665. package/presets/cursor/java/rules/agent-team-intake.mdc +1 -1
  666. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +13 -2
  667. package/presets/cursor/java/rules/ai-local-overlay.mdc +7 -30
  668. package/presets/cursor/java/rules/anti-sycophancy-discipline.mdc +0 -2
  669. package/presets/cursor/java/rules/design-guidance.mdc +0 -2
  670. package/presets/cursor/java/rules/language-policy.mdc +1 -1
  671. package/presets/cursor/java/rules/preset-goals.mdc +2 -2
  672. package/presets/cursor/java/rules/preset-layering.mdc +2 -2
  673. package/presets/cursor/java/rules/preset-no-cross-stack-leakage.mdc +2 -3
  674. package/presets/cursor/java/rules/preset-pr-checklist.mdc +8 -4
  675. package/presets/cursor/java/rules/preset-token-budget.mdc +4 -5
  676. package/presets/cursor/java/rules/preset-twin-sync.mdc +7 -7
  677. package/presets/cursor/java/rules/preset-writing-style.mdc +2 -2
  678. package/presets/cursor/java/rules/reference-features.mdc +0 -4
  679. package/presets/cursor/java/skills/ci-investigation/SKILL.md +2 -2
  680. package/presets/cursor/java/skills/technical-retro/SKILL.md +13 -2
  681. package/presets/cursor/java/team/README.md +5 -2
  682. package/presets/cursor/mcp-ts/REPO_AGENTS.md +10 -6
  683. package/presets/cursor/mcp-ts/agents/README.md +1 -1
  684. package/presets/cursor/mcp-ts/agents/build-verifier.md +3 -32
  685. package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
  686. package/presets/cursor/mcp-ts/agents/task-analyst.md +2 -2
  687. package/presets/cursor/mcp-ts/agents/task-router.md +10 -0
  688. package/presets/cursor/mcp-ts/commands/task-continue.md +1 -1
  689. package/presets/cursor/mcp-ts/commands/task.md +1 -1
  690. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +417 -34
  691. package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +1 -1
  692. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +13 -2
  693. package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +7 -30
  694. package/presets/cursor/mcp-ts/rules/anti-sycophancy-discipline.mdc +0 -3
  695. package/presets/cursor/mcp-ts/rules/language-policy.mdc +1 -1
  696. package/presets/cursor/mcp-ts/rules/preset-goals.mdc +2 -2
  697. package/presets/cursor/mcp-ts/rules/preset-layering.mdc +2 -2
  698. package/presets/cursor/mcp-ts/rules/preset-no-cross-stack-leakage.mdc +2 -3
  699. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +8 -4
  700. package/presets/cursor/mcp-ts/rules/preset-token-budget.mdc +4 -5
  701. package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +7 -7
  702. package/presets/cursor/mcp-ts/rules/preset-writing-style.mdc +2 -2
  703. package/presets/cursor/mcp-ts/rules/reference-features.mdc +0 -2
  704. package/presets/cursor/mcp-ts/team/README.md +5 -2
  705. package/presets/cursor/next/REPO_AGENTS.md +11 -7
  706. package/presets/cursor/next/agents/build-verifier.md +2 -42
  707. package/presets/cursor/next/agents/code-reviewer.md +9 -38
  708. package/presets/cursor/next/agents/debugger.md +1 -1
  709. package/presets/cursor/next/agents/feature-developer.md +14 -25
  710. package/presets/cursor/next/agents/mockup-reviewer.md +14 -13
  711. package/presets/cursor/next/agents/openspec-author.md +1 -1
  712. package/presets/cursor/next/agents/task-analyst.md +2 -2
  713. package/presets/cursor/next/agents/task-router.md +10 -0
  714. package/presets/cursor/next/agents/tech-writer.md +1 -1
  715. package/presets/cursor/next/agents/unit-test-generator.md +1 -1
  716. package/presets/cursor/next/agents/unit-test-planner.md +1 -1
  717. package/presets/cursor/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  718. package/presets/cursor/next/ai-local/rules-library/analytics-events.md +1 -1
  719. package/presets/cursor/next/ai-local/rules-library/api-contract-source.md +1 -1
  720. package/presets/cursor/next/ai-local/rules-library/code-style.md +1 -1
  721. package/presets/cursor/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  722. package/presets/cursor/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  723. package/presets/cursor/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  724. package/presets/cursor/next/ai-local/rules-library/no-react-fc.md +1 -1
  725. package/presets/cursor/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  726. package/presets/cursor/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  727. package/presets/cursor/next/ai-local/rules-library/router-pages.md +1 -1
  728. package/presets/cursor/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  729. package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  730. package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  731. package/presets/cursor/next/commands/task-continue.md +1 -1
  732. package/presets/cursor/next/commands/task.md +1 -1
  733. package/presets/cursor/next/hooks/chain-team-phases.sh +418 -33
  734. package/presets/cursor/next/rules/README.md +4 -5
  735. package/presets/cursor/next/rules/agent-team-intake.mdc +1 -1
  736. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +16 -5
  737. package/presets/cursor/next/rules/ai-local-overlay.mdc +5 -42
  738. package/presets/cursor/next/rules/anti-sycophancy-discipline.mdc +0 -2
  739. package/presets/cursor/next/rules/arrow-functions.mdc +1 -1
  740. package/presets/cursor/next/rules/code-review-mr.mdc +3 -16
  741. package/presets/cursor/next/rules/design-guidance.mdc +0 -2
  742. package/presets/cursor/next/rules/design-tokens-binding.mdc +14 -20
  743. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +4 -11
  744. package/presets/cursor/next/rules/language-policy.mdc +1 -1
  745. package/presets/cursor/next/rules/mockup-review.mdc +44 -45
  746. package/presets/cursor/next/rules/navigation-router-stack.mdc +1 -1
  747. package/presets/cursor/next/rules/navigation-router-ui.mdc +1 -1
  748. package/presets/cursor/next/rules/no-props-spread.mdc +1 -26
  749. package/presets/cursor/next/rules/preset-goals.mdc +2 -2
  750. package/presets/cursor/next/rules/preset-layering.mdc +2 -2
  751. package/presets/cursor/next/rules/preset-no-cross-stack-leakage.mdc +2 -3
  752. package/presets/cursor/next/rules/preset-pr-checklist.mdc +8 -4
  753. package/presets/cursor/next/rules/preset-token-budget.mdc +4 -5
  754. package/presets/cursor/next/rules/preset-twin-sync.mdc +7 -7
  755. package/presets/cursor/next/rules/preset-writing-style.mdc +2 -2
  756. package/presets/cursor/next/rules/product-specs.mdc +1 -1
  757. package/presets/cursor/next/rules/public-imports.mdc +2 -2
  758. package/presets/cursor/next/rules/react-next-anti-hallucination.mdc +5 -1
  759. package/presets/cursor/next/rules/react-ui.mdc +1 -7
  760. package/presets/cursor/next/rules/reference-features.mdc +0 -5
  761. package/presets/cursor/next/rules/tests-e2e-structure.mdc +0 -1
  762. package/presets/cursor/next/rules/tests-unit.mdc +0 -1
  763. package/presets/cursor/next/rules/types-jsdoc.mdc +14 -17
  764. package/presets/cursor/next/skills/code-review/SKILL.md +1 -1
  765. package/presets/cursor/next/skills/figma-fidelity/SKILL.md +76 -49
  766. package/presets/cursor/next/skills/mockup-review/SKILL.md +4 -2
  767. package/presets/cursor/next/skills/react-performance/SKILL.md +1 -1
  768. package/presets/cursor/next/skills/technical-retro/SKILL.md +13 -2
  769. package/presets/cursor/next/skills/unit-testing/SKILL.md +1 -1
  770. package/presets/cursor/next/team/README.md +5 -2
  771. package/presets/cursor/next/team/fixtures/artifact-manifest.example.json +1 -1
  772. package/presets/cursor/next/team/fixtures/feature-parallel.json +84 -0
  773. package/presets/cursor/nuxt/REPO_AGENTS.md +10 -6
  774. package/presets/cursor/nuxt/agents/build-verifier.md +1 -39
  775. package/presets/cursor/nuxt/agents/code-reviewer.md +1 -1
  776. package/presets/cursor/nuxt/agents/debugger.md +1 -1
  777. package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
  778. package/presets/cursor/nuxt/agents/openspec-author.md +1 -1
  779. package/presets/cursor/nuxt/agents/task-analyst.md +2 -2
  780. package/presets/cursor/nuxt/agents/task-router.md +10 -0
  781. package/presets/cursor/nuxt/agents/tech-writer.md +1 -1
  782. package/presets/cursor/nuxt/agents/unit-test-generator.md +1 -1
  783. package/presets/cursor/nuxt/agents/unit-test-planner.md +1 -1
  784. package/presets/cursor/nuxt/commands/task-continue.md +1 -1
  785. package/presets/cursor/nuxt/commands/task.md +1 -1
  786. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +418 -33
  787. package/presets/cursor/nuxt/rules/README.md +3 -3
  788. package/presets/cursor/nuxt/rules/agent-team-intake.mdc +1 -1
  789. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +14 -3
  790. package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +7 -30
  791. package/presets/cursor/nuxt/rules/anti-sycophancy-discipline.mdc +0 -2
  792. package/presets/cursor/nuxt/rules/css-property-order-stylelint.mdc +4 -1
  793. package/presets/cursor/nuxt/rules/design-guidance.mdc +0 -2
  794. package/presets/cursor/nuxt/rules/language-policy.mdc +1 -1
  795. package/presets/cursor/nuxt/rules/mockup-review.mdc +34 -29
  796. package/presets/cursor/nuxt/rules/no-v-bind-spread.mdc +4 -1
  797. package/presets/cursor/nuxt/rules/nuxt-pages-routing.mdc +8 -1
  798. package/presets/cursor/nuxt/rules/preset-goals.mdc +2 -2
  799. package/presets/cursor/nuxt/rules/preset-layering.mdc +2 -2
  800. package/presets/cursor/nuxt/rules/preset-no-cross-stack-leakage.mdc +2 -3
  801. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +8 -4
  802. package/presets/cursor/nuxt/rules/preset-token-budget.mdc +4 -5
  803. package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +7 -7
  804. package/presets/cursor/nuxt/rules/preset-writing-style.mdc +2 -2
  805. package/presets/cursor/nuxt/rules/public-imports.mdc +2 -2
  806. package/presets/cursor/nuxt/rules/reference-features.mdc +0 -5
  807. package/presets/cursor/nuxt/rules/script-setup-conventions.mdc +3 -1
  808. package/presets/cursor/nuxt/rules/tests-e2e-structure.mdc +0 -1
  809. package/presets/cursor/nuxt/rules/tests-unit.mdc +0 -1
  810. package/presets/cursor/nuxt/rules/types-jsdoc.mdc +18 -14
  811. package/presets/cursor/nuxt/rules/vue-a11y-coding.mdc +7 -1
  812. package/presets/cursor/nuxt/rules/vue-nuxt-anti-hallucination.mdc +9 -1
  813. package/presets/cursor/nuxt/rules/vue-ui.mdc +7 -1
  814. package/presets/cursor/nuxt/skills/technical-retro/SKILL.md +13 -2
  815. package/presets/cursor/nuxt/skills/unit-testing/SKILL.md +1 -1
  816. package/presets/cursor/nuxt/team/README.md +5 -2
  817. package/presets/cursor/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  818. package/presets/cursor/php-hexagonal/REPO_AGENTS.md +10 -6
  819. package/presets/cursor/php-hexagonal/agents/build-verifier.md +3 -39
  820. package/presets/cursor/php-hexagonal/agents/ci-investigator.md +2 -2
  821. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -1
  822. package/presets/cursor/php-hexagonal/agents/debugger.md +1 -1
  823. package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -3
  824. package/presets/cursor/php-hexagonal/agents/openspec-author.md +1 -1
  825. package/presets/cursor/php-hexagonal/agents/task-analyst.md +2 -2
  826. package/presets/cursor/php-hexagonal/agents/task-router.md +10 -0
  827. package/presets/cursor/php-hexagonal/agents/tech-writer.md +1 -1
  828. package/presets/cursor/php-hexagonal/commands/task-continue.md +1 -1
  829. package/presets/cursor/php-hexagonal/commands/task.md +1 -1
  830. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +418 -35
  831. package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +1 -1
  832. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +13 -2
  833. package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +7 -30
  834. package/presets/cursor/php-hexagonal/rules/anti-sycophancy-discipline.mdc +0 -2
  835. package/presets/cursor/php-hexagonal/rules/design-guidance.mdc +0 -2
  836. package/presets/cursor/php-hexagonal/rules/language-policy.mdc +1 -1
  837. package/presets/cursor/php-hexagonal/rules/preset-goals.mdc +2 -2
  838. package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +2 -2
  839. package/presets/cursor/php-hexagonal/rules/preset-no-cross-stack-leakage.mdc +2 -3
  840. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +8 -4
  841. package/presets/cursor/php-hexagonal/rules/preset-token-budget.mdc +4 -5
  842. package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +7 -7
  843. package/presets/cursor/php-hexagonal/rules/preset-writing-style.mdc +2 -2
  844. package/presets/cursor/php-hexagonal/rules/reference-features.mdc +0 -5
  845. package/presets/cursor/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  846. package/presets/cursor/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  847. package/presets/cursor/php-hexagonal/team/README.md +5 -2
  848. package/presets/cursor/php-laravel/REPO_AGENTS.md +10 -6
  849. package/presets/cursor/php-laravel/agents/build-verifier.md +3 -39
  850. package/presets/cursor/php-laravel/agents/ci-investigator.md +2 -2
  851. package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -1
  852. package/presets/cursor/php-laravel/agents/debugger.md +1 -1
  853. package/presets/cursor/php-laravel/agents/feature-developer.md +1 -3
  854. package/presets/cursor/php-laravel/agents/openspec-author.md +1 -1
  855. package/presets/cursor/php-laravel/agents/task-analyst.md +2 -2
  856. package/presets/cursor/php-laravel/agents/task-router.md +10 -0
  857. package/presets/cursor/php-laravel/agents/tech-writer.md +1 -1
  858. package/presets/cursor/php-laravel/commands/task-continue.md +1 -1
  859. package/presets/cursor/php-laravel/commands/task.md +1 -1
  860. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +418 -35
  861. package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +1 -1
  862. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +13 -2
  863. package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +7 -30
  864. package/presets/cursor/php-laravel/rules/anti-sycophancy-discipline.mdc +0 -2
  865. package/presets/cursor/php-laravel/rules/design-guidance.mdc +0 -2
  866. package/presets/cursor/php-laravel/rules/language-policy.mdc +1 -1
  867. package/presets/cursor/php-laravel/rules/preset-goals.mdc +2 -2
  868. package/presets/cursor/php-laravel/rules/preset-layering.mdc +2 -2
  869. package/presets/cursor/php-laravel/rules/preset-no-cross-stack-leakage.mdc +2 -3
  870. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +8 -4
  871. package/presets/cursor/php-laravel/rules/preset-token-budget.mdc +4 -5
  872. package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +7 -7
  873. package/presets/cursor/php-laravel/rules/preset-writing-style.mdc +2 -2
  874. package/presets/cursor/php-laravel/rules/reference-features.mdc +0 -5
  875. package/presets/cursor/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  876. package/presets/cursor/php-laravel/skills/technical-retro/SKILL.md +13 -2
  877. package/presets/cursor/php-laravel/team/README.md +5 -2
  878. package/presets/cursor/svelte/REPO_AGENTS.md +10 -6
  879. package/presets/cursor/svelte/agents/build-verifier.md +1 -39
  880. package/presets/cursor/svelte/agents/code-reviewer.md +1 -1
  881. package/presets/cursor/svelte/agents/debugger.md +1 -1
  882. package/presets/cursor/svelte/agents/feature-developer.md +1 -1
  883. package/presets/cursor/svelte/agents/openspec-author.md +1 -1
  884. package/presets/cursor/svelte/agents/task-analyst.md +2 -2
  885. package/presets/cursor/svelte/agents/task-router.md +10 -0
  886. package/presets/cursor/svelte/agents/tech-writer.md +1 -1
  887. package/presets/cursor/svelte/agents/unit-test-generator.md +1 -1
  888. package/presets/cursor/svelte/agents/unit-test-planner.md +1 -1
  889. package/presets/cursor/svelte/commands/task-continue.md +1 -1
  890. package/presets/cursor/svelte/commands/task.md +1 -1
  891. package/presets/cursor/svelte/hooks/chain-team-phases.sh +418 -33
  892. package/presets/cursor/svelte/rules/README.md +2 -2
  893. package/presets/cursor/svelte/rules/agent-team-intake.mdc +1 -1
  894. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +14 -3
  895. package/presets/cursor/svelte/rules/ai-local-overlay.mdc +7 -30
  896. package/presets/cursor/svelte/rules/anti-sycophancy-discipline.mdc +0 -2
  897. package/presets/cursor/svelte/rules/css-property-order-stylelint.mdc +4 -1
  898. package/presets/cursor/svelte/rules/design-guidance.mdc +0 -2
  899. package/presets/cursor/svelte/rules/language-policy.mdc +1 -1
  900. package/presets/cursor/svelte/rules/mockup-review.mdc +34 -29
  901. package/presets/cursor/svelte/rules/preset-goals.mdc +2 -2
  902. package/presets/cursor/svelte/rules/preset-layering.mdc +2 -2
  903. package/presets/cursor/svelte/rules/preset-no-cross-stack-leakage.mdc +2 -3
  904. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +8 -4
  905. package/presets/cursor/svelte/rules/preset-token-budget.mdc +4 -5
  906. package/presets/cursor/svelte/rules/preset-twin-sync.mdc +7 -7
  907. package/presets/cursor/svelte/rules/preset-writing-style.mdc +2 -2
  908. package/presets/cursor/svelte/rules/reference-features.mdc +0 -6
  909. package/presets/cursor/svelte/rules/svelte-script-conventions.mdc +3 -1
  910. package/presets/cursor/svelte/rules/svelte-sveltekit-anti-hallucination.mdc +6 -1
  911. package/presets/cursor/svelte/rules/tests-e2e-structure.mdc +0 -1
  912. package/presets/cursor/svelte/rules/tests-unit.mdc +0 -1
  913. package/presets/cursor/svelte/rules/types-jsdoc.mdc +18 -14
  914. package/presets/cursor/svelte/skills/technical-retro/SKILL.md +13 -2
  915. package/presets/cursor/svelte/skills/unit-testing/SKILL.md +1 -1
  916. package/presets/cursor/svelte/team/README.md +5 -2
  917. package/presets/cursor/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  918. package/presets/mavis/android-kotlin/REPO_AGENTS.md +10 -6
  919. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  920. package/presets/mavis/android-kotlin/agents/build-verifier.md +2 -36
  921. package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -1
  922. package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
  923. package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
  924. package/presets/mavis/android-kotlin/agents/openspec-author.md +1 -1
  925. package/presets/mavis/android-kotlin/agents/task-analyst.md +2 -2
  926. package/presets/mavis/android-kotlin/agents/task-router.md +10 -0
  927. package/presets/mavis/android-kotlin/agents/tech-writer.md +1 -1
  928. package/presets/mavis/android-kotlin/agents/unit-test-generator.md +1 -1
  929. package/presets/mavis/android-kotlin/agents/unit-test-planner.md +1 -1
  930. package/presets/mavis/android-kotlin/commands/task-continue.md +1 -1
  931. package/presets/mavis/android-kotlin/commands/task.md +1 -1
  932. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +418 -33
  933. package/presets/mavis/android-kotlin/rules/agent-team-intake.md +1 -1
  934. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +19 -5
  935. package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +7 -30
  936. package/presets/mavis/android-kotlin/rules/mockup-review.md +34 -29
  937. package/presets/mavis/android-kotlin/rules/preset-no-cross-stack-leakage.md +0 -1
  938. package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +6 -2
  939. package/presets/mavis/android-kotlin/rules/preset-token-budget.md +2 -3
  940. package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +5 -5
  941. package/presets/mavis/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  942. package/presets/mavis/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  943. package/presets/mavis/android-kotlin/team/README.md +5 -2
  944. package/presets/mavis/go/REPO_AGENTS.md +10 -6
  945. package/presets/mavis/go/adapter-map.json +1 -1
  946. package/presets/mavis/go/agents/build-verifier.md +2 -28
  947. package/presets/mavis/go/agents/ci-investigator.md +2 -2
  948. package/presets/mavis/go/agents/code-reviewer.md +1 -1
  949. package/presets/mavis/go/agents/debugger.md +1 -1
  950. package/presets/mavis/go/agents/feature-developer.md +1 -3
  951. package/presets/mavis/go/agents/openspec-author.md +1 -1
  952. package/presets/mavis/go/agents/task-analyst.md +2 -2
  953. package/presets/mavis/go/agents/task-router.md +10 -0
  954. package/presets/mavis/go/agents/tech-writer.md +1 -1
  955. package/presets/mavis/go/commands/task-continue.md +1 -1
  956. package/presets/mavis/go/commands/task.md +1 -1
  957. package/presets/mavis/go/hooks/chain-team-phases.sh +418 -35
  958. package/presets/mavis/go/rules/agent-team-intake.md +1 -1
  959. package/presets/mavis/go/rules/agent-team-orchestrator.md +19 -5
  960. package/presets/mavis/go/rules/ai-local-overlay.md +7 -30
  961. package/presets/mavis/go/rules/feature-delivery-workflow.md +1 -1
  962. package/presets/mavis/go/rules/preset-no-cross-stack-leakage.md +0 -1
  963. package/presets/mavis/go/rules/preset-pr-checklist.md +6 -2
  964. package/presets/mavis/go/rules/preset-token-budget.md +2 -3
  965. package/presets/mavis/go/rules/preset-twin-sync.md +5 -5
  966. package/presets/mavis/go/skills/ci-investigation/SKILL.md +1 -1
  967. package/presets/mavis/go/skills/technical-retro/SKILL.md +13 -2
  968. package/presets/mavis/go/team/README.md +5 -2
  969. package/presets/mavis/ios-swift/REPO_AGENTS.md +10 -6
  970. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  971. package/presets/mavis/ios-swift/agents/build-verifier.md +2 -38
  972. package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -1
  973. package/presets/mavis/ios-swift/agents/debugger.md +1 -1
  974. package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
  975. package/presets/mavis/ios-swift/agents/openspec-author.md +1 -1
  976. package/presets/mavis/ios-swift/agents/task-analyst.md +2 -2
  977. package/presets/mavis/ios-swift/agents/task-router.md +10 -0
  978. package/presets/mavis/ios-swift/agents/tech-writer.md +1 -1
  979. package/presets/mavis/ios-swift/agents/unit-test-generator.md +1 -1
  980. package/presets/mavis/ios-swift/agents/unit-test-planner.md +1 -1
  981. package/presets/mavis/ios-swift/agents/xcuitest-test-generator.md +1 -1
  982. package/presets/mavis/ios-swift/agents/xcuitest-test-planner.md +2 -2
  983. package/presets/mavis/ios-swift/commands/task-continue.md +1 -1
  984. package/presets/mavis/ios-swift/commands/task.md +1 -1
  985. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +418 -33
  986. package/presets/mavis/ios-swift/rules/agent-team-intake.md +1 -1
  987. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +19 -5
  988. package/presets/mavis/ios-swift/rules/ai-local-overlay.md +7 -30
  989. package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +1 -1
  990. package/presets/mavis/ios-swift/rules/mockup-review.md +34 -29
  991. package/presets/mavis/ios-swift/rules/preset-no-cross-stack-leakage.md +0 -1
  992. package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +6 -2
  993. package/presets/mavis/ios-swift/rules/preset-token-budget.md +2 -3
  994. package/presets/mavis/ios-swift/rules/preset-twin-sync.md +5 -5
  995. package/presets/mavis/ios-swift/skills/technical-retro/SKILL.md +13 -2
  996. package/presets/mavis/ios-swift/skills/unit-testing/SKILL.md +1 -1
  997. package/presets/mavis/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  998. package/presets/mavis/ios-swift/team/README.md +5 -2
  999. package/presets/mavis/java/REPO_AGENTS.md +10 -6
  1000. package/presets/mavis/java/adapter-map.json +1 -1
  1001. package/presets/mavis/java/agents/build-verifier.md +2 -38
  1002. package/presets/mavis/java/agents/ci-investigator.md +2 -2
  1003. package/presets/mavis/java/agents/code-reviewer.md +1 -1
  1004. package/presets/mavis/java/agents/debugger.md +1 -1
  1005. package/presets/mavis/java/agents/feature-developer.md +1 -3
  1006. package/presets/mavis/java/agents/openspec-author.md +1 -1
  1007. package/presets/mavis/java/agents/task-analyst.md +2 -2
  1008. package/presets/mavis/java/agents/task-router.md +10 -0
  1009. package/presets/mavis/java/agents/tech-writer.md +1 -1
  1010. package/presets/mavis/java/commands/task-continue.md +1 -1
  1011. package/presets/mavis/java/commands/task.md +1 -1
  1012. package/presets/mavis/java/hooks/chain-team-phases.sh +418 -35
  1013. package/presets/mavis/java/rules/agent-team-intake.md +1 -1
  1014. package/presets/mavis/java/rules/agent-team-orchestrator.md +19 -5
  1015. package/presets/mavis/java/rules/ai-local-overlay.md +7 -30
  1016. package/presets/mavis/java/rules/feature-delivery-workflow.md +1 -1
  1017. package/presets/mavis/java/rules/preset-no-cross-stack-leakage.md +0 -1
  1018. package/presets/mavis/java/rules/preset-pr-checklist.md +6 -2
  1019. package/presets/mavis/java/rules/preset-token-budget.md +2 -3
  1020. package/presets/mavis/java/rules/preset-twin-sync.md +5 -5
  1021. package/presets/mavis/java/skills/ci-investigation/SKILL.md +1 -1
  1022. package/presets/mavis/java/skills/technical-retro/SKILL.md +13 -2
  1023. package/presets/mavis/java/team/README.md +5 -2
  1024. package/presets/mavis/mcp-ts/REPO_AGENTS.md +10 -6
  1025. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  1026. package/presets/mavis/mcp-ts/agents/README.md +1 -1
  1027. package/presets/mavis/mcp-ts/agents/build-verifier.md +2 -31
  1028. package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
  1029. package/presets/mavis/mcp-ts/agents/task-analyst.md +2 -2
  1030. package/presets/mavis/mcp-ts/agents/task-router.md +10 -0
  1031. package/presets/mavis/mcp-ts/commands/task-continue.md +1 -1
  1032. package/presets/mavis/mcp-ts/commands/task.md +1 -1
  1033. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +417 -34
  1034. package/presets/mavis/mcp-ts/rules/agent-team-intake.md +1 -1
  1035. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +19 -5
  1036. package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +7 -30
  1037. package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +1 -1
  1038. package/presets/mavis/mcp-ts/rules/preset-no-cross-stack-leakage.md +0 -1
  1039. package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +6 -2
  1040. package/presets/mavis/mcp-ts/rules/preset-token-budget.md +2 -3
  1041. package/presets/mavis/mcp-ts/rules/preset-twin-sync.md +5 -5
  1042. package/presets/mavis/mcp-ts/team/README.md +5 -2
  1043. package/presets/mavis/next/REPO_AGENTS.md +11 -7
  1044. package/presets/mavis/next/adapter-map.json +9 -1
  1045. package/presets/mavis/next/agents/build-verifier.md +2 -42
  1046. package/presets/mavis/next/agents/code-reviewer.md +9 -38
  1047. package/presets/mavis/next/agents/debugger.md +1 -1
  1048. package/presets/mavis/next/agents/feature-developer.md +14 -25
  1049. package/presets/mavis/next/agents/mockup-reviewer.md +14 -13
  1050. package/presets/mavis/next/agents/openspec-author.md +1 -1
  1051. package/presets/mavis/next/agents/task-analyst.md +2 -2
  1052. package/presets/mavis/next/agents/task-router.md +10 -0
  1053. package/presets/mavis/next/agents/tech-writer.md +1 -1
  1054. package/presets/mavis/next/agents/unit-test-generator.md +1 -1
  1055. package/presets/mavis/next/agents/unit-test-planner.md +1 -1
  1056. package/presets/mavis/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  1057. package/presets/mavis/next/ai-local/rules-library/analytics-events.md +1 -1
  1058. package/presets/mavis/next/ai-local/rules-library/api-contract-source.md +1 -1
  1059. package/presets/mavis/next/ai-local/rules-library/code-style.md +1 -1
  1060. package/presets/mavis/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  1061. package/presets/mavis/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  1062. package/presets/mavis/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  1063. package/presets/mavis/next/ai-local/rules-library/no-react-fc.md +1 -1
  1064. package/presets/mavis/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  1065. package/presets/mavis/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  1066. package/presets/mavis/next/ai-local/rules-library/router-pages.md +1 -1
  1067. package/presets/mavis/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  1068. package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  1069. package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  1070. package/presets/mavis/next/commands/task-continue.md +1 -1
  1071. package/presets/mavis/next/commands/task.md +1 -1
  1072. package/presets/mavis/next/hooks/chain-team-phases.sh +418 -33
  1073. package/presets/mavis/next/rules/agent-team-intake.md +1 -1
  1074. package/presets/mavis/next/rules/agent-team-orchestrator.md +19 -5
  1075. package/presets/mavis/next/rules/ai-local-overlay.md +5 -42
  1076. package/presets/mavis/next/rules/code-review-mr.md +3 -16
  1077. package/presets/mavis/next/rules/design-tokens-binding.md +6 -19
  1078. package/presets/mavis/next/rules/feature-delivery-workflow.md +5 -12
  1079. package/presets/mavis/next/rules/mockup-review.md +44 -45
  1080. package/presets/mavis/next/rules/navigation-router-stack.md +1 -1
  1081. package/presets/mavis/next/rules/navigation-router-ui.md +1 -1
  1082. package/presets/mavis/next/rules/no-props-spread.md +1 -26
  1083. package/presets/mavis/next/rules/preset-no-cross-stack-leakage.md +0 -1
  1084. package/presets/mavis/next/rules/preset-pr-checklist.md +6 -2
  1085. package/presets/mavis/next/rules/preset-token-budget.md +2 -3
  1086. package/presets/mavis/next/rules/preset-twin-sync.md +5 -5
  1087. package/presets/mavis/next/rules/product-specs.md +1 -1
  1088. package/presets/mavis/next/rules/public-imports.md +2 -2
  1089. package/presets/mavis/next/rules/react-ui.md +1 -7
  1090. package/presets/mavis/next/rules/tests-e2e-structure.md +0 -1
  1091. package/presets/mavis/next/rules/tests-unit.md +0 -1
  1092. package/presets/mavis/next/rules/types-jsdoc.md +14 -17
  1093. package/presets/mavis/next/skills/code-review/SKILL.md +1 -1
  1094. package/presets/mavis/next/skills/figma-fidelity/SKILL.md +75 -48
  1095. package/presets/mavis/next/skills/mockup-review/SKILL.md +4 -2
  1096. package/presets/mavis/next/skills/react-performance/SKILL.md +1 -1
  1097. package/presets/mavis/next/skills/technical-retro/SKILL.md +13 -2
  1098. package/presets/mavis/next/skills/unit-testing/SKILL.md +1 -1
  1099. package/presets/mavis/next/team/README.md +5 -2
  1100. package/presets/mavis/next/team/fixtures/artifact-manifest.example.json +1 -1
  1101. package/presets/mavis/next/team/fixtures/feature-parallel.json +84 -0
  1102. package/presets/mavis/nuxt/REPO_AGENTS.md +10 -6
  1103. package/presets/mavis/nuxt/adapter-map.json +1 -1
  1104. package/presets/mavis/nuxt/agents/build-verifier.md +1 -39
  1105. package/presets/mavis/nuxt/agents/code-reviewer.md +1 -1
  1106. package/presets/mavis/nuxt/agents/debugger.md +1 -1
  1107. package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
  1108. package/presets/mavis/nuxt/agents/openspec-author.md +1 -1
  1109. package/presets/mavis/nuxt/agents/task-analyst.md +2 -2
  1110. package/presets/mavis/nuxt/agents/task-router.md +10 -0
  1111. package/presets/mavis/nuxt/agents/tech-writer.md +1 -1
  1112. package/presets/mavis/nuxt/agents/unit-test-generator.md +1 -1
  1113. package/presets/mavis/nuxt/agents/unit-test-planner.md +1 -1
  1114. package/presets/mavis/nuxt/commands/task-continue.md +1 -1
  1115. package/presets/mavis/nuxt/commands/task.md +1 -1
  1116. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +418 -33
  1117. package/presets/mavis/nuxt/rules/agent-team-intake.md +1 -1
  1118. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +19 -5
  1119. package/presets/mavis/nuxt/rules/ai-local-overlay.md +7 -30
  1120. package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +1 -1
  1121. package/presets/mavis/nuxt/rules/mockup-review.md +34 -29
  1122. package/presets/mavis/nuxt/rules/preset-no-cross-stack-leakage.md +0 -1
  1123. package/presets/mavis/nuxt/rules/preset-pr-checklist.md +6 -2
  1124. package/presets/mavis/nuxt/rules/preset-token-budget.md +2 -3
  1125. package/presets/mavis/nuxt/rules/preset-twin-sync.md +5 -5
  1126. package/presets/mavis/nuxt/rules/public-imports.md +2 -2
  1127. package/presets/mavis/nuxt/rules/tests-e2e-structure.md +0 -1
  1128. package/presets/mavis/nuxt/rules/tests-unit.md +0 -1
  1129. package/presets/mavis/nuxt/rules/types-jsdoc.md +18 -14
  1130. package/presets/mavis/nuxt/skills/technical-retro/SKILL.md +13 -2
  1131. package/presets/mavis/nuxt/skills/unit-testing/SKILL.md +1 -1
  1132. package/presets/mavis/nuxt/team/README.md +5 -2
  1133. package/presets/mavis/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  1134. package/presets/mavis/php-hexagonal/REPO_AGENTS.md +10 -6
  1135. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  1136. package/presets/mavis/php-hexagonal/agents/build-verifier.md +2 -38
  1137. package/presets/mavis/php-hexagonal/agents/ci-investigator.md +2 -2
  1138. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -1
  1139. package/presets/mavis/php-hexagonal/agents/debugger.md +1 -1
  1140. package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -3
  1141. package/presets/mavis/php-hexagonal/agents/openspec-author.md +1 -1
  1142. package/presets/mavis/php-hexagonal/agents/task-analyst.md +2 -2
  1143. package/presets/mavis/php-hexagonal/agents/task-router.md +10 -0
  1144. package/presets/mavis/php-hexagonal/agents/tech-writer.md +1 -1
  1145. package/presets/mavis/php-hexagonal/commands/task-continue.md +1 -1
  1146. package/presets/mavis/php-hexagonal/commands/task.md +1 -1
  1147. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +418 -35
  1148. package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +1 -1
  1149. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +19 -5
  1150. package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +7 -30
  1151. package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
  1152. package/presets/mavis/php-hexagonal/rules/preset-no-cross-stack-leakage.md +0 -1
  1153. package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +6 -2
  1154. package/presets/mavis/php-hexagonal/rules/preset-token-budget.md +2 -3
  1155. package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +5 -5
  1156. package/presets/mavis/php-hexagonal/skills/ci-investigation/SKILL.md +1 -1
  1157. package/presets/mavis/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  1158. package/presets/mavis/php-hexagonal/team/README.md +5 -2
  1159. package/presets/mavis/php-laravel/REPO_AGENTS.md +10 -6
  1160. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  1161. package/presets/mavis/php-laravel/agents/build-verifier.md +2 -38
  1162. package/presets/mavis/php-laravel/agents/ci-investigator.md +2 -2
  1163. package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -1
  1164. package/presets/mavis/php-laravel/agents/debugger.md +1 -1
  1165. package/presets/mavis/php-laravel/agents/feature-developer.md +1 -3
  1166. package/presets/mavis/php-laravel/agents/openspec-author.md +1 -1
  1167. package/presets/mavis/php-laravel/agents/task-analyst.md +2 -2
  1168. package/presets/mavis/php-laravel/agents/task-router.md +10 -0
  1169. package/presets/mavis/php-laravel/agents/tech-writer.md +1 -1
  1170. package/presets/mavis/php-laravel/commands/task-continue.md +1 -1
  1171. package/presets/mavis/php-laravel/commands/task.md +1 -1
  1172. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +418 -35
  1173. package/presets/mavis/php-laravel/rules/agent-team-intake.md +1 -1
  1174. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +19 -5
  1175. package/presets/mavis/php-laravel/rules/ai-local-overlay.md +7 -30
  1176. package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +1 -1
  1177. package/presets/mavis/php-laravel/rules/preset-no-cross-stack-leakage.md +0 -1
  1178. package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +6 -2
  1179. package/presets/mavis/php-laravel/rules/preset-token-budget.md +2 -3
  1180. package/presets/mavis/php-laravel/rules/preset-twin-sync.md +5 -5
  1181. package/presets/mavis/php-laravel/skills/ci-investigation/SKILL.md +1 -1
  1182. package/presets/mavis/php-laravel/skills/technical-retro/SKILL.md +13 -2
  1183. package/presets/mavis/php-laravel/team/README.md +5 -2
  1184. package/presets/mavis/svelte/REPO_AGENTS.md +10 -6
  1185. package/presets/mavis/svelte/adapter-map.json +1 -1
  1186. package/presets/mavis/svelte/agents/build-verifier.md +1 -39
  1187. package/presets/mavis/svelte/agents/code-reviewer.md +1 -1
  1188. package/presets/mavis/svelte/agents/debugger.md +1 -1
  1189. package/presets/mavis/svelte/agents/feature-developer.md +1 -1
  1190. package/presets/mavis/svelte/agents/openspec-author.md +1 -1
  1191. package/presets/mavis/svelte/agents/task-analyst.md +2 -2
  1192. package/presets/mavis/svelte/agents/task-router.md +10 -0
  1193. package/presets/mavis/svelte/agents/tech-writer.md +1 -1
  1194. package/presets/mavis/svelte/agents/unit-test-generator.md +1 -1
  1195. package/presets/mavis/svelte/agents/unit-test-planner.md +1 -1
  1196. package/presets/mavis/svelte/commands/task-continue.md +1 -1
  1197. package/presets/mavis/svelte/commands/task.md +1 -1
  1198. package/presets/mavis/svelte/hooks/chain-team-phases.sh +418 -33
  1199. package/presets/mavis/svelte/rules/agent-team-intake.md +1 -1
  1200. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +19 -5
  1201. package/presets/mavis/svelte/rules/ai-local-overlay.md +7 -30
  1202. package/presets/mavis/svelte/rules/feature-delivery-workflow.md +1 -1
  1203. package/presets/mavis/svelte/rules/mockup-review.md +34 -29
  1204. package/presets/mavis/svelte/rules/preset-no-cross-stack-leakage.md +0 -1
  1205. package/presets/mavis/svelte/rules/preset-pr-checklist.md +6 -2
  1206. package/presets/mavis/svelte/rules/preset-token-budget.md +2 -3
  1207. package/presets/mavis/svelte/rules/preset-twin-sync.md +5 -5
  1208. package/presets/mavis/svelte/rules/tests-e2e-structure.md +0 -1
  1209. package/presets/mavis/svelte/rules/tests-unit.md +0 -1
  1210. package/presets/mavis/svelte/rules/types-jsdoc.md +18 -14
  1211. package/presets/mavis/svelte/skills/technical-retro/SKILL.md +13 -2
  1212. package/presets/mavis/svelte/skills/unit-testing/SKILL.md +1 -1
  1213. package/presets/mavis/svelte/team/README.md +5 -2
  1214. package/presets/mavis/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  1215. package/presets/opencode/android-kotlin/REPO_AGENTS.md +10 -6
  1216. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  1217. package/presets/opencode/android-kotlin/agents/build-verifier.md +3 -37
  1218. package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
  1219. package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
  1220. package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
  1221. package/presets/opencode/android-kotlin/agents/openspec-author.md +1 -1
  1222. package/presets/opencode/android-kotlin/agents/task-analyst.md +2 -2
  1223. package/presets/opencode/android-kotlin/agents/task-router.md +10 -0
  1224. package/presets/opencode/android-kotlin/agents/tech-writer.md +1 -1
  1225. package/presets/opencode/android-kotlin/agents/unit-test-generator.md +1 -1
  1226. package/presets/opencode/android-kotlin/agents/unit-test-planner.md +1 -1
  1227. package/presets/opencode/android-kotlin/commands/task-continue.md +1 -1
  1228. package/presets/opencode/android-kotlin/commands/task.md +1 -1
  1229. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +418 -33
  1230. package/presets/opencode/android-kotlin/rules/agent-team-intake.md +1 -1
  1231. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +19 -5
  1232. package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +7 -30
  1233. package/presets/opencode/android-kotlin/rules/mockup-review.md +34 -29
  1234. package/presets/opencode/android-kotlin/rules/preset-no-cross-stack-leakage.md +0 -1
  1235. package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +6 -2
  1236. package/presets/opencode/android-kotlin/rules/preset-token-budget.md +2 -3
  1237. package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +5 -5
  1238. package/presets/opencode/android-kotlin/skills/technical-retro/SKILL.md +13 -2
  1239. package/presets/opencode/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  1240. package/presets/opencode/android-kotlin/team/README.md +5 -2
  1241. package/presets/opencode/go/REPO_AGENTS.md +10 -6
  1242. package/presets/opencode/go/adapter-map.json +1 -1
  1243. package/presets/opencode/go/agents/build-verifier.md +3 -29
  1244. package/presets/opencode/go/agents/ci-investigator.md +2 -2
  1245. package/presets/opencode/go/agents/code-reviewer.md +1 -1
  1246. package/presets/opencode/go/agents/debugger.md +1 -1
  1247. package/presets/opencode/go/agents/feature-developer.md +1 -3
  1248. package/presets/opencode/go/agents/openspec-author.md +1 -1
  1249. package/presets/opencode/go/agents/task-analyst.md +2 -2
  1250. package/presets/opencode/go/agents/task-router.md +10 -0
  1251. package/presets/opencode/go/agents/tech-writer.md +1 -1
  1252. package/presets/opencode/go/commands/task-continue.md +1 -1
  1253. package/presets/opencode/go/commands/task.md +1 -1
  1254. package/presets/opencode/go/hooks/chain-team-phases.sh +418 -35
  1255. package/presets/opencode/go/rules/agent-team-intake.md +1 -1
  1256. package/presets/opencode/go/rules/agent-team-orchestrator.md +19 -5
  1257. package/presets/opencode/go/rules/ai-local-overlay.md +7 -30
  1258. package/presets/opencode/go/rules/feature-delivery-workflow.md +1 -1
  1259. package/presets/opencode/go/rules/preset-no-cross-stack-leakage.md +0 -1
  1260. package/presets/opencode/go/rules/preset-pr-checklist.md +6 -2
  1261. package/presets/opencode/go/rules/preset-token-budget.md +2 -3
  1262. package/presets/opencode/go/rules/preset-twin-sync.md +5 -5
  1263. package/presets/opencode/go/skills/ci-investigation/SKILL.md +2 -2
  1264. package/presets/opencode/go/skills/technical-retro/SKILL.md +13 -2
  1265. package/presets/opencode/go/team/README.md +5 -2
  1266. package/presets/opencode/ios-swift/REPO_AGENTS.md +10 -6
  1267. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  1268. package/presets/opencode/ios-swift/agents/build-verifier.md +3 -39
  1269. package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
  1270. package/presets/opencode/ios-swift/agents/debugger.md +1 -1
  1271. package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
  1272. package/presets/opencode/ios-swift/agents/openspec-author.md +1 -1
  1273. package/presets/opencode/ios-swift/agents/task-analyst.md +2 -2
  1274. package/presets/opencode/ios-swift/agents/task-router.md +10 -0
  1275. package/presets/opencode/ios-swift/agents/tech-writer.md +1 -1
  1276. package/presets/opencode/ios-swift/agents/unit-test-generator.md +1 -1
  1277. package/presets/opencode/ios-swift/agents/unit-test-planner.md +1 -1
  1278. package/presets/opencode/ios-swift/agents/xcuitest-test-generator.md +1 -1
  1279. package/presets/opencode/ios-swift/agents/xcuitest-test-planner.md +2 -2
  1280. package/presets/opencode/ios-swift/commands/task-continue.md +1 -1
  1281. package/presets/opencode/ios-swift/commands/task.md +1 -1
  1282. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +418 -33
  1283. package/presets/opencode/ios-swift/rules/agent-team-intake.md +1 -1
  1284. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +19 -5
  1285. package/presets/opencode/ios-swift/rules/ai-local-overlay.md +7 -30
  1286. package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +1 -1
  1287. package/presets/opencode/ios-swift/rules/mockup-review.md +34 -29
  1288. package/presets/opencode/ios-swift/rules/preset-no-cross-stack-leakage.md +0 -1
  1289. package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +6 -2
  1290. package/presets/opencode/ios-swift/rules/preset-token-budget.md +2 -3
  1291. package/presets/opencode/ios-swift/rules/preset-twin-sync.md +5 -5
  1292. package/presets/opencode/ios-swift/skills/technical-retro/SKILL.md +13 -2
  1293. package/presets/opencode/ios-swift/skills/unit-testing/SKILL.md +1 -1
  1294. package/presets/opencode/ios-swift/skills/xcuitest-e2e/SKILL.md +1 -1
  1295. package/presets/opencode/ios-swift/team/README.md +5 -2
  1296. package/presets/opencode/java/REPO_AGENTS.md +10 -6
  1297. package/presets/opencode/java/adapter-map.json +1 -1
  1298. package/presets/opencode/java/agents/build-verifier.md +3 -39
  1299. package/presets/opencode/java/agents/ci-investigator.md +2 -2
  1300. package/presets/opencode/java/agents/code-reviewer.md +1 -1
  1301. package/presets/opencode/java/agents/debugger.md +1 -1
  1302. package/presets/opencode/java/agents/feature-developer.md +1 -3
  1303. package/presets/opencode/java/agents/openspec-author.md +1 -1
  1304. package/presets/opencode/java/agents/task-analyst.md +2 -2
  1305. package/presets/opencode/java/agents/task-router.md +10 -0
  1306. package/presets/opencode/java/agents/tech-writer.md +1 -1
  1307. package/presets/opencode/java/commands/task-continue.md +1 -1
  1308. package/presets/opencode/java/commands/task.md +1 -1
  1309. package/presets/opencode/java/hooks/chain-team-phases.sh +418 -35
  1310. package/presets/opencode/java/rules/agent-team-intake.md +1 -1
  1311. package/presets/opencode/java/rules/agent-team-orchestrator.md +19 -5
  1312. package/presets/opencode/java/rules/ai-local-overlay.md +7 -30
  1313. package/presets/opencode/java/rules/feature-delivery-workflow.md +1 -1
  1314. package/presets/opencode/java/rules/preset-no-cross-stack-leakage.md +0 -1
  1315. package/presets/opencode/java/rules/preset-pr-checklist.md +6 -2
  1316. package/presets/opencode/java/rules/preset-token-budget.md +2 -3
  1317. package/presets/opencode/java/rules/preset-twin-sync.md +5 -5
  1318. package/presets/opencode/java/skills/ci-investigation/SKILL.md +2 -2
  1319. package/presets/opencode/java/skills/technical-retro/SKILL.md +13 -2
  1320. package/presets/opencode/java/team/README.md +5 -2
  1321. package/presets/opencode/mcp-ts/REPO_AGENTS.md +10 -6
  1322. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  1323. package/presets/opencode/mcp-ts/agents/README.md +1 -1
  1324. package/presets/opencode/mcp-ts/agents/build-verifier.md +3 -32
  1325. package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
  1326. package/presets/opencode/mcp-ts/agents/task-analyst.md +2 -2
  1327. package/presets/opencode/mcp-ts/agents/task-router.md +10 -0
  1328. package/presets/opencode/mcp-ts/commands/task-continue.md +1 -1
  1329. package/presets/opencode/mcp-ts/commands/task.md +1 -1
  1330. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +417 -34
  1331. package/presets/opencode/mcp-ts/rules/agent-team-intake.md +1 -1
  1332. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +19 -5
  1333. package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +7 -30
  1334. package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +1 -1
  1335. package/presets/opencode/mcp-ts/rules/preset-no-cross-stack-leakage.md +0 -1
  1336. package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +6 -2
  1337. package/presets/opencode/mcp-ts/rules/preset-token-budget.md +2 -3
  1338. package/presets/opencode/mcp-ts/rules/preset-twin-sync.md +5 -5
  1339. package/presets/opencode/mcp-ts/team/README.md +5 -2
  1340. package/presets/opencode/next/REPO_AGENTS.md +11 -7
  1341. package/presets/opencode/next/adapter-map.json +9 -1
  1342. package/presets/opencode/next/agents/build-verifier.md +2 -42
  1343. package/presets/opencode/next/agents/code-reviewer.md +9 -38
  1344. package/presets/opencode/next/agents/debugger.md +1 -1
  1345. package/presets/opencode/next/agents/feature-developer.md +14 -25
  1346. package/presets/opencode/next/agents/mockup-reviewer.md +14 -13
  1347. package/presets/opencode/next/agents/openspec-author.md +1 -1
  1348. package/presets/opencode/next/agents/task-analyst.md +2 -2
  1349. package/presets/opencode/next/agents/task-router.md +10 -0
  1350. package/presets/opencode/next/agents/tech-writer.md +1 -1
  1351. package/presets/opencode/next/agents/unit-test-generator.md +1 -1
  1352. package/presets/opencode/next/agents/unit-test-planner.md +1 -1
  1353. package/presets/opencode/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  1354. package/presets/opencode/next/ai-local/rules-library/analytics-events.md +1 -1
  1355. package/presets/opencode/next/ai-local/rules-library/api-contract-source.md +1 -1
  1356. package/presets/opencode/next/ai-local/rules-library/code-style.md +1 -1
  1357. package/presets/opencode/next/ai-local/rules-library/component-child-decomposition.md +1 -1
  1358. package/presets/opencode/next/ai-local/rules-library/feature-flags-experiments.md +1 -1
  1359. package/presets/opencode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +1 -1
  1360. package/presets/opencode/next/ai-local/rules-library/no-react-fc.md +1 -1
  1361. package/presets/opencode/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
  1362. package/presets/opencode/next/ai-local/rules-library/pwa-service-worker.md +1 -1
  1363. package/presets/opencode/next/ai-local/rules-library/router-pages.md +1 -1
  1364. package/presets/opencode/next/ai-local/rules-library/single-source-copy-constants.md +1 -1
  1365. package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  1366. package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +2 -2
  1367. package/presets/opencode/next/commands/task-continue.md +1 -1
  1368. package/presets/opencode/next/commands/task.md +1 -1
  1369. package/presets/opencode/next/hooks/chain-team-phases.sh +418 -33
  1370. package/presets/opencode/next/rules/agent-team-intake.md +1 -1
  1371. package/presets/opencode/next/rules/agent-team-orchestrator.md +19 -5
  1372. package/presets/opencode/next/rules/ai-local-overlay.md +5 -42
  1373. package/presets/opencode/next/rules/code-review-mr.md +3 -16
  1374. package/presets/opencode/next/rules/design-tokens-binding.md +6 -19
  1375. package/presets/opencode/next/rules/feature-delivery-workflow.md +5 -12
  1376. package/presets/opencode/next/rules/mockup-review.md +44 -45
  1377. package/presets/opencode/next/rules/navigation-router-stack.md +1 -1
  1378. package/presets/opencode/next/rules/navigation-router-ui.md +1 -1
  1379. package/presets/opencode/next/rules/no-props-spread.md +1 -26
  1380. package/presets/opencode/next/rules/preset-no-cross-stack-leakage.md +0 -1
  1381. package/presets/opencode/next/rules/preset-pr-checklist.md +6 -2
  1382. package/presets/opencode/next/rules/preset-token-budget.md +2 -3
  1383. package/presets/opencode/next/rules/preset-twin-sync.md +5 -5
  1384. package/presets/opencode/next/rules/product-specs.md +1 -1
  1385. package/presets/opencode/next/rules/public-imports.md +2 -2
  1386. package/presets/opencode/next/rules/react-ui.md +1 -7
  1387. package/presets/opencode/next/rules/tests-e2e-structure.md +0 -1
  1388. package/presets/opencode/next/rules/tests-unit.md +0 -1
  1389. package/presets/opencode/next/rules/types-jsdoc.md +14 -17
  1390. package/presets/opencode/next/skills/code-review/SKILL.md +1 -1
  1391. package/presets/opencode/next/skills/figma-fidelity/SKILL.md +76 -49
  1392. package/presets/opencode/next/skills/mockup-review/SKILL.md +4 -2
  1393. package/presets/opencode/next/skills/react-performance/SKILL.md +1 -1
  1394. package/presets/opencode/next/skills/technical-retro/SKILL.md +13 -2
  1395. package/presets/opencode/next/skills/unit-testing/SKILL.md +1 -1
  1396. package/presets/opencode/next/team/README.md +5 -2
  1397. package/presets/opencode/next/team/fixtures/artifact-manifest.example.json +1 -1
  1398. package/presets/opencode/next/team/fixtures/feature-parallel.json +84 -0
  1399. package/presets/opencode/nuxt/REPO_AGENTS.md +10 -6
  1400. package/presets/opencode/nuxt/adapter-map.json +1 -1
  1401. package/presets/opencode/nuxt/agents/build-verifier.md +1 -39
  1402. package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
  1403. package/presets/opencode/nuxt/agents/debugger.md +1 -1
  1404. package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
  1405. package/presets/opencode/nuxt/agents/openspec-author.md +1 -1
  1406. package/presets/opencode/nuxt/agents/task-analyst.md +2 -2
  1407. package/presets/opencode/nuxt/agents/task-router.md +10 -0
  1408. package/presets/opencode/nuxt/agents/tech-writer.md +1 -1
  1409. package/presets/opencode/nuxt/agents/unit-test-generator.md +1 -1
  1410. package/presets/opencode/nuxt/agents/unit-test-planner.md +1 -1
  1411. package/presets/opencode/nuxt/commands/task-continue.md +1 -1
  1412. package/presets/opencode/nuxt/commands/task.md +1 -1
  1413. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +418 -33
  1414. package/presets/opencode/nuxt/rules/agent-team-intake.md +1 -1
  1415. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +19 -5
  1416. package/presets/opencode/nuxt/rules/ai-local-overlay.md +7 -30
  1417. package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +1 -1
  1418. package/presets/opencode/nuxt/rules/mockup-review.md +34 -29
  1419. package/presets/opencode/nuxt/rules/preset-no-cross-stack-leakage.md +0 -1
  1420. package/presets/opencode/nuxt/rules/preset-pr-checklist.md +6 -2
  1421. package/presets/opencode/nuxt/rules/preset-token-budget.md +2 -3
  1422. package/presets/opencode/nuxt/rules/preset-twin-sync.md +5 -5
  1423. package/presets/opencode/nuxt/rules/public-imports.md +2 -2
  1424. package/presets/opencode/nuxt/rules/tests-e2e-structure.md +0 -1
  1425. package/presets/opencode/nuxt/rules/tests-unit.md +0 -1
  1426. package/presets/opencode/nuxt/rules/types-jsdoc.md +18 -14
  1427. package/presets/opencode/nuxt/skills/technical-retro/SKILL.md +13 -2
  1428. package/presets/opencode/nuxt/skills/unit-testing/SKILL.md +1 -1
  1429. package/presets/opencode/nuxt/team/README.md +5 -2
  1430. package/presets/opencode/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  1431. package/presets/opencode/php-hexagonal/REPO_AGENTS.md +10 -6
  1432. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  1433. package/presets/opencode/php-hexagonal/agents/build-verifier.md +3 -39
  1434. package/presets/opencode/php-hexagonal/agents/ci-investigator.md +2 -2
  1435. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
  1436. package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
  1437. package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -3
  1438. package/presets/opencode/php-hexagonal/agents/openspec-author.md +1 -1
  1439. package/presets/opencode/php-hexagonal/agents/task-analyst.md +2 -2
  1440. package/presets/opencode/php-hexagonal/agents/task-router.md +10 -0
  1441. package/presets/opencode/php-hexagonal/agents/tech-writer.md +1 -1
  1442. package/presets/opencode/php-hexagonal/commands/task-continue.md +1 -1
  1443. package/presets/opencode/php-hexagonal/commands/task.md +1 -1
  1444. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +418 -35
  1445. package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +1 -1
  1446. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +19 -5
  1447. package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +7 -30
  1448. package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
  1449. package/presets/opencode/php-hexagonal/rules/preset-no-cross-stack-leakage.md +0 -1
  1450. package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +6 -2
  1451. package/presets/opencode/php-hexagonal/rules/preset-token-budget.md +2 -3
  1452. package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +5 -5
  1453. package/presets/opencode/php-hexagonal/skills/ci-investigation/SKILL.md +2 -2
  1454. package/presets/opencode/php-hexagonal/skills/technical-retro/SKILL.md +13 -2
  1455. package/presets/opencode/php-hexagonal/team/README.md +5 -2
  1456. package/presets/opencode/php-laravel/REPO_AGENTS.md +10 -6
  1457. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  1458. package/presets/opencode/php-laravel/agents/build-verifier.md +3 -39
  1459. package/presets/opencode/php-laravel/agents/ci-investigator.md +2 -2
  1460. package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
  1461. package/presets/opencode/php-laravel/agents/debugger.md +1 -1
  1462. package/presets/opencode/php-laravel/agents/feature-developer.md +1 -3
  1463. package/presets/opencode/php-laravel/agents/openspec-author.md +1 -1
  1464. package/presets/opencode/php-laravel/agents/task-analyst.md +2 -2
  1465. package/presets/opencode/php-laravel/agents/task-router.md +10 -0
  1466. package/presets/opencode/php-laravel/agents/tech-writer.md +1 -1
  1467. package/presets/opencode/php-laravel/commands/task-continue.md +1 -1
  1468. package/presets/opencode/php-laravel/commands/task.md +1 -1
  1469. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +418 -35
  1470. package/presets/opencode/php-laravel/rules/agent-team-intake.md +1 -1
  1471. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +19 -5
  1472. package/presets/opencode/php-laravel/rules/ai-local-overlay.md +7 -30
  1473. package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +1 -1
  1474. package/presets/opencode/php-laravel/rules/preset-no-cross-stack-leakage.md +0 -1
  1475. package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +6 -2
  1476. package/presets/opencode/php-laravel/rules/preset-token-budget.md +2 -3
  1477. package/presets/opencode/php-laravel/rules/preset-twin-sync.md +5 -5
  1478. package/presets/opencode/php-laravel/skills/ci-investigation/SKILL.md +2 -2
  1479. package/presets/opencode/php-laravel/skills/technical-retro/SKILL.md +13 -2
  1480. package/presets/opencode/php-laravel/team/README.md +5 -2
  1481. package/presets/opencode/svelte/REPO_AGENTS.md +10 -6
  1482. package/presets/opencode/svelte/adapter-map.json +1 -1
  1483. package/presets/opencode/svelte/agents/build-verifier.md +1 -39
  1484. package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
  1485. package/presets/opencode/svelte/agents/debugger.md +1 -1
  1486. package/presets/opencode/svelte/agents/feature-developer.md +1 -1
  1487. package/presets/opencode/svelte/agents/openspec-author.md +1 -1
  1488. package/presets/opencode/svelte/agents/task-analyst.md +2 -2
  1489. package/presets/opencode/svelte/agents/task-router.md +10 -0
  1490. package/presets/opencode/svelte/agents/tech-writer.md +1 -1
  1491. package/presets/opencode/svelte/agents/unit-test-generator.md +1 -1
  1492. package/presets/opencode/svelte/agents/unit-test-planner.md +1 -1
  1493. package/presets/opencode/svelte/commands/task-continue.md +1 -1
  1494. package/presets/opencode/svelte/commands/task.md +1 -1
  1495. package/presets/opencode/svelte/hooks/chain-team-phases.sh +418 -33
  1496. package/presets/opencode/svelte/rules/agent-team-intake.md +1 -1
  1497. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +19 -5
  1498. package/presets/opencode/svelte/rules/ai-local-overlay.md +7 -30
  1499. package/presets/opencode/svelte/rules/feature-delivery-workflow.md +1 -1
  1500. package/presets/opencode/svelte/rules/mockup-review.md +34 -29
  1501. package/presets/opencode/svelte/rules/preset-no-cross-stack-leakage.md +0 -1
  1502. package/presets/opencode/svelte/rules/preset-pr-checklist.md +6 -2
  1503. package/presets/opencode/svelte/rules/preset-token-budget.md +2 -3
  1504. package/presets/opencode/svelte/rules/preset-twin-sync.md +5 -5
  1505. package/presets/opencode/svelte/rules/tests-e2e-structure.md +0 -1
  1506. package/presets/opencode/svelte/rules/tests-unit.md +0 -1
  1507. package/presets/opencode/svelte/rules/types-jsdoc.md +18 -14
  1508. package/presets/opencode/svelte/skills/technical-retro/SKILL.md +13 -2
  1509. package/presets/opencode/svelte/skills/unit-testing/SKILL.md +1 -1
  1510. package/presets/opencode/svelte/team/README.md +5 -2
  1511. package/presets/opencode/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  1512. package/scripts/_lib/embed-stems.json +0 -38
  1513. package/scripts/capture-cli-golden.mjs +0 -51
  1514. package/scripts/check-chain-hook-coverage.sh +0 -124
  1515. package/scripts/check-claude-agent-blocks.mjs +0 -82
  1516. package/scripts/check-figma-contract-presence.sh +0 -119
  1517. package/scripts/check-frontmatter.mjs +0 -83
  1518. package/scripts/check-generated-drift.mjs +0 -146
  1519. package/scripts/check-hook-only-lifecycle.sh +0 -46
  1520. package/scripts/check-local-overlay.sh +0 -283
  1521. package/scripts/check-mavis-adapter-map.mjs +0 -306
  1522. package/scripts/check-mavis-local-overlay.mjs +0 -79
  1523. package/scripts/check-mavis-platform-contract.mjs +0 -390
  1524. package/scripts/check-mavis-token-budget.mjs +0 -48
  1525. package/scripts/check-opencode-adapter-map.mjs +0 -306
  1526. package/scripts/check-opencode-local-overlay.mjs +0 -75
  1527. package/scripts/check-opencode-platform-contract.mjs +0 -390
  1528. package/scripts/check-opencode-token-budget.mjs +0 -48
  1529. package/scripts/check-plan-contract.sh +0 -133
  1530. package/scripts/check-preset-goal-contract.sh +0 -214
  1531. package/scripts/check-preset-i18n.sh +0 -61
  1532. package/scripts/check-preset-language-policy.sh +0 -292
  1533. package/scripts/check-preset-leakage.sh +0 -545
  1534. package/scripts/check-preset-prompt-persistence.sh +0 -191
  1535. package/scripts/check-preset-self-review-contract.sh +0 -179
  1536. package/scripts/check-preset-structure.sh +0 -295
  1537. package/scripts/check-preset-token-budget.sh +0 -258
  1538. package/scripts/check-preset-twin-map.sh +0 -122
  1539. package/scripts/check-rule-eval.mjs +0 -165
  1540. package/scripts/check-shared-core-drift.sh +0 -155
  1541. package/scripts/check-task-router-intents.sh +0 -154
  1542. package/scripts/fixtures/cli-golden/claude/next.json +0 -145
  1543. package/scripts/fixtures/cli-golden/cursor/next.json +0 -167
  1544. package/scripts/fixtures/cli-golden/mavis/android-kotlin.json +0 -110
  1545. package/scripts/fixtures/cli-golden/mavis/go.json +0 -103
  1546. package/scripts/fixtures/cli-golden/mavis/ios-swift.json +0 -109
  1547. package/scripts/fixtures/cli-golden/mavis/java.json +0 -103
  1548. package/scripts/fixtures/cli-golden/mavis/mcp-ts.json +0 -74
  1549. package/scripts/fixtures/cli-golden/mavis/next.json +0 -160
  1550. package/scripts/fixtures/cli-golden/mavis/nuxt.json +0 -128
  1551. package/scripts/fixtures/cli-golden/mavis/php-hexagonal.json +0 -103
  1552. package/scripts/fixtures/cli-golden/mavis/php-laravel.json +0 -103
  1553. package/scripts/fixtures/cli-golden/mavis/svelte.json +0 -128
  1554. package/scripts/fixtures/cli-golden/opencode/android-kotlin.json +0 -110
  1555. package/scripts/fixtures/cli-golden/opencode/go.json +0 -103
  1556. package/scripts/fixtures/cli-golden/opencode/ios-swift.json +0 -109
  1557. package/scripts/fixtures/cli-golden/opencode/java.json +0 -103
  1558. package/scripts/fixtures/cli-golden/opencode/mcp-ts.json +0 -74
  1559. package/scripts/fixtures/cli-golden/opencode/next.json +0 -160
  1560. package/scripts/fixtures/cli-golden/opencode/nuxt.json +0 -128
  1561. package/scripts/fixtures/cli-golden/opencode/php-hexagonal.json +0 -103
  1562. package/scripts/fixtures/cli-golden/opencode/php-laravel.json +0 -103
  1563. package/scripts/fixtures/cli-golden/opencode/svelte.json +0 -128
  1564. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/AGENTS.md +0 -1
  1565. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/rules/extra.mdc +0 -1
  1566. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/cursor/rules/sample.mdc +0 -2
  1567. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/MAVIS.md +0 -1
  1568. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/adapter-map.json +0 -26
  1569. package/scripts/fixtures/mavis-adapter-map/invalid-unmapped/mavis/rules/sample.md +0 -2
  1570. package/scripts/fixtures/mavis-adapter-map/valid/cursor/AGENTS.md +0 -1
  1571. package/scripts/fixtures/mavis-adapter-map/valid/cursor/rules/sample.mdc +0 -2
  1572. package/scripts/fixtures/mavis-adapter-map/valid/mavis/MAVIS.md +0 -1
  1573. package/scripts/fixtures/mavis-adapter-map/valid/mavis/adapter-map.json +0 -26
  1574. package/scripts/fixtures/mavis-adapter-map/valid/mavis/rules/sample.md +0 -2
  1575. package/scripts/fixtures/mavis-platform-contract/invalid-minimax-destination.json +0 -131
  1576. package/scripts/fixtures/mavis-platform-contract/invalid-missing-capability.json +0 -126
  1577. package/scripts/fixtures/mavis-platform-contract/invalid-released-unknown-stack.json +0 -133
  1578. package/scripts/fixtures/mavis-platform-contract/invalid-unknown-native-path.json +0 -131
  1579. package/scripts/fixtures/mavis-platform-contract/invalid-version-pin.json +0 -132
  1580. package/scripts/fixtures/mavis-platform-contract/valid.json +0 -127
  1581. package/scripts/fixtures/mavis-probe/AGENTS.md +0 -6
  1582. package/scripts/fixtures/mavis-probe/agents/probe-agent.md +0 -6
  1583. package/scripts/fixtures/mavis-probe/fake-mcode.mjs +0 -98
  1584. package/scripts/fixtures/mavis-probe/output.schema.json +0 -28
  1585. package/scripts/fixtures/mavis-probe/rules/probe.md +0 -5
  1586. package/scripts/fixtures/mavis-probe/skills/probe/SKILL.md +0 -11
  1587. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/AGENTS.md +0 -1
  1588. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/rules/extra.mdc +0 -1
  1589. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/cursor/rules/sample.mdc +0 -2
  1590. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/OPENCODE.md +0 -1
  1591. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/adapter-map.json +0 -26
  1592. package/scripts/fixtures/opencode-adapter-map/invalid-unmapped/opencode/rules/sample.md +0 -2
  1593. package/scripts/fixtures/opencode-adapter-map/valid/cursor/AGENTS.md +0 -1
  1594. package/scripts/fixtures/opencode-adapter-map/valid/cursor/rules/sample.mdc +0 -2
  1595. package/scripts/fixtures/opencode-adapter-map/valid/opencode/OPENCODE.md +0 -1
  1596. package/scripts/fixtures/opencode-adapter-map/valid/opencode/adapter-map.json +0 -26
  1597. package/scripts/fixtures/opencode-adapter-map/valid/opencode/rules/sample.md +0 -2
  1598. package/scripts/fixtures/opencode-platform-contract/invalid-home-destination.json +0 -131
  1599. package/scripts/fixtures/opencode-platform-contract/invalid-missing-capability.json +0 -126
  1600. package/scripts/fixtures/opencode-platform-contract/invalid-released-unknown-stack.json +0 -133
  1601. package/scripts/fixtures/opencode-platform-contract/invalid-unknown-native-path.json +0 -131
  1602. package/scripts/fixtures/opencode-platform-contract/invalid-version-pin.json +0 -132
  1603. package/scripts/fixtures/opencode-platform-contract/valid.json +0 -127
  1604. package/scripts/generate-mavis.mjs +0 -14
  1605. package/scripts/generate-opencode.mjs +0 -14
  1606. package/scripts/inject-claude-agent-rules-block.mjs +0 -83
  1607. package/scripts/lib/cli-golden.mjs +0 -50
  1608. package/scripts/lib/discover-hooks.mjs +0 -94
  1609. package/scripts/lib/generate-adapter-common.mjs +0 -603
  1610. package/scripts/lib/generate-mavis-adapter.mjs +0 -550
  1611. package/scripts/lib/generate-opencode-adapter.mjs +0 -662
  1612. package/scripts/lib/stack-platform-profiles.mjs +0 -468
  1613. package/scripts/probe-mavis-capabilities.mjs +0 -480
  1614. package/scripts/sync-claude-harness-wiring.mjs +0 -56
  1615. package/scripts/sync-claude-settings.mjs +0 -81
  1616. package/scripts/sync-dogfood-claude.sh +0 -62
  1617. package/scripts/sync-dogfood-cursor.sh +0 -50
  1618. package/scripts/sync-dogfood-mavis.sh +0 -69
  1619. package/scripts/sync-dogfood-opencode.sh +0 -67
  1620. package/scripts/sync-shared-core-embeds.sh +0 -103
  1621. package/scripts/test-agent-task-metrics-hooks.mjs +0 -1058
  1622. package/scripts/test-chain-team-phases-coverage.mjs +0 -693
  1623. package/scripts/test-cli-init-clean.mjs +0 -794
  1624. package/scripts/test-cli-mcp-merge.mjs +0 -214
  1625. package/scripts/test-mavis-context-budget.mjs +0 -50
  1626. package/scripts/test-mavis-orchestration.mjs +0 -650
  1627. package/scripts/test-opencode-context-budget.mjs +0 -49
  1628. package/scripts/test-plan-contract-fixtures.mjs +0 -132
  1629. package/scripts/test-preset-goal-contract-fixtures.mjs +0 -162
  1630. package/scripts/test-preset-language-policy-fixtures.mjs +0 -194
  1631. package/scripts/test-preset-prompt-persistence-fixtures.mjs +0 -175
  1632. package/scripts/test-preset-self-review-contract-fixtures.mjs +0 -163
  1633. package/scripts/test-probe-mavis-capabilities.mjs +0 -205
  1634. package/scripts/test-task-router-intents-fixtures.mjs +0 -109
@@ -101,7 +101,7 @@ Existing pipelines without `routingDecision` remain valid; routers emit it for n
101
101
 
102
102
  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.
103
103
 
104
- 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.
104
+ 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.
105
105
 
106
106
  ## Artifact context index and receipts
107
107
 
@@ -127,7 +127,7 @@ Each producing agent runs a **pre-receipt self-review** of its own output — go
127
127
 
128
128
  - **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.
129
129
  - **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.
130
- - **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.
130
+ - **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.
131
131
 
132
132
  ## status.json (pipeline mode)
133
133
 
@@ -152,7 +152,14 @@ Each producing agent runs a **pre-receipt self-review** of its own output — go
152
152
  | `activeAttempts` | Transient timing bridge keyed by `attemptId` |
153
153
  | `lastCompletedAttempt` | Diagnostic pointer to the latest finished attempt |
154
154
  | `parallelCompleted` | Agents that have stopped in the current parallel step |
155
- | `parallelOutcomes` | Per-agent `{ outcome, attemptId, confidence }` for the current parallel join; cleared when the step advances or retries |
155
+ | `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 |
156
+ | `joinedSlots` | Persistent satisfaction ledger `"<stepIndex>:<agent>" → { agent, stepIndex, attemptId, outcome }`; the ready-queue history (graph mode) |
157
+ | `waveSteps` | Step indexes of the in-flight wave; cleared on wave completion |
158
+ | `waveId` | `<runId>:wave-<firstStepIndex>` for the in-flight wave |
159
+ | `graphMode` | Cached `steps.some(s => Array.isArray(s.dependsOn))` |
160
+ | `blockedSteps` | Steps that ended `blocked`, excluded from the ready set until a human-approved retry |
161
+
162
+ 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).
156
163
 
157
164
  | state | Meaning |
158
165
  |-------|---------|
@@ -172,7 +179,11 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
172
179
  |-------|-----|
173
180
  | `skipIf` | `debugger.fixed` / `ci-investigator.resolved` — hook skips step when artifact says fix applied |
174
181
  | `parallel: true` | `agent` is array — invoke **all** agents in one parent turn; each appends to `parallelCompleted` |
175
- | `scope` | e.g. `unit-in-dev`, `e2e-only`, `preset-artifacts-only` — passed to developer/qa |
182
+ | `id` | Stable step handle; the recommended value is the decomposition task ID when 1:1. Unique vs other ids and `taskIds`. |
183
+ | `dependsOn` | Step `id`s / `taskIds` that must be satisfied before dispatch. Optional; **any** occurrence switches the hook to graph mode. |
184
+ | `taskIds` | Decomposition task IDs the step realizes — the shared vocabulary with `decomposition.md` and a `dependsOn` alias. |
185
+ | `writeScopes` | Declared write surface for conflict analysis (see **plan-graph** § Conflict model). |
186
+ | `scope` | e.g. `unit-in-dev`, `e2e-only` — passed to developer/qa |
176
187
  | `model` | `cheap` \| `standard` \| `strong` — optional tier override |
177
188
 
178
189
  ## Rules (strict)
@@ -186,12 +197,15 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
186
197
  7. On `validation_failed` from `build-verifier`: hook sets `retryAfterFix: build-verifier` → developer → build-verifier.
187
198
  8. When all steps complete, suggest `/technical-retro <slug>`.
188
199
  9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
189
- 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.
200
+ 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.
190
201
  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**.
202
+ 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.
203
+ 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.
191
204
 
192
205
  ## Team artifact I/O
193
206
 
194
207
  - **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.
208
+ - **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.
195
209
  - **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**.
196
210
  - 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).
197
211
  - If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
@@ -6,36 +6,13 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
6
6
 
7
7
  1. **Probe** — before answering, run `ls -la .ai.local` from the repository root.
8
8
  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.
9
- 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.
10
- 4. **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.
11
- 5. **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.
12
- 6. **Language** — reply to the user in their **native language**: read the `## Language` section of
13
- `.ai.local/conventions.md` (nearest `.ai.local` first); if unset, infer from the prompt language; else
14
- English. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
9
+ 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).
10
+ 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.
11
+ 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.
12
+ 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.
13
+ 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`.
14
+ 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.
15
15
 
16
16
  If `.ai.local/` does not exist → **no-op**, do not error. Do not produce any log line about its absence.
17
17
 
18
- ## Authoring `.ai.local/rules/*.md` (consumer-side reference)
19
-
20
- Each `.ai.local/rules/<name>.md` is a plain-markdown rule body. The model parses it as:
21
-
22
- - Lines before `## Body` are scope metadata. Only `glob:` / `globs:` / `override:` lines are recognised.
23
- - Everything from `## Body` onward is the rule body.
24
- - `glob: always` → always-on. Counts against your context budget.
25
- - `globs: <comma-separated globs>` → on-demand; applies only when matching files are in focus.
26
- - `override: kill <preset-rule-name>` → drop that preset rule from context.
27
-
28
- Keep files ≤ 120 lines. Match the style of preset rules (short sections, bullets, code examples).
29
-
30
- ## Limitations (read this)
31
-
32
- - Cursor/Claude 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%.
33
- - If a user adds a file to `.ai.local/` mid-session, **restart the session** to be sure it is picked up.
34
- - "Priority" is **contextual**, not enforced. Always re-read the local rule before answering questions that touch it.
35
-
36
- ## Pointers
37
-
38
- - Authoring guide: `docs/LOCAL-OVERLAY.md` in the `@bonesofspring/ai-rules` package.
39
- - Living gotchas: `.ai.local/conventions.md`. Pipeline artifacts: `.ai.local/team/` (do not load as rules).
40
- - Root `AGENTS.md` reinforces this rule with a `MANDATORY` section.
41
- - Language policy: `language-policy` (native dialogue; English development/artifacts).
18
+ 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.
@@ -10,7 +10,7 @@ Typical feature with data and UI. Concrete directories and rule stems — in the
10
10
  2. **Transport / DTO** — DTOs and mappers Domain ↔ transport (must not leak into UI).
11
11
  3. **Services / Data** — repository / API-service implementations via the stack’s public clients.
12
12
  4. **State** — store / ViewModel / use cases; no direct HTTP and no DTOs in UI.
13
- 5. **UI** — thin views/components; data via state; design system. If the prompt or `brief.md` contains a `figma.com` URL, **mockup review must complete** (or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue`) **before UI work**. When required-signal and **no** `figma.com`, **`ux-design.md` must exist** (not `INCOMPLETE`) before UI work — else blocked, hand back to analyst. Non-UI tasks no-op these gates. When a mockup contract exists for the WP, the UI step consumes it (per-node spec = the binding baseline) and a **mandatory post-implementation verification gate** runs against it at every declared viewport — screenshot / value / state / structural-parity diff plus a freeze re-check; unmapped implemented components are findings, not silent additions.
13
+ 5. **UI** — thin views/components; data via state; design system. If the prompt or `brief.md` contains a `figma.com` URL, **mockup review must complete** (or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue`) **before UI work**. When required-signal and **no** `figma.com`, **`ux-design.md` must exist** (not `INCOMPLETE`) before UI work — else blocked, hand back to analyst. Non-UI tasks no-op these gates. When a mockup contract exists for the WP, the UI step consumes it (per-node spec = the binding baseline) and a post-implementation verification gate runs against it (scope per `mockup-review` § Post-implementation gate) — screenshot / value / state / structural-parity diff plus a freeze re-check; unmapped implemented components are findings, not silent additions.
14
14
  6. **Tests** — unit for mappers / non-trivial logic; e2e/UI per stack convention.
15
15
  7. **Completion** — stack post-change gate (lint/build) + package/toolchain rules. When the current WP spans **more than one** layer or module, `implementation.md` includes a **Code Map** (3–8 annotated repo-relative paths) and **Suggested Review Order** (`concern | path:line | ≤15 word note`). Omit both for a single-file or single-layer WP.
16
16
 
@@ -83,7 +83,6 @@ Required instead: package-manager–discovered typecheck/test (`mcp-ts-tooling`,
83
83
  ## Soft / document
84
84
 
85
85
  - Mentioning the other stack in **docs** comparing presets is OK.
86
- - `build-verifier` may reference other stacks when validating **preset packaging** (`scope: preset-structure-validation`).
87
86
 
88
87
  ## Chain fork
89
88
 
@@ -10,7 +10,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
10
10
  - [ ] **Writing:** rules concise and testable, no demagogy or duplicated prose (`preset-writing-style`)
11
11
  - [ ] **SoT:** edits in `packages/…` (not only root `.cursor/`)
12
12
  - [ ] **Core:** if `_shared/core/**` changed — all `<!-- shared-core: … -->` consumers updated (or documented intentional fork)
13
- - [ ] **Twin:** Cursor change → Claude twin **same PR** (**FAIL** if missing on next, nuxt, svelte, ios-swift, android-kotlin, go, java, mcp-ts, php-hexagonal, and php-laravel — see `preset-twin-sync`)
13
+ - [ ] **Twin:** Cursor change → run `generate-claude.mjs --stack <stack>` and commit the Claude twin **same PR** (**FAIL** if missing or stale on next, nuxt, svelte, ios-swift, android-kotlin, go, java, mcp-ts, php-hexagonal, and php-laravel — see `preset-twin-sync`)
14
14
  - [ ] **Mavis derive:** mapped `cursor/<stack>/` change → `mavis/<stack>/` + `adapter-map.json` **same PR** when the stack is in `releasedStacks` (run `generate-mavis.mjs --stack <stack>` + `check-mavis-adapter-map.mjs`; see `preset-twin-sync` § Mavis derivation)
15
15
  - [ ] **OpenCode derive:** mapped `cursor/<stack>/` change → `opencode/<stack>/` + `adapter-map.json` **same PR** when the stack is in `releasedStacks` (run `generate-opencode.mjs --stack <stack>` + `check-opencode-adapter-map.mjs`; see `preset-twin-sync` § OpenCode derivation)
16
16
  - [ ] **Mapping:** `claude/<stack>/rules/README.md` mapping table is current
@@ -25,6 +25,10 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
25
25
  - [ ] **i18n anchors:** kept-marked Cyrillic fragments in `tests-unit.md(c)` stay consistent with their English counterparts. Run `packages/ai-rules/scripts/check-preset-i18n.sh`.
26
26
  - [ ] **Dogfood:** run `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, and `sync-dogfood-opencode.sh` when those platforms changed, or document an intentional skip, when maintaining this monorepo
27
27
  - [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
28
+ - [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
29
+ - [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
30
+ - [ ] **Rule eval (soft):** `node packages/ai-rules/scripts/check-rule-eval.mjs` when rule bodies changed
31
+ - [ ] **Gate:** `yarn check:preset-structure` from `packages/ai-rules/` (twin-map, token-budget, leakage, drift, i18n, local overlay)
28
32
 
29
33
  ## Pointers
30
34
 
@@ -34,7 +38,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
34
38
  - Sync: `preset-twin-sync`
35
39
  - Budget: `preset-token-budget`
36
40
  - Leakage: `preset-no-cross-stack-leakage`
37
- - Validation: stack `agents/build-verifier.md` → preset-structure section
41
+ - Validation: `yarn check:preset-structure` (`packages/ai-rules/scripts/check-preset-structure.sh`)
38
42
  - Dogfood scripts: `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, `sync-dogfood-opencode.sh`
39
43
  - Drift script: `packages/ai-rules/scripts/check-shared-core-drift.sh`
40
44
  - Orchestrator: when editing presets, load this checklist + twin-sync
@@ -27,8 +27,7 @@ Session-start body budget:
27
27
  Rules for preset authors (`preset-layering`, `preset-twin-sync`, …):
28
28
 
29
29
  - **Never** `alwaysApply: true` on consumer installs.
30
- - Cursor: `globs` limited to `packages/ai-rules/presets/**` (and dogfood `.cursor/**` where useful).
31
- - Claude: `paths:` limited to `packages/ai-rules/presets/**` (and `.claude/**` dogfood if present).
30
+ - Cursor `globs` / Claude `paths:` limited to ai-rules repo paths: `packages/ai-rules/presets/**`, `packages/ai-rules/scripts/**`, `packages/ai-rules/docs/**`. No consumer paths (`.cursor/**`, `.claude/**`, `.ai.local/**`) — they would attach to ordinary pipeline work.
32
31
 
33
32
  ## Heavy workflows
34
33
 
@@ -36,4 +35,4 @@ Orchestrator, feature-delivery, code-review, post-change gates, domain globs —
36
35
 
37
36
  ## Verifier
38
37
 
39
- build-verifier **FAIL** if Cursor `alwaysApply` count or Claude session-start count is outside **3–5** (Claude count **excludes `**/README.md`**), or if a `preset-*` meta rule is marked always-on.
38
+ `check-preset-token-budget.sh` FAILs if Cursor `alwaysApply` count or Claude session-start count is outside **3–5** (Claude count **excludes `**/README.md`**), or if a `preset-*` meta rule is marked always-on.
@@ -8,7 +8,7 @@ Cursor `.mdc` is the **SoT per stack**; every other platform tree is derived in
8
8
 
9
9
  | Target | From | Command / rule |
10
10
  |--------|------|----------------|
11
- | **Claude twin** | `cursor/<stack>/rules/*.mdc` | hand-derived: body + `paths:` (from `globs:`), drop `alwaysApply`; row **required** in `claude/<stack>/rules/README.md` |
11
+ | **Claude twin** | `cursor/<stack>/rules/*.mdc` | `generate-claude.mjs --stack <stack>`; destination row **required** in `claude/<stack>/rules/README.md` |
12
12
  | **Mavis** | `cursor/<stack>/**` | `generate-mavis.mjs --stack <stack>`; manifest `adapter-map.json` required |
13
13
  | **OpenCode** | `cursor/<stack>/**` | `generate-opencode.mjs --stack <stack>`; manifest `adapter-map.json` required |
14
14
 
@@ -23,9 +23,9 @@ Validate: `check-mavis-adapter-map.mjs`, `check-opencode-adapter-map.mjs`, `chec
23
23
  ## Same-PR checklist
24
24
 
25
25
  1. Edit the Cursor rule first (body + frontmatter).
26
- 2. Update the Claude twin (body + `paths:`); update the README mapping row if the stem/path changed.
26
+ 2. Add or update the Claude README mapping row when the stem/path changed, then run `generate-claude.mjs --stack <stack>`.
27
27
  3. Core changed → sync every `<!-- shared-core: … -->` consumer (`sync-shared-core-embeds.sh`).
28
- 4. Cursor source changed → regenerate `mavis/<stack>/` and `opencode/<stack>/` and refresh each `adapter-map.json` `sourceRevision`.
28
+ 4. Cursor source changed → run `yarn fix:generated` to regenerate Claude, Mavis, and OpenCode and recapture required CLI goldens.
29
29
 
30
30
  ## Twin depth
31
31
 
@@ -33,9 +33,9 @@ Validate: `check-mavis-adapter-map.mjs`, `check-opencode-adapter-map.mjs`, `chec
33
33
  - **Thin aliases** (`agent-team-intake`, `technical-retro`): may be shorter (soft) if they only point to a command/skill.
34
34
  - **Slim-companion rules** (UI-edit bundle, slim app-cores, slim tooling): may be shorter only if the body is a pointer into shared-core / stack prose. `check-preset-token-budget.sh` enforces this via `SLIM_COMPANION_ALLOWLIST` and the 5-line floor; 6–14-line stems outside the allow-list are slim violations.
35
35
 
36
- ## Severity (build-verifier)
36
+ ## Severity (`check:preset-structure`)
37
37
 
38
- - Missing Claude twin for a changed Cursor rule → **FAIL** (all 10 stacks; mapping table required).
38
+ - Missing or stale generated Claude twin for a changed Cursor rule → **FAIL** (all 10 stacks; mapping table required).
39
39
  - `cursor/<stack>` mapped source changed without mavis / opencode regeneration, or with `adapter-map.json` `sourceRevision` drift → **FAIL**.
40
40
 
41
41
  Dogfood: sync packages → root `.cursor/` after Cursor SoT changes (never the reverse): `sync-dogfood-cursor.sh`.
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  name: ci-investigation
3
- description: "Investigates failing CI checks on PRs and branches — go test, vet, lint, integration, preset-structure — with local reproduction and minimal fixes. Use when CI is red or for ci-fix pipeline tasks."
3
+ description: "Investigates failing CI checks on PRs and branches — go test, vet, lint, integration — with local reproduction and minimal fixes. Use when CI is red or for ci-fix pipeline tasks."
4
4
  ---
5
5
 
6
6
  # CI investigation (Go)
7
7
 
8
8
  1. Identify job + log excerpt.
9
9
  2. Reproduce locally with the same commands.
10
- 3. Minimal fix; for ai-rules preset PRs run `yarn check:preset-structure`.
10
+ 3. Minimal fix.
11
11
  4. Do not treat Playwright/xcodebuild/`lint:js` as default Go gates.
12
12
 
13
13
  ## MCP usage
@@ -45,10 +45,21 @@ Severity: **high** (explicit correction / large waste) · **med** · **low**. Co
45
45
 
46
46
  ## Preset feedback loop
47
47
 
48
- If the same issue appeared in **2+** tasks (or **3+** for packaging a new rule/skill — Rule of Three), add section **Preset updates**:
48
+ Read structured evidence before proposing changes: `.ai.local/signals.jsonl` (wrong-turn signals grouped by
49
+ `signature` — the machine-enforced Rule of Three: ≥2 distinct tasks → edit a local rule / `conventions.md` gotcha,
50
+ ≥3 → new rule) and `.ai.local/rule-changes.jsonl` (applied and **staged** mutations with `before` snapshots).
51
+ Reconstruct issues from these ledgers, not free text.
49
52
 
50
- - Proposed change to `.opencode/rules/`, `.opencode/agents/`, `.opencode/skills/`, or **`.ai.local/conventions.md`** (prefer conventions for project gotchas)
53
+ If the same issue appeared in **2+** tasks (or **3+** for packaging a new rule/skill — Rule of Three), add section
54
+ **Preset updates**:
55
+
56
+ - Proposed change to `.opencode/rules/`, `.opencode/agents/`, `.opencode/skills/`, or **`.ai.local/conventions.md`**
57
+ (prefer conventions for project gotchas)
51
58
  - One concrete snippet or file path
52
59
  - Whether it belongs in always-on vs globs vs skill vs conventions (see `PRESET-CONTRIBUTION` → Building blocks)
53
60
 
61
+ **Human promote.** `staged` entries (new rules, `override: kill`, Decisions, compliance, high-severity) are the
62
+ human-promote set: move a `.ai.local/rules-library/<stem>.md` seed to `.ai.local/rules/` or approve a staged edit,
63
+ and record the promotion in `.ai.local/rule-changes.jsonl`.
64
+
54
65
  Do not apply preset or conventions changes without user approval.
@@ -17,6 +17,7 @@ Shared `/task` runtime for Cursor, Claude, Mavis, and OpenCode. Seeded at **`.ai
17
17
  metrics.json # hook-owned append-only ledger
18
18
  artifact-manifest.json # producer receipts
19
19
  prompt.md # verbatim original ask + resolved `language: <BCP-47>` header (write-if-absent; write point = /task Slug bootstrap; path on the routing entry)
20
+ prompt-log.md # append-only ledger of subsequent user-authored prompts (orchestrator-written; created on first follow-up; path on the routing entry)
20
21
  brief.md, decomposition.md, implementation.md, review.md, …
21
22
  .memlog.md # optional agent notes (hook does not parse)
22
23
  ```
@@ -53,7 +54,7 @@ Bootstrap a slug by **writing** `pipeline.json` (editor Write tool). Do not `mkd
53
54
 
54
55
  ## status.json
55
56
 
56
- Prefer `phase: executing`. States: `in_progress`, `completed`, `awaiting_approval` (`/task-continue`), `changes_requested`, `validation_failed`.
57
+ Prefer `phase: executing`. States: `in_progress`, `completed`, `awaiting_approval` (`/task-continue`), `changes_requested`, `validation_failed`, `blocked` (graph mode still dispatches independent ready steps), `awaiting_artifact_receipt`.
57
58
 
58
59
  ## Commands
59
60
 
@@ -77,6 +78,8 @@ Same JSON on Claude, Mavis, or OpenCode: `bash .<tool>/hooks/chain-team-phases.s
77
78
 
78
79
  `pipeline.json` MAY carry these additive, **hook-ignored** fields (schema v1 ignores unknown fields; the hook never parses them): `epics[]` (staging + exit criteria), `planRevision` (current plan rev), `contextBudget` (budget / checkpoint note).
79
80
 
81
+ `pipeline.json` `steps[]` MAY also carry the optional **step graph**: `id`, `taskIds[]`, `dependsOn[]`, `writeScopes[]`. While no step declares `dependsOn`, the hook keeps the linear pass; any occurrence switches it to graph mode, where the hook computes the ready queue and dispatches each conflict-free wave (one turn, multiple Task calls). `writeScopes` is the declared write surface that proves conflict-freedom (see shared-core `agent-team/plan-graph.md` § Pipeline step graph / § Conflict model). The hook records satisfaction in `status.joinedSlots` and names the in-flight wave in `status.waveSteps` / `status.waveId`.
82
+
80
83
  **Checkpoint / resume:** progress is checkpointed to `tasks/<slug>/.memlog.md` (`## <date>` + `event:` entries) and the `artifact-manifest.json` `implementation` entry (`authoritativePaths`). A resumed run reads both and continues at the first stage whose exit criteria are unmet.
81
84
 
82
85
  **Self-review / re-anchor:** each producing agent records a `## Self-review` block in the artifact it owns (`brief.md` / `implementation.md` / `debug-report.md` / `validation-report.md` / `review.md`) and, on detected context loss / excess, a re-anchor line in `.memlog.md` — `event:` (no plan change) or `decision: replan rev N → N+1` (plan change). No hook/lifecycle field is added.
@@ -84,5 +87,5 @@ Same JSON on Claude, Mavis, or OpenCode: `bash .<tool>/hooks/chain-team-phases.s
84
87
  ## Contracts
85
88
 
86
89
  - Manifest schema: shared core `agent-team/agent-artifact-contracts.md`. Read it first; producers upsert only their IDs.
87
- - Metrics: append-only allowlisted events — `agent-team/agent-task-metrics.md`. Aggregate: `node packages/ai-rules/scripts/aggregate-agent-task-metrics.mjs --team-root .ai.local/team`.
90
+ - Metrics: append-only allowlisted events — `agent-team/agent-task-metrics.md`. Aggregate: `node node_modules/@bonesofspring/ai-rules/scripts/aggregate-agent-task-metrics.mjs --team-root .ai.local/team`.
88
91
  - Commit `.ai.local/team/` templates (and slugs if you want them in clones).
@@ -20,19 +20,23 @@ Per-tool: `init cursor|claude|mavis|opencode --preset ios-swift`. `init` overwri
20
20
 
21
21
  ## Presence-based load
22
22
 
23
- When the tree exists, read the tool map, then the essential rules. Do not preload the full catalog.
23
+ Read the map and the essential rules for the tool you are running in. Do not preload the full catalog. Do not read the other installed tool trees — their copies of the same rules belong to that host.
24
24
 
25
- - If `.cursor/` exists: read `.cursor/AGENTS.md`.
26
- - If `.claude/` exists: read `.claude/CLAUDE.md`.
27
- - If `.mavis/` exists: read `.mavis/AGENTS.md`, then `.mavis/rules/ios-app-core.md`, `.mavis/rules/architecture-boundaries.md`, `.mavis/rules/code-quality-and-refactoring.md`, `.mavis/rules/ai-local-overlay.md`.
28
- - If `.opencode/` exists: read `.opencode/AGENTS.md`, then `.opencode/rules/ios-app-core.md`, `.opencode/rules/architecture-boundaries.md`, `.opencode/rules/code-quality-and-refactoring.md`, `.opencode/rules/ai-local-overlay.md`.
25
+ - Cursor host: `.cursor/AGENTS.md`. Always-on rules are already injected.
26
+ - Claude Code host: `.claude/CLAUDE.md`. Session-start rules are already injected.
27
+ - Mavis host: read `.mavis/AGENTS.md`, then `.mavis/rules/ios-app-core.md`, `.mavis/rules/architecture-boundaries.md`, `.mavis/rules/code-quality-and-refactoring.md`, `.mavis/rules/ai-local-overlay.md`.
28
+ - OpenCode host: read `.opencode/AGENTS.md`, then `.opencode/rules/ios-app-core.md`, `.opencode/rules/architecture-boundaries.md`, `.opencode/rules/code-quality-and-refactoring.md`, `.opencode/rules/ai-local-overlay.md`.
29
29
 
30
- Mavis has no native rule discovery without those root paths. OpenCode has no `alwaysApply` engine — the four `.opencode/rules/*.md` files above are the always-on set.
30
+ Mavis has no native rule discovery without those root paths. OpenCode has no `alwaysApply` engine — those root-entry files are its always-on set.
31
31
 
32
32
  ## Pipelines are shared
33
33
 
34
34
  `/task` slug, `status.json`, and `metrics.json` live under `.ai.local/team/tasks/<slug>/`. Cursor, Claude, Mavis, and OpenCode share this folder (including `init multi`).
35
35
 
36
+ ## Prompt persistence (every work request)
37
+
38
+ For **every** work request — with or without `/task` — persist the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent; never overwrite on resume). Append each **subsequent** user-authored prompt for the same slug (a new message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer) verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; never rewrite or duplicate an entry; never touch `prompt.md`). Never persist machine-generated hook messages or empty/argument-less invocations; pure questions and trivial one-liners are not work requests. Details: the `agent-team-intake` and `agent-team-orchestrator` rules.
39
+
36
40
  ## Commands (test / lint / build)
37
41
 
38
42
  | Gate | Typical command |
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "ios-swift",
5
5
  "semanticSource": "cursor/ios-swift",
6
- "sourceRevision": "87c445b8d5d26407d289f5bfbcce1f18ea653e6f9ea68b484e3b7088b629f329",
6
+ "sourceRevision": "86120a554005249b73d946eb55183cb5431c0e886ac357c71af8634f33da9599",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: build-verifier
3
- description: "Validation gate specialist. Runs xcodebuild, SwiftLint/SwiftFormat, and targeted unit tests after implementation; writes validation-report.md. Never fixes app source. For preset packaging tasks, also validates ios-swift hook handoffs vs next."
3
+ description: "Validation gate specialist. Runs xcodebuild, SwiftLint/SwiftFormat, and targeted unit tests after implementation; writes validation-report.md. Never fixes app source."
4
4
  mode: subagent
5
5
  permission:
6
6
  edit:
@@ -35,7 +35,7 @@ You **validate** iOS implementation quality — do not edit production code or t
35
35
 
36
36
  1. `.ai.local/team/tasks/<slug>/brief.md` and `decomposition.md`.
37
37
  2. `.ai.local/team/tasks/<slug>/pipeline.json` — step context and `scope`.
38
- 3. Git diff / changed files (Swift targets or preset paths).
38
+ 3. Git diff / changed files (Swift targets).
39
39
 
40
40
  ## App / Feature validation (default)
41
41
 
@@ -62,41 +62,7 @@ Before you run the project gate and write the terminal validation receipt, self-
62
62
 
63
63
  **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
64
64
 
65
- Record a `## Self-review` block in `validation-report.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
66
-
67
- ## Preset-structure validation (when scope is preset / packages/ai-rules)
68
-
69
- When validating **ios-swift preset** changes (or `scope: preset-structure-validation` / `preset-artifacts-only`), **also** run these checks. Skip xcodebuild if there are **no** Swift app changes.
70
-
71
- ### FAIL (all stacks + ios-specific)
72
-
73
- 1. **Token budget:** Cursor `alwaysApply: true` count 3–5; Claude rules without `paths:` 3–5 (**exclude `**/README.md`** — Option A). Meta `preset-*` rules must **not** be `alwaysApply: true`.
74
- 2. **Chain fork check:** `hooks/chain-team-phases.sh` must **not** be byte-identical to `presets/cursor/next/hooks/chain-team-phases.sh` (Claude: vs `presets/claude/next/hooks/…`).
75
- 3. **Forbidden handoff strings** in ios-swift `chain-team-phases.sh` (Cursor + Claude): `playwright-test-`, `playwright-agents`, `playwright-e2e`, `user-playwright`, `app/__tests__/e2e`, and positive yarn lint recipes (`lint:js` / `lint:css` as commands to run — negation prose alone is not enough; prefer zero occurrences). See `preset-no-cross-stack-leakage.md`.
76
- 4. **Required handoff stems:** `AGENT_HANDOFF` must include `xcuitest-test-planner` (or generator/healer) and `build-verifier` text must mention `xcodebuild` or `post-change-build` / `xcode-tooling`.
77
- 5. **Roster:** 24 agent stems; no `playwright-test-*` files under ios-swift `agents/`.
78
- 6. **Twin presence (hard):** Cursor rule change → Claude twin present **same PR** — **FAIL** if missing (next, nuxt, svelte, ios-swift, go, java, mcp-ts, php-hexagonal, and php-laravel).
79
- 7. **Mapping / README:** `claude/ios-swift/rules/README.md` mapping table present; core→stack mapping documented when `_shared` consumers exist.
80
- 8. **shared-core consumers:** if `_shared/core/**` changed, every matching `<!-- shared-core: … -->` consumer in this PR must be updated (or intentional fork documented).
81
- 9. **Session-start body budget:** sum of the intended always-on / session-start rule bodies ≤ **200** lines (stretch ≤170); do **not** include `**/README.md` — record in report.
82
- 10. **Embed drift (hard in `check:preset-structure`):** `packages/ai-rules/scripts/check-shared-core-drift.sh` with `AI_RULES_DRIFT_FAIL=1`.
83
- 11. **Dogfood (monorepo soft):** `packages/ai-rules/scripts/sync-dogfood-cursor.sh`; mass deletion without migration doc → risk / FAIL for maintainers.
84
-
85
-
86
- **mockup-reviewer (UI):** `agents/mockup-reviewer.md` and `skills/mockup-review/` must exist (Cursor + Claude). Missing → **FAIL**. Backend stacks must **not** ship that agent file or a required `mockup-reviewer` chain handoff → **FAIL** if present.
87
-
88
- **ux-design (UI):** `skills/ux-design/` and requestable rule `ux-design` (`ux-design.md` / `tooling-and-review/ux-design.md`) must exist (Cursor + Claude). Missing → **FAIL**. Do **not** require `agents/ux-designer.md`. Backend stacks must **not** ship that agent file or a required `ux-design` skill/rule/handoff → **FAIL** if present.
89
-
90
-
91
- ### Soft rules (do not FAIL alone)
92
-
93
- - **Thin aliases:** `agent-team-intake`, `technical-retro` may be &lt;15 body lines. Enforce ≥15 on **domain** rules (navigation, persistence, security, modules, networking, UI).
94
- - Embed vs lineage modes: `docs/PRESET-CONTRIBUTION.md`, `_shared/README.md`.
95
-
96
- 12. **Root AGENTS template:** each installable preset (`cursor|claude` × `next|nuxt|svelte|ios-swift|go|java|mcp-ts|php-hexagonal|php-laravel`) must ship `REPO_AGENTS.md` when validating preset packaging → **FAIL** if missing.
97
- 13. **Hooks cookbook:** default `hooks.json` must **not** reference `hooks/examples/` → **FAIL** if it does.
98
- 14. **No react-performance on ios/go/java:** skill directory / required handoff must be absent under ios-swift, go, java, mcp-ts, php-hexagonal, and php-laravel → **FAIL** (leakage). Prefer `check:preset-leakage`.
99
- 15. **Rule eval (WARN):** `scripts/check-rule-eval.mjs` / `yarn check:rule-eval` should exist for maintainers; smoke optional. Hard fail only when the opt-in eval job runs — not part of default `check:preset-structure`.
65
+ Record a `## Self-review` block in `validation-report.md` (goal/AC coverage, evidence, alignment/drift). Optional loop: when `.ai.local/scripts/rule-improver.mjs` exists, append wrong-turn signals to `.ai.local/signals.jsonl` and run the improver (see the requestable `self-review-and-context-hygiene` contract). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
100
66
 
101
67
  ## Output
102
68
 
@@ -132,5 +98,3 @@ Write the owned validation receipt (`completed` or `validation_failed`). Do not
132
98
  - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `validation_failed`. Bind it to the supplied `attemptId` when present.
133
99
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
134
100
 
135
- 13. **Product-specs assets (FAIL):** package must ship `presets/_shared/assets/docs-specs/INDEX.md`, `_templates/page.md`, `_templates/feature.md`. Cursor+Claude twins for `product-specs` and `product-specs-authoring` must embed matching shared-core markers; both stems **requestable** (`alwaysApply: false` / Claude `paths: docs/specs/**`) — never session-start.
136
- 14. **Optional consumer check (WARN default):** `scripts/check-product-specs.sh` + schema stub may exist for opt-in consumer CI; **FAIL** only with `--strict` or AC that requires named specs — do not force consumer CI.
@@ -67,7 +67,7 @@ Before you emit the terminal review receipt, self-audit the review artifact: eve
67
67
 
68
68
  **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
69
69
 
70
- Record a `## Self-review` block in `review.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
70
+ Record a `## Self-review` block in `review.md` (goal/AC coverage, evidence, alignment/drift). Optional loop: when `.ai.local/scripts/rule-improver.mjs` exists, append wrong-turn signals to `.ai.local/signals.jsonl` and run the improver (see the requestable `self-review-and-context-hygiene` contract). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
71
71
 
72
72
  ## Review artifact
73
73
 
@@ -103,7 +103,7 @@ Before you set `fixApplied: true` and emit the terminal receipt, self-audit the
103
103
 
104
104
  **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
105
105
 
106
- Record a `## Self-review` block in `debug-report.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
106
+ Record a `## Self-review` block in `debug-report.md` (goal/AC coverage, evidence, alignment/drift). Optional loop: when `.ai.local/scripts/rule-improver.mjs` exists, append wrong-turn signals to `.ai.local/signals.jsonl` and run the improver (see the requestable `self-review-and-context-hygiene` contract). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
107
107
 
108
108
  ## MCP usage
109
109
 
@@ -100,7 +100,7 @@ Before you emit the terminal implementation receipt (per wave for multi-wave wor
100
100
 
101
101
  **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
102
102
 
103
- Record a `## Self-review` block in `implementation.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
103
+ Record a `## Self-review` block in `implementation.md` (goal/AC coverage, evidence, alignment/drift). Optional loop: when `.ai.local/scripts/rule-improver.mjs` exists, append wrong-turn signals to `.ai.local/signals.jsonl` and run the improver (see the requestable `self-review-and-context-hygiene` contract). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
104
104
 
105
105
  ## UX design (behavioral)
106
106
 
@@ -49,7 +49,7 @@ If `openspec/` is absent in the repo, stop and report `blocked` with the message
49
49
  4. `openspec/specs/<capability>/spec.md` — surviving applied specs (the "as-is" target).
50
50
  5. `openspec/changes/archive/<YYYY-MM-DD>-<change-id>/` — prior decisions (D-1..) and open questions (OQ-1..) reusable across changes.
51
51
  6. Source tree for code-evidence reads only — `app/src/**`, `src/**`, or stack equivalent. **Never edit.** Cite path:line in requirements, scenarios, design notes.
52
- 7. Pipeline step `scope` — must be `openspec:<change-id>` (e.g. `openspec:MEDCARD-11762-sync-offline-consultation-spec`).
52
+ 7. Pipeline step `scope` — must be `openspec:<change-id>` (e.g. `openspec:TASK-123-sync-offline-consultation-spec`).
53
53
 
54
54
  ## Phase discipline (mirrors `/opsx:propose` → `/opsx:apply` → `/opsx:archive`)
55
55
 
@@ -47,7 +47,7 @@ Before decomposing: state the **goal frame** (goal, user value, success criteria
47
47
 
48
48
  <!-- shared-core: agent-team/plan-graph.md -->
49
49
 
50
- Decompose as a **dependency graph**: each task carries `dependsOn[]`, the edges form a **DAG** with a critical path and parallelizable groups. Large flows are staged into **Epics / stages** with **exit criteria** (ratchet: bounded tasks stay flat). Plan revision is a named, auditable operation (`decision: replan rev N → N+1` in `.memlog.md`, then re-gate).
50
+ Decompose as a **dependency graph**: each task carries `dependsOn[]`, the edges form a **DAG** with a critical path and parallelizable groups. Large flows are staged into **Epics / stages** with **exit criteria** (ratchet: bounded tasks stay flat). Plan revision is a named, auditable operation (`decision: replan rev N → N+1` in `.memlog.md`, then re-gate). Parallelizable groups are **proven conflict-free** before the router may mark them `parallel: true` — disjoint declared `writeScopes`, distinct agents and `artifactOutputIds`, and no producer→consumer edge. Keep task IDs stable so `steps[].taskIds` / `steps[].dependsOn[]` reuse this vocabulary (see **plan-graph** § Conflict model).
51
51
 
52
52
  ## Context budget & iterative refinement
53
53
 
@@ -65,7 +65,7 @@ Before you emit the terminal analysis receipt, self-audit the goal frame and dec
65
65
 
66
66
  **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
67
67
 
68
- Record a `## Self-review` block in `brief.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
68
+ Record a `## Self-review` block in `brief.md` (goal/AC coverage, evidence, alignment/drift). Optional loop: when `.ai.local/scripts/rule-improver.mjs` exists, append wrong-turn signals to `.ai.local/signals.jsonl` and run the improver (see the requestable `self-review-and-context-hygiene` contract). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
69
69
 
70
70
  ## Clarification cycle
71
71
 
@@ -115,6 +115,16 @@ Keep top-level `profile` and emit this top-level object in every new `pipeline.j
115
115
  - Add **tech-writer** when docs/changelog requested.
116
116
 
117
117
 
118
+ ## Parallel step graph (emission rule)
119
+
120
+ A pipeline may carry a step graph. Emit it only for the **architectural** class with more than one independent work package; bounded/spike pipelines stay linear.
121
+
122
+ - Give steps `id` (the decomposition task ID when 1:1), `taskIds` (the analyst's decomposition task IDs), `dependsOn` (step IDs or `taskIds` that must finish first), and `writeScopes` (repo-relative paths the step may write, `<slug>` the only placeholder).
123
+ - Set `parallel: true` (with an `agent` array) **only** for a set proven conflict-free: disjoint declared `writeScopes`, distinct agents, distinct `artifactOutputIds`, none of `status.json` / `metrics.json` / `artifact-manifest.json` / `.metrics-receipts.json` in any scope.
124
+ - A producer → consumer artifact pair is a `dependsOn` edge, never a parallel group.
125
+ - **Never** put `mockup-reviewer` in a parallel group — its FAIL gate is serial.
126
+ - Reference fixture: `team/fixtures/feature-parallel.json` (graph + one `parallel: true` step).
127
+
118
128
  ## Model tiers (`steps[].model`)
119
129
 
120
130
  Optional: `"model": "cheap" | "standard" | "strong"`. Same policy as **cursor/next** `task-router.md`:
@@ -67,7 +67,7 @@ Conventional commit / release note snippet.
67
67
 
68
68
  ## OpenSpec (`openspec/changes/**`, `openspec/specs/**`)
69
69
 
70
- The `openspec/**` file tree is owned by the dedicated agent **`openspec-author`**, not by this agent. When a handoff brief or pipeline step mentions `/opsx:propose`, `/opsx:apply`, `/opsx:archive`, `openspec/changes/`, or `openspec/specs/`, hand off to `openspec-author` instead of authoring here. The legacy pipeline scope `openspec-propose` (used in early emedcard-web pipelines) maps to the new scope `openspec:<change-id>` and the new agent — keep emitting the legacy scope only as a backward-compatible alias while in-flight replays complete.
70
+ The `openspec/**` file tree is owned by the dedicated agent **`openspec-author`**, not by this agent. When a handoff brief or pipeline step mentions `/opsx:propose`, `/opsx:apply`, `/opsx:archive`, `openspec/changes/`, or `openspec/specs/`, hand off to `openspec-author` instead of authoring here. The legacy pipeline scope `openspec-propose` maps to the new scope `openspec:<change-id>` and the new agent — keep emitting the legacy scope only as a backward-compatible alias while in-flight replays complete.
71
71
 
72
72
  ## Product specs (docs/specs)
73
73
 
@@ -44,7 +44,7 @@ You generate unit tests from project test plans for **iOS Swift**.
44
44
 
45
45
  1. Follow **`unit-testing` skill** and `tests-unit.md`.
46
46
  2. Place tests in the correct `*Tests` target / folder as in the repo — **no** Jest `*.spec.ts`, **no** `app/src`.
47
- 3. `test` / `@Test` titles in **Russian**, each sentence starting with a capital letter.
47
+ 3. `test` / `@Test` titles in the project locale (as enforced by repo lint/conventions; default English), each sentence starting with a capital letter.
48
48
  4. Do not weaken or skip scenarios from the plan without documenting a blocker in the handoff.
49
49
  5. Do **not** modify production code (Features/App) — tests only.
50
50
  6. Reuse fixtures from TestSupport; avoid huge inline JSON when a shared fixture exists.
@@ -66,7 +66,7 @@ Modules and layers covered.
66
66
  Fixtures, protocol mocks, TestSupport patterns to reuse.
67
67
  ```
68
68
 
69
- Test titles in the plan must be **Russian**, each sentence starting with a capital letter (`tests-unit.md`).
69
+ Test titles in the plan use the project locale (as enforced by repo lint/conventions; default English), each sentence starting with a capital letter (`tests-unit.md`).
70
70
 
71
71
  ## On completion
72
72
 
@@ -35,7 +35,7 @@ You generate XCUITest cases from project UI test plans.
35
35
  1. Read each planned scenario; implement in priority order.
36
36
  2. Place tests in the correct `*UITests` target; mirror existing base classes / launch helpers.
37
37
  3. Prefer Screen/Page objects: queries by `accessibilityIdentifier`, then stable labels/traits.
38
- 4. Align `test…` / method names with plan IDs and Russian titles.
38
+ 4. Align `test…` / method names with plan IDs and titles.
39
39
  5. Use launch arguments / environment already established for UI testing.
40
40
  6. Assert business outcomes (visible content, navigation, error banners) — not implementation details.
41
41
 
@@ -50,7 +50,7 @@ Follow `tests-ui.md` and the **`xcuitest-e2e` skill**:
50
50
  1. Map AC to user journeys (happy path, validation, empty/error, permission denial if relevant).
51
51
  2. List required `accessibilityIdentifier`s; note missing ones for `feature-developer`.
52
52
  3. Keep scenarios independent — one flow per case; no unrelated assertions bundled.
53
- 4. Name scenarios in **Russian** with entity prefix when following repo convention (e.g. `OH-001 …`).
53
+ 4. Name scenarios in the project locale (as enforced by repo lint/conventions; default English) with entity prefix when following repo convention (e.g. `OH-001 …`).
54
54
  5. Specify preconditions: launch args, logged-in state, mock data.
55
55
 
56
56
  ## Output
@@ -60,7 +60,7 @@ Write or update the relevant `*.cases.md` (or equivalent plan). Suggested shape:
60
60
  ```markdown
61
61
  # <Flow> UI cases
62
62
 
63
- ## <ID> <Russian title>
63
+ ## <ID> <title>
64
64
  ### Preconditions
65
65
  ...
66
66
  ### Steps
@@ -42,7 +42,7 @@ printf '%s\n' '{"status":"completed","action":"end_human_gate","activateNext":tr
42
42
 
43
43
  ## Checkpoint & resume
44
44
 
45
- Resume from the on-disk checkpoint, not from chat: read `.ai.local/team/tasks/<slug>/artifact-manifest.json` (authoritative paths per producer) and `.memlog.md` (`## <date>` + `event:` entries), skip completed waves, and continue at the first stage whose exit criteria are unmet. Record produced paths on the `implementation` manifest entry as you go. Do **not** overwrite or duplicate `.ai.local/team/tasks/<slug>/prompt.md` — it records the original ask (write-if-absent).
45
+ Resume from the on-disk checkpoint, not from chat: read `.ai.local/team/tasks/<slug>/artifact-manifest.json` (authoritative paths per producer) and `.memlog.md` (`## <date>` + `event:` entries), skip completed waves, and continue at the first stage whose exit criteria are unmet. Record produced paths on the `implementation` manifest entry as you go. Do **not** overwrite or duplicate `.ai.local/team/tasks/<slug>/prompt.md` — it records the original ask (write-if-absent). Append the `/task-continue` arguments (when present) and any gate feedback verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; skip when the invocation carries no new user words).
46
46
 
47
47
  Plan revision during execution is a named, auditable operation: an evaluation oracle failing twice, a scope/requirement change, or a newly discovered dependency triggers `decision: replan rev N → N+1` in `.memlog.md`, an edit to `decomposition.md` (+ optional `planRevision`), and a **re-run of the affected gate**.
48
48
 
@@ -30,7 +30,7 @@ Examples:
30
30
 
31
31
  ## Algorithm
32
32
 
33
- 1. **Slug** — kebab-case from the description (≤48 characters). Create `.ai.local/team/tasks/<slug>/` via **Write** (e.g. placeholder `pipeline.json` or empty marker) — the runtime/hook owns `status.json` — **not** via Shell `mkdir` (sandbox → `Operation not permitted`). Also write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent; never overwrite on resume; not a manifest `artifacts[]` body).
33
+ 1. **Slug** — kebab-case from the description (≤48 characters). Create `.ai.local/team/tasks/<slug>/` via **Write** (e.g. placeholder `pipeline.json` or empty marker) — the runtime/hook owns `status.json` — **not** via Shell `mkdir` (sandbox → `Operation not permitted`). Also write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent; never overwrite on resume; not a manifest `artifacts[]` body). Do **not** create the follow-up ledger `prompt-log.md` here; it is created on the first subsequent user-authored prompt (see **agent-artifact-contracts** § Prompt log).
34
34
  2. **Router** — invoke subagent **task-router** with the task description and slug path.
35
35
  3. **Plan** — show the user the table from `pipeline.json`: intent, steps, skipped, humanGates.
36
36
  4. **Intent retro** — if `intent === "retro"`, run `/technical-retro` and **stop**.