@bonesofspring/ai-rules 0.2.80 → 0.2.84

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 (681) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/bin/lib/merged-config.js +49 -0
  3. package/bin/lib/seed-ai-local-team.js +2 -0
  4. package/bin/mavis-install.js +53 -3
  5. package/docs/MAVIS-COMPATIBILITY.md +136 -8
  6. package/docs/PRESET-CONTRIBUTION.md +9 -0
  7. package/package.json +4 -1
  8. package/presets/_shared/ai-local/scripts/check-task-repositories.mjs +20 -2
  9. package/presets/_shared/ai-local/scripts/check-verification.mjs +13 -6
  10. package/presets/_shared/ai-local/scripts/rr-migrate-repositories.mjs +66 -16
  11. package/presets/_shared/ai-local/scripts/run-compact.mjs +38 -10
  12. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -0
  13. package/presets/_shared/core/review/code-review-mr.md +19 -4
  14. package/presets/_shared/hooks/chain-team-phases.sh.tmpl +40 -0
  15. package/presets/_shared/hooks/compact-shell-output.mjs +16 -1
  16. package/presets/claude/android-kotlin/agents/code-reviewer.md +5 -1
  17. package/presets/claude/android-kotlin/commands/update.md +1 -0
  18. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +40 -0
  19. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  20. package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +19 -4
  21. package/presets/claude/android-kotlin/skills/code-review/SKILL.md +2 -1
  22. package/presets/claude/go/agents/code-reviewer.md +5 -1
  23. package/presets/claude/go/commands/update.md +1 -0
  24. package/presets/claude/go/hooks/chain-team-phases.sh +40 -0
  25. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  26. package/presets/claude/go/rules/tooling-and-review/code-review.md +19 -4
  27. package/presets/claude/go/skills/code-review/SKILL.md +2 -1
  28. package/presets/claude/ios-swift/agents/code-reviewer.md +5 -1
  29. package/presets/claude/ios-swift/commands/update.md +1 -0
  30. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +40 -0
  31. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  32. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +19 -4
  33. package/presets/claude/ios-swift/skills/code-review/SKILL.md +2 -1
  34. package/presets/claude/java/agents/code-reviewer.md +5 -1
  35. package/presets/claude/java/commands/update.md +1 -0
  36. package/presets/claude/java/hooks/chain-team-phases.sh +40 -0
  37. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  38. package/presets/claude/java/rules/tooling-and-review/code-review.md +19 -4
  39. package/presets/claude/java/skills/code-review/SKILL.md +2 -1
  40. package/presets/claude/mcp-ts/commands/update.md +1 -0
  41. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +40 -0
  42. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  43. package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +19 -4
  44. package/presets/claude/mol/REPO_AGENTS.md +1 -1
  45. package/presets/claude/mol/agents/code-reviewer.md +5 -1
  46. package/presets/claude/mol/agents/task-router.md +1 -1
  47. package/presets/claude/mol/commands/update.md +1 -0
  48. package/presets/claude/mol/hooks/chain-team-phases.sh +40 -0
  49. package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  50. package/presets/claude/mol/rules/tooling-and-review/code-review-mr.md +19 -4
  51. package/presets/claude/mol/skills/code-review/SKILL.md +2 -1
  52. package/presets/claude/next/REPO_AGENTS.md +1 -1
  53. package/presets/claude/next/agents/code-reviewer.md +5 -1
  54. package/presets/claude/next/agents/task-router.md +1 -1
  55. package/presets/claude/next/commands/update.md +1 -0
  56. package/presets/claude/next/hooks/chain-team-phases.sh +40 -0
  57. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  58. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +19 -4
  59. package/presets/claude/next/skills/code-review/SKILL.md +2 -1
  60. package/presets/claude/nuxt/agents/code-reviewer.md +5 -1
  61. package/presets/claude/nuxt/agents/task-router.md +1 -1
  62. package/presets/claude/nuxt/commands/update.md +1 -0
  63. package/presets/claude/nuxt/hooks/chain-team-phases.sh +40 -0
  64. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  65. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +19 -4
  66. package/presets/claude/nuxt/skills/code-review/SKILL.md +2 -1
  67. package/presets/claude/php-hexagonal/agents/code-reviewer.md +5 -1
  68. package/presets/claude/php-hexagonal/commands/update.md +1 -0
  69. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +40 -0
  70. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  71. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +19 -4
  72. package/presets/claude/php-hexagonal/skills/code-review/SKILL.md +2 -1
  73. package/presets/claude/php-laravel/agents/code-reviewer.md +5 -1
  74. package/presets/claude/php-laravel/commands/update.md +1 -0
  75. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +40 -0
  76. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  77. package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +19 -4
  78. package/presets/claude/php-laravel/skills/code-review/SKILL.md +2 -1
  79. package/presets/claude/svelte/agents/code-reviewer.md +5 -1
  80. package/presets/claude/svelte/agents/task-router.md +1 -1
  81. package/presets/claude/svelte/commands/update.md +1 -0
  82. package/presets/claude/svelte/hooks/chain-team-phases.sh +40 -0
  83. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  84. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +19 -4
  85. package/presets/claude/svelte/skills/code-review/SKILL.md +2 -1
  86. package/presets/cursor/android-kotlin/agents/code-reviewer.md +5 -1
  87. package/presets/cursor/android-kotlin/commands/update.md +1 -0
  88. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +40 -0
  89. package/presets/cursor/android-kotlin/hooks/compact-shell-output.mjs +16 -1
  90. package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +19 -4
  91. package/presets/cursor/android-kotlin/skills/code-review/SKILL.md +2 -1
  92. package/presets/cursor/go/agents/code-reviewer.md +5 -1
  93. package/presets/cursor/go/commands/update.md +1 -0
  94. package/presets/cursor/go/hooks/chain-team-phases.sh +40 -0
  95. package/presets/cursor/go/hooks/compact-shell-output.mjs +16 -1
  96. package/presets/cursor/go/rules/code-review-mr.mdc +19 -4
  97. package/presets/cursor/go/skills/code-review/SKILL.md +2 -1
  98. package/presets/cursor/ios-swift/agents/code-reviewer.md +5 -1
  99. package/presets/cursor/ios-swift/commands/update.md +1 -0
  100. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +40 -0
  101. package/presets/cursor/ios-swift/hooks/compact-shell-output.mjs +16 -1
  102. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +19 -4
  103. package/presets/cursor/ios-swift/skills/code-review/SKILL.md +2 -1
  104. package/presets/cursor/java/agents/code-reviewer.md +5 -1
  105. package/presets/cursor/java/commands/update.md +1 -0
  106. package/presets/cursor/java/hooks/chain-team-phases.sh +40 -0
  107. package/presets/cursor/java/hooks/compact-shell-output.mjs +16 -1
  108. package/presets/cursor/java/rules/code-review-mr.mdc +19 -4
  109. package/presets/cursor/java/skills/code-review/SKILL.md +2 -1
  110. package/presets/cursor/mcp-ts/commands/update.md +1 -0
  111. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +40 -0
  112. package/presets/cursor/mcp-ts/hooks/compact-shell-output.mjs +16 -1
  113. package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +19 -4
  114. package/presets/cursor/mol/REPO_AGENTS.md +1 -1
  115. package/presets/cursor/mol/agents/code-reviewer.md +5 -1
  116. package/presets/cursor/mol/agents/task-router.md +1 -1
  117. package/presets/cursor/mol/commands/update.md +1 -0
  118. package/presets/cursor/mol/hooks/chain-team-phases.sh +40 -0
  119. package/presets/cursor/mol/hooks/compact-shell-output.mjs +16 -1
  120. package/presets/cursor/mol/rules/code-review-mr.mdc +19 -4
  121. package/presets/cursor/mol/skills/code-review/SKILL.md +2 -1
  122. package/presets/cursor/next/REPO_AGENTS.md +1 -1
  123. package/presets/cursor/next/agents/code-reviewer.md +5 -1
  124. package/presets/cursor/next/agents/task-router.md +1 -1
  125. package/presets/cursor/next/commands/update.md +1 -0
  126. package/presets/cursor/next/hooks/README.md +2 -0
  127. package/presets/cursor/next/hooks/chain-team-phases.sh +40 -0
  128. package/presets/cursor/next/hooks/compact-shell-output.mjs +16 -1
  129. package/presets/cursor/next/rules/code-review-mr.mdc +19 -4
  130. package/presets/cursor/next/skills/code-review/SKILL.md +2 -1
  131. package/presets/cursor/nuxt/agents/code-reviewer.md +5 -1
  132. package/presets/cursor/nuxt/agents/task-router.md +1 -1
  133. package/presets/cursor/nuxt/commands/update.md +1 -0
  134. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +40 -0
  135. package/presets/cursor/nuxt/hooks/compact-shell-output.mjs +16 -1
  136. package/presets/cursor/nuxt/rules/code-review-mr.mdc +19 -4
  137. package/presets/cursor/nuxt/skills/code-review/SKILL.md +2 -1
  138. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +5 -1
  139. package/presets/cursor/php-hexagonal/commands/update.md +1 -0
  140. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +40 -0
  141. package/presets/cursor/php-hexagonal/hooks/compact-shell-output.mjs +16 -1
  142. package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +19 -4
  143. package/presets/cursor/php-hexagonal/skills/code-review/SKILL.md +2 -1
  144. package/presets/cursor/php-laravel/agents/code-reviewer.md +5 -1
  145. package/presets/cursor/php-laravel/commands/update.md +1 -0
  146. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +40 -0
  147. package/presets/cursor/php-laravel/hooks/compact-shell-output.mjs +16 -1
  148. package/presets/cursor/php-laravel/rules/code-review-mr.mdc +19 -4
  149. package/presets/cursor/php-laravel/skills/code-review/SKILL.md +2 -1
  150. package/presets/cursor/svelte/agents/code-reviewer.md +5 -1
  151. package/presets/cursor/svelte/agents/task-router.md +1 -1
  152. package/presets/cursor/svelte/commands/update.md +1 -0
  153. package/presets/cursor/svelte/hooks/chain-team-phases.sh +40 -0
  154. package/presets/cursor/svelte/hooks/compact-shell-output.mjs +16 -1
  155. package/presets/cursor/svelte/rules/code-review-mr.mdc +19 -4
  156. package/presets/cursor/svelte/skills/code-review/SKILL.md +2 -1
  157. package/presets/mavis/android-kotlin/MAVIS.md +9 -3
  158. package/presets/mavis/android-kotlin/README.md +3 -1
  159. package/presets/mavis/android-kotlin/adapter-map.json +104 -44
  160. package/presets/mavis/android-kotlin/agents/code-reviewer.md +5 -1
  161. package/presets/mavis/android-kotlin/commands/update.md +1 -0
  162. package/presets/mavis/android-kotlin/hooks/README.md +29 -7
  163. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +40 -0
  164. package/presets/mavis/android-kotlin/hooks/mavis-chain-hook.mjs +143 -0
  165. package/presets/mavis/android-kotlin/hooks/run-hook.mjs +103 -0
  166. package/presets/mavis/android-kotlin/minimax-hooks/hooks.json +28 -0
  167. package/presets/mavis/android-kotlin/native-skills/README.md +15 -0
  168. package/presets/mavis/android-kotlin/native-skills/ci-investigation/SKILL.md +53 -0
  169. package/presets/mavis/android-kotlin/native-skills/code-review/SKILL.md +62 -0
  170. package/presets/mavis/android-kotlin/native-skills/debug-investigation/SKILL.md +72 -0
  171. package/presets/mavis/android-kotlin/native-skills/feature-delivery/SKILL.md +51 -0
  172. package/presets/mavis/android-kotlin/native-skills/instrumentation-ui-e2e/SKILL.md +23 -0
  173. package/presets/mavis/android-kotlin/native-skills/migrate-tasks/SKILL.md +43 -0
  174. package/presets/mavis/android-kotlin/native-skills/mockup-review/SKILL.md +34 -0
  175. package/presets/mavis/android-kotlin/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  176. package/presets/mavis/android-kotlin/native-skills/rr-scheduler-start/SKILL.md +34 -0
  177. package/presets/mavis/android-kotlin/native-skills/spec-authoring/SKILL.md +31 -0
  178. package/presets/mavis/android-kotlin/native-skills/spec-discovery/SKILL.md +63 -0
  179. package/presets/mavis/android-kotlin/native-skills/spec-start/SKILL.md +31 -0
  180. package/presets/mavis/android-kotlin/native-skills/task/SKILL.md +79 -0
  181. package/presets/mavis/android-kotlin/native-skills/task-continue/SKILL.md +74 -0
  182. package/presets/mavis/android-kotlin/native-skills/technical-retro/SKILL.md +72 -0
  183. package/presets/mavis/android-kotlin/native-skills/unit-testing/SKILL.md +38 -0
  184. package/presets/mavis/android-kotlin/native-skills/update/SKILL.md +44 -0
  185. package/presets/mavis/android-kotlin/native-skills/ux-design/SKILL.md +41 -0
  186. package/presets/mavis/android-kotlin/native-skills/write-adr/SKILL.md +46 -0
  187. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -0
  188. package/presets/mavis/android-kotlin/rules/code-review-mr.md +19 -4
  189. package/presets/mavis/android-kotlin/skills/code-review/SKILL.md +2 -1
  190. package/presets/mavis/go/MAVIS.md +9 -3
  191. package/presets/mavis/go/README.md +3 -1
  192. package/presets/mavis/go/adapter-map.json +94 -40
  193. package/presets/mavis/go/agents/code-reviewer.md +5 -1
  194. package/presets/mavis/go/commands/update.md +1 -0
  195. package/presets/mavis/go/hooks/README.md +29 -7
  196. package/presets/mavis/go/hooks/chain-team-phases.sh +40 -0
  197. package/presets/mavis/go/hooks/mavis-chain-hook.mjs +143 -0
  198. package/presets/mavis/go/hooks/run-hook.mjs +103 -0
  199. package/presets/mavis/go/minimax-hooks/hooks.json +28 -0
  200. package/presets/mavis/go/native-skills/README.md +15 -0
  201. package/presets/mavis/go/native-skills/ci-investigation/SKILL.md +24 -0
  202. package/presets/mavis/go/native-skills/code-review/SKILL.md +48 -0
  203. package/presets/mavis/go/native-skills/debug-investigation/SKILL.md +55 -0
  204. package/presets/mavis/go/native-skills/feature-delivery/SKILL.md +43 -0
  205. package/presets/mavis/go/native-skills/integration-testing/SKILL.md +21 -0
  206. package/presets/mavis/go/native-skills/migrate-tasks/SKILL.md +43 -0
  207. package/presets/mavis/go/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  208. package/presets/mavis/go/native-skills/rr-scheduler-start/SKILL.md +34 -0
  209. package/presets/mavis/go/native-skills/spec-authoring/SKILL.md +31 -0
  210. package/presets/mavis/go/native-skills/spec-discovery/SKILL.md +63 -0
  211. package/presets/mavis/go/native-skills/spec-start/SKILL.md +31 -0
  212. package/presets/mavis/go/native-skills/task/SKILL.md +77 -0
  213. package/presets/mavis/go/native-skills/task-continue/SKILL.md +72 -0
  214. package/presets/mavis/go/native-skills/technical-retro/SKILL.md +72 -0
  215. package/presets/mavis/go/native-skills/unit-testing/SKILL.md +20 -0
  216. package/presets/mavis/go/native-skills/update/SKILL.md +44 -0
  217. package/presets/mavis/go/native-skills/write-adr/SKILL.md +46 -0
  218. package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -0
  219. package/presets/mavis/go/rules/code-review-mr.md +19 -4
  220. package/presets/mavis/go/skills/code-review/SKILL.md +2 -1
  221. package/presets/mavis/ios-swift/MAVIS.md +9 -3
  222. package/presets/mavis/ios-swift/README.md +3 -1
  223. package/presets/mavis/ios-swift/adapter-map.json +104 -44
  224. package/presets/mavis/ios-swift/agents/code-reviewer.md +5 -1
  225. package/presets/mavis/ios-swift/commands/update.md +1 -0
  226. package/presets/mavis/ios-swift/hooks/README.md +29 -7
  227. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +40 -0
  228. package/presets/mavis/ios-swift/hooks/mavis-chain-hook.mjs +143 -0
  229. package/presets/mavis/ios-swift/hooks/run-hook.mjs +103 -0
  230. package/presets/mavis/ios-swift/minimax-hooks/hooks.json +28 -0
  231. package/presets/mavis/ios-swift/native-skills/README.md +15 -0
  232. package/presets/mavis/ios-swift/native-skills/ci-investigation/SKILL.md +53 -0
  233. package/presets/mavis/ios-swift/native-skills/code-review/SKILL.md +62 -0
  234. package/presets/mavis/ios-swift/native-skills/debug-investigation/SKILL.md +72 -0
  235. package/presets/mavis/ios-swift/native-skills/feature-delivery/SKILL.md +51 -0
  236. package/presets/mavis/ios-swift/native-skills/migrate-tasks/SKILL.md +43 -0
  237. package/presets/mavis/ios-swift/native-skills/mockup-review/SKILL.md +34 -0
  238. package/presets/mavis/ios-swift/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  239. package/presets/mavis/ios-swift/native-skills/rr-scheduler-start/SKILL.md +34 -0
  240. package/presets/mavis/ios-swift/native-skills/spec-authoring/SKILL.md +31 -0
  241. package/presets/mavis/ios-swift/native-skills/spec-discovery/SKILL.md +63 -0
  242. package/presets/mavis/ios-swift/native-skills/spec-start/SKILL.md +31 -0
  243. package/presets/mavis/ios-swift/native-skills/task/SKILL.md +79 -0
  244. package/presets/mavis/ios-swift/native-skills/task-continue/SKILL.md +74 -0
  245. package/presets/mavis/ios-swift/native-skills/technical-retro/SKILL.md +72 -0
  246. package/presets/mavis/ios-swift/native-skills/unit-testing/SKILL.md +38 -0
  247. package/presets/mavis/ios-swift/native-skills/update/SKILL.md +44 -0
  248. package/presets/mavis/ios-swift/native-skills/ux-design/SKILL.md +41 -0
  249. package/presets/mavis/ios-swift/native-skills/write-adr/SKILL.md +46 -0
  250. package/presets/mavis/ios-swift/native-skills/xcuitest-e2e/SKILL.md +39 -0
  251. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -0
  252. package/presets/mavis/ios-swift/rules/code-review-mr.md +19 -4
  253. package/presets/mavis/ios-swift/skills/code-review/SKILL.md +2 -1
  254. package/presets/mavis/java/MAVIS.md +9 -3
  255. package/presets/mavis/java/README.md +3 -1
  256. package/presets/mavis/java/adapter-map.json +94 -40
  257. package/presets/mavis/java/agents/code-reviewer.md +5 -1
  258. package/presets/mavis/java/commands/update.md +1 -0
  259. package/presets/mavis/java/hooks/README.md +29 -7
  260. package/presets/mavis/java/hooks/chain-team-phases.sh +40 -0
  261. package/presets/mavis/java/hooks/mavis-chain-hook.mjs +143 -0
  262. package/presets/mavis/java/hooks/run-hook.mjs +103 -0
  263. package/presets/mavis/java/minimax-hooks/hooks.json +28 -0
  264. package/presets/mavis/java/native-skills/README.md +15 -0
  265. package/presets/mavis/java/native-skills/ci-investigation/SKILL.md +24 -0
  266. package/presets/mavis/java/native-skills/code-review/SKILL.md +48 -0
  267. package/presets/mavis/java/native-skills/debug-investigation/SKILL.md +55 -0
  268. package/presets/mavis/java/native-skills/feature-delivery/SKILL.md +43 -0
  269. package/presets/mavis/java/native-skills/integration-testing/SKILL.md +21 -0
  270. package/presets/mavis/java/native-skills/migrate-tasks/SKILL.md +43 -0
  271. package/presets/mavis/java/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  272. package/presets/mavis/java/native-skills/rr-scheduler-start/SKILL.md +34 -0
  273. package/presets/mavis/java/native-skills/spec-authoring/SKILL.md +31 -0
  274. package/presets/mavis/java/native-skills/spec-discovery/SKILL.md +63 -0
  275. package/presets/mavis/java/native-skills/spec-start/SKILL.md +31 -0
  276. package/presets/mavis/java/native-skills/task/SKILL.md +77 -0
  277. package/presets/mavis/java/native-skills/task-continue/SKILL.md +72 -0
  278. package/presets/mavis/java/native-skills/technical-retro/SKILL.md +72 -0
  279. package/presets/mavis/java/native-skills/unit-testing/SKILL.md +20 -0
  280. package/presets/mavis/java/native-skills/update/SKILL.md +44 -0
  281. package/presets/mavis/java/native-skills/write-adr/SKILL.md +46 -0
  282. package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -0
  283. package/presets/mavis/java/rules/code-review-mr.md +19 -4
  284. package/presets/mavis/java/skills/code-review/SKILL.md +2 -1
  285. package/presets/mavis/mcp-ts/MAVIS.md +9 -3
  286. package/presets/mavis/mcp-ts/README.md +3 -1
  287. package/presets/mavis/mcp-ts/adapter-map.json +77 -32
  288. package/presets/mavis/mcp-ts/commands/update.md +1 -0
  289. package/presets/mavis/mcp-ts/hooks/README.md +29 -7
  290. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +40 -0
  291. package/presets/mavis/mcp-ts/hooks/mavis-chain-hook.mjs +143 -0
  292. package/presets/mavis/mcp-ts/hooks/run-hook.mjs +103 -0
  293. package/presets/mavis/mcp-ts/minimax-hooks/hooks.json +28 -0
  294. package/presets/mavis/mcp-ts/native-skills/README.md +15 -0
  295. package/presets/mavis/mcp-ts/native-skills/code-review/SKILL.md +31 -0
  296. package/presets/mavis/mcp-ts/native-skills/debug-investigation/SKILL.md +51 -0
  297. package/presets/mavis/mcp-ts/native-skills/feature-delivery/SKILL.md +42 -0
  298. package/presets/mavis/mcp-ts/native-skills/migrate-tasks/SKILL.md +43 -0
  299. package/presets/mavis/mcp-ts/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  300. package/presets/mavis/mcp-ts/native-skills/rr-scheduler-start/SKILL.md +34 -0
  301. package/presets/mavis/mcp-ts/native-skills/spec-authoring/SKILL.md +31 -0
  302. package/presets/mavis/mcp-ts/native-skills/spec-discovery/SKILL.md +63 -0
  303. package/presets/mavis/mcp-ts/native-skills/spec-start/SKILL.md +31 -0
  304. package/presets/mavis/mcp-ts/native-skills/task/SKILL.md +77 -0
  305. package/presets/mavis/mcp-ts/native-skills/task-continue/SKILL.md +72 -0
  306. package/presets/mavis/mcp-ts/native-skills/technical-retro/SKILL.md +95 -0
  307. package/presets/mavis/mcp-ts/native-skills/unit-testing/SKILL.md +22 -0
  308. package/presets/mavis/mcp-ts/native-skills/update/SKILL.md +44 -0
  309. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -0
  310. package/presets/mavis/mcp-ts/rules/code-review-mr.md +19 -4
  311. package/presets/mavis/mol/MAVIS.md +9 -3
  312. package/presets/mavis/mol/README.md +3 -1
  313. package/presets/mavis/mol/REPO_AGENTS.md +1 -1
  314. package/presets/mavis/mol/adapter-map.json +94 -40
  315. package/presets/mavis/mol/agents/code-reviewer.md +5 -1
  316. package/presets/mavis/mol/agents/task-router.md +1 -1
  317. package/presets/mavis/mol/commands/update.md +1 -0
  318. package/presets/mavis/mol/hooks/README.md +29 -7
  319. package/presets/mavis/mol/hooks/chain-team-phases.sh +40 -0
  320. package/presets/mavis/mol/hooks/mavis-chain-hook.mjs +143 -0
  321. package/presets/mavis/mol/hooks/run-hook.mjs +103 -0
  322. package/presets/mavis/mol/minimax-hooks/hooks.json +28 -0
  323. package/presets/mavis/mol/native-skills/README.md +15 -0
  324. package/presets/mavis/mol/native-skills/ci-investigation/SKILL.md +49 -0
  325. package/presets/mavis/mol/native-skills/code-review/SKILL.md +61 -0
  326. package/presets/mavis/mol/native-skills/debug-investigation/SKILL.md +63 -0
  327. package/presets/mavis/mol/native-skills/feature-delivery/SKILL.md +44 -0
  328. package/presets/mavis/mol/native-skills/migrate-tasks/SKILL.md +43 -0
  329. package/presets/mavis/mol/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  330. package/presets/mavis/mol/native-skills/rr-scheduler-start/SKILL.md +34 -0
  331. package/presets/mavis/mol/native-skills/spec-authoring/SKILL.md +31 -0
  332. package/presets/mavis/mol/native-skills/spec-discovery/SKILL.md +63 -0
  333. package/presets/mavis/mol/native-skills/spec-start/SKILL.md +31 -0
  334. package/presets/mavis/mol/native-skills/task/SKILL.md +82 -0
  335. package/presets/mavis/mol/native-skills/task-continue/SKILL.md +74 -0
  336. package/presets/mavis/mol/native-skills/task-evil/SKILL.md +89 -0
  337. package/presets/mavis/mol/native-skills/technical-retro/SKILL.md +72 -0
  338. package/presets/mavis/mol/native-skills/unit-testing/SKILL.md +38 -0
  339. package/presets/mavis/mol/native-skills/update/SKILL.md +44 -0
  340. package/presets/mavis/mol/native-skills/write-adr/SKILL.md +46 -0
  341. package/presets/mavis/mol/rules/agent-team-orchestrator.md +1 -0
  342. package/presets/mavis/mol/rules/code-review-mr.md +19 -4
  343. package/presets/mavis/mol/skills/code-review/SKILL.md +2 -1
  344. package/presets/mavis/next/MAVIS.md +9 -3
  345. package/presets/mavis/next/README.md +3 -1
  346. package/presets/mavis/next/REPO_AGENTS.md +1 -1
  347. package/presets/mavis/next/adapter-map.json +128 -53
  348. package/presets/mavis/next/agents/code-reviewer.md +5 -1
  349. package/presets/mavis/next/agents/task-router.md +1 -1
  350. package/presets/mavis/next/commands/update.md +1 -0
  351. package/presets/mavis/next/hooks/README.md +29 -7
  352. package/presets/mavis/next/hooks/chain-team-phases.sh +40 -0
  353. package/presets/mavis/next/hooks/mavis-chain-hook.mjs +143 -0
  354. package/presets/mavis/next/hooks/run-hook.mjs +103 -0
  355. package/presets/mavis/next/minimax-hooks/hooks.json +28 -0
  356. package/presets/mavis/next/native-skills/README.md +15 -0
  357. package/presets/mavis/next/native-skills/ci-investigation/SKILL.md +50 -0
  358. package/presets/mavis/next/native-skills/code-review/SKILL.md +62 -0
  359. package/presets/mavis/next/native-skills/debug-investigation/SKILL.md +64 -0
  360. package/presets/mavis/next/native-skills/feature-delivery/SKILL.md +45 -0
  361. package/presets/mavis/next/native-skills/figma-fidelity/SKILL.md +131 -0
  362. package/presets/mavis/next/native-skills/migrate-tasks/SKILL.md +43 -0
  363. package/presets/mavis/next/native-skills/mockup-review/SKILL.md +44 -0
  364. package/presets/mavis/next/native-skills/playwright-e2e/SKILL.md +39 -0
  365. package/presets/mavis/next/native-skills/react-performance/SKILL.md +49 -0
  366. package/presets/mavis/next/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  367. package/presets/mavis/next/native-skills/rr-scheduler-start/SKILL.md +34 -0
  368. package/presets/mavis/next/native-skills/spec-authoring/SKILL.md +31 -0
  369. package/presets/mavis/next/native-skills/spec-discovery/SKILL.md +63 -0
  370. package/presets/mavis/next/native-skills/spec-start/SKILL.md +31 -0
  371. package/presets/mavis/next/native-skills/task/SKILL.md +88 -0
  372. package/presets/mavis/next/native-skills/task-continue/SKILL.md +87 -0
  373. package/presets/mavis/next/native-skills/task-evil/SKILL.md +89 -0
  374. package/presets/mavis/next/native-skills/technical-retro/SKILL.md +72 -0
  375. package/presets/mavis/next/native-skills/ui-start/SKILL.md +64 -0
  376. package/presets/mavis/next/native-skills/ui-stop/SKILL.md +48 -0
  377. package/presets/mavis/next/native-skills/unit-testing/SKILL.md +40 -0
  378. package/presets/mavis/next/native-skills/update/SKILL.md +44 -0
  379. package/presets/mavis/next/native-skills/ux-design/SKILL.md +41 -0
  380. package/presets/mavis/next/native-skills/write-adr/SKILL.md +46 -0
  381. package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -0
  382. package/presets/mavis/next/rules/code-review-mr.md +19 -4
  383. package/presets/mavis/next/skills/code-review/SKILL.md +2 -1
  384. package/presets/mavis/nuxt/MAVIS.md +9 -3
  385. package/presets/mavis/nuxt/README.md +3 -1
  386. package/presets/mavis/nuxt/adapter-map.json +109 -46
  387. package/presets/mavis/nuxt/agents/code-reviewer.md +5 -1
  388. package/presets/mavis/nuxt/agents/task-router.md +1 -1
  389. package/presets/mavis/nuxt/commands/update.md +1 -0
  390. package/presets/mavis/nuxt/hooks/README.md +29 -7
  391. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +40 -0
  392. package/presets/mavis/nuxt/hooks/mavis-chain-hook.mjs +143 -0
  393. package/presets/mavis/nuxt/hooks/run-hook.mjs +103 -0
  394. package/presets/mavis/nuxt/minimax-hooks/hooks.json +28 -0
  395. package/presets/mavis/nuxt/native-skills/README.md +15 -0
  396. package/presets/mavis/nuxt/native-skills/ci-investigation/SKILL.md +50 -0
  397. package/presets/mavis/nuxt/native-skills/code-review/SKILL.md +61 -0
  398. package/presets/mavis/nuxt/native-skills/debug-investigation/SKILL.md +64 -0
  399. package/presets/mavis/nuxt/native-skills/feature-delivery/SKILL.md +52 -0
  400. package/presets/mavis/nuxt/native-skills/migrate-tasks/SKILL.md +43 -0
  401. package/presets/mavis/nuxt/native-skills/mockup-review/SKILL.md +34 -0
  402. package/presets/mavis/nuxt/native-skills/playwright-e2e/SKILL.md +43 -0
  403. package/presets/mavis/nuxt/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  404. package/presets/mavis/nuxt/native-skills/rr-scheduler-start/SKILL.md +34 -0
  405. package/presets/mavis/nuxt/native-skills/spec-authoring/SKILL.md +31 -0
  406. package/presets/mavis/nuxt/native-skills/spec-discovery/SKILL.md +63 -0
  407. package/presets/mavis/nuxt/native-skills/spec-start/SKILL.md +31 -0
  408. package/presets/mavis/nuxt/native-skills/task/SKILL.md +79 -0
  409. package/presets/mavis/nuxt/native-skills/task-continue/SKILL.md +74 -0
  410. package/presets/mavis/nuxt/native-skills/technical-retro/SKILL.md +72 -0
  411. package/presets/mavis/nuxt/native-skills/unit-testing/SKILL.md +38 -0
  412. package/presets/mavis/nuxt/native-skills/update/SKILL.md +44 -0
  413. package/presets/mavis/nuxt/native-skills/ux-design/SKILL.md +41 -0
  414. package/presets/mavis/nuxt/native-skills/vue-performance/SKILL.md +58 -0
  415. package/presets/mavis/nuxt/native-skills/write-adr/SKILL.md +46 -0
  416. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -0
  417. package/presets/mavis/nuxt/rules/code-review-mr.md +19 -4
  418. package/presets/mavis/nuxt/skills/code-review/SKILL.md +2 -1
  419. package/presets/mavis/php-hexagonal/MAVIS.md +9 -3
  420. package/presets/mavis/php-hexagonal/README.md +3 -1
  421. package/presets/mavis/php-hexagonal/adapter-map.json +94 -40
  422. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +5 -1
  423. package/presets/mavis/php-hexagonal/commands/update.md +1 -0
  424. package/presets/mavis/php-hexagonal/hooks/README.md +29 -7
  425. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +40 -0
  426. package/presets/mavis/php-hexagonal/hooks/mavis-chain-hook.mjs +143 -0
  427. package/presets/mavis/php-hexagonal/hooks/run-hook.mjs +103 -0
  428. package/presets/mavis/php-hexagonal/minimax-hooks/hooks.json +28 -0
  429. package/presets/mavis/php-hexagonal/native-skills/README.md +15 -0
  430. package/presets/mavis/php-hexagonal/native-skills/ci-investigation/SKILL.md +24 -0
  431. package/presets/mavis/php-hexagonal/native-skills/code-review/SKILL.md +48 -0
  432. package/presets/mavis/php-hexagonal/native-skills/debug-investigation/SKILL.md +55 -0
  433. package/presets/mavis/php-hexagonal/native-skills/feature-delivery/SKILL.md +43 -0
  434. package/presets/mavis/php-hexagonal/native-skills/integration-testing/SKILL.md +21 -0
  435. package/presets/mavis/php-hexagonal/native-skills/migrate-tasks/SKILL.md +43 -0
  436. package/presets/mavis/php-hexagonal/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  437. package/presets/mavis/php-hexagonal/native-skills/rr-scheduler-start/SKILL.md +34 -0
  438. package/presets/mavis/php-hexagonal/native-skills/spec-authoring/SKILL.md +31 -0
  439. package/presets/mavis/php-hexagonal/native-skills/spec-discovery/SKILL.md +63 -0
  440. package/presets/mavis/php-hexagonal/native-skills/spec-start/SKILL.md +31 -0
  441. package/presets/mavis/php-hexagonal/native-skills/task/SKILL.md +77 -0
  442. package/presets/mavis/php-hexagonal/native-skills/task-continue/SKILL.md +72 -0
  443. package/presets/mavis/php-hexagonal/native-skills/technical-retro/SKILL.md +72 -0
  444. package/presets/mavis/php-hexagonal/native-skills/unit-testing/SKILL.md +20 -0
  445. package/presets/mavis/php-hexagonal/native-skills/update/SKILL.md +44 -0
  446. package/presets/mavis/php-hexagonal/native-skills/write-adr/SKILL.md +46 -0
  447. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
  448. package/presets/mavis/php-hexagonal/rules/code-review-mr.md +19 -4
  449. package/presets/mavis/php-hexagonal/skills/code-review/SKILL.md +2 -1
  450. package/presets/mavis/php-laravel/MAVIS.md +9 -3
  451. package/presets/mavis/php-laravel/README.md +3 -1
  452. package/presets/mavis/php-laravel/adapter-map.json +94 -40
  453. package/presets/mavis/php-laravel/agents/code-reviewer.md +5 -1
  454. package/presets/mavis/php-laravel/commands/update.md +1 -0
  455. package/presets/mavis/php-laravel/hooks/README.md +29 -7
  456. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +40 -0
  457. package/presets/mavis/php-laravel/hooks/mavis-chain-hook.mjs +143 -0
  458. package/presets/mavis/php-laravel/hooks/run-hook.mjs +103 -0
  459. package/presets/mavis/php-laravel/minimax-hooks/hooks.json +28 -0
  460. package/presets/mavis/php-laravel/native-skills/README.md +15 -0
  461. package/presets/mavis/php-laravel/native-skills/ci-investigation/SKILL.md +24 -0
  462. package/presets/mavis/php-laravel/native-skills/code-review/SKILL.md +48 -0
  463. package/presets/mavis/php-laravel/native-skills/debug-investigation/SKILL.md +55 -0
  464. package/presets/mavis/php-laravel/native-skills/feature-delivery/SKILL.md +43 -0
  465. package/presets/mavis/php-laravel/native-skills/integration-testing/SKILL.md +21 -0
  466. package/presets/mavis/php-laravel/native-skills/migrate-tasks/SKILL.md +43 -0
  467. package/presets/mavis/php-laravel/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  468. package/presets/mavis/php-laravel/native-skills/rr-scheduler-start/SKILL.md +34 -0
  469. package/presets/mavis/php-laravel/native-skills/spec-authoring/SKILL.md +31 -0
  470. package/presets/mavis/php-laravel/native-skills/spec-discovery/SKILL.md +63 -0
  471. package/presets/mavis/php-laravel/native-skills/spec-start/SKILL.md +31 -0
  472. package/presets/mavis/php-laravel/native-skills/task/SKILL.md +77 -0
  473. package/presets/mavis/php-laravel/native-skills/task-continue/SKILL.md +72 -0
  474. package/presets/mavis/php-laravel/native-skills/technical-retro/SKILL.md +72 -0
  475. package/presets/mavis/php-laravel/native-skills/unit-testing/SKILL.md +20 -0
  476. package/presets/mavis/php-laravel/native-skills/update/SKILL.md +44 -0
  477. package/presets/mavis/php-laravel/native-skills/write-adr/SKILL.md +46 -0
  478. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -0
  479. package/presets/mavis/php-laravel/rules/code-review-mr.md +19 -4
  480. package/presets/mavis/php-laravel/skills/code-review/SKILL.md +2 -1
  481. package/presets/mavis/platform-contract.json +18 -5
  482. package/presets/mavis/svelte/MAVIS.md +9 -3
  483. package/presets/mavis/svelte/README.md +3 -1
  484. package/presets/mavis/svelte/adapter-map.json +109 -46
  485. package/presets/mavis/svelte/agents/code-reviewer.md +5 -1
  486. package/presets/mavis/svelte/agents/task-router.md +1 -1
  487. package/presets/mavis/svelte/commands/update.md +1 -0
  488. package/presets/mavis/svelte/hooks/README.md +29 -7
  489. package/presets/mavis/svelte/hooks/chain-team-phases.sh +40 -0
  490. package/presets/mavis/svelte/hooks/mavis-chain-hook.mjs +143 -0
  491. package/presets/mavis/svelte/hooks/run-hook.mjs +103 -0
  492. package/presets/mavis/svelte/minimax-hooks/hooks.json +28 -0
  493. package/presets/mavis/svelte/native-skills/README.md +15 -0
  494. package/presets/mavis/svelte/native-skills/ci-investigation/SKILL.md +50 -0
  495. package/presets/mavis/svelte/native-skills/code-review/SKILL.md +61 -0
  496. package/presets/mavis/svelte/native-skills/debug-investigation/SKILL.md +64 -0
  497. package/presets/mavis/svelte/native-skills/feature-delivery/SKILL.md +52 -0
  498. package/presets/mavis/svelte/native-skills/migrate-tasks/SKILL.md +43 -0
  499. package/presets/mavis/svelte/native-skills/mockup-review/SKILL.md +34 -0
  500. package/presets/mavis/svelte/native-skills/playwright-e2e/SKILL.md +43 -0
  501. package/presets/mavis/svelte/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  502. package/presets/mavis/svelte/native-skills/rr-scheduler-start/SKILL.md +34 -0
  503. package/presets/mavis/svelte/native-skills/spec-authoring/SKILL.md +31 -0
  504. package/presets/mavis/svelte/native-skills/spec-discovery/SKILL.md +63 -0
  505. package/presets/mavis/svelte/native-skills/spec-start/SKILL.md +31 -0
  506. package/presets/mavis/svelte/native-skills/svelte-performance/SKILL.md +57 -0
  507. package/presets/mavis/svelte/native-skills/task/SKILL.md +79 -0
  508. package/presets/mavis/svelte/native-skills/task-continue/SKILL.md +74 -0
  509. package/presets/mavis/svelte/native-skills/technical-retro/SKILL.md +72 -0
  510. package/presets/mavis/svelte/native-skills/unit-testing/SKILL.md +38 -0
  511. package/presets/mavis/svelte/native-skills/update/SKILL.md +44 -0
  512. package/presets/mavis/svelte/native-skills/ux-design/SKILL.md +41 -0
  513. package/presets/mavis/svelte/native-skills/write-adr/SKILL.md +46 -0
  514. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -0
  515. package/presets/mavis/svelte/rules/code-review-mr.md +19 -4
  516. package/presets/mavis/svelte/skills/code-review/SKILL.md +2 -1
  517. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  518. package/presets/opencode/android-kotlin/agents/code-reviewer.md +5 -1
  519. package/presets/opencode/android-kotlin/commands/update.md +1 -0
  520. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +40 -0
  521. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
  522. package/presets/opencode/android-kotlin/rules/code-review-mr.md +19 -4
  523. package/presets/opencode/android-kotlin/skills/code-review/SKILL.md +2 -1
  524. package/presets/opencode/go/adapter-map.json +1 -1
  525. package/presets/opencode/go/agents/code-reviewer.md +5 -1
  526. package/presets/opencode/go/commands/update.md +1 -0
  527. package/presets/opencode/go/hooks/chain-team-phases.sh +40 -0
  528. package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -0
  529. package/presets/opencode/go/rules/code-review-mr.md +19 -4
  530. package/presets/opencode/go/skills/code-review/SKILL.md +2 -1
  531. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  532. package/presets/opencode/ios-swift/agents/code-reviewer.md +5 -1
  533. package/presets/opencode/ios-swift/commands/update.md +1 -0
  534. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +40 -0
  535. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -0
  536. package/presets/opencode/ios-swift/rules/code-review-mr.md +19 -4
  537. package/presets/opencode/ios-swift/skills/code-review/SKILL.md +2 -1
  538. package/presets/opencode/java/adapter-map.json +1 -1
  539. package/presets/opencode/java/agents/code-reviewer.md +5 -1
  540. package/presets/opencode/java/commands/update.md +1 -0
  541. package/presets/opencode/java/hooks/chain-team-phases.sh +40 -0
  542. package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -0
  543. package/presets/opencode/java/rules/code-review-mr.md +19 -4
  544. package/presets/opencode/java/skills/code-review/SKILL.md +2 -1
  545. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  546. package/presets/opencode/mcp-ts/commands/update.md +1 -0
  547. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +40 -0
  548. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
  549. package/presets/opencode/mcp-ts/rules/code-review-mr.md +19 -4
  550. package/presets/opencode/mol/REPO_AGENTS.md +1 -1
  551. package/presets/opencode/mol/adapter-map.json +1 -1
  552. package/presets/opencode/mol/agents/code-reviewer.md +5 -1
  553. package/presets/opencode/mol/agents/task-router.md +1 -1
  554. package/presets/opencode/mol/commands/update.md +1 -0
  555. package/presets/opencode/mol/hooks/chain-team-phases.sh +40 -0
  556. package/presets/opencode/mol/rules/agent-team-orchestrator.md +1 -0
  557. package/presets/opencode/mol/rules/code-review-mr.md +19 -4
  558. package/presets/opencode/mol/skills/code-review/SKILL.md +2 -1
  559. package/presets/opencode/next/REPO_AGENTS.md +1 -1
  560. package/presets/opencode/next/adapter-map.json +1 -1
  561. package/presets/opencode/next/agents/code-reviewer.md +5 -1
  562. package/presets/opencode/next/agents/task-router.md +1 -1
  563. package/presets/opencode/next/commands/update.md +1 -0
  564. package/presets/opencode/next/hooks/chain-team-phases.sh +40 -0
  565. package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -0
  566. package/presets/opencode/next/rules/code-review-mr.md +19 -4
  567. package/presets/opencode/next/skills/code-review/SKILL.md +2 -1
  568. package/presets/opencode/nuxt/adapter-map.json +1 -1
  569. package/presets/opencode/nuxt/agents/code-reviewer.md +5 -1
  570. package/presets/opencode/nuxt/agents/task-router.md +1 -1
  571. package/presets/opencode/nuxt/commands/update.md +1 -0
  572. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +40 -0
  573. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -0
  574. package/presets/opencode/nuxt/rules/code-review-mr.md +19 -4
  575. package/presets/opencode/nuxt/skills/code-review/SKILL.md +2 -1
  576. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  577. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +5 -1
  578. package/presets/opencode/php-hexagonal/commands/update.md +1 -0
  579. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
  580. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
  581. package/presets/opencode/php-hexagonal/rules/code-review-mr.md +19 -4
  582. package/presets/opencode/php-hexagonal/skills/code-review/SKILL.md +2 -1
  583. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  584. package/presets/opencode/php-laravel/agents/code-reviewer.md +5 -1
  585. package/presets/opencode/php-laravel/commands/update.md +1 -0
  586. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +40 -0
  587. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -0
  588. package/presets/opencode/php-laravel/rules/code-review-mr.md +19 -4
  589. package/presets/opencode/php-laravel/skills/code-review/SKILL.md +2 -1
  590. package/presets/opencode/plugins/task-status/README.md +3 -2
  591. package/presets/opencode/plugins/task-status/deepseek.ts +58 -34
  592. package/presets/opencode/plugins/task-status/tui.tsx +17 -17
  593. package/presets/opencode/svelte/adapter-map.json +1 -1
  594. package/presets/opencode/svelte/agents/code-reviewer.md +5 -1
  595. package/presets/opencode/svelte/agents/task-router.md +1 -1
  596. package/presets/opencode/svelte/commands/update.md +1 -0
  597. package/presets/opencode/svelte/hooks/chain-team-phases.sh +40 -0
  598. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -0
  599. package/presets/opencode/svelte/rules/code-review-mr.md +19 -4
  600. package/presets/opencode/svelte/skills/code-review/SKILL.md +2 -1
  601. package/presets/zcode/android-kotlin/adapter-map.json +1 -1
  602. package/presets/zcode/android-kotlin/agents/code-reviewer.md +5 -1
  603. package/presets/zcode/android-kotlin/commands/update.md +1 -0
  604. package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +40 -0
  605. package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
  606. package/presets/zcode/android-kotlin/rules/code-review-mr.md +19 -4
  607. package/presets/zcode/android-kotlin/skills/code-review/SKILL.md +2 -1
  608. package/presets/zcode/go/adapter-map.json +1 -1
  609. package/presets/zcode/go/agents/code-reviewer.md +5 -1
  610. package/presets/zcode/go/commands/update.md +1 -0
  611. package/presets/zcode/go/hooks/chain-team-phases.sh +40 -0
  612. package/presets/zcode/go/rules/agent-team-orchestrator.md +1 -0
  613. package/presets/zcode/go/rules/code-review-mr.md +19 -4
  614. package/presets/zcode/go/skills/code-review/SKILL.md +2 -1
  615. package/presets/zcode/ios-swift/adapter-map.json +1 -1
  616. package/presets/zcode/ios-swift/agents/code-reviewer.md +5 -1
  617. package/presets/zcode/ios-swift/commands/update.md +1 -0
  618. package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +40 -0
  619. package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +1 -0
  620. package/presets/zcode/ios-swift/rules/code-review-mr.md +19 -4
  621. package/presets/zcode/ios-swift/skills/code-review/SKILL.md +2 -1
  622. package/presets/zcode/java/adapter-map.json +1 -1
  623. package/presets/zcode/java/agents/code-reviewer.md +5 -1
  624. package/presets/zcode/java/commands/update.md +1 -0
  625. package/presets/zcode/java/hooks/chain-team-phases.sh +40 -0
  626. package/presets/zcode/java/rules/agent-team-orchestrator.md +1 -0
  627. package/presets/zcode/java/rules/code-review-mr.md +19 -4
  628. package/presets/zcode/java/skills/code-review/SKILL.md +2 -1
  629. package/presets/zcode/mcp-ts/adapter-map.json +1 -1
  630. package/presets/zcode/mcp-ts/commands/update.md +1 -0
  631. package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +40 -0
  632. package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
  633. package/presets/zcode/mcp-ts/rules/code-review-mr.md +19 -4
  634. package/presets/zcode/mol/REPO_AGENTS.md +1 -1
  635. package/presets/zcode/mol/adapter-map.json +1 -1
  636. package/presets/zcode/mol/agents/code-reviewer.md +5 -1
  637. package/presets/zcode/mol/agents/task-router.md +1 -1
  638. package/presets/zcode/mol/commands/update.md +1 -0
  639. package/presets/zcode/mol/hooks/chain-team-phases.sh +40 -0
  640. package/presets/zcode/mol/rules/agent-team-orchestrator.md +1 -0
  641. package/presets/zcode/mol/rules/code-review-mr.md +19 -4
  642. package/presets/zcode/mol/skills/code-review/SKILL.md +2 -1
  643. package/presets/zcode/next/REPO_AGENTS.md +1 -1
  644. package/presets/zcode/next/adapter-map.json +1 -1
  645. package/presets/zcode/next/agents/code-reviewer.md +5 -1
  646. package/presets/zcode/next/agents/task-router.md +1 -1
  647. package/presets/zcode/next/commands/update.md +1 -0
  648. package/presets/zcode/next/hooks/chain-team-phases.sh +40 -0
  649. package/presets/zcode/next/rules/agent-team-orchestrator.md +1 -0
  650. package/presets/zcode/next/rules/code-review-mr.md +19 -4
  651. package/presets/zcode/next/skills/code-review/SKILL.md +2 -1
  652. package/presets/zcode/nuxt/adapter-map.json +1 -1
  653. package/presets/zcode/nuxt/agents/code-reviewer.md +5 -1
  654. package/presets/zcode/nuxt/agents/task-router.md +1 -1
  655. package/presets/zcode/nuxt/commands/update.md +1 -0
  656. package/presets/zcode/nuxt/hooks/chain-team-phases.sh +40 -0
  657. package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +1 -0
  658. package/presets/zcode/nuxt/rules/code-review-mr.md +19 -4
  659. package/presets/zcode/nuxt/skills/code-review/SKILL.md +2 -1
  660. package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
  661. package/presets/zcode/php-hexagonal/agents/code-reviewer.md +5 -1
  662. package/presets/zcode/php-hexagonal/commands/update.md +1 -0
  663. package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
  664. package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
  665. package/presets/zcode/php-hexagonal/rules/code-review-mr.md +19 -4
  666. package/presets/zcode/php-hexagonal/skills/code-review/SKILL.md +2 -1
  667. package/presets/zcode/php-laravel/adapter-map.json +1 -1
  668. package/presets/zcode/php-laravel/agents/code-reviewer.md +5 -1
  669. package/presets/zcode/php-laravel/commands/update.md +1 -0
  670. package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +40 -0
  671. package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +1 -0
  672. package/presets/zcode/php-laravel/rules/code-review-mr.md +19 -4
  673. package/presets/zcode/php-laravel/skills/code-review/SKILL.md +2 -1
  674. package/presets/zcode/svelte/adapter-map.json +1 -1
  675. package/presets/zcode/svelte/agents/code-reviewer.md +5 -1
  676. package/presets/zcode/svelte/agents/task-router.md +1 -1
  677. package/presets/zcode/svelte/commands/update.md +1 -0
  678. package/presets/zcode/svelte/hooks/chain-team-phases.sh +40 -0
  679. package/presets/zcode/svelte/rules/agent-team-orchestrator.md +1 -0
  680. package/presets/zcode/svelte/rules/code-review-mr.md +19 -4
  681. package/presets/zcode/svelte/skills/code-review/SKILL.md +2 -1
