@bonesofspring/ai-rules 0.2.32 → 0.2.33

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 (1128) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +1 -1
  3. package/docs/LOCAL-OVERLAY.md +16 -1
  4. package/docs/PRESET-CONTRIBUTION.md +13 -4
  5. package/docs/PRESET-ENGLISH-STYLE.md +23 -1
  6. package/package.json +2 -1
  7. package/presets/_shared/README.md +10 -4
  8. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +39 -0
  9. package/presets/_shared/core/agent-team/agent-team-intake.md +3 -0
  10. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +22 -2
  11. package/presets/_shared/core/agent-team/language-policy.md +41 -0
  12. package/presets/_shared/core/agent-team/plan-graph.md +35 -0
  13. package/presets/_shared/core/agent-team/task-classification.md +2 -0
  14. package/presets/_shared/core/agent-team/task-framing.md +45 -0
  15. package/presets/_shared/core/architecture/feature-delivery-workflow.md +11 -1
  16. package/presets/_shared/core/meta/preset-goals.md +29 -0
  17. package/presets/_shared/core/meta/preset-layering.md +1 -1
  18. package/presets/_shared/core/meta/preset-pr-checklist.md +4 -0
  19. package/presets/_shared/core/meta/preset-twin-sync.md +19 -77
  20. package/presets/_shared/core/meta/preset-writing-style.md +40 -0
  21. package/presets/_shared/core/quality/code-quality-and-refactoring.md +20 -1
  22. package/presets/_shared/core/quality/context-and-iteration.md +29 -0
  23. package/presets/_shared/core/quality/self-review-and-context-hygiene.md +51 -0
  24. package/presets/_shared/core/quality/verification-before-completion.md +4 -0
  25. package/presets/_shared/core/review/mockup-review.md +56 -1
  26. package/presets/claude/android-kotlin/REPO_AGENTS.md +3 -0
  27. package/presets/claude/android-kotlin/agents/README.md +6 -0
  28. package/presets/claude/android-kotlin/agents/build-verifier.md +12 -0
  29. package/presets/claude/android-kotlin/agents/code-reviewer.md +12 -0
  30. package/presets/claude/android-kotlin/agents/debugger.md +12 -0
  31. package/presets/claude/android-kotlin/agents/feature-developer.md +12 -0
  32. package/presets/claude/android-kotlin/agents/task-analyst.md +30 -0
  33. package/presets/claude/android-kotlin/agents/task-router.md +8 -0
  34. package/presets/claude/android-kotlin/ai-local/conventions.md +8 -0
  35. package/presets/claude/android-kotlin/commands/task-continue.md +8 -0
  36. package/presets/claude/android-kotlin/commands/task.md +14 -1
  37. package/presets/claude/android-kotlin/rules/README.md +5 -0
  38. package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +4 -0
  39. package/presets/claude/android-kotlin/rules/stack/android-app-core.md +6 -0
  40. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +3 -0
  41. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +32 -2
  42. package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +4 -0
  43. package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +20 -1
  44. package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +52 -0
  45. package/presets/claude/android-kotlin/rules/tooling-and-review/mockup-review.md +56 -1
  46. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-goals.md +40 -0
  47. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-layering.md +1 -1
  48. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  49. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +19 -77
  50. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-writing-style.md +51 -0
  51. package/presets/claude/android-kotlin/team/README.md +17 -0
  52. package/presets/claude/go/REPO_AGENTS.md +3 -0
  53. package/presets/claude/go/agents/README.md +6 -0
  54. package/presets/claude/go/agents/build-verifier.md +12 -0
  55. package/presets/claude/go/agents/code-reviewer.md +12 -0
  56. package/presets/claude/go/agents/debugger.md +12 -0
  57. package/presets/claude/go/agents/feature-developer.md +12 -0
  58. package/presets/claude/go/agents/task-analyst.md +30 -0
  59. package/presets/claude/go/agents/task-router.md +8 -0
  60. package/presets/claude/go/ai-local/conventions.md +8 -0
  61. package/presets/claude/go/commands/task-continue.md +8 -0
  62. package/presets/claude/go/commands/task.md +14 -1
  63. package/presets/claude/go/rules/README.md +5 -0
  64. package/presets/claude/go/rules/architecture/feature-delivery.md +4 -0
  65. package/presets/claude/go/rules/stack/go-app-core.md +6 -0
  66. package/presets/claude/go/rules/tooling-and-review/README.md +1 -0
  67. package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +3 -0
  68. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +31 -1
  69. package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +4 -0
  70. package/presets/claude/go/rules/tooling-and-review/code-quality.md +20 -1
  71. package/presets/claude/go/rules/tooling-and-review/language-policy.md +52 -0
  72. package/presets/claude/go/rules/tooling-and-review/preset-goals.md +40 -0
  73. package/presets/claude/go/rules/tooling-and-review/preset-layering.md +1 -1
  74. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  75. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +19 -77
  76. package/presets/claude/go/rules/tooling-and-review/preset-writing-style.md +51 -0
  77. package/presets/claude/go/team/README.md +17 -0
  78. package/presets/claude/ios-swift/REPO_AGENTS.md +3 -0
  79. package/presets/claude/ios-swift/agents/README.md +6 -0
  80. package/presets/claude/ios-swift/agents/build-verifier.md +12 -0
  81. package/presets/claude/ios-swift/agents/code-reviewer.md +12 -0
  82. package/presets/claude/ios-swift/agents/debugger.md +12 -0
  83. package/presets/claude/ios-swift/agents/feature-developer.md +12 -0
  84. package/presets/claude/ios-swift/agents/task-analyst.md +30 -0
  85. package/presets/claude/ios-swift/agents/task-router.md +8 -0
  86. package/presets/claude/ios-swift/ai-local/conventions.md +8 -0
  87. package/presets/claude/ios-swift/commands/task-continue.md +8 -0
  88. package/presets/claude/ios-swift/commands/task.md +14 -1
  89. package/presets/claude/ios-swift/rules/README.md +4 -0
  90. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +4 -0
  91. package/presets/claude/ios-swift/rules/stack/ios-app-core.md +6 -0
  92. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +3 -0
  93. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +32 -2
  94. package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +4 -0
  95. package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +20 -1
  96. package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +52 -0
  97. package/presets/claude/ios-swift/rules/tooling-and-review/mockup-review.md +56 -1
  98. package/presets/claude/ios-swift/rules/tooling-and-review/preset-goals.md +40 -0
  99. package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +1 -1
  100. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  101. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +19 -77
  102. package/presets/claude/ios-swift/rules/tooling-and-review/preset-writing-style.md +51 -0
  103. package/presets/claude/ios-swift/team/README.md +17 -0
  104. package/presets/claude/java/REPO_AGENTS.md +3 -0
  105. package/presets/claude/java/agents/README.md +6 -0
  106. package/presets/claude/java/agents/build-verifier.md +12 -0
  107. package/presets/claude/java/agents/code-reviewer.md +12 -0
  108. package/presets/claude/java/agents/debugger.md +12 -0
  109. package/presets/claude/java/agents/feature-developer.md +12 -0
  110. package/presets/claude/java/agents/task-analyst.md +30 -0
  111. package/presets/claude/java/agents/task-router.md +8 -0
  112. package/presets/claude/java/ai-local/conventions.md +8 -0
  113. package/presets/claude/java/commands/task-continue.md +8 -0
  114. package/presets/claude/java/commands/task.md +14 -1
  115. package/presets/claude/java/rules/README.md +5 -0
  116. package/presets/claude/java/rules/architecture/feature-delivery.md +4 -0
  117. package/presets/claude/java/rules/stack/java-app-core.md +6 -0
  118. package/presets/claude/java/rules/tooling-and-review/README.md +1 -0
  119. package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +3 -0
  120. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +31 -1
  121. package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +4 -0
  122. package/presets/claude/java/rules/tooling-and-review/code-quality.md +20 -1
  123. package/presets/claude/java/rules/tooling-and-review/language-policy.md +52 -0
  124. package/presets/claude/java/rules/tooling-and-review/preset-goals.md +40 -0
  125. package/presets/claude/java/rules/tooling-and-review/preset-layering.md +1 -1
  126. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  127. package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +19 -77
  128. package/presets/claude/java/rules/tooling-and-review/preset-writing-style.md +51 -0
  129. package/presets/claude/java/team/README.md +17 -0
  130. package/presets/claude/mcp-ts/REPO_AGENTS.md +3 -0
  131. package/presets/claude/mcp-ts/agents/README.md +6 -0
  132. package/presets/claude/mcp-ts/agents/build-verifier.md +12 -0
  133. package/presets/claude/mcp-ts/agents/feature-developer.md +12 -0
  134. package/presets/claude/mcp-ts/agents/task-analyst.md +30 -0
  135. package/presets/claude/mcp-ts/agents/task-router.md +8 -0
  136. package/presets/claude/mcp-ts/ai-local/conventions.md +8 -0
  137. package/presets/claude/mcp-ts/commands/task-continue.md +8 -0
  138. package/presets/claude/mcp-ts/commands/task.md +14 -1
  139. package/presets/claude/mcp-ts/rules/README.md +5 -0
  140. package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +4 -0
  141. package/presets/claude/mcp-ts/rules/stack/mcp-ts-app-core.md +6 -0
  142. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +3 -0
  143. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +31 -1
  144. package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +4 -0
  145. package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +20 -1
  146. package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +52 -0
  147. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-goals.md +40 -0
  148. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +1 -1
  149. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  150. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +19 -77
  151. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-writing-style.md +51 -0
  152. package/presets/claude/mcp-ts/team/README.md +17 -0
  153. package/presets/claude/next/REPO_AGENTS.md +3 -0
  154. package/presets/claude/next/agents/README.md +6 -0
  155. package/presets/claude/next/agents/build-verifier.md +12 -0
  156. package/presets/claude/next/agents/code-reviewer.md +23 -0
  157. package/presets/claude/next/agents/debugger.md +12 -0
  158. package/presets/claude/next/agents/feature-developer.md +20 -2
  159. package/presets/claude/next/agents/mockup-reviewer.md +25 -4
  160. package/presets/claude/next/agents/task-analyst.md +30 -0
  161. package/presets/claude/next/agents/task-router.md +8 -0
  162. package/presets/claude/next/ai-local/conventions.md +8 -0
  163. package/presets/claude/next/commands/task-continue.md +8 -0
  164. package/presets/claude/next/commands/task.md +14 -1
  165. package/presets/claude/next/rules/README.md +4 -0
  166. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +8 -0
  167. package/presets/claude/next/rules/stack/next-app-core.md +6 -0
  168. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +3 -0
  169. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +32 -2
  170. package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +4 -0
  171. package/presets/claude/next/rules/tooling-and-review/code-quality.md +20 -1
  172. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +10 -0
  173. package/presets/claude/next/rules/tooling-and-review/language-policy.md +52 -0
  174. package/presets/claude/next/rules/tooling-and-review/mockup-review.md +77 -1
  175. package/presets/claude/next/rules/tooling-and-review/preset-goals.md +40 -0
  176. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +1 -1
  177. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  178. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +19 -77
  179. package/presets/claude/next/rules/tooling-and-review/preset-writing-style.md +51 -0
  180. package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +23 -1
  181. package/presets/claude/next/skills/README.md +1 -0
  182. package/presets/claude/next/skills/code-review/SKILL.md +1 -1
  183. package/presets/claude/next/skills/figma-fidelity/SKILL.md +96 -0
  184. package/presets/claude/next/skills/mockup-review/SKILL.md +5 -1
  185. package/presets/claude/next/team/README.md +18 -0
  186. package/presets/claude/next/team/fixtures/artifact-manifest.example.json +1 -1
  187. package/presets/claude/nuxt/REPO_AGENTS.md +3 -0
  188. package/presets/claude/nuxt/agents/README.md +6 -0
  189. package/presets/claude/nuxt/agents/build-verifier.md +12 -0
  190. package/presets/claude/nuxt/agents/code-reviewer.md +12 -0
  191. package/presets/claude/nuxt/agents/debugger.md +12 -0
  192. package/presets/claude/nuxt/agents/feature-developer.md +12 -0
  193. package/presets/claude/nuxt/agents/task-analyst.md +30 -0
  194. package/presets/claude/nuxt/agents/task-router.md +8 -0
  195. package/presets/claude/nuxt/ai-local/conventions.md +8 -0
  196. package/presets/claude/nuxt/commands/task-continue.md +8 -0
  197. package/presets/claude/nuxt/commands/task.md +14 -1
  198. package/presets/claude/nuxt/rules/README.md +4 -0
  199. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +4 -0
  200. package/presets/claude/nuxt/rules/stack/nuxt-app-core.md +6 -0
  201. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +3 -0
  202. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +32 -2
  203. package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +4 -0
  204. package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +20 -1
  205. package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +52 -0
  206. package/presets/claude/nuxt/rules/tooling-and-review/mockup-review.md +56 -1
  207. package/presets/claude/nuxt/rules/tooling-and-review/preset-goals.md +40 -0
  208. package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +1 -1
  209. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  210. package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +19 -77
  211. package/presets/claude/nuxt/rules/tooling-and-review/preset-writing-style.md +51 -0
  212. package/presets/claude/nuxt/team/README.md +17 -0
  213. package/presets/claude/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  214. package/presets/claude/php-hexagonal/REPO_AGENTS.md +3 -0
  215. package/presets/claude/php-hexagonal/agents/README.md +6 -0
  216. package/presets/claude/php-hexagonal/agents/build-verifier.md +12 -0
  217. package/presets/claude/php-hexagonal/agents/code-reviewer.md +12 -0
  218. package/presets/claude/php-hexagonal/agents/debugger.md +12 -0
  219. package/presets/claude/php-hexagonal/agents/feature-developer.md +12 -0
  220. package/presets/claude/php-hexagonal/agents/task-analyst.md +30 -0
  221. package/presets/claude/php-hexagonal/agents/task-router.md +8 -0
  222. package/presets/claude/php-hexagonal/ai-local/conventions.md +8 -0
  223. package/presets/claude/php-hexagonal/commands/task-continue.md +8 -0
  224. package/presets/claude/php-hexagonal/commands/task.md +14 -1
  225. package/presets/claude/php-hexagonal/rules/README.md +5 -0
  226. package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +4 -0
  227. package/presets/claude/php-hexagonal/rules/stack/php-app-core.md +6 -0
  228. package/presets/claude/php-hexagonal/rules/tooling-and-review/README.md +1 -0
  229. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +3 -0
  230. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +31 -1
  231. package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +4 -0
  232. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +20 -1
  233. package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +52 -0
  234. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-goals.md +40 -0
  235. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +1 -1
  236. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  237. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +19 -77
  238. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-writing-style.md +51 -0
  239. package/presets/claude/php-hexagonal/team/README.md +17 -0
  240. package/presets/claude/php-laravel/REPO_AGENTS.md +3 -0
  241. package/presets/claude/php-laravel/agents/README.md +6 -0
  242. package/presets/claude/php-laravel/agents/build-verifier.md +12 -0
  243. package/presets/claude/php-laravel/agents/code-reviewer.md +12 -0
  244. package/presets/claude/php-laravel/agents/debugger.md +12 -0
  245. package/presets/claude/php-laravel/agents/feature-developer.md +12 -0
  246. package/presets/claude/php-laravel/agents/task-analyst.md +30 -0
  247. package/presets/claude/php-laravel/agents/task-router.md +8 -0
  248. package/presets/claude/php-laravel/ai-local/conventions.md +8 -0
  249. package/presets/claude/php-laravel/commands/task-continue.md +8 -0
  250. package/presets/claude/php-laravel/commands/task.md +14 -1
  251. package/presets/claude/php-laravel/rules/README.md +5 -0
  252. package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +4 -0
  253. package/presets/claude/php-laravel/rules/stack/laravel-app-core.md +6 -0
  254. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +3 -0
  255. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +31 -1
  256. package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +4 -0
  257. package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +20 -1
  258. package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +52 -0
  259. package/presets/claude/php-laravel/rules/tooling-and-review/preset-goals.md +40 -0
  260. package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +1 -1
  261. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  262. package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +19 -77
  263. package/presets/claude/php-laravel/rules/tooling-and-review/preset-writing-style.md +51 -0
  264. package/presets/claude/php-laravel/team/README.md +17 -0
  265. package/presets/claude/svelte/REPO_AGENTS.md +3 -0
  266. package/presets/claude/svelte/agents/README.md +6 -0
  267. package/presets/claude/svelte/agents/build-verifier.md +12 -0
  268. package/presets/claude/svelte/agents/code-reviewer.md +12 -0
  269. package/presets/claude/svelte/agents/debugger.md +12 -0
  270. package/presets/claude/svelte/agents/feature-developer.md +12 -0
  271. package/presets/claude/svelte/agents/task-analyst.md +30 -0
  272. package/presets/claude/svelte/agents/task-router.md +8 -0
  273. package/presets/claude/svelte/ai-local/conventions.md +8 -0
  274. package/presets/claude/svelte/commands/task-continue.md +8 -0
  275. package/presets/claude/svelte/commands/task.md +14 -1
  276. package/presets/claude/svelte/rules/README.md +4 -0
  277. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +4 -0
  278. package/presets/claude/svelte/rules/stack/svelte-app-core.md +6 -0
  279. package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +3 -0
  280. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +32 -2
  281. package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +4 -0
  282. package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +20 -1
  283. package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +52 -0
  284. package/presets/claude/svelte/rules/tooling-and-review/mockup-review.md +56 -1
  285. package/presets/claude/svelte/rules/tooling-and-review/preset-goals.md +40 -0
  286. package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +1 -1
  287. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  288. package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +19 -77
  289. package/presets/claude/svelte/rules/tooling-and-review/preset-writing-style.md +51 -0
  290. package/presets/claude/svelte/team/README.md +17 -0
  291. package/presets/claude/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  292. package/presets/cursor/android-kotlin/REPO_AGENTS.md +3 -0
  293. package/presets/cursor/android-kotlin/agents/README.md +7 -0
  294. package/presets/cursor/android-kotlin/agents/build-verifier.md +12 -0
  295. package/presets/cursor/android-kotlin/agents/code-reviewer.md +12 -0
  296. package/presets/cursor/android-kotlin/agents/debugger.md +12 -0
  297. package/presets/cursor/android-kotlin/agents/feature-developer.md +12 -0
  298. package/presets/cursor/android-kotlin/agents/task-analyst.md +31 -1
  299. package/presets/cursor/android-kotlin/agents/task-router.md +8 -0
  300. package/presets/cursor/android-kotlin/ai-local/conventions.md +8 -0
  301. package/presets/cursor/android-kotlin/commands/task-continue.md +8 -0
  302. package/presets/cursor/android-kotlin/commands/task.md +14 -1
  303. package/presets/cursor/android-kotlin/rules/README.md +3 -1
  304. package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +3 -0
  305. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +32 -2
  306. package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +4 -0
  307. package/presets/cursor/android-kotlin/rules/android-app-core.mdc +6 -0
  308. package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +20 -1
  309. package/presets/cursor/android-kotlin/rules/feature-delivery-workflow.mdc +4 -0
  310. package/presets/cursor/android-kotlin/rules/language-policy.mdc +52 -0
  311. package/presets/cursor/android-kotlin/rules/mockup-review.mdc +56 -1
  312. package/presets/cursor/android-kotlin/rules/preset-goals.mdc +40 -0
  313. package/presets/cursor/android-kotlin/rules/preset-layering.mdc +1 -1
  314. package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +4 -0
  315. package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +19 -77
  316. package/presets/cursor/android-kotlin/rules/preset-writing-style.mdc +51 -0
  317. package/presets/cursor/android-kotlin/team/README.md +11 -0
  318. package/presets/cursor/go/REPO_AGENTS.md +3 -0
  319. package/presets/cursor/go/agents/README.md +7 -0
  320. package/presets/cursor/go/agents/build-verifier.md +12 -0
  321. package/presets/cursor/go/agents/code-reviewer.md +12 -0
  322. package/presets/cursor/go/agents/debugger.md +12 -0
  323. package/presets/cursor/go/agents/feature-developer.md +12 -0
  324. package/presets/cursor/go/agents/task-analyst.md +31 -1
  325. package/presets/cursor/go/agents/task-router.md +8 -0
  326. package/presets/cursor/go/ai-local/conventions.md +8 -0
  327. package/presets/cursor/go/commands/task-continue.md +8 -0
  328. package/presets/cursor/go/commands/task.md +14 -1
  329. package/presets/cursor/go/rules/README.md +5 -3
  330. package/presets/cursor/go/rules/agent-team-intake.mdc +3 -0
  331. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +31 -1
  332. package/presets/cursor/go/rules/ai-local-overlay.mdc +4 -0
  333. package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +20 -1
  334. package/presets/cursor/go/rules/feature-delivery-workflow.mdc +4 -0
  335. package/presets/cursor/go/rules/go-app-core.mdc +6 -0
  336. package/presets/cursor/go/rules/language-policy.mdc +52 -0
  337. package/presets/cursor/go/rules/preset-goals.mdc +40 -0
  338. package/presets/cursor/go/rules/preset-layering.mdc +1 -1
  339. package/presets/cursor/go/rules/preset-pr-checklist.mdc +4 -0
  340. package/presets/cursor/go/rules/preset-twin-sync.mdc +19 -77
  341. package/presets/cursor/go/rules/preset-writing-style.mdc +51 -0
  342. package/presets/cursor/go/team/README.md +11 -0
  343. package/presets/cursor/ios-swift/REPO_AGENTS.md +3 -0
  344. package/presets/cursor/ios-swift/agents/README.md +7 -0
  345. package/presets/cursor/ios-swift/agents/build-verifier.md +12 -0
  346. package/presets/cursor/ios-swift/agents/code-reviewer.md +12 -0
  347. package/presets/cursor/ios-swift/agents/debugger.md +12 -0
  348. package/presets/cursor/ios-swift/agents/feature-developer.md +12 -0
  349. package/presets/cursor/ios-swift/agents/task-analyst.md +31 -1
  350. package/presets/cursor/ios-swift/agents/task-router.md +8 -0
  351. package/presets/cursor/ios-swift/ai-local/conventions.md +8 -0
  352. package/presets/cursor/ios-swift/commands/task-continue.md +8 -0
  353. package/presets/cursor/ios-swift/commands/task.md +14 -1
  354. package/presets/cursor/ios-swift/rules/README.md +4 -2
  355. package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +3 -0
  356. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +32 -2
  357. package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +4 -0
  358. package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +20 -1
  359. package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +4 -0
  360. package/presets/cursor/ios-swift/rules/ios-app-core.mdc +6 -0
  361. package/presets/cursor/ios-swift/rules/language-policy.mdc +52 -0
  362. package/presets/cursor/ios-swift/rules/mockup-review.mdc +56 -1
  363. package/presets/cursor/ios-swift/rules/preset-goals.mdc +40 -0
  364. package/presets/cursor/ios-swift/rules/preset-layering.mdc +1 -1
  365. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +4 -0
  366. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +19 -77
  367. package/presets/cursor/ios-swift/rules/preset-writing-style.mdc +51 -0
  368. package/presets/cursor/ios-swift/team/README.md +11 -0
  369. package/presets/cursor/java/REPO_AGENTS.md +3 -0
  370. package/presets/cursor/java/agents/README.md +7 -0
  371. package/presets/cursor/java/agents/build-verifier.md +12 -0
  372. package/presets/cursor/java/agents/code-reviewer.md +12 -0
  373. package/presets/cursor/java/agents/debugger.md +12 -0
  374. package/presets/cursor/java/agents/feature-developer.md +12 -0
  375. package/presets/cursor/java/agents/task-analyst.md +31 -1
  376. package/presets/cursor/java/agents/task-router.md +8 -0
  377. package/presets/cursor/java/ai-local/conventions.md +8 -0
  378. package/presets/cursor/java/commands/task-continue.md +8 -0
  379. package/presets/cursor/java/commands/task.md +14 -1
  380. package/presets/cursor/java/rules/README.md +5 -3
  381. package/presets/cursor/java/rules/agent-team-intake.mdc +3 -0
  382. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +31 -1
  383. package/presets/cursor/java/rules/ai-local-overlay.mdc +4 -0
  384. package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +20 -1
  385. package/presets/cursor/java/rules/feature-delivery-workflow.mdc +4 -0
  386. package/presets/cursor/java/rules/java-app-core.mdc +6 -0
  387. package/presets/cursor/java/rules/language-policy.mdc +52 -0
  388. package/presets/cursor/java/rules/preset-goals.mdc +40 -0
  389. package/presets/cursor/java/rules/preset-layering.mdc +1 -1
  390. package/presets/cursor/java/rules/preset-pr-checklist.mdc +4 -0
  391. package/presets/cursor/java/rules/preset-twin-sync.mdc +19 -77
  392. package/presets/cursor/java/rules/preset-writing-style.mdc +51 -0
  393. package/presets/cursor/java/team/README.md +11 -0
  394. package/presets/cursor/mcp-ts/REPO_AGENTS.md +3 -0
  395. package/presets/cursor/mcp-ts/agents/README.md +7 -0
  396. package/presets/cursor/mcp-ts/agents/build-verifier.md +12 -0
  397. package/presets/cursor/mcp-ts/agents/feature-developer.md +12 -0
  398. package/presets/cursor/mcp-ts/agents/task-analyst.md +31 -1
  399. package/presets/cursor/mcp-ts/agents/task-router.md +8 -0
  400. package/presets/cursor/mcp-ts/ai-local/conventions.md +8 -0
  401. package/presets/cursor/mcp-ts/commands/task-continue.md +8 -0
  402. package/presets/cursor/mcp-ts/commands/task.md +14 -1
  403. package/presets/cursor/mcp-ts/rules/README.md +4 -2
  404. package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +3 -0
  405. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +31 -1
  406. package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +4 -0
  407. package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +20 -1
  408. package/presets/cursor/mcp-ts/rules/feature-delivery-workflow.mdc +4 -0
  409. package/presets/cursor/mcp-ts/rules/language-policy.mdc +52 -0
  410. package/presets/cursor/mcp-ts/rules/mcp-ts-app-core.mdc +6 -0
  411. package/presets/cursor/mcp-ts/rules/preset-goals.mdc +40 -0
  412. package/presets/cursor/mcp-ts/rules/preset-layering.mdc +1 -1
  413. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +4 -0
  414. package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +19 -77
  415. package/presets/cursor/mcp-ts/rules/preset-writing-style.mdc +51 -0
  416. package/presets/cursor/mcp-ts/team/README.md +11 -0
  417. package/presets/cursor/next/REPO_AGENTS.md +3 -0
  418. package/presets/cursor/next/agents/README.md +7 -1
  419. package/presets/cursor/next/agents/build-verifier.md +12 -0
  420. package/presets/cursor/next/agents/code-reviewer.md +23 -0
  421. package/presets/cursor/next/agents/debugger.md +12 -0
  422. package/presets/cursor/next/agents/feature-developer.md +20 -2
  423. package/presets/cursor/next/agents/mockup-reviewer.md +25 -4
  424. package/presets/cursor/next/agents/task-analyst.md +43 -2
  425. package/presets/cursor/next/agents/task-router.md +8 -0
  426. package/presets/cursor/next/ai-local/conventions.md +8 -0
  427. package/presets/cursor/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  428. package/presets/cursor/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
  429. package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
  430. package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
  431. package/presets/cursor/next/commands/task-continue.md +8 -0
  432. package/presets/cursor/next/commands/task.md +14 -1
  433. package/presets/cursor/next/rules/README.md +3 -1
  434. package/presets/cursor/next/rules/agent-team-intake.mdc +3 -0
  435. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +36 -2
  436. package/presets/cursor/next/rules/ai-local-overlay.mdc +4 -0
  437. package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +20 -1
  438. package/presets/cursor/next/rules/code-review-mr.mdc +10 -0
  439. package/presets/cursor/next/rules/design-tokens-binding.mdc +23 -1
  440. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +8 -0
  441. package/presets/cursor/next/rules/language-policy.mdc +52 -0
  442. package/presets/cursor/next/rules/mockup-review.mdc +77 -1
  443. package/presets/cursor/next/rules/next-app-core.mdc +6 -0
  444. package/presets/cursor/next/rules/preset-goals.mdc +40 -0
  445. package/presets/cursor/next/rules/preset-layering.mdc +1 -1
  446. package/presets/cursor/next/rules/preset-pr-checklist.mdc +4 -0
  447. package/presets/cursor/next/rules/preset-twin-sync.mdc +19 -77
  448. package/presets/cursor/next/rules/preset-writing-style.mdc +51 -0
  449. package/presets/cursor/next/skills/README.md +1 -0
  450. package/presets/cursor/next/skills/code-review/SKILL.md +1 -1
  451. package/presets/cursor/next/skills/figma-fidelity/SKILL.md +96 -0
  452. package/presets/cursor/next/skills/mockup-review/SKILL.md +5 -1
  453. package/presets/cursor/next/team/README.md +12 -0
  454. package/presets/cursor/next/team/fixtures/artifact-manifest.example.json +1 -1
  455. package/presets/cursor/nuxt/REPO_AGENTS.md +3 -0
  456. package/presets/cursor/nuxt/agents/README.md +7 -0
  457. package/presets/cursor/nuxt/agents/build-verifier.md +12 -0
  458. package/presets/cursor/nuxt/agents/code-reviewer.md +12 -0
  459. package/presets/cursor/nuxt/agents/debugger.md +12 -0
  460. package/presets/cursor/nuxt/agents/feature-developer.md +12 -0
  461. package/presets/cursor/nuxt/agents/task-analyst.md +43 -2
  462. package/presets/cursor/nuxt/agents/task-router.md +8 -0
  463. package/presets/cursor/nuxt/ai-local/conventions.md +8 -0
  464. package/presets/cursor/nuxt/commands/task-continue.md +8 -0
  465. package/presets/cursor/nuxt/commands/task.md +14 -1
  466. package/presets/cursor/nuxt/rules/README.md +3 -1
  467. package/presets/cursor/nuxt/rules/agent-team-intake.mdc +3 -0
  468. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +32 -2
  469. package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +4 -0
  470. package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +20 -1
  471. package/presets/cursor/nuxt/rules/feature-delivery-workflow.mdc +4 -0
  472. package/presets/cursor/nuxt/rules/language-policy.mdc +52 -0
  473. package/presets/cursor/nuxt/rules/mockup-review.mdc +56 -1
  474. package/presets/cursor/nuxt/rules/nuxt-app-core.mdc +6 -0
  475. package/presets/cursor/nuxt/rules/preset-goals.mdc +40 -0
  476. package/presets/cursor/nuxt/rules/preset-layering.mdc +1 -1
  477. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +4 -0
  478. package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +19 -77
  479. package/presets/cursor/nuxt/rules/preset-writing-style.mdc +51 -0
  480. package/presets/cursor/nuxt/team/README.md +11 -0
  481. package/presets/cursor/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  482. package/presets/cursor/php-hexagonal/REPO_AGENTS.md +3 -0
  483. package/presets/cursor/php-hexagonal/agents/README.md +7 -0
  484. package/presets/cursor/php-hexagonal/agents/build-verifier.md +12 -0
  485. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +12 -0
  486. package/presets/cursor/php-hexagonal/agents/debugger.md +12 -0
  487. package/presets/cursor/php-hexagonal/agents/feature-developer.md +12 -0
  488. package/presets/cursor/php-hexagonal/agents/task-analyst.md +31 -1
  489. package/presets/cursor/php-hexagonal/agents/task-router.md +8 -0
  490. package/presets/cursor/php-hexagonal/ai-local/conventions.md +8 -0
  491. package/presets/cursor/php-hexagonal/commands/task-continue.md +8 -0
  492. package/presets/cursor/php-hexagonal/commands/task.md +14 -1
  493. package/presets/cursor/php-hexagonal/rules/README.md +5 -3
  494. package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +3 -0
  495. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +31 -1
  496. package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +4 -0
  497. package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +20 -1
  498. package/presets/cursor/php-hexagonal/rules/feature-delivery-workflow.mdc +4 -0
  499. package/presets/cursor/php-hexagonal/rules/language-policy.mdc +52 -0
  500. package/presets/cursor/php-hexagonal/rules/php-app-core.mdc +6 -0
  501. package/presets/cursor/php-hexagonal/rules/preset-goals.mdc +40 -0
  502. package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +1 -1
  503. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +4 -0
  504. package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +19 -77
  505. package/presets/cursor/php-hexagonal/rules/preset-writing-style.mdc +51 -0
  506. package/presets/cursor/php-hexagonal/team/README.md +11 -0
  507. package/presets/cursor/php-laravel/REPO_AGENTS.md +3 -0
  508. package/presets/cursor/php-laravel/agents/README.md +7 -0
  509. package/presets/cursor/php-laravel/agents/build-verifier.md +12 -0
  510. package/presets/cursor/php-laravel/agents/code-reviewer.md +12 -0
  511. package/presets/cursor/php-laravel/agents/debugger.md +12 -0
  512. package/presets/cursor/php-laravel/agents/feature-developer.md +12 -0
  513. package/presets/cursor/php-laravel/agents/task-analyst.md +31 -1
  514. package/presets/cursor/php-laravel/agents/task-router.md +8 -0
  515. package/presets/cursor/php-laravel/ai-local/conventions.md +8 -0
  516. package/presets/cursor/php-laravel/commands/task-continue.md +8 -0
  517. package/presets/cursor/php-laravel/commands/task.md +14 -1
  518. package/presets/cursor/php-laravel/rules/README.md +5 -3
  519. package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +3 -0
  520. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +31 -1
  521. package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +4 -0
  522. package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +20 -1
  523. package/presets/cursor/php-laravel/rules/feature-delivery-workflow.mdc +4 -0
  524. package/presets/cursor/php-laravel/rules/language-policy.mdc +52 -0
  525. package/presets/cursor/php-laravel/rules/laravel-app-core.mdc +6 -0
  526. package/presets/cursor/php-laravel/rules/preset-goals.mdc +40 -0
  527. package/presets/cursor/php-laravel/rules/preset-layering.mdc +1 -1
  528. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +4 -0
  529. package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +19 -77
  530. package/presets/cursor/php-laravel/rules/preset-writing-style.mdc +51 -0
  531. package/presets/cursor/php-laravel/team/README.md +11 -0
  532. package/presets/cursor/svelte/REPO_AGENTS.md +3 -0
  533. package/presets/cursor/svelte/agents/README.md +7 -0
  534. package/presets/cursor/svelte/agents/build-verifier.md +12 -0
  535. package/presets/cursor/svelte/agents/code-reviewer.md +12 -0
  536. package/presets/cursor/svelte/agents/debugger.md +12 -0
  537. package/presets/cursor/svelte/agents/feature-developer.md +12 -0
  538. package/presets/cursor/svelte/agents/task-analyst.md +43 -2
  539. package/presets/cursor/svelte/agents/task-router.md +8 -0
  540. package/presets/cursor/svelte/ai-local/conventions.md +8 -0
  541. package/presets/cursor/svelte/commands/task-continue.md +8 -0
  542. package/presets/cursor/svelte/commands/task.md +14 -1
  543. package/presets/cursor/svelte/rules/README.md +3 -1
  544. package/presets/cursor/svelte/rules/agent-team-intake.mdc +3 -0
  545. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +32 -2
  546. package/presets/cursor/svelte/rules/ai-local-overlay.mdc +4 -0
  547. package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +20 -1
  548. package/presets/cursor/svelte/rules/feature-delivery-workflow.mdc +4 -0
  549. package/presets/cursor/svelte/rules/language-policy.mdc +52 -0
  550. package/presets/cursor/svelte/rules/mockup-review.mdc +56 -1
  551. package/presets/cursor/svelte/rules/preset-goals.mdc +40 -0
  552. package/presets/cursor/svelte/rules/preset-layering.mdc +1 -1
  553. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +4 -0
  554. package/presets/cursor/svelte/rules/preset-twin-sync.mdc +19 -77
  555. package/presets/cursor/svelte/rules/preset-writing-style.mdc +51 -0
  556. package/presets/cursor/svelte/rules/svelte-app-core.mdc +6 -0
  557. package/presets/cursor/svelte/team/README.md +11 -0
  558. package/presets/cursor/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  559. package/presets/mavis/android-kotlin/REPO_AGENTS.md +3 -0
  560. package/presets/mavis/android-kotlin/adapter-map.json +29 -2
  561. package/presets/mavis/android-kotlin/agents/README.md +7 -0
  562. package/presets/mavis/android-kotlin/agents/build-verifier.md +12 -0
  563. package/presets/mavis/android-kotlin/agents/code-reviewer.md +12 -0
  564. package/presets/mavis/android-kotlin/agents/debugger.md +12 -0
  565. package/presets/mavis/android-kotlin/agents/feature-developer.md +12 -0
  566. package/presets/mavis/android-kotlin/agents/task-analyst.md +31 -1
  567. package/presets/mavis/android-kotlin/agents/task-router.md +8 -0
  568. package/presets/mavis/android-kotlin/ai-local/conventions.md +8 -0
  569. package/presets/mavis/android-kotlin/commands/task-continue.md +8 -0
  570. package/presets/mavis/android-kotlin/commands/task.md +14 -1
  571. package/presets/mavis/android-kotlin/rules/agent-team-intake.md +3 -0
  572. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +22 -2
  573. package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +4 -0
  574. package/presets/mavis/android-kotlin/rules/android-app-core.md +6 -0
  575. package/presets/mavis/android-kotlin/rules/code-quality-and-refactoring.md +20 -1
  576. package/presets/mavis/android-kotlin/rules/feature-delivery-workflow.md +4 -0
  577. package/presets/mavis/android-kotlin/rules/language-policy.md +43 -0
  578. package/presets/mavis/android-kotlin/rules/mockup-review.md +56 -1
  579. package/presets/mavis/android-kotlin/rules/preset-goals.md +31 -0
  580. package/presets/mavis/android-kotlin/rules/preset-layering.md +1 -1
  581. package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +4 -0
  582. package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +19 -77
  583. package/presets/mavis/android-kotlin/rules/preset-writing-style.md +42 -0
  584. package/presets/mavis/android-kotlin/team/README.md +11 -0
  585. package/presets/mavis/go/REPO_AGENTS.md +3 -0
  586. package/presets/mavis/go/adapter-map.json +30 -3
  587. package/presets/mavis/go/agents/README.md +5 -0
  588. package/presets/mavis/go/agents/build-verifier.md +12 -0
  589. package/presets/mavis/go/agents/code-reviewer.md +12 -0
  590. package/presets/mavis/go/agents/debugger.md +12 -0
  591. package/presets/mavis/go/agents/feature-developer.md +12 -0
  592. package/presets/mavis/go/agents/task-analyst.md +31 -1
  593. package/presets/mavis/go/agents/task-router.md +8 -0
  594. package/presets/mavis/go/ai-local/conventions.md +8 -0
  595. package/presets/mavis/go/commands/task-continue.md +8 -0
  596. package/presets/mavis/go/commands/task.md +14 -1
  597. package/presets/mavis/go/rules/agent-team-intake.md +3 -0
  598. package/presets/mavis/go/rules/agent-team-orchestrator.md +22 -2
  599. package/presets/mavis/go/rules/ai-local-overlay.md +4 -0
  600. package/presets/mavis/go/rules/code-quality-and-refactoring.md +20 -1
  601. package/presets/mavis/go/rules/feature-delivery-workflow.md +11 -1
  602. package/presets/mavis/go/rules/go-app-core.md +6 -0
  603. package/presets/mavis/go/rules/language-policy.md +43 -0
  604. package/presets/mavis/go/rules/preset-goals.md +31 -0
  605. package/presets/mavis/go/rules/preset-layering.md +1 -1
  606. package/presets/mavis/go/rules/preset-pr-checklist.md +4 -0
  607. package/presets/mavis/go/rules/preset-twin-sync.md +19 -77
  608. package/presets/mavis/go/rules/preset-writing-style.md +42 -0
  609. package/presets/mavis/go/team/README.md +11 -0
  610. package/presets/mavis/ios-swift/REPO_AGENTS.md +3 -0
  611. package/presets/mavis/ios-swift/adapter-map.json +29 -2
  612. package/presets/mavis/ios-swift/agents/README.md +7 -0
  613. package/presets/mavis/ios-swift/agents/build-verifier.md +12 -0
  614. package/presets/mavis/ios-swift/agents/code-reviewer.md +12 -0
  615. package/presets/mavis/ios-swift/agents/debugger.md +12 -0
  616. package/presets/mavis/ios-swift/agents/feature-developer.md +12 -0
  617. package/presets/mavis/ios-swift/agents/task-analyst.md +31 -1
  618. package/presets/mavis/ios-swift/agents/task-router.md +8 -0
  619. package/presets/mavis/ios-swift/ai-local/conventions.md +8 -0
  620. package/presets/mavis/ios-swift/commands/task-continue.md +8 -0
  621. package/presets/mavis/ios-swift/commands/task.md +14 -1
  622. package/presets/mavis/ios-swift/rules/agent-team-intake.md +3 -0
  623. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +22 -2
  624. package/presets/mavis/ios-swift/rules/ai-local-overlay.md +4 -0
  625. package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +20 -1
  626. package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +15 -1
  627. package/presets/mavis/ios-swift/rules/ios-app-core.md +6 -0
  628. package/presets/mavis/ios-swift/rules/language-policy.md +43 -0
  629. package/presets/mavis/ios-swift/rules/mockup-review.md +56 -1
  630. package/presets/mavis/ios-swift/rules/preset-goals.md +31 -0
  631. package/presets/mavis/ios-swift/rules/preset-layering.md +1 -1
  632. package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +4 -0
  633. package/presets/mavis/ios-swift/rules/preset-twin-sync.md +19 -77
  634. package/presets/mavis/ios-swift/rules/preset-writing-style.md +42 -0
  635. package/presets/mavis/ios-swift/team/README.md +11 -0
  636. package/presets/mavis/java/REPO_AGENTS.md +3 -0
  637. package/presets/mavis/java/adapter-map.json +30 -3
  638. package/presets/mavis/java/agents/README.md +5 -0
  639. package/presets/mavis/java/agents/build-verifier.md +12 -0
  640. package/presets/mavis/java/agents/code-reviewer.md +12 -0
  641. package/presets/mavis/java/agents/debugger.md +12 -0
  642. package/presets/mavis/java/agents/feature-developer.md +12 -0
  643. package/presets/mavis/java/agents/task-analyst.md +31 -1
  644. package/presets/mavis/java/agents/task-router.md +8 -0
  645. package/presets/mavis/java/ai-local/conventions.md +8 -0
  646. package/presets/mavis/java/commands/task-continue.md +8 -0
  647. package/presets/mavis/java/commands/task.md +14 -1
  648. package/presets/mavis/java/rules/agent-team-intake.md +3 -0
  649. package/presets/mavis/java/rules/agent-team-orchestrator.md +22 -2
  650. package/presets/mavis/java/rules/ai-local-overlay.md +4 -0
  651. package/presets/mavis/java/rules/code-quality-and-refactoring.md +20 -1
  652. package/presets/mavis/java/rules/feature-delivery-workflow.md +11 -1
  653. package/presets/mavis/java/rules/java-app-core.md +6 -0
  654. package/presets/mavis/java/rules/language-policy.md +43 -0
  655. package/presets/mavis/java/rules/preset-goals.md +31 -0
  656. package/presets/mavis/java/rules/preset-layering.md +1 -1
  657. package/presets/mavis/java/rules/preset-pr-checklist.md +4 -0
  658. package/presets/mavis/java/rules/preset-twin-sync.md +19 -77
  659. package/presets/mavis/java/rules/preset-writing-style.md +42 -0
  660. package/presets/mavis/java/team/README.md +11 -0
  661. package/presets/mavis/mcp-ts/REPO_AGENTS.md +3 -0
  662. package/presets/mavis/mcp-ts/adapter-map.json +28 -1
  663. package/presets/mavis/mcp-ts/agents/README.md +7 -0
  664. package/presets/mavis/mcp-ts/agents/build-verifier.md +12 -0
  665. package/presets/mavis/mcp-ts/agents/feature-developer.md +12 -0
  666. package/presets/mavis/mcp-ts/agents/task-analyst.md +31 -1
  667. package/presets/mavis/mcp-ts/agents/task-router.md +8 -0
  668. package/presets/mavis/mcp-ts/ai-local/conventions.md +8 -0
  669. package/presets/mavis/mcp-ts/commands/task-continue.md +8 -0
  670. package/presets/mavis/mcp-ts/commands/task.md +14 -1
  671. package/presets/mavis/mcp-ts/rules/agent-team-intake.md +3 -0
  672. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +22 -2
  673. package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +4 -0
  674. package/presets/mavis/mcp-ts/rules/code-quality-and-refactoring.md +20 -1
  675. package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +11 -1
  676. package/presets/mavis/mcp-ts/rules/language-policy.md +43 -0
  677. package/presets/mavis/mcp-ts/rules/mcp-ts-app-core.md +6 -0
  678. package/presets/mavis/mcp-ts/rules/preset-goals.md +31 -0
  679. package/presets/mavis/mcp-ts/rules/preset-layering.md +1 -1
  680. package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +4 -0
  681. package/presets/mavis/mcp-ts/rules/preset-twin-sync.md +19 -77
  682. package/presets/mavis/mcp-ts/rules/preset-writing-style.md +42 -0
  683. package/presets/mavis/mcp-ts/team/README.md +11 -0
  684. package/presets/mavis/next/REPO_AGENTS.md +3 -0
  685. package/presets/mavis/next/adapter-map.json +38 -3
  686. package/presets/mavis/next/agents/README.md +6 -0
  687. package/presets/mavis/next/agents/build-verifier.md +12 -0
  688. package/presets/mavis/next/agents/code-reviewer.md +23 -0
  689. package/presets/mavis/next/agents/debugger.md +12 -0
  690. package/presets/mavis/next/agents/feature-developer.md +20 -2
  691. package/presets/mavis/next/agents/mockup-reviewer.md +25 -4
  692. package/presets/mavis/next/agents/task-analyst.md +43 -2
  693. package/presets/mavis/next/agents/task-router.md +8 -0
  694. package/presets/mavis/next/ai-local/conventions.md +8 -0
  695. package/presets/mavis/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  696. package/presets/mavis/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
  697. package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
  698. package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
  699. package/presets/mavis/next/commands/task-continue.md +8 -0
  700. package/presets/mavis/next/commands/task.md +14 -1
  701. package/presets/mavis/next/rules/agent-team-intake.md +3 -0
  702. package/presets/mavis/next/rules/agent-team-orchestrator.md +22 -2
  703. package/presets/mavis/next/rules/ai-local-overlay.md +4 -0
  704. package/presets/mavis/next/rules/code-quality-and-refactoring.md +20 -1
  705. package/presets/mavis/next/rules/code-review-mr.md +10 -0
  706. package/presets/mavis/next/rules/design-tokens-binding.md +23 -1
  707. package/presets/mavis/next/rules/feature-delivery-workflow.md +19 -1
  708. package/presets/mavis/next/rules/language-policy.md +43 -0
  709. package/presets/mavis/next/rules/mockup-review.md +77 -1
  710. package/presets/mavis/next/rules/next-app-core.md +6 -0
  711. package/presets/mavis/next/rules/preset-goals.md +31 -0
  712. package/presets/mavis/next/rules/preset-layering.md +1 -1
  713. package/presets/mavis/next/rules/preset-pr-checklist.md +4 -0
  714. package/presets/mavis/next/rules/preset-twin-sync.md +19 -77
  715. package/presets/mavis/next/rules/preset-writing-style.md +42 -0
  716. package/presets/mavis/next/skills/README.md +1 -0
  717. package/presets/mavis/next/skills/code-review/SKILL.md +1 -1
  718. package/presets/mavis/next/skills/figma-fidelity/SKILL.md +91 -0
  719. package/presets/mavis/next/skills/mockup-review/SKILL.md +5 -1
  720. package/presets/mavis/next/team/README.md +12 -0
  721. package/presets/mavis/next/team/fixtures/artifact-manifest.example.json +1 -1
  722. package/presets/mavis/nuxt/REPO_AGENTS.md +3 -0
  723. package/presets/mavis/nuxt/adapter-map.json +30 -3
  724. package/presets/mavis/nuxt/agents/README.md +7 -0
  725. package/presets/mavis/nuxt/agents/build-verifier.md +12 -0
  726. package/presets/mavis/nuxt/agents/code-reviewer.md +12 -0
  727. package/presets/mavis/nuxt/agents/debugger.md +12 -0
  728. package/presets/mavis/nuxt/agents/feature-developer.md +12 -0
  729. package/presets/mavis/nuxt/agents/task-analyst.md +43 -2
  730. package/presets/mavis/nuxt/agents/task-router.md +8 -0
  731. package/presets/mavis/nuxt/ai-local/conventions.md +8 -0
  732. package/presets/mavis/nuxt/commands/task-continue.md +8 -0
  733. package/presets/mavis/nuxt/commands/task.md +14 -1
  734. package/presets/mavis/nuxt/rules/agent-team-intake.md +3 -0
  735. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +22 -2
  736. package/presets/mavis/nuxt/rules/ai-local-overlay.md +4 -0
  737. package/presets/mavis/nuxt/rules/code-quality-and-refactoring.md +20 -1
  738. package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +15 -1
  739. package/presets/mavis/nuxt/rules/language-policy.md +43 -0
  740. package/presets/mavis/nuxt/rules/mockup-review.md +56 -1
  741. package/presets/mavis/nuxt/rules/nuxt-app-core.md +6 -0
  742. package/presets/mavis/nuxt/rules/preset-goals.md +31 -0
  743. package/presets/mavis/nuxt/rules/preset-layering.md +1 -1
  744. package/presets/mavis/nuxt/rules/preset-pr-checklist.md +4 -0
  745. package/presets/mavis/nuxt/rules/preset-twin-sync.md +19 -77
  746. package/presets/mavis/nuxt/rules/preset-writing-style.md +42 -0
  747. package/presets/mavis/nuxt/team/README.md +11 -0
  748. package/presets/mavis/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  749. package/presets/mavis/php-hexagonal/REPO_AGENTS.md +3 -0
  750. package/presets/mavis/php-hexagonal/adapter-map.json +30 -3
  751. package/presets/mavis/php-hexagonal/agents/README.md +5 -0
  752. package/presets/mavis/php-hexagonal/agents/build-verifier.md +12 -0
  753. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +12 -0
  754. package/presets/mavis/php-hexagonal/agents/debugger.md +12 -0
  755. package/presets/mavis/php-hexagonal/agents/feature-developer.md +12 -0
  756. package/presets/mavis/php-hexagonal/agents/task-analyst.md +31 -1
  757. package/presets/mavis/php-hexagonal/agents/task-router.md +8 -0
  758. package/presets/mavis/php-hexagonal/ai-local/conventions.md +8 -0
  759. package/presets/mavis/php-hexagonal/commands/task-continue.md +8 -0
  760. package/presets/mavis/php-hexagonal/commands/task.md +14 -1
  761. package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +3 -0
  762. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +22 -2
  763. package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +4 -0
  764. package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +20 -1
  765. package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +11 -1
  766. package/presets/mavis/php-hexagonal/rules/language-policy.md +43 -0
  767. package/presets/mavis/php-hexagonal/rules/php-app-core.md +6 -0
  768. package/presets/mavis/php-hexagonal/rules/preset-goals.md +31 -0
  769. package/presets/mavis/php-hexagonal/rules/preset-layering.md +1 -1
  770. package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +4 -0
  771. package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +19 -77
  772. package/presets/mavis/php-hexagonal/rules/preset-writing-style.md +42 -0
  773. package/presets/mavis/php-hexagonal/team/README.md +11 -0
  774. package/presets/mavis/php-laravel/REPO_AGENTS.md +3 -0
  775. package/presets/mavis/php-laravel/adapter-map.json +30 -3
  776. package/presets/mavis/php-laravel/agents/README.md +5 -0
  777. package/presets/mavis/php-laravel/agents/build-verifier.md +12 -0
  778. package/presets/mavis/php-laravel/agents/code-reviewer.md +12 -0
  779. package/presets/mavis/php-laravel/agents/debugger.md +12 -0
  780. package/presets/mavis/php-laravel/agents/feature-developer.md +12 -0
  781. package/presets/mavis/php-laravel/agents/task-analyst.md +31 -1
  782. package/presets/mavis/php-laravel/agents/task-router.md +8 -0
  783. package/presets/mavis/php-laravel/ai-local/conventions.md +8 -0
  784. package/presets/mavis/php-laravel/commands/task-continue.md +8 -0
  785. package/presets/mavis/php-laravel/commands/task.md +14 -1
  786. package/presets/mavis/php-laravel/rules/agent-team-intake.md +3 -0
  787. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +22 -2
  788. package/presets/mavis/php-laravel/rules/ai-local-overlay.md +4 -0
  789. package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +20 -1
  790. package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +11 -1
  791. package/presets/mavis/php-laravel/rules/language-policy.md +43 -0
  792. package/presets/mavis/php-laravel/rules/laravel-app-core.md +6 -0
  793. package/presets/mavis/php-laravel/rules/preset-goals.md +31 -0
  794. package/presets/mavis/php-laravel/rules/preset-layering.md +1 -1
  795. package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +4 -0
  796. package/presets/mavis/php-laravel/rules/preset-twin-sync.md +19 -77
  797. package/presets/mavis/php-laravel/rules/preset-writing-style.md +42 -0
  798. package/presets/mavis/php-laravel/team/README.md +11 -0
  799. package/presets/mavis/svelte/REPO_AGENTS.md +3 -0
  800. package/presets/mavis/svelte/adapter-map.json +30 -3
  801. package/presets/mavis/svelte/agents/README.md +7 -0
  802. package/presets/mavis/svelte/agents/build-verifier.md +12 -0
  803. package/presets/mavis/svelte/agents/code-reviewer.md +12 -0
  804. package/presets/mavis/svelte/agents/debugger.md +12 -0
  805. package/presets/mavis/svelte/agents/feature-developer.md +12 -0
  806. package/presets/mavis/svelte/agents/task-analyst.md +43 -2
  807. package/presets/mavis/svelte/agents/task-router.md +8 -0
  808. package/presets/mavis/svelte/ai-local/conventions.md +8 -0
  809. package/presets/mavis/svelte/commands/task-continue.md +8 -0
  810. package/presets/mavis/svelte/commands/task.md +14 -1
  811. package/presets/mavis/svelte/rules/agent-team-intake.md +3 -0
  812. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +22 -2
  813. package/presets/mavis/svelte/rules/ai-local-overlay.md +4 -0
  814. package/presets/mavis/svelte/rules/code-quality-and-refactoring.md +20 -1
  815. package/presets/mavis/svelte/rules/feature-delivery-workflow.md +15 -1
  816. package/presets/mavis/svelte/rules/language-policy.md +43 -0
  817. package/presets/mavis/svelte/rules/mockup-review.md +56 -1
  818. package/presets/mavis/svelte/rules/preset-goals.md +31 -0
  819. package/presets/mavis/svelte/rules/preset-layering.md +1 -1
  820. package/presets/mavis/svelte/rules/preset-pr-checklist.md +4 -0
  821. package/presets/mavis/svelte/rules/preset-twin-sync.md +19 -77
  822. package/presets/mavis/svelte/rules/preset-writing-style.md +42 -0
  823. package/presets/mavis/svelte/rules/svelte-app-core.md +6 -0
  824. package/presets/mavis/svelte/team/README.md +11 -0
  825. package/presets/mavis/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  826. package/presets/opencode/android-kotlin/REPO_AGENTS.md +3 -0
  827. package/presets/opencode/android-kotlin/adapter-map.json +29 -2
  828. package/presets/opencode/android-kotlin/agents/README.md +7 -0
  829. package/presets/opencode/android-kotlin/agents/build-verifier.md +12 -0
  830. package/presets/opencode/android-kotlin/agents/code-reviewer.md +12 -0
  831. package/presets/opencode/android-kotlin/agents/debugger.md +12 -0
  832. package/presets/opencode/android-kotlin/agents/feature-developer.md +12 -0
  833. package/presets/opencode/android-kotlin/agents/task-analyst.md +31 -1
  834. package/presets/opencode/android-kotlin/agents/task-router.md +8 -0
  835. package/presets/opencode/android-kotlin/ai-local/conventions.md +8 -0
  836. package/presets/opencode/android-kotlin/commands/task-continue.md +8 -0
  837. package/presets/opencode/android-kotlin/commands/task.md +14 -1
  838. package/presets/opencode/android-kotlin/rules/agent-team-intake.md +3 -0
  839. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +22 -2
  840. package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +4 -0
  841. package/presets/opencode/android-kotlin/rules/android-app-core.md +6 -0
  842. package/presets/opencode/android-kotlin/rules/code-quality-and-refactoring.md +20 -1
  843. package/presets/opencode/android-kotlin/rules/feature-delivery-workflow.md +4 -0
  844. package/presets/opencode/android-kotlin/rules/language-policy.md +43 -0
  845. package/presets/opencode/android-kotlin/rules/mockup-review.md +56 -1
  846. package/presets/opencode/android-kotlin/rules/preset-goals.md +31 -0
  847. package/presets/opencode/android-kotlin/rules/preset-layering.md +1 -1
  848. package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +4 -0
  849. package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +19 -77
  850. package/presets/opencode/android-kotlin/rules/preset-writing-style.md +42 -0
  851. package/presets/opencode/android-kotlin/team/README.md +11 -0
  852. package/presets/opencode/go/REPO_AGENTS.md +3 -0
  853. package/presets/opencode/go/adapter-map.json +30 -3
  854. package/presets/opencode/go/agents/README.md +5 -0
  855. package/presets/opencode/go/agents/build-verifier.md +12 -0
  856. package/presets/opencode/go/agents/code-reviewer.md +12 -0
  857. package/presets/opencode/go/agents/debugger.md +12 -0
  858. package/presets/opencode/go/agents/feature-developer.md +12 -0
  859. package/presets/opencode/go/agents/task-analyst.md +31 -1
  860. package/presets/opencode/go/agents/task-router.md +8 -0
  861. package/presets/opencode/go/ai-local/conventions.md +8 -0
  862. package/presets/opencode/go/commands/task-continue.md +8 -0
  863. package/presets/opencode/go/commands/task.md +14 -1
  864. package/presets/opencode/go/rules/agent-team-intake.md +3 -0
  865. package/presets/opencode/go/rules/agent-team-orchestrator.md +22 -2
  866. package/presets/opencode/go/rules/ai-local-overlay.md +4 -0
  867. package/presets/opencode/go/rules/code-quality-and-refactoring.md +20 -1
  868. package/presets/opencode/go/rules/feature-delivery-workflow.md +11 -1
  869. package/presets/opencode/go/rules/go-app-core.md +6 -0
  870. package/presets/opencode/go/rules/language-policy.md +43 -0
  871. package/presets/opencode/go/rules/preset-goals.md +31 -0
  872. package/presets/opencode/go/rules/preset-layering.md +1 -1
  873. package/presets/opencode/go/rules/preset-pr-checklist.md +4 -0
  874. package/presets/opencode/go/rules/preset-twin-sync.md +19 -77
  875. package/presets/opencode/go/rules/preset-writing-style.md +42 -0
  876. package/presets/opencode/go/team/README.md +11 -0
  877. package/presets/opencode/ios-swift/REPO_AGENTS.md +3 -0
  878. package/presets/opencode/ios-swift/adapter-map.json +29 -2
  879. package/presets/opencode/ios-swift/agents/README.md +7 -0
  880. package/presets/opencode/ios-swift/agents/build-verifier.md +12 -0
  881. package/presets/opencode/ios-swift/agents/code-reviewer.md +12 -0
  882. package/presets/opencode/ios-swift/agents/debugger.md +12 -0
  883. package/presets/opencode/ios-swift/agents/feature-developer.md +12 -0
  884. package/presets/opencode/ios-swift/agents/task-analyst.md +31 -1
  885. package/presets/opencode/ios-swift/agents/task-router.md +8 -0
  886. package/presets/opencode/ios-swift/ai-local/conventions.md +8 -0
  887. package/presets/opencode/ios-swift/commands/task-continue.md +8 -0
  888. package/presets/opencode/ios-swift/commands/task.md +14 -1
  889. package/presets/opencode/ios-swift/rules/agent-team-intake.md +3 -0
  890. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +22 -2
  891. package/presets/opencode/ios-swift/rules/ai-local-overlay.md +4 -0
  892. package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +20 -1
  893. package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +15 -1
  894. package/presets/opencode/ios-swift/rules/ios-app-core.md +6 -0
  895. package/presets/opencode/ios-swift/rules/language-policy.md +43 -0
  896. package/presets/opencode/ios-swift/rules/mockup-review.md +56 -1
  897. package/presets/opencode/ios-swift/rules/preset-goals.md +31 -0
  898. package/presets/opencode/ios-swift/rules/preset-layering.md +1 -1
  899. package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +4 -0
  900. package/presets/opencode/ios-swift/rules/preset-twin-sync.md +19 -77
  901. package/presets/opencode/ios-swift/rules/preset-writing-style.md +42 -0
  902. package/presets/opencode/ios-swift/team/README.md +11 -0
  903. package/presets/opencode/java/REPO_AGENTS.md +3 -0
  904. package/presets/opencode/java/adapter-map.json +30 -3
  905. package/presets/opencode/java/agents/README.md +5 -0
  906. package/presets/opencode/java/agents/build-verifier.md +12 -0
  907. package/presets/opencode/java/agents/code-reviewer.md +12 -0
  908. package/presets/opencode/java/agents/debugger.md +12 -0
  909. package/presets/opencode/java/agents/feature-developer.md +12 -0
  910. package/presets/opencode/java/agents/task-analyst.md +31 -1
  911. package/presets/opencode/java/agents/task-router.md +8 -0
  912. package/presets/opencode/java/ai-local/conventions.md +8 -0
  913. package/presets/opencode/java/commands/task-continue.md +8 -0
  914. package/presets/opencode/java/commands/task.md +14 -1
  915. package/presets/opencode/java/rules/agent-team-intake.md +3 -0
  916. package/presets/opencode/java/rules/agent-team-orchestrator.md +22 -2
  917. package/presets/opencode/java/rules/ai-local-overlay.md +4 -0
  918. package/presets/opencode/java/rules/code-quality-and-refactoring.md +20 -1
  919. package/presets/opencode/java/rules/feature-delivery-workflow.md +11 -1
  920. package/presets/opencode/java/rules/java-app-core.md +6 -0
  921. package/presets/opencode/java/rules/language-policy.md +43 -0
  922. package/presets/opencode/java/rules/preset-goals.md +31 -0
  923. package/presets/opencode/java/rules/preset-layering.md +1 -1
  924. package/presets/opencode/java/rules/preset-pr-checklist.md +4 -0
  925. package/presets/opencode/java/rules/preset-twin-sync.md +19 -77
  926. package/presets/opencode/java/rules/preset-writing-style.md +42 -0
  927. package/presets/opencode/java/team/README.md +11 -0
  928. package/presets/opencode/mcp-ts/REPO_AGENTS.md +3 -0
  929. package/presets/opencode/mcp-ts/adapter-map.json +28 -1
  930. package/presets/opencode/mcp-ts/agents/README.md +7 -0
  931. package/presets/opencode/mcp-ts/agents/build-verifier.md +12 -0
  932. package/presets/opencode/mcp-ts/agents/feature-developer.md +12 -0
  933. package/presets/opencode/mcp-ts/agents/task-analyst.md +31 -1
  934. package/presets/opencode/mcp-ts/agents/task-router.md +8 -0
  935. package/presets/opencode/mcp-ts/ai-local/conventions.md +8 -0
  936. package/presets/opencode/mcp-ts/commands/task-continue.md +8 -0
  937. package/presets/opencode/mcp-ts/commands/task.md +14 -1
  938. package/presets/opencode/mcp-ts/rules/agent-team-intake.md +3 -0
  939. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +22 -2
  940. package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +4 -0
  941. package/presets/opencode/mcp-ts/rules/code-quality-and-refactoring.md +20 -1
  942. package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +11 -1
  943. package/presets/opencode/mcp-ts/rules/language-policy.md +43 -0
  944. package/presets/opencode/mcp-ts/rules/mcp-ts-app-core.md +6 -0
  945. package/presets/opencode/mcp-ts/rules/preset-goals.md +31 -0
  946. package/presets/opencode/mcp-ts/rules/preset-layering.md +1 -1
  947. package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +4 -0
  948. package/presets/opencode/mcp-ts/rules/preset-twin-sync.md +19 -77
  949. package/presets/opencode/mcp-ts/rules/preset-writing-style.md +42 -0
  950. package/presets/opencode/mcp-ts/team/README.md +11 -0
  951. package/presets/opencode/next/REPO_AGENTS.md +3 -0
  952. package/presets/opencode/next/adapter-map.json +38 -3
  953. package/presets/opencode/next/agents/README.md +6 -0
  954. package/presets/opencode/next/agents/build-verifier.md +12 -0
  955. package/presets/opencode/next/agents/code-reviewer.md +23 -0
  956. package/presets/opencode/next/agents/debugger.md +12 -0
  957. package/presets/opencode/next/agents/feature-developer.md +20 -2
  958. package/presets/opencode/next/agents/mockup-reviewer.md +25 -4
  959. package/presets/opencode/next/agents/task-analyst.md +43 -2
  960. package/presets/opencode/next/agents/task-router.md +8 -0
  961. package/presets/opencode/next/ai-local/conventions.md +8 -0
  962. package/presets/opencode/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  963. package/presets/opencode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
  964. package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
  965. package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
  966. package/presets/opencode/next/commands/task-continue.md +8 -0
  967. package/presets/opencode/next/commands/task.md +14 -1
  968. package/presets/opencode/next/rules/agent-team-intake.md +3 -0
  969. package/presets/opencode/next/rules/agent-team-orchestrator.md +22 -2
  970. package/presets/opencode/next/rules/ai-local-overlay.md +4 -0
  971. package/presets/opencode/next/rules/code-quality-and-refactoring.md +20 -1
  972. package/presets/opencode/next/rules/code-review-mr.md +10 -0
  973. package/presets/opencode/next/rules/design-tokens-binding.md +23 -1
  974. package/presets/opencode/next/rules/feature-delivery-workflow.md +19 -1
  975. package/presets/opencode/next/rules/language-policy.md +43 -0
  976. package/presets/opencode/next/rules/mockup-review.md +77 -1
  977. package/presets/opencode/next/rules/next-app-core.md +6 -0
  978. package/presets/opencode/next/rules/preset-goals.md +31 -0
  979. package/presets/opencode/next/rules/preset-layering.md +1 -1
  980. package/presets/opencode/next/rules/preset-pr-checklist.md +4 -0
  981. package/presets/opencode/next/rules/preset-twin-sync.md +19 -77
  982. package/presets/opencode/next/rules/preset-writing-style.md +42 -0
  983. package/presets/opencode/next/skills/README.md +1 -0
  984. package/presets/opencode/next/skills/code-review/SKILL.md +1 -1
  985. package/presets/opencode/next/skills/figma-fidelity/SKILL.md +96 -0
  986. package/presets/opencode/next/skills/mockup-review/SKILL.md +5 -1
  987. package/presets/opencode/next/team/README.md +12 -0
  988. package/presets/opencode/next/team/fixtures/artifact-manifest.example.json +1 -1
  989. package/presets/opencode/nuxt/REPO_AGENTS.md +3 -0
  990. package/presets/opencode/nuxt/adapter-map.json +30 -3
  991. package/presets/opencode/nuxt/agents/README.md +7 -0
  992. package/presets/opencode/nuxt/agents/build-verifier.md +12 -0
  993. package/presets/opencode/nuxt/agents/code-reviewer.md +12 -0
  994. package/presets/opencode/nuxt/agents/debugger.md +12 -0
  995. package/presets/opencode/nuxt/agents/feature-developer.md +12 -0
  996. package/presets/opencode/nuxt/agents/task-analyst.md +43 -2
  997. package/presets/opencode/nuxt/agents/task-router.md +8 -0
  998. package/presets/opencode/nuxt/ai-local/conventions.md +8 -0
  999. package/presets/opencode/nuxt/commands/task-continue.md +8 -0
  1000. package/presets/opencode/nuxt/commands/task.md +14 -1
  1001. package/presets/opencode/nuxt/rules/agent-team-intake.md +3 -0
  1002. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +22 -2
  1003. package/presets/opencode/nuxt/rules/ai-local-overlay.md +4 -0
  1004. package/presets/opencode/nuxt/rules/code-quality-and-refactoring.md +20 -1
  1005. package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +15 -1
  1006. package/presets/opencode/nuxt/rules/language-policy.md +43 -0
  1007. package/presets/opencode/nuxt/rules/mockup-review.md +56 -1
  1008. package/presets/opencode/nuxt/rules/nuxt-app-core.md +6 -0
  1009. package/presets/opencode/nuxt/rules/preset-goals.md +31 -0
  1010. package/presets/opencode/nuxt/rules/preset-layering.md +1 -1
  1011. package/presets/opencode/nuxt/rules/preset-pr-checklist.md +4 -0
  1012. package/presets/opencode/nuxt/rules/preset-twin-sync.md +19 -77
  1013. package/presets/opencode/nuxt/rules/preset-writing-style.md +42 -0
  1014. package/presets/opencode/nuxt/team/README.md +11 -0
  1015. package/presets/opencode/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  1016. package/presets/opencode/php-hexagonal/REPO_AGENTS.md +3 -0
  1017. package/presets/opencode/php-hexagonal/adapter-map.json +30 -3
  1018. package/presets/opencode/php-hexagonal/agents/README.md +5 -0
  1019. package/presets/opencode/php-hexagonal/agents/build-verifier.md +12 -0
  1020. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +12 -0
  1021. package/presets/opencode/php-hexagonal/agents/debugger.md +12 -0
  1022. package/presets/opencode/php-hexagonal/agents/feature-developer.md +12 -0
  1023. package/presets/opencode/php-hexagonal/agents/task-analyst.md +31 -1
  1024. package/presets/opencode/php-hexagonal/agents/task-router.md +8 -0
  1025. package/presets/opencode/php-hexagonal/ai-local/conventions.md +8 -0
  1026. package/presets/opencode/php-hexagonal/commands/task-continue.md +8 -0
  1027. package/presets/opencode/php-hexagonal/commands/task.md +14 -1
  1028. package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +3 -0
  1029. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +22 -2
  1030. package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +4 -0
  1031. package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +20 -1
  1032. package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +11 -1
  1033. package/presets/opencode/php-hexagonal/rules/language-policy.md +43 -0
  1034. package/presets/opencode/php-hexagonal/rules/php-app-core.md +6 -0
  1035. package/presets/opencode/php-hexagonal/rules/preset-goals.md +31 -0
  1036. package/presets/opencode/php-hexagonal/rules/preset-layering.md +1 -1
  1037. package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +4 -0
  1038. package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +19 -77
  1039. package/presets/opencode/php-hexagonal/rules/preset-writing-style.md +42 -0
  1040. package/presets/opencode/php-hexagonal/team/README.md +11 -0
  1041. package/presets/opencode/php-laravel/REPO_AGENTS.md +3 -0
  1042. package/presets/opencode/php-laravel/adapter-map.json +30 -3
  1043. package/presets/opencode/php-laravel/agents/README.md +5 -0
  1044. package/presets/opencode/php-laravel/agents/build-verifier.md +12 -0
  1045. package/presets/opencode/php-laravel/agents/code-reviewer.md +12 -0
  1046. package/presets/opencode/php-laravel/agents/debugger.md +12 -0
  1047. package/presets/opencode/php-laravel/agents/feature-developer.md +12 -0
  1048. package/presets/opencode/php-laravel/agents/task-analyst.md +31 -1
  1049. package/presets/opencode/php-laravel/agents/task-router.md +8 -0
  1050. package/presets/opencode/php-laravel/ai-local/conventions.md +8 -0
  1051. package/presets/opencode/php-laravel/commands/task-continue.md +8 -0
  1052. package/presets/opencode/php-laravel/commands/task.md +14 -1
  1053. package/presets/opencode/php-laravel/rules/agent-team-intake.md +3 -0
  1054. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +22 -2
  1055. package/presets/opencode/php-laravel/rules/ai-local-overlay.md +4 -0
  1056. package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +20 -1
  1057. package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +11 -1
  1058. package/presets/opencode/php-laravel/rules/language-policy.md +43 -0
  1059. package/presets/opencode/php-laravel/rules/laravel-app-core.md +6 -0
  1060. package/presets/opencode/php-laravel/rules/preset-goals.md +31 -0
  1061. package/presets/opencode/php-laravel/rules/preset-layering.md +1 -1
  1062. package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +4 -0
  1063. package/presets/opencode/php-laravel/rules/preset-twin-sync.md +19 -77
  1064. package/presets/opencode/php-laravel/rules/preset-writing-style.md +42 -0
  1065. package/presets/opencode/php-laravel/team/README.md +11 -0
  1066. package/presets/opencode/svelte/REPO_AGENTS.md +3 -0
  1067. package/presets/opencode/svelte/adapter-map.json +30 -3
  1068. package/presets/opencode/svelte/agents/README.md +7 -0
  1069. package/presets/opencode/svelte/agents/build-verifier.md +12 -0
  1070. package/presets/opencode/svelte/agents/code-reviewer.md +12 -0
  1071. package/presets/opencode/svelte/agents/debugger.md +12 -0
  1072. package/presets/opencode/svelte/agents/feature-developer.md +12 -0
  1073. package/presets/opencode/svelte/agents/task-analyst.md +43 -2
  1074. package/presets/opencode/svelte/agents/task-router.md +8 -0
  1075. package/presets/opencode/svelte/ai-local/conventions.md +8 -0
  1076. package/presets/opencode/svelte/commands/task-continue.md +8 -0
  1077. package/presets/opencode/svelte/commands/task.md +14 -1
  1078. package/presets/opencode/svelte/rules/agent-team-intake.md +3 -0
  1079. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +22 -2
  1080. package/presets/opencode/svelte/rules/ai-local-overlay.md +4 -0
  1081. package/presets/opencode/svelte/rules/code-quality-and-refactoring.md +20 -1
  1082. package/presets/opencode/svelte/rules/feature-delivery-workflow.md +15 -1
  1083. package/presets/opencode/svelte/rules/language-policy.md +43 -0
  1084. package/presets/opencode/svelte/rules/mockup-review.md +56 -1
  1085. package/presets/opencode/svelte/rules/preset-goals.md +31 -0
  1086. package/presets/opencode/svelte/rules/preset-layering.md +1 -1
  1087. package/presets/opencode/svelte/rules/preset-pr-checklist.md +4 -0
  1088. package/presets/opencode/svelte/rules/preset-twin-sync.md +19 -77
  1089. package/presets/opencode/svelte/rules/preset-writing-style.md +42 -0
  1090. package/presets/opencode/svelte/rules/svelte-app-core.md +6 -0
  1091. package/presets/opencode/svelte/team/README.md +11 -0
  1092. package/presets/opencode/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  1093. package/scripts/_lib/embed-stems.json +8 -1
  1094. package/scripts/check-figma-contract-presence.sh +119 -0
  1095. package/scripts/check-plan-contract.sh +133 -0
  1096. package/scripts/check-preset-goal-contract.sh +214 -0
  1097. package/scripts/check-preset-language-policy.sh +292 -0
  1098. package/scripts/check-preset-prompt-persistence.sh +191 -0
  1099. package/scripts/check-preset-self-review-contract.sh +179 -0
  1100. package/scripts/check-preset-structure.sh +51 -0
  1101. package/scripts/check-preset-token-budget.sh +3 -0
  1102. package/scripts/fixtures/cli-golden/claude/next.json +34 -30
  1103. package/scripts/fixtures/cli-golden/cursor/next.json +38 -34
  1104. package/scripts/fixtures/cli-golden/mavis/android-kotlin.json +25 -22
  1105. package/scripts/fixtures/cli-golden/mavis/go.json +24 -21
  1106. package/scripts/fixtures/cli-golden/mavis/ios-swift.json +25 -22
  1107. package/scripts/fixtures/cli-golden/mavis/java.json +24 -21
  1108. package/scripts/fixtures/cli-golden/mavis/mcp-ts.json +22 -19
  1109. package/scripts/fixtures/cli-golden/mavis/next.json +37 -33
  1110. package/scripts/fixtures/cli-golden/mavis/nuxt.json +26 -23
  1111. package/scripts/fixtures/cli-golden/mavis/php-hexagonal.json +24 -21
  1112. package/scripts/fixtures/cli-golden/mavis/php-laravel.json +24 -21
  1113. package/scripts/fixtures/cli-golden/mavis/svelte.json +26 -23
  1114. package/scripts/fixtures/cli-golden/opencode/android-kotlin.json +25 -22
  1115. package/scripts/fixtures/cli-golden/opencode/go.json +24 -21
  1116. package/scripts/fixtures/cli-golden/opencode/ios-swift.json +25 -22
  1117. package/scripts/fixtures/cli-golden/opencode/java.json +24 -21
  1118. package/scripts/fixtures/cli-golden/opencode/mcp-ts.json +22 -19
  1119. package/scripts/fixtures/cli-golden/opencode/next.json +37 -33
  1120. package/scripts/fixtures/cli-golden/opencode/nuxt.json +26 -23
  1121. package/scripts/fixtures/cli-golden/opencode/php-hexagonal.json +24 -21
  1122. package/scripts/fixtures/cli-golden/opencode/php-laravel.json +24 -21
  1123. package/scripts/fixtures/cli-golden/opencode/svelte.json +26 -23
  1124. package/scripts/test-plan-contract-fixtures.mjs +132 -0
  1125. package/scripts/test-preset-goal-contract-fixtures.mjs +162 -0
  1126. package/scripts/test-preset-language-policy-fixtures.mjs +194 -0
  1127. package/scripts/test-preset-prompt-persistence-fixtures.mjs +175 -0
  1128. package/scripts/test-preset-self-review-contract-fixtures.mjs +163 -0
