@bonesofspring/ai-rules 0.2.32 → 0.2.34

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 (1179) 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 +5 -1
  7. package/presets/_shared/README.md +10 -4
  8. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +61 -0
  9. package/presets/_shared/core/agent-team/agent-task-metrics.md +12 -1
  10. package/presets/_shared/core/agent-team/agent-team-intake.md +3 -0
  11. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +39 -5
  12. package/presets/_shared/core/agent-team/language-policy.md +41 -0
  13. package/presets/_shared/core/agent-team/plan-graph.md +63 -0
  14. package/presets/_shared/core/agent-team/task-classification.md +4 -0
  15. package/presets/_shared/core/agent-team/task-framing.md +45 -0
  16. package/presets/_shared/core/architecture/feature-delivery-workflow.md +11 -1
  17. package/presets/_shared/core/meta/preset-goals.md +29 -0
  18. package/presets/_shared/core/meta/preset-layering.md +1 -1
  19. package/presets/_shared/core/meta/preset-pr-checklist.md +4 -0
  20. package/presets/_shared/core/meta/preset-twin-sync.md +19 -77
  21. package/presets/_shared/core/meta/preset-writing-style.md +40 -0
  22. package/presets/_shared/core/quality/code-quality-and-refactoring.md +20 -1
  23. package/presets/_shared/core/quality/context-and-iteration.md +29 -0
  24. package/presets/_shared/core/quality/self-review-and-context-hygiene.md +51 -0
  25. package/presets/_shared/core/quality/verification-before-completion.md +4 -0
  26. package/presets/_shared/core/review/mockup-review.md +56 -1
  27. package/presets/claude/android-kotlin/REPO_AGENTS.md +3 -0
  28. package/presets/claude/android-kotlin/agents/README.md +6 -0
  29. package/presets/claude/android-kotlin/agents/build-verifier.md +12 -0
  30. package/presets/claude/android-kotlin/agents/code-reviewer.md +12 -0
  31. package/presets/claude/android-kotlin/agents/debugger.md +12 -0
  32. package/presets/claude/android-kotlin/agents/feature-developer.md +12 -0
  33. package/presets/claude/android-kotlin/agents/task-analyst.md +30 -0
  34. package/presets/claude/android-kotlin/agents/task-router.md +18 -0
  35. package/presets/claude/android-kotlin/ai-local/conventions.md +8 -0
  36. package/presets/claude/android-kotlin/commands/task-continue.md +8 -0
  37. package/presets/claude/android-kotlin/commands/task.md +14 -1
  38. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +369 -16
  39. package/presets/claude/android-kotlin/rules/README.md +5 -0
  40. package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +4 -0
  41. package/presets/claude/android-kotlin/rules/stack/android-app-core.md +6 -0
  42. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +3 -0
  43. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +43 -2
  44. package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +4 -0
  45. package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +20 -1
  46. package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +52 -0
  47. package/presets/claude/android-kotlin/rules/tooling-and-review/mockup-review.md +56 -1
  48. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-goals.md +40 -0
  49. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-layering.md +1 -1
  50. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  51. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +19 -77
  52. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-writing-style.md +51 -0
  53. package/presets/claude/android-kotlin/team/README.md +21 -1
  54. package/presets/claude/go/REPO_AGENTS.md +3 -0
  55. package/presets/claude/go/agents/README.md +6 -0
  56. package/presets/claude/go/agents/build-verifier.md +12 -0
  57. package/presets/claude/go/agents/code-reviewer.md +12 -0
  58. package/presets/claude/go/agents/debugger.md +12 -0
  59. package/presets/claude/go/agents/feature-developer.md +12 -0
  60. package/presets/claude/go/agents/task-analyst.md +30 -0
  61. package/presets/claude/go/agents/task-router.md +18 -0
  62. package/presets/claude/go/ai-local/conventions.md +8 -0
  63. package/presets/claude/go/commands/task-continue.md +8 -0
  64. package/presets/claude/go/commands/task.md +14 -1
  65. package/presets/claude/go/hooks/chain-team-phases.sh +367 -16
  66. package/presets/claude/go/rules/README.md +5 -0
  67. package/presets/claude/go/rules/architecture/feature-delivery.md +4 -0
  68. package/presets/claude/go/rules/stack/go-app-core.md +6 -0
  69. package/presets/claude/go/rules/tooling-and-review/README.md +1 -0
  70. package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +3 -0
  71. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +42 -1
  72. package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +4 -0
  73. package/presets/claude/go/rules/tooling-and-review/code-quality.md +20 -1
  74. package/presets/claude/go/rules/tooling-and-review/language-policy.md +52 -0
  75. package/presets/claude/go/rules/tooling-and-review/preset-goals.md +40 -0
  76. package/presets/claude/go/rules/tooling-and-review/preset-layering.md +1 -1
  77. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  78. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +19 -77
  79. package/presets/claude/go/rules/tooling-and-review/preset-writing-style.md +51 -0
  80. package/presets/claude/go/team/README.md +21 -1
  81. package/presets/claude/ios-swift/REPO_AGENTS.md +3 -0
  82. package/presets/claude/ios-swift/agents/README.md +6 -0
  83. package/presets/claude/ios-swift/agents/build-verifier.md +12 -0
  84. package/presets/claude/ios-swift/agents/code-reviewer.md +12 -0
  85. package/presets/claude/ios-swift/agents/debugger.md +12 -0
  86. package/presets/claude/ios-swift/agents/feature-developer.md +12 -0
  87. package/presets/claude/ios-swift/agents/task-analyst.md +30 -0
  88. package/presets/claude/ios-swift/agents/task-router.md +18 -0
  89. package/presets/claude/ios-swift/ai-local/conventions.md +8 -0
  90. package/presets/claude/ios-swift/commands/task-continue.md +8 -0
  91. package/presets/claude/ios-swift/commands/task.md +14 -1
  92. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +369 -16
  93. package/presets/claude/ios-swift/rules/README.md +4 -0
  94. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +4 -0
  95. package/presets/claude/ios-swift/rules/stack/ios-app-core.md +6 -0
  96. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +3 -0
  97. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +43 -2
  98. package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +4 -0
  99. package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +20 -1
  100. package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +52 -0
  101. package/presets/claude/ios-swift/rules/tooling-and-review/mockup-review.md +56 -1
  102. package/presets/claude/ios-swift/rules/tooling-and-review/preset-goals.md +40 -0
  103. package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +1 -1
  104. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  105. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +19 -77
  106. package/presets/claude/ios-swift/rules/tooling-and-review/preset-writing-style.md +51 -0
  107. package/presets/claude/ios-swift/team/README.md +21 -1
  108. package/presets/claude/java/REPO_AGENTS.md +3 -0
  109. package/presets/claude/java/agents/README.md +6 -0
  110. package/presets/claude/java/agents/build-verifier.md +12 -0
  111. package/presets/claude/java/agents/code-reviewer.md +12 -0
  112. package/presets/claude/java/agents/debugger.md +12 -0
  113. package/presets/claude/java/agents/feature-developer.md +12 -0
  114. package/presets/claude/java/agents/task-analyst.md +30 -0
  115. package/presets/claude/java/agents/task-router.md +18 -0
  116. package/presets/claude/java/ai-local/conventions.md +8 -0
  117. package/presets/claude/java/commands/task-continue.md +8 -0
  118. package/presets/claude/java/commands/task.md +14 -1
  119. package/presets/claude/java/hooks/chain-team-phases.sh +367 -16
  120. package/presets/claude/java/rules/README.md +5 -0
  121. package/presets/claude/java/rules/architecture/feature-delivery.md +4 -0
  122. package/presets/claude/java/rules/stack/java-app-core.md +6 -0
  123. package/presets/claude/java/rules/tooling-and-review/README.md +1 -0
  124. package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +3 -0
  125. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +42 -1
  126. package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +4 -0
  127. package/presets/claude/java/rules/tooling-and-review/code-quality.md +20 -1
  128. package/presets/claude/java/rules/tooling-and-review/language-policy.md +52 -0
  129. package/presets/claude/java/rules/tooling-and-review/preset-goals.md +40 -0
  130. package/presets/claude/java/rules/tooling-and-review/preset-layering.md +1 -1
  131. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  132. package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +19 -77
  133. package/presets/claude/java/rules/tooling-and-review/preset-writing-style.md +51 -0
  134. package/presets/claude/java/team/README.md +21 -1
  135. package/presets/claude/mcp-ts/REPO_AGENTS.md +3 -0
  136. package/presets/claude/mcp-ts/agents/README.md +6 -0
  137. package/presets/claude/mcp-ts/agents/build-verifier.md +12 -0
  138. package/presets/claude/mcp-ts/agents/feature-developer.md +12 -0
  139. package/presets/claude/mcp-ts/agents/task-analyst.md +30 -0
  140. package/presets/claude/mcp-ts/agents/task-router.md +18 -0
  141. package/presets/claude/mcp-ts/ai-local/conventions.md +8 -0
  142. package/presets/claude/mcp-ts/commands/task-continue.md +8 -0
  143. package/presets/claude/mcp-ts/commands/task.md +14 -1
  144. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +367 -16
  145. package/presets/claude/mcp-ts/rules/README.md +5 -0
  146. package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +4 -0
  147. package/presets/claude/mcp-ts/rules/stack/mcp-ts-app-core.md +6 -0
  148. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +3 -0
  149. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +42 -1
  150. package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +4 -0
  151. package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +20 -1
  152. package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +52 -0
  153. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-goals.md +40 -0
  154. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +1 -1
  155. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  156. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +19 -77
  157. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-writing-style.md +51 -0
  158. package/presets/claude/mcp-ts/team/README.md +21 -1
  159. package/presets/claude/next/REPO_AGENTS.md +3 -0
  160. package/presets/claude/next/agents/README.md +6 -0
  161. package/presets/claude/next/agents/build-verifier.md +12 -0
  162. package/presets/claude/next/agents/code-reviewer.md +23 -0
  163. package/presets/claude/next/agents/debugger.md +12 -0
  164. package/presets/claude/next/agents/feature-developer.md +20 -2
  165. package/presets/claude/next/agents/mockup-reviewer.md +25 -4
  166. package/presets/claude/next/agents/task-analyst.md +30 -0
  167. package/presets/claude/next/agents/task-router.md +18 -0
  168. package/presets/claude/next/ai-local/conventions.md +8 -0
  169. package/presets/claude/next/commands/task-continue.md +8 -0
  170. package/presets/claude/next/commands/task.md +14 -1
  171. package/presets/claude/next/hooks/chain-team-phases.sh +369 -16
  172. package/presets/claude/next/rules/README.md +4 -0
  173. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +8 -0
  174. package/presets/claude/next/rules/stack/next-app-core.md +6 -0
  175. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +3 -0
  176. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +43 -2
  177. package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +4 -0
  178. package/presets/claude/next/rules/tooling-and-review/code-quality.md +20 -1
  179. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +10 -0
  180. package/presets/claude/next/rules/tooling-and-review/language-policy.md +52 -0
  181. package/presets/claude/next/rules/tooling-and-review/mockup-review.md +77 -1
  182. package/presets/claude/next/rules/tooling-and-review/preset-goals.md +40 -0
  183. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +1 -1
  184. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  185. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +19 -77
  186. package/presets/claude/next/rules/tooling-and-review/preset-writing-style.md +51 -0
  187. package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +23 -1
  188. package/presets/claude/next/skills/README.md +1 -0
  189. package/presets/claude/next/skills/code-review/SKILL.md +1 -1
  190. package/presets/claude/next/skills/figma-fidelity/SKILL.md +96 -0
  191. package/presets/claude/next/skills/mockup-review/SKILL.md +5 -1
  192. package/presets/claude/next/team/README.md +22 -1
  193. package/presets/claude/next/team/fixtures/artifact-manifest.example.json +1 -1
  194. package/presets/claude/next/team/fixtures/feature-parallel.json +84 -0
  195. package/presets/claude/nuxt/REPO_AGENTS.md +3 -0
  196. package/presets/claude/nuxt/agents/README.md +6 -0
  197. package/presets/claude/nuxt/agents/build-verifier.md +12 -0
  198. package/presets/claude/nuxt/agents/code-reviewer.md +12 -0
  199. package/presets/claude/nuxt/agents/debugger.md +12 -0
  200. package/presets/claude/nuxt/agents/feature-developer.md +12 -0
  201. package/presets/claude/nuxt/agents/task-analyst.md +30 -0
  202. package/presets/claude/nuxt/agents/task-router.md +18 -0
  203. package/presets/claude/nuxt/ai-local/conventions.md +8 -0
  204. package/presets/claude/nuxt/commands/task-continue.md +8 -0
  205. package/presets/claude/nuxt/commands/task.md +14 -1
  206. package/presets/claude/nuxt/hooks/chain-team-phases.sh +369 -16
  207. package/presets/claude/nuxt/rules/README.md +4 -0
  208. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +4 -0
  209. package/presets/claude/nuxt/rules/stack/nuxt-app-core.md +6 -0
  210. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +3 -0
  211. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +43 -2
  212. package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +4 -0
  213. package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +20 -1
  214. package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +52 -0
  215. package/presets/claude/nuxt/rules/tooling-and-review/mockup-review.md +56 -1
  216. package/presets/claude/nuxt/rules/tooling-and-review/preset-goals.md +40 -0
  217. package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +1 -1
  218. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  219. package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +19 -77
  220. package/presets/claude/nuxt/rules/tooling-and-review/preset-writing-style.md +51 -0
  221. package/presets/claude/nuxt/team/README.md +21 -1
  222. package/presets/claude/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  223. package/presets/claude/php-hexagonal/REPO_AGENTS.md +3 -0
  224. package/presets/claude/php-hexagonal/agents/README.md +6 -0
  225. package/presets/claude/php-hexagonal/agents/build-verifier.md +12 -0
  226. package/presets/claude/php-hexagonal/agents/code-reviewer.md +12 -0
  227. package/presets/claude/php-hexagonal/agents/debugger.md +12 -0
  228. package/presets/claude/php-hexagonal/agents/feature-developer.md +12 -0
  229. package/presets/claude/php-hexagonal/agents/task-analyst.md +30 -0
  230. package/presets/claude/php-hexagonal/agents/task-router.md +18 -0
  231. package/presets/claude/php-hexagonal/ai-local/conventions.md +8 -0
  232. package/presets/claude/php-hexagonal/commands/task-continue.md +8 -0
  233. package/presets/claude/php-hexagonal/commands/task.md +14 -1
  234. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +367 -16
  235. package/presets/claude/php-hexagonal/rules/README.md +5 -0
  236. package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +4 -0
  237. package/presets/claude/php-hexagonal/rules/stack/php-app-core.md +6 -0
  238. package/presets/claude/php-hexagonal/rules/tooling-and-review/README.md +1 -0
  239. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +3 -0
  240. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +42 -1
  241. package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +4 -0
  242. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +20 -1
  243. package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +52 -0
  244. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-goals.md +40 -0
  245. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +1 -1
  246. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  247. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +19 -77
  248. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-writing-style.md +51 -0
  249. package/presets/claude/php-hexagonal/team/README.md +21 -1
  250. package/presets/claude/php-laravel/REPO_AGENTS.md +3 -0
  251. package/presets/claude/php-laravel/agents/README.md +6 -0
  252. package/presets/claude/php-laravel/agents/build-verifier.md +12 -0
  253. package/presets/claude/php-laravel/agents/code-reviewer.md +12 -0
  254. package/presets/claude/php-laravel/agents/debugger.md +12 -0
  255. package/presets/claude/php-laravel/agents/feature-developer.md +12 -0
  256. package/presets/claude/php-laravel/agents/task-analyst.md +30 -0
  257. package/presets/claude/php-laravel/agents/task-router.md +18 -0
  258. package/presets/claude/php-laravel/ai-local/conventions.md +8 -0
  259. package/presets/claude/php-laravel/commands/task-continue.md +8 -0
  260. package/presets/claude/php-laravel/commands/task.md +14 -1
  261. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +367 -16
  262. package/presets/claude/php-laravel/rules/README.md +5 -0
  263. package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +4 -0
  264. package/presets/claude/php-laravel/rules/stack/laravel-app-core.md +6 -0
  265. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +3 -0
  266. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +42 -1
  267. package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +4 -0
  268. package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +20 -1
  269. package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +52 -0
  270. package/presets/claude/php-laravel/rules/tooling-and-review/preset-goals.md +40 -0
  271. package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +1 -1
  272. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  273. package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +19 -77
  274. package/presets/claude/php-laravel/rules/tooling-and-review/preset-writing-style.md +51 -0
  275. package/presets/claude/php-laravel/team/README.md +21 -1
  276. package/presets/claude/svelte/REPO_AGENTS.md +3 -0
  277. package/presets/claude/svelte/agents/README.md +6 -0
  278. package/presets/claude/svelte/agents/build-verifier.md +12 -0
  279. package/presets/claude/svelte/agents/code-reviewer.md +12 -0
  280. package/presets/claude/svelte/agents/debugger.md +12 -0
  281. package/presets/claude/svelte/agents/feature-developer.md +12 -0
  282. package/presets/claude/svelte/agents/task-analyst.md +30 -0
  283. package/presets/claude/svelte/agents/task-router.md +18 -0
  284. package/presets/claude/svelte/ai-local/conventions.md +8 -0
  285. package/presets/claude/svelte/commands/task-continue.md +8 -0
  286. package/presets/claude/svelte/commands/task.md +14 -1
  287. package/presets/claude/svelte/hooks/chain-team-phases.sh +369 -16
  288. package/presets/claude/svelte/rules/README.md +4 -0
  289. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +4 -0
  290. package/presets/claude/svelte/rules/stack/svelte-app-core.md +6 -0
  291. package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +3 -0
  292. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +43 -2
  293. package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +4 -0
  294. package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +20 -1
  295. package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +52 -0
  296. package/presets/claude/svelte/rules/tooling-and-review/mockup-review.md +56 -1
  297. package/presets/claude/svelte/rules/tooling-and-review/preset-goals.md +40 -0
  298. package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +1 -1
  299. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +4 -0
  300. package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +19 -77
  301. package/presets/claude/svelte/rules/tooling-and-review/preset-writing-style.md +51 -0
  302. package/presets/claude/svelte/team/README.md +21 -1
  303. package/presets/claude/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  304. package/presets/cursor/android-kotlin/REPO_AGENTS.md +3 -0
  305. package/presets/cursor/android-kotlin/agents/README.md +7 -0
  306. package/presets/cursor/android-kotlin/agents/build-verifier.md +12 -0
  307. package/presets/cursor/android-kotlin/agents/code-reviewer.md +12 -0
  308. package/presets/cursor/android-kotlin/agents/debugger.md +12 -0
  309. package/presets/cursor/android-kotlin/agents/feature-developer.md +12 -0
  310. package/presets/cursor/android-kotlin/agents/task-analyst.md +31 -1
  311. package/presets/cursor/android-kotlin/agents/task-router.md +18 -0
  312. package/presets/cursor/android-kotlin/ai-local/conventions.md +8 -0
  313. package/presets/cursor/android-kotlin/commands/task-continue.md +8 -0
  314. package/presets/cursor/android-kotlin/commands/task.md +14 -1
  315. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +369 -16
  316. package/presets/cursor/android-kotlin/rules/README.md +3 -1
  317. package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +3 -0
  318. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +43 -2
  319. package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +4 -0
  320. package/presets/cursor/android-kotlin/rules/android-app-core.mdc +6 -0
  321. package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +20 -1
  322. package/presets/cursor/android-kotlin/rules/feature-delivery-workflow.mdc +4 -0
  323. package/presets/cursor/android-kotlin/rules/language-policy.mdc +52 -0
  324. package/presets/cursor/android-kotlin/rules/mockup-review.mdc +56 -1
  325. package/presets/cursor/android-kotlin/rules/preset-goals.mdc +40 -0
  326. package/presets/cursor/android-kotlin/rules/preset-layering.mdc +1 -1
  327. package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +4 -0
  328. package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +19 -77
  329. package/presets/cursor/android-kotlin/rules/preset-writing-style.mdc +51 -0
  330. package/presets/cursor/android-kotlin/team/README.md +15 -1
  331. package/presets/cursor/go/REPO_AGENTS.md +3 -0
  332. package/presets/cursor/go/agents/README.md +7 -0
  333. package/presets/cursor/go/agents/build-verifier.md +12 -0
  334. package/presets/cursor/go/agents/code-reviewer.md +12 -0
  335. package/presets/cursor/go/agents/debugger.md +12 -0
  336. package/presets/cursor/go/agents/feature-developer.md +12 -0
  337. package/presets/cursor/go/agents/task-analyst.md +31 -1
  338. package/presets/cursor/go/agents/task-router.md +18 -0
  339. package/presets/cursor/go/ai-local/conventions.md +8 -0
  340. package/presets/cursor/go/commands/task-continue.md +8 -0
  341. package/presets/cursor/go/commands/task.md +14 -1
  342. package/presets/cursor/go/hooks/chain-team-phases.sh +367 -16
  343. package/presets/cursor/go/rules/README.md +5 -3
  344. package/presets/cursor/go/rules/agent-team-intake.mdc +3 -0
  345. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +42 -1
  346. package/presets/cursor/go/rules/ai-local-overlay.mdc +4 -0
  347. package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +20 -1
  348. package/presets/cursor/go/rules/feature-delivery-workflow.mdc +4 -0
  349. package/presets/cursor/go/rules/go-app-core.mdc +6 -0
  350. package/presets/cursor/go/rules/language-policy.mdc +52 -0
  351. package/presets/cursor/go/rules/preset-goals.mdc +40 -0
  352. package/presets/cursor/go/rules/preset-layering.mdc +1 -1
  353. package/presets/cursor/go/rules/preset-pr-checklist.mdc +4 -0
  354. package/presets/cursor/go/rules/preset-twin-sync.mdc +19 -77
  355. package/presets/cursor/go/rules/preset-writing-style.mdc +51 -0
  356. package/presets/cursor/go/team/README.md +15 -1
  357. package/presets/cursor/ios-swift/REPO_AGENTS.md +3 -0
  358. package/presets/cursor/ios-swift/agents/README.md +7 -0
  359. package/presets/cursor/ios-swift/agents/build-verifier.md +12 -0
  360. package/presets/cursor/ios-swift/agents/code-reviewer.md +12 -0
  361. package/presets/cursor/ios-swift/agents/debugger.md +12 -0
  362. package/presets/cursor/ios-swift/agents/feature-developer.md +12 -0
  363. package/presets/cursor/ios-swift/agents/task-analyst.md +31 -1
  364. package/presets/cursor/ios-swift/agents/task-router.md +18 -0
  365. package/presets/cursor/ios-swift/ai-local/conventions.md +8 -0
  366. package/presets/cursor/ios-swift/commands/task-continue.md +8 -0
  367. package/presets/cursor/ios-swift/commands/task.md +14 -1
  368. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +369 -16
  369. package/presets/cursor/ios-swift/rules/README.md +4 -2
  370. package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +3 -0
  371. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +43 -2
  372. package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +4 -0
  373. package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +20 -1
  374. package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +4 -0
  375. package/presets/cursor/ios-swift/rules/ios-app-core.mdc +6 -0
  376. package/presets/cursor/ios-swift/rules/language-policy.mdc +52 -0
  377. package/presets/cursor/ios-swift/rules/mockup-review.mdc +56 -1
  378. package/presets/cursor/ios-swift/rules/preset-goals.mdc +40 -0
  379. package/presets/cursor/ios-swift/rules/preset-layering.mdc +1 -1
  380. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +4 -0
  381. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +19 -77
  382. package/presets/cursor/ios-swift/rules/preset-writing-style.mdc +51 -0
  383. package/presets/cursor/ios-swift/team/README.md +15 -1
  384. package/presets/cursor/java/REPO_AGENTS.md +3 -0
  385. package/presets/cursor/java/agents/README.md +7 -0
  386. package/presets/cursor/java/agents/build-verifier.md +12 -0
  387. package/presets/cursor/java/agents/code-reviewer.md +12 -0
  388. package/presets/cursor/java/agents/debugger.md +12 -0
  389. package/presets/cursor/java/agents/feature-developer.md +12 -0
  390. package/presets/cursor/java/agents/task-analyst.md +31 -1
  391. package/presets/cursor/java/agents/task-router.md +18 -0
  392. package/presets/cursor/java/ai-local/conventions.md +8 -0
  393. package/presets/cursor/java/commands/task-continue.md +8 -0
  394. package/presets/cursor/java/commands/task.md +14 -1
  395. package/presets/cursor/java/hooks/chain-team-phases.sh +367 -16
  396. package/presets/cursor/java/rules/README.md +5 -3
  397. package/presets/cursor/java/rules/agent-team-intake.mdc +3 -0
  398. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +42 -1
  399. package/presets/cursor/java/rules/ai-local-overlay.mdc +4 -0
  400. package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +20 -1
  401. package/presets/cursor/java/rules/feature-delivery-workflow.mdc +4 -0
  402. package/presets/cursor/java/rules/java-app-core.mdc +6 -0
  403. package/presets/cursor/java/rules/language-policy.mdc +52 -0
  404. package/presets/cursor/java/rules/preset-goals.mdc +40 -0
  405. package/presets/cursor/java/rules/preset-layering.mdc +1 -1
  406. package/presets/cursor/java/rules/preset-pr-checklist.mdc +4 -0
  407. package/presets/cursor/java/rules/preset-twin-sync.mdc +19 -77
  408. package/presets/cursor/java/rules/preset-writing-style.mdc +51 -0
  409. package/presets/cursor/java/team/README.md +15 -1
  410. package/presets/cursor/mcp-ts/REPO_AGENTS.md +3 -0
  411. package/presets/cursor/mcp-ts/agents/README.md +7 -0
  412. package/presets/cursor/mcp-ts/agents/build-verifier.md +12 -0
  413. package/presets/cursor/mcp-ts/agents/feature-developer.md +12 -0
  414. package/presets/cursor/mcp-ts/agents/task-analyst.md +31 -1
  415. package/presets/cursor/mcp-ts/agents/task-router.md +18 -0
  416. package/presets/cursor/mcp-ts/ai-local/conventions.md +8 -0
  417. package/presets/cursor/mcp-ts/commands/task-continue.md +8 -0
  418. package/presets/cursor/mcp-ts/commands/task.md +14 -1
  419. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +367 -16
  420. package/presets/cursor/mcp-ts/rules/README.md +4 -2
  421. package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +3 -0
  422. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +42 -1
  423. package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +4 -0
  424. package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +20 -1
  425. package/presets/cursor/mcp-ts/rules/feature-delivery-workflow.mdc +4 -0
  426. package/presets/cursor/mcp-ts/rules/language-policy.mdc +52 -0
  427. package/presets/cursor/mcp-ts/rules/mcp-ts-app-core.mdc +6 -0
  428. package/presets/cursor/mcp-ts/rules/preset-goals.mdc +40 -0
  429. package/presets/cursor/mcp-ts/rules/preset-layering.mdc +1 -1
  430. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +4 -0
  431. package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +19 -77
  432. package/presets/cursor/mcp-ts/rules/preset-writing-style.mdc +51 -0
  433. package/presets/cursor/mcp-ts/team/README.md +15 -1
  434. package/presets/cursor/next/REPO_AGENTS.md +3 -0
  435. package/presets/cursor/next/agents/README.md +7 -1
  436. package/presets/cursor/next/agents/build-verifier.md +12 -0
  437. package/presets/cursor/next/agents/code-reviewer.md +23 -0
  438. package/presets/cursor/next/agents/debugger.md +12 -0
  439. package/presets/cursor/next/agents/feature-developer.md +20 -2
  440. package/presets/cursor/next/agents/mockup-reviewer.md +25 -4
  441. package/presets/cursor/next/agents/task-analyst.md +43 -2
  442. package/presets/cursor/next/agents/task-router.md +18 -0
  443. package/presets/cursor/next/ai-local/conventions.md +8 -0
  444. package/presets/cursor/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  445. package/presets/cursor/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
  446. package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
  447. package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
  448. package/presets/cursor/next/commands/task-continue.md +8 -0
  449. package/presets/cursor/next/commands/task.md +14 -1
  450. package/presets/cursor/next/hooks/chain-team-phases.sh +369 -16
  451. package/presets/cursor/next/rules/README.md +3 -1
  452. package/presets/cursor/next/rules/agent-team-intake.mdc +3 -0
  453. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +47 -2
  454. package/presets/cursor/next/rules/ai-local-overlay.mdc +4 -0
  455. package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +20 -1
  456. package/presets/cursor/next/rules/code-review-mr.mdc +10 -0
  457. package/presets/cursor/next/rules/design-tokens-binding.mdc +23 -1
  458. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +8 -0
  459. package/presets/cursor/next/rules/language-policy.mdc +52 -0
  460. package/presets/cursor/next/rules/mockup-review.mdc +77 -1
  461. package/presets/cursor/next/rules/next-app-core.mdc +6 -0
  462. package/presets/cursor/next/rules/preset-goals.mdc +40 -0
  463. package/presets/cursor/next/rules/preset-layering.mdc +1 -1
  464. package/presets/cursor/next/rules/preset-pr-checklist.mdc +4 -0
  465. package/presets/cursor/next/rules/preset-twin-sync.mdc +19 -77
  466. package/presets/cursor/next/rules/preset-writing-style.mdc +51 -0
  467. package/presets/cursor/next/skills/README.md +1 -0
  468. package/presets/cursor/next/skills/code-review/SKILL.md +1 -1
  469. package/presets/cursor/next/skills/figma-fidelity/SKILL.md +96 -0
  470. package/presets/cursor/next/skills/mockup-review/SKILL.md +5 -1
  471. package/presets/cursor/next/team/README.md +16 -1
  472. package/presets/cursor/next/team/fixtures/artifact-manifest.example.json +1 -1
  473. package/presets/cursor/next/team/fixtures/feature-parallel.json +84 -0
  474. package/presets/cursor/nuxt/REPO_AGENTS.md +3 -0
  475. package/presets/cursor/nuxt/agents/README.md +7 -0
  476. package/presets/cursor/nuxt/agents/build-verifier.md +12 -0
  477. package/presets/cursor/nuxt/agents/code-reviewer.md +12 -0
  478. package/presets/cursor/nuxt/agents/debugger.md +12 -0
  479. package/presets/cursor/nuxt/agents/feature-developer.md +12 -0
  480. package/presets/cursor/nuxt/agents/task-analyst.md +43 -2
  481. package/presets/cursor/nuxt/agents/task-router.md +18 -0
  482. package/presets/cursor/nuxt/ai-local/conventions.md +8 -0
  483. package/presets/cursor/nuxt/commands/task-continue.md +8 -0
  484. package/presets/cursor/nuxt/commands/task.md +14 -1
  485. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +369 -16
  486. package/presets/cursor/nuxt/rules/README.md +3 -1
  487. package/presets/cursor/nuxt/rules/agent-team-intake.mdc +3 -0
  488. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +43 -2
  489. package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +4 -0
  490. package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +20 -1
  491. package/presets/cursor/nuxt/rules/feature-delivery-workflow.mdc +4 -0
  492. package/presets/cursor/nuxt/rules/language-policy.mdc +52 -0
  493. package/presets/cursor/nuxt/rules/mockup-review.mdc +56 -1
  494. package/presets/cursor/nuxt/rules/nuxt-app-core.mdc +6 -0
  495. package/presets/cursor/nuxt/rules/preset-goals.mdc +40 -0
  496. package/presets/cursor/nuxt/rules/preset-layering.mdc +1 -1
  497. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +4 -0
  498. package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +19 -77
  499. package/presets/cursor/nuxt/rules/preset-writing-style.mdc +51 -0
  500. package/presets/cursor/nuxt/team/README.md +15 -1
  501. package/presets/cursor/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  502. package/presets/cursor/php-hexagonal/REPO_AGENTS.md +3 -0
  503. package/presets/cursor/php-hexagonal/agents/README.md +7 -0
  504. package/presets/cursor/php-hexagonal/agents/build-verifier.md +12 -0
  505. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +12 -0
  506. package/presets/cursor/php-hexagonal/agents/debugger.md +12 -0
  507. package/presets/cursor/php-hexagonal/agents/feature-developer.md +12 -0
  508. package/presets/cursor/php-hexagonal/agents/task-analyst.md +31 -1
  509. package/presets/cursor/php-hexagonal/agents/task-router.md +18 -0
  510. package/presets/cursor/php-hexagonal/ai-local/conventions.md +8 -0
  511. package/presets/cursor/php-hexagonal/commands/task-continue.md +8 -0
  512. package/presets/cursor/php-hexagonal/commands/task.md +14 -1
  513. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +367 -16
  514. package/presets/cursor/php-hexagonal/rules/README.md +5 -3
  515. package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +3 -0
  516. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +42 -1
  517. package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +4 -0
  518. package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +20 -1
  519. package/presets/cursor/php-hexagonal/rules/feature-delivery-workflow.mdc +4 -0
  520. package/presets/cursor/php-hexagonal/rules/language-policy.mdc +52 -0
  521. package/presets/cursor/php-hexagonal/rules/php-app-core.mdc +6 -0
  522. package/presets/cursor/php-hexagonal/rules/preset-goals.mdc +40 -0
  523. package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +1 -1
  524. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +4 -0
  525. package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +19 -77
  526. package/presets/cursor/php-hexagonal/rules/preset-writing-style.mdc +51 -0
  527. package/presets/cursor/php-hexagonal/team/README.md +15 -1
  528. package/presets/cursor/php-laravel/REPO_AGENTS.md +3 -0
  529. package/presets/cursor/php-laravel/agents/README.md +7 -0
  530. package/presets/cursor/php-laravel/agents/build-verifier.md +12 -0
  531. package/presets/cursor/php-laravel/agents/code-reviewer.md +12 -0
  532. package/presets/cursor/php-laravel/agents/debugger.md +12 -0
  533. package/presets/cursor/php-laravel/agents/feature-developer.md +12 -0
  534. package/presets/cursor/php-laravel/agents/task-analyst.md +31 -1
  535. package/presets/cursor/php-laravel/agents/task-router.md +18 -0
  536. package/presets/cursor/php-laravel/ai-local/conventions.md +8 -0
  537. package/presets/cursor/php-laravel/commands/task-continue.md +8 -0
  538. package/presets/cursor/php-laravel/commands/task.md +14 -1
  539. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +367 -16
  540. package/presets/cursor/php-laravel/rules/README.md +5 -3
  541. package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +3 -0
  542. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +42 -1
  543. package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +4 -0
  544. package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +20 -1
  545. package/presets/cursor/php-laravel/rules/feature-delivery-workflow.mdc +4 -0
  546. package/presets/cursor/php-laravel/rules/language-policy.mdc +52 -0
  547. package/presets/cursor/php-laravel/rules/laravel-app-core.mdc +6 -0
  548. package/presets/cursor/php-laravel/rules/preset-goals.mdc +40 -0
  549. package/presets/cursor/php-laravel/rules/preset-layering.mdc +1 -1
  550. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +4 -0
  551. package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +19 -77
  552. package/presets/cursor/php-laravel/rules/preset-writing-style.mdc +51 -0
  553. package/presets/cursor/php-laravel/team/README.md +15 -1
  554. package/presets/cursor/svelte/REPO_AGENTS.md +3 -0
  555. package/presets/cursor/svelte/agents/README.md +7 -0
  556. package/presets/cursor/svelte/agents/build-verifier.md +12 -0
  557. package/presets/cursor/svelte/agents/code-reviewer.md +12 -0
  558. package/presets/cursor/svelte/agents/debugger.md +12 -0
  559. package/presets/cursor/svelte/agents/feature-developer.md +12 -0
  560. package/presets/cursor/svelte/agents/task-analyst.md +43 -2
  561. package/presets/cursor/svelte/agents/task-router.md +18 -0
  562. package/presets/cursor/svelte/ai-local/conventions.md +8 -0
  563. package/presets/cursor/svelte/commands/task-continue.md +8 -0
  564. package/presets/cursor/svelte/commands/task.md +14 -1
  565. package/presets/cursor/svelte/hooks/chain-team-phases.sh +369 -16
  566. package/presets/cursor/svelte/rules/README.md +3 -1
  567. package/presets/cursor/svelte/rules/agent-team-intake.mdc +3 -0
  568. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +43 -2
  569. package/presets/cursor/svelte/rules/ai-local-overlay.mdc +4 -0
  570. package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +20 -1
  571. package/presets/cursor/svelte/rules/feature-delivery-workflow.mdc +4 -0
  572. package/presets/cursor/svelte/rules/language-policy.mdc +52 -0
  573. package/presets/cursor/svelte/rules/mockup-review.mdc +56 -1
  574. package/presets/cursor/svelte/rules/preset-goals.mdc +40 -0
  575. package/presets/cursor/svelte/rules/preset-layering.mdc +1 -1
  576. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +4 -0
  577. package/presets/cursor/svelte/rules/preset-twin-sync.mdc +19 -77
  578. package/presets/cursor/svelte/rules/preset-writing-style.mdc +51 -0
  579. package/presets/cursor/svelte/rules/svelte-app-core.mdc +6 -0
  580. package/presets/cursor/svelte/team/README.md +15 -1
  581. package/presets/cursor/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  582. package/presets/mavis/android-kotlin/REPO_AGENTS.md +3 -0
  583. package/presets/mavis/android-kotlin/adapter-map.json +29 -2
  584. package/presets/mavis/android-kotlin/agents/README.md +7 -0
  585. package/presets/mavis/android-kotlin/agents/build-verifier.md +12 -0
  586. package/presets/mavis/android-kotlin/agents/code-reviewer.md +12 -0
  587. package/presets/mavis/android-kotlin/agents/debugger.md +12 -0
  588. package/presets/mavis/android-kotlin/agents/feature-developer.md +12 -0
  589. package/presets/mavis/android-kotlin/agents/task-analyst.md +31 -1
  590. package/presets/mavis/android-kotlin/agents/task-router.md +18 -0
  591. package/presets/mavis/android-kotlin/ai-local/conventions.md +8 -0
  592. package/presets/mavis/android-kotlin/commands/task-continue.md +8 -0
  593. package/presets/mavis/android-kotlin/commands/task.md +14 -1
  594. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +369 -16
  595. package/presets/mavis/android-kotlin/rules/agent-team-intake.md +3 -0
  596. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +39 -5
  597. package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +4 -0
  598. package/presets/mavis/android-kotlin/rules/android-app-core.md +6 -0
  599. package/presets/mavis/android-kotlin/rules/code-quality-and-refactoring.md +20 -1
  600. package/presets/mavis/android-kotlin/rules/feature-delivery-workflow.md +4 -0
  601. package/presets/mavis/android-kotlin/rules/language-policy.md +43 -0
  602. package/presets/mavis/android-kotlin/rules/mockup-review.md +56 -1
  603. package/presets/mavis/android-kotlin/rules/preset-goals.md +31 -0
  604. package/presets/mavis/android-kotlin/rules/preset-layering.md +1 -1
  605. package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +4 -0
  606. package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +19 -77
  607. package/presets/mavis/android-kotlin/rules/preset-writing-style.md +42 -0
  608. package/presets/mavis/android-kotlin/team/README.md +15 -1
  609. package/presets/mavis/go/REPO_AGENTS.md +3 -0
  610. package/presets/mavis/go/adapter-map.json +30 -3
  611. package/presets/mavis/go/agents/README.md +5 -0
  612. package/presets/mavis/go/agents/build-verifier.md +12 -0
  613. package/presets/mavis/go/agents/code-reviewer.md +12 -0
  614. package/presets/mavis/go/agents/debugger.md +12 -0
  615. package/presets/mavis/go/agents/feature-developer.md +12 -0
  616. package/presets/mavis/go/agents/task-analyst.md +31 -1
  617. package/presets/mavis/go/agents/task-router.md +18 -0
  618. package/presets/mavis/go/ai-local/conventions.md +8 -0
  619. package/presets/mavis/go/commands/task-continue.md +8 -0
  620. package/presets/mavis/go/commands/task.md +14 -1
  621. package/presets/mavis/go/hooks/chain-team-phases.sh +367 -16
  622. package/presets/mavis/go/rules/agent-team-intake.md +3 -0
  623. package/presets/mavis/go/rules/agent-team-orchestrator.md +39 -5
  624. package/presets/mavis/go/rules/ai-local-overlay.md +4 -0
  625. package/presets/mavis/go/rules/code-quality-and-refactoring.md +20 -1
  626. package/presets/mavis/go/rules/feature-delivery-workflow.md +11 -1
  627. package/presets/mavis/go/rules/go-app-core.md +6 -0
  628. package/presets/mavis/go/rules/language-policy.md +43 -0
  629. package/presets/mavis/go/rules/preset-goals.md +31 -0
  630. package/presets/mavis/go/rules/preset-layering.md +1 -1
  631. package/presets/mavis/go/rules/preset-pr-checklist.md +4 -0
  632. package/presets/mavis/go/rules/preset-twin-sync.md +19 -77
  633. package/presets/mavis/go/rules/preset-writing-style.md +42 -0
  634. package/presets/mavis/go/team/README.md +15 -1
  635. package/presets/mavis/ios-swift/REPO_AGENTS.md +3 -0
  636. package/presets/mavis/ios-swift/adapter-map.json +29 -2
  637. package/presets/mavis/ios-swift/agents/README.md +7 -0
  638. package/presets/mavis/ios-swift/agents/build-verifier.md +12 -0
  639. package/presets/mavis/ios-swift/agents/code-reviewer.md +12 -0
  640. package/presets/mavis/ios-swift/agents/debugger.md +12 -0
  641. package/presets/mavis/ios-swift/agents/feature-developer.md +12 -0
  642. package/presets/mavis/ios-swift/agents/task-analyst.md +31 -1
  643. package/presets/mavis/ios-swift/agents/task-router.md +18 -0
  644. package/presets/mavis/ios-swift/ai-local/conventions.md +8 -0
  645. package/presets/mavis/ios-swift/commands/task-continue.md +8 -0
  646. package/presets/mavis/ios-swift/commands/task.md +14 -1
  647. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +369 -16
  648. package/presets/mavis/ios-swift/rules/agent-team-intake.md +3 -0
  649. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +39 -5
  650. package/presets/mavis/ios-swift/rules/ai-local-overlay.md +4 -0
  651. package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +20 -1
  652. package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +15 -1
  653. package/presets/mavis/ios-swift/rules/ios-app-core.md +6 -0
  654. package/presets/mavis/ios-swift/rules/language-policy.md +43 -0
  655. package/presets/mavis/ios-swift/rules/mockup-review.md +56 -1
  656. package/presets/mavis/ios-swift/rules/preset-goals.md +31 -0
  657. package/presets/mavis/ios-swift/rules/preset-layering.md +1 -1
  658. package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +4 -0
  659. package/presets/mavis/ios-swift/rules/preset-twin-sync.md +19 -77
  660. package/presets/mavis/ios-swift/rules/preset-writing-style.md +42 -0
  661. package/presets/mavis/ios-swift/team/README.md +15 -1
  662. package/presets/mavis/java/REPO_AGENTS.md +3 -0
  663. package/presets/mavis/java/adapter-map.json +30 -3
  664. package/presets/mavis/java/agents/README.md +5 -0
  665. package/presets/mavis/java/agents/build-verifier.md +12 -0
  666. package/presets/mavis/java/agents/code-reviewer.md +12 -0
  667. package/presets/mavis/java/agents/debugger.md +12 -0
  668. package/presets/mavis/java/agents/feature-developer.md +12 -0
  669. package/presets/mavis/java/agents/task-analyst.md +31 -1
  670. package/presets/mavis/java/agents/task-router.md +18 -0
  671. package/presets/mavis/java/ai-local/conventions.md +8 -0
  672. package/presets/mavis/java/commands/task-continue.md +8 -0
  673. package/presets/mavis/java/commands/task.md +14 -1
  674. package/presets/mavis/java/hooks/chain-team-phases.sh +367 -16
  675. package/presets/mavis/java/rules/agent-team-intake.md +3 -0
  676. package/presets/mavis/java/rules/agent-team-orchestrator.md +39 -5
  677. package/presets/mavis/java/rules/ai-local-overlay.md +4 -0
  678. package/presets/mavis/java/rules/code-quality-and-refactoring.md +20 -1
  679. package/presets/mavis/java/rules/feature-delivery-workflow.md +11 -1
  680. package/presets/mavis/java/rules/java-app-core.md +6 -0
  681. package/presets/mavis/java/rules/language-policy.md +43 -0
  682. package/presets/mavis/java/rules/preset-goals.md +31 -0
  683. package/presets/mavis/java/rules/preset-layering.md +1 -1
  684. package/presets/mavis/java/rules/preset-pr-checklist.md +4 -0
  685. package/presets/mavis/java/rules/preset-twin-sync.md +19 -77
  686. package/presets/mavis/java/rules/preset-writing-style.md +42 -0
  687. package/presets/mavis/java/team/README.md +15 -1
  688. package/presets/mavis/mcp-ts/REPO_AGENTS.md +3 -0
  689. package/presets/mavis/mcp-ts/adapter-map.json +28 -1
  690. package/presets/mavis/mcp-ts/agents/README.md +7 -0
  691. package/presets/mavis/mcp-ts/agents/build-verifier.md +12 -0
  692. package/presets/mavis/mcp-ts/agents/feature-developer.md +12 -0
  693. package/presets/mavis/mcp-ts/agents/task-analyst.md +31 -1
  694. package/presets/mavis/mcp-ts/agents/task-router.md +18 -0
  695. package/presets/mavis/mcp-ts/ai-local/conventions.md +8 -0
  696. package/presets/mavis/mcp-ts/commands/task-continue.md +8 -0
  697. package/presets/mavis/mcp-ts/commands/task.md +14 -1
  698. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +367 -16
  699. package/presets/mavis/mcp-ts/rules/agent-team-intake.md +3 -0
  700. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +39 -5
  701. package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +4 -0
  702. package/presets/mavis/mcp-ts/rules/code-quality-and-refactoring.md +20 -1
  703. package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +11 -1
  704. package/presets/mavis/mcp-ts/rules/language-policy.md +43 -0
  705. package/presets/mavis/mcp-ts/rules/mcp-ts-app-core.md +6 -0
  706. package/presets/mavis/mcp-ts/rules/preset-goals.md +31 -0
  707. package/presets/mavis/mcp-ts/rules/preset-layering.md +1 -1
  708. package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +4 -0
  709. package/presets/mavis/mcp-ts/rules/preset-twin-sync.md +19 -77
  710. package/presets/mavis/mcp-ts/rules/preset-writing-style.md +42 -0
  711. package/presets/mavis/mcp-ts/team/README.md +15 -1
  712. package/presets/mavis/next/REPO_AGENTS.md +3 -0
  713. package/presets/mavis/next/adapter-map.json +46 -3
  714. package/presets/mavis/next/agents/README.md +6 -0
  715. package/presets/mavis/next/agents/build-verifier.md +12 -0
  716. package/presets/mavis/next/agents/code-reviewer.md +23 -0
  717. package/presets/mavis/next/agents/debugger.md +12 -0
  718. package/presets/mavis/next/agents/feature-developer.md +20 -2
  719. package/presets/mavis/next/agents/mockup-reviewer.md +25 -4
  720. package/presets/mavis/next/agents/task-analyst.md +43 -2
  721. package/presets/mavis/next/agents/task-router.md +18 -0
  722. package/presets/mavis/next/ai-local/conventions.md +8 -0
  723. package/presets/mavis/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  724. package/presets/mavis/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
  725. package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
  726. package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
  727. package/presets/mavis/next/commands/task-continue.md +8 -0
  728. package/presets/mavis/next/commands/task.md +14 -1
  729. package/presets/mavis/next/hooks/chain-team-phases.sh +369 -16
  730. package/presets/mavis/next/rules/agent-team-intake.md +3 -0
  731. package/presets/mavis/next/rules/agent-team-orchestrator.md +39 -5
  732. package/presets/mavis/next/rules/ai-local-overlay.md +4 -0
  733. package/presets/mavis/next/rules/code-quality-and-refactoring.md +20 -1
  734. package/presets/mavis/next/rules/code-review-mr.md +10 -0
  735. package/presets/mavis/next/rules/design-tokens-binding.md +23 -1
  736. package/presets/mavis/next/rules/feature-delivery-workflow.md +19 -1
  737. package/presets/mavis/next/rules/language-policy.md +43 -0
  738. package/presets/mavis/next/rules/mockup-review.md +77 -1
  739. package/presets/mavis/next/rules/next-app-core.md +6 -0
  740. package/presets/mavis/next/rules/preset-goals.md +31 -0
  741. package/presets/mavis/next/rules/preset-layering.md +1 -1
  742. package/presets/mavis/next/rules/preset-pr-checklist.md +4 -0
  743. package/presets/mavis/next/rules/preset-twin-sync.md +19 -77
  744. package/presets/mavis/next/rules/preset-writing-style.md +42 -0
  745. package/presets/mavis/next/skills/README.md +1 -0
  746. package/presets/mavis/next/skills/code-review/SKILL.md +1 -1
  747. package/presets/mavis/next/skills/figma-fidelity/SKILL.md +91 -0
  748. package/presets/mavis/next/skills/mockup-review/SKILL.md +5 -1
  749. package/presets/mavis/next/team/README.md +16 -1
  750. package/presets/mavis/next/team/fixtures/artifact-manifest.example.json +1 -1
  751. package/presets/mavis/next/team/fixtures/feature-parallel.json +84 -0
  752. package/presets/mavis/nuxt/REPO_AGENTS.md +3 -0
  753. package/presets/mavis/nuxt/adapter-map.json +30 -3
  754. package/presets/mavis/nuxt/agents/README.md +7 -0
  755. package/presets/mavis/nuxt/agents/build-verifier.md +12 -0
  756. package/presets/mavis/nuxt/agents/code-reviewer.md +12 -0
  757. package/presets/mavis/nuxt/agents/debugger.md +12 -0
  758. package/presets/mavis/nuxt/agents/feature-developer.md +12 -0
  759. package/presets/mavis/nuxt/agents/task-analyst.md +43 -2
  760. package/presets/mavis/nuxt/agents/task-router.md +18 -0
  761. package/presets/mavis/nuxt/ai-local/conventions.md +8 -0
  762. package/presets/mavis/nuxt/commands/task-continue.md +8 -0
  763. package/presets/mavis/nuxt/commands/task.md +14 -1
  764. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +369 -16
  765. package/presets/mavis/nuxt/rules/agent-team-intake.md +3 -0
  766. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +39 -5
  767. package/presets/mavis/nuxt/rules/ai-local-overlay.md +4 -0
  768. package/presets/mavis/nuxt/rules/code-quality-and-refactoring.md +20 -1
  769. package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +15 -1
  770. package/presets/mavis/nuxt/rules/language-policy.md +43 -0
  771. package/presets/mavis/nuxt/rules/mockup-review.md +56 -1
  772. package/presets/mavis/nuxt/rules/nuxt-app-core.md +6 -0
  773. package/presets/mavis/nuxt/rules/preset-goals.md +31 -0
  774. package/presets/mavis/nuxt/rules/preset-layering.md +1 -1
  775. package/presets/mavis/nuxt/rules/preset-pr-checklist.md +4 -0
  776. package/presets/mavis/nuxt/rules/preset-twin-sync.md +19 -77
  777. package/presets/mavis/nuxt/rules/preset-writing-style.md +42 -0
  778. package/presets/mavis/nuxt/team/README.md +15 -1
  779. package/presets/mavis/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  780. package/presets/mavis/php-hexagonal/REPO_AGENTS.md +3 -0
  781. package/presets/mavis/php-hexagonal/adapter-map.json +30 -3
  782. package/presets/mavis/php-hexagonal/agents/README.md +5 -0
  783. package/presets/mavis/php-hexagonal/agents/build-verifier.md +12 -0
  784. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +12 -0
  785. package/presets/mavis/php-hexagonal/agents/debugger.md +12 -0
  786. package/presets/mavis/php-hexagonal/agents/feature-developer.md +12 -0
  787. package/presets/mavis/php-hexagonal/agents/task-analyst.md +31 -1
  788. package/presets/mavis/php-hexagonal/agents/task-router.md +18 -0
  789. package/presets/mavis/php-hexagonal/ai-local/conventions.md +8 -0
  790. package/presets/mavis/php-hexagonal/commands/task-continue.md +8 -0
  791. package/presets/mavis/php-hexagonal/commands/task.md +14 -1
  792. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +367 -16
  793. package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +3 -0
  794. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +39 -5
  795. package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +4 -0
  796. package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +20 -1
  797. package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +11 -1
  798. package/presets/mavis/php-hexagonal/rules/language-policy.md +43 -0
  799. package/presets/mavis/php-hexagonal/rules/php-app-core.md +6 -0
  800. package/presets/mavis/php-hexagonal/rules/preset-goals.md +31 -0
  801. package/presets/mavis/php-hexagonal/rules/preset-layering.md +1 -1
  802. package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +4 -0
  803. package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +19 -77
  804. package/presets/mavis/php-hexagonal/rules/preset-writing-style.md +42 -0
  805. package/presets/mavis/php-hexagonal/team/README.md +15 -1
  806. package/presets/mavis/php-laravel/REPO_AGENTS.md +3 -0
  807. package/presets/mavis/php-laravel/adapter-map.json +30 -3
  808. package/presets/mavis/php-laravel/agents/README.md +5 -0
  809. package/presets/mavis/php-laravel/agents/build-verifier.md +12 -0
  810. package/presets/mavis/php-laravel/agents/code-reviewer.md +12 -0
  811. package/presets/mavis/php-laravel/agents/debugger.md +12 -0
  812. package/presets/mavis/php-laravel/agents/feature-developer.md +12 -0
  813. package/presets/mavis/php-laravel/agents/task-analyst.md +31 -1
  814. package/presets/mavis/php-laravel/agents/task-router.md +18 -0
  815. package/presets/mavis/php-laravel/ai-local/conventions.md +8 -0
  816. package/presets/mavis/php-laravel/commands/task-continue.md +8 -0
  817. package/presets/mavis/php-laravel/commands/task.md +14 -1
  818. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +367 -16
  819. package/presets/mavis/php-laravel/rules/agent-team-intake.md +3 -0
  820. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +39 -5
  821. package/presets/mavis/php-laravel/rules/ai-local-overlay.md +4 -0
  822. package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +20 -1
  823. package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +11 -1
  824. package/presets/mavis/php-laravel/rules/language-policy.md +43 -0
  825. package/presets/mavis/php-laravel/rules/laravel-app-core.md +6 -0
  826. package/presets/mavis/php-laravel/rules/preset-goals.md +31 -0
  827. package/presets/mavis/php-laravel/rules/preset-layering.md +1 -1
  828. package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +4 -0
  829. package/presets/mavis/php-laravel/rules/preset-twin-sync.md +19 -77
  830. package/presets/mavis/php-laravel/rules/preset-writing-style.md +42 -0
  831. package/presets/mavis/php-laravel/team/README.md +15 -1
  832. package/presets/mavis/svelte/REPO_AGENTS.md +3 -0
  833. package/presets/mavis/svelte/adapter-map.json +30 -3
  834. package/presets/mavis/svelte/agents/README.md +7 -0
  835. package/presets/mavis/svelte/agents/build-verifier.md +12 -0
  836. package/presets/mavis/svelte/agents/code-reviewer.md +12 -0
  837. package/presets/mavis/svelte/agents/debugger.md +12 -0
  838. package/presets/mavis/svelte/agents/feature-developer.md +12 -0
  839. package/presets/mavis/svelte/agents/task-analyst.md +43 -2
  840. package/presets/mavis/svelte/agents/task-router.md +18 -0
  841. package/presets/mavis/svelte/ai-local/conventions.md +8 -0
  842. package/presets/mavis/svelte/commands/task-continue.md +8 -0
  843. package/presets/mavis/svelte/commands/task.md +14 -1
  844. package/presets/mavis/svelte/hooks/chain-team-phases.sh +369 -16
  845. package/presets/mavis/svelte/rules/agent-team-intake.md +3 -0
  846. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +39 -5
  847. package/presets/mavis/svelte/rules/ai-local-overlay.md +4 -0
  848. package/presets/mavis/svelte/rules/code-quality-and-refactoring.md +20 -1
  849. package/presets/mavis/svelte/rules/feature-delivery-workflow.md +15 -1
  850. package/presets/mavis/svelte/rules/language-policy.md +43 -0
  851. package/presets/mavis/svelte/rules/mockup-review.md +56 -1
  852. package/presets/mavis/svelte/rules/preset-goals.md +31 -0
  853. package/presets/mavis/svelte/rules/preset-layering.md +1 -1
  854. package/presets/mavis/svelte/rules/preset-pr-checklist.md +4 -0
  855. package/presets/mavis/svelte/rules/preset-twin-sync.md +19 -77
  856. package/presets/mavis/svelte/rules/preset-writing-style.md +42 -0
  857. package/presets/mavis/svelte/rules/svelte-app-core.md +6 -0
  858. package/presets/mavis/svelte/team/README.md +15 -1
  859. package/presets/mavis/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  860. package/presets/opencode/android-kotlin/REPO_AGENTS.md +3 -0
  861. package/presets/opencode/android-kotlin/adapter-map.json +29 -2
  862. package/presets/opencode/android-kotlin/agents/README.md +7 -0
  863. package/presets/opencode/android-kotlin/agents/build-verifier.md +12 -0
  864. package/presets/opencode/android-kotlin/agents/code-reviewer.md +12 -0
  865. package/presets/opencode/android-kotlin/agents/debugger.md +12 -0
  866. package/presets/opencode/android-kotlin/agents/feature-developer.md +12 -0
  867. package/presets/opencode/android-kotlin/agents/task-analyst.md +31 -1
  868. package/presets/opencode/android-kotlin/agents/task-router.md +18 -0
  869. package/presets/opencode/android-kotlin/ai-local/conventions.md +8 -0
  870. package/presets/opencode/android-kotlin/commands/task-continue.md +8 -0
  871. package/presets/opencode/android-kotlin/commands/task.md +14 -1
  872. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +369 -16
  873. package/presets/opencode/android-kotlin/rules/agent-team-intake.md +3 -0
  874. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +39 -5
  875. package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +4 -0
  876. package/presets/opencode/android-kotlin/rules/android-app-core.md +6 -0
  877. package/presets/opencode/android-kotlin/rules/code-quality-and-refactoring.md +20 -1
  878. package/presets/opencode/android-kotlin/rules/feature-delivery-workflow.md +4 -0
  879. package/presets/opencode/android-kotlin/rules/language-policy.md +43 -0
  880. package/presets/opencode/android-kotlin/rules/mockup-review.md +56 -1
  881. package/presets/opencode/android-kotlin/rules/preset-goals.md +31 -0
  882. package/presets/opencode/android-kotlin/rules/preset-layering.md +1 -1
  883. package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +4 -0
  884. package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +19 -77
  885. package/presets/opencode/android-kotlin/rules/preset-writing-style.md +42 -0
  886. package/presets/opencode/android-kotlin/team/README.md +15 -1
  887. package/presets/opencode/go/REPO_AGENTS.md +3 -0
  888. package/presets/opencode/go/adapter-map.json +30 -3
  889. package/presets/opencode/go/agents/README.md +5 -0
  890. package/presets/opencode/go/agents/build-verifier.md +12 -0
  891. package/presets/opencode/go/agents/code-reviewer.md +12 -0
  892. package/presets/opencode/go/agents/debugger.md +12 -0
  893. package/presets/opencode/go/agents/feature-developer.md +12 -0
  894. package/presets/opencode/go/agents/task-analyst.md +31 -1
  895. package/presets/opencode/go/agents/task-router.md +18 -0
  896. package/presets/opencode/go/ai-local/conventions.md +8 -0
  897. package/presets/opencode/go/commands/task-continue.md +8 -0
  898. package/presets/opencode/go/commands/task.md +14 -1
  899. package/presets/opencode/go/hooks/chain-team-phases.sh +367 -16
  900. package/presets/opencode/go/rules/agent-team-intake.md +3 -0
  901. package/presets/opencode/go/rules/agent-team-orchestrator.md +39 -5
  902. package/presets/opencode/go/rules/ai-local-overlay.md +4 -0
  903. package/presets/opencode/go/rules/code-quality-and-refactoring.md +20 -1
  904. package/presets/opencode/go/rules/feature-delivery-workflow.md +11 -1
  905. package/presets/opencode/go/rules/go-app-core.md +6 -0
  906. package/presets/opencode/go/rules/language-policy.md +43 -0
  907. package/presets/opencode/go/rules/preset-goals.md +31 -0
  908. package/presets/opencode/go/rules/preset-layering.md +1 -1
  909. package/presets/opencode/go/rules/preset-pr-checklist.md +4 -0
  910. package/presets/opencode/go/rules/preset-twin-sync.md +19 -77
  911. package/presets/opencode/go/rules/preset-writing-style.md +42 -0
  912. package/presets/opencode/go/team/README.md +15 -1
  913. package/presets/opencode/ios-swift/REPO_AGENTS.md +3 -0
  914. package/presets/opencode/ios-swift/adapter-map.json +29 -2
  915. package/presets/opencode/ios-swift/agents/README.md +7 -0
  916. package/presets/opencode/ios-swift/agents/build-verifier.md +12 -0
  917. package/presets/opencode/ios-swift/agents/code-reviewer.md +12 -0
  918. package/presets/opencode/ios-swift/agents/debugger.md +12 -0
  919. package/presets/opencode/ios-swift/agents/feature-developer.md +12 -0
  920. package/presets/opencode/ios-swift/agents/task-analyst.md +31 -1
  921. package/presets/opencode/ios-swift/agents/task-router.md +18 -0
  922. package/presets/opencode/ios-swift/ai-local/conventions.md +8 -0
  923. package/presets/opencode/ios-swift/commands/task-continue.md +8 -0
  924. package/presets/opencode/ios-swift/commands/task.md +14 -1
  925. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +369 -16
  926. package/presets/opencode/ios-swift/rules/agent-team-intake.md +3 -0
  927. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +39 -5
  928. package/presets/opencode/ios-swift/rules/ai-local-overlay.md +4 -0
  929. package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +20 -1
  930. package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +15 -1
  931. package/presets/opencode/ios-swift/rules/ios-app-core.md +6 -0
  932. package/presets/opencode/ios-swift/rules/language-policy.md +43 -0
  933. package/presets/opencode/ios-swift/rules/mockup-review.md +56 -1
  934. package/presets/opencode/ios-swift/rules/preset-goals.md +31 -0
  935. package/presets/opencode/ios-swift/rules/preset-layering.md +1 -1
  936. package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +4 -0
  937. package/presets/opencode/ios-swift/rules/preset-twin-sync.md +19 -77
  938. package/presets/opencode/ios-swift/rules/preset-writing-style.md +42 -0
  939. package/presets/opencode/ios-swift/team/README.md +15 -1
  940. package/presets/opencode/java/REPO_AGENTS.md +3 -0
  941. package/presets/opencode/java/adapter-map.json +30 -3
  942. package/presets/opencode/java/agents/README.md +5 -0
  943. package/presets/opencode/java/agents/build-verifier.md +12 -0
  944. package/presets/opencode/java/agents/code-reviewer.md +12 -0
  945. package/presets/opencode/java/agents/debugger.md +12 -0
  946. package/presets/opencode/java/agents/feature-developer.md +12 -0
  947. package/presets/opencode/java/agents/task-analyst.md +31 -1
  948. package/presets/opencode/java/agents/task-router.md +18 -0
  949. package/presets/opencode/java/ai-local/conventions.md +8 -0
  950. package/presets/opencode/java/commands/task-continue.md +8 -0
  951. package/presets/opencode/java/commands/task.md +14 -1
  952. package/presets/opencode/java/hooks/chain-team-phases.sh +367 -16
  953. package/presets/opencode/java/rules/agent-team-intake.md +3 -0
  954. package/presets/opencode/java/rules/agent-team-orchestrator.md +39 -5
  955. package/presets/opencode/java/rules/ai-local-overlay.md +4 -0
  956. package/presets/opencode/java/rules/code-quality-and-refactoring.md +20 -1
  957. package/presets/opencode/java/rules/feature-delivery-workflow.md +11 -1
  958. package/presets/opencode/java/rules/java-app-core.md +6 -0
  959. package/presets/opencode/java/rules/language-policy.md +43 -0
  960. package/presets/opencode/java/rules/preset-goals.md +31 -0
  961. package/presets/opencode/java/rules/preset-layering.md +1 -1
  962. package/presets/opencode/java/rules/preset-pr-checklist.md +4 -0
  963. package/presets/opencode/java/rules/preset-twin-sync.md +19 -77
  964. package/presets/opencode/java/rules/preset-writing-style.md +42 -0
  965. package/presets/opencode/java/team/README.md +15 -1
  966. package/presets/opencode/mcp-ts/REPO_AGENTS.md +3 -0
  967. package/presets/opencode/mcp-ts/adapter-map.json +28 -1
  968. package/presets/opencode/mcp-ts/agents/README.md +7 -0
  969. package/presets/opencode/mcp-ts/agents/build-verifier.md +12 -0
  970. package/presets/opencode/mcp-ts/agents/feature-developer.md +12 -0
  971. package/presets/opencode/mcp-ts/agents/task-analyst.md +31 -1
  972. package/presets/opencode/mcp-ts/agents/task-router.md +18 -0
  973. package/presets/opencode/mcp-ts/ai-local/conventions.md +8 -0
  974. package/presets/opencode/mcp-ts/commands/task-continue.md +8 -0
  975. package/presets/opencode/mcp-ts/commands/task.md +14 -1
  976. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +367 -16
  977. package/presets/opencode/mcp-ts/rules/agent-team-intake.md +3 -0
  978. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +39 -5
  979. package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +4 -0
  980. package/presets/opencode/mcp-ts/rules/code-quality-and-refactoring.md +20 -1
  981. package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +11 -1
  982. package/presets/opencode/mcp-ts/rules/language-policy.md +43 -0
  983. package/presets/opencode/mcp-ts/rules/mcp-ts-app-core.md +6 -0
  984. package/presets/opencode/mcp-ts/rules/preset-goals.md +31 -0
  985. package/presets/opencode/mcp-ts/rules/preset-layering.md +1 -1
  986. package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +4 -0
  987. package/presets/opencode/mcp-ts/rules/preset-twin-sync.md +19 -77
  988. package/presets/opencode/mcp-ts/rules/preset-writing-style.md +42 -0
  989. package/presets/opencode/mcp-ts/team/README.md +15 -1
  990. package/presets/opencode/next/REPO_AGENTS.md +3 -0
  991. package/presets/opencode/next/adapter-map.json +46 -3
  992. package/presets/opencode/next/agents/README.md +6 -0
  993. package/presets/opencode/next/agents/build-verifier.md +12 -0
  994. package/presets/opencode/next/agents/code-reviewer.md +23 -0
  995. package/presets/opencode/next/agents/debugger.md +12 -0
  996. package/presets/opencode/next/agents/feature-developer.md +20 -2
  997. package/presets/opencode/next/agents/mockup-reviewer.md +25 -4
  998. package/presets/opencode/next/agents/task-analyst.md +43 -2
  999. package/presets/opencode/next/agents/task-router.md +18 -0
  1000. package/presets/opencode/next/ai-local/conventions.md +8 -0
  1001. package/presets/opencode/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
  1002. package/presets/opencode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
  1003. package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
  1004. package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
  1005. package/presets/opencode/next/commands/task-continue.md +8 -0
  1006. package/presets/opencode/next/commands/task.md +14 -1
  1007. package/presets/opencode/next/hooks/chain-team-phases.sh +369 -16
  1008. package/presets/opencode/next/rules/agent-team-intake.md +3 -0
  1009. package/presets/opencode/next/rules/agent-team-orchestrator.md +39 -5
  1010. package/presets/opencode/next/rules/ai-local-overlay.md +4 -0
  1011. package/presets/opencode/next/rules/code-quality-and-refactoring.md +20 -1
  1012. package/presets/opencode/next/rules/code-review-mr.md +10 -0
  1013. package/presets/opencode/next/rules/design-tokens-binding.md +23 -1
  1014. package/presets/opencode/next/rules/feature-delivery-workflow.md +19 -1
  1015. package/presets/opencode/next/rules/language-policy.md +43 -0
  1016. package/presets/opencode/next/rules/mockup-review.md +77 -1
  1017. package/presets/opencode/next/rules/next-app-core.md +6 -0
  1018. package/presets/opencode/next/rules/preset-goals.md +31 -0
  1019. package/presets/opencode/next/rules/preset-layering.md +1 -1
  1020. package/presets/opencode/next/rules/preset-pr-checklist.md +4 -0
  1021. package/presets/opencode/next/rules/preset-twin-sync.md +19 -77
  1022. package/presets/opencode/next/rules/preset-writing-style.md +42 -0
  1023. package/presets/opencode/next/skills/README.md +1 -0
  1024. package/presets/opencode/next/skills/code-review/SKILL.md +1 -1
  1025. package/presets/opencode/next/skills/figma-fidelity/SKILL.md +96 -0
  1026. package/presets/opencode/next/skills/mockup-review/SKILL.md +5 -1
  1027. package/presets/opencode/next/team/README.md +16 -1
  1028. package/presets/opencode/next/team/fixtures/artifact-manifest.example.json +1 -1
  1029. package/presets/opencode/next/team/fixtures/feature-parallel.json +84 -0
  1030. package/presets/opencode/nuxt/REPO_AGENTS.md +3 -0
  1031. package/presets/opencode/nuxt/adapter-map.json +30 -3
  1032. package/presets/opencode/nuxt/agents/README.md +7 -0
  1033. package/presets/opencode/nuxt/agents/build-verifier.md +12 -0
  1034. package/presets/opencode/nuxt/agents/code-reviewer.md +12 -0
  1035. package/presets/opencode/nuxt/agents/debugger.md +12 -0
  1036. package/presets/opencode/nuxt/agents/feature-developer.md +12 -0
  1037. package/presets/opencode/nuxt/agents/task-analyst.md +43 -2
  1038. package/presets/opencode/nuxt/agents/task-router.md +18 -0
  1039. package/presets/opencode/nuxt/ai-local/conventions.md +8 -0
  1040. package/presets/opencode/nuxt/commands/task-continue.md +8 -0
  1041. package/presets/opencode/nuxt/commands/task.md +14 -1
  1042. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +369 -16
  1043. package/presets/opencode/nuxt/rules/agent-team-intake.md +3 -0
  1044. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +39 -5
  1045. package/presets/opencode/nuxt/rules/ai-local-overlay.md +4 -0
  1046. package/presets/opencode/nuxt/rules/code-quality-and-refactoring.md +20 -1
  1047. package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +15 -1
  1048. package/presets/opencode/nuxt/rules/language-policy.md +43 -0
  1049. package/presets/opencode/nuxt/rules/mockup-review.md +56 -1
  1050. package/presets/opencode/nuxt/rules/nuxt-app-core.md +6 -0
  1051. package/presets/opencode/nuxt/rules/preset-goals.md +31 -0
  1052. package/presets/opencode/nuxt/rules/preset-layering.md +1 -1
  1053. package/presets/opencode/nuxt/rules/preset-pr-checklist.md +4 -0
  1054. package/presets/opencode/nuxt/rules/preset-twin-sync.md +19 -77
  1055. package/presets/opencode/nuxt/rules/preset-writing-style.md +42 -0
  1056. package/presets/opencode/nuxt/team/README.md +15 -1
  1057. package/presets/opencode/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
  1058. package/presets/opencode/php-hexagonal/REPO_AGENTS.md +3 -0
  1059. package/presets/opencode/php-hexagonal/adapter-map.json +30 -3
  1060. package/presets/opencode/php-hexagonal/agents/README.md +5 -0
  1061. package/presets/opencode/php-hexagonal/agents/build-verifier.md +12 -0
  1062. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +12 -0
  1063. package/presets/opencode/php-hexagonal/agents/debugger.md +12 -0
  1064. package/presets/opencode/php-hexagonal/agents/feature-developer.md +12 -0
  1065. package/presets/opencode/php-hexagonal/agents/task-analyst.md +31 -1
  1066. package/presets/opencode/php-hexagonal/agents/task-router.md +18 -0
  1067. package/presets/opencode/php-hexagonal/ai-local/conventions.md +8 -0
  1068. package/presets/opencode/php-hexagonal/commands/task-continue.md +8 -0
  1069. package/presets/opencode/php-hexagonal/commands/task.md +14 -1
  1070. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +367 -16
  1071. package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +3 -0
  1072. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +39 -5
  1073. package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +4 -0
  1074. package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +20 -1
  1075. package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +11 -1
  1076. package/presets/opencode/php-hexagonal/rules/language-policy.md +43 -0
  1077. package/presets/opencode/php-hexagonal/rules/php-app-core.md +6 -0
  1078. package/presets/opencode/php-hexagonal/rules/preset-goals.md +31 -0
  1079. package/presets/opencode/php-hexagonal/rules/preset-layering.md +1 -1
  1080. package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +4 -0
  1081. package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +19 -77
  1082. package/presets/opencode/php-hexagonal/rules/preset-writing-style.md +42 -0
  1083. package/presets/opencode/php-hexagonal/team/README.md +15 -1
  1084. package/presets/opencode/php-laravel/REPO_AGENTS.md +3 -0
  1085. package/presets/opencode/php-laravel/adapter-map.json +30 -3
  1086. package/presets/opencode/php-laravel/agents/README.md +5 -0
  1087. package/presets/opencode/php-laravel/agents/build-verifier.md +12 -0
  1088. package/presets/opencode/php-laravel/agents/code-reviewer.md +12 -0
  1089. package/presets/opencode/php-laravel/agents/debugger.md +12 -0
  1090. package/presets/opencode/php-laravel/agents/feature-developer.md +12 -0
  1091. package/presets/opencode/php-laravel/agents/task-analyst.md +31 -1
  1092. package/presets/opencode/php-laravel/agents/task-router.md +18 -0
  1093. package/presets/opencode/php-laravel/ai-local/conventions.md +8 -0
  1094. package/presets/opencode/php-laravel/commands/task-continue.md +8 -0
  1095. package/presets/opencode/php-laravel/commands/task.md +14 -1
  1096. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +367 -16
  1097. package/presets/opencode/php-laravel/rules/agent-team-intake.md +3 -0
  1098. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +39 -5
  1099. package/presets/opencode/php-laravel/rules/ai-local-overlay.md +4 -0
  1100. package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +20 -1
  1101. package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +11 -1
  1102. package/presets/opencode/php-laravel/rules/language-policy.md +43 -0
  1103. package/presets/opencode/php-laravel/rules/laravel-app-core.md +6 -0
  1104. package/presets/opencode/php-laravel/rules/preset-goals.md +31 -0
  1105. package/presets/opencode/php-laravel/rules/preset-layering.md +1 -1
  1106. package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +4 -0
  1107. package/presets/opencode/php-laravel/rules/preset-twin-sync.md +19 -77
  1108. package/presets/opencode/php-laravel/rules/preset-writing-style.md +42 -0
  1109. package/presets/opencode/php-laravel/team/README.md +15 -1
  1110. package/presets/opencode/svelte/REPO_AGENTS.md +3 -0
  1111. package/presets/opencode/svelte/adapter-map.json +30 -3
  1112. package/presets/opencode/svelte/agents/README.md +7 -0
  1113. package/presets/opencode/svelte/agents/build-verifier.md +12 -0
  1114. package/presets/opencode/svelte/agents/code-reviewer.md +12 -0
  1115. package/presets/opencode/svelte/agents/debugger.md +12 -0
  1116. package/presets/opencode/svelte/agents/feature-developer.md +12 -0
  1117. package/presets/opencode/svelte/agents/task-analyst.md +43 -2
  1118. package/presets/opencode/svelte/agents/task-router.md +18 -0
  1119. package/presets/opencode/svelte/ai-local/conventions.md +8 -0
  1120. package/presets/opencode/svelte/commands/task-continue.md +8 -0
  1121. package/presets/opencode/svelte/commands/task.md +14 -1
  1122. package/presets/opencode/svelte/hooks/chain-team-phases.sh +369 -16
  1123. package/presets/opencode/svelte/rules/agent-team-intake.md +3 -0
  1124. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +39 -5
  1125. package/presets/opencode/svelte/rules/ai-local-overlay.md +4 -0
  1126. package/presets/opencode/svelte/rules/code-quality-and-refactoring.md +20 -1
  1127. package/presets/opencode/svelte/rules/feature-delivery-workflow.md +15 -1
  1128. package/presets/opencode/svelte/rules/language-policy.md +43 -0
  1129. package/presets/opencode/svelte/rules/mockup-review.md +56 -1
  1130. package/presets/opencode/svelte/rules/preset-goals.md +31 -0
  1131. package/presets/opencode/svelte/rules/preset-layering.md +1 -1
  1132. package/presets/opencode/svelte/rules/preset-pr-checklist.md +4 -0
  1133. package/presets/opencode/svelte/rules/preset-twin-sync.md +19 -77
  1134. package/presets/opencode/svelte/rules/preset-writing-style.md +42 -0
  1135. package/presets/opencode/svelte/rules/svelte-app-core.md +6 -0
  1136. package/presets/opencode/svelte/team/README.md +15 -1
  1137. package/presets/opencode/svelte/team/fixtures/artifact-manifest.example.json +1 -1
  1138. package/scripts/_lib/agent-write-scopes.json +27 -0
  1139. package/scripts/_lib/embed-stems.json +8 -1
  1140. package/scripts/check-figma-contract-presence.sh +119 -0
  1141. package/scripts/check-parallel-plan.sh +353 -0
  1142. package/scripts/check-plan-contract.sh +133 -0
  1143. package/scripts/check-preset-goal-contract.sh +214 -0
  1144. package/scripts/check-preset-language-policy.sh +292 -0
  1145. package/scripts/check-preset-prompt-persistence.sh +218 -0
  1146. package/scripts/check-preset-self-review-contract.sh +179 -0
  1147. package/scripts/check-preset-structure.sh +53 -0
  1148. package/scripts/check-preset-token-budget.sh +3 -0
  1149. package/scripts/check-step-graph-contract.sh +123 -0
  1150. package/scripts/fixtures/cli-golden/claude/next.json +36 -31
  1151. package/scripts/fixtures/cli-golden/cursor/next.json +40 -35
  1152. package/scripts/fixtures/cli-golden/mavis/android-kotlin.json +26 -23
  1153. package/scripts/fixtures/cli-golden/mavis/go.json +25 -22
  1154. package/scripts/fixtures/cli-golden/mavis/ios-swift.json +26 -23
  1155. package/scripts/fixtures/cli-golden/mavis/java.json +25 -22
  1156. package/scripts/fixtures/cli-golden/mavis/mcp-ts.json +23 -20
  1157. package/scripts/fixtures/cli-golden/mavis/next.json +39 -34
  1158. package/scripts/fixtures/cli-golden/mavis/nuxt.json +27 -24
  1159. package/scripts/fixtures/cli-golden/mavis/php-hexagonal.json +25 -22
  1160. package/scripts/fixtures/cli-golden/mavis/php-laravel.json +25 -22
  1161. package/scripts/fixtures/cli-golden/mavis/svelte.json +27 -24
  1162. package/scripts/fixtures/cli-golden/opencode/android-kotlin.json +26 -23
  1163. package/scripts/fixtures/cli-golden/opencode/go.json +25 -22
  1164. package/scripts/fixtures/cli-golden/opencode/ios-swift.json +26 -23
  1165. package/scripts/fixtures/cli-golden/opencode/java.json +25 -22
  1166. package/scripts/fixtures/cli-golden/opencode/mcp-ts.json +23 -20
  1167. package/scripts/fixtures/cli-golden/opencode/next.json +39 -34
  1168. package/scripts/fixtures/cli-golden/opencode/nuxt.json +27 -24
  1169. package/scripts/fixtures/cli-golden/opencode/php-hexagonal.json +25 -22
  1170. package/scripts/fixtures/cli-golden/opencode/php-laravel.json +25 -22
  1171. package/scripts/fixtures/cli-golden/opencode/svelte.json +27 -24
  1172. package/scripts/test-agent-task-metrics-hooks.mjs +167 -0
  1173. package/scripts/test-chain-team-phases-coverage.mjs +129 -0
  1174. package/scripts/test-parallel-plan-fixtures.mjs +173 -0
  1175. package/scripts/test-plan-contract-fixtures.mjs +132 -0
  1176. package/scripts/test-preset-goal-contract-fixtures.mjs +162 -0
  1177. package/scripts/test-preset-language-policy-fixtures.mjs +194 -0
  1178. package/scripts/test-preset-prompt-persistence-fixtures.mjs +232 -0
  1179. package/scripts/test-preset-self-review-contract-fixtures.mjs +163 -0