@@ -1,19 +1,22 @@
1
1
  /**
2
- * The DeepSeek billing window at a given instant.
2
+ * The provider billing window at a given instant (DeepSeek and Z.AI).
3
3
  *
4
- * Peak windows come from the same file-authoritative catalog the team-tasks
5
- * UI reads: the `windows` records linked to the `DeepSeek` provider under
6
- * `.ai.local/catalog` (synced by the `opencode-models-sync` job). Window
7
- * semantics mirror `apps/team-tasks-ui/src/lib/catalog/effectiveWindow.ts`:
8
- * weekly windows match whole hours with the end hour inclusive and
9
- * `startHour > endHour` spanning midnight; absolute windows match
10
- * `[startAt, endAt]`. When no catalog is reachable — a project that never ran
11
- * the catalog sync — the published schedule shipped below applies unchanged.
4
+ * Peak windows come from the same file-authoritative store the team-tasks UI
5
+ * reads: the `windows` records linked to the provider under `.ai.local/models`
6
+ * (synced by the `opencode-models-sync` job). Window semantics mirror
7
+ * `apps/team-tasks-ui/src/lib/models/effectiveWindow.ts`: a weekly window
8
+ * covers `[startHour, endHour)` — the end hour is exclusive, so the published
9
+ * "14:00-18:00" schedule ends at 18:00 — and `startHour > endHour` spans
10
+ * midnight; absolute windows match `[startAt, endAt]`. When no store is
11
+ * reachable — a project that never ran the sync — the published schedule
12
+ * shipped below applies unchanged.
12
13
  *
13
14
  * Chinese public holidays are off-peak all day, but a holiday calendar is not
14
15
  * shipped here, so a holiday weekday still reads `peak` inside a window.
15
16
  *
16
- * Source: https://api-docs.deepseek.com/quick_start/pricing
17
+ * Sources:
18
+ * - DeepSeek: https://api-docs.deepseek.com/quick_start/pricing
19
+ * - Z.AI: https://docs.z.ai/devpack/notice/usage-revision
17
20
  */