@@ -2,98 +2,40 @@
2
2
 
3
3
  # Preset twin sync
4
4
 
5
- Cursor `.mdc` — **SoT per stack**. Claude topic `.md` — derived twin.
5
+ Cursor `.mdc` is the **SoT per stack**; every other platform tree is derived in the **same PR**.
6
6
 
7
- ## Matrix
7
+ ## Derivations
8
8
 
9
- | Stack | Cursor SoT | Claude derive | Mapping table |
10
- |-------|------------|---------------|---------------|
11
- | `next` | `presets/cursor/next/rules/*.mdc` | `presets/claude/next/rules/<topic>/` | **Required** in `claude/next/rules/README.md` |
12
- | `nuxt` | `presets/cursor/nuxt/rules/*.mdc` | `presets/claude/nuxt/rules/<topic>/` | **Required** in `claude/nuxt/rules/README.md` |
13
- | `svelte` | `presets/cursor/svelte/rules/*.mdc` | `presets/claude/svelte/rules/<topic>/` | **Required** in `claude/svelte/rules/README.md` |
14
- | `ios-swift` | `presets/cursor/ios-swift/rules/*.mdc` | `presets/claude/ios-swift/rules/<topic>/` | Keep in `claude/ios-swift/rules/README.md` |
15
- | `go` | `presets/cursor/go/rules/*.mdc` | `presets/claude/go/rules/<topic>/` | Keep in `claude/go/rules/README.md` |
16
- | `java` | `presets/cursor/java/rules/*.mdc` | `presets/claude/java/rules/<topic>/` | Keep in `claude/java/rules/README.md` |
17
- | `mcp-ts` | `presets/cursor/mcp-ts/rules/*.mdc` | `presets/claude/mcp-ts/rules/<topic>/` | Keep in `claude/mcp-ts/rules/README.md` |
18
- | `php-hexagonal` | `presets/cursor/php-hexagonal/rules/*.mdc` | `presets/claude/php-hexagonal/rules/<topic>/` | Keep in `claude/php-hexagonal/rules/README.md` |
19
- | `php-laravel` | `presets/cursor/php-laravel/rules/*.mdc` | `presets/claude/php-laravel/rules/<topic>/` | Keep in `claude/php-laravel/rules/README.md` |
20
- | `android-kotlin` | `presets/cursor/android-kotlin/rules/*.mdc` | `presets/claude/android-kotlin/rules/<topic>/` | Keep in `claude/android-kotlin/rules/README.md` |
9
+ | Target | From | Command / rule |
10
+ |--------|------|----------------|
11
+ | **Claude twin** | `cursor/<stack>/rules/*.mdc` | hand-derived: body + `paths:` (from `globs:`), drop `alwaysApply`; row **required** in `claude/<stack>/rules/README.md` |
12
+ | **Mavis** | `cursor/<stack>/**` | `generate-mavis.mjs --stack <stack>`; manifest `adapter-map.json` required |
13
+ | **OpenCode** | `cursor/<stack>/**` | `generate-opencode.mjs --stack <stack>`; manifest `adapter-map.json` required |
21
14
 