@@ -0,0 +1,51 @@
1
+ ---
2
+ description: "Preset authoring: concise, no-demagogy prose for preset rules, docs, and artifacts. Use when editing packages/ai-rules/presets/**."
3
+ paths:
4
+ - packages/ai-rules/presets/**/*
5
+ - .claude/**/*
6
+ - .cursor/rules/**/*
7
+ - .ai.local/team/tasks/**/*
8
+ ---
9
+
10
+ <!-- shared-core: meta/preset-writing-style.md -->
11
+
12
+ # Preset writing style
13
+
14
+ Rules for **preset authors** (`packages/ai-rules/presets/**`). Requestable; not always-on in consumer apps.
15
+
16
+ Write for two readers at once: an **agent** loading one file out of context, and a **human** scanning for the rule. State the rule, not the motivation.
17
+
18
+ ## Do
19
+
20
+ - One rule per line: imperative and testable (`Do X` / `Never Y`), not "it is important that X".
21
+ - Lead with the rule; state *what* before *why*.
22
+ - Keep the *why* only when it changes behavior — a hidden constraint or the failure it prevents. Drop it when the rule already implies it.
23
+ - Be concrete: name the file, command, symbol, or counter-example.
24
+ - Prefer a table or short list to a paragraph; one idea per bullet.
25
+ - Reuse the shared vocabulary (rule stems, `always-on`, `requestable`, `must` / `should` / `may`) — see the `PRESET-ENGLISH-STYLE` glossary.
26
+ - Delete any sentence that carries no instruction.
27
+
28
+ ## Don't (demagogy)
29
+
30
+ - No filler, hedging, or motivational prose.
31
+ - No restating the heading, the rule, or a sibling rule.
32
+ - No emphasis inflation — bold / `must` / `never` only for a hard gate, not the whole page.
33
+ - No selling, urgency, or self-congratulation; no "best practice" without the failure it prevents.
34
+ - No scenario storytelling, rhetorical questions, or meta-narration ("this section explains…").
35
+ - No duplicated rule text across stems — link instead.
36
+
37
+ ## Size
38
+
39
+ - Shortest form that still changes behavior: if a bullet fits as a clause, make it a clause.
40
+ - 12+ undifferentiated bullets → split or rank; do not append.
41
+
42
+ ## Applies to
43
+
44
+ All preset prose: `_shared/core/**`, stack rules, agents, skills, commands, hook comments, and preset-facing docs (`packages/ai-rules/docs/**`, READMEs).
45
+
46
+ ## See also
47
+
48
+ - `preset-goals` — why presets exist.
49
+ - `preset-token-budget` — the caps this style keeps in range.
50
+ - `code-quality-and-refactoring` § Comments & prose — the consumer-side clause.
51
+ - `packages/ai-rules/docs/PRESET-ENGLISH-STYLE.md` — language, glossary, modality.
@@ -9,6 +9,10 @@ impact: HIGH
9
9
 
