@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
package/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ### Preset brevity & comment discipline
6
+
7
+ - **New requestable shared-core meta rule `meta/preset-writing-style.md`** — preset prose: state the rule, cut the demagogy (no filler, hedging, emphasis inflation, restated rules, storytelling), one testable rule per line, link instead of duplicate. EMBED: 10 Cursor `preset-writing-style.mdc` + 10 Claude twins + regenerated `mavis/**` / `opencode/**`; referenced from `preset-goals` and `preset-pr-checklist`.
8
+ - **Consumer clause in always-on `quality/code-quality-and-refactoring.md`** — new `## Comments & prose` section: default to no comment; comments only for non-obvious *why* (hidden constraint, workaround, invariant); banned paraphrase / banner / task-ref / change-log comments; written artifacts lead with the point, name specifics, report decisions + evidence, skip process narration.
9
+ - **`preset-goals.md` and `preset-twin-sync.md` tightened** (repetitive per-stack tables collapsed to one derivation table); `preset-pr-checklist.md` gains a **Writing** gate + pointer; `docs/PRESET-ENGLISH-STYLE.md` gains a **Brevity & tone** section.
10
+ - Wiring: `scripts/_lib/embed-stems.json`, `check-preset-token-budget.sh` allow-list, Cursor/Claude README meta lists, `cli-golden` re-captured, dogfood mirrors synced. No new hard gate (covered by `shared-core-drift` + `twin-map`).
11
+
12
+ ### Producer-side self-review + context hygiene (`re-anchor`)
13
+
14
+ - **New requestable shared-core **lineage** stem `quality/self-review-and-context-hygiene.md`** — the producing agent runs a pre-receipt **self-review** of its own output (goal/AC coverage, evidence presence, alignment/drift), names the two context failure classes (**context loss** vs **context excess/noise**), and fixes drift with a **re-anchor**: re-read the `task-framing` goal frame + the current `decomposition.md` → repair → 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`** and the goal frame — **no** new pipeline step/agent, **no** new orchestrator, **no** `status.json`/`metrics.json` field. Stated as the **coverage/alignment** half of "done", explicitly distinct from the `verification-before-completion` evidence gate, `code-reviewer`, and `build-verifier`. **Lineage**, never always-on.
15
+ - **Cross-links (no forks):** thin clauses added to `quality/context-and-iteration.md` (§ Ratchet), `quality/verification-before-completion.md` (new § Companion: self-review), `agent-team/plan-graph.md` (§ Plan revision trigger source) and `agent-team/task-framing.md` (goal frame = re-anchor target). The orchestrator guidance lives in `_shared/core/agent-team/agent-team-orchestrator.md` (new `## Self-review & context hygiene`), so the generated mavis/opencode orchestrator carries it.
16
+ - **Propagation:** `<!-- shared-core: quality/self-review-and-context-hygiene.md -->` + a contract section on the 5 receipt-emitting producer agents — `task-analyst`, `feature-developer`, `build-verifier` (×10 stacks) and `debugger`, `code-reviewer` (×9; not `mcp-ts`) — plus the orchestrator rule, `commands/task.md` / `commands/task-continue.md`, `team/README.md` (`## Self-review` recording convention), `agents/README.md`, and a compact agent-consumed catalog row in `rules/README.md`; hand-mirrored to the Claude twins and regenerated for `mavis/**` / `opencode/**` (`sourceRevision` refreshed). **No new Cursor `.mdc` rule**, so no new twin-map row.
17
+ - **Ratchet:** bounded/spike tasks (or the `light` profile) skip self-review / context-health / re-anchor; standard/architectural ratchet up. Simple tasks stay frictionless (`preset-goals`).
18
+ - **New hard gate `scripts/check-preset-self-review-contract.sh`** (+ `test-preset-self-review-contract-fixtures.mjs`) wired into `check-preset-structure.sh` — G0 non-vacuous core guard, producer-agent markers (skip-if-absent for `debugger`/`code-reviewer`), orchestrator heading + `re-anchor`, docs token, leakage probe; refuses a vacuous PASS.
19
+ - Docs: `docs/PRESET-CONTRIBUTION.md` stems table + `presets/_shared/README.md` taxonomy; dogfood mirrors synced.
20
+
21
+ ### Hard `preset-goals` rule: the presets' purpose as the primary goal of every preset-modifying task
22
+
23
+ - **New shared-core meta rule `meta/preset-goals.md`** — states why these presets exist (self-sufficient execution of simple **and** complex tasks at maximum, project-specific quality) and declares that goal the **primary objective of every task that modifies the presets**, in mandatory language with an explicit priority ordering. Requestable meta only (self-attaches via Cursor `globs:` / Claude `paths:`), never always-on.
24
+ - **Full EMBED propagation:** 10 Cursor `rules/preset-goals.mdc` SoT + 10 Claude twins (`tooling-and-review/preset-goals.md`) + regenerated `mavis/**` / `opencode/**`; referenced from the author entry points (`agent-team-orchestrator`, `preset-pr-checklist`, `preset-layering`).
25
+ - **New hard gate `scripts/check-preset-goal-contract.sh`** (+ `test-preset-goal-contract-fixtures.mjs`) wired into `check-preset-structure.sh` — asserts rule presence, `<!-- shared-core -->` marker, `globs`/`alwaysApply: false`, Claude `paths:`, and entry-point reference across all platforms × stacks; refuses a vacuous PASS.
26
+ - Docs: `docs/PRESET-CONTRIBUTION.md`, `presets/_shared/README.md`, `docs/PRESET-ENGLISH-STYLE.md`; `cli-golden` re-captured; dogfood mirrors synced.
27
+
28
+ ### Figma mockup compliance: frozen contract + mandatory post-implementation gate
29
+
30
+ - **New requestable next skill `figma-fidelity`** — the post-implementation gate procedure (G0..G6: per-viewport screenshot diff, two-way state diff, per-node value/geometry diff, structural parity, freeze re-check) plus the **UI-WP Definition of Done (AC-28)**. Next-only; loaded by `feature-developer`, `code-reviewer`, and `mockup-reviewer`. Claude twin shipped.
31
+ - **New machine-readable task artifact `figma-contract.json`** (`figmaContractVersion: 1`), written by `mockup-reviewer` and registered on the existing `mockup-review` manifest entry `authoritativePaths`; the node map + per-node variables+values spec become the frozen layout QA baseline. Narrated in shared core `agent-team/agent-artifact-contracts.md`. **No new pipeline agent, no hook/lifecycle change.**
32
+ - **Core `review/mockup-review.md` gains** node→component map (root + children, existing/DS/new), per-node spec, design-source defect taxonomy (DS violation / non-exportable effect-asset / un-implementable node), mockup-change escalation, contract freeze (`specChecksum`, `MOCKUP_CHANGED_AFTER_CONTRACT`), degradation markers, and the mandatory post-implementation gate. Propagation: all 5 UI stacks × 4 platforms (embed).
33
+ - **Next rules/agents/skills extended:** `mockup-review` + `code-review-mr` + `feature-delivery-workflow` Stack notes carry the MCP matrix (Figma / chrome-devtools / Playwright / Storybook) + degradation; `design-tokens-binding` carries the QA baseline + value/geometry diff; `mockup-reviewer`/`feature-developer`/`code-reviewer` prompts gain the contract precondition, parity/value diff, and `mockup-change-requested` verdict; 4 next `.ai.local` seeds reference the contract.
34
+ - **New hard gate `scripts/check-figma-contract-presence.sh`** wired into `check-preset-structure.sh` (+ `yarn check:figma-contract`) — asserts the contract headings / keys / markers / skill steps are present. **Deliberate non-change:** core `review/code-review-mr.md` untouched (anti-fan-out); lineage propagation for `feature-delivery-workflow` / `agent-team-orchestrator` (core + next adapters only).
35
+
5
36
  ### Next: runtime-model, catalog, seeds, and generated-tree correctness