22
- ## Mavis derivation (not a Claude twin)
23
-
24
- | Stack | Cursor SoT | Mavis derive | Manifest |
25
- |-------|------------|--------------|----------|
26
- | `next` | `presets/cursor/next/**` | `presets/mavis/next/**` via `generate-mavis.mjs --stack next` | **Required** `adapter-map.json` |
27
- | `nuxt` | `presets/cursor/nuxt/**` | `presets/mavis/nuxt/**` via `generate-mavis.mjs --stack nuxt` | **Required** `adapter-map.json` |
28
- | `svelte` | `presets/cursor/svelte/**` | `presets/mavis/svelte/**` via `generate-mavis.mjs --stack svelte` | **Required** `adapter-map.json` |
29
- | `ios-swift` | `presets/cursor/ios-swift/**` | `presets/mavis/ios-swift/**` via `generate-mavis.mjs --stack ios-swift` | **Required** `adapter-map.json` |
30
- | `android-kotlin` | `presets/cursor/android-kotlin/**` | `presets/mavis/android-kotlin/**` via `generate-mavis.mjs --stack android-kotlin` | **Required** `adapter-map.json` |
31
- | `go` | `presets/cursor/go/**` | `presets/mavis/go/**` via `generate-mavis.mjs --stack go` | **Required** `adapter-map.json` |
32
- | `java` | `presets/cursor/java/**` | `presets/mavis/java/**` via `generate-mavis.mjs --stack java` | **Required** `adapter-map.json` |
33
- | `mcp-ts` | `presets/cursor/mcp-ts/**` | `presets/mavis/mcp-ts/**` via `generate-mavis.mjs --stack mcp-ts` | **Required** `adapter-map.json` |
34
- | `php-hexagonal` | `presets/cursor/php-hexagonal/**` | `presets/mavis/php-hexagonal/**` via `generate-mavis.mjs --stack php-hexagonal` | **Required** `adapter-map.json` |
35
- | `php-laravel` | `presets/cursor/php-laravel/**` | `presets/mavis/php-laravel/**` via `generate-mavis.mjs --stack php-laravel` | **Required** `adapter-map.json` |
36
-
37
- Mavis is a **third platform adapter**, not a Claude-style topic twin:
38
-
39
- ```text
40
- _shared/core → cursor/<stack> → mavis/<stack>
41
- ```
42
-
43
- Regenerate with `node packages/ai-rules/scripts/generate-mavis.mjs --stack <stack>`; validate with `node packages/ai-rules/scripts/check-mavis-adapter-map.mjs`.
44
-
45
- ## OpenCode derivation (not a Claude twin)
46
-
47
- | Stack | Cursor SoT | OpenCode derive | Manifest |
48
- |-------|------------|-----------------|----------|
49
- | `next` | `presets/cursor/next/**` | `presets/opencode/next/**` via `generate-opencode.mjs --stack next` | **Required** `adapter-map.json` |
50
- | `nuxt` | `presets/cursor/nuxt/**` | `presets/opencode/nuxt/**` via `generate-opencode.mjs --stack nuxt` | **Required** `adapter-map.json` |
51
- | `svelte` | `presets/cursor/svelte/**` | `presets/opencode/svelte/**` via `generate-opencode.mjs --stack svelte` | **Required** `adapter-map.json` |
52
- | `ios-swift` | `presets/cursor/ios-swift/**` | `presets/opencode/ios-swift/**` via `generate-opencode.mjs --stack ios-swift` | **Required** `adapter-map.json` |
53
- | `android-kotlin` | `presets/cursor/android-kotlin/**` | `presets/opencode/android-kotlin/**` via `generate-opencode.mjs --stack android-kotlin` | **Required** `adapter-map.json` |
54
- | `go` | `presets/cursor/go/**` | `presets/opencode/go/**` via `generate-opencode.mjs --stack go` | **Required** `adapter-map.json` |
55
- | `java` | `presets/cursor/java/**` | `presets/opencode/java/**` via `generate-opencode.mjs --stack java` | **Required** `adapter-map.json` |
56
- | `mcp-ts` | `presets/cursor/mcp-ts/**` | `presets/opencode/mcp-ts/**` via `generate-opencode.mjs --stack mcp-ts` | **Required** `adapter-map.json` |
57
- | `php-hexagonal` | `presets/cursor/php-hexagonal/**` | `presets/opencode/php-hexagonal/**` via `generate-opencode.mjs --stack php-hexagonal` | **Required** `adapter-map.json` |
58
- | `php-laravel` | `presets/cursor/php-laravel/**` | `presets/opencode/php-laravel/**` via `generate-opencode.mjs --stack php-laravel` | **Required** `adapter-map.json` |
59
-
60
- OpenCode is a **fourth platform adapter** with a **native** install root (`.opencode/`), not a Claude-style topic twin and not an owned overlay like `.mavis/`:
15
+ All 10 stacks: `next`, `nuxt`, `svelte`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`. Mavis and OpenCode are **platform adapters**, not Claude-style topic twins; never derive OpenCode from Claude.
61
16
 
62
17
  ```text