10
10
  The implementation must mirror the Figma mockup token-for-token. Raw design values where a token exists are a finding. This rule is the web-stack discipline; the reporter (`mockup-reviewer`) emits the bindings, the implementer (`feature-developer`) binds, the reviewer (`code-reviewer`) blocks on unbound raw values.
11
11
 
12
+ ## QA baseline (AC-5)
13
+
14
+ The **binding baseline** is the frozen contract `.ai.local/team/tasks/<slug>/figma-contract.json` (its `nodes[].variables` / `variables{}`) and its `mockup-review.md` projection `## Per-node spec (AC-4)` — **not** a Storybook vis-baseline and not memory. Bind the implementation to the contract; the same contract is the expected side of the post-implementation value diff (AC-7). If the contract is missing on a UI WP with a Figma reference, bind from the `## Design contract` projection and record the gap — never invent values.
15
+
12
16
  ## Typography
13
17
 
14
18
  - Bind to the Figma **text style** used by the node — extract via Figma MCP `get_design_context` / `get_variable_defs` and the node metadata. Do not invent `font-size: 14px; line-height: 20px;` when a Figma text style exists.
@@ -33,9 +37,27 @@ The implementation must mirror the Figma mockup token-for-token. Raw design valu
33
37
  - **Icons:** use the `@sds/icon` (or project DS) symbol name from the Figma component instance / metadata. Do not invent icon names. The Figma node’s component name (e.g. `Icon / chevron-right`) maps to the DS symbol.
