@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
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: code-review
3
+ description: "Reviews MCP TypeScript diffs for boundaries, schema contracts, capability scope, and secrets. Use for MR review or when code-review workflow is requested."
4
+ ---
5
+
6
+
7
+ <!-- shared-core: quality/anti-hallucination-load-line.md -->
8
+
9
+ Load `anti-hallucination-contract` before asserting code, APIs, schemas, tool behavior, or task status.
10
+ Load `mcp-ts-anti-hallucination` before writing or patching code or tests.
11
+
12
+ # Code review (mcp-ts)
13
+
14
+ 1. Follow `code-review-mr`, `mcp-server-boundaries`, `mcp-tool-design`, `security-mcp`.
15
+ 2. Flag monolithic entry files, schema/protocol mismatches, unscopeed capabilities, secret leakage.
16
+ 3. Phase 1: security-reviewer covers threat model; no separate `code-reviewer` agent yet — parent may apply this skill directly.
17
+ 4. **Depth passes** — run all five from `code-review-mr` § Depth passes (call-site sweep, invariant check, trust boundary, test gap, half-life). Carry `confidence` on every finding and close with `## Not verified`.
18
+ For agent team tasks, write the review artifact and upsert the owned terminal receipt (`completed` or `changes_requested`); do not mutate `status.json`.
19
+
20
+ ## Receiving review feedback
21
+
22
+ <!-- shared-core: review/receiving-code-review.md -->
23
+
24
+ When **implementing** review comments (not when issuing them): verify each item against the codebase before changing code; do not perform agreement (`You're absolutely right!`). Unclear items → ask, do not guess.
25
+
26
+ ## Reviewer side: re-review
27
+
28
+ 1. A finding stays open until the artifact it complains about changed. "Fixed" / "done" / "will do later" without a new diff is not evidence.
29
+ 2. Close a finding on one of two things: the new code at `path:line`, or a factual refutation citing the repository (wrong file, stale API, contract says otherwise).
30
+ 3. `blocker` closes only on a code change or an explicit human decision recorded in the review artifact — never on explanation alone.
31
+ 4. When re-reviewing, re-run the pass that produced the finding (the depth passes in `code-review-mr`), not only the changed hunk. A fix that satisfies the comment and breaks the call-site sweep is a new finding.
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: debug-investigation
3
+ description: "Investigates MCP server bugs with runtime evidence — schema failures, handler errors, transport startup. Use for failing tests or incorrect tool behavior."
4
+ ---
5
+
6
+ <!-- shared-core: quality/debug-investigation.md -->
7
+
8
+ # Debug investigation
9
+
10
+ Stack-agnostic root-cause loop. Consumed by skill `debug-investigation` and agent `debugger`. Platform paths, MCP, and stack commands belong in adapter **Stack notes**.
11
+
12
+ ## When
13
+
14
+ Any bug, test failure, build failure, or unexpected behavior — **before** proposing a fix.
15
+
16
+ ## Phases (in order)
17
+
18
+ 1. **Evidence** — reproduce, or collect the closest evidence (error output, failing test, logs, user steps).
19
+ 2. **Isolate** — expected vs actual in one sentence; smallest relevant slice of the codebase.
20
+ 3. **Root cause** — name the cause before editing. One hypothesis at a time; do not stack speculative fixes.
21
+ 4. **Minimal fix + verify** — smallest change that preserves architecture and public contracts. Add a regression test when the behavior is user-facing or likely to recur. Re-run the **failing** check first, then the relevant lint/type/test slice.
22
+
23
+ ## 3-fix architecture gate
24
+
25
+ If **three** fix attempts fail, or the same symptom returns after two supposed fixes: **STOP**. Do not attempt fix #4. Escalate — the design is likely wrong (human partner or `solution-architect`). Chasing symptoms is the failure mode.
26
+
27
+ ## Do not
28
+
29
+ - Broad refactor during a bugfix.
30
+ - Fix only where the error surfaces if invalid data originates elsewhere.
31
+ - Claim `fixApplied: true` without re-running the failing check (see `quality/verification-before-completion.md`).
32
+
33
+ ## Stack notes
34
+
35
+ <!-- shared-core: quality/anti-hallucination-load-line.md -->
36
+
37
+ Load `anti-hallucination-contract` before asserting code, APIs, schemas, tool behavior, or task status.
38
+ Load `mcp-ts-anti-hallucination` before writing or patching code or tests.
39
+
40
+ ### Stack process
41
+
42
+ 1. Reproduce with unit/contract fixtures before changing code.
43
+ 2. Check schema validation vs handler logic vs registration wiring.
44
+ 3. Prefer repository tests over ad-hoc Inspector-only claims.
45
+ 4. Load `anti-sycophancy-discipline` — report what was verified.
46
+
47
+ ### MCP usage
48
+
49
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
50
+
51
+ If a Sentry/Datadog (or similar) MCP is ready and the task is a production error, event, or trace, use it. Do not invent telemetry.
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: feature-delivery
3
+ description: "Delivers TypeScript MCP server features end-to-end across contracts, schemas, handlers, registration, tests, and package validation. Use when implementing or extending a feature, especially through /task or feature-developer."
4
+ ---
5
+
6
+
7
+ <!-- shared-core: quality/anti-hallucination-load-line.md -->
8
+
9
+ Load `anti-hallucination-contract` before asserting code, APIs, schemas, tool behavior, or task status.
10
+ Load `mcp-ts-anti-hallucination` before writing or patching code or tests.
11
+
12
+ # Feature Delivery (mcp-ts)
13
+
14
+ 1. Read brief, AC, and decomposition.
15
+ 2. If `docs/specs/INDEX.md` exists **or** brief/handoff lists approved generated specs, resolve via **`product-specs`** and treat approved specs as behavior SoT before layer work (soft-fail on miss — do not invent behavior). If generation was requested but not yet approved, stop for human gate — do not implement against draft-only gaps.
16
+ 3. Follow `feature-delivery-workflow` + `reference-features`: contract → schema → handler → register → unit/contract tests → package validation.
17
+ 4. Keep transport/lifecycle in the entry module; tools stay in registration modules.
18
+ 5. After TS edits: **invoke** `post-change-test` (+ `mcp-ts-tooling`).
19
+
20
+ ## Do / Don't
21
+
22
+ - **Do** Zod-first authoring with JSON Schema-compatible protocol contracts.
23
+ - **Don't** invent SDK APIs; use VERIFY markers / Context7.
24
+ - **Don't** use Playwright, XCUITest, Next lint, or Go tools as this stack's gate.
25
+
26
+ ## Scope discipline
27
+
28
+ Implement only the current AC / decomposition task. See `feature-developer` → **Zero improvisation**.
29
+
30
+ ## Handoff
31
+
32
+ Summarize by layer + validation. Agent team: upsert the owned terminal receipt in `artifact-manifest.json`; do not mutate `status.json`.
33
+
34
+
35
+ ## MCP usage
36
+
37
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
38
+
39
+
40
+ ## Design guidance
41
+
42
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: migrate-tasks
3
+ description: "Create the team SQLite database when absent and project only the changed tasks."
4
+ ---
5
+
6
+ > **Invocation.** The text after the command name is the task description. MiniMax Code appends it to this skill as `User: <args>`; treat it as the argument of the procedure below.
7
+
8
+ # Migrate tasks
9
+
10
+ Project every task under `.ai.local/team/tasks/` into the preset SQLite database.
11
+
12
+ ## What to do
13
+
14
+ 1. From the repository root, run:
15
+
16
+ ```bash
17
+ node .ai.local/scripts/team-db.mjs migrate-tasks
18
+ ```
19
+
20
+ 2. Report the summary in the user's native language: `database=created|existing` and the
21
+ inserted, updated, unchanged, absent, and failed counts. Keep the printed counters verbatim.
22
+ 3. When the summary reports `database=existing`, state that only the delta was applied.
23
+ 4. A `disabled by AI_RULES_TEAM_DB_DISABLE` or `node:sqlite unavailable` line on stderr means
24
+ the files were left untouched and the database was not updated. Exit 0 is the documented
25
+ fallback, not a failure: relay that line and stop.
26
+ 5. Any other non-zero exit: quote stderr and stop.
27
+
28
+ ## What the command does
29
+
30
+ - Creates `.ai.local/team/team.db` and its schema when the database is absent.
31
+ - Compares each task's content hash with the stored hash and writes only new and changed
32
+ tasks; an immediate second run reports `inserted=0 updated=0`.
33
+ - Marks a removed task directory absent (`absent_at`) instead of deleting its history.
34
+
35
+ The files stay authoritative: the database is derived, git-ignored, and rebuildable. The
36
+ behaviour contract, exit codes, and rollback live in `docs/TEAM-DB.md` in the
37
+ `@bonesofspring/ai-rules` package.
38
+
39
+ ## Do not
40
+
41
+ - Edit, move, or delete a file under `.ai.local/team/tasks/**` to make the command pass.
42
+ - Write `status.json`, `metrics.json`, or any lifecycle field.
43
+ - Run `serve` or commit `.ai.local/team/team.db*`.
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: rr-migrate-repositories
3
+ description: "Scan repositories on disk, add the missing ones to the local registry, and project the file into team.db."
4
+ ---
5
+
6
+ > **Invocation.** The text after the command name is the task description. MiniMax Code appends it to this skill as `User: <args>`; treat it as the argument of the procedure below.
7
+
8
+ # Migrate repositories
9
+
10
+ Turn the repositories already cloned on this machine into registry records, then
11
+ sync the registry file into the team database.
12
+
13
+ ## What to do
14
+
15
+ 1. From the repository root, run:
16
+
17
+ ```bash
18
+ node .ai.local/scripts/rr-migrate-repositories.mjs
19
+ ```
20
+
21
+ 2. Report the summary in the user's native language, keeping the counters
22
+ verbatim: `scanned`, `repositories`, `duplicates`, `create`, `update`,
23
+ `unchanged`, `not-on-disk`, and the `project` line.
24
+ 3. A `disabled by AI_RULES_TEAM_DB_DISABLE` line means the plan was computed and
25
+ nothing was written; exit 0 is the documented fallback. Relay it and stop.
26
+ 4. Any non-zero exit: quote stderr and stop.
27
+
28
+ ## Arguments
29
+
30
+ - `--scan <dir>` — directory to scan; repeatable. Default: the parent of the
31
+ repository root (the repository root itself when its parent is `$HOME`), so
32
+ sibling clones are picked up.
33
+ - `--depth <n>` — directory levels below a scan root (default `4`).
34
+ - `--dry-run` — print the plan and write nothing.
35
+ - `--no-update` — create missing records only; never touch an existing one.
36
+ - `--team-root <dir>` — team store root (default `<repo-root>/.ai.local/team`).
37
+ - `--json` — machine-readable summary.
38
+
39
+ ## What the script does
40
+
41
+ - Walks the scan roots; a directory with `.git` is a repository and is not
42
+ descended into. Submodule checkouts and linked worktrees are skipped.
43
+ - Collapses clones that share one remote to the shallowest path.
44
+ - Keeps the id of a record whose locator already exists, so a re-run is
45
+ idempotent; a new id is the slug of the directory name, with a parent prefix
46
+ when that slug is taken.
47
+ - Creates missing records through `team-db.mjs repositories apply`, updates a
48
+ changed `name`, `locator`, or `status` through `repositories put`, then runs
49
+ `repositories project`. The lock-guarded verb is the only writer.
50
+ - Never deletes a record: a repository missing from this scan may simply live
51
+ outside the scanned roots.
52
+
53
+ `.ai.local/team/repositories.json` is local-only and git-ignored. The database is
54
+ derived: deleting `team.db` costs a rebuild, not the records.
55
+
56
+ ## Do not
57
+
58
+ - Hand-edit `.ai.local/team/repositories.json`; the verb owns the write lock.
59
+ - Commit the registry file or `team.db*`.
60
+ - Delete registry records to make a scan look clean.
61
+ - Pass `--scan` a filesystem root without a matching `--depth`.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: rr-scheduler-start
3
+ description: "Start the team-db scheduler, or restart it when one is already running."
4
+ ---
5
+
6
+ > **Invocation.** The text after the command name is the task description. MiniMax Code appends it to this skill as `User: <args>`; treat it as the argument of the procedure below.
7
+
8
+ # Start or restart the scheduler
9
+
10
+ Bring up `team-db.mjs schedule` for this repository. When a scheduler already holds the lease, stop that process and start a new one.
11
+
12
+ ## What to do
13
+
14
+ 1. From the repository root, run:
15
+
16
+ ```bash
17
+ node .ai.local/scripts/rr-scheduler-start.mjs
18
+ ```
19
+
20
+ 2. Quote the stdout verbatim. A start prints `scheduler: started pid <pid>`. A restart prints `scheduler: restarted pid <pid> (stopped <previous>)`, plus the `processes:` lines from the manager.
21
+ 3. On a non-zero exit, quote the `error:` line verbatim and stop. Do not start `team-db.mjs schedule` by hand and do not signal a pid the script did not name.
22
+
23
+ ## What the script does
24
+
25
+ - Stops a scheduler this repository recorded, via `processes.mjs stop --name scheduler`.
26
+ - Signals a scheduler that was started outside the manager only when `scheduler.lock` names a live pid whose command line is `team-db.mjs schedule`. `SIGTERM`, then `SIGKILL` if it is still alive after 8 seconds. An in-flight child can outlive that kill.
27
+ - Removes `scheduler.lock` when its pid is already dead, so a crash does not block the next start for 90 seconds.
28
+ - Starts the timer through `processes.mjs start --name scheduler` with `exec node .ai.local/scripts/team-db.mjs schedule`, then waits until the new lease is fresh.
29
+
30
+ ## Do not
31
+
32
+ - Write `status.json`, `metrics.json`, or any task or lifecycle file.
33
+ - Run `pkill`, `killall`, or `kill` against a pid the script did not print.
34
+ - Start a second `team-db.mjs schedule` after a non-zero exit.
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: spec-authoring
3
+ description: "Author or bootstrap consumer docs/specs (INDEX, page/feature templates, frontmatter v1). Use with task-analyst author mode, /spec-start, or when brief AC requests Generate/Bootstrap."
4
+ ---
5
+
6
+
7
+ <!-- shared-core: quality/anti-hallucination-load-line.md -->
8
+
9
+ Load `anti-hallucination-contract` before asserting code, APIs, schemas, tool behavior, or task status.
10
+
11
+ # Spec authoring
12
+
13
+ Requestable — not always-on. Load **`product-specs`** + **`product-specs-authoring`** first.
14
+
15
+ ## Steps
16
+
17
+ 1. **Resolve mode** — Generate (tree exists) vs Bootstrap (create INDEX + templates + first spec). Refuse inventing INDEX without explicit intent/AC/`/spec-start`.
18
+ 2. **Ensure templates** — if consumer `docs/specs/_templates/` missing, copy from package SoT `presets/_shared/assets/docs-specs/_templates/` (or seeded init assets).
19
+ 3. **Fill frontmatter v1** — all array keys present (may be `[]`); prefer `type: feature` on backend/MCP; default `status: draft`.
20
+ 4. **Fill required body headings** — page: Overview, Entry/actors, Primary flows, States, Acceptance criteria; feature: Overview, Shared behavior/constraints, Related pages. Use `N/A` explicitly when needed.
21
+ 5. **Update INDEX** in the **same change set** (columns: id, type, domain, title, path, optional routes/aliases/status).
22
+ 6. **Self-check** against `product-specs-authoring` checklist; put blockers in `open_questions`.
23
+ 7. **Handoff** — list created/updated paths + INDEX diff for human gate (`after:task-analyst`). Approve before feature-developer.
24
+
25
+ ## Sources
26
+
27
+ Cite AC / user / Figma / labeled code inference. Do not invent product behavior.
28
+
29
+ ## mcp-ts
30
+
31
+ Analyst-only path (no tech-writer). `routes` = tool names; `ui`/`store` = `[]`.
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: spec-discovery
3
+ description: "Opt-in research-before-spec for task-analyst author mode. 11 named methods plus a mandatory claim ledger. Use when the user or AC asks discovery before generating docs/specs — not default /task consume."
4
+ ---
5
+
6
+
7
+ <!-- shared-core: quality/anti-hallucination-load-line.md -->
8
+
9
+ Load `anti-hallucination-contract` before asserting code, APIs, schemas, tool behavior, or task status.
10
+
11
+ # Spec discovery
12
+
13
+ Requestable — **not** always-on. Load **only** in **task-analyst author mode** when the user or AC asks research-before-spec (including `/spec-start` with that intent). Never default consume `/task`. Not a pipeline step.
14
+
15
+ Load **`product-specs`** (and **`product-specs-authoring`** after this skill if authoring follows). Do **not** invent product behavior. Do **not** create a second spec-file tree.
16
+
17
+ ## Load policy
18
+
19
+ 1. Pick a **subset** of methods that fit the task — not all 11 every time.
20
+ 2. **`claim-ledger` is mandatory** whenever this skill runs.
21
+ 3. Write chronological notes to `.ai.local/team/tasks/<slug>/.memlog.md` (append-only). Do **not** mutate `status.json` / `metrics.json`.
22
+ 4. Discovery output lives in memlog + `brief.md` sections. Then hand off to skill **`spec-authoring`** (or stop if `specMode: none`).
23
+
24
+ Backend / MCP stacks: skip UI-only examples; prefer `analog-scan`, `code-archaeology`, `problem-define`, `assumption-audit`, `claim-ledger`.
25
+
26
+ ## Methods
27
+
28
+ | Method | Produces | Skip when |
29
+ |--------|----------|-----------|
30
+ | **intake-capture** | Raw idea, origin, first unknowns → memlog + brief Research inputs | User prompt + AC already complete |
31
+ | **index-locator** | Related INDEX rows + linked spec paths + gaps | `specMode: none` or INDEX absent without consume intent |
32
+ | **code-archaeology** | Observed behavior labeled `inferred`/`draft` with path citations | Greenfield with no relevant code |
33
+ | **research-pack-scan** | Claims from `team/tasks/<slug>/research/**` or user-supplied paths | No research paths cited |
34
+ | **evidence-against** | Reasons the idea may fail | Internal spike with no product/external risk |
35
+ | **problem-define** | Who hurts, goals, non-goals, cost of inaction → brief | Brief Goal + Out of scope already exhaustive |
36
+ | **concept-shape** | 2–3 approach options + appetite (small/medium/large); no API design | `architecture.md` exists or one obvious path |
37
+ | **working-backwards-check** | Headline + 5 customer objections + verdict `forged` / `needs-heat` / `cracked` | Consume mode with approved specs |
38
+ | **assumption-audit** | Assumption register → brief Assumptions + `open_questions` | Never skip in author mode (keep lightweight) |
39
+ | **analog-scan** | 2–3 repo analogs via `reference-features` / code search | No plausible analog |
40
+ | **claim-ledger** | Markdown table `source → claim` for every product-behavior claim | **Never skip** when this skill is loaded |
41
+
42
+ ## Claim ledger (required)
43
+
44
+ Block spec authoring until every product-behavior claim has a source:
45
+
46
+ ```markdown
47
+ | Source | Claim |
48
+ |--------|-------|
49
+ | brief AC-3 | Checkout shows empty cart copy |
50
+ | code-archaeology inferred | Empty state uses an illustration |
51
+ ```
52
+
53
+ Sources: AC / user / UI copy / labeled code inference / research path. Unsourced claims → `open_questions`.
54
+
55
+ ## Memlog
56
+
57
+ Path: `.ai.local/team/tasks/<slug>/.memlog.md`. Chronological `## YYYY-MM-DD` headings. Optional tags: `decision`, `assumption`, `override`, `event`, `claim`.
58
+
59
+ ## Forbidden
60
+
61
+ - 108-technique catalogs, HTML composers, party-mode, five `assess.*` slash commands, Python memlog runtime.
62
+ - Dummy INDEX rows when `specMode: none`.
63
+ - Dumping the whole `docs/specs/**` tree — locator is INDEX → linked page + optional `feature.md`.
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: spec-start
3
+ description: "Bootstrap or generate docs/specs (INDEX + page/feature) via task-analyst author mode. Optional docs-only path with human gate."
4
+ ---
5
+
6
+ > **Invocation.** The text after the command name is the task description. MiniMax Code appends it to this skill as `User: <args>`; treat it as the argument of the procedure below.
7
+
8
+ # Spec start — generate / bootstrap product specs
9
+
10
+ Routes intent **`spec-gen`** (or bootstrap) → **task-analyst** in **author mode** → human gate (`after:task-analyst`) → stop, or continue to feature-developer if the user asked to implement after.
11
+
12
+ ## What to do
13
+
14
+ 1. Extract description from arguments after `/spec-start` (domain, page/feature ids, sources).
15
+ 2. Generate a **slug** (kebab-case, ≤48 chars), e.g. `spec-<domain>-<id>`.
16
+ 3. Ensure `.ai.local/team/tasks/<slug>/` exists (Write artifacts; not Shell mkdir).
17
+ 4. Write `.ai.local/team/active-task.json` → `{ "slug": "<slug>" }`.
18
+ 5. Write minimal `pipeline.json`: task-analyst → (optional stop) → feature-developer only if user asked implement-after. **No separate spec-author agent.**
19
+ 6. Invoke **task-analyst** with: author mode; load **`product-specs`** + **`product-specs-authoring`** + skill **`spec-authoring`**; Bootstrap if `docs/specs/` absent, else Generate. Optional: if arguments/AC ask research-before-spec, also load skill **`spec-discovery`** (not default).
20
+ 7. Wait for analyst. **Do not** invoke feature-developer until human gate passes.
21
+
22
+ ## Human gate
23
+
24
+ - Show created/updated spec paths and INDEX diff.
25
+ - Ask user to approve drafts (`status: draft` → promote) or send edits.
26
+ - Continue: `/task-continue <slug>` only after approval when implementation follows; otherwise stop after docs.
27
+
28
+ ## Notes
29
+
30
+ - Greenfield invent of INDEX is allowed **only** via this command, explicit ask, or AC bootstrap language.
31
+ - mcp-ts: analyst-only author/sync (no tech-writer).
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: task
3
+ description: "Route a natural-language task through the agent-team pipeline: task-router, pipeline.json, and the first planned specialist."
4
+ ---
5
+
6
+ > **Invocation.** The text after the command name is the task description. MiniMax Code appends it to this skill as `User: <args>`; treat it as the argument of the procedure below.
7
+
8
+ Route a natural-language task through the agent-team pipeline: task-router, pipeline.json, and the first planned specialist.
9
+
10
+ <!-- shared-core: quality/anti-hallucination-load-line.md -->
11
+
12
+ Load `anti-hallucination-contract` before asserting code, APIs, schemas, tool behavior, or task status.
13
+
14
+ # Task — unified entry point (router + pipeline)
15
+
16
+ Main command for task intake. Parent agent = orchestrator (`agent-team-orchestrator.md`). Intake for work requests without `/task` — `agent-team-intake.md`.
17
+
18
+ ## Arguments
19
+
20
+ Everything after `/task` is the task description in natural language.
21
+
22
+ Examples:
23
+
24
+ - `/task Add MCP tool list_resources`
25
+ - `/task Handler crashes on empty body — fix it`
26
+ - `/task Project tests fail locally after schema change — bugfix + build-verifier`
27
+ - `/task Migrate to a new SDK / package`
28
+ - `/task Cover handler echo with unit tests`
29
+ - `/task Write changelog for tool release`
30
+ - `/task Review my changes in src/tools`
31
+ - `/task Write contract/unit tests for tool schema`
32
+
33
+ ## Procedure
34
+
35
+ 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) — 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). In the same step write `goal.md`: `Goal`, `User value`, `Success criteria`, `Non-goals`, and Derived from `prompt.md`. The goal is a formulated outcome, not a copy of the prompt (see **agent-artifact-contracts** § Goal artifact). 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).
36
+ 2. **Router** — invoke subagent **task-router** with the task description and slug path.
37
+ 3. **Plan** — show the user the table from `pipeline.json`: intent, steps, skipped, humanGates, and the `goal.md` fields.
38
+ 4. **Intent retro** — if `intent === "retro"`, run `/technical-retro` and **stop**.
39
+ 5. **Start** — after router:
40
+ - confirm `pipeline.json` and `active-task.json`;
41
+ - **do not** write lifecycle fields in `status.json` / `metrics.json` yourself — orchestration runtime/hook owns them (see **agent-artifact-contracts**). If `status.json` is missing, only minimal bootstrap is allowed (`slug`, `intent`, `pipelineIndex: 0`, `currentAgent: steps[0]`, `state: in_progress`) — **do not** increment `pipelineIndex` manually;
42
+ - invoke subagent for `pipeline.steps[0].agent` (slug, artifact paths, scope).
43
+ 6. **After each agent** — wait for hook handoff / reconciliation terminal receipt → `status.state`; do not start the next step until `status.json` reflects handoff (or until there is a `followup_message` from the hook).
44
+ 7. **Human gate** — if after the current step there is a gate in `humanGates` (`after:<agent>`), after the agent finishes **stop** and ask for `/task-continue <slug>`.
45
+
46
+ ## Repositories (mandatory)
47
+
48
+ The repositories a task touches are part of its intake: `pipeline.json` must carry `"repositories": [<registry ids>]`, or `"repositories": []` together with `"repositoriesInference": "unknown"` when the request names none. The router reads `.ai.local/team/repositories.json` and records the same list as link rows; the field is never defaulted; `node .ai.local/scripts/check-task-repositories.mjs` audits the store and the chain hook blocks a task-router receipt that omits it. See `agents/task-router.md`.
49
+
50
+ ## Plan contract
51
+
52
+ Intake runs the planning workflow before any implementation: **goal frame** (goal, user value, success + result-evaluation criteria) → **requirements + AC-IDs** → **information-sufficiency** verdict (`sufficient` | `insufficient`) → decompose with a **dependency graph** (`dependsOn[]`, DAG, critical path) and, for large flows, **epics / stages** with exit criteria. The plan is revisable: a **plan revision** is a named, recorded operation (`planRevision`), and progress is checkpointed to `.memlog.md` (with the optional `contextBudget` note) so a run can resume.
53
+
54
+ The producer closes each wave with a **pre-receipt self-review** — a `## Self-review` block in the owned artifact (goal/AC coverage, evidence, alignment/drift) — and names **context loss** vs **context excess/noise**; a detected drift triggers a **re-anchor**: re-read the goal frame + `decomposition.md`, repair, re-run the affected gate, and record append-only in `.memlog.md` (`event:` line, or `decision: replan rev N → N+1`). No new pipeline step; ratchets down for `bounded`/`spike`.
55
+
56
+ Before any specialist runs, `goal.md` is written and shown with the plan. When the pipeline reaches a terminal state, write `outcome.md` and roll up `review-ledger.md` (see **agent-artifact-contracts**). A `fair: yes` row appends one signal per distinct signature, then runs `node .ai.local/scripts/run.mjs` once. Preset-prose targets stay staged for `/technical-retro`.
57
+
58
+ ## Do not
59
+
60
+ - Invoke developer before router and (if in pipeline) analyst/architect.
61
+ - Hardcode role order — only `pipeline.json`.
62
+ - Skip human gate without explicit continue.
63
+
64
+ ## If slug is taken
65
+
66
+ - `awaitingHumanGate` / `state: awaiting_approval` → offer artifact review or `/task-continue <slug>`.
67
+ - `in_progress` → ask: continue or new slug.
68
+
69
+
70
+ ## Dialogue language
71
+
72
+ The always-on language rule already resolved the user-facing language on this turn (`.ai.local` `## Language` → prompt language → English; mixed → dominant). Record that tag in the `prompt.md` header (`language: <BCP-47>`) and reuse it for every user-facing message and `/task-continue`. This command records the tag. See `language-policy`.
73
+
74
+
75
+ ## Metrics
76
+
77
+ Runtime/hook owns `metrics.json` and `status.json` attempt ledgers. Before the first invocation ensure `task_started` and one `activeAttempts[attemptId]` + `attempt_started` exist (router/runtime bootstrap — parent must not invent parallel indices). On `/task-continue`, run the installed chain hook `end_human_gate` action (or wrapper) so `human_gate_ended` lands before the next attempt. Do not calculate durations in agents.
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: task-continue
3
+ description: "Continue an agent-team task after a human gate, pause, or review changes request using pipeline.json and status.json."
4
+ ---
5
+
6
+ > **Invocation.** The text after the command name is the task description. MiniMax Code appends it to this skill as `User: <args>`; treat it as the argument of the procedure below.
7
+
8
+ # Task continue — after human gate or pause
9
+
10
+ Resume the pipeline from `pipeline.json`.
11
+
12
+ ## Arguments
13
+
14
+ `<slug>` — task identifier.
15
+
16
+ ## Preconditions
17
+
18
+ 1. Read `.ai.local/team/tasks/<slug>/pipeline.json` and `status.json`.
19
+ 2. Continue if:
20
+ - `awaitingHumanGate: true` or `state: awaiting_approval`, **or**
21
+ - `state: changes_requested` (after review), **or**
22
+ - the task was interrupted and must resume from `pipelineIndex`.
23
+
24
+ ## Algorithm
25
+
26
+ 1. Write `.ai.local/team/active-task.json` → `{ "slug": "<slug>" }`.
27
+ 2. **Human gate resume** (`awaitingHumanGate` / `awaiting_approval`):
28
+ 1. **Do not** manually increment `pipelineIndex` or invent `currentAgent` first.
29
+ 2. Close the gate + activate the next attempt via the **installed** hook (single authority for ledger + status):
30
+
31
+ ```bash
32
+ printf '%s\n' '{"status":"completed","action":"end_human_gate","activateNext":true}' | bash .mavis/hooks/chain-team-phases.sh
33
+ ```
34
+
35
+ 3. Re-read `status.json` (and the hook `followup_message`).
36
+ 4. Invoke the subagent named in `status.currentAgent` / followup — do **not** advance the pipeline a second time.
37
+ 3. **Review `changes_requested`** (not a human gate): set `currentAgent` to `feature-developer` (same index / find developer in steps), `state: in_progress`, then invoke developer. Do **not** call `end_human_gate` unless `activeHumanGateEventId` is set.
38
+ 4. **Other resume**: restore `pipelineIndex` / `currentAgent` from status and invoke that agent.
39
+ 5. After the invoked agent completes, `chain-team-phases.sh` on `subagentStop` continues the chain when `autoChain: true`.
40
+
41
+ ## Checkpoint & resume
42
+
43
+ Resume from the on-disk checkpoint, not from chat: read `.ai.local/team/tasks/<slug>/focus.md` first (a view, not the system of record), then `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).
44
+
45
+ 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**.
46
+
47
+ A producer-side **re-anchor** (detected context loss / excess against the framed goal) is recorded append-only in `.memlog.md` (`event:` line, or `decision: replan rev N → N+1` when the plan changes); resume reads that line with the checkpoint and does not re-derive the correction from chat.
48
+
49
+ ## Self-learning loop (optional)
50
+
51
+ The chain hook runs the loop after every producer receipt; with the hook disabled or no auto-chain, run it yourself:
52
+
53
+ In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`.
54
+
55
+ Never pass `--strict` from this path — it exits 1 when capture is broken and would fail a healthy resume. The
56
+ store deduplicates, so a second run appends nothing.
57
+
58
+ ## Artifacts for handoff
59
+
60
+ | Agent | Read |
61
+ |-------|------|
62
+ | feature-developer | brief.md (incl. **Related specs**), decomposition.md, validation-report.md (if retry), review.md (if retry), architecture.md; if `docs/specs/INDEX.md` exists → load **`product-specs`** |
63
+ | build-verifier | git diff, decomposition.md |
64
+ | code-reviewer | brief.md, validation-report.md, git diff |
65
+ | qa-tester | brief.md, decomposition.md, scope from pipeline step |
66
+
67
+ ## Product specs (docs/specs)
68
+
69
+ When the next agent is **feature-developer** (or other implementer): if `docs/specs/INDEX.md` exists or brief lists approved specs, instruct them to load **`product-specs`** and honor **Related specs** / approved generated specs as behavior SoT. Soft-fail on miss; never invent product behavior.
70
+
71
+ If analyst ran **author mode**, confirm human approved drafts before developer. Pass spec paths + INDEX diff in the handoff. No-op if INDEX is absent and no approved specs.
72
+
@@ -0,0 +1,95 @@
1
+ ---
2
+ name: technical-retro
3
+ description: "Facilitate a technical retrospective for a period, incident, release, or completed agent-team task slug."
4
+ ---
5
+
6
+ > **Invocation.** The text after the command name is the task description. MiniMax Code appends it to this skill as `User: <args>`; treat it as the argument of the procedure below.
7
+
8
+ # Technical retrospective
9
+
10
+ The agent acts as a **neutral facilitator of a technical retrospective**, not as a code reviewer or people evaluator. **Phase 1:** follow this command file (skill `technical-retro` is Phase 2, optional).
11
+
12
+ ## When to use
13
+
14
+ - User asks: "retro", "technical retro", "sprint/iteration review", "action items after release".
15
+ - After completing the agent-team pipeline.
16
+ - Context available: period, topic (release, incident), task slug, notes.
17
+
18
+ ## Inputs (gather; do not invent)
19
+
20
+ Request when missing:
21
+
22
+ - **Period and focus**.
23
+ - **Task slug** (if retro is about agent-team work).
24
+ - **Participants/roles** (if relevant).
25
+ - **Constraints**: time, format (async vs sync).
26
+
27
+ ### Agent-team artifacts (if slug present)
28
+
29
+ Read from the repository:
30
+
31
+ - `.ai.local/team/tasks/<slug>/pipeline.json`
32
+ - `.ai.local/team/tasks/<slug>/brief.md`
33
+ - `.ai.local/team/tasks/<slug>/decomposition.md`
34
+ - `.ai.local/team/tasks/<slug>/status.json`
35
+ - Git diff / `git status` for changed files
36
+
37
+ Do not attribute facts not present in artifacts, diff, or the user's message.
38
+
39
+ ## Facilitation principles
40
+
41
+ - **Safety**: process and system, not "blame".
42
+ - **Specificity**: from abstractions to observable events.
43
+ - **Balance**: positives and growth areas.
44
+ - **Action items**: owner and deadline for each.
45
+ - **Do not mix with code review** — separate blocks if both were requested.
46
+
47
+ ## Default session structure
48
+
49
+ 1. **Goal and scope**.
50
+ 2. **Fact gathering**: went well / blocked / surprises.
51
+ 3. **Theme grouping** (3–7).
52
+ 4. **Root causes** for 1–2 painful themes.
53
+ 5. **Experiments** (1–3 process changes).
54
+ 6. **Action items**: what / owner / by when / success criteria.
55
+
56
+ ## "Agent work" block (required when slug present)
57
+
58
+ If retro is tied to an agent-team pipeline:
59
+
60
+ | Question | What to capture |
61
+ |----------|-----------------|
62
+ | Router | Intent error, extra/missing pipeline steps |
63
+ | Analyst | Assumption errors, missed AC, extra/missing tasks |
64
+ | Decomposition | Incomplete layer coverage, wrong order, blocked dependencies |
65
+ | Developer | Scope creep, missed rules, typecheck/test gaps |
66
+ | Reviewer | Missed defects, false positives, checklist quality |
67
+ | QA | AC test coverage, flakiness, contract/unit plan gaps |
68
+
69
+ **Action items** in this block — improve **prompts, subagents, and rules** (not only code).
70
+
71
+ ## Response format
72
+
73
+ - Header: period, focus, slug (if any), assumptions.
74
+ - Agenda by stage.
75
+ - **"Agent work"** block (if applicable).
76
+ - Themes — bullets; disputed points — **questions for the team**.
77
+ - **Action items** at the end.
78
+
79
+ ## Constraints
80
+
81
+ - Do not attribute quotes or facts without input.
82
+ - No HR recommendations.
83
+ - If only a template is requested — **agenda template** without invented content.
84
+
85
+ ### Metrics evidence
86
+
87
+ When `metrics.json` exists, run the local aggregation script and report the cohort, sample size, incomplete artifacts, attribution confidence, active attempt duration, and human-gate wait separately. Do not treat gate wait or malformed ledgers as agent duration.
88
+
89
+ ### Self-learning loop
90
+
91
+ In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Every appended signal sets `finding_category` (`correctness` | `contract` | `perf` | `hygiene` | `process`).
92
+
93
+ Read `.ai.local/signals.jsonl` and `.ai.local/rule-changes.jsonl` before reconstructing themes; a second run
94
+ appends nothing (dedup).
95
+