63
- _shared/core → cursor/<stack> → opencode/<stack>
18
+ _shared/core → cursor/<stack> → { claude/<stack>, mavis/<stack>, opencode/<stack> }
64
19
  ```
65
20
 
66
- Regenerate with `node packages/ai-rules/scripts/generate-opencode.mjs --stack <stack>`; validate with `node packages/ai-rules/scripts/check-opencode-adapter-map.mjs`. Do not derive OpenCode sources from Claude.
21
+ Validate: `check-mavis-adapter-map.mjs`, `check-opencode-adapter-map.mjs`, `check-shared-core-drift.sh`.
67
22
 
68
23
  ## Same-PR checklist
69
24
 
70
- 1. Edit Cursor rule first (body + frontmatter).
71
- 2. Update Claude twin: body + `paths:` (from Cursor `globs:` / requestable triggers); drop `alwaysApply`.
72
- 3. Update mapping table row if stem/path changed.
73
- 4. If body embeds core (`<!-- shared-core: … -->`), sync core consumers across stacks when core changed.
74
- 5. When mapped `cursor/<stack>/` sources change, regenerate `mavis/<stack>/` and refresh `adapter-map.json` `sourceRevision` in the **same PR** (run `generate-mavis.mjs --stack <stack>` + `check-mavis-adapter-map.mjs`).
75
- 6. When mapped `cursor/<stack>/` sources change, regenerate `opencode/<stack>/` and refresh `adapter-map.json` `sourceRevision` in the **same PR** (run `generate-opencode.mjs --stack <stack>` + `check-opencode-adapter-map.mjs`).
25
+ 1. Edit the Cursor rule first (body + frontmatter).
26
+ 2. Update the Claude twin (body + `paths:`); update the README mapping row if the stem/path changed.
27
+ 3. Core changed → sync every `<!-- shared-core: … -->` consumer (`sync-shared-core-embeds.sh`).
28
+ 4. Cursor source changed → regenerate `mavis/<stack>/` and `opencode/<stack>/` and refresh each `adapter-map.json` `sourceRevision`.
76
29
 
77
30
  ## Twin depth
78
31
 
79
- - **Domain** rules: ≥15 body lines (FAIL if thin without documented alias reason).
32
+ - **Domain** rules: ≥15 body lines (FAIL if thin without a documented alias reason).
80
33
  - **Thin aliases** (`agent-team-intake`, `technical-retro`): may be shorter (soft) if they only point to a command/skill.
81
- - **Slim-companion rules** (UI-edit bundle, slim app-cores, slim tooling): may be shorter than 15 lines **if and only if** the body is a pointer into shared-core / stack-prose (no standalone prose). Examples live in stack `rules/README.md` (e.g. `cursor/next/rules/README.md` "UI-edit bundle" intent).
82
- - Mechanical enforcement lives in `packages/ai-rules/scripts/check-preset-token-budget.sh` — see `SLIM_COMPANION_ALLOWLIST` (the 53 stems accepted as slim pointers) and `MIN_SLIM_BODY_LINES` (5-line floor). Slim-companion rules with a body of 6–14 lines whose stem is **not** in the allowlist are reported as slim violations by the script.
34
+ - **Slim-companion rules** (UI-edit bundle, slim app-cores, slim tooling): may be shorter only if the body is a pointer into shared-core / stack prose. `check-preset-token-budget.sh` enforces this via `SLIM_COMPANION_ALLOWLIST` and the 5-line floor; 6–14-line stems outside the allow-list are slim violations.
83
35
 
84
36
  ## Severity (build-verifier)
85
37
 
86
- - **next:** missing Claude twin for a changed Cursor rule → **FAIL** (mapping table required).
87
- - **nuxt:** missing Claude twin for a changed Cursor rule → **FAIL** (mapping table required).
88
- - **svelte:** missing Claude twin for a changed Cursor rule → **FAIL** (mapping table required).
89
- - **ios-swift:** missing Claude twin for a changed Cursor rule → **FAIL**.
90
- - **go:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift; mapping table required).
91
- - **java:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go; mapping table required).
92
- - **mcp-ts:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go / java; mapping table required).
93
- - **php-hexagonal:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go / java / mcp-ts; mapping table required).
94
- - **php-laravel:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go / java / mcp-ts / php-hexagonal; mapping table required).
95
- - **android-kotlin:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go / java / mcp-ts / php-*; mapping table required).
96
- - **mavis/<stack>:** `cursor/<stack>` mapped source changed without mavis regeneration / `adapter-map.json` `sourceRevision` drift → **FAIL** (`check-mavis-adapter-map.mjs`).
97
- - **opencode/<stack>:** `cursor/<stack>` mapped source changed without opencode regeneration / `adapter-map.json` `sourceRevision` drift → **FAIL** (`check-opencode-adapter-map.mjs`).
38
+ - Missing Claude twin for a changed Cursor rule → **FAIL** (all 10 stacks; mapping table required).
39
+ - `cursor/<stack>` mapped source changed without mavis / opencode regeneration, or with `adapter-map.json` `sourceRevision` drift → **FAIL**.
98
40
 
99
- Dogfood: sync packages → root `.cursor/` after Cursor SoT changes (not the reverse). Use `packages/ai-rules/scripts/sync-dogfood-cursor.sh`.
41
+ Dogfood: sync packages → root `.cursor/` after Cursor SoT changes (never the reverse): `sync-dogfood-cursor.sh`.
@@ -0,0 +1,42 @@
1
+ <!-- shared-core: meta/preset-writing-style.md -->
2
+
3
+ # Preset writing style
4
+
5
+ Rules for **preset authors** (`packages/ai-rules/presets/**`). Requestable; not always-on in consumer apps.
6
+
7
+ Write for two readers at once: an **agent** loading one file out of context, and a **human** scanning for the rule. State the rule, not the motivation.
8
+
9
+ ## Do
10
+
11
+ - One rule per line: imperative and testable (`Do X` / `Never Y`), not "it is important that X".
12
+ - Lead with the rule; state *what* before *why*.
13
+ - Keep the *why* only when it changes behavior — a hidden constraint or the failure it prevents. Drop it when the rule already implies it.
14
+ - Be concrete: name the file, command, symbol, or counter-example.
15
+ - Prefer a table or short list to a paragraph; one idea per bullet.
16
+ - Reuse the shared vocabulary (rule stems, `always-on`, `requestable`, `must` / `should` / `may`) — see the `PRESET-ENGLISH-STYLE` glossary.
17
+ - Delete any sentence that carries no instruction.
18
+
19
+ ## Don't (demagogy)
20
+
21
+ - No filler, hedging, or motivational prose.
22
+ - No restating the heading, the rule, or a sibling rule.
23
+ - No emphasis inflation — bold / `must` / `never` only for a hard gate, not the whole page.
24
+ - No selling, urgency, or self-congratulation; no "best practice" without the failure it prevents.
25
+ - No scenario storytelling, rhetorical questions, or meta-narration ("this section explains…").
26
+ - No duplicated rule text across stems — link instead.
27
+
28
+ ## Size
29
+
30
+ - Shortest form that still changes behavior: if a bullet fits as a clause, make it a clause.
31
+ - 12+ undifferentiated bullets → split or rank; do not append.
32
+
33
+ ## Applies to
34
+
35
+ All preset prose: `_shared/core/**`, stack rules, agents, skills, commands, hook comments, and preset-facing docs (`packages/ai-rules/docs/**`, READMEs).
36
+
37
+ ## See also
38
+
39
+ - `preset-goals` — why presets exist.
40
+ - `preset-token-budget` — the caps this style keeps in range.
41
+ - `code-quality-and-refactoring` § Comments & prose — the consumer-side clause.
42
+ - `packages/ai-rules/docs/PRESET-ENGLISH-STYLE.md` — language, glossary, modality.
@@ -16,6 +16,7 @@ Shared `/task` runtime for Cursor, Claude, Mavis, and OpenCode. Seeded at **`.ai
16
16
  status.json # hook-owned lifecycle
17
17
  metrics.json # hook-owned append-only ledger
18
18
  artifact-manifest.json # producer receipts
19
+ prompt.md # verbatim original ask + resolved `language: <BCP-47>` header (write-if-absent; write point = /task Slug bootstrap; path on the routing entry)
19
20
  brief.md, decomposition.md, implementation.md, review.md, …
20
21
  .memlog.md # optional agent notes (hook does not parse)
21
22
  ```
@@ -70,6 +71,16 @@ printf '%s\n' '{"status":"completed","action":"end_human_gate","activateNext":tr
70
71
 
71
72
  Same JSON on Claude, Mavis, or OpenCode: `bash .<tool>/hooks/chain-team-phases.sh`.
72
73
 
74
+ ## Plan graph & checkpoint (optional)
75
+
76
+ `decomposition.md` is a dependency graph: every task carries `dependsOn[]`; the artifact holds a DAG (critical path + parallelizable groups) and, for large flows, epics/stages with exit criteria (`## Epics / stages`); `## Plan revision` tracks replans (`rev: N`).
77
+
78
+ `pipeline.json` MAY carry these additive, **hook-ignored** fields (schema v1 ignores unknown fields; the hook never parses them): `epics[]` (staging + exit criteria), `planRevision` (current plan rev), `contextBudget` (budget / checkpoint note).
79
+
80
+ **Checkpoint / resume:** progress is checkpointed to `tasks/<slug>/.memlog.md` (`## <date>` + `event:` entries) and the `artifact-manifest.json` `implementation` entry (`authoritativePaths`). A resumed run reads both and continues at the first stage whose exit criteria are unmet.
81
+
82
+ **Self-review / re-anchor:** each producing agent records a `## Self-review` block in the artifact it owns (`brief.md` / `implementation.md` / `debug-report.md` / `validation-report.md` / `review.md`) and, on detected context loss / excess, a re-anchor line in `.memlog.md` — `event:` (no plan change) or `decision: replan rev N → N+1` (plan change). No hook/lifecycle field is added.
83
+
73
84
  ## Contracts
74
85
 
75
86
  - Manifest schema: shared core `agent-team/agent-artifact-contracts.md`. Read it first; producers upsert only their IDs.
@@ -7,6 +7,9 @@ Cross-tool repo-root guide. Tool-specific maps stay under `.cursor/AGENTS.md`, `
7
7
  - Treat this file as the **shared** entry for any agent (Cursor, Claude Code, Mavis, OpenCode, or other).
8
8
  - All four platforms ship **the same** root file. `init` overwrites it; content does not depend on which tool ran last.
9
9
  - Tool maps (agent-team tables, slash commands) live in `.cursor/AGENTS.md` / `.claude/CLAUDE.md` / `.mavis/AGENTS.md` / `.opencode/AGENTS.md` — use them when that tool is installed.
10
+ - **Language.** Keep development, reasoning, and artifacts in **English**; answer the user in their
11
+ **native language** (`.ai.local/conventions.md` `## Language`, else the prompt language, else English) for
12
+ every question, gate prompt, status, and summary — see the `language-policy` rule.
10
13
  - Install:
11
14
 
12
15
  ```bash
@@ -3,7 +3,7 @@
3
3
  "platform": "mavis",
4
4
  "stack": "java",
5
5
  "semanticSource": "cursor/java",
6
- "sourceRevision": "f817ff79b2cc0a6c212b33bf8d1e926be75de0cc957c5edc06ca13c61971d3bd",
6
+ "sourceRevision": "d006d03d197bc8074e1c13726b31b240ac2db65084b7f8af6543a434518037f6",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -69,7 +69,7 @@
69
69
  "disposition": "transform",
70
70
  "loadMode": "manual",
71
71
  "reason": "Native workspace agent discovery is unknown; attach with mcode exec --file",
72
- "sharedCoreStem": "receipt-binding"
72
+ "sharedCoreStem": "quality/self-review-and-context-hygiene.md"
73
73
  },
74
74
  {
75
75
  "source": "agents/codebase-analyzer.md",
@@ -86,7 +86,7 @@
86
86
  "disposition": "transform",
87
87
  "loadMode": "manual",
88
88
  "reason": "Native workspace agent discovery is unknown; attach with mcode exec --file",
89
- "sharedCoreStem": "receipt-binding"
89
+ "sharedCoreStem": "quality/self-review-and-context-hygiene.md"
90
90
  },
91
91
  {
92
92
  "source": "agents/feature-developer.md",
@@ -475,6 +475,15 @@
475
475
  "loadMode": "referenced",
476
476
  "reason": "Requestable Cursor rule: referenced from entry files; not claimed as MiniMax auto-load"
477
477
  },
478
+ {
479
+ "source": "rules/language-policy.mdc",
480
+ "target": "rules/language-policy.md",
481
+ "category": "rules",
482
+ "disposition": "transform",
483
+ "loadMode": "referenced",
484
+ "reason": "Requestable Cursor rule: referenced from entry files; not claimed as MiniMax auto-load",
485
+ "sharedCoreStem": "agent-team/language-policy.md"
486
+ },
478
487
  {
479
488
  "source": "rules/mcp-usage.mdc",
480
489
  "target": "rules/mcp-usage.md",
@@ -524,6 +533,15 @@
524
533
  "loadMode": "referenced",
525
534
  "reason": "Requestable Cursor rule: referenced from entry files; not claimed as MiniMax auto-load"
526
535
  },
536
+ {
537
+ "source": "rules/preset-goals.mdc",
538
+ "target": "rules/preset-goals.md",
539
+ "category": "rules",
540
+ "disposition": "transform",
541
+ "loadMode": "referenced",
542
+ "reason": "Requestable Cursor rule: referenced from entry files; not claimed as MiniMax auto-load",
543
+ "sharedCoreStem": "meta/preset-goals.md"
544
+ },
527
545
  {
528
546
  "source": "rules/preset-layering.mdc",
529
547
  "target": "rules/preset-layering.md",
@@ -569,6 +587,15 @@
569
587
  "reason": "Requestable Cursor rule: referenced from entry files; not claimed as MiniMax auto-load",
570
588
  "sharedCoreStem": "meta/preset-twin-sync.md"
571
589
  },
590
+ {
591
+ "source": "rules/preset-writing-style.mdc",
592
+ "target": "rules/preset-writing-style.md",
593
+ "category": "rules",
594
+ "disposition": "transform",
595
+ "loadMode": "referenced",
596
+ "reason": "Requestable Cursor rule: referenced from entry files; not claimed as MiniMax auto-load",
597
+ "sharedCoreStem": "meta/preset-writing-style.md"
598
+ },
572
599
  {
573
600
  "source": "rules/product-specs-authoring.mdc",
574
601
  "target": "rules/product-specs-authoring.md",
@@ -46,3 +46,8 @@ Model routing is **prose-only** in this preset (no YAML `model` frontmatter). Op
46
46
  | **standard** | `feature-developer`, `debugger`, `ci-investigator`, `api-contract-reviewer`, `qa-tester`, `unit-test-*`, `integration-test-*`, `openspec-author` |
47
47
  | **strong** | `solution-architect`, `migration-specialist`, `security-reviewer`, `performance-auditor` |
48
48
 
49
+ ## Plan contract
50
+
51
+ The analyst frames every task before decomposition: **goal frame** (goal, user value, success + result-evaluation criteria) → **requirements + AC-IDs** → **information-sufficiency** verdict → decomposition with `dependsOn[]` / DAG / epics-with-exit-criteria. `decomposition.md` is the plan graph; `pipeline.json` may add the optional, hook-ignored `epics[]`, `planRevision`, and `contextBudget` fields. Progress is checkpointed to `.memlog.md` and is resumable from `artifact-manifest.json`.
52
+
53
+ **Self-review & context hygiene (producer-side):** before its terminal receipt (per wave for multi-wave work) each producing agent self-reviews its output against the framed goal + `AC-`IDs — coverage, evidence, alignment/drift — and, on drift, **re-anchors** to the goal frame + `decomposition.md` and records the correction in `.memlog.md`. Ratchets down for `bounded`/`spike`.
@@ -33,6 +33,18 @@ You are the build verifier for **Java hexagonal** services (and for **ai-rules p
33
33
 
34
34
  Before writing `validation-report.md` or claiming PASS: IDENTIFY the commands, RUN them, READ exit codes, VERIFY they match the verdict, THEN claim. Do not mark PASS from memory of a prior developer run.
35
35
 
36
+ ## Self-review & context hygiene
37
+
38
+ <!-- shared-core: quality/self-review-and-context-hygiene.md -->
39
+
40
+ Before you run the project gate and write the terminal validation receipt, self-audit the scope you are validating: every `AC-`ID covered, fresh same-turn evidence, and alignment with the framed task. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
41
+
42
+ **Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
43
+
44
+ **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
45
+
46
+ Record a `## Self-review` block in `validation-report.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
47
+
36
48
  ## Preset-structure validation (when editing `packages/ai-rules/presets/**`)
37
49
 
38
50
  From `packages/ai-rules/`:
@@ -44,6 +44,18 @@ You **issue** reviews. Implementers acting on your findings must verify each ite
44
44
  - `validation-report.md` FAIL → **REQUEST_CHANGES**.
45
45
  - Never require Playwright, XCUITest, `lint:js`, or `xcodebuild`.
46
46
 
47
+ ## Self-review & context hygiene
48
+
49
+ <!-- shared-core: quality/self-review-and-context-hygiene.md -->
50
+
51
+ Before you emit the terminal review receipt, self-audit the review artifact: every `AC-`ID covered, findings backed by fresh evidence, and no scope creep beyond the reviewed diff. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
52
+
53
+ **Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
54
+
55
+ **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
56
+
57
+ Record a `## Self-review` block in `review.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
58
+
47
59
  ## Artifact
48
60
 
49
61
  Write `.ai.local/team/tasks/<slug>/review.md` with verdict APPROVE | REQUEST_CHANGES, findings by severity, AC coverage. Update the owned terminal receipt accordingly.
@@ -50,6 +50,18 @@ Write `.ai.local/team/tasks/<slug>/debug-report.md`.
50
50
 
51
51
  After **three** unsuccessful fix attempts (or the same symptom returning twice): STOP. Do not attempt fix #4. Escalate architecture with the human or `solution-architect`. Follow skill `debug-investigation`. Before `fixApplied: true`, re-run the failing check.
52
52
 
53
+ ## Self-review & context hygiene
54
+
55
+ <!-- shared-core: quality/self-review-and-context-hygiene.md -->
56
+
57
+ Before you set `fixApplied: true` and emit the terminal receipt, self-audit the fix: every `AC-`ID addressed, the re-run evidence present, and no scope creep beyond the framed fault. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
58
+
59
+ **Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
60
+
61
+ **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
62
+
63
+ Record a `## Self-review` block in `debug-report.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
64
+
53
65
  ## MCP usage
54
66
 
55
67
  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.
@@ -77,6 +77,18 @@ Update `.ai.local/team/tasks/<slug>/implementation.md` and the owned implementat
77
77
 
78
78
  Before handoff, IDENTIFY→RUN→READ→VERIFY the scoped checks for this WP, THEN claim. Do not say the work is done without that evidence in the same turn. Full-project lint is `build-verifier`.
79
79
 
80
+ ## Self-review & context hygiene
81
+
82
+ <!-- shared-core: quality/self-review-and-context-hygiene.md -->
83
+
84
+ Before you emit the terminal implementation receipt (per wave for multi-wave work), self-audit your own output: every `AC-`ID addressed or explicitly deferred, fresh same-turn evidence for each "done" claim, and no drift beyond the framed scope. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
85
+
86
+ **Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
87
+
88
+ **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
89
+
90
+ Record a `## Self-review` block in `implementation.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
91
+
80
92
  ## Product specs (docs/specs)
81
93
 
82
94
  When work touches a page/feature/route/alias: if `docs/specs/INDEX.md` exists (or brief lists approved specs), load **`product-specs`** and treat **approved** specs from brief/handoff as **behavior SoT**. Soft-fail on miss (`open_questions` + code / `.ai/context` fallback); **never invent** product behavior.
@@ -25,10 +25,40 @@ Before decomposing, name the class: **spike** / **bounded** / **architectural**.
25
25
  - **Bounded** — few tasks, only layers actually touched; do not pad types/api/store/ui.
26
26
  - **Architectural** — full layer table; architect when boundaries are unclear.
27
27
 
28
+ ## Task framing
29
+
30
+ <!-- shared-core: agent-team/task-framing.md -->
31
+
32
+ Before decomposing: state the **goal frame** (goal, user value, success criteria, result-evaluation criteria = named oracle), elicit **requirements** each traceable to a testable `AC-`ID, and give an explicit **information-sufficiency** verdict (`sufficient` | `insufficient`). `insufficient` → record assumptions / unknowns / blockers in `open_questions` and mark the analysis `applyReadiness: blocked`; do not decompose. Bounded/spike emit a thin frame only.
33
+
34
+ ## Plan graph
35
+
36
+ <!-- shared-core: agent-team/plan-graph.md -->
37
+
38
+ Decompose as a **dependency graph**: each task carries `dependsOn[]`, the edges form a **DAG** with a critical path and parallelizable groups. Large flows are staged into **Epics / stages** with **exit criteria** (ratchet: bounded tasks stay flat). Plan revision is a named, auditable operation (`decision: replan rev N → N+1` in `.memlog.md`, then re-gate).
39
+
40
+ ## Context budget & iterative refinement
41
+
42
+ <!-- shared-core: quality/context-and-iteration.md -->
43
+
44
+ Work in bounded waves; delegate mechanical waves to repo scripts. **Checkpoint** progress to `.memlog.md` and record produced paths on the `implementation` manifest entry `authoritativePaths`, so a run can resume from `artifact-manifest.json` + `.memlog.md` without re-deriving state. Refine with the named loop **draft → evaluate against named criteria → refine**.
45
+
46
+ ## Self-review & context hygiene
47
+
48
+ <!-- shared-core: quality/self-review-and-context-hygiene.md -->
49
+
50
+ Before you emit the terminal analysis receipt, self-audit the goal frame and decomposition you are about to hand off: every `AC-`ID addressed or explicitly deferred, evidence present, and alignment with the framed goal. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
51
+
52
+ **Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
53
+
54
+ **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
55
+
56
+ Record a `## Self-review` block in `brief.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
57
+
28
58
  ## Deliverables
29
59
 
30
60
  - `brief.md` — goals, non-goals, AC, open questions
31
- - `decomposition.md` — ordered WPs with layer tags (domain / application / adapters / composition / tests)
61
+ - `decomposition.md` — ordered WPs with layer tags (domain / application / adapters / composition / tests); each WP carries `dependsOn` + `## Dependency graph` (DAG, critical path, parallel groups) / `## Epics / stages` (exit criteria) / `## Plan revision`
32
62
 
33
63
  ## Layer vocabulary
34
64
 
@@ -62,6 +62,14 @@ Name the class in `routingReasons`. Maps to profiles already in this file — do
62
62
 
63
63
  SoT: `agent-team/task-classification` (shared-core marker above; do not invent a second pipeline).
64
64
 
65
+ ## Plan graph (optional `pipeline.json` fields)
66
+
67
+ <!-- shared-core: agent-team/plan-graph.md -->
68
+
69
+ The router MAY echo the analyst's plan as additive, **hook-ignored** top-level `pipeline.json` fields: `epics[]` (staging with exit criteria), `planRevision` (current plan rev), and `contextBudget` (budget / checkpoint note). Schema v1 ignores unknown fields and the hook never parses them — emit them only when the analyst produced a plan graph.
70
+
71
+ Routing signals: a large or cross-cutting flow → prefer `full` and name epic staging in `routingReasons`; likely context pressure (broad surface, many files) → note a checkpoint / `contextBudget` plan. Bounded and spike stay flat (no `epics`).
72
+
65
73
  ## Routing decision rubric
66
74
 
67
75
  Keep top-level `profile` and emit this top-level object in every new `pipeline.json`:
@@ -2,6 +2,14 @@
2
2
 
3
3
  Consumer-owned store for post-init gotchas, patterns, and decisions. **Not** always-on. Fill after `ai-rules init`. Root `AGENTS.md` only points here.
4
4
 
5
+ ## Language
6
+
7
+ Consumer setting for user-facing dialogue. Change `en` to your BCP-47 tag (e.g. `ru`, `de`, `es`).
8
+
9
+ - **User-facing dialogue:** `en` — every question, plan/gate prompt, status answer, summary, and escalation
10
+ is written in this language. Development, reasoning, and all artifacts stay English. Unset → infer from the
11
+ prompt language (mixed → dominant); English-only/ambiguous → English. The nearest `.ai.local` wins.
12
+
5
13
  ## Gotchas
6
14
 
7
15
  <!-- e.g. fragile flows, “never do X in this repo” -->
@@ -31,6 +31,14 @@ printf '%s\n' '{"status":"completed","action":"end_human_gate","activateNext":tr
31
31
  4. **Other resume**: restore `pipelineIndex` / `currentAgent` from status and invoke that agent.
32
32
  5. After the invoked agent completes, `chain-team-phases.sh` on `subagentStop` continues the chain when `autoChain: true`.
33
33
 
34
+ ## Checkpoint & resume
35
+
36
+ Resume from the on-disk checkpoint, not from chat: read `.ai.local/team/tasks/<slug>/artifact-manifest.json` (authoritative paths per producer) and `.memlog.md` (`## <date>` + `event:` entries), skip completed waves, and continue at the first stage whose exit criteria are unmet. Record produced paths on the `implementation` manifest entry as you go. Do **not** overwrite or duplicate `.ai.local/team/tasks/<slug>/prompt.md` — it records the original ask (write-if-absent).
37
+
38
+ 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**.
39
+
40
+ 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.
41
+
34
42
  ## Artifacts for handoff
35
43
 
36
44
  | Agent | Read |
@@ -19,7 +19,7 @@ Examples:
19
19
 
20
20
  ## Procedure
21
21
 
22
- 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`).
22
+ 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).
23
23
  2. **Router** — invoke subagent **task-router** with the task description and slug path.
24
24
  3. **Plan** — show the user the table from `pipeline.json`: intent, steps, skipped, humanGates.
25
25
  4. **Intent retro** — if `intent === "retro"`, run `/technical-retro` and **stop**.
@@ -30,6 +30,12 @@ Examples:
30
30
  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).
31
31
  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>`.
32
32
 
33
+ ## Plan contract
34
+
35
+ 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.
36
+
37
+ 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`.
38
+
33
39
  ## Do not
34
40
 
35
41
  - Invoke developer before router and (if in pipeline) analyst/architect.
@@ -42,6 +48,13 @@ Examples:
42
48
  - `in_progress` → ask: continue or new slug.
43
49
 
44
50
 
51
+ ## Dialogue language
52
+
53
+ Resolve the user-facing language once at task start (`.ai.local` `## Language` → prompt language → English;
54
+ mixed → dominant) and record it in the `prompt.md` header (`language: <BCP-47>`). Reuse it for every
55
+ user-facing message and `/task-continue`. See `language-policy`.
56
+
57
+
45
58
  ## Metrics
46
59
 
47
60
  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.
@@ -7,6 +7,9 @@ When the user message looks like a **work request** (implement, add, fix, refact
7
7
  1. Prefer **`/task <their request>`** or invoke **task-router** first.
8
8
  2. Do not jump straight to coding without router + pipeline when scope is non-trivial.
9
9
  3. Pure questions (“how does X work”, “explain”) — prefer agent **`codebase-analyzer`** (explain-as-is); trivial one-liners may be answered inline. Do not open `/task`.
10
+ 4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
11
+ 5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file.
12
+ 6. **Resolve the dialogue language before you speak to the user.** Read the `## Language` section of `.ai.local/conventions.md` (nearest `.ai.local` first); else infer from the prompt language; else English (mixed → dominant). Persist it once in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line, and reuse it for the whole task. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
10
13
 
11
14
  Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
12
15
 
@@ -113,6 +113,22 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
113
113
  - 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.
114
114
  - Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
115
115
 
116
+ ## Plan revision (replanning)
117
+
118
+ Replanning is a **named, auditable operation** — never a silent reorder. Trigger it when an evaluation oracle fails twice on the same task, when scope or requirements change, or when a previously unknown dependency/consumer is discovered. Procedure: append `decision: replan rev N → N+1` (with the reason) to `.memlog.md`, update `decomposition.md` (task add/remove or dependency change) and any optional plan fields, then **re-run the affected gate**. Scope-changing revisions return to the human gate.
119
+
120
+ ## Context budget & checkpoint/resume
121
+
122
+ Work in bounded waves (one artifact class across the target surface); mechanical waves (generation, embed sync) are delegated to repo scripts rather than spent on tokens. **Checkpoint** each completed wave to `.memlog.md` (`## <date>` + an `event:` line) and record the produced paths on the `implementation` manifest entry (`authoritativePaths`). A resumed run (e.g. `/task-continue`) reads `artifact-manifest.json` + `.memlog.md` and continues at the first stage whose exit criteria are unmet — never re-derive state from the chat. See **context-and-iteration** for the budget, checkpoint, resume, and refinement loop.
123
+
124
+ ## Self-review & context hygiene
125
+
126
+ Each producing agent runs a **pre-receipt self-review** of its own output — goal/AC coverage, evidence presence, and alignment/drift — **before** it emits its terminal receipt. It is a producer-side step, **not** a new pipeline agent or step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
127
+
128
+ - **Context loss vs excess/noise.** *Loss* = a dropped/misattributed AC or constraint, a stale plan vs the current request, a forgotten prior decision. *Excess/noise* = irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk.
129
+ - **Re-anchor.** On detected drift, return the run to the framed task: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Re-anchor is a **trigger source of the existing `plan-graph` `replan`** — no second orchestrator, no `status.json`/`metrics.json` field.
130
+ - **Recording & ratchet.** The producer writes a `## Self-review` block in the artifact it owns; the correction lives only in `.memlog.md` (hook-only lifecycle preserved). No self-review, context-health pass, or re-anchor for `bounded`/`spike` tasks (or the `light` profile) — ratchet up for `standard`/`architectural`, never down past a required verification gate. See the requestable `quality/self-review-and-context-hygiene` contract.
131
+
116
132
  ## status.json (pipeline mode)
117
133
 
118
134
  ```json
@@ -166,13 +182,17 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
166
182
  3. One role per Task call — **except** parallel steps: multiple Task calls in one message.
167
183
  4. **Never** skip `humanGates` without `/task-continue` or explicit user approval.
168
184
  5. Persist handoffs to disk (`brief.md`, `decomposition.md`, `debug-report.md`, `validation-report.md`, `architecture.md`, `migration-plan.md`, `ci-report.md`, `a11y-review.md`, `perf-report.md`, `security-review.md`, `api-contract-review.md`, `unit-test-plan.md`, `documentation.md`, `review.md`, `mockup-review.md`, `ux-design.md`) and update the producer-owned terminal receipt in `artifact-manifest.json`.
169
- 6. On `changes_requested` from reviewers: hook sets `retryAfterFix` → developer → same reviewer. Exception: embedded `mockup-reviewer` FAIL (`changes_requested` while the completed/current agent is `mockup-reviewer`) → `awaiting_approval` / `/task-continue` only — do **not** `retryAfterFix` to developer.
185
+ 6. On `changes_requested` from reviewers: hook sets `retryAfterFix` → developer → same reviewer. Exception: embedded `mockup-reviewer` FAIL (`changes_requested` while the completed/current agent is `mockup-reviewer`) → `awaiting_approval` / `/task-continue` only — do **not** `retryAfterFix` to developer. A `mockup-reviewer` verdict `mockup-change-requested` (a defect whose fix belongs in the design source, not the implementation) routes the same way — `awaiting_approval`, no developer retry.
170
186
  7. On `validation_failed` from `build-verifier`: hook sets `retryAfterFix: build-verifier` → developer → build-verifier.
171
187
  8. When all steps complete, suggest `/technical-retro <slug>`.
172
188
  9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
189
+ 10. **Persist the verbatim original prompt.** Every `/task` and every routed work request writes the user's raw prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). It is not a manifest `artifacts[]` body — register the path on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
190
+ 11. **Answer the user in the resolved dialogue language for the whole task.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English) and pass it to every step; `/task-continue` keeps it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See **language-policy**.
173
191
 
174
192
  ## Team artifact I/O
175
193
 
194
+ - **Persist the original prompt.** For **every** task — `/task` or a routed work request — write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). The header is additive provenance only; the fenced text block holds the user's words unchanged. It is not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
195
+ - **Answer in the resolved dialogue language.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins) and reuse it for every user-facing message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and artifacts stay **English**. See **language-policy**.
176
196
  - Create/update team task dirs with the **Write** tool (parents are created automatically). Do **not** bootstrap slug dirs with Shell `mkdir -p` — default sandbox returns `Operation not permitted` (worse on macOS Desktop/Documents with TCC).
177
197
  - If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
178
198
  - Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
@@ -213,4 +233,4 @@ When user describes a **non-trivial task** (not a question), suggest `/task <mes
213
233
 
214
234
  ## Preset authoring
215
235
 
216
- When the work edits `packages/ai-rules/presets/**` (or dogfood `.cursor/` sync of presets), follow meta-rules: **preset-pr-checklist**, **preset-twin-sync**, **preset-layering**, **preset-token-budget**, **preset-no-cross-stack-leakage**.
236
+ When the work edits `packages/ai-rules/presets/**` (or dogfood `.cursor/` sync of presets), follow meta-rules: **preset-goals**, **preset-pr-checklist**, **preset-twin-sync**, **preset-layering**, **preset-token-budget**, **preset-no-cross-stack-leakage**.
@@ -9,6 +9,9 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
9
9
  3. **Apply** — treat every `.ai.local/rules/*.md` and `.ai.local/conventions.md` as a higher-priority rule for this repo. Do **not** load `.ai.local/team/**` as rules (shared pipeline artifacts). The block below ("Authoring `.ai.local/rules/*.md`") defines the conventions.
10
10
  4. **Conflict** — if a local rule conflicts with a preset rule, **the local rule wins**. If a local rule body contains `override: kill <preset-rule-name>`, drop that preset rule from your context window entirely.
11
11
  5. **Acknowledge** — when answering a user question, briefly state which `.ai.local/` rules apply to the current task (one line is enough). Format: `Using .ai.local: <rule-name>(, <rule-name>)*`. If no `.ai.local/` exists, do NOT mention this rule.
12
+ 6. **Language** — reply to the user in their **native language**: read the `## Language` section of
13
+ `.ai.local/conventions.md` (nearest `.ai.local` first); if unset, infer from the prompt language; else
14
+ English. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
12
15
 
13
16
  If `.ai.local/` does not exist → **no-op**, do not error. Do not produce any log line about its absence.
14
17
 
@@ -35,3 +38,4 @@ Keep files ≤ 120 lines. Match the style of preset rules (short sections, bulle
35
38
  - Authoring guide: `docs/LOCAL-OVERLAY.md` in the `@bonesofspring/ai-rules` package.
36
39
  - Living gotchas: `.ai.local/conventions.md`. Pipeline artifacts: `.ai.local/team/` (do not load as rules).
37
40
  - Root `AGENTS.md` reinforces this rule with a `MANDATORY` section.
41
+ - Language policy: `language-policy` (native dialogue; English development/artifacts).