34
38
  - `alt` text from the Figma node name when meaningful; otherwise from the design context copy.
35
39
 
40
+ ## Variable/value diff + geometry + font availability (AC-7 / AC-18 / AC-19 / AC-20 / AC-21)
41
+
42
+ After implementation, diff the **rendered / computed** values against the contract, per node × property, using the live DOM (chrome-devtools MCP `getComputedStyle`, or Playwright MCP `page.evaluate` when chrome-devtools is down). Emit rows `nodeId | property | expected (contract) | actual (rendered) | delta`.
43
+
44
+ | Property group | Expected (contract) | Actual (live) |
45
+ |---|---|---|
46
+ | typography | `variables.typography` (family / size / line-height / weight / letter-spacing) | computed `font-family/size/line-height/font-weight/letter-spacing`, `color` |
47
+ | color | `variables.color` | computed `color`, `background-color`, `border-*-color`, icon `fill` |
48
+ | spacing | `variables.spacing` + auto-layout intent | computed `padding*`, `gap`, `margin*`, DOM box model |
49
+ | radius | `variables.radius` | computed `border-radius` |
50
+ | effect | `variables.effect` | computed `box-shadow`, `filter`, `backdrop-filter` |
51
+ | asset | `asset.figmaRef/repoRef/exportFormat` | resolved `<img src>` / `<svg>` / DS icon symbol, intrinsic `width`/`height` |
52
+ | text | `variables.text` | rendered text-node content |
53
+
54
+ - **Geometry / auto-layout (AC-18):** record numeric deltas for `padding` / `gap` / `margin` / border-box and the auto-layout direction / alignment; "spacing looks right" without deltas is not acceptable. Reflowing a region that is the only responsive evidence to absolute positioning needs a brief reason.
55
+ - **Font availability (AC-19):** every Figma font family MUST resolve to a repo-shipped font or a declared fallback; an unshipped family with a visual difference → `mockup-change-requested`, otherwise a documented fallback note.
56
+ - **Effect + asset audit (AC-20 / AC-21):** every effect maps to a DS token (or is filed non-exportable); every image fill / icon maps to a concrete export (format + dimensions) or a DS symbol; `asset.repoRef` must resolve. A placeholder or invented URL where the mockup has a real asset → finding.
57
+
36
58
  ## Self-check before handoff