18
21
 
19
22
  import fs from "node:fs"
@@ -37,13 +40,18 @@ type AbsoluteWindow = {
37
40
 
38
41
  type PeakWindow = WeeklyWindow | AbsoluteWindow
39
42
 
40
- const PROVIDER_NAME = "DeepSeek"
41
- const CATALOG_TTL_MS = 10 * 60 * 1000
42
-
43
- const DEFAULT_WINDOWS: readonly PeakWindow[] = [
44
- { shape: "weekly", weekdays: [1, 2, 3, 4, 5], startHour: 9, endHour: 12, timezone: "Asia/Shanghai" },
45
- { shape: "weekly", weekdays: [1, 2, 3, 4, 5], startHour: 14, endHour: 18, timezone: "Asia/Shanghai" },
46
- ]
43
+ const MODELS_TTL_MS = 10 * 60 * 1000
44
+
45
+ /** The published schedule of each provider, used when the store is unreachable. */
46
+ const DEFAULT_WINDOWS: Record<string, readonly PeakWindow[]> = {
47
+ DeepSeek: [
48
+ { shape: "weekly", weekdays: [1, 2, 3, 4, 5], startHour: 9, endHour: 12, timezone: "Asia/Shanghai" },
49
+ { shape: "weekly", weekdays: [1, 2, 3, 4, 5], startHour: 14, endHour: 18, timezone: "Asia/Shanghai" },
50
+ ],
51
+ "Z.AI": [
52
+ { shape: "weekly", weekdays: [1, 2, 3, 4, 5], startHour: 14, endHour: 18, timezone: "Asia/Singapore" },
53
+ ],
54
+ }
47
55
 
48
56
  type CatalogProvider = { id: number; name?: string }
49
57
  type CatalogLink = { windowId?: number; targetType?: string; targetId?: number }
@@ -76,14 +84,18 @@ const readRecords = <T>(directory: string): T[] => {
76
84
  }
77
85
  }