6
37
 
7
38
  - **Generated trees no longer ship dangling `.mdc` pointers.** `generate-mavis` / `generate-opencode` rewrite in-body `.mdc` cross-references to sibling rule `.md` stems (embed-mode bodies previously kept Cursor `## Stack notes` verbatim); author `preset-*` meta-rules keep their intentional Cursor `.mdc` references. `check-generated-drift.mjs` now fails on a dangling sibling-stem `.mdc` in any generated rule tree.
package/README.md CHANGED
@@ -46,7 +46,7 @@ npx @bonesofspring/ai-rules init multi --preset nuxt
46
46
 
47
47
  Help: `ai-rules --help`.
48
48
 
49
- Skills of note: `write-adr` (all except `mcp-ts`); `spec-authoring` / `/spec-start`; `mockup-review` and `ux-design` on UI stacks; `react-performance` (next), `vue-performance` (nuxt), `svelte-performance` (svelte).
49
+ Skills of note: `write-adr` (all except `mcp-ts`); `spec-authoring` / `/spec-start`; `mockup-review` and `ux-design` on UI stacks; `figma-fidelity` (post-implementation Figma-fidelity gate, `next`); `react-performance` (next), `vue-performance` (nuxt), `svelte-performance` (svelte).
50
50
 
51
51
  ## Product specs and OpenSpec
52
52
 
@@ -142,11 +142,15 @@ Decision: monorepo split (ADR-0042). The "apps vs packages" boundary is enforced
142
142
 
143
143
  ## How to write `.ai.local/conventions.md`
144
144
 
145
- A single markdown file (no header conventions). Three sections, in this order:
145
+ A single markdown file (no header conventions). The `## Language` setting is optional; the three free-form sections follow it:
146
146
 
147
147
  ```markdown
148
148
  # Local conventions
149
149
 
150
+ ## Language
151
+
152
+ - **User-facing dialogue:** `en` — your BCP-47 tag (e.g. `ru`, `de`).
153
+
150
154
  ## Gotchas
151
155
 
152
156
  - <One bullet per non-obvious trap.>
@@ -160,6 +164,17 @@ A single markdown file (no header conventions). Three sections, in this order:
160
164
  - <Short links to ADRs / product choices that affect code.>
161
165
  ```
162
166
 
167
+ ### `## Language`
168
+
169
+ `conventions.md` also carries the optional **dialogue-language setting** for agents:
170
+
171
+ - **`## Language` section** — a bullet whose value is a **BCP-47** tag (default `en`). Every user-facing interaction the agent sends (clarifying questions, plan/human-gate prompts, `/task-continue`, status answers, summaries, escalations) uses that language. Development, reasoning, and all artifacts (including `prompt.md` and `review.md`) stay **English**.
172
+ - **Resolution order** — the `.ai.local` setting wins; else the agent infers the language from the prompt; else English. A mixed-language prompt uses the **dominant** language. In a monorepo the **nearest** `.ai.local` wins.
173
+ - **Conflict** — a `.ai.local` setting wins over a mid-task prompt in another language; the mismatch is surfaced once, never as a blocking question. Agents never ask you to confirm a language.
174
+ - **Persistence** — the resolved tag is recorded per task as an additive `language: <BCP-47>` line in `.ai.local/team/tasks/<slug>/prompt.md` (plus a `.memlog.md` `event:`) and reused for the whole task. Reference rule: `agent-team/language-policy`.
175
+
176
+ **Behavior-change note (existing consumers):** an English-only prompt with no `## Language` setting still resolves to **English**, so default behavior is unchanged. The setting pins a language explicitly; adding it is opt-in and needs no other config. The change is about the agent's **runtime output** language only — preset prose and all artifacts remain English (`docs/PRESET-ENGLISH-STYLE.md`).
177
+
163
178
  This is the **upgrade path** of the old per-tool `.cursor/team/conventions.md` (and Claude/Mavis/OpenCode twins). If both exist, `.ai.local/conventions.md` wins. Pipeline task slugs live in `.ai.local/team/`, not in `conventions.md`.
164
179
 
165
180
  ### Migration backups
@@ -91,10 +91,14 @@ Sync marker (after frontmatter in platform files):
91
91
  | **Embed (A)** | Shared principles with small stack examples | Core prose copied into adapter + `## Stack notes` for deltas only | `check-shared-core-drift.sh` compares body (minus frontmatter / Stack notes) to core |
92
92
  | **Lineage (B)** | Stack checklist / paths dominate; core stays abstract | Marker present; body is stack-specific (Next `app/**`, iOS `Features/**`, etc.) | Script lists consumers only — **no** body equality |
93
93
 
94
- **Embed stems (reference):** `quality/code-quality-and-refactoring`, `quality/design-guidance`, `quality/mcp-usage`, all `meta/preset-*`, `review/code-review-mr`, `review/technical-retro`, `agent-team/agent-team-intake`, `architecture/product-specs`, `architecture/product-specs-authoring`.
94
+ **Embed stems (reference):** `quality/code-quality-and-refactoring`, `quality/design-guidance`, `quality/mcp-usage`, all `meta/preset-*` (incl. `meta/preset-goals`), `review/code-review-mr`, `review/technical-retro`, `agent-team/agent-team-intake`, `agent-team/language-policy`, `architecture/product-specs`, `architecture/product-specs-authoring`.
95
95
 
96
96
  **Lineage stems (reference):** `architecture/feature-delivery-workflow`, `architecture/reference-features.template`, `agent-team/agent-team-orchestrator`.
97
97
 