37
59
 
38
- For UI WPs with a Figma reference: render the page at each project viewport (Playwright MCP / Chrome DevTools MCP) and compare to the Figma `get_screenshot`. Fix obvious typography / color / spacing / imagery deviations before the implementation receipt. Record a short **UI self-check vs Figma** block in `implementation.md` (viewports checked, deviations fixed, remaining gaps, MCP / app status). If the app is not runnable or MCP is down, note the limitation — the reviewer will gate.
60
+ For UI WPs with a Figma reference: render the page at each project viewport (Playwright MCP / Chrome DevTools MCP) and compare to the Figma `get_screenshot`. Fix obvious typography / color / spacing / imagery deviations before the implementation receipt. Run the **mandatory post-implementation gate** (requestable skill `figma-fidelity`: G1..G6 — screenshot diff, two-way state diff, value/geometry diff, structural parity against `figma-contract.json` `nodes[]`, freeze re-check) and record it in `implementation.md` (`## UI self-check vs Figma`, `## Structural parity (AC-3)`, `## Variable/value diff (AC-7)`, `## Geometry / auto-layout audit (AC-18)`, `## State matrix diff (AC-22)`, `## UI WP Definition of Done (AC-28)`). If the app is not runnable or MCP is down, note the limitation with a `degraded:` / `blocked:` marker — the reviewer will gate. A UI WP is **not** complete while any UI-WP Definition of Done item is unmet or degraded without a marker.
39
61
 