78
86
 
79
- /** The catalog root the UI would resolve for the same project, `CATALOG_ROOT` override included. */
80
- const resolveCatalogRoot = (directory: string | undefined): string | undefined => {
81
- const override = process.env.CATALOG_ROOT
87
+ /**
88
+ * The models root the UI would resolve for the same project, `MODELS_ROOT`
89
+ * override included. `CATALOG_ROOT` is the deprecated name of the same
90
+ * override and is still honoured for one release.
91
+ */
92
+ const resolveModelsRoot = (directory: string | undefined): string | undefined => {
93
+ const override = process.env.MODELS_ROOT ?? process.env.CATALOG_ROOT
82
94
  if (override !== undefined && override !== "") return path.resolve(override)
83
95
 
84
96
  let current = directory === undefined ? undefined : path.resolve(directory)
85
97
  for (let level = 0; current !== undefined && level < 5; level += 1) {
86
- const candidate = path.join(current, ".ai.local", "catalog")
98
+ const candidate = path.join(current, ".ai.local", "models")
87
99
  if (fs.existsSync(candidate)) return candidate
88
100
  const parent = path.dirname(current)
89
101
  if (parent === current) break
@@ -110,9 +122,9 @@ const asPeakWindow = (window: CatalogWindow): PeakWindow | null => {
110
122
  return null
111
123
  }
112
124
 
113
- const loadPeakWindows = (root: string): readonly PeakWindow[] | null => {
125
+ const loadPeakWindows = (providerName: string, root: string): readonly PeakWindow[] | null => {
114
126
  const provider = readRecords<CatalogProvider>(path.join(root, "providers")).find(
115
- (candidate) => candidate?.name === PROVIDER_NAME,
127
+ (candidate) => candidate?.name === providerName,
116
128
  )
117
129
  if (provider === undefined) return null
118
130
 
@@ -132,15 +144,17 @@ const loadPeakWindows = (root: string): readonly PeakWindow[] | null => {
132
144
  return peak.length > 0 ? peak : null
133
145
  }
134
146
 
135
- let cache: { root: string; atMs: number; windows: readonly PeakWindow[] } | undefined
147
+ let cache: { key: string; atMs: number; windows: readonly PeakWindow[] } | undefined
136
148
 
137
- const peakWindows = (directory: string | undefined): readonly PeakWindow[] => {
138
- const root = resolveCatalogRoot(directory)
139
- if (root === undefined) return DEFAULT_WINDOWS
140
- if (cache?.root === root && Date.now() - cache.atMs < CATALOG_TTL_MS) return cache.windows
149
+ const peakWindows = (providerName: string, directory: string | undefined): readonly PeakWindow[] => {
150
+ const fallback = DEFAULT_WINDOWS[providerName] ?? []
151
+ const root = resolveModelsRoot(directory)
152
+ if (root === undefined) return fallback
153
+ const key = `${providerName}|${root}`
154
+ if (cache?.key === key && Date.now() - cache.atMs < MODELS_TTL_MS) return cache.windows
141
155
 
142
- const windows = loadPeakWindows(root) ?? DEFAULT_WINDOWS
143
- cache = { root, atMs: Date.now(), windows }
156
+ const windows = loadPeakWindows(providerName, root) ?? fallback
157
+ cache = { key, atMs: Date.now(), windows }
144
158
  return windows
145
159
  }
146
160
 
@@ -173,10 +187,11 @@ const partsInTimeZone = (at: Date, timeZone: string): { weekday: number; hour: n
173
187
  return { weekday: shifted.getUTCDay(), hour: shifted.getUTCHours() }
174
188
  }
175
189
 
190
+ /** A weekly window covers `[startHour, endHour)`; an equal pair is an empty window. */
176
191
  const hourInRange = (hour: number, startHour: number, endHour: number): boolean => {
177
- if (startHour < endHour) return hour >= startHour && hour <= endHour
178
- if (startHour > endHour) return hour >= startHour || hour <= endHour
179
- return hour === startHour
192
+ if (startHour < endHour) return hour >= startHour && hour < endHour
193
+ if (startHour > endHour) return hour >= startHour || hour < endHour
194
+ return false
180
195
  }
181
196
 
182
197
  const isPeakAt = (window: PeakWindow, at: Date): boolean => {
@@ -189,5 +204,14 @@ const isPeakAt = (window: PeakWindow, at: Date): boolean => {
189
204
  return window.weekdays.includes(weekday) && hourInRange(hour, window.startHour, window.endHour)
190
205
  }
191
206
 
207
+ export type ProviderRate = DeepseekRate
208
+
209
+ /** The billing rate of one named provider at `at`, from the shared models store. */
210
+ export const providerRate = (providerName: string, at: Date, directory?: string): ProviderRate =>
211
+ peakWindows(providerName, directory).some((window) => isPeakAt(window, at)) ? "peak" : "off-peak"
212
+
192
213
  export const deepseekRate = (now: Date, directory?: string): DeepseekRate =>
193
- peakWindows(directory).some((window) => isPeakAt(window, now)) ? "peak" : "off-peak"
214
+ providerRate("DeepSeek", now, directory)
215
+
216
+ export const zaiRate = (now: Date, directory?: string): DeepseekRate =>
217
+ providerRate("Z.AI", now, directory)
@@ -1,5 +1,5 @@
1
1
  import { Plugin, usePlugin } from "@opencode/plugin/tui"
2
- import { deepseekRate } from "./deepseek.ts"
2
+ import { deepseekRate, zaiRate } from "./deepseek.ts"
3
3
  import { sessionEconomy } from "./economy.ts"
4
4
  import { clearPause, createTaskWatcher, engagePause, logTaskDebug } from "./task-view.ts"
5
5
  import { TaskDetails } from "./details.tsx"
@@ -23,7 +23,12 @@ const TaskSidebar = () => {
23
23
  return theme.text.muted
24
24
  }
25
25
 
26
- const rate = deepseekRate(new Date(), projectDirectory())
26
+ const rateColor = (rate: string) =>
27
+ rate === "peak" ? theme.text.feedback.error.base : theme.text.feedback.success.base
28
+ const billingRows = [
29
+ { label: "DeepSeek", rate: deepseekRate(new Date(), projectDirectory()) },
30
+ { label: "Z.AI", rate: zaiRate(new Date(), projectDirectory()) },
31
+ ]
27
32
 
28
33
  const toggle = () => {
29
34
  void updatePanel((draft) => {
@@ -124,21 +129,16 @@ const TaskSidebar = () => {
124
129
  </box>
125
130
  ))
126
131
  )}
127
- <box flexDirection="row" gap={1} minWidth={0}>
128
- <text flexShrink={0} fg={theme.text.base}>
129
- <b>DeepSeek</b>
130
- </text>
131
- <text
132
- fg={rate === "peak" ? theme.text.feedback.error.base : theme.text.feedback.success.base}
133
- wrapMode="none"
134
- truncate
135
- flexGrow={1}
136
- flexShrink={1}
137
- minWidth={0}
138
- >
139
- [{rate}]
140
- </text>
141
- </box>
132
+ {billingRows.map((billing) => (
133
+ <box flexDirection="row" gap={1} minWidth={0} key={billing.label}>
134
+ <text flexShrink={0} fg={theme.text.base}>
135
+ <b>{billing.label}</b>
136
+ </text>
137
+ <text fg={rateColor(billing.rate)} wrapMode="none" truncate flexGrow={1} flexShrink={1} minWidth={0}>
138
+ [{billing.rate}]
139
+ </text>
140
+ </box>
141
+ ))}
142
142
  </box>
143
143
  ) : null}
144
144
  <box flexDirection="column">
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "svelte",
5
5
  "semanticSource": "cursor/svelte",
6
- "sourceRevision": "cc3c4d81b54b07f929554246f2e805bf1f392f755b8ae94b0c5bf19a5fe101d8",
6
+ "sourceRevision": "fc3d5cf52fc5a1435279f1860867af5823a51da1b4b071d8163fc85b7a1f8521",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -77,8 +77,9 @@ Write `.ai.local/team/tasks/<slug>/review.md` with this format:
77
77
  # Code review: <slug>
78
78
 
79
79
  ## Verdict
80
- APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
80
+ APPROVE | APPROVE_WITH_QUESTIONS | APPROVE_WITH_NOTES | REQUEST_CHANGES
81
81
  Findings carry `path:line`, severity, `confidence`, and a fix direction — rules in `code-review-mr` § Output contract.
82
+ `APPROVE_WITH_QUESTIONS` needs no `blocker`/`important` finding and at least one open question below.
82
83
 
83
84
  ## Critical (must fix)
84
85
  - ...
@@ -89,6 +90,9 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
89
90
  ## Suggestions (nice to have)
90
91
  - ...
91
92
 
93
+ ## Open questions
94
+ - <question> — check: <what would settle it> — blocker-candidate: yes | no
95
+
92
96
  ## Depth passes
93
97
  | Pass | Outcome | Evidence or reason |
94
98
  |------|---------|--------------------|
@@ -74,7 +74,7 @@ Set optional top-level `"profile": "full" | "standard" | "light"` in `pipeline.j
74
74
 
75
75
  **Closure order:** the last authoring step (`feature-developer`, `qa-tester`, a test generator) is always followed by exactly one `build-verifier`; `code-reviewer` reviews the validated tree. A review fix re-enters the delta verifier before the reviewer sees it again.
76
76
 
77
- **Light signals:** one file, one layer, explicit AC in the prompt, no architecture risk. **Never skip `build-verifier`** after developer when app sources changed. **Skip `code-reviewer`** in light only for non-prod preset/docs tasks — for `routes/components/stores` changes prefer standard.
77
+ **Light signals:** one file, one layer, explicit AC in the prompt, no architecture risk. **Never skip `build-verifier`** after developer when app sources changed. **Skip `code-reviewer`** only when every changed path is prose (`*.md`, docs, snapshots); a diff that touches scripts, hooks, CI, or source runs it at every profile, `light` included.
78
78
 
79
79
  ## Task class (spike / bounded / architectural)
80
80
 
@@ -21,6 +21,7 @@ npx @bonesofspring/ai-rules update
21
21
  2. Report the CLI summary to the user in their native language. It names each tool and the preset it kept.
22
22
  3. State the outcome in plain words. Exit code 0 means the update finished successfully. Any other exit means it did not finish successfully: quote stderr and stop.
23
23
  4. Do not report the numeric exit code.
24
+ 5. Commit the update on its own. Managed trees (`.cursor/`, `.claude/`, `.mavis/`, `.opencode/`, `.zcode/`, `.ai.local/scripts/`) and app work never share a commit or a merge request.
24
25
 
25
26
  ## Record
26
27
 
@@ -1394,6 +1394,40 @@ function missingConsumerArtifacts() {
1394
1394
  );
1395
1395
  return ids.filter((id) => !done.has(id));
1396
1396
  }
1397
+ // A step that names a gate agent is a promise the plan made to the diff. The
1398
+ // consumer config is optional, but a declared gate is not: an unreviewed diff
1399
+ // completed while the plan said "code-reviewer" reads as a passed review.
1400
+ // A step the run skipped (status.skippedSteps) or skipIf-matched never promised
1401
+ // anything, so it is not required here.
1402
+ const GATE_AGENTS = new Set([
1403
+ 'build-verifier',
1404
+ 'code-reviewer',
1405
+ 'mockup-reviewer',
1406
+ 'security-reviewer',
1407
+ 'accessibility-reviewer',
1408
+ 'api-contract-reviewer',
1409
+ 'performance-auditor',
1410
+ ]);
1411
+ function missingDeclaredGateArtifacts() {
1412
+ if (steps.length === 0) return [];
1413
+ let manifest = { artifacts: [] };
1414
+ try { manifest = JSON.parse(fs.readFileSync(path.join(taskDir, 'artifact-manifest.json'), 'utf8')); } catch {}
1415
+ const done = new Set(
1416
+ (manifest.artifacts || [])
1417
+ .filter((artifact) => artifact && artifact.status === 'completed')
1418
+ .map((artifact) => artifact.id),
1419
+ );
1420
+ const missing = [];
1421
+ steps.forEach((step, index) => {
1422
+ if (!step || isStepSkipped(index)) return;
1423
+ for (const agent of getStepAgents(step)) {
1424
+ if (!GATE_AGENTS.has(agent)) continue;
1425
+ const id = artifactOutputIdFor(step, agent);
1426
+ if (!done.has(id)) missing.push(`${id} (${agent}${step.id ? `, step ${step.id}` : ''})`);
1427
+ }
1428
+ });
1429
+ return [...new Set(missing)];
1430
+ }
1397
1431
  function completePipeline(statusPatch) {
1398
1432
  const missing = missingConsumerArtifacts();
1399
1433
  if (missing.length > 0) {
@@ -1401,6 +1435,12 @@ function completePipeline(statusPatch) {
1401
1435
  out(`Pipeline blocked for "${slug}": .ai.local/pipeline-gates.json requireArtifacts missing completed receipt(s): ${missing.join(', ')}.`);
1402
1436
  process.exit(0);
1403
1437
  }
1438
+ const missingGates = missingDeclaredGateArtifacts();
1439
+ if (missingGates.length > 0) {
1440
+ writeStatus({ ...statusPatch, phase: 'blocked', state: 'blocked', currentAgent: null, awaitingHumanGate: false });
1441
+ out(`Pipeline blocked for "${slug}": pipeline.json declares gate step(s) with no completed receipt: ${missingGates.join(', ')}. Run the step, or record it under status.skippedSteps with its reason, then resume with /task-continue ${slug}.`);
1442
+ process.exit(0);
1443
+ }
1404
1444
  // task_completed is written only on this branch. A missing receipt blocks
1405
1445
  // above and must not be counted as a finished task.
1406
1446
  status.state = 'completed';
@@ -132,6 +132,7 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
132
132
  - Agents upsert only the items they own in `manifest.artifacts[]` and preserve all foreign items in that array. Parallel agents use distinct IDs. Every write is a whole-file merge through `node .ai.local/scripts/manifest.mjs upsert …` under `.manifest.lock` (see the installed `team/README.md` § artifact-manifest.json — write protocol); the parent does not need to serialize merges, and a fragment/replace edit of the JSON is forbidden. The top-level array key is `artifacts` — not `entries`; see `agent-artifact-contracts.md` for the schema callout.
133
133
  - The orchestration runtime/hook is the single writer for `status.json` lifecycle fields and `metrics.json`. Agents read status for eligibility but never rewrite unrelated state, gate, retry, attempt, timestamp, or metrics fields.
134
134
  - Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
135
+ - A step that names a gate agent (`build-verifier`, `code-reviewer`, `mockup-reviewer`, `security-reviewer`, `accessibility-reviewer`, `api-contract-reviewer`, `performance-auditor`) is a promise the plan made to the diff: the hook blocks `completed` while its receipt is missing, with or without `.ai.local/pipeline-gates.json`. An intentional skip is recorded in `status.skippedSteps` with its reason — never by dropping the step quietly.
135
136
 
136
137
  ## Out-of-band producer passes
137
138
 
@@ -27,7 +27,7 @@ Concrete rule stems — in **Stack notes**.
27
27
 
28
28
  ## Depth passes
29
29
 
30
- A diff-shaped read is a floor, not a review. Run these five passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
30
+ A diff-shaped read is a floor, not a review. Run these six passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
31
31
 
32
32
  - **`finding`** — reported like any other finding, with `path:line`.
33
33
  - **`no finding`** — with one line of evidence: what was searched or read.
@@ -41,10 +41,11 @@ An outcome word alone is not a record: `no finding` without its evidence line, o
41
41
  3. **Trust boundary** — which data crosses a trust boundary in this change, and where is it validated. Data reaching storage, logs, HTML, SQL, shell, or an outbound request without an edge check is a finding.
42
42
  4. **Test gap** — not "is there a test" but "which behaviour change would still pass every existing test". That gap is the finding.
43
43
  5. **Half-life** — what breaks in six months: hidden coupling, implicit contract, missing migration, an unowned copy of the same rule.
44
+ 6. **Executable surface** — when the diff touches anything that runs outside app code (`*.mjs`, hooks, `scripts/`, CI steps): state the working directory the code assumes, quote every path spliced into a shell string, and check that a spawn cannot kill or truncate the command it wraps. A config-derived value written into storage carries no credential, and a migration or scan re-runs with a stable id.
44
45
 
45
46
  ## Review breadth budget
46
47
 
47
- - Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The five depth passes still run on what was read.
48
+ - Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The six depth passes still run on what was read.
48
49
  - Budget: the changed exports, types, routes, and events in the diff, plus one hop of their consumers. Read no consumer that neither the diff nor a recorded finding names.
49
50
  - Stop when either limit is reached: 40 changed-symbol call sites, or 15 minutes of breadth reads on one review.
50
51
  - When the budget is exhausted, stop the sweep and record `partial` in `## Depth passes` for the call-site sweep, with every unread path or glob named inline.
@@ -67,8 +68,22 @@ Procedure details live in skill `code-review`. Required shape:
67
68
  - Confidence is not a second severity: the verdict and the receipt still map from severity alone. A `blocker` at `low` confidence stands only with that confirming check named.
68
69
  - Rank by severity: **`blocker` | `important` | `nit`** (list blocker → nit).
69
70
  - Vague («looks risky») is not a finding — cite evidence or ask for surrounding file context.
70
- - End with a verdict on its own line: **`Safe to merge | needs changes | reject`**.
71
- - Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it.
71
+ - A behaviour you cannot settle by reading is a **question, not silence**. Put it under `## Open questions` as `- <question> — check: <the one check that would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`; leaving it out because it is unproven is the failure this section exists to prevent.
72
+ - End with a verdict on its own line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` is allowed only with no `blocker`/`important` finding and at least one open question; the terminal receipt stays `completed`. A silent `Safe to merge` over an open question is not a verdict.
73
+ - Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it. A depth pass recorded `unable to run` or `partial` over an executable surface (scripts, hooks, CI, migrations) forbids `Safe to merge` until the check runs or a human accepts it in writing.
74
+
75
+ ## Review without an acceptance criterion
76
+
77
+ A change-set that no brief, decomposition, or plan names is still reviewable: the diff is the scope, and the verdict rests on it alone. State in `## Not verified` that no AC existed; absence of an AC is a scope fact, never a review exemption. When the plan is missing, review against these classes; a class you cannot settle by reading becomes an `## Open question`:
78
+
79
+ - null/undefined after `JSON.parse`, a missing key, or a shape the producer never promised;
80
+ - empty, boundary, repeated, and concurrent inputs;
81
+ - resource limits: buffers, timeouts, retries, exit codes, stdio;
82
+ - secrets and credentials reaching logs, files, URLs, or an outbound request;
83
+ - path resolution that assumes a cwd; quoting of argv and of interpolated shell;
84
+ - idempotency of migrations, re-runs, and partial failures;
85
+ - machine-local runtime state that a commit would carry;
86
+ - a second unowned copy of a rule that already exists elsewhere.
72
87
 
73
88
  ## Verdict and terminal receipt
74
89
 
@@ -36,7 +36,8 @@ Lead with findings ordered by severity. Required shape (also in `code-review-mr`
36
36
  - Each finding: **`path:line`** — problem — impact — concrete fix direction.
37
37
  - Severity: **`blocker` | `important` | `nit`** (list blocker → nit).
38
38
  - Vague («looks risky») is not a finding — cite evidence or ask for surrounding context.
39
- - End with a verdict line: **`Safe to merge | needs changes | reject`**.
39
+ - A behaviour you cannot settle by reading is a question, not silence: list it under `## Open questions` as `- <question> — check: <what would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`.
40
+ - End with a verdict line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` requires no `blocker`/`important` finding and at least one open question.
40
41
  - If there are no findings, say so and call out remaining test or validation risk.
41
42
  - Carry `confidence` on every finding and close with `## Not verified` (see `code-review-mr` § Output contract).
42
43
 
@@ -3,7 +3,7 @@
3
3
  "platform": "zcode",
4
4
  "stack": "android-kotlin",
5
5
  "semanticSource": "cursor/android-kotlin",
6
- "sourceRevision": "271edf92510086b6b2a7f515f58133adac3d69eb1cc44ada9f5f9f47ded86edf",
6
+ "sourceRevision": "2b9949cbeda8a4e81e452ae70db9dee6875b58708c15eaf83af66b9f06bba09a",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -82,8 +82,9 @@ Write `.ai.local/team/tasks/<slug>/review.md` with this format:
82
82
  # Code review: <slug>
83
83
 
84
84
  ## Verdict
85
- APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
85
+ APPROVE | APPROVE_WITH_QUESTIONS | APPROVE_WITH_NOTES | REQUEST_CHANGES
86
86
  Findings carry `path:line`, severity, `confidence`, and a fix direction — rules in `code-review-mr` § Output contract.
87
+ `APPROVE_WITH_QUESTIONS` needs no `blocker`/`important` finding and at least one open question below.
87
88
 
88
89
  ## Critical (must fix)
89
90
  - ...
@@ -94,6 +95,9 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
94
95
  ## Suggestions (nice to have)
95
96
  - ...
96
97
 
98
+ ## Open questions
99
+ - <question> — check: <what would settle it> — blocker-candidate: yes | no
100
+
97
101
  ## Depth passes
98
102
  | Pass | Outcome | Evidence or reason |
99
103
  |------|---------|--------------------|
@@ -21,6 +21,7 @@ npx @bonesofspring/ai-rules update
21
21
  2. Report the CLI summary to the user in their native language. It names each tool and the preset it kept.
22
22
  3. State the outcome in plain words. Exit code 0 means the update finished successfully. Any other exit means it did not finish successfully: quote stderr and stop.
23
23
  4. Do not report the numeric exit code.
24
+ 5. Commit the update on its own. Managed trees (`.cursor/`, `.claude/`, `.mavis/`, `.opencode/`, `.zcode/`, `.ai.local/scripts/`) and app work never share a commit or a merge request.
24
25
 
25
26
  ## Record
26
27
 
@@ -1394,6 +1394,40 @@ function missingConsumerArtifacts() {
1394
1394
  );
1395
1395
  return ids.filter((id) => !done.has(id));
1396
1396
  }
1397
+ // A step that names a gate agent is a promise the plan made to the diff. The
1398
+ // consumer config is optional, but a declared gate is not: an unreviewed diff
1399
+ // completed while the plan said "code-reviewer" reads as a passed review.
1400
+ // A step the run skipped (status.skippedSteps) or skipIf-matched never promised
1401
+ // anything, so it is not required here.
1402
+ const GATE_AGENTS = new Set([
1403
+ 'build-verifier',
1404
+ 'code-reviewer',
1405
+ 'mockup-reviewer',
1406
+ 'security-reviewer',
1407
+ 'accessibility-reviewer',
1408
+ 'api-contract-reviewer',
1409
+ 'performance-auditor',
1410
+ ]);
1411
+ function missingDeclaredGateArtifacts() {
1412
+ if (steps.length === 0) return [];
1413
+ let manifest = { artifacts: [] };
1414
+ try { manifest = JSON.parse(fs.readFileSync(path.join(taskDir, 'artifact-manifest.json'), 'utf8')); } catch {}
1415
+ const done = new Set(
1416
+ (manifest.artifacts || [])
1417
+ .filter((artifact) => artifact && artifact.status === 'completed')
1418
+ .map((artifact) => artifact.id),
1419
+ );
1420
+ const missing = [];
1421
+ steps.forEach((step, index) => {
1422
+ if (!step || isStepSkipped(index)) return;
1423
+ for (const agent of getStepAgents(step)) {
1424
+ if (!GATE_AGENTS.has(agent)) continue;
1425
+ const id = artifactOutputIdFor(step, agent);
1426
+ if (!done.has(id)) missing.push(`${id} (${agent}${step.id ? `, step ${step.id}` : ''})`);
1427
+ }
1428
+ });
1429
+ return [...new Set(missing)];
1430
+ }
1397
1431
  function completePipeline(statusPatch) {
1398
1432
  const missing = missingConsumerArtifacts();
1399
1433
  if (missing.length > 0) {
@@ -1401,6 +1435,12 @@ function completePipeline(statusPatch) {
1401
1435
  out(`Pipeline blocked for "${slug}": .ai.local/pipeline-gates.json requireArtifacts missing completed receipt(s): ${missing.join(', ')}.`);
1402
1436
  process.exit(0);
1403
1437
  }
1438
+ const missingGates = missingDeclaredGateArtifacts();
1439
+ if (missingGates.length > 0) {
1440
+ writeStatus({ ...statusPatch, phase: 'blocked', state: 'blocked', currentAgent: null, awaitingHumanGate: false });
1441
+ out(`Pipeline blocked for "${slug}": pipeline.json declares gate step(s) with no completed receipt: ${missingGates.join(', ')}. Run the step, or record it under status.skippedSteps with its reason, then resume with /task-continue ${slug}.`);
1442
+ process.exit(0);
1443
+ }
1404
1444
  // task_completed is written only on this branch. A missing receipt blocks
1405
1445
  // above and must not be counted as a finished task.
1406
1446
  status.state = 'completed';
@@ -132,6 +132,7 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
132
132
  - Agents upsert only the items they own in `manifest.artifacts[]` and preserve all foreign items in that array. Parallel agents use distinct IDs. Every write is a whole-file merge through `node .ai.local/scripts/manifest.mjs upsert …` under `.manifest.lock` (see the installed `team/README.md` § artifact-manifest.json — write protocol); the parent does not need to serialize merges, and a fragment/replace edit of the JSON is forbidden. The top-level array key is `artifacts` — not `entries`; see `agent-artifact-contracts.md` for the schema callout.
133
133
  - The orchestration runtime/hook is the single writer for `status.json` lifecycle fields and `metrics.json`. Agents read status for eligibility but never rewrite unrelated state, gate, retry, attempt, timestamp, or metrics fields.
134
134
  - Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
135
+ - A step that names a gate agent (`build-verifier`, `code-reviewer`, `mockup-reviewer`, `security-reviewer`, `accessibility-reviewer`, `api-contract-reviewer`, `performance-auditor`) is a promise the plan made to the diff: the hook blocks `completed` while its receipt is missing, with or without `.ai.local/pipeline-gates.json`. An intentional skip is recorded in `status.skippedSteps` with its reason — never by dropping the step quietly.
135
136
 
136
137
  ## Out-of-band producer passes
137
138
 
@@ -27,7 +27,7 @@ Concrete rule stems — in **Stack notes**.
27
27
 
28
28
  ## Depth passes
29
29
 
30
- A diff-shaped read is a floor, not a review. Run these five passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
30
+ A diff-shaped read is a floor, not a review. Run these six passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
31
31
 
32
32
  - **`finding`** — reported like any other finding, with `path:line`.
33
33
  - **`no finding`** — with one line of evidence: what was searched or read.
@@ -41,10 +41,11 @@ An outcome word alone is not a record: `no finding` without its evidence line, o
41
41
  3. **Trust boundary** — which data crosses a trust boundary in this change, and where is it validated. Data reaching storage, logs, HTML, SQL, shell, or an outbound request without an edge check is a finding.
42
42
  4. **Test gap** — not "is there a test" but "which behaviour change would still pass every existing test". That gap is the finding.
43
43
  5. **Half-life** — what breaks in six months: hidden coupling, implicit contract, missing migration, an unowned copy of the same rule.
44
+ 6. **Executable surface** — when the diff touches anything that runs outside app code (`*.mjs`, hooks, `scripts/`, CI steps): state the working directory the code assumes, quote every path spliced into a shell string, and check that a spawn cannot kill or truncate the command it wraps. A config-derived value written into storage carries no credential, and a migration or scan re-runs with a stable id.
44
45
 
45
46
  ## Review breadth budget
46
47
 
47
- - Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The five depth passes still run on what was read.
48
+ - Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The six depth passes still run on what was read.
48
49
  - Budget: the changed exports, types, routes, and events in the diff, plus one hop of their consumers. Read no consumer that neither the diff nor a recorded finding names.
49
50
  - Stop when either limit is reached: 40 changed-symbol call sites, or 15 minutes of breadth reads on one review.
50
51
  - When the budget is exhausted, stop the sweep and record `partial` in `## Depth passes` for the call-site sweep, with every unread path or glob named inline.
@@ -67,8 +68,22 @@ Procedure details live in skill `code-review`. Required shape:
67
68
  - Confidence is not a second severity: the verdict and the receipt still map from severity alone. A `blocker` at `low` confidence stands only with that confirming check named.
68
69
  - Rank by severity: **`blocker` | `important` | `nit`** (list blocker → nit).
69
70
  - Vague («looks risky») is not a finding — cite evidence or ask for surrounding file context.
70
- - End with a verdict on its own line: **`Safe to merge | needs changes | reject`**.
71
- - Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it.
71
+ - A behaviour you cannot settle by reading is a **question, not silence**. Put it under `## Open questions` as `- <question> — check: <the one check that would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`; leaving it out because it is unproven is the failure this section exists to prevent.
72
+ - End with a verdict on its own line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` is allowed only with no `blocker`/`important` finding and at least one open question; the terminal receipt stays `completed`. A silent `Safe to merge` over an open question is not a verdict.
73
+ - Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it. A depth pass recorded `unable to run` or `partial` over an executable surface (scripts, hooks, CI, migrations) forbids `Safe to merge` until the check runs or a human accepts it in writing.
74
+
75
+ ## Review without an acceptance criterion
76
+
77
+ A change-set that no brief, decomposition, or plan names is still reviewable: the diff is the scope, and the verdict rests on it alone. State in `## Not verified` that no AC existed; absence of an AC is a scope fact, never a review exemption. When the plan is missing, review against these classes; a class you cannot settle by reading becomes an `## Open question`:
78
+
79
+ - null/undefined after `JSON.parse`, a missing key, or a shape the producer never promised;
80
+ - empty, boundary, repeated, and concurrent inputs;
81
+ - resource limits: buffers, timeouts, retries, exit codes, stdio;
82
+ - secrets and credentials reaching logs, files, URLs, or an outbound request;
83
+ - path resolution that assumes a cwd; quoting of argv and of interpolated shell;
84
+ - idempotency of migrations, re-runs, and partial failures;
85
+ - machine-local runtime state that a commit would carry;
86
+ - a second unowned copy of a rule that already exists elsewhere.
72
87
 
73
88
  ## Verdict and terminal receipt
74
89
 
@@ -37,7 +37,8 @@ Lead with findings ordered by severity. Required shape (also in `code-review-mr`
37
37
  - Each finding: **`path:line`** — problem — impact — concrete fix direction.
38
38
  - Severity: **`blocker` | `important` | `nit`** (list blocker → nit).
39
39
  - Vague («looks risky») is not a finding — cite evidence or ask for surrounding context.
40
- - End with a verdict line: **`Safe to merge | needs changes | reject`**.
40
+ - A behaviour you cannot settle by reading is a question, not silence: list it under `## Open questions` as `- <question> — check: <what would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`.
41
+ - End with a verdict line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` requires no `blocker`/`important` finding and at least one open question.
41
42
  - If there are no findings, say so and call out remaining test or validation risk.
42
43
  - Carry `confidence` on every finding and close with `## Not verified` (see `code-review-mr` § Output contract).
43
44
 
@@ -3,7 +3,7 @@
3
3
  "platform": "zcode",
4
4
  "stack": "go",
5
5
  "semanticSource": "cursor/go",
6
- "sourceRevision": "d96fa3e3c7f80e9d15227dce12e762ddf7bc688b87983c38820f68de2c67eaf5",
6
+ "sourceRevision": "80b43f2b50fd6fd952aa397c7afbfc5a4f3ac329f73990c52c9b0291309b2a2b",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -81,8 +81,9 @@ Write `.ai.local/team/tasks/<slug>/review.md` with this format:
81
81
  # Code review: <slug>
82
82
 
83
83
  ## Verdict
84
- APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
84
+ APPROVE | APPROVE_WITH_QUESTIONS | APPROVE_WITH_NOTES | REQUEST_CHANGES
85
85
  Findings carry `path:line`, severity, `confidence`, and a fix direction — rules in `code-review-mr` § Output contract.
86
+ `APPROVE_WITH_QUESTIONS` needs no `blocker`/`important` finding and at least one open question below.
86
87
 
87
88
  ## Critical (must fix)
88
89
  - ...
@@ -93,6 +94,9 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
93
94
  ## Suggestions (nice to have)
94
95
  - ...
95
96
 
97
+ ## Open questions
98
+ - <question> — check: <what would settle it> — blocker-candidate: yes | no
99
+
96
100
  ## Depth passes
97
101
  | Pass | Outcome | Evidence or reason |
98
102
  |------|---------|--------------------|
@@ -21,6 +21,7 @@ npx @bonesofspring/ai-rules update
21
21
  2. Report the CLI summary to the user in their native language. It names each tool and the preset it kept.
22
22
  3. State the outcome in plain words. Exit code 0 means the update finished successfully. Any other exit means it did not finish successfully: quote stderr and stop.
23
23
  4. Do not report the numeric exit code.
24
+ 5. Commit the update on its own. Managed trees (`.cursor/`, `.claude/`, `.mavis/`, `.opencode/`, `.zcode/`, `.ai.local/scripts/`) and app work never share a commit or a merge request.
24
25
 
25
26
  ## Record
26
27