98
+ **Prompt-persistence contract (always-on behavior):** every task persists the user's **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent) — written by the `/task` **Slug** bootstrap and, for non-`/task` work requests, by `agent-team-intake`. It rides existing bodies (`agent-team-orchestrator` + `agent-team-intake` rules, `commands/task.md` + `commands/task-continue.md`) and adds **no** always-on rule. Register the path on the manifest `routing` entry — never in `artifacts[]` bodies (`core/agent-team/agent-artifact-contracts.md` § Prompt artifact). Enforced by `scripts/check-preset-prompt-persistence.sh` (wired into `check-preset-structure.sh`).
99
+
100
+ **Native-language policy (always-on behavior):** development, reasoning, and every artifact stay **English**; every user-facing interaction (clarifying questions, plan/human-gate prompts, `/task-continue`, status answers, summaries, escalations) is written in the user's **native language**. The language is resolved once (`.ai.local/conventions.md` `## Language` — nearest `.ai.local` wins — else inferred from the prompt language, mixed → dominant, else English) and persisted per task as an additive `language: <BCP-47>` line in the `prompt.md` header (+ a `.memlog.md` `event:`; never `status.json` / `metrics.json` / an `artifacts[]` body). The detailed rule is a **requestable** EMBED stem (`core/agent-team/language-policy.md`); the essential clause rides existing always-on bodies (`ai-local-overlay`, the stack `<stack>-app-core`, root `REPO_AGENTS.md` → `AGENTS.md`) and adds **no** new always-on slot. Enforced by `scripts/check-preset-language-policy.sh` (wired into `check-preset-structure.sh`). Runtime output language is **orthogonal** to preset prose language — the prose stays English (`docs/PRESET-ENGLISH-STYLE.md`).
101
+
98
102
  Intentional fork / mode change: document in PR (and optionally in validation-report).
99
103
 
100
104
  ---
@@ -116,7 +120,7 @@ Caps are **aligned** across platforms (min **3**, max **5**); slots beyond the b
116
120
 
117
121
  Session-start body budget (where documented): ≤200 lines total (stretch ≤170).
118
122
 
119
- **Author meta-rules** (`preset-layering`, `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`):
123
+ **Author meta-rules** (`preset-goals`, `preset-layering`, `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`):
120
124
 
121
125
  - **Never** `alwaysApply: true` / never among the Claude session-start rules.
122
126
  - Cursor: `globs` → `packages/ai-rules/presets/**` (+ dogfood `.cursor/**` where useful).