40
62
  ## Reviewer contract
41
63
 
@@ -8,6 +8,7 @@
8
8
  | `spec-authoring` | Author or bootstrap docs/specs (INDEX, page/feature templates); `/spec-start` / analyst author mode |
9
9
  | `spec-discovery` | Opt-in research-before-spec in analyst author mode (claim ledger; not default `/task` consume) |
10
10
  | `mockup-review` | Figma mockup review: DS, coverage, viewports (standalone or embedded) |
11
+ | `figma-fidelity` | Post-implementation Figma-fidelity gate (G0..G6: screenshot/value/state/structural diffs + freeze) + UI-WP Definition of Done |
11
12
  | `ux-design` | Behavioral UX synthesis/review via task-analyst (standalone or embedded; no Figma MCP) |
12
13
  | `code-review` | MR/diff review using project architecture and test standards |
13
14
  | `debug-investigation` | Reproducing and fixing bugs with root-cause evidence |
@@ -20,7 +20,7 @@ Use the local repository as the source of truth: `git status`, `git diff`, task
20
20
  7. **Reuse lens:** flag new helpers that duplicate existing utilities; prefer adjacent shared modules over copy-paste.
21
21
  8. **Efficiency lens:** unnecessary work, sequential ops that should be parallel, hot-path bloat, no-op store updates, overly broad reads.
22
22
  9. Report validation gaps: lint, stylelint, type-check, or relevant tests not run.
23
- 10. **UI / Figma parity (when the diff touches UI/layout AND a Figma reference exists):** perform a detailed, pixel-accurate comparison of the implementation against the mockup across **every project viewport** (mockup-review AC-8 / Stack notes set and the repo’s Storybook viewport toolbar). Figma frames via Figma MCP `get_screenshot`; the running app via Playwright MCP / Chrome DevTools MCP at the matching width. Compare **per element** — typography, color, spacing, imagery, states, structure/responsive, auto-layout intent — bound to the `mockup-review.md` `## Design contract` and the `ui-and-accessibility/design-tokens-binding.md` discipline (`@sds/tokens-*` / DS components; raw `#…` / `px` where a token exists is a finding). Emit a `## Figma parity (UI)` section in `review.md`. **Storybook visual baselines are not a substitute.** Missing or `unable_to_compare` parity on a UI MR with a Figma reference → `REQUEST_CHANGES`. Unbound raw values → `blocker` / `important`.
23
+ 10. **UI / Figma parity (when the diff touches UI/layout AND a Figma reference exists):** perform a detailed, pixel-accurate comparison of the implementation against the mockup across **every project viewport** (mockup-review AC-8 / Stack notes set and the repo’s Storybook viewport toolbar). Figma frames via Figma MCP `get_screenshot`; the running app via Playwright MCP / Chrome DevTools MCP at the matching width. Compare **per element** — typography, color, spacing, imagery, states, structure/responsive, auto-layout intent — bound to the frozen contract `figma-contract.json` / the `mockup-review.md` `## Design contract` and the `ui-and-accessibility/design-tokens-binding.md` discipline (`@sds/tokens-*` / DS components; raw `#…` / `px` where a token exists is a finding). Run the full post-implementation gate `G0..G6` (requestable skill **`figma-fidelity`**): per-node **value diff** (AC-7), **structural parity** against `nodes[]` (AC-3), **two-way state diff** (AC-22), **freeze re-check** (AC-17), and the effect / asset / theme / i18n sub-tables; emit them inside a `## Figma parity (UI)` section in `review.md`. **Storybook visual baselines are not a substitute.** Missing or `unable_to_compare` parity on a UI MR with a Figma reference → `REQUEST_CHANGES`; a degraded mandatory check → `unable_to_compare`. Unbound raw values → `blocker` / `important`.
24
24
 
25
25
  ## Output
26
26
 
@@ -0,0 +1,96 @@
1
+ ---
2
+ name: figma-fidelity
3
+ description: Mandatory post-implementation Figma-fidelity gate (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. Requestable; loaded by feature-developer (self-check), code-reviewer (parity gate), and mockup-reviewer (freeze/taxonomy). Next-only.
4
+ ---
5
+
6
+ # Figma fidelity (post-implementation gate)
7
+
8
+ Requestable procedure that verifies a built UI against the **frozen contract** `.ai.local/team/tasks/<slug>/figma-contract.json`. The stack-agnostic mandate lives in core `mockup-review.md` § Post-implementation gate; this skill carries the concrete MCP matrix and the per-check procedure. Do **not** duplicate the review dimensions of the `mockup-review` skill — this is the **after** half.
9
+
10
+ Loaded by: `feature-developer` (mandatory self-check half), `code-reviewer` (mandatory parity-gate half), `mockup-reviewer` (freeze / taxonomy half).
11
+
12
+ ## MCP matrix (which server does which check)
13
+
14
+ Discover the session MCP catalog at runtime (`mcp-usage`); never invent tool names.
15
+
16
+ | Server | Role in the gate |
17
+ |--------|------------------|
18
+ | **Figma MCP** | source frames / variables / text styles / assets. `get_screenshot` per node × viewport; `get_metadata` for the root revision (freeze). |
19
+ | **chrome-devtools MCP** (preferred) | live DOM + `getComputedStyle` of the running app → the value / geometry diff. |
20
+ | **Playwright MCP** | rendered viewports, composed-frame / breakpoint sweep, snapshots; substitute for chrome-devtools when it is down. |
21
+ | **Storybook MCP** (when present) | story render check; browser MCP still covers the rendered-viewport diff. |
22
+
23
+ ## Procedure G0..G6
24
+
25
+ | Step | Mandatory action | Output | FAIL condition |
26
+ |------|------------------|--------|----------------|
27
+ | **G0** Precondition | contract present, parseable, `specChecksum` non-empty, `specVersion` current | block in `## Figma parity (UI)` | missing/stale contract → **blocked** (dev) / `unable_to_compare` → `REQUEST_CHANGES` (reviewer) |
28
+ | **G1** Screenshot diff | for **every** declared viewport (no sampling): Figma `get_screenshot` vs the running app at the same width | `## Post-impl screenshot diff (AC-6)` | any viewport skipped → FAIL |
29
+ | **G2** Missing-state flagging | two-way state diff vs `stateMatrix` | `## State matrix diff (AC-22)` | mockup state missing in impl → **blocker**; AC-required state missing in mockup → `mockup-change-requested` |
30
+ | **G3** Variable/value diff | per node × property: expected (contract) vs rendered/computed actual | `## Variable/value diff (AC-7)` + `## Effect parity (AC-20)` + `## Asset / icon audit (AC-21)` | "compare visually" with no value rows → FAIL |
31
+ | **G4** Structural parity | implemented component tree ↔ `nodes[]`, 1:1 | `## Structural parity (AC-3)` | unmapped addition → finding; missing mapped component → **blocker** |
32
+ | **G5** Remediation | every FAIL row gets a fix **or** a filed mockup defect; re-run the row after a fix | per-section | a FAIL row with no remediation → FAIL |
33
+ | **G6** Freeze re-check | re-read root `get_metadata`; compare `lastModified`/`version` to `sourceRevision` | `## Contract freeze (AC-17)` | mismatch → `MOCKUP_CHANGED_AFTER_CONTRACT` (**blocker**; no silent re-baseline) |
34
+
35
+ ## Diff table shapes (G3)
36
+
37
+ Rows are **per node × property**. Emit `nodeId | property | expected (contract) | actual (rendered) | delta`.
38
+
39
+ | Property group | Expected (contract) | Actual (live) |
40
+ |---|---|---|
41
+ | typography | `variables.typography` (family / size / line-height / weight / letter-spacing) | computed `font-family/size/line-height/font-weight/letter-spacing`, `color` |
42
+ | color | `variables.color` | computed `color`, `background-color`, `border-*-color`, icon `fill` |
43
+ | spacing | `variables.spacing` + auto-layout intent | computed `padding*`, `gap`, `margin*`, DOM box model |
44
+ | radius | `variables.radius` | computed `border-radius` |
45
+ | effect | `variables.effect` | computed `box-shadow`, `filter`, `backdrop-filter` |
46
+ | asset | `asset.figmaRef/repoRef/exportFormat` | resolved `<img src>` / `<svg>` / DS icon symbol, intrinsic `width`/`height` |
47
+ | text | `variables.text` | rendered text-node content |
48
+
49
+ **Severity:** mismatch on a token-backed property → `important`; user-visible / broken / missing-state / missing-mapped-component → `blocker`; latent / cosmetic → `nit`.
50
+
51
+ ## Conditional checks
52
+
53
+ - **Viewport / responsive matrix (AC-23)** — diff at every declared viewport; **plus** a fluid sweep between buckets (no horizontal scroll / clipping / unexpected reflow). A sweep-only cosmetic issue → `nit`/`important`.
54
+ - **i18n / long-copy / RTL stress (AC-24)** — only when the repo declares `locales[]` / locale config: diff the longest-copy locale (and an RTL locale when shipped). Otherwise `N/A` with a one-line reason (never silently skipped).
55
+ - **Theme / mode parity (AC-25)** — only when the DS exposes `modes[]`: diff every mode against the per-mode variable values. Otherwise `N/A` with a reason.
56
+ - **Stable selector mapping (AC-27)** — when the repo UI layer uses `data-testid`: every interactive node records `selector.dataTestId`; otherwise `selector.strategy = role+name`.
57
+
58
+ ## Degradation (never a silent pass)
59
+
60
+ Emit a **named** `degraded:` / `blocked:` marker; cap the verdict:
61
+
62
+ - Figma MCP down → `BLOCKED_MCP` (the source is unavailable; no fidelity claim).
63
+ - only chrome-devtools down → `PASS_WITH_NOTES` + `degraded: computed-style diff via Playwright (chrome-devtools MCP unavailable)` if Playwright covers it; else `blocked: variable/value diff disabled (no browser MCP)`.
64
+ - only Playwright down → `PASS_WITH_NOTES` + `degraded: composed-frame/breakpoint check disabled (Playwright MCP unavailable)`.
65
+ - both browser MCPs down → `blocked: variable/value diff disabled (no browser MCP)`.
66
+ - Storybook MCP down → `PASS_WITH_NOTES` + `degraded: story-render check disabled (Storybook MCP unavailable)`.
67
+ - `sourceRevision` unknown → `PASS_WITH_NOTES` at best + `degraded: freeze check unavailable (no lastModified)`.
68
+
69
+ **Hard invariants:** a mandatory check may never be silently skipped; a verdict can never exceed `PASS_WITH_NOTES` while any mandatory check is degraded; `code-reviewer` maps a degraded mandatory check to `unable_to_compare` → `REQUEST_CHANGES`.
70
+
71
+ ## UI WP Definition of Done (AC-28)
72
+
73
+ A UI work package with a frozen contract is complete only when every row passes (or is explicitly `N/A` with a reason, or degraded with a named marker):
74
+
75
+ | # | Item | Section | AC |
76
+ |---|------|---------|----|
77
+ | 1 | contract present, `specVersion`/`specChecksum` current | `## Figma parity (UI)` | AC-16/AC-17 |
78
+ | 2 | screenshot diff at every declared viewport | `## Post-impl screenshot diff (AC-6)` | AC-6 |
79
+ | 3 | two-way state matrix diff | `## State matrix diff (AC-22)` | AC-22 |
80
+ | 4 | per-node value diff (typography/color/spacing/radius/effect/asset/text) | `## Variable/value diff (AC-7)` | AC-7 |
81
+ | 5 | geometry / auto-layout deltas | `## Geometry / auto-layout audit (AC-18)` | AC-18 |
82
+ | 6 | typography parity + font availability | typography rows + fallback note | AC-19 |
83
+ | 7 | effect parity | `## Effect parity (AC-20)` | AC-20 |
84
+ | 8 | asset / icon export audit | `## Asset / icon audit (AC-21)` | AC-21 |
85
+ | 9 | structural parity 1:1 | `## Structural parity (AC-3)` | AC-3 |
86
+ | 10 | viewport matrix + fluid sweep | `## Viewport matrix (AC-23)` | AC-23 |
87
+ | 11 | i18n / RTL stress (when `locales[]`) | `## i18n / RTL stress (AC-24)` | AC-24 |
88
+ | 12 | theme / mode parity (when `modes[]`) | `## Theme / mode parity (AC-25)` | AC-25 |
89
+ | 13 | freeze re-check | `## Contract freeze (AC-17)` | AC-17 |
90
+ | 14 | every FAIL has a fix or a filed mockup defect | remediation rows | AC-10 |
91
+
92
+ `feature-developer` records the dev-side items in `implementation.md`; `code-reviewer` confirms them in `review.md`. A UI WP is **not** done while any item is unmet or degraded without a marker.
93
+
94
+ ## Handoff
95
+
96
+ Figma-side defects (`defects[]`) are escalated by `mockup-reviewer` as verdict `mockup-change-requested` → receipt `changes_requested` (embedded), artifact `blocked` → `awaiting_approval`; the human fixes Figma, re-runs `mockup-review` (new `specVersion`/`specChecksum`), and resumes via `/task-continue`. Contrast / a11y is a **cross-reference** to `accessibility-reviewer` (the contract records the resolved color pairs) — no separate blocking preset contrast gate.
@@ -24,6 +24,10 @@ If plugin skills `figma-design-to-code` / `figma-use` are installed, load them f
24
24
 
25
25
  Load requestable rule `mockup-review` and follow its review dimensions, node caps, and report headings.
26
26
 
27
+ ## Contract write (AC-2 / AC-4 / AC-16 / AC-17)
28
+
29
+ For a node-link input, write the machine-readable **`figma-contract.json`** (`.ai.local/team/tasks/<slug>/`, `figmaContractVersion: 1`) **first**, then render the `mockup-review.md` projections (`## Design contract`, `## Node decomposition (AC-2)`, `## Per-node spec (AC-4)`, `## State matrix (AC-6)`, `## Design-source defect taxonomy (AC-9)`, `## Mockup change requests (AC-10)`, `## Contract freeze (AC-17)`) from it. Record `specChecksum` + `sourceRevision`. Register `figma-contract.json` on the existing `mockup-review` manifest entry `authoritativePaths`. A defect whose fix belongs in Figma → verdict `mockup-change-requested` (never a silent approximation). See the `mockup-reviewer` agent for the schema.
30
+
27
31
  ## Output
28
32
 
29
- Write `.ai.local/team/tasks/<slug>/mockup-review.md` and upsert manifest entry id `mockup-review` (producer `mockup-reviewer`). Receipt mapping is in the agent prompt.
33
+ Write `.ai.local/team/tasks/<slug>/figma-contract.json` and `.ai.local/team/tasks/<slug>/mockup-review.md` and upsert manifest entry id `mockup-review` (producer `mockup-reviewer`). Receipt mapping is in the agent prompt.
@@ -16,7 +16,10 @@ Shared `/task` runtime for Cursor, Claude, Mavis, and OpenCode. Seeded at **`.ai
16
16
  status.json # hook-owned lifecycle
17
17
  metrics.json # hook-owned append-only ledger
18
18
  artifact-manifest.json # producer receipts
19
+ prompt.md # verbatim original ask + resolved `language: <BCP-47>` header (write-if-absent; write point = /task Slug bootstrap; path on the routing entry)
20
+ prompt-log.md # append-only ledger of subsequent user-authored prompts (orchestrator-written; created on first follow-up; path on the routing entry)
19
21
  brief.md, decomposition.md, implementation.md, review.md, …
22
+ figma-contract.json # frozen Figma node map + per-node spec (writer: mockup-reviewer)
20
23
  .memlog.md # optional agent notes (hook does not parse)
21
24
  ```
22
25
 
@@ -52,7 +55,7 @@ Bootstrap a slug by **writing** `pipeline.json` (editor Write tool). Do not `mkd
52
55
 
53
56
  ## status.json
54
57
 
55
- Prefer `phase: executing`. States: `in_progress`, `completed`, `awaiting_approval` (`/task-continue`), `changes_requested`, `validation_failed`.
58
+ Prefer `phase: executing`. States: `in_progress`, `completed`, `awaiting_approval` (`/task-continue`), `changes_requested`, `validation_failed`, `blocked` (graph mode still dispatches independent ready steps), `awaiting_artifact_receipt`.
56
59
 
57
60
  ## Commands
58
61
 
@@ -75,3 +78,21 @@ Same JSON on Claude, Mavis, or OpenCode: `bash .<tool>/hooks/chain-team-phases.s
75
78
  - Manifest schema: shared core `agent-team/agent-artifact-contracts.md`. Read it first; producers upsert only their IDs.
76
79
  - Metrics: append-only allowlisted events — `agent-team/agent-task-metrics.md`. Aggregate: `node packages/ai-rules/scripts/aggregate-agent-task-metrics.mjs --team-root .ai.local/team`.
77
80
  - Commit `.ai.local/team/` templates (and slugs if you want them in clones).
81
+
82
+ ## Plan graph & checkpoint (optional)
83
+
84
+ `decomposition.md` is a dependency graph: every task carries `dependsOn[]`; the artifact holds a DAG (critical path + parallelizable groups) and, for large flows, epics/stages with exit criteria (`## Epics / stages`); `## Plan revision` tracks replans (`rev: N`).
85
+
86
+ `pipeline.json` MAY carry these additive, **hook-ignored** fields (schema v1 ignores unknown fields; the hook never parses them): `epics[]` (staging + exit criteria), `planRevision` (current plan rev), `contextBudget` (budget / checkpoint note).
87
+
88
+ `pipeline.json` `steps[]` MAY also carry the optional **step graph**: `id`, `taskIds[]`, `dependsOn[]`, `writeScopes[]`. While no step declares `dependsOn`, the hook keeps the linear pass; any occurrence switches it to graph mode, where the hook computes the ready queue and dispatches each conflict-free wave (one turn, multiple Task calls). `writeScopes` is the declared write surface that proves conflict-freedom (see shared-core `agent-team/plan-graph.md` § Pipeline step graph / § Conflict model). The hook records satisfaction in `status.joinedSlots` and names the in-flight wave in `status.waveSteps` / `status.waveId`.
89
+
90
+ **Checkpoint / resume:** progress is checkpointed to `tasks/<slug>/.memlog.md` (`## <date>` + `event:` entries) and the `artifact-manifest.json` `implementation` entry (`authoritativePaths`). A resumed run reads both and continues at the first stage whose exit criteria are unmet.
91
+
92
+ **Self-review / re-anchor:** each producing agent records a `## Self-review` block in the artifact it owns (`brief.md` / `implementation.md` / `debug-report.md` / `validation-report.md` / `review.md`) and, on detected context loss / excess, a re-anchor line in `.memlog.md` — `event:` (no plan change) or `decision: replan rev N → N+1` (plan change). No hook/lifecycle field is added.
93
+
94
+ ## Contracts
95
+
96
+ - Manifest schema: shared core `agent-team/agent-artifact-contracts.md`. Read it first; producers upsert only their IDs.
97
+ - Metrics: append-only allowlisted events — `agent-team/agent-task-metrics.md`. Aggregate: `node packages/ai-rules/scripts/aggregate-agent-task-metrics.mjs --team-root .ai.local/team`.
98
+ - Commit `.ai.local/team/` templates (and slugs if you want them in clones).
@@ -7,7 +7,7 @@
7
7
  "id": "routing",
8
8
  "producer": "task-router",
9
9
  "status": "completed",
10
- "authoritativePaths": ["pipeline.json"],
10
+ "authoritativePaths": ["pipeline.json", "prompt.md", "prompt-log.md"],
11
11
  "acceptanceCriteriaIds": [],
12
12
  "taskIds": [],
13
13
  "timestamps": {
@@ -0,0 +1,84 @@
1
+ {
2
+ "slug": "example-feature-parallel",
3
+ "intent": "feature",
4
+ "specMode": "none",
5
+ "profile": "full",
6
+ "routingDecision": {
7
+ "complexity": "high",
8
+ "riskFlags": ["cross-layer", "concurrency-state", "broad-test-surface"],
9
+ "routingReasons": [
10
+ "Two independent review surfaces (code + security) sit on the same dependency level, so the pipeline may schedule them as one parallel wave.",
11
+ "The step graph carries declared write scopes so the conflict model can prove the wave conflict-free before any step is marked parallel."
12
+ ],
13
+ "estimatedWorkPackages": 2,
14
+ "openDecisionCount": 0
15
+ },
16
+ "summary": "Step-graph feature pipeline with one parallel review wave",
17
+ "steps": [
18
+ {
19
+ "id": "T1",
20
+ "taskIds": ["T1"],
21
+ "agent": "task-analyst",
22
+ "label": "Clarify and decompose",
23
+ "writeScopes": [".ai.local/team/tasks/<slug>/brief.md", ".ai.local/team/tasks/<slug>/decomposition.md"],
24
+ "artifactOutputId": "analysis"
25
+ },
26
+ {
27
+ "id": "T2",
28
+ "taskIds": ["T2"],
29
+ "agent": "solution-architect",
30
+ "label": "Design boundaries",
31
+ "model": "strong",
32
+ "dependsOn": ["T1"],
33
+ "writeScopes": [".ai.local/team/tasks/<slug>/architecture.md"],
34
+ "artifactOutputId": "architecture"
35
+ },
36
+ {
37
+ "id": "T3",
38
+ "taskIds": ["T3"],
39
+ "agent": "feature-developer",
40
+ "label": "Implement + unit tests",
41
+ "scope": "unit-in-dev",
42
+ "dependsOn": ["T2"],
43
+ "writeScopes": ["app/src/feature", ".ai.local/team/tasks/<slug>/implementation.md"],
44
+ "artifactOutputId": "implementation"
45
+ },
46
+ {
47
+ "id": "T4",
48
+ "taskIds": ["T4"],
49
+ "agent": ["code-reviewer", "security-reviewer"],
50
+ "label": "Review (code + security)",
51
+ "parallel": true,
52
+ "dependsOn": ["T3"],
53
+ "writeScopes": [".ai.local/team/tasks/<slug>/review.md", ".ai.local/team/tasks/<slug>/security-review.md"],
54
+ "artifactInputIds": ["implementation"],
55
+ "artifactOutputIds": {
56
+ "code-reviewer": "review",
57
+ "security-reviewer": "security-review"
58
+ }
59
+ },
60
+ {
61
+ "id": "T5",
62
+ "taskIds": ["T5"],
63
+ "agent": "tech-writer",
64
+ "label": "Documentation",
65
+ "dependsOn": ["T3"],
66
+ "writeScopes": [".ai.local/team/tasks/<slug>/documentation.md"],
67
+ "artifactOutputId": "documentation"
68
+ },
69
+ {
70
+ "id": "T6",
71
+ "taskIds": ["T6"],
72
+ "agent": "build-verifier",
73
+ "label": "Validation gate",
74
+ "model": "cheap",
75
+ "dependsOn": ["T4", "T5"],
76
+ "writeScopes": [".ai.local/team/tasks/<slug>/validation-report.md"],
77
+ "artifactInputIds": ["implementation", "review", "security-review"],
78
+ "artifactOutputId": "validation"
79
+ }
80
+ ],
81
+ "humanGates": ["after:task-analyst"],
82
+ "autoChain": true,
83
+ "skipped": []
84
+ }
@@ -7,6 +7,9 @@ Cross-tool repo-root guide. Tool-specific maps stay under `.cursor/AGENTS.md`, `
7
7
  - Treat this file as the **shared** entry for any agent (Cursor, Claude Code, Mavis, OpenCode, or other).
8
8
  - All four platforms ship **the same** root file. `init` overwrites it; content does not depend on which tool ran last.
9
9
  - Tool maps (agent-team tables, slash commands) live in `.cursor/AGENTS.md` / `.claude/CLAUDE.md` / `.mavis/AGENTS.md` / `.opencode/AGENTS.md` — use them when that tool is installed.
10
+ - **Language.** Keep development, reasoning, and artifacts in **English**; answer the user in their
11
+ **native language** (`.ai.local/conventions.md` `## Language`, else the prompt language, else English) for
12
+ every question, gate prompt, status, and summary — see the `language-policy` rule.
10
13
  - Install:
11
14
 
12
15
  ```bash
@@ -97,3 +97,9 @@ Rule: `rules/tooling-and-review/agent-team-orchestrator.md`. Plan: `pipeline.jso
97
97
  ## Artifacts
98
98
 
99
99
  Schema: `.ai.local/team/README.md`. Intents and profiles: `task-router.md` only.
100
+
101
+ ## Plan contract
102
+
103
+ The analyst frames every task before decomposition: **goal frame** (goal, user value, success + result-evaluation criteria) → **requirements + AC-IDs** → **information-sufficiency** verdict → decomposition with `dependsOn[]` / DAG / epics-with-exit-criteria. `decomposition.md` is the plan graph; `pipeline.json` may add the optional, hook-ignored `epics[]`, `planRevision`, and `contextBudget` fields. Progress is checkpointed to `.memlog.md` and is resumable from `artifact-manifest.json`.
104
+
105
+ **Self-review & context hygiene (producer-side):** before its terminal receipt (per wave for multi-wave work) each producing agent self-reviews its output against the framed goal + `AC-`IDs — coverage, evidence, alignment/drift — and, on drift, **re-anchors** to the goal frame + `decomposition.md` and records the correction in `.memlog.md`. Ratchets down for `bounded`/`spike`.
@@ -48,6 +48,18 @@ Prefer **`lint`** (= js + css + typecheck) before handoff on large changes.
48
48
 
49
49
  Before writing `validation-report.md` or claiming PASS: IDENTIFY the commands, RUN them, READ exit codes, VERIFY they match the verdict, THEN claim. Do not mark PASS from memory of a prior developer run.
50
50
 
51
+ ## Self-review & context hygiene
52
+
53
+ <!-- shared-core: quality/self-review-and-context-hygiene.md -->
54
+
55
+ Before you run the project gate and write the terminal validation receipt, self-audit the scope you are validating: every `AC-`ID covered, fresh same-turn evidence, and alignment with the framed task. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
56
+
57
+ **Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
58
+
59
+ **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
60
+
61
+ Record a `## Self-review` block in `validation-report.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
62
+
51
63
  ## Preset-structure validation (when scope is preset / packages/ai-rules)
52
64
 
53
65
  When validating **preset packaging** changes (paths under `packages/ai-rules/presets/**`, or `scope: preset-structure-validation` / `preset-artifacts-only`), run these checks. Skip app lint if there are **no** app source changes.
@@ -40,6 +40,18 @@ You **issue** reviews. Implementers acting on your findings must verify each ite
40
40
  - If `validation-report.md` exists and verdict is FAIL → **REQUEST_CHANGES** (developer must fix before review passes).
41
41
  - User-flow changes without e2e plan/spec updates → note in warnings; REQUEST_CHANGES when AC requires e2e.
42
42
 
43
+ ## Self-review & context hygiene
44
+
45
+ <!-- shared-core: quality/self-review-and-context-hygiene.md -->
46
+
47
+ Before you emit the terminal review receipt, self-audit the review artifact: every `AC-`ID covered, findings backed by fresh evidence, and no scope creep beyond the reviewed diff. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
48
+
49
+ **Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
50
+
51
+ **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
52
+
53
+ Record a `## Self-review` block in `review.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
54
+
43
55
  ## Review artifact
44
56
 
45
57
  - If the MR touches `docs/specs/**`, load **`product-specs`** (+ **`product-specs-authoring`** when new/changed specs): **WARN** code/spec drift; **FAIL** broken INDEX `path` link or missing required frontmatter keys/arrays on touched spec files; required body headings missing → **FAIL** on touched files. Do not invent missing product behavior.
@@ -84,6 +84,18 @@ fixApplied: false
84
84
 
85
85
  After **three** unsuccessful fix attempts (or the same symptom returning twice): STOP. Do not attempt fix #4. Escalate architecture with the human or `solution-architect`. Follow skill `debug-investigation`. Before `fixApplied: true`, re-run the failing check.
86
86
 
87
+ ## Self-review & context hygiene
88
+
89
+ <!-- shared-core: quality/self-review-and-context-hygiene.md -->
90
+
91
+ Before you set `fixApplied: true` and emit the terminal receipt, self-audit the fix: every `AC-`ID addressed, the re-run evidence present, and no scope creep beyond the framed fault. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
92
+
93
+ **Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
94
+
95
+ **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
96
+
97
+ Record a `## Self-review` block in `debug-report.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
98
+
87
99
  ## MCP usage
88
100
 
89
101
  Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
@@ -91,6 +91,18 @@ Do not perform formal code review — that is the code-reviewer subagent's job.
91
91
 
92
92
  Before handoff, IDENTIFY→RUN→READ→VERIFY the scoped checks for this WP, THEN claim. Do not say the work is done without that evidence in the same turn. Full-project lint is `build-verifier`.
93
93
 
94
+ ## Self-review & context hygiene
95
+
96
+ <!-- shared-core: quality/self-review-and-context-hygiene.md -->
97
+
98
+ Before you emit the terminal implementation receipt (per wave for multi-wave work), self-audit your own output: every `AC-`ID addressed or explicitly deferred, fresh same-turn evidence for each "done" claim, and no drift beyond the framed scope. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
99
+
100
+ **Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
101
+
102
+ **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
103
+
104
+ Record a `## Self-review` block in `implementation.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
105
+
94
106
  ## Anti-hallucination (Vue / Nuxt / Pinia)
95
107
 
96
108
  - When editing `pages|components|stores|api|composables/**/*.{vue,ts}`, load / follow rule `vue-nuxt-anti-hallucination`.
@@ -35,6 +35,36 @@ Before decomposing, name the class: **spike** / **bounded** / **architectural**.
35
35
  - **Bounded** — few tasks, only layers actually touched; do not pad types/api/store/ui.
36
36
  - **Architectural** — full layer table; architect when boundaries are unclear.
37
37
 
38
+ ## Task framing
39
+
40
+ <!-- shared-core: agent-team/task-framing.md -->
41
+
42
+ Before decomposing: state the **goal frame** (goal, user value, success criteria, result-evaluation criteria = named oracle), elicit **requirements** each traceable to a testable `AC-`ID, and give an explicit **information-sufficiency** verdict (`sufficient` | `insufficient`). `insufficient` → record assumptions / unknowns / blockers in `open_questions` and mark the analysis `applyReadiness: blocked`; do not decompose. Bounded/spike emit a thin frame only.
43
+
44
+ ## Plan graph
45
+
46
+ <!-- shared-core: agent-team/plan-graph.md -->
47
+
48
+ Decompose as a **dependency graph**: each task carries `dependsOn[]`, the edges form a **DAG** with a critical path and parallelizable groups. Large flows are staged into **Epics / stages** with **exit criteria** (ratchet: bounded tasks stay flat). Plan revision is a named, auditable operation (`decision: replan rev N → N+1` in `.memlog.md`, then re-gate). Parallelizable groups are **proven conflict-free** before the router may mark them `parallel: true` — disjoint declared `writeScopes`, distinct agents and `artifactOutputIds`, and no producer→consumer edge. Keep task IDs stable so `steps[].taskIds` / `steps[].dependsOn[]` reuse this vocabulary (see **plan-graph** § Conflict model).
49
+
50
+ ## Context budget & iterative refinement
51
+
52
+ <!-- shared-core: quality/context-and-iteration.md -->
53
+
54
+ Work in bounded waves; delegate mechanical waves to repo scripts. **Checkpoint** progress to `.memlog.md` and record produced paths on the `implementation` manifest entry `authoritativePaths`, so a run can resume from `artifact-manifest.json` + `.memlog.md` without re-deriving state. Refine with the named loop **draft → evaluate against named criteria → refine**.
55
+
56
+ ## Self-review & context hygiene
57
+
58
+ <!-- shared-core: quality/self-review-and-context-hygiene.md -->
59
+
60
+ Before you emit the terminal analysis receipt, self-audit the goal frame and decomposition you are about to hand off: every `AC-`ID addressed or explicitly deferred, evidence present, and alignment with the framed goal. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
61
+
62
+ **Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
63
+
64
+ **Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
65
+
66
+ Record a `## Self-review` block in `brief.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
67
+
38
68
  ## Clarification cycle (must)
39
69
 
40
70
  1. Rephrase the task in your own words (goal, user value, boundaries).
@@ -77,6 +77,14 @@ Name the class in `routingReasons`. Maps to profiles already in this file — do
77
77
 
78
78
  SoT: `agent-team/task-classification` (shared-core marker above; do not invent a second pipeline).
79
79
 
80
+ ## Plan graph (optional `pipeline.json` fields)
81
+
82
+ <!-- shared-core: agent-team/plan-graph.md -->
83
+
84
+ The router MAY echo the analyst's plan as additive, **hook-ignored** top-level `pipeline.json` fields: `epics[]` (staging with exit criteria), `planRevision` (current plan rev), and `contextBudget` (budget / checkpoint note). Schema v1 ignores unknown fields and the hook never parses them — emit them only when the analyst produced a plan graph.
85
+
86
+ Routing signals: a large or cross-cutting flow → prefer `full` and name epic staging in `routingReasons`; likely context pressure (broad surface, many files) → note a checkpoint / `contextBudget` plan. Bounded and spike stay flat (no `epics`).
87
+
80
88
  **Light by intent:**
81
89
 
82
90
  | intent | light steps |
@@ -125,6 +133,16 @@ Keep top-level `profile` and emit this top-level object in every new `pipeline.j
125
133
  - **Always build-verifier** after developer (or after ci-investigator/debugger if they changed code) for `feature`, `bugfix`, `refactor`, `migration`, `a11y`.
126
134
  - **skipIf:** `debugger.fixed` on developer (bugfix); `ci-investigator.resolved` (ci-fix).
127
135
 
136
+ ## Parallel step graph (emission rule)
137
+
138
+ A pipeline may carry a step graph. Emit it only for the **architectural** class with more than one independent work package; bounded/spike pipelines stay linear.
139
+
140
+ - Give steps `id` (the decomposition task ID when 1:1), `taskIds` (the analyst's decomposition task IDs), `dependsOn` (step IDs or `taskIds` that must finish first), and `writeScopes` (repo-relative paths the step may write, `<slug>` the only placeholder).
141
+ - Set `parallel: true` (with an `agent` array) **only** for a set proven conflict-free: disjoint declared `writeScopes`, distinct agents, distinct `artifactOutputIds`, none of `status.json` / `metrics.json` / `artifact-manifest.json` / `.metrics-receipts.json` in any scope.
142
+ - A producer → consumer artifact pair is a `dependsOn` edge, never a parallel group.
143
+ - **Never** put `mockup-reviewer` in a parallel group — its FAIL gate is serial.
144
+ - Reference fixture: `team/fixtures/feature-parallel.json` (graph + one `parallel: true` step).
145
+
128
146
  ## Model tiers (`steps[].model`)
129
147
 
130
148
  Optional per-step field: `"model": "cheap" | "standard" | "strong"`. Omit → agent frontmatter default (see **Model matrix** in `agents/README.md`).
@@ -2,6 +2,14 @@
2
2
 
3
3
  Consumer-owned store for post-init gotchas, patterns, and decisions. **Not** always-on. Fill after `ai-rules init`. Root `AGENTS.md` only points here.
4
4
 
5
+ ## Language
6
+
7
+ Consumer setting for user-facing dialogue. Change `en` to your BCP-47 tag (e.g. `ru`, `de`, `es`).
8
+
9
+ - **User-facing dialogue:** `en` — every question, plan/gate prompt, status answer, summary, and escalation
10
+ is written in this language. Development, reasoning, and all artifacts stay English. Unset → infer from the
11
+ prompt language (mixed → dominant); English-only/ambiguous → English. The nearest `.ai.local` wins.
12
+
5
13
  ## Gotchas
6
14
 
7
15
  <!-- e.g. fragile flows, “never do X in this repo” -->
@@ -37,6 +37,14 @@ printf '%s\n' '{"status":"completed","action":"end_human_gate","activateNext":tr
37
37
  5. **Other resume**: restore `pipelineIndex` / `currentAgent` from status and invoke that agent.
38
38
  6. After the invoked agent completes, `chain-team-phases.sh` on `subagentStop` continues the chain when `autoChain: true`.
39
39
 
40
+ ## Checkpoint & resume
41
+
42
+ Resume from the on-disk checkpoint, not from chat: read `.ai.local/team/tasks/<slug>/artifact-manifest.json` (authoritative paths per producer) and `.memlog.md` (`## <date>` + `event:` entries), skip completed waves, and continue at the first stage whose exit criteria are unmet. Record produced paths on the `implementation` manifest entry as you go. Do **not** overwrite or duplicate `.ai.local/team/tasks/<slug>/prompt.md` — it records the original ask (write-if-absent). Append the `/task-continue` arguments (when present) and any gate feedback verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; skip when the invocation carries no new user words).
43
+
44
+ Plan revision during execution is a named, auditable operation: an evaluation oracle failing twice, a scope/requirement change, or a newly discovered dependency triggers `decision: replan rev N → N+1` in `.memlog.md`, an edit to `decomposition.md` (+ optional `planRevision`), and a **re-run of the affected gate**.
45
+
46
+ A producer-side **re-anchor** (detected context loss / excess against the framed goal) is recorded append-only in `.memlog.md` (`event:` line, or `decision: replan rev N → N+1` when the plan changes); resume reads that line with the checkpoint and does not re-derive the correction from chat.
47
+
40
48
  ## Artifacts for handoff
41
49
 
42
50
  | Agent | Read |