@@ -224,7 +228,7 @@ Recent additions: **`android-kotlin`** (scaffolded from `ios-swift` agent-team +
224
228
  3. **Stack-specific rules** — domain, tooling, post-change gate, agents/skills with stack-appropriate names (no Playwright stems on iOS/go, no XCUITest stems on Next/go, no xcodebuild/ESLint as required handoffs on go, etc.).
225
229
  4. **Embed core** — add `<!-- shared-core: … -->` adapters for shared stems; fill `## Stack notes` with stack examples only in adapters (Go: hexagonal layers; Android: Activity/Compose paths).
226
230
  5. **Claude twin** — create topic `.md` files + **Cursor→Claude mapping table** in `claude/<stack>/rules/README.md`. `go` ships `ui-and-accessibility/README.md` as N/A stub only.
227
- 6. **Meta-rules** — add five `preset-*.mdc` / `preset-*.md` wrappers with preset-path globs (same as existing stacks).
231
+ 6. **Meta-rules** — add six `preset-*.mdc` / `preset-*.md` wrappers with preset-path globs (same as existing stacks).
228
232
  7. **build-verifier** — include preset-structure checks + stack leakage list.
229
233
  8. **Platform artifacts** — see next section.
230
234
  9. **Structure scripts** — add stack name to `STACKS` in `check-preset-twin-map.sh`, `check-preset-token-budget.sh`, `check-preset-leakage.sh`; fork `chain-team-phases.sh` byte-wise from other stacks.
@@ -327,6 +331,7 @@ Parity is by **stem and mapping table**, not identical directory shape. Use `cla
327
331
 
328
332
  | Stem | Core source | Purpose |
329
333
  |------|-------------|---------|
334
+ | `preset-goals` | `core/meta/preset-goals.md` | Presets' primary goal — autonomous simple **and** complex execution, maximum quality, project specifics |
330
335
  | `preset-layering` | `core/meta/preset-layering.md` | Core → Stack → Platform |
331
336
  | `preset-twin-sync` | `core/meta/preset-twin-sync.md` | SoT, same-PR twins, mapping |
332
337
  | `preset-token-budget` | `core/meta/preset-token-budget.md` | ≤3 always-on, meta loading |
@@ -346,6 +351,9 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
346
351
  | `scripts/check-preset-twin-map.sh` / `yarn check:preset-twin-map` | **FAIL** if Cursor `.mdc` missing from Claude mapping table, twin file missing, or orphan topic `.md` (excl. `**/README.md`). Stacks: `next`, `nuxt`, `svelte`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`. |
347
352
  | `scripts/check-preset-token-budget.sh` / `yarn check:preset-token-budget` | **FAIL** if Cursor `alwaysApply: true` or Claude no-`paths:` (excl. README) count is outside **3–5**, `preset-*` always-on, or intended body sum > **200**. Stacks include `nuxt`, `svelte`. |
348
353
  | `scripts/check-preset-leakage.sh` / `yarn check:preset-leakage` | **FAIL** on forbidden stems in `hooks/**/*.sh` (recursive), wrong-stack agent filenames, or **positive** (non-negation) agent body mentions; **FAIL** if chain scripts are byte-identical across stacks. Explicit **negation** of forbidden stems in agent bodies is **suppressed** (INFO summary count only — not a merge blocker). Non-negation mentions in `build-verifier` → **WARN only**. |
354
+ | `scripts/check-preset-prompt-persistence.sh` / `yarn check:preset-structure` | **FAIL** if the persist-the-original-prompt contract (`prompt.md` on the `routing` entry) is missing from any platform × stack command (`task.md` + `task-continue.md`), orchestrator, or intake body, or the core `agent-artifact-contracts` anchor (`## Prompt artifact`) is gone; **refuses vacuous PASS** when the iteration set is empty. Wired into `check-preset-structure.sh` next to `goal-contract`; fixture `test-preset-prompt-persistence-fixtures.mjs`. |
355
+ | `scripts/check-preset-language-policy.sh` / `yarn check:preset-structure` | **FAIL** if the native-language policy is absent: the core `_shared/core/agent-team/language-policy.md` tokens, the `language-policy` consumer + `<!-- shared-core -->` marker, the Cursor `globs:`/`alwaysApply: false` + Claude `paths:` shape, the `## Language` setting home (with a BCP-47 marker) in `ai-local/conventions.md`, the always-on anchors (`ai-local-overlay` + `<app-core>` `native language`; `REPO_AGENTS.md` `native language`), or the `language:` persistence token in `commands/task.md`; **refuses vacuous PASS** when the iteration set is empty. Wired into `check-preset-structure.sh` next to `goal-contract` / `prompt-persistence`; fixture `test-preset-language-policy-fixtures.mjs`. |
356
+ | `scripts/check-preset-self-review-contract.sh` / `yarn check:preset-structure` | **FAIL** if the producer-side self-review / context-hygiene contract is absent: the core `_shared/core/quality/self-review-and-context-hygiene.md` tokens (G0 non-vacuous guard), the `<!-- shared-core: quality/self-review-and-context-hygiene.md -->` marker on `task-analyst` / `feature-developer` / `build-verifier` (×10) and on `debugger` / `code-reviewer` where present (skip-if-absent → `mcp-ts`), the `Self-review` + `re-anchor` tokens on every orchestrator rule, `Self-review` in `team/README.md` + `commands/task.md`, and leakage-free core + docs; **refuses vacuous PASS** when the iteration set is empty. Wired into `check-preset-structure.sh` next to `goal-contract`; fixture `test-preset-self-review-contract-fixtures.mjs`. |
349
357
  | `scripts/check-preset-structure.sh` / `yarn check:preset-structure` | Orchestrator: twin-map + token-budget + leakage + shared-core drift (**all hard**; drift via `AI_RULES_DRIFT_FAIL=1`). Does **not** run rule-eval. |
350
358
  | `scripts/check-product-specs.sh` / `yarn check:product-specs` | Opt-in consumer tree check: frontmatter v1 keys + required body headings on `docs/specs/**` (bash; does **not** run JSON Schema). Ships in the npm package `files` (`scripts/`). **WARN** by default; **`--strict`** exits non-zero. |
351
359
  | `yarn check:product-specs:dogfood` | Same script against monorepo `dogfood/mcp-ts-sample`. Soft WARN inside `check:preset-structure` + CI step (`continue-on-error`); not a hard consumer CI gate. |
@@ -374,7 +382,7 @@ When packaging a new habit for agents, pick **one** primary artifact. Prefer the
374
382
  | **Slash command** | Manual (or orchestrated) | Reusable prompt template with parameters | One interaction |
375
383
  | **Skill (`SKILL.md`)** | Auto or agent-followed | Multi-step procedure / checklist | Loaded into current agent context |
376
384
  | **Subagent (`agents/*.md`)** | Auto/Manual | Separate persona + (often) fresh context | Separate system prompt / context |
377
- | **`.ai.local/conventions.md`** | Pointer from AGENTS | Living gotchas after init (consumer-owned) | Not always-on; fill post-init |
385
+ | **`.ai.local/conventions.md`** | Pointer from AGENTS | Living gotchas + the `## Language` dialogue setting after init (consumer-owned) | Not always-on; fill post-init |
378
386
  | **Hook** | Tool lifecycle | Mechanical enforce (format, secret guard) | Outside model prose |
379
387
 
380
388
  ## Skill authoring craft (SDO)
@@ -397,6 +405,7 @@ Author-only: this section is **not** copied by `init`.
397
405
  | `quality/verification-before-completion.md` | **lineage** | Section snippet inside fat `build-verifier` / `feature-developer` | those agents (debugger 3-fix is inline, not this stem) |
398
406
  | `review/receiving-code-review.md` | **lineage** | Section snippet inside fat `code-review` skill | skill + implementer line on `feature-developer`, `debugger`, `ci-investigator` |
399
407
  | `agent-team/task-classification.md` | **lineage** | Section snippet inside fat `task-analyst` / `task-router` | those agents |
408
+ | `quality/self-review-and-context-hygiene.md` | **lineage** | Section snippet inside the producer agent prompts + the orchestrator rule (pre-receipt self-review, context loss vs excess/noise, re-anchor / ratchet) | `task-analyst`, `feature-developer`, `build-verifier` (×10) + `debugger`, `code-reviewer` (×9; not `mcp-ts`) + orchestrator rules (×10) |
400
409
 
401
410
  `check-shared-core-drift.sh` embed mode compares the **entire** adapter (minus frontmatter, marker, `## Stack notes`) to the core file. Fat agents cannot be embed consumers. Do **not** put `<!-- shared-core: quality/debug-investigation.md -->` on `debugger.md`. Every `debugger.md` (including backend `go` / `java` / `php-*`) must still **point at** skill `debug-investigation` at the top of the agent body so the 4-phase embed loads.
402
411
 
@@ -6,6 +6,28 @@ All installable preset prose is **English**: shared core, stack adapters (Cursor
6
6
 
7
7
  Prose-only change: do not rename stems, paths, frontmatter keys, or CLI surfaces for translation.
8
8
 
9
+ ## Brevity & tone
10
+
11
+ Preset prose carries meaning, not ceremony. The rule: **if a sentence can be deleted without losing an instruction, delete it.**
12
+
13
+ - State the rule, not the motivation. Keep a *why* only when it changes behavior (the failure it prevents).
14
+ - One idea per line; imperative and testable (`Do X` / `Never Y`).
15
+ - Concrete over abstract: name the file, command, symbol, number.
16
+ - No filler, hedging, selling, urgency, storytelling, or rhetorical questions.
17
+ - Bold / `must` / `never` mark a hard gate only — not the whole page.
18
+ - Link a sibling rule instead of restating it.
19
+
20
+ The same rule covers code comments and agent-produced artifacts (see `quality/code-quality-and-refactoring.md` § Comments & prose). Full authoring rules: meta rule `preset-writing-style`.
21
+
22
+ ## Runtime output language vs preset prose language
23
+
24
+ Two languages are **orthogonal** and must not be conflated:
25
+
26
+ - **Preset prose language** — the text inside `packages/ai-rules/presets/**` is **English** (this guide). Rule bodies, agents, skills, commands, and package docs are never translated.
27
+ - **Runtime output language** — the language an agent uses to *talk to the user* at run time. The `language-policy` contract makes every user-facing interaction (questions, gate prompts, `/task-continue`, status, summaries, escalations) use the user's native language — resolved from the `.ai.local/conventions.md` `## Language` setting (else the prompt language, else English) and persisted per task in the `prompt.md` header.
28
+
29
+ Consequence: a non-English speaker is answered in their language while the code, reasoning, and every artifact (`brief.md`, `review.md`, the `prompt.md` header, and this preset prose) stay **English**. The policy does **not** introduce non-English text into preset files — runtime dialogue never lives in the presets. The i18n audit below still applies: a retained non-English *example* inside a rule needs an `<!-- i18n-keep: … -->` marker.
30
+
9
31
  ## Exception taxonomy (E1–E8)
10
32
 
11
33
  | ID | Kind | Policy | Example |
@@ -88,4 +110,4 @@ Also: `check-shared-core-drift.sh` for embed-mode stems; stack README mapping ta
88
110
  ## Related
89
111
 
90
112
  - Contribution workflow: [`PRESET-CONTRIBUTION.md`](./PRESET-CONTRIBUTION.md)
91
- - Meta rules: `preset-layering`, `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`
113
+ - Meta rules: `preset-goals`, `preset-writing-style`, `preset-layering`, `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonesofspring/ai-rules",
3
- "version": "0.2.32",
3
+ "version": "0.2.33",
4
4
  "description": "Presets of Cursor, Claude, Mavis, and OpenCode rules/commands for Revy Ross personal use",
5
5
  "license": "MIT",
6
6
  "author": "Revy Ross",
@@ -35,6 +35,7 @@
35
35
  "check:preset-twin-map": "bash scripts/check-preset-twin-map.sh",
36
36
  "check:preset-token-budget": "bash scripts/check-preset-token-budget.sh",
37
37
  "check:preset-leakage": "bash scripts/check-preset-leakage.sh",
38
+ "check:figma-contract": "bash scripts/check-figma-contract-presence.sh",
38
39
  "check:hook-only-lifecycle": "bash scripts/check-hook-only-lifecycle.sh",
39
40
  "check:local-overlay": "bash scripts/check-local-overlay.sh",
40
41
  "check:preset-i18n": "AI_RULES_I18N_FAIL=1 AI_RULES_I18N_SOFT=0 bash scripts/check-preset-i18n.sh",
@@ -9,7 +9,7 @@ _shared/core → cursor/<stack> (SoT)
9
9
  → opencode/<stack> (generated)
10
10
  ```
11
11
 
12
- Meta-rules: `core/meta/preset-*.md`. Guide: [`docs/PRESET-CONTRIBUTION.md`](../../docs/PRESET-CONTRIBUTION.md).
12
+ Meta-rules: `core/meta/preset-*.md` (e.g. `preset-goals`). Guide: [`docs/PRESET-CONTRIBUTION.md`](../../docs/PRESET-CONTRIBUTION.md).
13
13
 
14
14
  ## Sync
15
15
 
@@ -20,14 +20,20 @@ Meta-rules: `core/meta/preset-*.md`. Guide: [`docs/PRESET-CONTRIBUTION.md`](../.
20
20
 
21
21
  `/task` templates live in each stack’s `team/` and seed **`.ai.local/team/`** — not this folder.
22
22
 
23
+ Every task persists the user’s **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent). The contract lives in `core/agent-team/` (orchestrator + intake rules and `agent-artifact-contracts.md` § Prompt artifact); the path is registered on the `routing` manifest entry — never in `artifacts[]` bodies.
24
+
25
+ Every user-facing interaction runs in the user's **native language** — resolved from the `.ai.local/conventions.md` `## Language` setting (nearest `.ai.local` wins; else the prompt language, mixed → dominant, else English) and persisted per task as an additive `language: <BCP-47>` line in the `prompt.md` header (+ a `.memlog.md` `event:`) — while development, reasoning, and all artifacts stay **English**. The detailed contract is the requestable EMBED stem `core/agent-team/language-policy.md`; the essential clause rides the always-on `ai-local-overlay`, `<stack>-app-core`, and root `REPO_AGENTS.md` → `AGENTS.md` surfaces (no new always-on slot).
26
+
23
27
  ## Folders
24
28
 
25
29
  | Dir | What |
26
30
  |-----|------|
27
- | `core/quality/` | Slim always-on quality; requestable discipline / design / MCP |
28
- | `core/agent-team/` | Orchestrator, intake, classification, artifact + metrics contracts |
31
+ | `core/quality/` | Slim always-on quality; requestable discipline / design / MCP / self-review & context hygiene |
32
+ | `core/agent-team/` | Orchestrator, intake, language policy, classification, artifact + metrics contracts |
29
33
  | `core/architecture/` | Feature-delivery, reference-features, product-specs |
30
34
  | `core/review/` | MR review, retro, mockup, UX |
31
35
  | `core/testing/` | Unit/e2e principles |
32
- | `core/meta/` | Author-facing preset rules |
36
+ | `core/meta/` | Author-facing preset rules (`preset-goals`, `preset-writing-style`, `preset-layering`, …) |
33
37
  | `assets/docs-specs/` | `init` seed for absent `docs/specs/` |
38
+
39
+ The requestable **lineage** stem `core/quality/self-review-and-context-hygiene.md` carries the producer-side pre-receipt **self-review** (goal/AC coverage, evidence presence, alignment/drift), the **context loss vs excess/noise** failure classes, and the **re-anchor** correction — a `plan-graph` `replan` specialization bound to the `task-framing` goal frame and recorded append-only in `.memlog.md`. Consumers: the producer agent prompts (`task-analyst`, `feature-developer`, `build-verifier`, plus `debugger` / `code-reviewer` where present) and the orchestrator rule. Requestable only — never always-on.
@@ -88,6 +88,43 @@ A producer finishes its step by upserting only its owned artifact entry and term
88
88
  - A producer never edits another producer's receipt. Corrections create a new owned entry or supersede an earlier entry owned by the same producer.
89
89
  - Parallel producers need distinct entry IDs. Their parent/orchestrator serializes manifest merges; agents must not use the shared manifest as a concurrency lock.
90
90
 
91
+ ## Figma contract artifact
92
+
93
+ A UI task with a Figma mockup persists a machine-readable **Figma contract** alongside the human review:
94
+
95
+ | Property | Value |
96
+ |----------|-------|
97
+ | Path | `.ai.local/team/tasks/<slug>/figma-contract.json` |
98
+ | Writer / owner | `mockup-reviewer` (single writer; coincides with the `mockup-review.md` writer) |
99
+ | Schema version | `figmaContractVersion: 1` |
100
+ | Lifetime | Task lifetime. Created on the mockup-review pass; superseded only by a new `specVersion` on a **new** mockup-review pass — never edited in place by a downstream agent |
101
+ | Manifest registration | registered on the **existing** `mockup-review` entry `authoritativePaths` (add `figma-contract.json`; **no** new producer row, **no** new agent) |
102
+ | Consumers | `feature-developer` (precondition + parity + value-diff self-check), `mockup-reviewer` (re-review / re-freeze), `code-reviewer` (parity + value diff gate), `build-verifier` (presence + schema-key presence) |
103
+
104
+ **Schema keys (preset-owned; values populated from the runtime MCP returns — do not assert a Figma schema):** `figmaContractVersion`, `slug`, `specVersion`, `generatedAt`, `mcp{figma,tools}`, `source{fileKey,url,rootNodeId,rootNodeName,sourceRevision{lastModified,version}}`, `specChecksum`, `scope`, `viewports[]`, `variables{}`, `nodes[]` (`target`, `componentKey`, `codeConnect`, `variables{color,spacing,radius,effect,typography,text}`, `asset`, `states[]`, `selector`, `acIds[]`), `stateMatrix`, `modes[]`, `locales[]`, `defects[]`.
105
+
106
+ **Freeze semantics:** `specChecksum` = sha256 over the canonical JSON of `{source, nodes[], variables, stateMatrix, viewports}` (stable key order; exclude `generatedAt`, `specChecksum`, `defects`). After a PASS/PASS_WITH_NOTES the contract is frozen; a later read observing a changed `lastModified`/`version` for the root or a mapped node emits `MOCKUP_CHANGED_AFTER_CONTRACT`. Re-baselining requires a new mockup-review pass producing `specVersion + 1` and a new `specChecksum`; downstream agents may not mutate `specVersion`/`specChecksum`.
107
+
108
+ **`mockup-change-requested` (report) → receipt mapping:** a Figma-side defect whose fix belongs in Figma sets the report verdict `mockup-change-requested`. Embedded → `changes_requested` with artifact `status: blocked` (identical to the embedded-`FAIL` route → `awaiting_approval`; **no** `feature-developer` retry). Standalone → `completed` (report-only). The receipt-outcome vocabulary is unchanged.
109
+
110
+ ## Prompt artifact
111
+
112
+ Every task persists the **verbatim original user prompt** — whether or not `/task` was invoked:
113
+
114
+ | Property | Value |
115
+ |----------|-------|
116
+ | Path | `.ai.local/team/tasks/<slug>/prompt.md` |
117
+ | Writer / owner | the orchestrator (manager) during the `/task` **Slug** bootstrap; the intake handler when a work request is handled without `/task` (single canonical write point; one file) |
118
+ | Format | minimal **additive** provenance header (`source`, `command`, `capturedAt`, `language`) followed by the user's words **verbatim** inside a fenced `text` block |
119
+ | Written | once per slug, **write-if-absent**; never overwritten on `/task-continue`, retry, or resume |
120
+ | Lifetime | task lifetime; a slug is immutable in place — a new ask is a new slug |
121
+ | Manifest registration | registered on the **existing `routing`** entry `authoritativePaths` (like `figma-contract.json` on `mockup-review`) — the manifest carries **no** prompt body (`artifacts[]` stays body-free, see Context index conventions 7) |
122
+ | Consumers | any later agent/human reading the task folder; documented here so the artifact is discoverable, not orphan |
123
+
124
+ **Verbatim semantics:** the fenced `text` block is the source of truth. The header is additive only and must never alter, translate, or paraphrase the user's words (the requester's language is preserved; the header stays English). The persisted prompt is a task-folder artifact subject to the no-local-paths discipline — any redaction is an explicit owner decision, never silent.
125
+
126
+ **Dialogue language (`language: <BCP-47>`):** the header also carries the task's resolved user-facing language (see **language-policy**). It is resolved once at task start (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins) and reused by every later step and `/task-continue`. A later correction is an append-only `.memlog.md` `event:` line — the fenced verbatim block stays frozen. The value never lives in `status.json`, `metrics.json`, or an `artifacts[]` body (see Context index conventions 7 and the hook-only lifecycle contract).
127
+
91
128
  ## Default producer → entry map
92
129
 
93
130
  | Producer | Default entry `id` | Typical authoritative paths |
@@ -161,6 +198,8 @@ Optional append-only file beside slug artifacts: `.ai.local/team/tasks/<slug>/.m
161
198
 
162
199
  Agent-written chronological markdown (`## YYYY-MM-DD` headings). Suggested line tags: `decision`, `assumption`, `override`, `event`, `claim`. Writers: `task-analyst`, `feature-developer`. `/task-continue` may read it. The hook does **not** parse memlog and does **not** treat it as `status.json` / `metrics.json`.
163
200
 
201
+ Checkpoint/resume semantics (bounded waves, `event:` checkpoints, `authoritativePaths`) live in core **quality/context-and-iteration.md**.
202
+
164
203
  ## Minimal terminal handoff
165
204
 
166
205
  Report the owned entry ID, outcome, authoritative paths, covered AC/task IDs, and remaining gaps. The hook advances pipeline state from the terminal receipt; the agent receipt is evidence that drives the state transition, not a substitute for writing `status.json`.
@@ -5,5 +5,8 @@ When the user message looks like a **work request** (implement, add, fix, refact
5
5
  1. Prefer **`/task <their request>`** or invoke **task-router** first.
6
6
  2. Do not jump straight to coding without router + pipeline when scope is non-trivial.
7
7
  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`.
8
+ 4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
9
+ 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.
10
+ 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**.
8
11
 
9
12
  Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
@@ -107,6 +107,22 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
107
107
  - 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.
108
108
  - Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
109
109
 
110
+ ## Plan revision (replanning)
111
+
112
+ 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.
113
+
114
+ ## Context budget & checkpoint/resume
115
+
116
+ 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.
117
+
118
+ ## Self-review & context hygiene
119
+
120
+ 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.
121
+
122
+ - **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.
123
+ - **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.
124
+ - **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.
125
+
110
126
  ## status.json (pipeline mode)
111
127
 
112
128
  ```json
@@ -160,13 +176,17 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
160
176
  3. One role per Task call — **except** parallel steps: multiple Task calls in one message.
161
177
  4. **Never** skip `humanGates` without `/task-continue` or explicit user approval.
162
178
  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`.
163
- 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.
179
+ 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.
164
180
  7. On `validation_failed` from `build-verifier`: hook sets `retryAfterFix: build-verifier` → developer → build-verifier.
165
181
  8. When all steps complete, suggest `/technical-retro <slug>`.
166
182
  9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
183
+ 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.
184
+ 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**.
167
185
 
168
186
  ## Team artifact I/O (Cursor Shell sandbox)
169
187
 
188
+ - **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.
189
+ - **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**.
170
190
  - 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).
171
191
  - If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
172
192
  - Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
@@ -207,4 +227,4 @@ When user describes a **non-trivial task** (not a question), suggest `/task <mes
207
227
 
208
228
  ## Preset authoring
209
229
 
210
- 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**.
230
+ 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**.
@@ -0,0 +1,41 @@
1
+ # Language policy
2
+
3
+ Behavior contract for **every agent and command in any consumer repo** — stack-agnostic. Not a
4
+ preset-authoring meta rule. The essentials are anchored on the always-on surfaces; this rule is the
5
+ detailed reference.
6
+
7
+ ## Two halves (mandatory)
8
+
9
+ 1. **Development and reasoning are English.** Thinking, planning, code, identifiers, comments, commits,
10
+ hooks, and **all artifacts** (`brief.md`, `decomposition.md`, `architecture.md`, `implementation.md`,
11
+ `review.md`, `validation-report.md`, plan/receipts, preset prose) are written in English. Never translate
12
+ code, identifiers, logs, or artifacts.
13
+ 2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
14
+ human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
15
+ escalations are written in the resolved language. Every such message — no exception.
16
+
17
+ ## Resolution (ordered)
18
+
19
+ 1. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
20
+ **nearest** `.ai.local` wins in a monorepo.
21
+ 2. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
22
+ the request.
23
+ 3. Otherwise **English** (English-only / ambiguous prompt).
24
+
25
+ The `.ai.local` setting **wins over** a mid-task prompt in another language. On a disagreement, follow the
26
+ setting and surface the mismatch **once in one sentence** — never block, and **never ask a
27
+ language-confirmation question**.
28
+
29
+ ## Per-task persistence
30
+
31
+ Resolve the language once at task start and reuse it for the whole task — every pipeline agent and every
32
+ `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header (`language: <BCP-47>`) and an
33
+ append-only `.memlog.md` `event:` checkpoint. A later correction is an append-only memlog event (the fenced
34
+ verbatim block is frozen). Never store it in `status.json`, `metrics.json`, or an `artifacts[]` body.
35
+
36
+ ## See also
37
+
38
+ - `ai-local-overlay` — reads `.ai.local` every turn; carries the setting read.
39
+ - `agent-team-intake` — resolves the language when a work request starts.
40
+ - `agent-team-orchestrator` — carries the resolved language across steps.
41
+ - `agent-artifact-contracts` — the `prompt.md` header contract.
@@ -0,0 +1,35 @@
1
+ # Plan graph & staging
2
+
3
+ Stack-agnostic. A decomposition is a **graph**, not a flat list: every task declares its dependencies, large flows are staged into epics with exit criteria, and the plan is a correctable artifact during execution.
4
+
5
+ ## Dependency graph
6
+
7
+ For each task record:
8
+
9
+ - **`dependsOn[]`** — the IDs of tasks that must finish first (`[]` when independent).
10
+ - The edges form a **DAG**; no cycles. An edge means "cannot start before", not "is related to".
11
+ - **Critical path** — the longest dependency chain; it sets the earliest possible finish.
12
+ - **Parallelizable groups** — sets of tasks with no mutual edges that may run in the same wave.
13
+
14
+ Express the graph as a diagram plus an explicit edge list (`T2←T1`, …) so a reader can verify it without re-deriving.
15
+
16
+ ## Epics / stages
17
+
18
+ For a large flow, group tasks into **epics / stages**, each with a table:
19
+
20
+ | id | name | tasks | exit criteria |
21
+ |----|------|-------|---------------|
22
+
23
+ - **Exit criteria** — the observable, checkable conditions that close the epic; an epic is not done until they hold.
24
+ - Stage epics so each is independently verifiable and revertible where practical.
25
+ - **Ratchet:** bounded tasks stay **flat** — do not invent artificial epics for a small task; a single flat task list is correct.
26
+
27
+ ## Plan revision
28
+
29
+ Plan revision is a **named, auditable operation** during execution — not a silent reorder.
30
+
31
+ - **Trigger conditions:** an evaluation oracle fails twice on the same task; a requirement or scope decision changes; a previously unknown dependency, consumer, or twin is discovered.
32
+ - **Procedure:** append a revision record to `.memlog.md` (`decision: replan rev N → N+1` with the reason), edit `decomposition.md` (task add/remove or dependency change), then **re-run the affected gate** before continuing.
33
+ - Bump the `decomposition.md` `## Plan revision` header (`rev: N+1`).
34
+ - A revision that changes scope returns to the human gate. **No silent reordering** and no unrecorded plan change.
35
+ - **Additional trigger source — re-anchor.** Self-review / context-health (`quality/self-review-and-context-hygiene`) may detect *context loss* or *excess/noise* against the `task-framing` goal frame and return the run to the framed plan. Record it as a `replan` (`decision: replan rev N → N+1`) when the plan changes, otherwise as an `event:` line.
@@ -12,6 +12,8 @@ Stack-agnostic. Classify **before** decomposing work or expanding a pipeline. Th
12
12
 
13
13
  Ratchet **up** if bounded work reveals architectural scope. Do not ratchet **down** to skip a needed verification gate (`build-verifier` after code changes still applies).
14
14
 
15
+ Epics/stages, the context budget + checkpoint/resume paths, and the iterative-refinement loop are **no-ops for bounded/spike** classes — they ratchet up only for architectural work (see **plan-graph** for dependency graph + staging and **context-and-iteration** for budget/checkpoint/refinement).
16
+
15
17
  ## Clarification
16
18
 
17
19
  Prefer **one** unblocking question per message when a single decision unblocks DoR. Never more than **3** questions per iteration (existing analyst cap).
@@ -0,0 +1,45 @@
1
+ # Task framing
2
+
3
+ Stack-agnostic. Run this **before** any decomposition: state the goal frame, elicit requirements, name the evaluation oracle, and hand back an information-sufficiency verdict. Bounded/spike tasks emit a thin frame only (see the ratchet at the end).
4
+
5
+ ## Goal frame
6
+
7
+ Capture, in the brief:
8
+
9
+ - **Goal** — what the task must achieve, in one or two sentences.
10
+ - **User value** — who benefits and why it matters; the problem being solved.
11
+ - **Success criteria** — observable outcomes that define this task as successful.
12
+ - **Result-evaluation criteria** — how the *result* is judged (the named oracle below), distinct from the process being followed.
13
+
14
+ A goal frame is required before decomposition. Do not start task-writing from an unstated goal.
15
+
16
+ ## Requirements elicitation
17
+
18
+ - **Functional requirements** — what the system must do; each traceable to an acceptance-criterion ID (`AC-1`, …).
19
+ - **Non-functional requirements** — performance, security, compatibility, operability, and similar constraints as applicable; also traceable to an AC-ID.
20
+ - Write each criterion so it is **testable and unambiguous** (`Given/When/Then` or a checklist item).
21
+ - Every requirement maps to at least one AC-ID and every AC-ID maps to at least one requirement. No orphan requirements, no untraceable criteria.
22
+
23
+ ## Success & result-evaluation criteria
24
+
25
+ - **Definition of done** — the conditions under which the task (or a work package) is complete.
26
+ - **Named evaluation oracle** — the concrete mechanism that decides pass/fail: a structural gate, a reviewer parity check, a test suite, or an explicit human approval. Name it; do not leave "looks good" as the oracle.
27
+ - The oracle is per task class: mechanical work → the repo gate script; prose/contract work → the named reviewer plus the structural gate.
28
+ - **Re-anchor target.** The goal frame is the anchor a drifted run returns to (`quality/self-review-and-context-hygiene`): on a detected drift, re-read the goal frame + the current plan, then repair the drift before re-running the affected gate.
29
+
30
+ ## Information-sufficiency verdict
31
+
32
+ State exactly one verdict **before** decomposition:
33
+
34
+ - **`sufficient`** — goal, requirements, and constraints are enough to decompose and proceed.
35
+ - **`insufficient`** — record the unstated **assumptions**, open **unknowns**, and **blockers**; route them to `open_questions` in the brief and mark the analysis `applyReadiness: blocked`. Do not decompose on an `insufficient` frame.
36
+
37
+ Rules:
38
+
39
+ - Ask **at most three** questions per iteration; prefer the single question that unblocks Definition of Ready.
40
+ - An `insufficient` verdict that routes to a human gate must not be bypassed by inventing requirements.
41
+ - Re-state the verdict after new answers arrive; it can flip from `insufficient` to `sufficient`.
42
+
43
+ ## Ratchet (bounded / spike)
44
+
45
+ Bounded and spike tasks emit a **thin frame only** — goal, user value, and the defining criteria; skip the full requirements matrix, epics, and context-budget machinery. Ratchet up when a bounded task reveals architectural scope. Never ratchet down to skip a required verification gate.
@@ -8,10 +8,20 @@ Typical feature with data and UI. Concrete directories and rule stems — in the
8
8
  2. **Transport / DTO** — DTOs and mappers Domain ↔ transport (must not leak into UI).
9
9
  3. **Services / Data** — repository / API-service implementations via the stack’s public clients.
10
10
  4. **State** — store / ViewModel / use cases; no direct HTTP and no DTOs in UI.
11
- 5. **UI** — thin views/components; data via state; design system. If the prompt or `brief.md` contains a `figma.com` URL, **mockup review must complete** (or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue`) **before UI work**. When required-signal and **no** `figma.com`, **`ux-design.md` must exist** (not `INCOMPLETE`) before UI work — else blocked, hand back to analyst. Non-UI tasks no-op these gates.
11
+ 5. **UI** — thin views/components; data via state; design system. If the prompt or `brief.md` contains a `figma.com` URL, **mockup review must complete** (or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue`) **before UI work**. When required-signal and **no** `figma.com`, **`ux-design.md` must exist** (not `INCOMPLETE`) before UI work — else blocked, hand back to analyst. Non-UI tasks no-op these gates. When a mockup contract exists for the WP, the UI step consumes it (per-node spec = the binding baseline) and a **mandatory post-implementation verification gate** runs against it at every declared viewport — screenshot / value / state / structural-parity diff plus a freeze re-check; unmapped implemented components are findings, not silent additions.
12
12
  6. **Tests** — unit for mappers / non-trivial logic; e2e/UI per stack convention.
13
13
  7. **Completion** — stack post-change gate (lint/build) + package/toolchain rules. When the current WP spans **more than one** layer or module, `implementation.md` includes a **Code Map** (3–8 annotated repo-relative paths) and **Suggested Review Order** (`concern | path:line | ≤15 word note`). Omit both for a single-file or single-layer WP.
14
14
 
15
+ ## Iterative refinement loop
16
+
17
+ Every stage runs the named loop **draft → evaluate against named criteria → refine**:
18
+
19
+ - **Draft** the artifact (or work package) for the stage.
20
+ - **Evaluate** it against the stage's "done when" / exit criteria with the **named oracle** — a structural gate, a reviewer parity check, a test suite, or a human approval.
21
+ - **Refine** and re-evaluate until the oracle passes or the human re-scopes; loop back to the owning task, never forward past a failed oracle.
22
+
23
+ **Exit criteria:** a layer or stage is complete only when its named criteria hold (mapper tests green, parity check passes, gate output clean). Do not advance to the next checklist step while the current step's oracle fails; a repeatedly failing oracle triggers **plan revision**.
24
+
15
25
  ## Data flow (orientation)
16
26
 
17
27
  ```mermaid
@@ -0,0 +1,29 @@
1
+ # Preset goals
2
+
3
+ Rules for **preset authors** (`packages/ai-rules/presets/**`). Requestable; not always-on in consumer apps.
4
+
5
+ ## Primary goal
6
+
7
+ Presets exist so agents can run **simple and complex tasks autonomously**, at **maximum quality**, respecting each **project's specifics**. Every rule, agent, command, hook, and generated artifact must serve that — or not be merged.
8
+
9
+ - **Simple tasks** — fast and frictionless: no new ceremony, no extra mandatory steps.
10
+ - **Complex tasks** — fully supported: never trade away capability, gates, or safety for a smaller diff.
11
+ - **Maximum quality** — prefer the better outcome; never regress a standard.
12
+ - **Project specifics** — stay adaptable; never hard-code one project's paths or tools into shared prose.
13
+
14
+ ## Priority
15
+
16
+ 1. This goal — highest.
17
+ 2. The task's explicit goal — achieved *through* (1), never against it.
18
+ 3. The sibling meta-rules — mechanics that keep (1) true.
19
+
20
+ A task goal that conflicts with (1) is a **blocker**: reconcile before merging.
21
+
22
+ ## See also
23
+
24
+ - `preset-writing-style` — concise, no-demagogy prose.
25
+ - `preset-layering` — where a change belongs (core → stack → platform).
26
+ - `preset-twin-sync` — SoT, same-PR twins, generated trees.
27
+ - `preset-token-budget` — always-on caps; meta rules stay requestable.
28
+ - `preset-pr-checklist` — the merge checklist.
29
+ - `preset-no-cross-stack-leakage` — stack-agnostic wording.
@@ -22,4 +22,4 @@ Rules for **preset authors** (`packages/ai-rules/presets/**`). Not always-on in
22
22
  - Per stack: **Cursor** `presets/cursor/<stack>/` → Claude twin same PR.
23
23
  - `_shared` is **not** a `--preset` and is not copied by CLI `init`.
24
24
 
25
- See also: `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`.
25
+ See also: `preset-goals`, `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`.
@@ -4,6 +4,8 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
4
4
 
5
5
  ## Before merge
6
6
 
7
+ - [ ] **Goal:** does the change serve the presets' primary goal (`preset-goals` — autonomous simple **and** complex execution, maximum quality, project specifics)?
8
+ - [ ] **Writing:** rules concise and testable, no demagogy or duplicated prose (`preset-writing-style`)
7
9
  - [ ] **SoT:** edits in `packages/…` (not only root `.cursor/`)
8
10
  - [ ] **Core:** if `_shared/core/**` changed — all `<!-- shared-core: … -->` consumers updated (or documented intentional fork)
9
11
  - [ ] **Twin:** Cursor change → Claude twin **same PR** (**FAIL** if missing on next, nuxt, svelte, ios-swift, android-kotlin, go, java, mcp-ts, php-hexagonal, and php-laravel — see `preset-twin-sync`)
@@ -24,6 +26,8 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
24
26
 
25
27
  ## Pointers
26
28
 
29
+ - Goal: `preset-goals`
30
+ - Writing style: `preset-writing-style`
27
31
  - Layering: `preset-layering`
28
32
  - Sync: `preset-twin-sync`
29
33
  - Budget: `preset-token-budget`