@bonesofspring/ai-rules 0.2.53 → 0.2.56

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 (2091) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +18 -13
  3. package/bin/cli.js +53 -14
  4. package/bin/lib/mcp/clients.js +47 -10
  5. package/bin/lib/mcp/credentials.js +14 -2
  6. package/bin/lib/mcp/doctor.js +8 -6
  7. package/bin/lib/mcp/registry.js +1 -0
  8. package/bin/lib/mcp/run.js +2 -0
  9. package/bin/lib/merged-config.js +23 -2
  10. package/bin/lib/seed-ai-local-team.js +1 -1
  11. package/bin/lib/tool-installs.js +1 -0
  12. package/bin/opencode-install.js +18 -0
  13. package/bin/zcode-install.js +479 -0
  14. package/docs/MAVIS.md +3 -3
  15. package/docs/MCP-SETUP.md +7 -7
  16. package/docs/OPENCODE-COMPATIBILITY.md +1 -1
  17. package/docs/OPENCODE.md +3 -3
  18. package/docs/PRESET-CONTRIBUTION.md +22 -10
  19. package/docs/TEAM-DB.md +64 -13
  20. package/docs/ZCODE-COMPATIBILITY.md +143 -0
  21. package/docs/ZCODE.md +50 -0
  22. package/docs/openapi/team-db.v1.json +122 -2
  23. package/package.json +11 -4
  24. package/presets/_shared/ai-local/scripts/team-db-api.mjs +70 -4
  25. package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +29 -3
  26. package/presets/_shared/ai-local/scripts/team-db-project.mjs +251 -26
  27. package/presets/_shared/ai-local/scripts/team-db.mjs +96 -6
  28. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +1 -1
  29. package/presets/_shared/core/meta/preset-pr-checklist.md +1 -1
  30. package/presets/_shared/core/meta/preset-twin-sync.md +2 -2
  31. package/presets/claude/android-kotlin/REPO_AGENTS.md +15 -8
  32. package/presets/claude/android-kotlin/commands/README.md +1 -0
  33. package/presets/claude/android-kotlin/commands/migrate-tasks.md +41 -0
  34. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  35. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +2 -2
  36. package/presets/claude/android-kotlin/team/README.md +4 -2
  37. package/presets/claude/go/REPO_AGENTS.md +15 -8
  38. package/presets/claude/go/commands/README.md +1 -0
  39. package/presets/claude/go/commands/migrate-tasks.md +41 -0
  40. package/presets/claude/go/rules/README.md +1 -1
  41. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  42. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +2 -2
  43. package/presets/claude/go/team/README.md +4 -2
  44. package/presets/claude/ios-swift/REPO_AGENTS.md +15 -8
  45. package/presets/claude/ios-swift/commands/README.md +1 -0
  46. package/presets/claude/ios-swift/commands/migrate-tasks.md +41 -0
  47. package/presets/claude/ios-swift/rules/README.md +1 -1
  48. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  49. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +2 -2
  50. package/presets/claude/ios-swift/team/README.md +4 -2
  51. package/presets/claude/java/REPO_AGENTS.md +15 -8
  52. package/presets/claude/java/commands/README.md +1 -0
  53. package/presets/claude/java/commands/migrate-tasks.md +41 -0
  54. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  55. package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +2 -2
  56. package/presets/claude/java/team/README.md +4 -2
  57. package/presets/claude/mcp-ts/REPO_AGENTS.md +15 -8
  58. package/presets/claude/mcp-ts/commands/README.md +1 -0
  59. package/presets/claude/mcp-ts/commands/migrate-tasks.md +41 -0
  60. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  61. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +2 -2
  62. package/presets/claude/mcp-ts/team/README.md +4 -2
  63. package/presets/claude/mol/CLAUDE.md +53 -0
  64. package/presets/claude/mol/MCP.md +38 -0
  65. package/presets/claude/mol/README.md +9 -0
  66. package/presets/claude/mol/REPO_AGENTS.md +107 -0
  67. package/presets/claude/mol/agents/README.md +97 -0
  68. package/presets/claude/mol/agents/accessibility-reviewer.md +86 -0
  69. package/presets/claude/mol/agents/api-contract-reviewer.md +81 -0
  70. package/presets/claude/mol/agents/build-verifier.md +111 -0
  71. package/presets/claude/mol/agents/ci-investigator.md +91 -0
  72. package/presets/claude/mol/agents/code-reviewer.md +133 -0
  73. package/presets/claude/mol/agents/codebase-analyzer.md +45 -0
  74. package/presets/claude/mol/agents/debugger.md +122 -0
  75. package/presets/claude/mol/agents/feature-developer.md +147 -0
  76. package/presets/claude/mol/agents/migration-specialist.md +91 -0
  77. package/presets/claude/mol/agents/mockup-reviewer.md +125 -0
  78. package/presets/claude/mol/agents/openspec-author.md +207 -0
  79. package/presets/claude/mol/agents/performance-auditor.md +92 -0
  80. package/presets/claude/mol/agents/playwright-test-generator.md +52 -0
  81. package/presets/claude/mol/agents/playwright-test-healer.md +53 -0
  82. package/presets/claude/mol/agents/playwright-test-planner.md +45 -0
  83. package/presets/claude/mol/agents/qa-tester.md +76 -0
  84. package/presets/claude/mol/agents/security-reviewer.md +83 -0
  85. package/presets/claude/mol/agents/solution-architect.md +93 -0
  86. package/presets/claude/mol/agents/task-analyst.md +249 -0
  87. package/presets/claude/mol/agents/task-router.md +261 -0
  88. package/presets/claude/mol/agents/tech-writer.md +82 -0
  89. package/presets/claude/mol/agents/unit-test-generator.md +55 -0
  90. package/presets/claude/mol/agents/unit-test-healer.md +56 -0
  91. package/presets/claude/mol/agents/unit-test-planner.md +78 -0
  92. package/presets/claude/mol/ai-local/conventions.md +49 -0
  93. package/presets/claude/mol/ai-local/rules/task-levels.md +40 -0
  94. package/presets/claude/mol/ai-local/rules-library/agent-artifacts-no-local-paths.md +71 -0
  95. package/presets/claude/mol/ai-local/rules-library/agent-pipeline-gates.md +19 -0
  96. package/presets/claude/mol/ai-local/rules-library/analytics-events.md +18 -0
  97. package/presets/claude/mol/ai-local/rules-library/api-contract-source.md +14 -0
  98. package/presets/claude/mol/ai-local/rules-library/artifact-lifecycle.md +17 -0
  99. package/presets/claude/mol/ai-local/rules-library/code-style.md +68 -0
  100. package/presets/claude/mol/ai-local/rules-library/commit-hygiene.md +17 -0
  101. package/presets/claude/mol/ai-local/rules-library/component-child-decomposition.md +81 -0
  102. package/presets/claude/mol/ai-local/rules-library/feature-flags-experiments.md +15 -0
  103. package/presets/claude/mol/ai-local/rules-library/mcp-required-for-ui-layout.md +45 -0
  104. package/presets/claude/mol/ai-local/rules-library/no-react-fc.md +46 -0
  105. package/presets/claude/mol/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
  106. package/presets/claude/mol/ai-local/rules-library/pre-pr-checklist.md +16 -0
  107. package/presets/claude/mol/ai-local/rules-library/pwa-service-worker.md +15 -0
  108. package/presets/claude/mol/ai-local/rules-library/qa-test-cases.md +14 -0
  109. package/presets/claude/mol/ai-local/rules-library/router-pages.md +25 -0
  110. package/presets/claude/mol/ai-local/rules-library/single-source-copy-constants.md +18 -0
  111. package/presets/claude/mol/ai-local/rules-library/storybook-catalog-structure.md +62 -0
  112. package/presets/claude/mol/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
  113. package/presets/claude/mol/ai-local/rules-library/storybook-csf-authoring.md +100 -0
  114. package/presets/claude/mol/ai-local/rules-library/storybook-dev-compare-figma.md +71 -0
  115. package/presets/claude/mol/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
  116. package/presets/claude/mol/ai-local/rules-library/storybook-modals.md +64 -0
  117. package/presets/claude/mol/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
  118. package/presets/claude/mol/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
  119. package/presets/claude/mol/ai-local/rules-library/ui-change-review-gate.md +15 -0
  120. package/presets/claude/mol/commands/README.md +56 -0
  121. package/presets/claude/mol/commands/migrate-tasks.md +41 -0
  122. package/presets/claude/mol/commands/spec-start.md +29 -0
  123. package/presets/claude/mol/commands/task-continue.md +72 -0
  124. package/presets/claude/mol/commands/task-evil.md +84 -0
  125. package/presets/claude/mol/commands/task.md +72 -0
  126. package/presets/claude/mol/commands/technical-retro.md +93 -0
  127. package/presets/claude/mol/commands/update.md +40 -0
  128. package/presets/claude/mol/hooks/chain-team-phases.sh +2783 -0
  129. package/presets/claude/mol/hooks/check-preset-update.mjs +232 -0
  130. package/presets/claude/mol/hooks/list-ai-local.mjs +299 -0
  131. package/presets/claude/mol/mcp.json +20 -0
  132. package/presets/claude/mol/rules/README.md +87 -0
  133. package/presets/claude/mol/rules/architecture/feature-delivery-workflow.md +149 -0
  134. package/presets/claude/mol/rules/architecture/mol-state.md +30 -0
  135. package/presets/claude/mol/rules/architecture/mol-theming.md +30 -0
  136. package/presets/claude/mol/rules/architecture/product-specs-authoring.md +124 -0
  137. package/presets/claude/mol/rules/architecture/product-specs.md +67 -0
  138. package/presets/claude/mol/rules/architecture/reference-features.md +87 -0
  139. package/presets/claude/mol/rules/stack/mol-app-core.md +34 -0
  140. package/presets/claude/mol/rules/stack/mol-components.md +36 -0
  141. package/presets/claude/mol/rules/stack/mol-reactivity.md +26 -0
  142. package/presets/claude/mol/rules/stack/mol-view-tree.md +32 -0
  143. package/presets/claude/mol/rules/stack/package-manager.md +12 -0
  144. package/presets/claude/mol/rules/testing/mol-build.md +29 -0
  145. package/presets/claude/mol/rules/testing/mol-testing.md +36 -0
  146. package/presets/claude/mol/rules/tooling-and-review/agent-team-intake.md +19 -0
  147. package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +287 -0
  148. package/presets/claude/mol/rules/tooling-and-review/ai-local-overlay.md +23 -0
  149. package/presets/claude/mol/rules/tooling-and-review/anti-hallucination-contract.md +42 -0
  150. package/presets/claude/mol/rules/tooling-and-review/anti-sycophancy-discipline.md +28 -0
  151. package/presets/claude/mol/rules/tooling-and-review/code-quality.md +80 -0
  152. package/presets/claude/mol/rules/tooling-and-review/code-review-mr.md +100 -0
  153. package/presets/claude/mol/rules/tooling-and-review/design-guidance.md +109 -0
  154. package/presets/claude/mol/rules/tooling-and-review/interactive-questions.md +34 -0
  155. package/presets/claude/mol/rules/tooling-and-review/language-policy.md +59 -0
  156. package/presets/claude/mol/rules/tooling-and-review/mcp-usage.md +101 -0
  157. package/presets/claude/mol/rules/tooling-and-review/preset-goals.md +39 -0
  158. package/presets/claude/mol/rules/tooling-and-review/preset-layering.md +35 -0
  159. package/presets/claude/mol/rules/tooling-and-review/preset-no-cross-stack-leakage.md +97 -0
  160. package/presets/claude/mol/rules/tooling-and-review/preset-pr-checklist.md +53 -0
  161. package/presets/claude/mol/rules/tooling-and-review/preset-token-budget.md +46 -0
  162. package/presets/claude/mol/rules/tooling-and-review/preset-twin-sync.md +49 -0
  163. package/presets/claude/mol/rules/tooling-and-review/preset-writing-style.md +50 -0
  164. package/presets/claude/mol/rules/tooling-and-review/technical-retro.md +18 -0
  165. package/presets/claude/mol/settings.json +52 -0
  166. package/presets/claude/mol/skills/README.md +17 -0
  167. package/presets/claude/mol/skills/ci-investigation/SKILL.md +44 -0
  168. package/presets/claude/mol/skills/code-review/SKILL.md +55 -0
  169. package/presets/claude/mol/skills/debug-investigation/SKILL.md +59 -0
  170. package/presets/claude/mol/skills/feature-delivery/SKILL.md +39 -0
  171. package/presets/claude/mol/skills/spec-authoring/SKILL.md +26 -0
  172. package/presets/claude/mol/skills/spec-discovery/SKILL.md +58 -0
  173. package/presets/claude/mol/skills/technical-retro/SKILL.md +67 -0
  174. package/presets/claude/mol/skills/unit-testing/SKILL.md +33 -0
  175. package/presets/claude/mol/skills/write-adr/SKILL.md +41 -0
  176. package/presets/claude/mol/team/README.md +135 -0
  177. package/presets/claude/mol/team/fixtures/artifact-manifest.example.json +80 -0
  178. package/presets/claude/mol/team/fixtures/bugfix-standard.json +25 -0
  179. package/presets/claude/mol/team/fixtures/feature-full.json +29 -0
  180. package/presets/claude/mol/team/fixtures/feature-light.json +28 -0
  181. package/presets/claude/mol/team/fixtures/feature-parallel.json +84 -0
  182. package/presets/claude/mol/team/fixtures/feature-ui-standard.json +24 -0
  183. package/presets/claude/mol/team/fixtures/feature-with-figma-url.json +27 -0
  184. package/presets/claude/mol/team/fixtures/feature-with-ux-no-figma.json +26 -0
  185. package/presets/claude/mol/team/fixtures/memlog.example.md +9 -0
  186. package/presets/claude/mol/team/fixtures/metrics-scenarios/tasks/human-gate/metrics.json +69 -0
  187. package/presets/claude/mol/team/fixtures/metrics-scenarios/tasks/missing-ledger/status.json +5 -0
  188. package/presets/claude/mol/team/fixtures/metrics-scenarios/tasks/parallel-receipts/metrics.json +79 -0
  189. package/presets/claude/mol/team/fixtures/metrics-scenarios/tasks/serial-retry/metrics.json +124 -0
  190. package/presets/claude/mol/team/fixtures/metrics-scenarios/tasks/validation-failed/metrics.json +124 -0
  191. package/presets/claude/mol/team/fixtures/metrics.example.json +54 -0
  192. package/presets/claude/mol/team/fixtures/mockup-review-fail-embedded-status.json +8 -0
  193. package/presets/claude/mol/team/fixtures/mockup-review-standalone.json +23 -0
  194. package/presets/claude/mol/team/fixtures/ux-design-standalone.json +24 -0
  195. package/presets/claude/mol/team/tasks/.gitkeep +0 -0
  196. package/presets/claude/next/REPO_AGENTS.md +16 -9
  197. package/presets/claude/next/agents/task-analyst.md +11 -0
  198. package/presets/claude/next/agents/task-router.md +11 -0
  199. package/presets/claude/next/commands/README.md +4 -0
  200. package/presets/claude/next/commands/migrate-tasks.md +41 -0
  201. package/presets/claude/next/commands/task-evil.md +88 -0
  202. package/presets/claude/next/rules/README.md +1 -1
  203. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  204. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +2 -2
  205. package/presets/claude/next/settings.json +1 -6
  206. package/presets/claude/next/team/README.md +4 -2
  207. package/presets/claude/nuxt/REPO_AGENTS.md +15 -8
  208. package/presets/claude/nuxt/commands/README.md +1 -0
  209. package/presets/claude/nuxt/commands/migrate-tasks.md +41 -0
  210. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  211. package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +2 -2
  212. package/presets/claude/nuxt/settings.json +1 -6
  213. package/presets/claude/nuxt/team/README.md +4 -2
  214. package/presets/claude/php-hexagonal/REPO_AGENTS.md +15 -8
  215. package/presets/claude/php-hexagonal/commands/README.md +1 -0
  216. package/presets/claude/php-hexagonal/commands/migrate-tasks.md +41 -0
  217. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  218. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +2 -2
  219. package/presets/claude/php-hexagonal/team/README.md +4 -2
  220. package/presets/claude/php-laravel/REPO_AGENTS.md +15 -8
  221. package/presets/claude/php-laravel/commands/README.md +1 -0
  222. package/presets/claude/php-laravel/commands/migrate-tasks.md +41 -0
  223. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  224. package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +2 -2
  225. package/presets/claude/php-laravel/team/README.md +4 -2
  226. package/presets/claude/svelte/REPO_AGENTS.md +15 -8
  227. package/presets/claude/svelte/commands/README.md +1 -0
  228. package/presets/claude/svelte/commands/migrate-tasks.md +41 -0
  229. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  230. package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +2 -2
  231. package/presets/claude/svelte/settings.json +1 -6
  232. package/presets/claude/svelte/team/README.md +4 -2
  233. package/presets/cursor/android-kotlin/REPO_AGENTS.md +15 -8
  234. package/presets/cursor/android-kotlin/commands/README.md +1 -0
  235. package/presets/cursor/android-kotlin/commands/migrate-tasks.md +41 -0
  236. package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +1 -1
  237. package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +2 -2
  238. package/presets/cursor/android-kotlin/team/README.md +4 -2
  239. package/presets/cursor/go/REPO_AGENTS.md +15 -8
  240. package/presets/cursor/go/commands/README.md +1 -0
  241. package/presets/cursor/go/commands/migrate-tasks.md +41 -0
  242. package/presets/cursor/go/rules/preset-pr-checklist.mdc +1 -1
  243. package/presets/cursor/go/rules/preset-twin-sync.mdc +2 -2
  244. package/presets/cursor/go/team/README.md +4 -2
  245. package/presets/cursor/ios-swift/REPO_AGENTS.md +15 -8
  246. package/presets/cursor/ios-swift/commands/README.md +1 -0
  247. package/presets/cursor/ios-swift/commands/migrate-tasks.md +41 -0
  248. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +1 -1
  249. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +2 -2
  250. package/presets/cursor/ios-swift/team/README.md +4 -2
  251. package/presets/cursor/java/REPO_AGENTS.md +15 -8
  252. package/presets/cursor/java/commands/README.md +1 -0
  253. package/presets/cursor/java/commands/migrate-tasks.md +41 -0
  254. package/presets/cursor/java/rules/preset-pr-checklist.mdc +1 -1
  255. package/presets/cursor/java/rules/preset-twin-sync.mdc +2 -2
  256. package/presets/cursor/java/team/README.md +4 -2
  257. package/presets/cursor/mcp-ts/REPO_AGENTS.md +15 -8
  258. package/presets/cursor/mcp-ts/commands/README.md +1 -0
  259. package/presets/cursor/mcp-ts/commands/migrate-tasks.md +41 -0
  260. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +1 -1
  261. package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +2 -2
  262. package/presets/cursor/mcp-ts/team/README.md +4 -2
  263. package/presets/cursor/mol/AGENTS.md +40 -0
  264. package/presets/cursor/mol/BUGBOT.md +14 -0
  265. package/presets/cursor/mol/MCP.md +50 -0
  266. package/presets/cursor/mol/README.md +18 -0
  267. package/presets/cursor/mol/REPO_AGENTS.md +107 -0
  268. package/presets/cursor/mol/agents/README.md +97 -0
  269. package/presets/cursor/mol/agents/accessibility-reviewer.md +74 -0
  270. package/presets/cursor/mol/agents/api-contract-reviewer.md +69 -0
  271. package/presets/cursor/mol/agents/build-verifier.md +99 -0
  272. package/presets/cursor/mol/agents/ci-investigator.md +75 -0
  273. package/presets/cursor/mol/agents/code-reviewer.md +120 -0
  274. package/presets/cursor/mol/agents/codebase-analyzer.md +33 -0
  275. package/presets/cursor/mol/agents/debugger.md +106 -0
  276. package/presets/cursor/mol/agents/feature-developer.md +131 -0
  277. package/presets/cursor/mol/agents/migration-specialist.md +79 -0
  278. package/presets/cursor/mol/agents/mockup-reviewer.md +113 -0
  279. package/presets/cursor/mol/agents/openspec-author.md +195 -0
  280. package/presets/cursor/mol/agents/performance-auditor.md +80 -0
  281. package/presets/cursor/mol/agents/playwright-test-generator.md +40 -0
  282. package/presets/cursor/mol/agents/playwright-test-healer.md +41 -0
  283. package/presets/cursor/mol/agents/playwright-test-planner.md +33 -0
  284. package/presets/cursor/mol/agents/qa-tester.md +64 -0
  285. package/presets/cursor/mol/agents/security-reviewer.md +71 -0
  286. package/presets/cursor/mol/agents/solution-architect.md +81 -0
  287. package/presets/cursor/mol/agents/task-analyst.md +237 -0
  288. package/presets/cursor/mol/agents/task-router.md +249 -0
  289. package/presets/cursor/mol/agents/tech-writer.md +70 -0
  290. package/presets/cursor/mol/agents/unit-test-generator.md +43 -0
  291. package/presets/cursor/mol/agents/unit-test-healer.md +44 -0
  292. package/presets/cursor/mol/agents/unit-test-planner.md +66 -0
  293. package/presets/cursor/mol/ai-local/conventions.md +49 -0
  294. package/presets/cursor/mol/ai-local/rules/task-levels.md +40 -0
  295. package/presets/cursor/mol/ai-local/rules-library/agent-artifacts-no-local-paths.md +71 -0
  296. package/presets/cursor/mol/ai-local/rules-library/agent-pipeline-gates.md +19 -0
  297. package/presets/cursor/mol/ai-local/rules-library/analytics-events.md +18 -0
  298. package/presets/cursor/mol/ai-local/rules-library/api-contract-source.md +14 -0
  299. package/presets/cursor/mol/ai-local/rules-library/artifact-lifecycle.md +17 -0
  300. package/presets/cursor/mol/ai-local/rules-library/code-style.md +68 -0
  301. package/presets/cursor/mol/ai-local/rules-library/commit-hygiene.md +17 -0
  302. package/presets/cursor/mol/ai-local/rules-library/component-child-decomposition.md +81 -0
  303. package/presets/cursor/mol/ai-local/rules-library/feature-flags-experiments.md +15 -0
  304. package/presets/cursor/mol/ai-local/rules-library/mcp-required-for-ui-layout.md +45 -0
  305. package/presets/cursor/mol/ai-local/rules-library/no-react-fc.md +46 -0
  306. package/presets/cursor/mol/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
  307. package/presets/cursor/mol/ai-local/rules-library/pre-pr-checklist.md +16 -0
  308. package/presets/cursor/mol/ai-local/rules-library/pwa-service-worker.md +15 -0
  309. package/presets/cursor/mol/ai-local/rules-library/qa-test-cases.md +14 -0
  310. package/presets/cursor/mol/ai-local/rules-library/router-pages.md +25 -0
  311. package/presets/cursor/mol/ai-local/rules-library/single-source-copy-constants.md +18 -0
  312. package/presets/cursor/mol/ai-local/rules-library/storybook-catalog-structure.md +62 -0
  313. package/presets/cursor/mol/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
  314. package/presets/cursor/mol/ai-local/rules-library/storybook-csf-authoring.md +100 -0
  315. package/presets/cursor/mol/ai-local/rules-library/storybook-dev-compare-figma.md +71 -0
  316. package/presets/cursor/mol/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
  317. package/presets/cursor/mol/ai-local/rules-library/storybook-modals.md +64 -0
  318. package/presets/cursor/mol/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
  319. package/presets/cursor/mol/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
  320. package/presets/cursor/mol/ai-local/rules-library/ui-change-review-gate.md +15 -0
  321. package/presets/cursor/mol/commands/README.md +56 -0
  322. package/presets/cursor/mol/commands/migrate-tasks.md +41 -0
  323. package/presets/cursor/mol/commands/spec-start.md +29 -0
  324. package/presets/cursor/mol/commands/task-continue.md +72 -0
  325. package/presets/cursor/mol/commands/task-evil.md +88 -0
  326. package/presets/cursor/mol/commands/task.md +76 -0
  327. package/presets/cursor/mol/commands/technical-retro.md +93 -0
  328. package/presets/cursor/mol/commands/update.md +40 -0
  329. package/presets/cursor/mol/hooks/README.md +14 -0
  330. package/presets/cursor/mol/hooks/chain-team-phases.sh +2765 -0
  331. package/presets/cursor/mol/hooks/check-preset-update.mjs +232 -0
  332. package/presets/cursor/mol/hooks/examples/README.md +18 -0
  333. package/presets/cursor/mol/hooks/examples/format-edited.example.sh +11 -0
  334. package/presets/cursor/mol/hooks/examples/secret-guard.example.sh +10 -0
  335. package/presets/cursor/mol/hooks/examples/test-on-save.example.sh +8 -0
  336. package/presets/cursor/mol/hooks/guard-shell-command.sh +77 -0
  337. package/presets/cursor/mol/hooks/list-ai-local.mjs +299 -0
  338. package/presets/cursor/mol/hooks.json +27 -0
  339. package/presets/cursor/mol/mcp.json +19 -0
  340. package/presets/cursor/mol/rules/README.md +71 -0
  341. package/presets/cursor/mol/rules/agent-team-intake.mdc +19 -0
  342. package/presets/cursor/mol/rules/agent-team-orchestrator.mdc +263 -0
  343. package/presets/cursor/mol/rules/ai-local-overlay.mdc +24 -0
  344. package/presets/cursor/mol/rules/anti-hallucination-contract.mdc +42 -0
  345. package/presets/cursor/mol/rules/anti-sycophancy-discipline.mdc +28 -0
  346. package/presets/cursor/mol/rules/code-quality-and-refactoring.mdc +81 -0
  347. package/presets/cursor/mol/rules/code-review-mr.mdc +100 -0
  348. package/presets/cursor/mol/rules/design-guidance.mdc +109 -0
  349. package/presets/cursor/mol/rules/feature-delivery-workflow.mdc +93 -0
  350. package/presets/cursor/mol/rules/interactive-questions.mdc +34 -0
  351. package/presets/cursor/mol/rules/language-policy.mdc +60 -0
  352. package/presets/cursor/mol/rules/mcp-usage.mdc +101 -0
  353. package/presets/cursor/mol/rules/mol-app-core.mdc +35 -0
  354. package/presets/cursor/mol/rules/mol-build.mdc +30 -0
  355. package/presets/cursor/mol/rules/mol-components.mdc +37 -0
  356. package/presets/cursor/mol/rules/mol-reactivity.mdc +27 -0
  357. package/presets/cursor/mol/rules/mol-state.mdc +31 -0
  358. package/presets/cursor/mol/rules/mol-testing.mdc +37 -0
  359. package/presets/cursor/mol/rules/mol-theming.mdc +31 -0
  360. package/presets/cursor/mol/rules/mol-view-tree.mdc +33 -0
  361. package/presets/cursor/mol/rules/package-manager.mdc +12 -0
  362. package/presets/cursor/mol/rules/preset-goals.mdc +40 -0
  363. package/presets/cursor/mol/rules/preset-layering.mdc +36 -0
  364. package/presets/cursor/mol/rules/preset-no-cross-stack-leakage.mdc +98 -0
  365. package/presets/cursor/mol/rules/preset-pr-checklist.mdc +54 -0
  366. package/presets/cursor/mol/rules/preset-token-budget.mdc +47 -0
  367. package/presets/cursor/mol/rules/preset-twin-sync.mdc +50 -0
  368. package/presets/cursor/mol/rules/preset-writing-style.mdc +51 -0
  369. package/presets/cursor/mol/rules/product-specs-authoring.mdc +125 -0
  370. package/presets/cursor/mol/rules/product-specs.mdc +68 -0
  371. package/presets/cursor/mol/rules/reference-features.mdc +45 -0
  372. package/presets/cursor/mol/rules/technical-retro.mdc +18 -0
  373. package/presets/cursor/mol/skills/README.md +17 -0
  374. package/presets/cursor/mol/skills/ci-investigation/SKILL.md +49 -0
  375. package/presets/cursor/mol/skills/code-review/SKILL.md +60 -0
  376. package/presets/cursor/mol/skills/debug-investigation/SKILL.md +63 -0
  377. package/presets/cursor/mol/skills/feature-delivery/SKILL.md +44 -0
  378. package/presets/cursor/mol/skills/spec-authoring/SKILL.md +31 -0
  379. package/presets/cursor/mol/skills/spec-discovery/SKILL.md +63 -0
  380. package/presets/cursor/mol/skills/technical-retro/SKILL.md +72 -0
  381. package/presets/cursor/mol/skills/unit-testing/SKILL.md +38 -0
  382. package/presets/cursor/mol/skills/write-adr/SKILL.md +46 -0
  383. package/presets/cursor/mol/team/README.md +135 -0
  384. package/presets/cursor/mol/team/fixtures/artifact-manifest.example.json +80 -0
  385. package/presets/cursor/mol/team/fixtures/bugfix-standard.json +25 -0
  386. package/presets/cursor/mol/team/fixtures/feature-full.json +29 -0
  387. package/presets/cursor/mol/team/fixtures/feature-light.json +28 -0
  388. package/presets/cursor/mol/team/fixtures/feature-parallel.json +84 -0
  389. package/presets/cursor/mol/team/fixtures/feature-ui-standard.json +24 -0
  390. package/presets/cursor/mol/team/fixtures/feature-with-figma-url.json +27 -0
  391. package/presets/cursor/mol/team/fixtures/feature-with-ux-no-figma.json +26 -0
  392. package/presets/cursor/mol/team/fixtures/memlog.example.md +9 -0
  393. package/presets/cursor/mol/team/fixtures/metrics-scenarios/tasks/human-gate/metrics.json +69 -0
  394. package/presets/cursor/mol/team/fixtures/metrics-scenarios/tasks/missing-ledger/status.json +5 -0
  395. package/presets/cursor/mol/team/fixtures/metrics-scenarios/tasks/parallel-receipts/metrics.json +79 -0
  396. package/presets/cursor/mol/team/fixtures/metrics-scenarios/tasks/serial-retry/metrics.json +124 -0
  397. package/presets/cursor/mol/team/fixtures/metrics-scenarios/tasks/validation-failed/metrics.json +124 -0
  398. package/presets/cursor/mol/team/fixtures/metrics.example.json +54 -0
  399. package/presets/cursor/mol/team/fixtures/mockup-review-fail-embedded-status.json +8 -0
  400. package/presets/cursor/mol/team/fixtures/mockup-review-standalone.json +23 -0
  401. package/presets/cursor/mol/team/fixtures/ux-design-standalone.json +24 -0
  402. package/presets/cursor/mol/team/tasks/.gitkeep +0 -0
  403. package/presets/cursor/next/REPO_AGENTS.md +16 -9
  404. package/presets/cursor/next/agents/task-analyst.md +11 -0
  405. package/presets/cursor/next/agents/task-router.md +11 -0
  406. package/presets/cursor/next/commands/README.md +6 -0
  407. package/presets/cursor/next/commands/migrate-tasks.md +41 -0
  408. package/presets/cursor/next/commands/task-evil.md +88 -0
  409. package/presets/cursor/next/rules/preset-pr-checklist.mdc +1 -1
  410. package/presets/cursor/next/rules/preset-twin-sync.mdc +2 -2
  411. package/presets/cursor/next/team/README.md +4 -2
  412. package/presets/cursor/nuxt/REPO_AGENTS.md +15 -8
  413. package/presets/cursor/nuxt/commands/README.md +1 -0
  414. package/presets/cursor/nuxt/commands/migrate-tasks.md +41 -0
  415. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +1 -1
  416. package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +2 -2
  417. package/presets/cursor/nuxt/team/README.md +4 -2
  418. package/presets/cursor/php-hexagonal/REPO_AGENTS.md +15 -8
  419. package/presets/cursor/php-hexagonal/commands/README.md +1 -0
  420. package/presets/cursor/php-hexagonal/commands/migrate-tasks.md +41 -0
  421. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +1 -1
  422. package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +2 -2
  423. package/presets/cursor/php-hexagonal/team/README.md +4 -2
  424. package/presets/cursor/php-laravel/REPO_AGENTS.md +15 -8
  425. package/presets/cursor/php-laravel/commands/README.md +1 -0
  426. package/presets/cursor/php-laravel/commands/migrate-tasks.md +41 -0
  427. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +1 -1
  428. package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +2 -2
  429. package/presets/cursor/php-laravel/team/README.md +4 -2
  430. package/presets/cursor/svelte/REPO_AGENTS.md +15 -8
  431. package/presets/cursor/svelte/commands/README.md +1 -0
  432. package/presets/cursor/svelte/commands/migrate-tasks.md +41 -0
  433. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +1 -1
  434. package/presets/cursor/svelte/rules/preset-twin-sync.mdc +2 -2
  435. package/presets/cursor/svelte/team/README.md +4 -2
  436. package/presets/mavis/README.md +1 -1
  437. package/presets/mavis/android-kotlin/REPO_AGENTS.md +15 -8
  438. package/presets/mavis/android-kotlin/adapter-map.json +9 -1
  439. package/presets/mavis/android-kotlin/commands/README.md +1 -0
  440. package/presets/mavis/android-kotlin/commands/migrate-tasks.md +36 -0
  441. package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +1 -1
  442. package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +2 -2
  443. package/presets/mavis/android-kotlin/team/README.md +4 -2
  444. package/presets/mavis/go/REPO_AGENTS.md +15 -8
  445. package/presets/mavis/go/adapter-map.json +9 -1
  446. package/presets/mavis/go/commands/README.md +1 -0
  447. package/presets/mavis/go/commands/migrate-tasks.md +36 -0
  448. package/presets/mavis/go/rules/preset-pr-checklist.md +1 -1
  449. package/presets/mavis/go/rules/preset-twin-sync.md +2 -2
  450. package/presets/mavis/go/team/README.md +4 -2
  451. package/presets/mavis/ios-swift/REPO_AGENTS.md +15 -8
  452. package/presets/mavis/ios-swift/adapter-map.json +9 -1
  453. package/presets/mavis/ios-swift/commands/README.md +1 -0
  454. package/presets/mavis/ios-swift/commands/migrate-tasks.md +36 -0
  455. package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +1 -1
  456. package/presets/mavis/ios-swift/rules/preset-twin-sync.md +2 -2
  457. package/presets/mavis/ios-swift/team/README.md +4 -2
  458. package/presets/mavis/java/REPO_AGENTS.md +15 -8
  459. package/presets/mavis/java/adapter-map.json +9 -1
  460. package/presets/mavis/java/commands/README.md +1 -0
  461. package/presets/mavis/java/commands/migrate-tasks.md +36 -0
  462. package/presets/mavis/java/rules/preset-pr-checklist.md +1 -1
  463. package/presets/mavis/java/rules/preset-twin-sync.md +2 -2
  464. package/presets/mavis/java/team/README.md +4 -2
  465. package/presets/mavis/mcp-ts/REPO_AGENTS.md +15 -8
  466. package/presets/mavis/mcp-ts/adapter-map.json +9 -1
  467. package/presets/mavis/mcp-ts/commands/README.md +1 -0
  468. package/presets/mavis/mcp-ts/commands/migrate-tasks.md +36 -0
  469. package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +1 -1
  470. package/presets/mavis/mcp-ts/rules/preset-twin-sync.md +2 -2
  471. package/presets/mavis/mcp-ts/team/README.md +4 -2
  472. package/presets/mavis/mol/MAVIS.md +94 -0
  473. package/presets/mavis/mol/MCP.md +50 -0
  474. package/presets/mavis/mol/README.md +16 -0
  475. package/presets/mavis/mol/REPO_AGENTS.md +107 -0
  476. package/presets/mavis/mol/adapter-map.json +1122 -0
  477. package/presets/mavis/mol/agents/README.md +96 -0
  478. package/presets/mavis/mol/agents/accessibility-reviewer.md +85 -0
  479. package/presets/mavis/mol/agents/api-contract-reviewer.md +80 -0
  480. package/presets/mavis/mol/agents/build-verifier.md +110 -0
  481. package/presets/mavis/mol/agents/ci-investigator.md +90 -0
  482. package/presets/mavis/mol/agents/code-reviewer.md +132 -0
  483. package/presets/mavis/mol/agents/codebase-analyzer.md +44 -0
  484. package/presets/mavis/mol/agents/debugger.md +121 -0
  485. package/presets/mavis/mol/agents/feature-developer.md +146 -0
  486. package/presets/mavis/mol/agents/migration-specialist.md +90 -0
  487. package/presets/mavis/mol/agents/mockup-reviewer.md +124 -0
  488. package/presets/mavis/mol/agents/openspec-author.md +206 -0
  489. package/presets/mavis/mol/agents/performance-auditor.md +91 -0
  490. package/presets/mavis/mol/agents/playwright-test-generator.md +51 -0
  491. package/presets/mavis/mol/agents/playwright-test-healer.md +52 -0
  492. package/presets/mavis/mol/agents/playwright-test-planner.md +44 -0
  493. package/presets/mavis/mol/agents/qa-tester.md +75 -0
  494. package/presets/mavis/mol/agents/security-reviewer.md +82 -0
  495. package/presets/mavis/mol/agents/solution-architect.md +92 -0
  496. package/presets/mavis/mol/agents/task-analyst.md +248 -0
  497. package/presets/mavis/mol/agents/task-router.md +260 -0
  498. package/presets/mavis/mol/agents/tech-writer.md +81 -0
  499. package/presets/mavis/mol/agents/unit-test-generator.md +54 -0
  500. package/presets/mavis/mol/agents/unit-test-healer.md +55 -0
  501. package/presets/mavis/mol/agents/unit-test-planner.md +77 -0
  502. package/presets/mavis/mol/ai-local/conventions.md +49 -0
  503. package/presets/mavis/mol/ai-local/rules/task-levels.md +40 -0
  504. package/presets/mavis/mol/ai-local/rules-library/agent-artifacts-no-local-paths.md +71 -0
  505. package/presets/mavis/mol/ai-local/rules-library/agent-pipeline-gates.md +19 -0
  506. package/presets/mavis/mol/ai-local/rules-library/analytics-events.md +18 -0
  507. package/presets/mavis/mol/ai-local/rules-library/api-contract-source.md +14 -0
  508. package/presets/mavis/mol/ai-local/rules-library/artifact-lifecycle.md +17 -0
  509. package/presets/mavis/mol/ai-local/rules-library/code-style.md +68 -0
  510. package/presets/mavis/mol/ai-local/rules-library/commit-hygiene.md +17 -0
  511. package/presets/mavis/mol/ai-local/rules-library/component-child-decomposition.md +81 -0
  512. package/presets/mavis/mol/ai-local/rules-library/feature-flags-experiments.md +15 -0
  513. package/presets/mavis/mol/ai-local/rules-library/mcp-required-for-ui-layout.md +45 -0
  514. package/presets/mavis/mol/ai-local/rules-library/no-react-fc.md +46 -0
  515. package/presets/mavis/mol/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
  516. package/presets/mavis/mol/ai-local/rules-library/pre-pr-checklist.md +16 -0
  517. package/presets/mavis/mol/ai-local/rules-library/pwa-service-worker.md +15 -0
  518. package/presets/mavis/mol/ai-local/rules-library/qa-test-cases.md +14 -0
  519. package/presets/mavis/mol/ai-local/rules-library/router-pages.md +25 -0
  520. package/presets/mavis/mol/ai-local/rules-library/single-source-copy-constants.md +18 -0
  521. package/presets/mavis/mol/ai-local/rules-library/storybook-catalog-structure.md +62 -0
  522. package/presets/mavis/mol/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
  523. package/presets/mavis/mol/ai-local/rules-library/storybook-csf-authoring.md +100 -0
  524. package/presets/mavis/mol/ai-local/rules-library/storybook-dev-compare-figma.md +71 -0
  525. package/presets/mavis/mol/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
  526. package/presets/mavis/mol/ai-local/rules-library/storybook-modals.md +64 -0
  527. package/presets/mavis/mol/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
  528. package/presets/mavis/mol/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
  529. package/presets/mavis/mol/ai-local/rules-library/ui-change-review-gate.md +15 -0
  530. package/presets/mavis/mol/commands/README.md +56 -0
  531. package/presets/mavis/mol/commands/migrate-tasks.md +36 -0
  532. package/presets/mavis/mol/commands/spec-start.md +24 -0
  533. package/presets/mavis/mol/commands/task-continue.md +67 -0
  534. package/presets/mavis/mol/commands/task-evil.md +82 -0
  535. package/presets/mavis/mol/commands/task.md +71 -0
  536. package/presets/mavis/mol/commands/technical-retro.md +88 -0
  537. package/presets/mavis/mol/commands/update.md +35 -0
  538. package/presets/mavis/mol/hooks/README.md +27 -0
  539. package/presets/mavis/mol/hooks/chain-team-phases.sh +2765 -0
  540. package/presets/mavis/mol/hooks/check-preset-update.mjs +232 -0
  541. package/presets/mavis/mol/hooks/list-ai-local.mjs +299 -0
  542. package/presets/mavis/mol/mcp.json +19 -0
  543. package/presets/mavis/mol/rules/README.md +16 -0
  544. package/presets/mavis/mol/rules/agent-team-intake.md +14 -0
  545. package/presets/mavis/mol/rules/agent-team-orchestrator.md +282 -0
  546. package/presets/mavis/mol/rules/ai-local-overlay.md +18 -0
  547. package/presets/mavis/mol/rules/anti-hallucination-contract.md +37 -0
  548. package/presets/mavis/mol/rules/anti-sycophancy-discipline.md +23 -0
  549. package/presets/mavis/mol/rules/code-quality-and-refactoring.md +76 -0
  550. package/presets/mavis/mol/rules/code-review-mr.md +95 -0
  551. package/presets/mavis/mol/rules/design-guidance.md +104 -0
  552. package/presets/mavis/mol/rules/feature-delivery-workflow.md +144 -0
  553. package/presets/mavis/mol/rules/interactive-questions.md +29 -0
  554. package/presets/mavis/mol/rules/language-policy.md +51 -0
  555. package/presets/mavis/mol/rules/mcp-usage.md +96 -0
  556. package/presets/mavis/mol/rules/mol-app-core.md +29 -0
  557. package/presets/mavis/mol/rules/mol-build.md +19 -0
  558. package/presets/mavis/mol/rules/mol-components.md +31 -0
  559. package/presets/mavis/mol/rules/mol-reactivity.md +21 -0
  560. package/presets/mavis/mol/rules/mol-state.md +22 -0
  561. package/presets/mavis/mol/rules/mol-testing.md +28 -0
  562. package/presets/mavis/mol/rules/mol-theming.md +22 -0
  563. package/presets/mavis/mol/rules/mol-view-tree.md +27 -0
  564. package/presets/mavis/mol/rules/package-manager.md +7 -0
  565. package/presets/mavis/mol/rules/preset-goals.md +31 -0
  566. package/presets/mavis/mol/rules/preset-layering.md +27 -0
  567. package/presets/mavis/mol/rules/preset-no-cross-stack-leakage.md +89 -0
  568. package/presets/mavis/mol/rules/preset-pr-checklist.md +45 -0
  569. package/presets/mavis/mol/rules/preset-token-budget.md +38 -0
  570. package/presets/mavis/mol/rules/preset-twin-sync.md +41 -0
  571. package/presets/mavis/mol/rules/preset-writing-style.md +42 -0
  572. package/presets/mavis/mol/rules/product-specs-authoring.md +118 -0
  573. package/presets/mavis/mol/rules/product-specs.md +61 -0
  574. package/presets/mavis/mol/rules/reference-features.md +82 -0
  575. package/presets/mavis/mol/rules/technical-retro.md +13 -0
  576. package/presets/mavis/mol/skills/README.md +17 -0
  577. package/presets/mavis/mol/skills/ci-investigation/SKILL.md +44 -0
  578. package/presets/mavis/mol/skills/code-review/SKILL.md +55 -0
  579. package/presets/mavis/mol/skills/debug-investigation/SKILL.md +58 -0
  580. package/presets/mavis/mol/skills/feature-delivery/SKILL.md +39 -0
  581. package/presets/mavis/mol/skills/spec-authoring/SKILL.md +26 -0
  582. package/presets/mavis/mol/skills/spec-discovery/SKILL.md +58 -0
  583. package/presets/mavis/mol/skills/technical-retro/SKILL.md +67 -0
  584. package/presets/mavis/mol/skills/unit-testing/SKILL.md +33 -0
  585. package/presets/mavis/mol/skills/write-adr/SKILL.md +41 -0
  586. package/presets/mavis/mol/team/README.md +135 -0
  587. package/presets/mavis/mol/team/fixtures/artifact-manifest.example.json +80 -0
  588. package/presets/mavis/mol/team/fixtures/bugfix-standard.json +25 -0
  589. package/presets/mavis/mol/team/fixtures/feature-full.json +29 -0
  590. package/presets/mavis/mol/team/fixtures/feature-light.json +28 -0
  591. package/presets/mavis/mol/team/fixtures/feature-parallel.json +84 -0
  592. package/presets/mavis/mol/team/fixtures/feature-ui-standard.json +24 -0
  593. package/presets/mavis/mol/team/fixtures/feature-with-figma-url.json +27 -0
  594. package/presets/mavis/mol/team/fixtures/feature-with-ux-no-figma.json +26 -0
  595. package/presets/mavis/mol/team/fixtures/memlog.example.md +9 -0
  596. package/presets/mavis/mol/team/fixtures/metrics-scenarios/tasks/human-gate/metrics.json +69 -0
  597. package/presets/mavis/mol/team/fixtures/metrics-scenarios/tasks/missing-ledger/status.json +5 -0
  598. package/presets/mavis/mol/team/fixtures/metrics-scenarios/tasks/parallel-receipts/metrics.json +79 -0
  599. package/presets/mavis/mol/team/fixtures/metrics-scenarios/tasks/serial-retry/metrics.json +124 -0
  600. package/presets/mavis/mol/team/fixtures/metrics-scenarios/tasks/validation-failed/metrics.json +124 -0
  601. package/presets/mavis/mol/team/fixtures/metrics.example.json +54 -0
  602. package/presets/mavis/mol/team/fixtures/mockup-review-fail-embedded-status.json +8 -0
  603. package/presets/mavis/mol/team/fixtures/mockup-review-standalone.json +23 -0
  604. package/presets/mavis/mol/team/fixtures/ux-design-standalone.json +24 -0
  605. package/presets/mavis/mol/team/tasks/.gitkeep +0 -0
  606. package/presets/mavis/next/REPO_AGENTS.md +16 -9
  607. package/presets/mavis/next/adapter-map.json +18 -1
  608. package/presets/mavis/next/agents/task-analyst.md +11 -0
  609. package/presets/mavis/next/agents/task-router.md +11 -0
  610. package/presets/mavis/next/commands/README.md +6 -0
  611. package/presets/mavis/next/commands/migrate-tasks.md +36 -0
  612. package/presets/mavis/next/commands/task-evil.md +82 -0
  613. package/presets/mavis/next/rules/preset-pr-checklist.md +1 -1
  614. package/presets/mavis/next/rules/preset-twin-sync.md +2 -2
  615. package/presets/mavis/next/team/README.md +4 -2
  616. package/presets/mavis/nuxt/REPO_AGENTS.md +15 -8
  617. package/presets/mavis/nuxt/adapter-map.json +9 -1
  618. package/presets/mavis/nuxt/commands/README.md +1 -0
  619. package/presets/mavis/nuxt/commands/migrate-tasks.md +36 -0
  620. package/presets/mavis/nuxt/rules/preset-pr-checklist.md +1 -1
  621. package/presets/mavis/nuxt/rules/preset-twin-sync.md +2 -2
  622. package/presets/mavis/nuxt/team/README.md +4 -2
  623. package/presets/mavis/php-hexagonal/REPO_AGENTS.md +15 -8
  624. package/presets/mavis/php-hexagonal/adapter-map.json +9 -1
  625. package/presets/mavis/php-hexagonal/commands/README.md +1 -0
  626. package/presets/mavis/php-hexagonal/commands/migrate-tasks.md +36 -0
  627. package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +1 -1
  628. package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +2 -2
  629. package/presets/mavis/php-hexagonal/team/README.md +4 -2
  630. package/presets/mavis/php-laravel/REPO_AGENTS.md +15 -8
  631. package/presets/mavis/php-laravel/adapter-map.json +9 -1
  632. package/presets/mavis/php-laravel/commands/README.md +1 -0
  633. package/presets/mavis/php-laravel/commands/migrate-tasks.md +36 -0
  634. package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +1 -1
  635. package/presets/mavis/php-laravel/rules/preset-twin-sync.md +2 -2
  636. package/presets/mavis/php-laravel/team/README.md +4 -2
  637. package/presets/mavis/platform-contract.json +2 -1
  638. package/presets/mavis/svelte/REPO_AGENTS.md +15 -8
  639. package/presets/mavis/svelte/adapter-map.json +9 -1
  640. package/presets/mavis/svelte/commands/README.md +1 -0
  641. package/presets/mavis/svelte/commands/migrate-tasks.md +36 -0
  642. package/presets/mavis/svelte/rules/preset-pr-checklist.md +1 -1
  643. package/presets/mavis/svelte/rules/preset-twin-sync.md +2 -2
  644. package/presets/mavis/svelte/team/README.md +4 -2
  645. package/presets/opencode/android-kotlin/REPO_AGENTS.md +15 -8
  646. package/presets/opencode/android-kotlin/adapter-map.json +9 -1
  647. package/presets/opencode/android-kotlin/commands/README.md +1 -0
  648. package/presets/opencode/android-kotlin/commands/migrate-tasks.md +44 -0
  649. package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +1 -1
  650. package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +2 -2
  651. package/presets/opencode/android-kotlin/team/README.md +4 -2
  652. package/presets/opencode/go/REPO_AGENTS.md +15 -8
  653. package/presets/opencode/go/adapter-map.json +9 -1
  654. package/presets/opencode/go/commands/README.md +1 -0
  655. package/presets/opencode/go/commands/migrate-tasks.md +44 -0
  656. package/presets/opencode/go/rules/preset-pr-checklist.md +1 -1
  657. package/presets/opencode/go/rules/preset-twin-sync.md +2 -2
  658. package/presets/opencode/go/team/README.md +4 -2
  659. package/presets/opencode/ios-swift/REPO_AGENTS.md +15 -8
  660. package/presets/opencode/ios-swift/adapter-map.json +9 -1
  661. package/presets/opencode/ios-swift/commands/README.md +1 -0
  662. package/presets/opencode/ios-swift/commands/migrate-tasks.md +44 -0
  663. package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +1 -1
  664. package/presets/opencode/ios-swift/rules/preset-twin-sync.md +2 -2
  665. package/presets/opencode/ios-swift/team/README.md +4 -2
  666. package/presets/opencode/java/REPO_AGENTS.md +15 -8
  667. package/presets/opencode/java/adapter-map.json +9 -1
  668. package/presets/opencode/java/commands/README.md +1 -0
  669. package/presets/opencode/java/commands/migrate-tasks.md +44 -0
  670. package/presets/opencode/java/rules/preset-pr-checklist.md +1 -1
  671. package/presets/opencode/java/rules/preset-twin-sync.md +2 -2
  672. package/presets/opencode/java/team/README.md +4 -2
  673. package/presets/opencode/mcp-ts/REPO_AGENTS.md +15 -8
  674. package/presets/opencode/mcp-ts/adapter-map.json +9 -1
  675. package/presets/opencode/mcp-ts/commands/README.md +1 -0
  676. package/presets/opencode/mcp-ts/commands/migrate-tasks.md +44 -0
  677. package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +1 -1
  678. package/presets/opencode/mcp-ts/rules/preset-twin-sync.md +2 -2
  679. package/presets/opencode/mcp-ts/team/README.md +4 -2
  680. package/presets/opencode/mol/MCP.md +50 -0
  681. package/presets/opencode/mol/OPENCODE.md +99 -0
  682. package/presets/opencode/mol/README.md +17 -0
  683. package/presets/opencode/mol/REPO_AGENTS.md +107 -0
  684. package/presets/opencode/mol/adapter-map.json +1122 -0
  685. package/presets/opencode/mol/agents/README.md +97 -0
  686. package/presets/opencode/mol/agents/accessibility-reviewer.md +97 -0
  687. package/presets/opencode/mol/agents/api-contract-reviewer.md +92 -0
  688. package/presets/opencode/mol/agents/build-verifier.md +122 -0
  689. package/presets/opencode/mol/agents/ci-investigator.md +98 -0
  690. package/presets/opencode/mol/agents/code-reviewer.md +144 -0
  691. package/presets/opencode/mol/agents/codebase-analyzer.md +56 -0
  692. package/presets/opencode/mol/agents/debugger.md +129 -0
  693. package/presets/opencode/mol/agents/feature-developer.md +154 -0
  694. package/presets/opencode/mol/agents/migration-specialist.md +102 -0
  695. package/presets/opencode/mol/agents/mockup-reviewer.md +136 -0
  696. package/presets/opencode/mol/agents/openspec-author.md +219 -0
  697. package/presets/opencode/mol/agents/performance-auditor.md +103 -0
  698. package/presets/opencode/mol/agents/playwright-test-generator.md +59 -0
  699. package/presets/opencode/mol/agents/playwright-test-healer.md +60 -0
  700. package/presets/opencode/mol/agents/playwright-test-planner.md +56 -0
  701. package/presets/opencode/mol/agents/qa-tester.md +83 -0
  702. package/presets/opencode/mol/agents/security-reviewer.md +94 -0
  703. package/presets/opencode/mol/agents/solution-architect.md +104 -0
  704. package/presets/opencode/mol/agents/task-analyst.md +260 -0
  705. package/presets/opencode/mol/agents/task-router.md +272 -0
  706. package/presets/opencode/mol/agents/tech-writer.md +99 -0
  707. package/presets/opencode/mol/agents/unit-test-generator.md +62 -0
  708. package/presets/opencode/mol/agents/unit-test-healer.md +63 -0
  709. package/presets/opencode/mol/agents/unit-test-planner.md +89 -0
  710. package/presets/opencode/mol/ai-local/conventions.md +49 -0
  711. package/presets/opencode/mol/ai-local/rules/task-levels.md +40 -0
  712. package/presets/opencode/mol/ai-local/rules-library/agent-artifacts-no-local-paths.md +71 -0
  713. package/presets/opencode/mol/ai-local/rules-library/agent-pipeline-gates.md +19 -0
  714. package/presets/opencode/mol/ai-local/rules-library/analytics-events.md +18 -0
  715. package/presets/opencode/mol/ai-local/rules-library/api-contract-source.md +14 -0
  716. package/presets/opencode/mol/ai-local/rules-library/artifact-lifecycle.md +17 -0
  717. package/presets/opencode/mol/ai-local/rules-library/code-style.md +68 -0
  718. package/presets/opencode/mol/ai-local/rules-library/commit-hygiene.md +17 -0
  719. package/presets/opencode/mol/ai-local/rules-library/component-child-decomposition.md +81 -0
  720. package/presets/opencode/mol/ai-local/rules-library/feature-flags-experiments.md +15 -0
  721. package/presets/opencode/mol/ai-local/rules-library/mcp-required-for-ui-layout.md +45 -0
  722. package/presets/opencode/mol/ai-local/rules-library/no-react-fc.md +46 -0
  723. package/presets/opencode/mol/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
  724. package/presets/opencode/mol/ai-local/rules-library/pre-pr-checklist.md +16 -0
  725. package/presets/opencode/mol/ai-local/rules-library/pwa-service-worker.md +15 -0
  726. package/presets/opencode/mol/ai-local/rules-library/qa-test-cases.md +14 -0
  727. package/presets/opencode/mol/ai-local/rules-library/router-pages.md +25 -0
  728. package/presets/opencode/mol/ai-local/rules-library/single-source-copy-constants.md +18 -0
  729. package/presets/opencode/mol/ai-local/rules-library/storybook-catalog-structure.md +62 -0
  730. package/presets/opencode/mol/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
  731. package/presets/opencode/mol/ai-local/rules-library/storybook-csf-authoring.md +100 -0
  732. package/presets/opencode/mol/ai-local/rules-library/storybook-dev-compare-figma.md +71 -0
  733. package/presets/opencode/mol/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
  734. package/presets/opencode/mol/ai-local/rules-library/storybook-modals.md +64 -0
  735. package/presets/opencode/mol/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
  736. package/presets/opencode/mol/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
  737. package/presets/opencode/mol/ai-local/rules-library/ui-change-review-gate.md +15 -0
  738. package/presets/opencode/mol/commands/README.md +56 -0
  739. package/presets/opencode/mol/commands/migrate-tasks.md +44 -0
  740. package/presets/opencode/mol/commands/spec-start.md +32 -0
  741. package/presets/opencode/mol/commands/task-continue.md +75 -0
  742. package/presets/opencode/mol/commands/task-evil.md +91 -0
  743. package/presets/opencode/mol/commands/task.md +79 -0
  744. package/presets/opencode/mol/commands/technical-retro.md +96 -0
  745. package/presets/opencode/mol/commands/update.md +43 -0
  746. package/presets/opencode/mol/hooks/README.md +27 -0
  747. package/presets/opencode/mol/hooks/chain-team-phases.sh +2765 -0
  748. package/presets/opencode/mol/hooks/check-preset-update.mjs +232 -0
  749. package/presets/opencode/mol/hooks/list-ai-local.mjs +299 -0
  750. package/presets/opencode/mol/opencode.json +78 -0
  751. package/presets/opencode/mol/rules/README.md +25 -0
  752. package/presets/opencode/mol/rules/agent-team-intake.md +14 -0
  753. package/presets/opencode/mol/rules/agent-team-orchestrator.md +282 -0
  754. package/presets/opencode/mol/rules/ai-local-overlay.md +18 -0
  755. package/presets/opencode/mol/rules/anti-hallucination-contract.md +37 -0
  756. package/presets/opencode/mol/rules/anti-sycophancy-discipline.md +23 -0
  757. package/presets/opencode/mol/rules/code-quality-and-refactoring.md +76 -0
  758. package/presets/opencode/mol/rules/code-review-mr.md +95 -0
  759. package/presets/opencode/mol/rules/design-guidance.md +104 -0
  760. package/presets/opencode/mol/rules/feature-delivery-workflow.md +144 -0
  761. package/presets/opencode/mol/rules/interactive-questions.md +29 -0
  762. package/presets/opencode/mol/rules/language-policy.md +51 -0
  763. package/presets/opencode/mol/rules/mcp-usage.md +96 -0
  764. package/presets/opencode/mol/rules/mol-app-core.md +29 -0
  765. package/presets/opencode/mol/rules/mol-build.md +19 -0
  766. package/presets/opencode/mol/rules/mol-components.md +31 -0
  767. package/presets/opencode/mol/rules/mol-reactivity.md +21 -0
  768. package/presets/opencode/mol/rules/mol-state.md +22 -0
  769. package/presets/opencode/mol/rules/mol-testing.md +28 -0
  770. package/presets/opencode/mol/rules/mol-theming.md +22 -0
  771. package/presets/opencode/mol/rules/mol-view-tree.md +27 -0
  772. package/presets/opencode/mol/rules/package-manager.md +7 -0
  773. package/presets/opencode/mol/rules/preset-goals.md +31 -0
  774. package/presets/opencode/mol/rules/preset-layering.md +27 -0
  775. package/presets/opencode/mol/rules/preset-no-cross-stack-leakage.md +89 -0
  776. package/presets/opencode/mol/rules/preset-pr-checklist.md +45 -0
  777. package/presets/opencode/mol/rules/preset-token-budget.md +38 -0
  778. package/presets/opencode/mol/rules/preset-twin-sync.md +41 -0
  779. package/presets/opencode/mol/rules/preset-writing-style.md +42 -0
  780. package/presets/opencode/mol/rules/product-specs-authoring.md +118 -0
  781. package/presets/opencode/mol/rules/product-specs.md +61 -0
  782. package/presets/opencode/mol/rules/reference-features.md +82 -0
  783. package/presets/opencode/mol/rules/technical-retro.md +13 -0
  784. package/presets/opencode/mol/skills/README.md +17 -0
  785. package/presets/opencode/mol/skills/ci-investigation/SKILL.md +49 -0
  786. package/presets/opencode/mol/skills/code-review/SKILL.md +60 -0
  787. package/presets/opencode/mol/skills/debug-investigation/SKILL.md +63 -0
  788. package/presets/opencode/mol/skills/feature-delivery/SKILL.md +44 -0
  789. package/presets/opencode/mol/skills/spec-authoring/SKILL.md +31 -0
  790. package/presets/opencode/mol/skills/spec-discovery/SKILL.md +63 -0
  791. package/presets/opencode/mol/skills/technical-retro/SKILL.md +72 -0
  792. package/presets/opencode/mol/skills/unit-testing/SKILL.md +38 -0
  793. package/presets/opencode/mol/skills/write-adr/SKILL.md +46 -0
  794. package/presets/opencode/mol/team/README.md +135 -0
  795. package/presets/opencode/mol/team/fixtures/artifact-manifest.example.json +80 -0
  796. package/presets/opencode/mol/team/fixtures/bugfix-standard.json +25 -0
  797. package/presets/opencode/mol/team/fixtures/feature-full.json +29 -0
  798. package/presets/opencode/mol/team/fixtures/feature-light.json +28 -0
  799. package/presets/opencode/mol/team/fixtures/feature-parallel.json +84 -0
  800. package/presets/opencode/mol/team/fixtures/feature-ui-standard.json +24 -0
  801. package/presets/opencode/mol/team/fixtures/feature-with-figma-url.json +27 -0
  802. package/presets/opencode/mol/team/fixtures/feature-with-ux-no-figma.json +26 -0
  803. package/presets/opencode/mol/team/fixtures/memlog.example.md +9 -0
  804. package/presets/opencode/mol/team/fixtures/metrics-scenarios/tasks/human-gate/metrics.json +69 -0
  805. package/presets/opencode/mol/team/fixtures/metrics-scenarios/tasks/missing-ledger/status.json +5 -0
  806. package/presets/opencode/mol/team/fixtures/metrics-scenarios/tasks/parallel-receipts/metrics.json +79 -0
  807. package/presets/opencode/mol/team/fixtures/metrics-scenarios/tasks/serial-retry/metrics.json +124 -0
  808. package/presets/opencode/mol/team/fixtures/metrics-scenarios/tasks/validation-failed/metrics.json +124 -0
  809. package/presets/opencode/mol/team/fixtures/metrics.example.json +54 -0
  810. package/presets/opencode/mol/team/fixtures/mockup-review-fail-embedded-status.json +8 -0
  811. package/presets/opencode/mol/team/fixtures/mockup-review-standalone.json +23 -0
  812. package/presets/opencode/mol/team/fixtures/ux-design-standalone.json +24 -0
  813. package/presets/opencode/mol/team/tasks/.gitkeep +0 -0
  814. package/presets/opencode/next/REPO_AGENTS.md +16 -9
  815. package/presets/opencode/next/adapter-map.json +18 -1
  816. package/presets/opencode/next/agents/task-analyst.md +11 -0
  817. package/presets/opencode/next/agents/task-router.md +11 -0
  818. package/presets/opencode/next/commands/README.md +6 -0
  819. package/presets/opencode/next/commands/migrate-tasks.md +44 -0
  820. package/presets/opencode/next/commands/task-evil.md +91 -0
  821. package/presets/opencode/next/opencode.json +26 -4
  822. package/presets/opencode/next/rules/preset-pr-checklist.md +1 -1
  823. package/presets/opencode/next/rules/preset-twin-sync.md +2 -2
  824. package/presets/opencode/next/team/README.md +4 -2
  825. package/presets/opencode/nuxt/REPO_AGENTS.md +15 -8
  826. package/presets/opencode/nuxt/adapter-map.json +9 -1
  827. package/presets/opencode/nuxt/commands/README.md +1 -0
  828. package/presets/opencode/nuxt/commands/migrate-tasks.md +44 -0
  829. package/presets/opencode/nuxt/opencode.json +4 -4
  830. package/presets/opencode/nuxt/rules/preset-pr-checklist.md +1 -1
  831. package/presets/opencode/nuxt/rules/preset-twin-sync.md +2 -2
  832. package/presets/opencode/nuxt/team/README.md +4 -2
  833. package/presets/opencode/php-hexagonal/REPO_AGENTS.md +15 -8
  834. package/presets/opencode/php-hexagonal/adapter-map.json +9 -1
  835. package/presets/opencode/php-hexagonal/commands/README.md +1 -0
  836. package/presets/opencode/php-hexagonal/commands/migrate-tasks.md +44 -0
  837. package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +1 -1
  838. package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +2 -2
  839. package/presets/opencode/php-hexagonal/team/README.md +4 -2
  840. package/presets/opencode/php-laravel/REPO_AGENTS.md +15 -8
  841. package/presets/opencode/php-laravel/adapter-map.json +9 -1
  842. package/presets/opencode/php-laravel/commands/README.md +1 -0
  843. package/presets/opencode/php-laravel/commands/migrate-tasks.md +44 -0
  844. package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +1 -1
  845. package/presets/opencode/php-laravel/rules/preset-twin-sync.md +2 -2
  846. package/presets/opencode/php-laravel/team/README.md +4 -2
  847. package/presets/opencode/platform-contract.json +2 -1
  848. package/presets/opencode/svelte/REPO_AGENTS.md +15 -8
  849. package/presets/opencode/svelte/adapter-map.json +9 -1
  850. package/presets/opencode/svelte/commands/README.md +1 -0
  851. package/presets/opencode/svelte/commands/migrate-tasks.md +44 -0
  852. package/presets/opencode/svelte/opencode.json +4 -4
  853. package/presets/opencode/svelte/rules/preset-pr-checklist.md +1 -1
  854. package/presets/opencode/svelte/rules/preset-twin-sync.md +2 -2
  855. package/presets/opencode/svelte/team/README.md +4 -2
  856. package/presets/zcode/README.md +17 -0
  857. package/presets/zcode/android-kotlin/MCP.md +35 -0
  858. package/presets/zcode/android-kotlin/README.md +20 -0
  859. package/presets/zcode/android-kotlin/REPO_AGENTS.md +100 -0
  860. package/presets/zcode/android-kotlin/adapter-map.json +925 -0
  861. package/presets/zcode/android-kotlin/agents/README.md +68 -0
  862. package/presets/zcode/android-kotlin/agents/accessibility-reviewer.md +87 -0
  863. package/presets/zcode/android-kotlin/agents/api-contract-reviewer.md +92 -0
  864. package/presets/zcode/android-kotlin/agents/build-verifier.md +87 -0
  865. package/presets/zcode/android-kotlin/agents/ci-investigator.md +114 -0
  866. package/presets/zcode/android-kotlin/agents/code-reviewer.md +133 -0
  867. package/presets/zcode/android-kotlin/agents/codebase-analyzer.md +49 -0
  868. package/presets/zcode/android-kotlin/agents/debugger.md +136 -0
  869. package/presets/zcode/android-kotlin/agents/feature-developer.md +154 -0
  870. package/presets/zcode/android-kotlin/agents/instrumentation-test-generator.md +43 -0
  871. package/presets/zcode/android-kotlin/agents/instrumentation-test-healer.md +43 -0
  872. package/presets/zcode/android-kotlin/agents/instrumentation-test-planner.md +45 -0
  873. package/presets/zcode/android-kotlin/agents/migration-specialist.md +101 -0
  874. package/presets/zcode/android-kotlin/agents/mockup-reviewer.md +81 -0
  875. package/presets/zcode/android-kotlin/agents/openspec-author.md +185 -0
  876. package/presets/zcode/android-kotlin/agents/performance-auditor.md +94 -0
  877. package/presets/zcode/android-kotlin/agents/qa-tester.md +91 -0
  878. package/presets/zcode/android-kotlin/agents/security-reviewer.md +86 -0
  879. package/presets/zcode/android-kotlin/agents/solution-architect.md +48 -0
  880. package/presets/zcode/android-kotlin/agents/task-analyst.md +152 -0
  881. package/presets/zcode/android-kotlin/agents/task-router.md +190 -0
  882. package/presets/zcode/android-kotlin/agents/tech-writer.md +91 -0
  883. package/presets/zcode/android-kotlin/agents/unit-test-generator.md +77 -0
  884. package/presets/zcode/android-kotlin/agents/unit-test-healer.md +76 -0
  885. package/presets/zcode/android-kotlin/agents/unit-test-planner.md +89 -0
  886. package/presets/zcode/android-kotlin/ai-local/conventions.md +25 -0
  887. package/presets/zcode/android-kotlin/commands/README.md +51 -0
  888. package/presets/zcode/android-kotlin/commands/migrate-tasks.md +44 -0
  889. package/presets/zcode/android-kotlin/commands/spec-start.md +32 -0
  890. package/presets/zcode/android-kotlin/commands/task-continue.md +75 -0
  891. package/presets/zcode/android-kotlin/commands/task.md +76 -0
  892. package/presets/zcode/android-kotlin/commands/technical-retro.md +96 -0
  893. package/presets/zcode/android-kotlin/commands/update.md +43 -0
  894. package/presets/zcode/android-kotlin/hooks/README.md +31 -0
  895. package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +2768 -0
  896. package/presets/zcode/android-kotlin/hooks/check-preset-update.mjs +232 -0
  897. package/presets/zcode/android-kotlin/hooks/list-ai-local.mjs +299 -0
  898. package/presets/zcode/android-kotlin/mcp.json +11 -0
  899. package/presets/zcode/android-kotlin/rules/README.md +25 -0
  900. package/presets/zcode/android-kotlin/rules/agent-team-intake.md +14 -0
  901. package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +282 -0
  902. package/presets/zcode/android-kotlin/rules/ai-local-overlay.md +18 -0
  903. package/presets/zcode/android-kotlin/rules/android-app-core.md +27 -0
  904. package/presets/zcode/android-kotlin/rules/anti-hallucination-contract.md +37 -0
  905. package/presets/zcode/android-kotlin/rules/anti-sycophancy-discipline.md +23 -0
  906. package/presets/zcode/android-kotlin/rules/architecture-boundaries.md +23 -0
  907. package/presets/zcode/android-kotlin/rules/code-quality-and-refactoring.md +77 -0
  908. package/presets/zcode/android-kotlin/rules/code-review-mr.md +109 -0
  909. package/presets/zcode/android-kotlin/rules/compose-ui.md +25 -0
  910. package/presets/zcode/android-kotlin/rules/design-guidance.md +104 -0
  911. package/presets/zcode/android-kotlin/rules/di-dagger-feature-holders.md +26 -0
  912. package/presets/zcode/android-kotlin/rules/feature-delivery-workflow.md +43 -0
  913. package/presets/zcode/android-kotlin/rules/gradle-tooling.md +22 -0
  914. package/presets/zcode/android-kotlin/rules/interactive-questions.md +29 -0
  915. package/presets/zcode/android-kotlin/rules/kotlin-anti-hallucination.md +27 -0
  916. package/presets/zcode/android-kotlin/rules/kotlin-conventions.md +24 -0
  917. package/presets/zcode/android-kotlin/rules/language-policy.md +51 -0
  918. package/presets/zcode/android-kotlin/rules/mcp-usage.md +94 -0
  919. package/presets/zcode/android-kotlin/rules/mockup-review.md +171 -0
  920. package/presets/zcode/android-kotlin/rules/module-public-api.md +22 -0
  921. package/presets/zcode/android-kotlin/rules/navigation-feature-launcher.md +23 -0
  922. package/presets/zcode/android-kotlin/rules/networking-data.md +23 -0
  923. package/presets/zcode/android-kotlin/rules/persistence-data.md +22 -0
  924. package/presets/zcode/android-kotlin/rules/post-change-build.md +25 -0
  925. package/presets/zcode/android-kotlin/rules/preset-goals.md +31 -0
  926. package/presets/zcode/android-kotlin/rules/preset-layering.md +27 -0
  927. package/presets/zcode/android-kotlin/rules/preset-no-cross-stack-leakage.md +93 -0
  928. package/presets/zcode/android-kotlin/rules/preset-pr-checklist.md +45 -0
  929. package/presets/zcode/android-kotlin/rules/preset-token-budget.md +38 -0
  930. package/presets/zcode/android-kotlin/rules/preset-twin-sync.md +41 -0
  931. package/presets/zcode/android-kotlin/rules/preset-writing-style.md +42 -0
  932. package/presets/zcode/android-kotlin/rules/product-specs-authoring.md +118 -0
  933. package/presets/zcode/android-kotlin/rules/product-specs.md +61 -0
  934. package/presets/zcode/android-kotlin/rules/reference-features.md +22 -0
  935. package/presets/zcode/android-kotlin/rules/security-android.md +21 -0
  936. package/presets/zcode/android-kotlin/rules/state-and-viewmodels.md +21 -0
  937. package/presets/zcode/android-kotlin/rules/technical-retro.md +13 -0
  938. package/presets/zcode/android-kotlin/rules/tests-ui.md +22 -0
  939. package/presets/zcode/android-kotlin/rules/tests-unit.md +22 -0
  940. package/presets/zcode/android-kotlin/rules/ux-design.md +103 -0
  941. package/presets/zcode/android-kotlin/skills/README.md +18 -0
  942. package/presets/zcode/android-kotlin/skills/ci-investigation/SKILL.md +53 -0
  943. package/presets/zcode/android-kotlin/skills/code-review/SKILL.md +61 -0
  944. package/presets/zcode/android-kotlin/skills/debug-investigation/SKILL.md +72 -0
  945. package/presets/zcode/android-kotlin/skills/feature-delivery/SKILL.md +51 -0
  946. package/presets/zcode/android-kotlin/skills/instrumentation-ui-e2e/SKILL.md +23 -0
  947. package/presets/zcode/android-kotlin/skills/mockup-review/SKILL.md +34 -0
  948. package/presets/zcode/android-kotlin/skills/spec-authoring/SKILL.md +31 -0
  949. package/presets/zcode/android-kotlin/skills/spec-discovery/SKILL.md +63 -0
  950. package/presets/zcode/android-kotlin/skills/technical-retro/SKILL.md +72 -0
  951. package/presets/zcode/android-kotlin/skills/unit-testing/SKILL.md +38 -0
  952. package/presets/zcode/android-kotlin/skills/ux-design/SKILL.md +41 -0
  953. package/presets/zcode/android-kotlin/skills/write-adr/SKILL.md +46 -0
  954. package/presets/zcode/android-kotlin/team/README.md +123 -0
  955. package/presets/zcode/android-kotlin/team/fixtures/artifact-manifest.example.json +26 -0
  956. package/presets/zcode/android-kotlin/team/fixtures/bugfix-standard.json +47 -0
  957. package/presets/zcode/android-kotlin/team/fixtures/feature-full.json +98 -0
  958. package/presets/zcode/android-kotlin/team/fixtures/feature-light.json +38 -0
  959. package/presets/zcode/android-kotlin/team/fixtures/feature-with-figma-url.json +17 -0
  960. package/presets/zcode/android-kotlin/team/fixtures/feature-with-ux-no-figma.json +17 -0
  961. package/presets/zcode/android-kotlin/team/fixtures/memlog.example.md +9 -0
  962. package/presets/zcode/android-kotlin/team/fixtures/mockup-review-fail-embedded-status.json +8 -0
  963. package/presets/zcode/android-kotlin/team/fixtures/mockup-review-standalone.json +14 -0
  964. package/presets/zcode/android-kotlin/team/fixtures/ux-design-standalone.json +15 -0
  965. package/presets/zcode/go/MCP.md +37 -0
  966. package/presets/zcode/go/README.md +20 -0
  967. package/presets/zcode/go/REPO_AGENTS.md +100 -0
  968. package/presets/zcode/go/adapter-map.json +864 -0
  969. package/presets/zcode/go/agents/README.md +55 -0
  970. package/presets/zcode/go/agents/api-contract-reviewer.md +47 -0
  971. package/presets/zcode/go/agents/build-verifier.md +72 -0
  972. package/presets/zcode/go/agents/ci-investigator.md +66 -0
  973. package/presets/zcode/go/agents/code-reviewer.md +128 -0
  974. package/presets/zcode/go/agents/codebase-analyzer.md +49 -0
  975. package/presets/zcode/go/agents/debugger.md +98 -0
  976. package/presets/zcode/go/agents/feature-developer.md +144 -0
  977. package/presets/zcode/go/agents/integration-test-generator.md +46 -0
  978. package/presets/zcode/go/agents/integration-test-healer.md +46 -0
  979. package/presets/zcode/go/agents/integration-test-planner.md +48 -0
  980. package/presets/zcode/go/agents/migration-specialist.md +59 -0
  981. package/presets/zcode/go/agents/openspec-author.md +185 -0
  982. package/presets/zcode/go/agents/performance-auditor.md +50 -0
  983. package/presets/zcode/go/agents/qa-tester.md +53 -0
  984. package/presets/zcode/go/agents/security-reviewer.md +42 -0
  985. package/presets/zcode/go/agents/solution-architect.md +56 -0
  986. package/presets/zcode/go/agents/task-analyst.md +131 -0
  987. package/presets/zcode/go/agents/task-router.md +179 -0
  988. package/presets/zcode/go/agents/tech-writer.md +45 -0
  989. package/presets/zcode/go/agents/unit-test-generator.md +44 -0
  990. package/presets/zcode/go/agents/unit-test-healer.md +36 -0
  991. package/presets/zcode/go/agents/unit-test-planner.md +51 -0
  992. package/presets/zcode/go/ai-local/conventions.md +29 -0
  993. package/presets/zcode/go/commands/README.md +54 -0
  994. package/presets/zcode/go/commands/migrate-tasks.md +44 -0
  995. package/presets/zcode/go/commands/spec-start.md +32 -0
  996. package/presets/zcode/go/commands/task-continue.md +73 -0
  997. package/presets/zcode/go/commands/task.md +74 -0
  998. package/presets/zcode/go/commands/technical-retro.md +96 -0
  999. package/presets/zcode/go/commands/update.md +43 -0
  1000. package/presets/zcode/go/hooks/README.md +31 -0
  1001. package/presets/zcode/go/hooks/chain-team-phases.sh +2763 -0
  1002. package/presets/zcode/go/hooks/check-preset-update.mjs +232 -0
  1003. package/presets/zcode/go/hooks/list-ai-local.mjs +299 -0
  1004. package/presets/zcode/go/mcp.json +11 -0
  1005. package/presets/zcode/go/rules/README.md +25 -0
  1006. package/presets/zcode/go/rules/adapters-driven.md +25 -0
  1007. package/presets/zcode/go/rules/adapters-driving.md +26 -0
  1008. package/presets/zcode/go/rules/agent-team-intake.md +18 -0
  1009. package/presets/zcode/go/rules/agent-team-orchestrator.md +282 -0
  1010. package/presets/zcode/go/rules/ai-local-overlay.md +18 -0
  1011. package/presets/zcode/go/rules/anti-hallucination-contract.md +37 -0
  1012. package/presets/zcode/go/rules/anti-sycophancy-discipline.md +23 -0
  1013. package/presets/zcode/go/rules/api-grpc.md +20 -0
  1014. package/presets/zcode/go/rules/api-http.md +25 -0
  1015. package/presets/zcode/go/rules/application-usecases.md +26 -0
  1016. package/presets/zcode/go/rules/architecture-boundaries.md +31 -0
  1017. package/presets/zcode/go/rules/code-quality-and-refactoring.md +78 -0
  1018. package/presets/zcode/go/rules/code-review-mr.md +77 -0
  1019. package/presets/zcode/go/rules/composition-root.md +26 -0
  1020. package/presets/zcode/go/rules/design-guidance.md +104 -0
  1021. package/presets/zcode/go/rules/domain-layer.md +25 -0
  1022. package/presets/zcode/go/rules/feature-delivery-workflow.md +59 -0
  1023. package/presets/zcode/go/rules/go-anti-hallucination.md +27 -0
  1024. package/presets/zcode/go/rules/go-app-core.md +31 -0
  1025. package/presets/zcode/go/rules/go-conventions.md +46 -0
  1026. package/presets/zcode/go/rules/go-tooling.md +28 -0
  1027. package/presets/zcode/go/rules/interactive-questions.md +29 -0
  1028. package/presets/zcode/go/rules/language-policy.md +51 -0
  1029. package/presets/zcode/go/rules/mcp-usage.md +93 -0
  1030. package/presets/zcode/go/rules/messaging-adapters.md +15 -0
  1031. package/presets/zcode/go/rules/module-public-api.md +16 -0
  1032. package/presets/zcode/go/rules/persistence-adapters.md +24 -0
  1033. package/presets/zcode/go/rules/ports-interfaces.md +26 -0
  1034. package/presets/zcode/go/rules/post-change-test.md +22 -0
  1035. package/presets/zcode/go/rules/preset-goals.md +31 -0
  1036. package/presets/zcode/go/rules/preset-layering.md +27 -0
  1037. package/presets/zcode/go/rules/preset-no-cross-stack-leakage.md +89 -0
  1038. package/presets/zcode/go/rules/preset-pr-checklist.md +45 -0
  1039. package/presets/zcode/go/rules/preset-token-budget.md +38 -0
  1040. package/presets/zcode/go/rules/preset-twin-sync.md +41 -0
  1041. package/presets/zcode/go/rules/preset-writing-style.md +42 -0
  1042. package/presets/zcode/go/rules/product-specs-authoring.md +118 -0
  1043. package/presets/zcode/go/rules/product-specs.md +62 -0
  1044. package/presets/zcode/go/rules/reference-features.md +45 -0
  1045. package/presets/zcode/go/rules/security-go.md +26 -0
  1046. package/presets/zcode/go/rules/technical-retro.md +13 -0
  1047. package/presets/zcode/go/rules/tests-e2e.md +13 -0
  1048. package/presets/zcode/go/rules/tests-integration.md +22 -0
  1049. package/presets/zcode/go/rules/tests-unit.md +18 -0
  1050. package/presets/zcode/go/skills/README.md +5 -0
  1051. package/presets/zcode/go/skills/ci-investigation/SKILL.md +24 -0
  1052. package/presets/zcode/go/skills/code-review/SKILL.md +47 -0
  1053. package/presets/zcode/go/skills/debug-investigation/SKILL.md +55 -0
  1054. package/presets/zcode/go/skills/feature-delivery/SKILL.md +43 -0
  1055. package/presets/zcode/go/skills/integration-testing/SKILL.md +21 -0
  1056. package/presets/zcode/go/skills/spec-authoring/SKILL.md +31 -0
  1057. package/presets/zcode/go/skills/spec-discovery/SKILL.md +63 -0
  1058. package/presets/zcode/go/skills/technical-retro/SKILL.md +72 -0
  1059. package/presets/zcode/go/skills/unit-testing/SKILL.md +20 -0
  1060. package/presets/zcode/go/skills/write-adr/SKILL.md +46 -0
  1061. package/presets/zcode/go/team/README.md +123 -0
  1062. package/presets/zcode/go/team/fixtures/bugfix-standard.json +37 -0
  1063. package/presets/zcode/go/team/fixtures/feature-full.json +61 -0
  1064. package/presets/zcode/go/team/fixtures/feature-light.json +17 -0
  1065. package/presets/zcode/go/team/fixtures/memlog.example.md +9 -0
  1066. package/presets/zcode/ios-swift/MCP.md +35 -0
  1067. package/presets/zcode/ios-swift/README.md +20 -0
  1068. package/presets/zcode/ios-swift/REPO_AGENTS.md +98 -0
  1069. package/presets/zcode/ios-swift/adapter-map.json +918 -0
  1070. package/presets/zcode/ios-swift/agents/README.md +86 -0
  1071. package/presets/zcode/ios-swift/agents/accessibility-reviewer.md +85 -0
  1072. package/presets/zcode/ios-swift/agents/api-contract-reviewer.md +85 -0
  1073. package/presets/zcode/ios-swift/agents/build-verifier.md +103 -0
  1074. package/presets/zcode/ios-swift/agents/ci-investigator.md +107 -0
  1075. package/presets/zcode/ios-swift/agents/code-reviewer.md +133 -0
  1076. package/presets/zcode/ios-swift/agents/codebase-analyzer.md +49 -0
  1077. package/presets/zcode/ios-swift/agents/debugger.md +129 -0
  1078. package/presets/zcode/ios-swift/agents/feature-developer.md +153 -0
  1079. package/presets/zcode/ios-swift/agents/migration-specialist.md +95 -0
  1080. package/presets/zcode/ios-swift/agents/mockup-reviewer.md +81 -0
  1081. package/presets/zcode/ios-swift/agents/openspec-author.md +185 -0
  1082. package/presets/zcode/ios-swift/agents/performance-auditor.md +94 -0
  1083. package/presets/zcode/ios-swift/agents/qa-tester.md +85 -0
  1084. package/presets/zcode/ios-swift/agents/security-reviewer.md +81 -0
  1085. package/presets/zcode/ios-swift/agents/solution-architect.md +48 -0
  1086. package/presets/zcode/ios-swift/agents/task-analyst.md +152 -0
  1087. package/presets/zcode/ios-swift/agents/task-router.md +190 -0
  1088. package/presets/zcode/ios-swift/agents/tech-writer.md +75 -0
  1089. package/presets/zcode/ios-swift/agents/unit-test-generator.md +71 -0
  1090. package/presets/zcode/ios-swift/agents/unit-test-healer.md +70 -0
  1091. package/presets/zcode/ios-swift/agents/unit-test-planner.md +83 -0
  1092. package/presets/zcode/ios-swift/agents/xcuitest-test-generator.md +59 -0
  1093. package/presets/zcode/ios-swift/agents/xcuitest-test-healer.md +59 -0
  1094. package/presets/zcode/ios-swift/agents/xcuitest-test-planner.md +79 -0
  1095. package/presets/zcode/ios-swift/ai-local/conventions.md +29 -0
  1096. package/presets/zcode/ios-swift/commands/README.md +51 -0
  1097. package/presets/zcode/ios-swift/commands/migrate-tasks.md +44 -0
  1098. package/presets/zcode/ios-swift/commands/spec-start.md +32 -0
  1099. package/presets/zcode/ios-swift/commands/task-continue.md +75 -0
  1100. package/presets/zcode/ios-swift/commands/task.md +76 -0
  1101. package/presets/zcode/ios-swift/commands/technical-retro.md +96 -0
  1102. package/presets/zcode/ios-swift/commands/update.md +43 -0
  1103. package/presets/zcode/ios-swift/hooks/README.md +31 -0
  1104. package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +2768 -0
  1105. package/presets/zcode/ios-swift/hooks/check-preset-update.mjs +232 -0
  1106. package/presets/zcode/ios-swift/hooks/list-ai-local.mjs +299 -0
  1107. package/presets/zcode/ios-swift/mcp.json +11 -0
  1108. package/presets/zcode/ios-swift/rules/README.md +25 -0
  1109. package/presets/zcode/ios-swift/rules/agent-team-intake.md +14 -0
  1110. package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +282 -0
  1111. package/presets/zcode/ios-swift/rules/ai-local-overlay.md +18 -0
  1112. package/presets/zcode/ios-swift/rules/anti-hallucination-contract.md +37 -0
  1113. package/presets/zcode/ios-swift/rules/anti-sycophancy-discipline.md +23 -0
  1114. package/presets/zcode/ios-swift/rules/architecture-boundaries.md +29 -0
  1115. package/presets/zcode/ios-swift/rules/code-quality-and-refactoring.md +77 -0
  1116. package/presets/zcode/ios-swift/rules/code-review-mr.md +109 -0
  1117. package/presets/zcode/ios-swift/rules/design-guidance.md +104 -0
  1118. package/presets/zcode/ios-swift/rules/feature-delivery-workflow.md +129 -0
  1119. package/presets/zcode/ios-swift/rules/interactive-questions.md +29 -0
  1120. package/presets/zcode/ios-swift/rules/ios-app-core.md +20 -0
  1121. package/presets/zcode/ios-swift/rules/language-policy.md +51 -0
  1122. package/presets/zcode/ios-swift/rules/mcp-usage.md +94 -0
  1123. package/presets/zcode/ios-swift/rules/mockup-review.md +171 -0
  1124. package/presets/zcode/ios-swift/rules/module-public-api.md +17 -0
  1125. package/presets/zcode/ios-swift/rules/navigation-coordinators.md +18 -0
  1126. package/presets/zcode/ios-swift/rules/networking-services.md +43 -0
  1127. package/presets/zcode/ios-swift/rules/persistence-data.md +20 -0
  1128. package/presets/zcode/ios-swift/rules/post-change-build.md +27 -0
  1129. package/presets/zcode/ios-swift/rules/preset-goals.md +31 -0
  1130. package/presets/zcode/ios-swift/rules/preset-layering.md +27 -0
  1131. package/presets/zcode/ios-swift/rules/preset-no-cross-stack-leakage.md +89 -0
  1132. package/presets/zcode/ios-swift/rules/preset-pr-checklist.md +45 -0
  1133. package/presets/zcode/ios-swift/rules/preset-token-budget.md +38 -0
  1134. package/presets/zcode/ios-swift/rules/preset-twin-sync.md +41 -0
  1135. package/presets/zcode/ios-swift/rules/preset-writing-style.md +42 -0
  1136. package/presets/zcode/ios-swift/rules/product-specs-authoring.md +118 -0
  1137. package/presets/zcode/ios-swift/rules/product-specs.md +61 -0
  1138. package/presets/zcode/ios-swift/rules/reference-features.md +94 -0
  1139. package/presets/zcode/ios-swift/rules/security-ios.md +24 -0
  1140. package/presets/zcode/ios-swift/rules/state-and-viewmodels.md +37 -0
  1141. package/presets/zcode/ios-swift/rules/swift-anti-hallucination.md +27 -0
  1142. package/presets/zcode/ios-swift/rules/swift-conventions.md +55 -0
  1143. package/presets/zcode/ios-swift/rules/swiftui-ui.md +70 -0
  1144. package/presets/zcode/ios-swift/rules/technical-retro.md +13 -0
  1145. package/presets/zcode/ios-swift/rules/tests-ui.md +37 -0
  1146. package/presets/zcode/ios-swift/rules/tests-unit.md +35 -0
  1147. package/presets/zcode/ios-swift/rules/ux-design.md +103 -0
  1148. package/presets/zcode/ios-swift/rules/xcode-tooling.md +15 -0
  1149. package/presets/zcode/ios-swift/skills/README.md +18 -0
  1150. package/presets/zcode/ios-swift/skills/ci-investigation/SKILL.md +53 -0
  1151. package/presets/zcode/ios-swift/skills/code-review/SKILL.md +61 -0
  1152. package/presets/zcode/ios-swift/skills/debug-investigation/SKILL.md +72 -0
  1153. package/presets/zcode/ios-swift/skills/feature-delivery/SKILL.md +51 -0
  1154. package/presets/zcode/ios-swift/skills/mockup-review/SKILL.md +34 -0
  1155. package/presets/zcode/ios-swift/skills/spec-authoring/SKILL.md +31 -0
  1156. package/presets/zcode/ios-swift/skills/spec-discovery/SKILL.md +63 -0
  1157. package/presets/zcode/ios-swift/skills/technical-retro/SKILL.md +72 -0
  1158. package/presets/zcode/ios-swift/skills/unit-testing/SKILL.md +38 -0
  1159. package/presets/zcode/ios-swift/skills/ux-design/SKILL.md +41 -0
  1160. package/presets/zcode/ios-swift/skills/write-adr/SKILL.md +46 -0
  1161. package/presets/zcode/ios-swift/skills/xcuitest-e2e/SKILL.md +39 -0
  1162. package/presets/zcode/ios-swift/team/README.md +123 -0
  1163. package/presets/zcode/ios-swift/team/fixtures/artifact-manifest.example.json +26 -0
  1164. package/presets/zcode/ios-swift/team/fixtures/bugfix-standard.json +33 -0
  1165. package/presets/zcode/ios-swift/team/fixtures/feature-full.json +61 -0
  1166. package/presets/zcode/ios-swift/team/fixtures/feature-light.json +17 -0
  1167. package/presets/zcode/ios-swift/team/fixtures/feature-with-figma-url.json +17 -0
  1168. package/presets/zcode/ios-swift/team/fixtures/feature-with-ux-no-figma.json +17 -0
  1169. package/presets/zcode/ios-swift/team/fixtures/memlog.example.md +9 -0
  1170. package/presets/zcode/ios-swift/team/fixtures/mockup-review-fail-embedded-status.json +8 -0
  1171. package/presets/zcode/ios-swift/team/fixtures/mockup-review-standalone.json +14 -0
  1172. package/presets/zcode/ios-swift/team/fixtures/ux-design-standalone.json +15 -0
  1173. package/presets/zcode/java/MCP.md +34 -0
  1174. package/presets/zcode/java/README.md +20 -0
  1175. package/presets/zcode/java/REPO_AGENTS.md +98 -0
  1176. package/presets/zcode/java/adapter-map.json +864 -0
  1177. package/presets/zcode/java/agents/README.md +55 -0
  1178. package/presets/zcode/java/agents/api-contract-reviewer.md +47 -0
  1179. package/presets/zcode/java/agents/build-verifier.md +72 -0
  1180. package/presets/zcode/java/agents/ci-investigator.md +66 -0
  1181. package/presets/zcode/java/agents/code-reviewer.md +128 -0
  1182. package/presets/zcode/java/agents/codebase-analyzer.md +49 -0
  1183. package/presets/zcode/java/agents/debugger.md +98 -0
  1184. package/presets/zcode/java/agents/feature-developer.md +144 -0
  1185. package/presets/zcode/java/agents/integration-test-generator.md +46 -0
  1186. package/presets/zcode/java/agents/integration-test-healer.md +46 -0
  1187. package/presets/zcode/java/agents/integration-test-planner.md +48 -0
  1188. package/presets/zcode/java/agents/migration-specialist.md +59 -0
  1189. package/presets/zcode/java/agents/openspec-author.md +185 -0
  1190. package/presets/zcode/java/agents/performance-auditor.md +50 -0
  1191. package/presets/zcode/java/agents/qa-tester.md +53 -0
  1192. package/presets/zcode/java/agents/security-reviewer.md +42 -0
  1193. package/presets/zcode/java/agents/solution-architect.md +56 -0
  1194. package/presets/zcode/java/agents/task-analyst.md +131 -0
  1195. package/presets/zcode/java/agents/task-router.md +179 -0
  1196. package/presets/zcode/java/agents/tech-writer.md +45 -0
  1197. package/presets/zcode/java/agents/unit-test-generator.md +44 -0
  1198. package/presets/zcode/java/agents/unit-test-healer.md +36 -0
  1199. package/presets/zcode/java/agents/unit-test-planner.md +51 -0
  1200. package/presets/zcode/java/ai-local/conventions.md +29 -0
  1201. package/presets/zcode/java/commands/README.md +54 -0
  1202. package/presets/zcode/java/commands/migrate-tasks.md +44 -0
  1203. package/presets/zcode/java/commands/spec-start.md +32 -0
  1204. package/presets/zcode/java/commands/task-continue.md +73 -0
  1205. package/presets/zcode/java/commands/task.md +74 -0
  1206. package/presets/zcode/java/commands/technical-retro.md +96 -0
  1207. package/presets/zcode/java/commands/update.md +43 -0
  1208. package/presets/zcode/java/hooks/README.md +31 -0
  1209. package/presets/zcode/java/hooks/chain-team-phases.sh +2763 -0
  1210. package/presets/zcode/java/hooks/check-preset-update.mjs +232 -0
  1211. package/presets/zcode/java/hooks/list-ai-local.mjs +299 -0
  1212. package/presets/zcode/java/mcp.json +11 -0
  1213. package/presets/zcode/java/rules/README.md +25 -0
  1214. package/presets/zcode/java/rules/adapters-driven.md +30 -0
  1215. package/presets/zcode/java/rules/adapters-driving.md +30 -0
  1216. package/presets/zcode/java/rules/agent-team-intake.md +18 -0
  1217. package/presets/zcode/java/rules/agent-team-orchestrator.md +282 -0
  1218. package/presets/zcode/java/rules/ai-local-overlay.md +18 -0
  1219. package/presets/zcode/java/rules/anti-hallucination-contract.md +37 -0
  1220. package/presets/zcode/java/rules/anti-sycophancy-discipline.md +23 -0
  1221. package/presets/zcode/java/rules/api-grpc.md +22 -0
  1222. package/presets/zcode/java/rules/api-http.md +28 -0
  1223. package/presets/zcode/java/rules/application-usecases.md +26 -0
  1224. package/presets/zcode/java/rules/architecture-boundaries.md +31 -0
  1225. package/presets/zcode/java/rules/code-quality-and-refactoring.md +78 -0
  1226. package/presets/zcode/java/rules/code-review-mr.md +79 -0
  1227. package/presets/zcode/java/rules/composition-root.md +25 -0
  1228. package/presets/zcode/java/rules/design-guidance.md +105 -0
  1229. package/presets/zcode/java/rules/domain-layer.md +32 -0
  1230. package/presets/zcode/java/rules/feature-delivery-workflow.md +59 -0
  1231. package/presets/zcode/java/rules/interactive-questions.md +29 -0
  1232. package/presets/zcode/java/rules/java-anti-hallucination.md +27 -0
  1233. package/presets/zcode/java/rules/java-app-core.md +32 -0
  1234. package/presets/zcode/java/rules/java-conventions.md +48 -0
  1235. package/presets/zcode/java/rules/java-tooling.md +24 -0
  1236. package/presets/zcode/java/rules/language-policy.md +51 -0
  1237. package/presets/zcode/java/rules/mcp-usage.md +92 -0
  1238. package/presets/zcode/java/rules/messaging-adapters.md +23 -0
  1239. package/presets/zcode/java/rules/module-public-api.md +23 -0
  1240. package/presets/zcode/java/rules/persistence-adapters.md +25 -0
  1241. package/presets/zcode/java/rules/ports-interfaces.md +27 -0
  1242. package/presets/zcode/java/rules/post-change-test.md +20 -0
  1243. package/presets/zcode/java/rules/preset-goals.md +31 -0
  1244. package/presets/zcode/java/rules/preset-layering.md +27 -0
  1245. package/presets/zcode/java/rules/preset-no-cross-stack-leakage.md +89 -0
  1246. package/presets/zcode/java/rules/preset-pr-checklist.md +45 -0
  1247. package/presets/zcode/java/rules/preset-token-budget.md +38 -0
  1248. package/presets/zcode/java/rules/preset-twin-sync.md +41 -0
  1249. package/presets/zcode/java/rules/preset-writing-style.md +42 -0
  1250. package/presets/zcode/java/rules/product-specs-authoring.md +118 -0
  1251. package/presets/zcode/java/rules/product-specs.md +62 -0
  1252. package/presets/zcode/java/rules/reference-features.md +45 -0
  1253. package/presets/zcode/java/rules/security-java.md +21 -0
  1254. package/presets/zcode/java/rules/technical-retro.md +13 -0
  1255. package/presets/zcode/java/rules/tests-e2e.md +15 -0
  1256. package/presets/zcode/java/rules/tests-integration.md +19 -0
  1257. package/presets/zcode/java/rules/tests-unit.md +26 -0
  1258. package/presets/zcode/java/skills/README.md +5 -0
  1259. package/presets/zcode/java/skills/ci-investigation/SKILL.md +24 -0
  1260. package/presets/zcode/java/skills/code-review/SKILL.md +47 -0
  1261. package/presets/zcode/java/skills/debug-investigation/SKILL.md +55 -0
  1262. package/presets/zcode/java/skills/feature-delivery/SKILL.md +43 -0
  1263. package/presets/zcode/java/skills/integration-testing/SKILL.md +21 -0
  1264. package/presets/zcode/java/skills/spec-authoring/SKILL.md +31 -0
  1265. package/presets/zcode/java/skills/spec-discovery/SKILL.md +63 -0
  1266. package/presets/zcode/java/skills/technical-retro/SKILL.md +72 -0
  1267. package/presets/zcode/java/skills/unit-testing/SKILL.md +20 -0
  1268. package/presets/zcode/java/skills/write-adr/SKILL.md +46 -0
  1269. package/presets/zcode/java/team/README.md +123 -0
  1270. package/presets/zcode/java/team/fixtures/bugfix-standard.json +37 -0
  1271. package/presets/zcode/java/team/fixtures/feature-full.json +61 -0
  1272. package/presets/zcode/java/team/fixtures/feature-light.json +17 -0
  1273. package/presets/zcode/java/team/fixtures/memlog.example.md +9 -0
  1274. package/presets/zcode/mcp-ts/MCP.md +56 -0
  1275. package/presets/zcode/mcp-ts/README.md +20 -0
  1276. package/presets/zcode/mcp-ts/REPO_AGENTS.md +101 -0
  1277. package/presets/zcode/mcp-ts/adapter-map.json +612 -0
  1278. package/presets/zcode/mcp-ts/agents/README.md +53 -0
  1279. package/presets/zcode/mcp-ts/agents/build-verifier.md +73 -0
  1280. package/presets/zcode/mcp-ts/agents/feature-developer.md +138 -0
  1281. package/presets/zcode/mcp-ts/agents/security-reviewer.md +43 -0
  1282. package/presets/zcode/mcp-ts/agents/solution-architect.md +50 -0
  1283. package/presets/zcode/mcp-ts/agents/task-analyst.md +134 -0
  1284. package/presets/zcode/mcp-ts/agents/task-router.md +175 -0
  1285. package/presets/zcode/mcp-ts/ai-local/conventions.md +22 -0
  1286. package/presets/zcode/mcp-ts/commands/README.md +11 -0
  1287. package/presets/zcode/mcp-ts/commands/migrate-tasks.md +44 -0
  1288. package/presets/zcode/mcp-ts/commands/spec-start.md +32 -0
  1289. package/presets/zcode/mcp-ts/commands/task-continue.md +73 -0
  1290. package/presets/zcode/mcp-ts/commands/task.md +74 -0
  1291. package/presets/zcode/mcp-ts/commands/technical-retro.md +96 -0
  1292. package/presets/zcode/mcp-ts/commands/update.md +43 -0
  1293. package/presets/zcode/mcp-ts/hooks/README.md +31 -0
  1294. package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +2710 -0
  1295. package/presets/zcode/mcp-ts/hooks/check-preset-update.mjs +232 -0
  1296. package/presets/zcode/mcp-ts/hooks/list-ai-local.mjs +299 -0
  1297. package/presets/zcode/mcp-ts/mcp.json +11 -0
  1298. package/presets/zcode/mcp-ts/rules/README.md +25 -0
  1299. package/presets/zcode/mcp-ts/rules/agent-team-intake.md +19 -0
  1300. package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +282 -0
  1301. package/presets/zcode/mcp-ts/rules/ai-local-overlay.md +18 -0
  1302. package/presets/zcode/mcp-ts/rules/anti-hallucination-contract.md +37 -0
  1303. package/presets/zcode/mcp-ts/rules/anti-sycophancy-discipline.md +27 -0
  1304. package/presets/zcode/mcp-ts/rules/code-quality-and-refactoring.md +78 -0
  1305. package/presets/zcode/mcp-ts/rules/code-review-mr.md +76 -0
  1306. package/presets/zcode/mcp-ts/rules/design-guidance.md +104 -0
  1307. package/presets/zcode/mcp-ts/rules/feature-delivery-workflow.md +59 -0
  1308. package/presets/zcode/mcp-ts/rules/interactive-questions.md +29 -0
  1309. package/presets/zcode/mcp-ts/rules/language-policy.md +51 -0
  1310. package/presets/zcode/mcp-ts/rules/mcp-auth-secrets.md +35 -0
  1311. package/presets/zcode/mcp-ts/rules/mcp-contract-testing.md +32 -0
  1312. package/presets/zcode/mcp-ts/rules/mcp-server-boundaries.md +24 -0
  1313. package/presets/zcode/mcp-ts/rules/mcp-tool-design.md +29 -0
  1314. package/presets/zcode/mcp-ts/rules/mcp-transport-packaging.md +34 -0
  1315. package/presets/zcode/mcp-ts/rules/mcp-ts-anti-hallucination.md +27 -0
  1316. package/presets/zcode/mcp-ts/rules/mcp-ts-app-core.md +27 -0
  1317. package/presets/zcode/mcp-ts/rules/mcp-ts-conventions.md +22 -0
  1318. package/presets/zcode/mcp-ts/rules/mcp-ts-tooling.md +21 -0
  1319. package/presets/zcode/mcp-ts/rules/mcp-usage.md +93 -0
  1320. package/presets/zcode/mcp-ts/rules/post-change-test.md +21 -0
  1321. package/presets/zcode/mcp-ts/rules/preset-goals.md +31 -0
  1322. package/presets/zcode/mcp-ts/rules/preset-layering.md +27 -0
  1323. package/presets/zcode/mcp-ts/rules/preset-no-cross-stack-leakage.md +89 -0
  1324. package/presets/zcode/mcp-ts/rules/preset-pr-checklist.md +45 -0
  1325. package/presets/zcode/mcp-ts/rules/preset-token-budget.md +38 -0
  1326. package/presets/zcode/mcp-ts/rules/preset-twin-sync.md +41 -0
  1327. package/presets/zcode/mcp-ts/rules/preset-writing-style.md +42 -0
  1328. package/presets/zcode/mcp-ts/rules/product-specs-authoring.md +118 -0
  1329. package/presets/zcode/mcp-ts/rules/product-specs.md +62 -0
  1330. package/presets/zcode/mcp-ts/rules/reference-features.md +45 -0
  1331. package/presets/zcode/mcp-ts/rules/security-mcp.md +43 -0
  1332. package/presets/zcode/mcp-ts/rules/technical-retro.md +13 -0
  1333. package/presets/zcode/mcp-ts/rules/tests-unit.md +23 -0
  1334. package/presets/zcode/mcp-ts/skills/README.md +14 -0
  1335. package/presets/zcode/mcp-ts/skills/code-review/SKILL.md +31 -0
  1336. package/presets/zcode/mcp-ts/skills/debug-investigation/SKILL.md +51 -0
  1337. package/presets/zcode/mcp-ts/skills/feature-delivery/SKILL.md +42 -0
  1338. package/presets/zcode/mcp-ts/skills/spec-authoring/SKILL.md +31 -0
  1339. package/presets/zcode/mcp-ts/skills/spec-discovery/SKILL.md +63 -0
  1340. package/presets/zcode/mcp-ts/skills/unit-testing/SKILL.md +22 -0
  1341. package/presets/zcode/mcp-ts/team/README.md +123 -0
  1342. package/presets/zcode/mcp-ts/team/fixtures/bugfix-standard.json +32 -0
  1343. package/presets/zcode/mcp-ts/team/fixtures/feature-full.json +36 -0
  1344. package/presets/zcode/mcp-ts/team/fixtures/feature-light.json +34 -0
  1345. package/presets/zcode/mcp-ts/team/fixtures/memlog.example.md +9 -0
  1346. package/presets/zcode/mol/MCP.md +50 -0
  1347. package/presets/zcode/mol/README.md +20 -0
  1348. package/presets/zcode/mol/REPO_AGENTS.md +107 -0
  1349. package/presets/zcode/mol/adapter-map.json +1122 -0
  1350. package/presets/zcode/mol/agents/README.md +98 -0
  1351. package/presets/zcode/mol/agents/accessibility-reviewer.md +92 -0
  1352. package/presets/zcode/mol/agents/api-contract-reviewer.md +87 -0
  1353. package/presets/zcode/mol/agents/build-verifier.md +117 -0
  1354. package/presets/zcode/mol/agents/ci-investigator.md +95 -0
  1355. package/presets/zcode/mol/agents/code-reviewer.md +139 -0
  1356. package/presets/zcode/mol/agents/codebase-analyzer.md +51 -0
  1357. package/presets/zcode/mol/agents/debugger.md +126 -0
  1358. package/presets/zcode/mol/agents/feature-developer.md +151 -0
  1359. package/presets/zcode/mol/agents/migration-specialist.md +97 -0
  1360. package/presets/zcode/mol/agents/mockup-reviewer.md +131 -0
  1361. package/presets/zcode/mol/agents/openspec-author.md +213 -0
  1362. package/presets/zcode/mol/agents/performance-auditor.md +98 -0
  1363. package/presets/zcode/mol/agents/playwright-test-generator.md +56 -0
  1364. package/presets/zcode/mol/agents/playwright-test-healer.md +57 -0
  1365. package/presets/zcode/mol/agents/playwright-test-planner.md +51 -0
  1366. package/presets/zcode/mol/agents/qa-tester.md +80 -0
  1367. package/presets/zcode/mol/agents/security-reviewer.md +89 -0
  1368. package/presets/zcode/mol/agents/solution-architect.md +99 -0
  1369. package/presets/zcode/mol/agents/task-analyst.md +255 -0
  1370. package/presets/zcode/mol/agents/task-router.md +267 -0
  1371. package/presets/zcode/mol/agents/tech-writer.md +88 -0
  1372. package/presets/zcode/mol/agents/unit-test-generator.md +59 -0
  1373. package/presets/zcode/mol/agents/unit-test-healer.md +60 -0
  1374. package/presets/zcode/mol/agents/unit-test-planner.md +84 -0
  1375. package/presets/zcode/mol/ai-local/conventions.md +49 -0
  1376. package/presets/zcode/mol/ai-local/rules/task-levels.md +40 -0
  1377. package/presets/zcode/mol/ai-local/rules-library/agent-artifacts-no-local-paths.md +71 -0
  1378. package/presets/zcode/mol/ai-local/rules-library/agent-pipeline-gates.md +19 -0
  1379. package/presets/zcode/mol/ai-local/rules-library/analytics-events.md +18 -0
  1380. package/presets/zcode/mol/ai-local/rules-library/api-contract-source.md +14 -0
  1381. package/presets/zcode/mol/ai-local/rules-library/artifact-lifecycle.md +17 -0
  1382. package/presets/zcode/mol/ai-local/rules-library/code-style.md +68 -0
  1383. package/presets/zcode/mol/ai-local/rules-library/commit-hygiene.md +17 -0
  1384. package/presets/zcode/mol/ai-local/rules-library/component-child-decomposition.md +81 -0
  1385. package/presets/zcode/mol/ai-local/rules-library/feature-flags-experiments.md +15 -0
  1386. package/presets/zcode/mol/ai-local/rules-library/mcp-required-for-ui-layout.md +45 -0
  1387. package/presets/zcode/mol/ai-local/rules-library/no-react-fc.md +46 -0
  1388. package/presets/zcode/mol/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
  1389. package/presets/zcode/mol/ai-local/rules-library/pre-pr-checklist.md +16 -0
  1390. package/presets/zcode/mol/ai-local/rules-library/pwa-service-worker.md +15 -0
  1391. package/presets/zcode/mol/ai-local/rules-library/qa-test-cases.md +14 -0
  1392. package/presets/zcode/mol/ai-local/rules-library/router-pages.md +25 -0
  1393. package/presets/zcode/mol/ai-local/rules-library/single-source-copy-constants.md +18 -0
  1394. package/presets/zcode/mol/ai-local/rules-library/storybook-catalog-structure.md +62 -0
  1395. package/presets/zcode/mol/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
  1396. package/presets/zcode/mol/ai-local/rules-library/storybook-csf-authoring.md +100 -0
  1397. package/presets/zcode/mol/ai-local/rules-library/storybook-dev-compare-figma.md +71 -0
  1398. package/presets/zcode/mol/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
  1399. package/presets/zcode/mol/ai-local/rules-library/storybook-modals.md +64 -0
  1400. package/presets/zcode/mol/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
  1401. package/presets/zcode/mol/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
  1402. package/presets/zcode/mol/ai-local/rules-library/ui-change-review-gate.md +15 -0
  1403. package/presets/zcode/mol/commands/README.md +56 -0
  1404. package/presets/zcode/mol/commands/migrate-tasks.md +44 -0
  1405. package/presets/zcode/mol/commands/spec-start.md +32 -0
  1406. package/presets/zcode/mol/commands/task-continue.md +75 -0
  1407. package/presets/zcode/mol/commands/task-evil.md +90 -0
  1408. package/presets/zcode/mol/commands/task.md +79 -0
  1409. package/presets/zcode/mol/commands/technical-retro.md +96 -0
  1410. package/presets/zcode/mol/commands/update.md +43 -0
  1411. package/presets/zcode/mol/hooks/README.md +31 -0
  1412. package/presets/zcode/mol/hooks/chain-team-phases.sh +2765 -0
  1413. package/presets/zcode/mol/hooks/check-preset-update.mjs +232 -0
  1414. package/presets/zcode/mol/hooks/list-ai-local.mjs +299 -0
  1415. package/presets/zcode/mol/mcp.json +19 -0
  1416. package/presets/zcode/mol/rules/README.md +25 -0
  1417. package/presets/zcode/mol/rules/agent-team-intake.md +14 -0
  1418. package/presets/zcode/mol/rules/agent-team-orchestrator.md +282 -0
  1419. package/presets/zcode/mol/rules/ai-local-overlay.md +18 -0
  1420. package/presets/zcode/mol/rules/anti-hallucination-contract.md +37 -0
  1421. package/presets/zcode/mol/rules/anti-sycophancy-discipline.md +23 -0
  1422. package/presets/zcode/mol/rules/code-quality-and-refactoring.md +76 -0
  1423. package/presets/zcode/mol/rules/code-review-mr.md +95 -0
  1424. package/presets/zcode/mol/rules/design-guidance.md +104 -0
  1425. package/presets/zcode/mol/rules/feature-delivery-workflow.md +144 -0
  1426. package/presets/zcode/mol/rules/interactive-questions.md +29 -0
  1427. package/presets/zcode/mol/rules/language-policy.md +51 -0
  1428. package/presets/zcode/mol/rules/mcp-usage.md +96 -0
  1429. package/presets/zcode/mol/rules/mol-app-core.md +29 -0
  1430. package/presets/zcode/mol/rules/mol-build.md +19 -0
  1431. package/presets/zcode/mol/rules/mol-components.md +31 -0
  1432. package/presets/zcode/mol/rules/mol-reactivity.md +21 -0
  1433. package/presets/zcode/mol/rules/mol-state.md +22 -0
  1434. package/presets/zcode/mol/rules/mol-testing.md +28 -0
  1435. package/presets/zcode/mol/rules/mol-theming.md +22 -0
  1436. package/presets/zcode/mol/rules/mol-view-tree.md +27 -0
  1437. package/presets/zcode/mol/rules/package-manager.md +7 -0
  1438. package/presets/zcode/mol/rules/preset-goals.md +31 -0
  1439. package/presets/zcode/mol/rules/preset-layering.md +27 -0
  1440. package/presets/zcode/mol/rules/preset-no-cross-stack-leakage.md +89 -0
  1441. package/presets/zcode/mol/rules/preset-pr-checklist.md +45 -0
  1442. package/presets/zcode/mol/rules/preset-token-budget.md +38 -0
  1443. package/presets/zcode/mol/rules/preset-twin-sync.md +41 -0
  1444. package/presets/zcode/mol/rules/preset-writing-style.md +42 -0
  1445. package/presets/zcode/mol/rules/product-specs-authoring.md +118 -0
  1446. package/presets/zcode/mol/rules/product-specs.md +61 -0
  1447. package/presets/zcode/mol/rules/reference-features.md +82 -0
  1448. package/presets/zcode/mol/rules/technical-retro.md +13 -0
  1449. package/presets/zcode/mol/skills/README.md +17 -0
  1450. package/presets/zcode/mol/skills/ci-investigation/SKILL.md +49 -0
  1451. package/presets/zcode/mol/skills/code-review/SKILL.md +60 -0
  1452. package/presets/zcode/mol/skills/debug-investigation/SKILL.md +63 -0
  1453. package/presets/zcode/mol/skills/feature-delivery/SKILL.md +44 -0
  1454. package/presets/zcode/mol/skills/spec-authoring/SKILL.md +31 -0
  1455. package/presets/zcode/mol/skills/spec-discovery/SKILL.md +63 -0
  1456. package/presets/zcode/mol/skills/technical-retro/SKILL.md +72 -0
  1457. package/presets/zcode/mol/skills/unit-testing/SKILL.md +38 -0
  1458. package/presets/zcode/mol/skills/write-adr/SKILL.md +46 -0
  1459. package/presets/zcode/mol/team/README.md +135 -0
  1460. package/presets/zcode/mol/team/fixtures/artifact-manifest.example.json +80 -0
  1461. package/presets/zcode/mol/team/fixtures/bugfix-standard.json +25 -0
  1462. package/presets/zcode/mol/team/fixtures/feature-full.json +29 -0
  1463. package/presets/zcode/mol/team/fixtures/feature-light.json +28 -0
  1464. package/presets/zcode/mol/team/fixtures/feature-parallel.json +84 -0
  1465. package/presets/zcode/mol/team/fixtures/feature-ui-standard.json +24 -0
  1466. package/presets/zcode/mol/team/fixtures/feature-with-figma-url.json +27 -0
  1467. package/presets/zcode/mol/team/fixtures/feature-with-ux-no-figma.json +26 -0
  1468. package/presets/zcode/mol/team/fixtures/memlog.example.md +9 -0
  1469. package/presets/zcode/mol/team/fixtures/metrics-scenarios/tasks/human-gate/metrics.json +69 -0
  1470. package/presets/zcode/mol/team/fixtures/metrics-scenarios/tasks/missing-ledger/status.json +5 -0
  1471. package/presets/zcode/mol/team/fixtures/metrics-scenarios/tasks/parallel-receipts/metrics.json +79 -0
  1472. package/presets/zcode/mol/team/fixtures/metrics-scenarios/tasks/serial-retry/metrics.json +124 -0
  1473. package/presets/zcode/mol/team/fixtures/metrics-scenarios/tasks/validation-failed/metrics.json +124 -0
  1474. package/presets/zcode/mol/team/fixtures/metrics.example.json +54 -0
  1475. package/presets/zcode/mol/team/fixtures/mockup-review-fail-embedded-status.json +8 -0
  1476. package/presets/zcode/mol/team/fixtures/mockup-review-standalone.json +23 -0
  1477. package/presets/zcode/mol/team/fixtures/ux-design-standalone.json +24 -0
  1478. package/presets/zcode/mol/team/tasks/.gitkeep +0 -0
  1479. package/presets/zcode/next/MCP.md +50 -0
  1480. package/presets/zcode/next/README.md +20 -0
  1481. package/presets/zcode/next/REPO_AGENTS.md +110 -0
  1482. package/presets/zcode/next/adapter-map.json +1347 -0
  1483. package/presets/zcode/next/agents/README.md +98 -0
  1484. package/presets/zcode/next/agents/accessibility-reviewer.md +92 -0
  1485. package/presets/zcode/next/agents/api-contract-reviewer.md +89 -0
  1486. package/presets/zcode/next/agents/build-verifier.md +119 -0
  1487. package/presets/zcode/next/agents/ci-investigator.md +109 -0
  1488. package/presets/zcode/next/agents/code-reviewer.md +141 -0
  1489. package/presets/zcode/next/agents/codebase-analyzer.md +51 -0
  1490. package/presets/zcode/next/agents/debugger.md +140 -0
  1491. package/presets/zcode/next/agents/feature-developer.md +188 -0
  1492. package/presets/zcode/next/agents/migration-specialist.md +97 -0
  1493. package/presets/zcode/next/agents/mockup-reviewer.md +131 -0
  1494. package/presets/zcode/next/agents/openspec-author.md +213 -0
  1495. package/presets/zcode/next/agents/performance-auditor.md +98 -0
  1496. package/presets/zcode/next/agents/playwright-test-generator.md +60 -0
  1497. package/presets/zcode/next/agents/playwright-test-healer.md +61 -0
  1498. package/presets/zcode/next/agents/playwright-test-planner.md +55 -0
  1499. package/presets/zcode/next/agents/qa-tester.md +85 -0
  1500. package/presets/zcode/next/agents/security-reviewer.md +89 -0
  1501. package/presets/zcode/next/agents/solution-architect.md +99 -0
  1502. package/presets/zcode/next/agents/task-analyst.md +272 -0
  1503. package/presets/zcode/next/agents/task-router.md +267 -0
  1504. package/presets/zcode/next/agents/tech-writer.md +88 -0
  1505. package/presets/zcode/next/agents/unit-test-generator.md +62 -0
  1506. package/presets/zcode/next/agents/unit-test-healer.md +63 -0
  1507. package/presets/zcode/next/agents/unit-test-planner.md +87 -0
  1508. package/presets/zcode/next/ai-local/conventions.md +49 -0
  1509. package/presets/zcode/next/ai-local/rules/task-levels.md +40 -0
  1510. package/presets/zcode/next/ai-local/rules-library/agent-artifacts-no-local-paths.md +71 -0
  1511. package/presets/zcode/next/ai-local/rules-library/agent-pipeline-gates.md +19 -0
  1512. package/presets/zcode/next/ai-local/rules-library/analytics-events.md +18 -0
  1513. package/presets/zcode/next/ai-local/rules-library/api-contract-source.md +14 -0
  1514. package/presets/zcode/next/ai-local/rules-library/artifact-lifecycle.md +17 -0
  1515. package/presets/zcode/next/ai-local/rules-library/code-style.md +68 -0
  1516. package/presets/zcode/next/ai-local/rules-library/commit-hygiene.md +17 -0
  1517. package/presets/zcode/next/ai-local/rules-library/component-child-decomposition.md +81 -0
  1518. package/presets/zcode/next/ai-local/rules-library/feature-flags-experiments.md +15 -0
  1519. package/presets/zcode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +45 -0
  1520. package/presets/zcode/next/ai-local/rules-library/no-react-fc.md +46 -0
  1521. package/presets/zcode/next/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
  1522. package/presets/zcode/next/ai-local/rules-library/pre-pr-checklist.md +16 -0
  1523. package/presets/zcode/next/ai-local/rules-library/pwa-service-worker.md +15 -0
  1524. package/presets/zcode/next/ai-local/rules-library/qa-test-cases.md +14 -0
  1525. package/presets/zcode/next/ai-local/rules-library/router-pages.md +25 -0
  1526. package/presets/zcode/next/ai-local/rules-library/single-source-copy-constants.md +18 -0
  1527. package/presets/zcode/next/ai-local/rules-library/storybook-catalog-structure.md +62 -0
  1528. package/presets/zcode/next/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
  1529. package/presets/zcode/next/ai-local/rules-library/storybook-csf-authoring.md +100 -0
  1530. package/presets/zcode/next/ai-local/rules-library/storybook-dev-compare-figma.md +71 -0
  1531. package/presets/zcode/next/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
  1532. package/presets/zcode/next/ai-local/rules-library/storybook-modals.md +64 -0
  1533. package/presets/zcode/next/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
  1534. package/presets/zcode/next/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
  1535. package/presets/zcode/next/ai-local/rules-library/ui-change-review-gate.md +15 -0
  1536. package/presets/zcode/next/commands/README.md +56 -0
  1537. package/presets/zcode/next/commands/migrate-tasks.md +44 -0
  1538. package/presets/zcode/next/commands/spec-start.md +32 -0
  1539. package/presets/zcode/next/commands/task-continue.md +75 -0
  1540. package/presets/zcode/next/commands/task-evil.md +90 -0
  1541. package/presets/zcode/next/commands/task.md +79 -0
  1542. package/presets/zcode/next/commands/technical-retro.md +96 -0
  1543. package/presets/zcode/next/commands/update.md +43 -0
  1544. package/presets/zcode/next/hooks/README.md +31 -0
  1545. package/presets/zcode/next/hooks/chain-team-phases.sh +2766 -0
  1546. package/presets/zcode/next/hooks/check-preset-update.mjs +232 -0
  1547. package/presets/zcode/next/hooks/list-ai-local.mjs +299 -0
  1548. package/presets/zcode/next/mcp.json +19 -0
  1549. package/presets/zcode/next/rules/README.md +25 -0
  1550. package/presets/zcode/next/rules/agent-team-intake.md +14 -0
  1551. package/presets/zcode/next/rules/agent-team-orchestrator.md +282 -0
  1552. package/presets/zcode/next/rules/ai-local-overlay.md +18 -0
  1553. package/presets/zcode/next/rules/anti-hallucination-contract.md +37 -0
  1554. package/presets/zcode/next/rules/anti-sycophancy-discipline.md +23 -0
  1555. package/presets/zcode/next/rules/api-services.md +74 -0
  1556. package/presets/zcode/next/rules/architecture-boundaries-ui.md +9 -0
  1557. package/presets/zcode/next/rules/architecture-boundaries.md +86 -0
  1558. package/presets/zcode/next/rules/arrow-functions.md +25 -0
  1559. package/presets/zcode/next/rules/code-quality-and-refactoring.md +76 -0
  1560. package/presets/zcode/next/rules/code-review-mr.md +95 -0
  1561. package/presets/zcode/next/rules/component-catalog-gate.md +44 -0
  1562. package/presets/zcode/next/rules/css-property-order-stylelint.md +13 -0
  1563. package/presets/zcode/next/rules/design-guidance.md +104 -0
  1564. package/presets/zcode/next/rules/design-tokens-binding.md +44 -0
  1565. package/presets/zcode/next/rules/feature-delivery-workflow.md +166 -0
  1566. package/presets/zcode/next/rules/forms-validation.md +38 -0
  1567. package/presets/zcode/next/rules/http-client.md +55 -0
  1568. package/presets/zcode/next/rules/interactive-questions.md +29 -0
  1569. package/presets/zcode/next/rules/language-policy.md +51 -0
  1570. package/presets/zcode/next/rules/layer-barrel-exports.md +68 -0
  1571. package/presets/zcode/next/rules/mcp-usage.md +96 -0
  1572. package/presets/zcode/next/rules/mockup-review.md +195 -0
  1573. package/presets/zcode/next/rules/navigation-router-stack.md +68 -0
  1574. package/presets/zcode/next/rules/navigation-router-ui.md +10 -0
  1575. package/presets/zcode/next/rules/next-app-core.md +38 -0
  1576. package/presets/zcode/next/rules/next-app-router.md +58 -0
  1577. package/presets/zcode/next/rules/next-static-export.md +44 -0
  1578. package/presets/zcode/next/rules/no-props-spread.md +31 -0
  1579. package/presets/zcode/next/rules/no-type-assertion-as-import-export.md +51 -0
  1580. package/presets/zcode/next/rules/package-manager.md +11 -0
  1581. package/presets/zcode/next/rules/playwright-agents.md +67 -0
  1582. package/presets/zcode/next/rules/post-change-lint.md +39 -0
  1583. package/presets/zcode/next/rules/preset-goals.md +31 -0
  1584. package/presets/zcode/next/rules/preset-layering.md +27 -0
  1585. package/presets/zcode/next/rules/preset-no-cross-stack-leakage.md +89 -0
  1586. package/presets/zcode/next/rules/preset-pr-checklist.md +45 -0
  1587. package/presets/zcode/next/rules/preset-token-budget.md +38 -0
  1588. package/presets/zcode/next/rules/preset-twin-sync.md +41 -0
  1589. package/presets/zcode/next/rules/preset-writing-style.md +42 -0
  1590. package/presets/zcode/next/rules/product-specs-authoring.md +119 -0
  1591. package/presets/zcode/next/rules/product-specs.md +63 -0
  1592. package/presets/zcode/next/rules/public-imports.md +50 -0
  1593. package/presets/zcode/next/rules/react-a11y-coding.md +32 -0
  1594. package/presets/zcode/next/rules/react-next-anti-hallucination.md +75 -0
  1595. package/presets/zcode/next/rules/react-ui.md +154 -0
  1596. package/presets/zcode/next/rules/reference-features.md +86 -0
  1597. package/presets/zcode/next/rules/security-next.md +91 -0
  1598. package/presets/zcode/next/rules/store-rtk.md +85 -0
  1599. package/presets/zcode/next/rules/technical-retro.md +13 -0
  1600. package/presets/zcode/next/rules/tests-e2e-structure.md +87 -0
  1601. package/presets/zcode/next/rules/tests-unit.md +105 -0
  1602. package/presets/zcode/next/rules/types-jsdoc.md +40 -0
  1603. package/presets/zcode/next/rules/ux-design.md +103 -0
  1604. package/presets/zcode/next/skills/README.md +22 -0
  1605. package/presets/zcode/next/skills/ci-investigation/SKILL.md +50 -0
  1606. package/presets/zcode/next/skills/code-review/SKILL.md +61 -0
  1607. package/presets/zcode/next/skills/debug-investigation/SKILL.md +64 -0
  1608. package/presets/zcode/next/skills/feature-delivery/SKILL.md +45 -0
  1609. package/presets/zcode/next/skills/figma-fidelity/SKILL.md +128 -0
  1610. package/presets/zcode/next/skills/mockup-review/SKILL.md +40 -0
  1611. package/presets/zcode/next/skills/playwright-e2e/SKILL.md +39 -0
  1612. package/presets/zcode/next/skills/react-performance/SKILL.md +49 -0
  1613. package/presets/zcode/next/skills/spec-authoring/SKILL.md +31 -0
  1614. package/presets/zcode/next/skills/spec-discovery/SKILL.md +63 -0
  1615. package/presets/zcode/next/skills/technical-retro/SKILL.md +72 -0
  1616. package/presets/zcode/next/skills/unit-testing/SKILL.md +40 -0
  1617. package/presets/zcode/next/skills/ux-design/SKILL.md +41 -0
  1618. package/presets/zcode/next/skills/write-adr/SKILL.md +46 -0
  1619. package/presets/zcode/next/team/README.md +135 -0
  1620. package/presets/zcode/next/team/fixtures/artifact-manifest.example.json +80 -0
  1621. package/presets/zcode/next/team/fixtures/bugfix-standard.json +25 -0
  1622. package/presets/zcode/next/team/fixtures/feature-full.json +29 -0
  1623. package/presets/zcode/next/team/fixtures/feature-light.json +28 -0
  1624. package/presets/zcode/next/team/fixtures/feature-parallel.json +84 -0
  1625. package/presets/zcode/next/team/fixtures/feature-ui-standard.json +24 -0
  1626. package/presets/zcode/next/team/fixtures/feature-with-figma-url.json +27 -0
  1627. package/presets/zcode/next/team/fixtures/feature-with-ux-no-figma.json +26 -0
  1628. package/presets/zcode/next/team/fixtures/memlog.example.md +9 -0
  1629. package/presets/zcode/next/team/fixtures/metrics-scenarios/tasks/human-gate/metrics.json +69 -0
  1630. package/presets/zcode/next/team/fixtures/metrics-scenarios/tasks/missing-ledger/status.json +5 -0
  1631. package/presets/zcode/next/team/fixtures/metrics-scenarios/tasks/parallel-receipts/metrics.json +79 -0
  1632. package/presets/zcode/next/team/fixtures/metrics-scenarios/tasks/serial-retry/metrics.json +124 -0
  1633. package/presets/zcode/next/team/fixtures/metrics-scenarios/tasks/validation-failed/metrics.json +124 -0
  1634. package/presets/zcode/next/team/fixtures/metrics.example.json +54 -0
  1635. package/presets/zcode/next/team/fixtures/mockup-review-fail-embedded-status.json +8 -0
  1636. package/presets/zcode/next/team/fixtures/mockup-review-standalone.json +23 -0
  1637. package/presets/zcode/next/team/fixtures/ux-design-standalone.json +24 -0
  1638. package/presets/zcode/next/team/tasks/.gitkeep +0 -0
  1639. package/presets/zcode/nuxt/MCP.md +36 -0
  1640. package/presets/zcode/nuxt/README.md +20 -0
  1641. package/presets/zcode/nuxt/REPO_AGENTS.md +101 -0
  1642. package/presets/zcode/nuxt/adapter-map.json +1065 -0
  1643. package/presets/zcode/nuxt/agents/README.md +107 -0
  1644. package/presets/zcode/nuxt/agents/accessibility-reviewer.md +91 -0
  1645. package/presets/zcode/nuxt/agents/api-contract-reviewer.md +89 -0
  1646. package/presets/zcode/nuxt/agents/build-verifier.md +106 -0
  1647. package/presets/zcode/nuxt/agents/ci-investigator.md +109 -0
  1648. package/presets/zcode/nuxt/agents/code-reviewer.md +124 -0
  1649. package/presets/zcode/nuxt/agents/codebase-analyzer.md +51 -0
  1650. package/presets/zcode/nuxt/agents/debugger.md +140 -0
  1651. package/presets/zcode/nuxt/agents/feature-developer.md +161 -0
  1652. package/presets/zcode/nuxt/agents/migration-specialist.md +97 -0
  1653. package/presets/zcode/nuxt/agents/mockup-reviewer.md +83 -0
  1654. package/presets/zcode/nuxt/agents/openspec-author.md +187 -0
  1655. package/presets/zcode/nuxt/agents/performance-auditor.md +98 -0
  1656. package/presets/zcode/nuxt/agents/playwright-test-generator.md +60 -0
  1657. package/presets/zcode/nuxt/agents/playwright-test-healer.md +60 -0
  1658. package/presets/zcode/nuxt/agents/playwright-test-planner.md +55 -0
  1659. package/presets/zcode/nuxt/agents/qa-tester.md +85 -0
  1660. package/presets/zcode/nuxt/agents/security-reviewer.md +84 -0
  1661. package/presets/zcode/nuxt/agents/solution-architect.md +98 -0
  1662. package/presets/zcode/nuxt/agents/task-analyst.md +239 -0
  1663. package/presets/zcode/nuxt/agents/task-router.md +226 -0
  1664. package/presets/zcode/nuxt/agents/tech-writer.md +87 -0
  1665. package/presets/zcode/nuxt/agents/unit-test-generator.md +62 -0
  1666. package/presets/zcode/nuxt/agents/unit-test-healer.md +63 -0
  1667. package/presets/zcode/nuxt/agents/unit-test-planner.md +87 -0
  1668. package/presets/zcode/nuxt/ai-local/conventions.md +29 -0
  1669. package/presets/zcode/nuxt/commands/README.md +51 -0
  1670. package/presets/zcode/nuxt/commands/migrate-tasks.md +44 -0
  1671. package/presets/zcode/nuxt/commands/spec-start.md +32 -0
  1672. package/presets/zcode/nuxt/commands/task-continue.md +75 -0
  1673. package/presets/zcode/nuxt/commands/task.md +76 -0
  1674. package/presets/zcode/nuxt/commands/technical-retro.md +96 -0
  1675. package/presets/zcode/nuxt/commands/update.md +43 -0
  1676. package/presets/zcode/nuxt/hooks/README.md +31 -0
  1677. package/presets/zcode/nuxt/hooks/chain-team-phases.sh +2766 -0
  1678. package/presets/zcode/nuxt/hooks/check-preset-update.mjs +232 -0
  1679. package/presets/zcode/nuxt/hooks/list-ai-local.mjs +299 -0
  1680. package/presets/zcode/nuxt/mcp.json +19 -0
  1681. package/presets/zcode/nuxt/rules/README.md +25 -0
  1682. package/presets/zcode/nuxt/rules/agent-team-intake.md +14 -0
  1683. package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +282 -0
  1684. package/presets/zcode/nuxt/rules/ai-local-overlay.md +18 -0
  1685. package/presets/zcode/nuxt/rules/anti-hallucination-contract.md +37 -0
  1686. package/presets/zcode/nuxt/rules/anti-sycophancy-discipline.md +23 -0
  1687. package/presets/zcode/nuxt/rules/api-services.md +72 -0
  1688. package/presets/zcode/nuxt/rules/architecture-boundaries-ui.md +9 -0
  1689. package/presets/zcode/nuxt/rules/architecture-boundaries.md +90 -0
  1690. package/presets/zcode/nuxt/rules/code-quality-and-refactoring.md +76 -0
  1691. package/presets/zcode/nuxt/rules/code-review-mr.md +84 -0
  1692. package/presets/zcode/nuxt/rules/css-property-order-stylelint.md +14 -0
  1693. package/presets/zcode/nuxt/rules/design-guidance.md +104 -0
  1694. package/presets/zcode/nuxt/rules/feature-delivery-workflow.md +145 -0
  1695. package/presets/zcode/nuxt/rules/http-client.md +9 -0
  1696. package/presets/zcode/nuxt/rules/interactive-questions.md +29 -0
  1697. package/presets/zcode/nuxt/rules/language-policy.md +51 -0
  1698. package/presets/zcode/nuxt/rules/layer-barrel-exports.md +67 -0
  1699. package/presets/zcode/nuxt/rules/mcp-usage.md +95 -0
  1700. package/presets/zcode/nuxt/rules/mockup-review.md +171 -0
  1701. package/presets/zcode/nuxt/rules/navigation-router-stack.md +55 -0
  1702. package/presets/zcode/nuxt/rules/navigation-router-ui.md +10 -0
  1703. package/presets/zcode/nuxt/rules/no-type-assertion-as-import-export.md +51 -0
  1704. package/presets/zcode/nuxt/rules/no-v-bind-spread.md +7 -0
  1705. package/presets/zcode/nuxt/rules/nuxt-app-core.md +44 -0
  1706. package/presets/zcode/nuxt/rules/nuxt-pages-routing.md +31 -0
  1707. package/presets/zcode/nuxt/rules/package-manager.md +13 -0
  1708. package/presets/zcode/nuxt/rules/playwright-agents.md +74 -0
  1709. package/presets/zcode/nuxt/rules/post-change-lint.md +37 -0
  1710. package/presets/zcode/nuxt/rules/preset-goals.md +31 -0
  1711. package/presets/zcode/nuxt/rules/preset-layering.md +27 -0
  1712. package/presets/zcode/nuxt/rules/preset-no-cross-stack-leakage.md +89 -0
  1713. package/presets/zcode/nuxt/rules/preset-pr-checklist.md +45 -0
  1714. package/presets/zcode/nuxt/rules/preset-token-budget.md +38 -0
  1715. package/presets/zcode/nuxt/rules/preset-twin-sync.md +41 -0
  1716. package/presets/zcode/nuxt/rules/preset-writing-style.md +42 -0
  1717. package/presets/zcode/nuxt/rules/product-specs-authoring.md +118 -0
  1718. package/presets/zcode/nuxt/rules/product-specs.md +61 -0
  1719. package/presets/zcode/nuxt/rules/public-imports.md +50 -0
  1720. package/presets/zcode/nuxt/rules/reference-features.md +81 -0
  1721. package/presets/zcode/nuxt/rules/script-setup-conventions.md +7 -0
  1722. package/presets/zcode/nuxt/rules/security-nuxt.md +28 -0
  1723. package/presets/zcode/nuxt/rules/store-pinia.md +61 -0
  1724. package/presets/zcode/nuxt/rules/technical-retro.md +13 -0
  1725. package/presets/zcode/nuxt/rules/tests-e2e-structure.md +87 -0
  1726. package/presets/zcode/nuxt/rules/tests-unit.md +82 -0
  1727. package/presets/zcode/nuxt/rules/types-jsdoc.md +40 -0
  1728. package/presets/zcode/nuxt/rules/ux-design.md +103 -0
  1729. package/presets/zcode/nuxt/rules/vue-a11y-coding.md +9 -0
  1730. package/presets/zcode/nuxt/rules/vue-nuxt-anti-hallucination.md +65 -0
  1731. package/presets/zcode/nuxt/rules/vue-ui.md +34 -0
  1732. package/presets/zcode/nuxt/skills/README.md +21 -0
  1733. package/presets/zcode/nuxt/skills/ci-investigation/SKILL.md +50 -0
  1734. package/presets/zcode/nuxt/skills/code-review/SKILL.md +60 -0
  1735. package/presets/zcode/nuxt/skills/debug-investigation/SKILL.md +64 -0
  1736. package/presets/zcode/nuxt/skills/feature-delivery/SKILL.md +52 -0
  1737. package/presets/zcode/nuxt/skills/mockup-review/SKILL.md +34 -0
  1738. package/presets/zcode/nuxt/skills/playwright-e2e/SKILL.md +43 -0
  1739. package/presets/zcode/nuxt/skills/spec-authoring/SKILL.md +31 -0
  1740. package/presets/zcode/nuxt/skills/spec-discovery/SKILL.md +63 -0
  1741. package/presets/zcode/nuxt/skills/technical-retro/SKILL.md +72 -0
  1742. package/presets/zcode/nuxt/skills/unit-testing/SKILL.md +38 -0
  1743. package/presets/zcode/nuxt/skills/ux-design/SKILL.md +41 -0
  1744. package/presets/zcode/nuxt/skills/vue-performance/SKILL.md +58 -0
  1745. package/presets/zcode/nuxt/skills/write-adr/SKILL.md +46 -0
  1746. package/presets/zcode/nuxt/team/README.md +123 -0
  1747. package/presets/zcode/nuxt/team/fixtures/artifact-manifest.example.json +80 -0
  1748. package/presets/zcode/nuxt/team/fixtures/bugfix-standard.json +25 -0
  1749. package/presets/zcode/nuxt/team/fixtures/feature-full.json +62 -0
  1750. package/presets/zcode/nuxt/team/fixtures/feature-light.json +27 -0
  1751. package/presets/zcode/nuxt/team/fixtures/feature-with-figma-url.json +17 -0
  1752. package/presets/zcode/nuxt/team/fixtures/feature-with-ux-no-figma.json +17 -0
  1753. package/presets/zcode/nuxt/team/fixtures/memlog.example.md +9 -0
  1754. package/presets/zcode/nuxt/team/fixtures/metrics-scenarios/tasks/human-gate/metrics.json +69 -0
  1755. package/presets/zcode/nuxt/team/fixtures/metrics-scenarios/tasks/missing-ledger/status.json +5 -0
  1756. package/presets/zcode/nuxt/team/fixtures/metrics-scenarios/tasks/parallel-receipts/metrics.json +79 -0
  1757. package/presets/zcode/nuxt/team/fixtures/metrics-scenarios/tasks/serial-retry/metrics.json +124 -0
  1758. package/presets/zcode/nuxt/team/fixtures/metrics-scenarios/tasks/validation-failed/metrics.json +124 -0
  1759. package/presets/zcode/nuxt/team/fixtures/metrics.example.json +54 -0
  1760. package/presets/zcode/nuxt/team/fixtures/mockup-review-fail-embedded-status.json +8 -0
  1761. package/presets/zcode/nuxt/team/fixtures/mockup-review-standalone.json +14 -0
  1762. package/presets/zcode/nuxt/team/fixtures/ux-design-standalone.json +15 -0
  1763. package/presets/zcode/nuxt/team/tasks/.gitkeep +0 -0
  1764. package/presets/zcode/php-hexagonal/MCP.md +34 -0
  1765. package/presets/zcode/php-hexagonal/README.md +20 -0
  1766. package/presets/zcode/php-hexagonal/REPO_AGENTS.md +99 -0
  1767. package/presets/zcode/php-hexagonal/adapter-map.json +864 -0
  1768. package/presets/zcode/php-hexagonal/agents/README.md +55 -0
  1769. package/presets/zcode/php-hexagonal/agents/api-contract-reviewer.md +47 -0
  1770. package/presets/zcode/php-hexagonal/agents/build-verifier.md +72 -0
  1771. package/presets/zcode/php-hexagonal/agents/ci-investigator.md +66 -0
  1772. package/presets/zcode/php-hexagonal/agents/code-reviewer.md +128 -0
  1773. package/presets/zcode/php-hexagonal/agents/codebase-analyzer.md +49 -0
  1774. package/presets/zcode/php-hexagonal/agents/debugger.md +98 -0
  1775. package/presets/zcode/php-hexagonal/agents/feature-developer.md +144 -0
  1776. package/presets/zcode/php-hexagonal/agents/integration-test-generator.md +46 -0
  1777. package/presets/zcode/php-hexagonal/agents/integration-test-healer.md +46 -0
  1778. package/presets/zcode/php-hexagonal/agents/integration-test-planner.md +48 -0
  1779. package/presets/zcode/php-hexagonal/agents/migration-specialist.md +59 -0
  1780. package/presets/zcode/php-hexagonal/agents/openspec-author.md +185 -0
  1781. package/presets/zcode/php-hexagonal/agents/performance-auditor.md +50 -0
  1782. package/presets/zcode/php-hexagonal/agents/qa-tester.md +53 -0
  1783. package/presets/zcode/php-hexagonal/agents/security-reviewer.md +42 -0
  1784. package/presets/zcode/php-hexagonal/agents/solution-architect.md +56 -0
  1785. package/presets/zcode/php-hexagonal/agents/task-analyst.md +131 -0
  1786. package/presets/zcode/php-hexagonal/agents/task-router.md +179 -0
  1787. package/presets/zcode/php-hexagonal/agents/tech-writer.md +45 -0
  1788. package/presets/zcode/php-hexagonal/agents/unit-test-generator.md +44 -0
  1789. package/presets/zcode/php-hexagonal/agents/unit-test-healer.md +36 -0
  1790. package/presets/zcode/php-hexagonal/agents/unit-test-planner.md +51 -0
  1791. package/presets/zcode/php-hexagonal/ai-local/conventions.md +29 -0
  1792. package/presets/zcode/php-hexagonal/commands/README.md +54 -0
  1793. package/presets/zcode/php-hexagonal/commands/migrate-tasks.md +44 -0
  1794. package/presets/zcode/php-hexagonal/commands/spec-start.md +32 -0
  1795. package/presets/zcode/php-hexagonal/commands/task-continue.md +73 -0
  1796. package/presets/zcode/php-hexagonal/commands/task.md +74 -0
  1797. package/presets/zcode/php-hexagonal/commands/technical-retro.md +96 -0
  1798. package/presets/zcode/php-hexagonal/commands/update.md +43 -0
  1799. package/presets/zcode/php-hexagonal/hooks/README.md +31 -0
  1800. package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +2764 -0
  1801. package/presets/zcode/php-hexagonal/hooks/check-preset-update.mjs +232 -0
  1802. package/presets/zcode/php-hexagonal/hooks/list-ai-local.mjs +299 -0
  1803. package/presets/zcode/php-hexagonal/mcp.json +11 -0
  1804. package/presets/zcode/php-hexagonal/rules/README.md +25 -0
  1805. package/presets/zcode/php-hexagonal/rules/adapters-driven.md +30 -0
  1806. package/presets/zcode/php-hexagonal/rules/adapters-driving.md +30 -0
  1807. package/presets/zcode/php-hexagonal/rules/agent-team-intake.md +18 -0
  1808. package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +282 -0
  1809. package/presets/zcode/php-hexagonal/rules/ai-local-overlay.md +18 -0
  1810. package/presets/zcode/php-hexagonal/rules/anti-hallucination-contract.md +37 -0
  1811. package/presets/zcode/php-hexagonal/rules/anti-sycophancy-discipline.md +23 -0
  1812. package/presets/zcode/php-hexagonal/rules/api-grpc.md +22 -0
  1813. package/presets/zcode/php-hexagonal/rules/api-http.md +28 -0
  1814. package/presets/zcode/php-hexagonal/rules/application-usecases.md +25 -0
  1815. package/presets/zcode/php-hexagonal/rules/architecture-boundaries.md +31 -0
  1816. package/presets/zcode/php-hexagonal/rules/code-quality-and-refactoring.md +78 -0
  1817. package/presets/zcode/php-hexagonal/rules/code-review-mr.md +79 -0
  1818. package/presets/zcode/php-hexagonal/rules/composition-root.md +27 -0
  1819. package/presets/zcode/php-hexagonal/rules/design-guidance.md +105 -0
  1820. package/presets/zcode/php-hexagonal/rules/domain-layer.md +31 -0
  1821. package/presets/zcode/php-hexagonal/rules/feature-delivery-workflow.md +59 -0
  1822. package/presets/zcode/php-hexagonal/rules/interactive-questions.md +29 -0
  1823. package/presets/zcode/php-hexagonal/rules/language-policy.md +51 -0
  1824. package/presets/zcode/php-hexagonal/rules/mcp-usage.md +92 -0
  1825. package/presets/zcode/php-hexagonal/rules/messaging-adapters.md +29 -0
  1826. package/presets/zcode/php-hexagonal/rules/module-public-api.md +24 -0
  1827. package/presets/zcode/php-hexagonal/rules/persistence-adapters.md +25 -0
  1828. package/presets/zcode/php-hexagonal/rules/php-app-core.md +36 -0
  1829. package/presets/zcode/php-hexagonal/rules/php-conventions.md +47 -0
  1830. package/presets/zcode/php-hexagonal/rules/php-hexagonal-anti-hallucination.md +27 -0
  1831. package/presets/zcode/php-hexagonal/rules/php-tooling.md +26 -0
  1832. package/presets/zcode/php-hexagonal/rules/ports-interfaces.md +27 -0
  1833. package/presets/zcode/php-hexagonal/rules/post-change-test.md +20 -0
  1834. package/presets/zcode/php-hexagonal/rules/preset-goals.md +31 -0
  1835. package/presets/zcode/php-hexagonal/rules/preset-layering.md +27 -0
  1836. package/presets/zcode/php-hexagonal/rules/preset-no-cross-stack-leakage.md +89 -0
  1837. package/presets/zcode/php-hexagonal/rules/preset-pr-checklist.md +45 -0
  1838. package/presets/zcode/php-hexagonal/rules/preset-token-budget.md +38 -0
  1839. package/presets/zcode/php-hexagonal/rules/preset-twin-sync.md +41 -0
  1840. package/presets/zcode/php-hexagonal/rules/preset-writing-style.md +42 -0
  1841. package/presets/zcode/php-hexagonal/rules/product-specs-authoring.md +118 -0
  1842. package/presets/zcode/php-hexagonal/rules/product-specs.md +62 -0
  1843. package/presets/zcode/php-hexagonal/rules/reference-features.md +45 -0
  1844. package/presets/zcode/php-hexagonal/rules/security-php.md +21 -0
  1845. package/presets/zcode/php-hexagonal/rules/technical-retro.md +13 -0
  1846. package/presets/zcode/php-hexagonal/rules/tests-e2e.md +26 -0
  1847. package/presets/zcode/php-hexagonal/rules/tests-integration.md +23 -0
  1848. package/presets/zcode/php-hexagonal/rules/tests-unit.md +25 -0
  1849. package/presets/zcode/php-hexagonal/skills/README.md +5 -0
  1850. package/presets/zcode/php-hexagonal/skills/ci-investigation/SKILL.md +24 -0
  1851. package/presets/zcode/php-hexagonal/skills/code-review/SKILL.md +47 -0
  1852. package/presets/zcode/php-hexagonal/skills/debug-investigation/SKILL.md +55 -0
  1853. package/presets/zcode/php-hexagonal/skills/feature-delivery/SKILL.md +43 -0
  1854. package/presets/zcode/php-hexagonal/skills/integration-testing/SKILL.md +21 -0
  1855. package/presets/zcode/php-hexagonal/skills/spec-authoring/SKILL.md +31 -0
  1856. package/presets/zcode/php-hexagonal/skills/spec-discovery/SKILL.md +63 -0
  1857. package/presets/zcode/php-hexagonal/skills/technical-retro/SKILL.md +72 -0
  1858. package/presets/zcode/php-hexagonal/skills/unit-testing/SKILL.md +20 -0
  1859. package/presets/zcode/php-hexagonal/skills/write-adr/SKILL.md +46 -0
  1860. package/presets/zcode/php-hexagonal/team/README.md +123 -0
  1861. package/presets/zcode/php-hexagonal/team/fixtures/bugfix-standard.json +37 -0
  1862. package/presets/zcode/php-hexagonal/team/fixtures/feature-full.json +61 -0
  1863. package/presets/zcode/php-hexagonal/team/fixtures/feature-light.json +17 -0
  1864. package/presets/zcode/php-hexagonal/team/fixtures/memlog.example.md +9 -0
  1865. package/presets/zcode/php-laravel/MCP.md +26 -0
  1866. package/presets/zcode/php-laravel/README.md +20 -0
  1867. package/presets/zcode/php-laravel/REPO_AGENTS.md +100 -0
  1868. package/presets/zcode/php-laravel/adapter-map.json +864 -0
  1869. package/presets/zcode/php-laravel/agents/README.md +55 -0
  1870. package/presets/zcode/php-laravel/agents/api-contract-reviewer.md +48 -0
  1871. package/presets/zcode/php-laravel/agents/build-verifier.md +72 -0
  1872. package/presets/zcode/php-laravel/agents/ci-investigator.md +66 -0
  1873. package/presets/zcode/php-laravel/agents/code-reviewer.md +128 -0
  1874. package/presets/zcode/php-laravel/agents/codebase-analyzer.md +49 -0
  1875. package/presets/zcode/php-laravel/agents/debugger.md +98 -0
  1876. package/presets/zcode/php-laravel/agents/feature-developer.md +144 -0
  1877. package/presets/zcode/php-laravel/agents/integration-test-generator.md +46 -0
  1878. package/presets/zcode/php-laravel/agents/integration-test-healer.md +46 -0
  1879. package/presets/zcode/php-laravel/agents/integration-test-planner.md +48 -0
  1880. package/presets/zcode/php-laravel/agents/migration-specialist.md +59 -0
  1881. package/presets/zcode/php-laravel/agents/openspec-author.md +185 -0
  1882. package/presets/zcode/php-laravel/agents/performance-auditor.md +50 -0
  1883. package/presets/zcode/php-laravel/agents/qa-tester.md +59 -0
  1884. package/presets/zcode/php-laravel/agents/security-reviewer.md +54 -0
  1885. package/presets/zcode/php-laravel/agents/solution-architect.md +57 -0
  1886. package/presets/zcode/php-laravel/agents/task-analyst.md +131 -0
  1887. package/presets/zcode/php-laravel/agents/task-router.md +195 -0
  1888. package/presets/zcode/php-laravel/agents/tech-writer.md +45 -0
  1889. package/presets/zcode/php-laravel/agents/unit-test-generator.md +44 -0
  1890. package/presets/zcode/php-laravel/agents/unit-test-healer.md +36 -0
  1891. package/presets/zcode/php-laravel/agents/unit-test-planner.md +51 -0
  1892. package/presets/zcode/php-laravel/ai-local/conventions.md +29 -0
  1893. package/presets/zcode/php-laravel/commands/README.md +54 -0
  1894. package/presets/zcode/php-laravel/commands/migrate-tasks.md +44 -0
  1895. package/presets/zcode/php-laravel/commands/spec-start.md +32 -0
  1896. package/presets/zcode/php-laravel/commands/task-continue.md +73 -0
  1897. package/presets/zcode/php-laravel/commands/task.md +74 -0
  1898. package/presets/zcode/php-laravel/commands/technical-retro.md +96 -0
  1899. package/presets/zcode/php-laravel/commands/update.md +43 -0
  1900. package/presets/zcode/php-laravel/hooks/README.md +31 -0
  1901. package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +2764 -0
  1902. package/presets/zcode/php-laravel/hooks/check-preset-update.mjs +232 -0
  1903. package/presets/zcode/php-laravel/hooks/list-ai-local.mjs +299 -0
  1904. package/presets/zcode/php-laravel/mcp.json +11 -0
  1905. package/presets/zcode/php-laravel/rules/README.md +25 -0
  1906. package/presets/zcode/php-laravel/rules/actions-services.md +25 -0
  1907. package/presets/zcode/php-laravel/rules/agent-team-intake.md +18 -0
  1908. package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +282 -0
  1909. package/presets/zcode/php-laravel/rules/ai-local-overlay.md +18 -0
  1910. package/presets/zcode/php-laravel/rules/anti-hallucination-contract.md +37 -0
  1911. package/presets/zcode/php-laravel/rules/anti-sycophancy-discipline.md +23 -0
  1912. package/presets/zcode/php-laravel/rules/architecture-boundaries.md +32 -0
  1913. package/presets/zcode/php-laravel/rules/code-quality-and-refactoring.md +78 -0
  1914. package/presets/zcode/php-laravel/rules/code-review-mr.md +80 -0
  1915. package/presets/zcode/php-laravel/rules/design-guidance.md +105 -0
  1916. package/presets/zcode/php-laravel/rules/domain-layer.md +19 -0
  1917. package/presets/zcode/php-laravel/rules/eloquent-persistence.md +24 -0
  1918. package/presets/zcode/php-laravel/rules/events-listeners.md +24 -0
  1919. package/presets/zcode/php-laravel/rules/feature-delivery-workflow.md +59 -0
  1920. package/presets/zcode/php-laravel/rules/form-requests.md +24 -0
  1921. package/presets/zcode/php-laravel/rules/http-layer.md +25 -0
  1922. package/presets/zcode/php-laravel/rules/interactive-questions.md +29 -0
  1923. package/presets/zcode/php-laravel/rules/jobs-queues.md +36 -0
  1924. package/presets/zcode/php-laravel/rules/language-policy.md +51 -0
  1925. package/presets/zcode/php-laravel/rules/laravel-anti-hallucination.md +27 -0
  1926. package/presets/zcode/php-laravel/rules/laravel-app-core.md +34 -0
  1927. package/presets/zcode/php-laravel/rules/laravel-conventions.md +34 -0
  1928. package/presets/zcode/php-laravel/rules/mcp-usage.md +92 -0
  1929. package/presets/zcode/php-laravel/rules/module-public-api.md +23 -0
  1930. package/presets/zcode/php-laravel/rules/php-tooling.md +26 -0
  1931. package/presets/zcode/php-laravel/rules/policies-authorization.md +24 -0
  1932. package/presets/zcode/php-laravel/rules/post-change-test.md +20 -0
  1933. package/presets/zcode/php-laravel/rules/preset-goals.md +31 -0
  1934. package/presets/zcode/php-laravel/rules/preset-layering.md +27 -0
  1935. package/presets/zcode/php-laravel/rules/preset-no-cross-stack-leakage.md +89 -0
  1936. package/presets/zcode/php-laravel/rules/preset-pr-checklist.md +45 -0
  1937. package/presets/zcode/php-laravel/rules/preset-token-budget.md +38 -0
  1938. package/presets/zcode/php-laravel/rules/preset-twin-sync.md +41 -0
  1939. package/presets/zcode/php-laravel/rules/preset-writing-style.md +42 -0
  1940. package/presets/zcode/php-laravel/rules/product-specs-authoring.md +118 -0
  1941. package/presets/zcode/php-laravel/rules/product-specs.md +62 -0
  1942. package/presets/zcode/php-laravel/rules/reference-features.md +45 -0
  1943. package/presets/zcode/php-laravel/rules/routes-api.md +24 -0
  1944. package/presets/zcode/php-laravel/rules/security-php.md +47 -0
  1945. package/presets/zcode/php-laravel/rules/service-providers.md +23 -0
  1946. package/presets/zcode/php-laravel/rules/technical-retro.md +13 -0
  1947. package/presets/zcode/php-laravel/rules/tests-e2e.md +26 -0
  1948. package/presets/zcode/php-laravel/rules/tests-integration.md +23 -0
  1949. package/presets/zcode/php-laravel/rules/tests-unit.md +24 -0
  1950. package/presets/zcode/php-laravel/skills/README.md +5 -0
  1951. package/presets/zcode/php-laravel/skills/ci-investigation/SKILL.md +24 -0
  1952. package/presets/zcode/php-laravel/skills/code-review/SKILL.md +47 -0
  1953. package/presets/zcode/php-laravel/skills/debug-investigation/SKILL.md +55 -0
  1954. package/presets/zcode/php-laravel/skills/feature-delivery/SKILL.md +43 -0
  1955. package/presets/zcode/php-laravel/skills/integration-testing/SKILL.md +21 -0
  1956. package/presets/zcode/php-laravel/skills/spec-authoring/SKILL.md +31 -0
  1957. package/presets/zcode/php-laravel/skills/spec-discovery/SKILL.md +63 -0
  1958. package/presets/zcode/php-laravel/skills/technical-retro/SKILL.md +72 -0
  1959. package/presets/zcode/php-laravel/skills/unit-testing/SKILL.md +20 -0
  1960. package/presets/zcode/php-laravel/skills/write-adr/SKILL.md +46 -0
  1961. package/presets/zcode/php-laravel/team/README.md +123 -0
  1962. package/presets/zcode/php-laravel/team/fixtures/bugfix-standard.json +12 -0
  1963. package/presets/zcode/php-laravel/team/fixtures/feature-full.json +44 -0
  1964. package/presets/zcode/php-laravel/team/fixtures/feature-light.json +8 -0
  1965. package/presets/zcode/php-laravel/team/fixtures/memlog.example.md +9 -0
  1966. package/presets/zcode/platform-contract.json +135 -0
  1967. package/presets/zcode/svelte/MCP.md +36 -0
  1968. package/presets/zcode/svelte/README.md +20 -0
  1969. package/presets/zcode/svelte/REPO_AGENTS.md +101 -0
  1970. package/presets/zcode/svelte/adapter-map.json +1065 -0
  1971. package/presets/zcode/svelte/agents/README.md +107 -0
  1972. package/presets/zcode/svelte/agents/accessibility-reviewer.md +91 -0
  1973. package/presets/zcode/svelte/agents/api-contract-reviewer.md +89 -0
  1974. package/presets/zcode/svelte/agents/build-verifier.md +106 -0
  1975. package/presets/zcode/svelte/agents/ci-investigator.md +109 -0
  1976. package/presets/zcode/svelte/agents/code-reviewer.md +124 -0
  1977. package/presets/zcode/svelte/agents/codebase-analyzer.md +51 -0
  1978. package/presets/zcode/svelte/agents/debugger.md +140 -0
  1979. package/presets/zcode/svelte/agents/feature-developer.md +161 -0
  1980. package/presets/zcode/svelte/agents/migration-specialist.md +97 -0
  1981. package/presets/zcode/svelte/agents/mockup-reviewer.md +83 -0
  1982. package/presets/zcode/svelte/agents/openspec-author.md +187 -0
  1983. package/presets/zcode/svelte/agents/performance-auditor.md +98 -0
  1984. package/presets/zcode/svelte/agents/playwright-test-generator.md +60 -0
  1985. package/presets/zcode/svelte/agents/playwright-test-healer.md +60 -0
  1986. package/presets/zcode/svelte/agents/playwright-test-planner.md +55 -0
  1987. package/presets/zcode/svelte/agents/qa-tester.md +85 -0
  1988. package/presets/zcode/svelte/agents/security-reviewer.md +84 -0
  1989. package/presets/zcode/svelte/agents/solution-architect.md +98 -0
  1990. package/presets/zcode/svelte/agents/task-analyst.md +239 -0
  1991. package/presets/zcode/svelte/agents/task-router.md +226 -0
  1992. package/presets/zcode/svelte/agents/tech-writer.md +87 -0
  1993. package/presets/zcode/svelte/agents/unit-test-generator.md +62 -0
  1994. package/presets/zcode/svelte/agents/unit-test-healer.md +63 -0
  1995. package/presets/zcode/svelte/agents/unit-test-planner.md +87 -0
  1996. package/presets/zcode/svelte/ai-local/conventions.md +29 -0
  1997. package/presets/zcode/svelte/commands/README.md +51 -0
  1998. package/presets/zcode/svelte/commands/migrate-tasks.md +44 -0
  1999. package/presets/zcode/svelte/commands/spec-start.md +32 -0
  2000. package/presets/zcode/svelte/commands/task-continue.md +75 -0
  2001. package/presets/zcode/svelte/commands/task.md +76 -0
  2002. package/presets/zcode/svelte/commands/technical-retro.md +96 -0
  2003. package/presets/zcode/svelte/commands/update.md +43 -0
  2004. package/presets/zcode/svelte/hooks/README.md +31 -0
  2005. package/presets/zcode/svelte/hooks/chain-team-phases.sh +2766 -0
  2006. package/presets/zcode/svelte/hooks/check-preset-update.mjs +232 -0
  2007. package/presets/zcode/svelte/hooks/list-ai-local.mjs +299 -0
  2008. package/presets/zcode/svelte/mcp.json +19 -0
  2009. package/presets/zcode/svelte/rules/README.md +25 -0
  2010. package/presets/zcode/svelte/rules/agent-team-intake.md +14 -0
  2011. package/presets/zcode/svelte/rules/agent-team-orchestrator.md +282 -0
  2012. package/presets/zcode/svelte/rules/ai-local-overlay.md +18 -0
  2013. package/presets/zcode/svelte/rules/anti-hallucination-contract.md +37 -0
  2014. package/presets/zcode/svelte/rules/anti-sycophancy-discipline.md +23 -0
  2015. package/presets/zcode/svelte/rules/api-services.md +39 -0
  2016. package/presets/zcode/svelte/rules/architecture-boundaries-ui.md +9 -0
  2017. package/presets/zcode/svelte/rules/architecture-boundaries.md +54 -0
  2018. package/presets/zcode/svelte/rules/code-quality-and-refactoring.md +76 -0
  2019. package/presets/zcode/svelte/rules/code-review-mr.md +84 -0
  2020. package/presets/zcode/svelte/rules/css-property-order-stylelint.md +14 -0
  2021. package/presets/zcode/svelte/rules/design-guidance.md +104 -0
  2022. package/presets/zcode/svelte/rules/feature-delivery-workflow.md +117 -0
  2023. package/presets/zcode/svelte/rules/http-client.md +10 -0
  2024. package/presets/zcode/svelte/rules/interactive-questions.md +29 -0
  2025. package/presets/zcode/svelte/rules/language-policy.md +51 -0
  2026. package/presets/zcode/svelte/rules/layer-barrel-exports.md +67 -0
  2027. package/presets/zcode/svelte/rules/mcp-usage.md +95 -0
  2028. package/presets/zcode/svelte/rules/mockup-review.md +171 -0
  2029. package/presets/zcode/svelte/rules/navigation-router-stack.md +34 -0
  2030. package/presets/zcode/svelte/rules/navigation-router-ui.md +19 -0
  2031. package/presets/zcode/svelte/rules/no-rest-props-spread.md +26 -0
  2032. package/presets/zcode/svelte/rules/no-type-assertion-as-import-export.md +51 -0
  2033. package/presets/zcode/svelte/rules/package-manager.md +13 -0
  2034. package/presets/zcode/svelte/rules/playwright-agents.md +74 -0
  2035. package/presets/zcode/svelte/rules/post-change-lint.md +37 -0
  2036. package/presets/zcode/svelte/rules/preset-goals.md +31 -0
  2037. package/presets/zcode/svelte/rules/preset-layering.md +27 -0
  2038. package/presets/zcode/svelte/rules/preset-no-cross-stack-leakage.md +89 -0
  2039. package/presets/zcode/svelte/rules/preset-pr-checklist.md +45 -0
  2040. package/presets/zcode/svelte/rules/preset-token-budget.md +38 -0
  2041. package/presets/zcode/svelte/rules/preset-twin-sync.md +41 -0
  2042. package/presets/zcode/svelte/rules/preset-writing-style.md +42 -0
  2043. package/presets/zcode/svelte/rules/product-specs-authoring.md +118 -0
  2044. package/presets/zcode/svelte/rules/product-specs.md +61 -0
  2045. package/presets/zcode/svelte/rules/public-imports.md +32 -0
  2046. package/presets/zcode/svelte/rules/reference-features.md +82 -0
  2047. package/presets/zcode/svelte/rules/security-sveltekit.md +32 -0
  2048. package/presets/zcode/svelte/rules/store-svelte.md +59 -0
  2049. package/presets/zcode/svelte/rules/svelte-a11y-coding.md +21 -0
  2050. package/presets/zcode/svelte/rules/svelte-app-core.md +44 -0
  2051. package/presets/zcode/svelte/rules/svelte-script-conventions.md +27 -0
  2052. package/presets/zcode/svelte/rules/svelte-sveltekit-anti-hallucination.md +66 -0
  2053. package/presets/zcode/svelte/rules/svelte-ui.md +38 -0
  2054. package/presets/zcode/svelte/rules/sveltekit-routing.md +33 -0
  2055. package/presets/zcode/svelte/rules/technical-retro.md +13 -0
  2056. package/presets/zcode/svelte/rules/tests-e2e-structure.md +87 -0
  2057. package/presets/zcode/svelte/rules/tests-unit.md +82 -0
  2058. package/presets/zcode/svelte/rules/types-jsdoc.md +40 -0
  2059. package/presets/zcode/svelte/rules/ux-design.md +103 -0
  2060. package/presets/zcode/svelte/skills/README.md +21 -0
  2061. package/presets/zcode/svelte/skills/ci-investigation/SKILL.md +50 -0
  2062. package/presets/zcode/svelte/skills/code-review/SKILL.md +60 -0
  2063. package/presets/zcode/svelte/skills/debug-investigation/SKILL.md +64 -0
  2064. package/presets/zcode/svelte/skills/feature-delivery/SKILL.md +52 -0
  2065. package/presets/zcode/svelte/skills/mockup-review/SKILL.md +34 -0
  2066. package/presets/zcode/svelte/skills/playwright-e2e/SKILL.md +43 -0
  2067. package/presets/zcode/svelte/skills/spec-authoring/SKILL.md +31 -0
  2068. package/presets/zcode/svelte/skills/spec-discovery/SKILL.md +63 -0
  2069. package/presets/zcode/svelte/skills/svelte-performance/SKILL.md +57 -0
  2070. package/presets/zcode/svelte/skills/technical-retro/SKILL.md +72 -0
  2071. package/presets/zcode/svelte/skills/unit-testing/SKILL.md +38 -0
  2072. package/presets/zcode/svelte/skills/ux-design/SKILL.md +41 -0
  2073. package/presets/zcode/svelte/skills/write-adr/SKILL.md +46 -0
  2074. package/presets/zcode/svelte/team/README.md +123 -0
  2075. package/presets/zcode/svelte/team/fixtures/artifact-manifest.example.json +80 -0
  2076. package/presets/zcode/svelte/team/fixtures/bugfix-standard.json +25 -0
  2077. package/presets/zcode/svelte/team/fixtures/feature-full.json +62 -0
  2078. package/presets/zcode/svelte/team/fixtures/feature-light.json +27 -0
  2079. package/presets/zcode/svelte/team/fixtures/feature-with-figma-url.json +17 -0
  2080. package/presets/zcode/svelte/team/fixtures/feature-with-ux-no-figma.json +17 -0
  2081. package/presets/zcode/svelte/team/fixtures/memlog.example.md +9 -0
  2082. package/presets/zcode/svelte/team/fixtures/metrics-scenarios/tasks/human-gate/metrics.json +69 -0
  2083. package/presets/zcode/svelte/team/fixtures/metrics-scenarios/tasks/missing-ledger/status.json +5 -0
  2084. package/presets/zcode/svelte/team/fixtures/metrics-scenarios/tasks/parallel-receipts/metrics.json +79 -0
  2085. package/presets/zcode/svelte/team/fixtures/metrics-scenarios/tasks/serial-retry/metrics.json +124 -0
  2086. package/presets/zcode/svelte/team/fixtures/metrics-scenarios/tasks/validation-failed/metrics.json +124 -0
  2087. package/presets/zcode/svelte/team/fixtures/metrics.example.json +54 -0
  2088. package/presets/zcode/svelte/team/fixtures/mockup-review-fail-embedded-status.json +8 -0
  2089. package/presets/zcode/svelte/team/fixtures/mockup-review-standalone.json +14 -0
  2090. package/presets/zcode/svelte/team/fixtures/ux-design-standalone.json +15 -0
  2091. package/presets/zcode/svelte/team/tasks/.gitkeep +0 -0
@@ -33,7 +33,7 @@ Platform adapter → .mdc | .md + platform-only artifacts
33
33
  **Classification quick check:**
34
34
 
35
35
  - Applies to all stacks with only example differences → **core** + stack adapters.
36
- - Only one installable stack (`next` / `nuxt` / `svelte` / `ios-swift` / `android-kotlin` / `go` / `java` / `mcp-ts` / `php-hexagonal` / `php-laravel`) → **stack-specific** (never in `_shared`).
36
+ - Only one installable stack (`next` / `nuxt` / `svelte` / `mol` / `ios-swift` / `android-kotlin` / `go` / `java` / `mcp-ts` / `php-hexagonal` / `php-laravel`) → **stack-specific** (never in `_shared`).
37
37
  - Only Cursor or only Claude file shape → **platform** (do not duplicate semantics in the other platform).
38
38
 
39
39
  Meta-rules for **preset authors** live in `core/meta/` and are packaged into each stack with globs limited to `packages/ai-rules/presets/**` (never `alwaysApply` / session-start in consumer installs).
@@ -56,6 +56,7 @@ Twin-sync matrix:
56
56
  |-------|------------|---------------|---------------|
57
57
  | `next` | `presets/cursor/next/rules/*.mdc` | `presets/claude/next/rules/<topic>/` | Required in `claude/next/rules/README.md` |
58
58
  | `nuxt` | `presets/cursor/nuxt/rules/*.mdc` | `presets/claude/nuxt/rules/<topic>/` | Required in `claude/nuxt/rules/README.md` |
59
+ | `mol` | `presets/cursor/mol/rules/*.mdc` | `presets/claude/mol/rules/<topic>/` | Required in `claude/mol/rules/README.md` |
59
60
  | `svelte` | `presets/cursor/svelte/rules/*.mdc` | `presets/claude/svelte/rules/<topic>/` | Required in `claude/svelte/rules/README.md` |
60
61
  | `ios-swift` | `presets/cursor/ios-swift/rules/*.mdc` | `presets/claude/ios-swift/rules/<topic>/` | Required in `claude/ios-swift/rules/README.md` |
61
62
  | `go` | `presets/cursor/go/rules/*.mdc` | `presets/claude/go/rules/<topic>/` | Required in `claude/go/rules/README.md` |
@@ -156,7 +157,7 @@ Summary:
156
157
 
157
158
  - [ ] SoT: edits in `packages/…`, not only root `.cursor/`
158
159
  - [ ] Core: if `_shared/core/**` changed → all `shared-core` consumers updated (or fork documented)
159
- - [ ] Twin: Cursor change → Claude twin in **same PR** (**FAIL** if missing on next, nuxt, svelte, ios-swift, android-kotlin, go, java, mcp-ts, php-hexagonal, and php-laravel)
160
+ - [ ] Twin: Cursor change → Claude twin in **same PR** (**FAIL** if missing on next, nuxt, svelte, mol, ios-swift, android-kotlin, go, java, mcp-ts, php-hexagonal, and php-laravel)
160
161
  - [ ] Mapping: `claude/<stack>/rules/README.md` table current
161
162
  - [ ] Token budget: Cursor/Claude always-on **3–10** (extra slots = `ai-local-overlay`); body sum ≤4000; meta rules not always-on
162
163
  - [ ] Leakage: no cross-stack agent stems (`preset-no-cross-stack-leakage`)
@@ -210,6 +211,7 @@ Every `presets/cursor/<stack>/skills/<family>/` directory must have a row in `SK
210
211
  - `presets/claude/<name>/`
211
212
  - `presets/mavis/<name>/` (generated; see the Mavis sibling adapter below)
212
213
  - `presets/opencode/<name>/` (generated; see the OpenCode sibling adapter below)
214
+ - `presets/zcode/<name>/` (generated; see the ZCode sibling adapter below)
213
215
 
214
216
  `presets/_shared/` is a **sibling** of the four platform trees — it is **never** copied wholesale to consumer projects.
215
217
 
@@ -218,13 +220,13 @@ Every `presets/cursor/<stack>/skills/<family>/` directory must have a row in `SK
218
220
 
219
221
  **Exception — docs/specs seed:** when consumer `docs/specs/` is **absent**, `init` copies `presets/_shared/assets/docs-specs/INDEX.md` + `_templates/*` into `<cwd>/docs/specs/` (idempotent; **never overwrite** an existing INDEX). When the tree already exists, skip seed entirely.
220
222
 
221
- List installable presets: directories directly under `presets/cursor/` and `presets/claude/` (e.g. `next`, `nuxt`, `svelte`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`).
223
+ List installable presets: directories directly under `presets/cursor/` and `presets/claude/` (e.g. `next`, `nuxt`, `svelte`, `mol`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`).
222
224
 
223
225
  ### Mavis sibling adapter
224
226
 
225
227
  `presets/mavis/` is a third platform sibling (id **`mavis`**, runtime **`mcode`**). Consumer files land under **`.mavis/`** (ai-rules-owned; not a MiniMax-native discovery path). Machine-readable declaration: `presets/mavis/platform-contract.json` (architecture §3.4). Validate with `node scripts/check-mavis-platform-contract.mjs` (add `--self-test` for fixtures).
226
228
 
227
- **Released:** all 10 installable stacks — `npx @bonesofspring/ai-rules init mavis --preset <stack>` (and `init multi --preset <stack>`). Do not add `mcode` / `minimax` CLI aliases. Do not derive Mavis sources from Claude. Capability statuses must link to `docs/MAVIS-COMPATIBILITY.md`; `unknown` / `no-equivalent` capabilities must not declare a native path. Do not pin desktop or CLI patch versions in the contract.
229
+ **Released:** all 11 installable stacks — `npx @bonesofspring/ai-rules init mavis --preset <stack>` (and `init multi --preset <stack>`). Do not add `mcode` / `minimax` CLI aliases. Do not derive Mavis sources from Claude. Capability statuses must link to `docs/MAVIS-COMPATIBILITY.md`; `unknown` / `no-equivalent` capabilities must not declare a native path. Do not pin desktop or CLI patch versions in the contract.
228
230
 
229
231
  Consumer guide: [`MAVIS.md`](./MAVIS.md). Compatibility evidence: [`MAVIS-COMPATIBILITY.md`](./MAVIS-COMPATIBILITY.md). Adapter authoring: [`presets/mavis/README.md`](../presets/mavis/README.md).
230
232
 
@@ -232,10 +234,20 @@ Consumer guide: [`MAVIS.md`](./MAVIS.md). Compatibility evidence: [`MAVIS-COMPAT
232
234
 
233
235
  `presets/opencode/` is a fourth platform sibling (id **`opencode`**, runtime **`opencode`**). Consumer files land under **`.opencode/`** (native agents / skills / commands) plus root `AGENTS.md` and `opencode.json`. Machine-readable declaration: `presets/opencode/platform-contract.json`. Validate with `node scripts/check-opencode-platform-contract.mjs` (add `--self-test` for fixtures).
234
236
 
235
- **Released:** all 10 installable stacks — `npx @bonesofspring/ai-rules init opencode --preset <stack>` (and `init multi --preset <stack>`). Do not derive OpenCode sources from Claude. Capability statuses must link to `docs/OPENCODE-COMPATIBILITY.md`; `unknown` / `no-equivalent` capabilities must not declare a native path. Do not pin OpenCode CLI versions in the contract. Do not write `~/.config/opencode/**`.
237
+ **Released:** all 11 installable stacks — `npx @bonesofspring/ai-rules init opencode --preset <stack>` (and `init multi --preset <stack>`). Do not derive OpenCode sources from Claude. Capability statuses must link to `docs/OPENCODE-COMPATIBILITY.md`; `unknown` / `no-equivalent` capabilities must not declare a native path. Do not pin OpenCode CLI versions in the contract. Do not write `~/.config/opencode/**`.
236
238
 
237
239
  Consumer guide: [`OPENCODE.md`](./OPENCODE.md). Compatibility evidence: [`OPENCODE-COMPATIBILITY.md`](./OPENCODE-COMPATIBILITY.md). Adapter authoring: [`presets/opencode/README.md`](../presets/opencode/README.md).
238
240
 
241
+ ### ZCode sibling adapter
242
+
243
+ `presets/zcode/` is a fifth platform sibling (id **`zcode`**). Consumer files land under **`.zcode/`** (native agents / skills / commands) plus the repo-root `AGENTS.md` — ZCode loads that file natively, so there is **no per-tool map file** and the contract `entryFiles` is exactly `REPO_AGENTS.md → AGENTS.md`. Machine-readable declaration: `presets/zcode/platform-contract.json`. Validate with `node scripts/check-zcode-platform-contract.mjs --self-test`.
244
+
245
+ **Released:** all 11 installable stacks — `npx @bonesofspring/ai-rules init zcode --preset <stack>` (and `init multi --preset <stack>`). Do not derive ZCode sources from Claude. Capability statuses must link to `docs/ZCODE-COMPATIBILITY.md` and trace to a recorded probe (§ Probes P-1…P-9); `unknown` / `no-equivalent` / `manual` capabilities must not declare a native path. Do not pin tool, framework, or model versions in the contract. Do not write `~/.zcode/**` (user scope); workspace `.zcode/**` only.
246
+
247
+ MCP merges the shipped `mcp.json` `mcpServers` into the **nested** `mcp.servers` key of the consumer-owned `.zcode/config.json` (`merge-zcode-config`); the `.agents/mcp.json` fallback is never written. Hook scripts ship as files under `.zcode/hooks/` (`projectHooks: manual`); writing a `hooks` key is a probe-gated follow-up, never done by this preset. Hook-body parity treats zcode as an alias of the `opencode` canonical.
248
+
249
+ Consumer guide: [`ZCODE.md`](./ZCODE.md). Compatibility evidence: [`ZCODE-COMPATIBILITY.md`](./ZCODE-COMPATIBILITY.md). Adapter authoring: [`presets/zcode/README.md`](../presets/zcode/README.md).
250
+
239
251
  ### Product specs authoring surface
240
252
 
241
253
  | Piece | Path / note |
@@ -257,7 +269,7 @@ When adding or changing either stem: update **both** ×20 adapters, README mappi
257
269
 
258
270
  ## How to add a new stack preset
259
271
 
260
- **Reference implementation:** `go` / `java` / `php-hexagonal` / **`php-laravel`** — backend twins under [`presets/cursor/`](../presets/cursor/) + Claude. Closest template for layered backends is **`java`** (dual tooling discovery + framework variants) or **`go`**; do not copy `next` UI/store surface wholesale. For **frontend** stacks, scaffold from **`next`**, **`nuxt`**, or **`svelte`** (React/RTK vs Vue/Pinia vs SvelteKit/`store-svelte`); recent additions **`nuxt`** (Nuxt 3 root layout, `vue-performance`) and **`svelte`** (SvelteKit `src/` layout, `svelte-performance`, script gate **`check`**) mirror `next` agent-team depth.
272
+ **Reference implementation:** `go` / `java` / `php-hexagonal` / **`php-laravel`** — backend twins under [`presets/cursor/`](../presets/cursor/) + Claude. Closest template for layered backends is **`java`** (dual tooling discovery + framework variants) or **`go`**; do not copy `next` UI/store surface wholesale. For **frontend** stacks, scaffold from **`next`**, **`nuxt`**, or **`svelte`** (React/RTK vs Vue/Pinia vs SvelteKit/`store-svelte`); recent additions **`nuxt`** (Nuxt 3 root layout, `vue-performance`), **`svelte`** (SvelteKit `src/` layout, `svelte-performance`, script gate **`check`**), and **`mol`** (`$mol` reactive micro-modular stack: `mol-app-core`/`mol-reactivity`/`mol-view-tree`/`mol-components` always-on, MAM build as the post-change gate) mirror `next` agent-team depth.
261
273
 
262
274
  **PHP stacks (coexistence):**
263
275
 
@@ -279,9 +291,9 @@ Recent additions: **`android-kotlin`** (scaffolded from `ios-swift` agent-team +
279
291
  7. **build-verifier** — consumer gate only (stack tooling); preset-structure checks live in `scripts/check-*.sh` and `preset-pr-checklist`.
280
292
  8. **Platform artifacts** — see next section.
281
293
  9. **Structure scripts** — add stack name to `STACKS` in `check-preset-twin-map.sh`, `check-preset-token-budget.sh`, `check-preset-leakage.sh`; fork `chain-team-phases.sh` byte-wise from other stacks; run `node scripts/check-preset-twin-drift.mjs --update` once the new stack ships Claude `commands/**` and `skills/**` (every new twin pair needs a baseline row).
282
- 10. **Platform registration** — add the stack to `STACK_PROFILES` in `scripts/lib/stack-platform-profiles.mjs`, to `releasedStacks` in both `presets/mavis/platform-contract.json` and `presets/opencode/platform-contract.json`, then generate the derived trees: `node scripts/generate-mavis.mjs --stack <name>` and `node scripts/generate-opencode.mjs --stack <name>`. Verify with `node scripts/check-generated-drift.mjs`.
294
+ 10. **Platform registration** — add the stack to `STACK_PROFILES` in `scripts/lib/stack-platform-profiles.mjs`, to `releasedStacks` in `presets/mavis/platform-contract.json`, `presets/opencode/platform-contract.json`, and `presets/zcode/platform-contract.json`, then generate the derived trees: `node scripts/generate-mavis.mjs --stack <name>`, `node scripts/generate-opencode.mjs --stack <name>`, and `node scripts/generate-zcode.mjs --stack <name>`. Verify with `node scripts/check-generated-drift.mjs`.
283
295
  11. **Document** — stack `README.md`, `rules/README.md` core→stack table, twin row in this guide, link `_shared/README.md`.
284
- 12. **Package README** — list new preset name under install examples for all four platforms (`init cursor|claude|mavis|opencode --preset <name>`).
296
+ 12. **Package README** — list new preset name under install examples for all five platforms (`init cursor|claude|mavis|opencode|zcode --preset <name>`).
285
297
 
286
298
  Twin policy: Cursor SoT per stack; Claude derived same PR from day one.
287
299
 
@@ -397,7 +409,7 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
397
409
  | `yarn fix:generated` | Regenerate every released generated platform and recapture the CLI goldens it owns (`cursor/next`, `claude/next`, and every Mavis/OpenCode stack). Run after changing Cursor SoT, before fail-only checks. Capture a non-`next` Cursor/Claude golden explicitly with `node scripts/capture-cli-golden.mjs <cursor|claude> <stack>`; never hand-edit one. Dogfood sync remains separate. |
398
410
  | `scripts/sync-dogfood-cursor.sh` | Copy `presets/cursor/<preset>/` → root `.cursor/` (`AI_RULES_DOGFOOD_PRESET`, default `next`). Also copies `REPO_AGENTS.md` → repo-root `AGENTS.md`. Seeds `.ai.local/team` templates; preserves `.ai.local/team/tasks/`. |
399
411
  | `scripts/check-shared-core-drift.sh` / `yarn check:shared-core-drift` | Check embed-mode adapters vs core; lists lineage consumers. **Always hard:** every `_shared/core/**` file must be classified `embed | lineage | internal` in `_lib/embed-stems.json` (unclassified → exit 1). Drift is soft by default; set `AI_RULES_DRIFT_FAIL=1` (or use `check:preset-structure`) to exit non-zero. A stem listed in `requiredSentences` is checked in the core **and in every adapter of that stem, whatever the lineage class** — the body comparison cannot cover a platform whose adapter is not a byte-embed of the core (the Cursor family reorders, omits and adds sections), so the normative fragments of that stem are pinned separately. |
400
- | `scripts/check-preset-twin-map.sh` / `yarn check:preset-twin-map` | **FAIL** if Cursor `.mdc` missing from Claude mapping table, twin file missing, or orphan topic `.md` (excl. `**/README.md`). Stacks: `next`, `nuxt`, `svelte`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`. **Rules only** — commands and skills are guarded by `check-preset-twin-drift.mjs`. |
412
+ | `scripts/check-preset-twin-map.sh` / `yarn check:preset-twin-map` | **FAIL** if Cursor `.mdc` missing from Claude mapping table, twin file missing, or orphan topic `.md` (excl. `**/README.md`). Stacks: `next`, `nuxt`, `svelte`, `mol`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`. **Rules only** — commands and skills are guarded by `check-preset-twin-drift.mjs`. |
401
413
  | `scripts/check-preset-twin-drift.mjs` / `yarn check:preset-twin-drift` | **FAIL** when a hand-maintained Claude twin (`presets/claude/<stack>/{commands,skills}/**/*.md`) drifts further from its Cursor source than `scripts/_lib/claude-twin-drift-baseline.json` records, when the recorded divergence between the twins changes while the line delta does not, when a command/skill has no twin on the other side, when a new pair has no baseline row, when a baseline row has no live pair, or when the baseline itself is missing its hash rows. Full parity is not required: mirror a change in both twins (delta and divergence unchanged) or record a deliberate divergence with `--update`. Raising an allowance needs `--update --widen`; dropping a row needs `--update --prune`. Fixture `test-preset-twin-drift.mjs`. |
402
414
  | `scripts/check-claude-agent-parity.mjs` / `yarn check:claude-agent-parity` | **FAIL** when a hand-maintained Claude `agents/*.md` twin drifts from its Cursor source beyond `scripts/_lib/claude-agent-parity-baseline.json`: a grown or shrunk normalized line delta, a one-sided rewrite at an unchanged delta, a changed divergence hash, a missing twin, an unrecorded pair, an orphan row, or a pair in the static `parity` allowlist that is not at delta 0. Normalization masks packaging only — YAML frontmatter, the `## Rules to load (subagent context)` block, `<!-- shared-core -->` markers, the two anti-hallucination load lines, the `.cursor/` / `.claude/` root, and `.mdc` → `.md` — and reuses the twin-drift diff helpers. `--update` re-records deltas and hashes; `--widen` / `--prune` gate a raised allowance or a dropped row; `parity` is never edited by `--update`. Fixture `test-claude-agent-parity.mjs` proves one-sided Claude FAIL, one-sided Cursor FAIL and mirrored PASS. Wired into `check-preset-structure.sh` next to `claude-agent-blocks`. |
403
415
  | `scripts/check-consumer-links.mjs` / `yarn check:consumer-links` | **FAIL** when a generated Claude rule or agent carries a source-only `.cursor/` path or a `.mdc` reference whose stem resolves through `claude/<stack>/rules/README.md`; `README.md` and `preset-*.md` are exempt by class. `scripts/_lib/claude-consumer-link-allowlist.json` records the legitimate lines one hash at a time; a stale row fails, and a planted line in an allowlisted file still fails unless it matches the recorded hash. `--update` re-hashes recorded rows only and refuses to add one. Scans `next` by default; `--stack` opts another stack in. Fixture `test-consumer-links.mjs`. Wired into `check-preset-structure.sh` next to `generated-drift`. |
@@ -458,7 +470,7 @@ Author-only: this section is **not** copied by `init`.
458
470
 
459
471
  | Stem | Drift mode | Why | Consumers |
460
472
  |------|------------|-----|-----------|
461
- | `quality/debug-investigation.md` | **embed** | Skill file is core prose + `## Stack notes` only | `skills/debug-investigation/SKILL.md` (10 stacks × 2) |
473
+ | `quality/debug-investigation.md` | **embed** | Skill file is core prose + `## Stack notes` only | `skills/debug-investigation/SKILL.md` (11 stacks × 2) |
462
474
  | `quality/verification-before-completion.md` | **lineage** | Section snippet inside fat `build-verifier` / `feature-developer` | those agents (debugger 3-fix is inline, not this stem) |
463
475
  | `review/receiving-code-review.md` | **lineage** | Section snippet inside fat `code-review` skill | skill + implementer line on `feature-developer`, `debugger`, `ci-investigator` |
464
476
  | `agent-team/task-classification.md` | **lineage** | Section snippet inside fat `task-analyst` / `task-router` | those agents |
package/docs/TEAM-DB.md CHANGED
@@ -8,10 +8,10 @@ The projection is installed by `init` as six modules under `.ai.local/scripts/`:
8
8
 
9
9
  | Module | Role |
10
10
  |---|---|
11
- | `team-db.mjs` | CLI: `init`, `sync`, `check`, `serve` |
11
+ | `team-db.mjs` | CLI: `init`, `sync`, `delete`, `migrate-tasks`, `check`, `serve` |
12
12
  | `team-db-schema.mjs` | capability probe, embedded migrations, pragmas, fingerprint, integrity |
13
- | `team-db-project.mjs` | parsers, idempotent projector, retention, search |
14
- | `team-db-api.mjs` | read-only `node:http` server, query layer, security boundary |
13
+ | `team-db-project.mjs` | parsers, idempotent projector, confirmed task deletion, retention, search |
14
+ | `team-db-api.mjs` | `node:http` server (reads plus two bounded mutations), query layer, security boundary |
15
15
  | `team-db-openapi.mjs` | the OpenAPI 3.1 document source |
16
16
  | `team-db-dashboard.mjs` | the no-build dashboard (HTML, CSS, JS strings) |
17
17
 
@@ -22,11 +22,16 @@ The projection is installed by `init` as six modules under `.ai.local/scripts/`:
22
22
  No agent writes a lifecycle field through the projection.
23
23
  - **The database is rebuildable.** Delete `team.db*` and run `sync`; the next run recreates
24
24
  the schema and reconverges. A schema fingerprint mismatch rebuilds automatically.
25
- - **Writes are isolated.** A projection failure never fails a file write or a receipt. The
26
- hook and `manifest.mjs` run a bounded child (5 s, `SIGKILL`) and append one line to
27
- `team-db-errors.log` on failure.
28
- - **One read-only surface.** `POST /api/v1/sync` is the only mutation; every other route is
29
- `GET`/`HEAD`. There is no write-back, no telemetry, and no outbound request.
25
+ - **Writes are isolated.** A projection or deletion failure never fails a file write or a
26
+ receipt. The hook and `manifest.mjs` each run a bounded child (5 s, `SIGKILL`) and append
27
+ one line to `team-db-errors.log` on failure; the confirmed task delete runs its own
28
+ bounded child (30 s, `SIGKILL`), and its failure reaches the caller through the one error
29
+ envelope, or one stderr line on the CLI.
30
+ - **Two bounded mutations.** `POST /api/v1/sync` re-runs the projector; `DELETE
31
+ /api/v1/tasks/{slug}` deletes one confirmed task (the folder first, then the rows). Every
32
+ other route is `GET`/`HEAD`, and both mutations run as bounded child processes — the
33
+ server process never opens a writable connection, and the kill switch stops both before a
34
+ child is spawned. There is no write-back, no telemetry, and no outbound request.
30
35
  - **Local only.** The server binds loopback by default, checks `Host` and `Origin`, sends no
31
36
  CORS header, and serves raw documents from SQLite by exact `(slug, path)` lookup.
32
37
 
@@ -61,8 +66,9 @@ below the floor, or a build without `node:sqlite`, is detected at runtime:
61
66
  |---|---|---|
62
67
  | hook postflight | one line, no child, exit 0 | silent, exit 0 |
63
68
  | `manifest.mjs` upsert | one line, return 0 after the receipt | silent, return 0 |
64
- | `team-db.mjs init` / `sync` | one line, exit 0, no file | one line, exit 0, no file |
69
+ | `team-db.mjs init` / `sync` / `migrate-tasks` | one line, exit 0, no file | one line, exit 0, no file |
65
70
  | `team-db.mjs check` | one line, exit 1 | one line, exit 1 |
71
+ | `team-db.mjs delete` | one line, exit 2 | one line, exit 1 |
66
72
  | `team-db.mjs serve` | one line, exit 0 | one line, exit 0 |
67
73
 
68
74
  The file-only pipeline is unchanged: `status.json` / `metrics.json` writes, manifest upserts,
@@ -75,19 +81,50 @@ node .ai.local/scripts/team-db.mjs init [--root <team-dir>] [--rebuild]
75
81
  node .ai.local/scripts/team-db.mjs sync [--root <team-dir>] [--slug <slug>] [--quiet] [--json]
76
82
  [--maintain] [--prune] [--vacuum]
77
83
  [--rebuild | --no-rebuild] [--deadline-ms <n>]
84
+ node .ai.local/scripts/team-db.mjs delete --slug <slug> [--root <team-dir>] [--json]
85
+ node .ai.local/scripts/team-db.mjs migrate-tasks [--root <team-dir>] [--quiet] [--json]
86
+ [--rebuild | --no-rebuild]
78
87
  node .ai.local/scripts/team-db.mjs check [--root <team-dir>]
79
88
  node .ai.local/scripts/team-db.mjs serve [--root <team-dir>] [--host <addr>] [--port <n>]
80
89
  [--allow-remote] [--open]
81
90
  ```
82
91
 
83
- Exit codes: `0` ok, `1` at least one task failed or a migration checksum drifted, `2`
84
- database-level failure, `3` usage, `4` deadline or busy database on the hook-shaped `--slug`
85
- path.
92
+ Exit codes: `0` ok, `1` at least one task failed, a delete refusal (unknown slug, active
93
+ task, kill switch, folder-delete failure) or a migration checksum drifted, `2`
94
+ database-level failure — a `delete` without `node:sqlite` refuses here rather than deleting
95
+ the folder only, `3` usage, `4` deadline or busy database (the hook-shaped `sync --slug`
96
+ deadline, or a delete that meets a locked database).
86
97
 
87
98
  `sync` is idempotent: a second run reports `inserted=0 updated=0 unchanged=<n>`. One changed
88
99
  byte changes exactly one document hash and one task content hash. A removed task directory is
89
100
  tombstoned with `absent_at` (soft delete) and `--prune` removes tombstones.
90
101
 
102
+ `migrate-tasks` is the one-command create-or-reconcile entry point. It creates
103
+ `.ai.local/team/team.db` and its schema when the database is absent, then reconciles the tree
104
+ and writes only the delta: new tasks, changed documents, and changed normalized rows; an
105
+ immediate second run is a no-op. Removed task directories are tombstoned with `absent_at`
106
+ instead of being deleted, exactly like `sync` without `--prune`. The summary names the
107
+ pre-run file state and the counters, for example
108
+ `migrate-tasks: database=created inserted=3 updated=0 unchanged=0 absent=0 failed=0 pruned=0 rebuilt=0`;
109
+ `--json` emits one object with `database` plus the `sync` result fields, and `--quiet`
110
+ suppresses only the human line. `failed` is an overlay counter — a malformed task is counted in
111
+ `inserted`/`updated` **and** in `failed`, so the counters are not a partition. `--slug`,
112
+ `--maintain`, `--prune`, `--vacuum`, and `--deadline-ms` do not apply to this verb (exit 3).
113
+
114
+ `delete` removes one task on explicit request. The slug is validated against the shared
115
+ pattern and confined to `.ai.local/team/tasks/<slug>/` — a symlink at that path is refused
116
+ with `E_NOT_FOUND`, never followed or removed. The kill switch refuses with `E_DISABLED`
117
+ before anything runs; a task whose slug equals `active-task.json`'s slug is refused with
118
+ `E_ACTIVE_TASK`; an unknown slug is refused with `E_NOT_FOUND`. The deletion itself is
119
+ folder first, then one transaction that removes the task's search rows and the task row
120
+ (every child row goes by foreign-key cascade); no `sync_runs` row is written. If the
121
+ process dies between the two legs, the next `sync` marks the leftover rows absent and
122
+ `sync --prune` removes them — content never resurrects. Repeating a finished delete
123
+ refuses with `E_NOT_FOUND`. With `--json` the command prints exactly one machine-readable
124
+ line: `{ ok: true, slug, folderRemoved, rowsDeleted }` on success, `{ ok: false, code,
125
+ message }` on a refusal. The delete runs wherever the command runs: the team root it
126
+ targets must be on the same host.
127
+
91
128
  ## Environment names
92
129
 
93
130
  | Name | Effect |
@@ -128,6 +165,17 @@ JS are served from `/assets/`, and the OpenAPI 3.1 document is at `/openapi.json
128
165
  document is checked in at `packages/ai-rules/docs/openapi/team-db.v1.json`; the gate is
129
166
  `node scripts/check-team-db-contract.mjs`.
130
167
 
168
+ The API exposes the delete as `DELETE /api/v1/tasks/{slug}` — the same canonical deletion
169
+ as the CLI, executed as one bounded child. It answers `200` with `{"slug":"<S>"}` on
170
+ success, `404 E_NOT_FOUND` for an unknown slug, `409 E_ACTIVE_TASK` with
171
+ `details.activeSlug` when the slug is the active task, `503 E_DISABLED` when the kill
172
+ switch is set, and `503 E_BUSY` when the child is killed at its 30 s bound; a wrong method
173
+ on the shared path answers `405` with `Allow: GET, HEAD, DELETE`, and the request body is
174
+ ignored. An unexpected child failure maps to the generic `E_INTERNAL` envelope with one
175
+ trimmed stderr line from the child. The delete executes wherever the API runs — the host
176
+ that owns `.ai.local/team/`; a UI that only proxies to the API (for example the
177
+ containerized team-tasks-ui) deletes through it on that same host.
178
+
131
179
  Security boundary: loopback bind by default (`--host` outside loopback needs
132
180
  `--allow-remote`, and a wildcard address is refused), exact `Host`/`Origin` allow-list,
133
181
  no `Access-Control-*` header, hardened response headers, request bodies bounded at 1 KiB,
@@ -142,7 +190,9 @@ for tasks absent longer than 90 days while keeping normalized rows and hashes.
142
190
 
143
191
  ## Rollback
144
192
 
145
- 1. Set `AI_RULES_TEAM_DB_DISABLE=1`. Every write point and `serve` becomes a no-op with exit 0.
193
+ 1. Set `AI_RULES_TEAM_DB_DISABLE=1`. Every write point becomes a no-op: the hook,
194
+ `manifest.mjs`, `init`/`sync`/`migrate-tasks` and `serve` exit 0; `delete` refuses with
195
+ exit 1 and touches nothing.
146
196
  2. Delete the projection: `rm -f .ai.local/team/team.db .ai.local/team/team.db-wal
147
197
  .ai.local/team/team.db-shm .ai.local/team/team-db-errors.log`. No task file is touched.
148
198
  3. Revert the code: remove the hook region and the `projectAfterReceipt` call, delete the six
@@ -157,6 +207,7 @@ From `packages/ai-rules`:
157
207
  node scripts/check-team-db-contract.mjs
158
208
  node scripts/test-team-db-schema.mjs
159
209
  node scripts/test-team-db-project.mjs
210
+ node scripts/test-team-db-migrate-tasks.mjs
160
211
  node scripts/test-team-db-dualwrite.mjs
161
212
  node scripts/test-team-db-api.mjs
162
213
  node scripts/test-team-db-security.mjs
@@ -0,0 +1,143 @@
1
+ # ZCode compatibility
2
+
3
+ Evidence target for `presets/zcode/platform-contract.json` `nativeCapabilities` (R-21). Every
4
+ `confirmed`/`partial` status cites a recorded probe below; `unknown`/`no-equivalent`/`manual`
5
+ declare no `nativePath`. No version is pinned.
6
+
7
+ ## Probes
8
+
9
+ Recorded 2026-11-06 in a live ZCode desktop session (`ZCode.app`, macOS arm64) running inside a
10
+ workspace whose root `AGENTS.md` is installed by this package. Each probe names the mechanism
11
+ exercised and the observation.
12
+
13
+ ### P-1 — Workspace instructions read path (live)
14
+
15
+ - Mechanism: workspace-scope instructions.
16
+ - Observation: the session loaded the repo-root `AGENTS.md` without any per-tool copy: its
17
+ cross-tool setup section, presence-based load table, and `.ai.local` overlay mandate were
18
+ active in the model context from the first turn (the reply acknowledged
19
+ `Using .ai.local: …` per that file). No `.zcode/AGENTS.md` exists in the workspace.
20
+ - Consequence: the root `AGENTS.md` is the map; `rootAgents: confirmed`, `referencedRule: confirmed`
21
+ (rule files are read on instruction — the same root-entry pattern mavis/opencode use), and no
22
+ per-tool entry file is shipped.
23
+
24
+ ### P-2 — Agent file schema (live, real files)
25
+
26
+ - Mechanism: agent discovery and frontmatter schema.
27
+ - Observation: real installed agent files are Markdown with YAML frontmatter. Example read in
28
+ this session (official `documents` plugin, `agents/visual-judge.md`): keys `name`,
29
+ `description`, `color`, `model`, `thoughtLevel`, `tools: [Read, Bash]`; body is the system
30
+ prompt. The session's own agent-type list is derived from such files.
31
+ - Consequence: `explicitAgentFile: confirmed`, `nativeWorkspaceAgents: confirmed`. Zcode adapter
32
+ synthesizes `name` + `description` frontmatter; `tools` optional; no `model` pin (R-21).
33
+ - Corroborated live 2026-11-07: after the dogfood sync populated `.zcode/agents/**`, a ZCode
34
+ session listed the full team-agent roster (task-router, task-analyst, feature-developer,
35
+ code-reviewer, …) among its natively available agent types — workspace agent discovery works
36
+ end-to-end against the shipped files, not only plugin-scoped ones.
37
+
38
+ ### P-3 — Command file schema (live, real files)
39
+
40
+ - Mechanism: slash commands.
41
+ - Observation: real command file read in this session (official `zcode-site` plugin,
42
+ `commands/site-status.md`): frontmatter `description`, `argument-hint`, `skills`; body uses
43
+ `$ARGUMENTS` substitution. Nested command directories join with a colon
44
+ (`review/code.md` → `/review:code`) per the official configuration guide.
45
+ - Consequence: `slashCommands: confirmed`; the adapter injects `## Invocation arguments` +
46
+ `$ARGUMENTS` when a command body lacks it (same treatment as opencode).
47
+
48
+ ### P-4 — Skill file schema (live, real files)
49
+
50
+ - Mechanism: skill discovery and `SKILL.md` format.
51
+ - Observation: real skill files read in this session (official `documents` and `pdf` plugins):
52
+ `skills/<name>/SKILL.md` with frontmatter `name`, `metadata` (author/version), `description`,
53
+ optional `license`. Workspace scopes `.zcode/skills/` and `.agents/skills/` per the official
54
+ configuration guide (first same-named skill wins).
55
+ - Consequence: `referencedSkill: confirmed`, `nativeWorkspaceSkills: confirmed`.
56
+
57
+ ### P-5 — Project MCP config path (documented; live round-trip follow-up)
58
+
59
+ - Mechanism: workspace MCP configuration and merge semantics.
60
+ - Observation: the official configuration guide documents workspace scope as
61
+ `<repo>/.zcode/config.json` with the **nested** key `mcp.servers` (alternative repo-root
62
+ `zcode.json`; fallback `.agents/mcp.json` with flat `mcpServers`), user scope
63
+ `~/.zcode/cli/config.json` → `mcp.servers`, and auto-connect of workspace-scoped servers.
64
+ No `~/.zcode/cli/config.json` existed on the probe machine (defaults only), so a live
65
+ merge round-trip on a consumer-owned config was not observable in-session; the plugin layer
66
+ uses a manifest (`mcpServers` key in `plugin.json`), distinct from the workspace config path.
67
+ - Consequence: `projectMcp: partial` (nativePath `.zcode/config.json`), `pluginSkillMcp: partial` (plugin manifests observed live; workspace-config interplay documented) — nested path is
68
+ documented by the official guide; the installer still applies the full read-modify-write,
69
+ preflight, rollback, and exact-strip protocol so a divergence cannot damage consumer state.
70
+ A live round-trip probe is recorded as follow-up before any `hooks`-key work.
71
+
72
+ ### P-6 — Hooks (documented; not round-tripped)
73
+
74
+ - Mechanism: hook configuration.
75
+ - Observation: the official configuration guide documents hooks as config-file objects
76
+ (`hooks` in `config.json`, seven events: `SessionStart`, `UserPromptSubmit`, `PreToolUse`,
77
+ `PermissionRequest`, `PostToolUse`, `PostToolUseFailure`, `Stop`), requiring
78
+ `hooks.enabled: true`; plugin hooks are appended automatically. No live round-trip was
79
+ performed (see P-5).
80
+ - Consequence: `projectHooks: manual` — this change ships hook scripts as files
81
+ (`.zcode/hooks/`, agent-invoked per the host section) and writes no `hooks` key.
82
+
83
+ ### P-7 — Native rules engine (absent)
84
+
85
+ - Mechanism: always-on rule loading (cursor `alwaysApply` analog).
86
+ - Observation: the configuration guide describes no per-rule always-on mechanism for the
87
+ workspace; instruction loading is whole-file (`AGENTS.md`), and everything else is
88
+ skills/commands/agents/MCP/hooks.
89
+ - Consequence: `nativeProjectRules: no-equivalent`; rules ship referenced from the root
90
+ `AGENTS.md` (root-entry pattern).
91
+
92
+ ### P-8 — Runtime executable and fresh init (unknown)
93
+
94
+ - Mechanism: CLI runtime and first-run behavior.
95
+ - Observation: ZCode runs as a desktop application in the probe environment; no standalone
96
+ `zcode` runtime executable was exercised, and no probe of first-run initialization behavior
97
+ was performed.
98
+ - Consequence: `cliVersion: unknown`, `freshInit: unknown`, `structuredOutput: unknown`
99
+ (no structured-output channel beyond agent report text was probed), `runtimeExecutable`
100
+ is recorded as `zcode` for documentation purposes without implying a CLI contract.
101
+
102
+ ### P-9 — Shared team runtime (inherited)
103
+
104
+ - Mechanism: `.ai.local/team` pipeline artifacts.
105
+ - Observation: identical to the other hosts — the team runtime is file-based under
106
+ `.ai.local/`, reachable through root-`AGENTS.md` instructions (P-1); this task itself runs
107
+ that pipeline on the ZCode host with the compliance checker as the hook-independent backstop.
108
+ - Consequence: `nativeTeam: partial` (nativePath `.ai.local/team`).
109
+
110
+ ## Status summary
111
+
112
+ | Capability | Status | Native path |
113
+ |---|---|---|
114
+ | `cliVersion` | unknown | — |
115
+ | `rootAgents` | confirmed | `AGENTS.md` (repo root) |
116
+ | `explicitAgentFile` | confirmed | `.zcode/agents` |
117
+ | `structuredOutput` | unknown | — |
118
+ | `referencedRule` | confirmed | `AGENTS.md` (repo root) |
119
+ | `referencedSkill` | confirmed | `.zcode/skills` |
120
+ | `freshInit` | unknown | — |
121
+ | `nativeProjectRules` | no-equivalent | — |
122
+ | `nativeWorkspaceSkills` | confirmed | `.zcode/skills` |
123
+ | `nativeWorkspaceAgents` | confirmed | `.zcode/agents` |
124
+ | `projectMcp` | partial | `.zcode/config.json` (`mcp.servers`) |
125
+ | `projectHooks` | manual | — |
126
+ | `slashCommands` | confirmed | `.zcode/commands` |
127
+ | `pluginSkillMcp` | partial | — |
128
+ | `nativeTeam` | partial | `.ai.local/team` |
129
+
130
+ ## Install surface
131
+
132
+ | Artifact | Destination |
133
+ |---|---|
134
+ | `REPO_AGENTS.md` | repo-root `AGENTS.md` (shared file, all hosts) |
135
+ | rules | `.zcode/rules/*.md` (plain Markdown, referenced from the root file) |
136
+ | agents | `.zcode/agents/*.md` (`name`/`description` frontmatter) |
137
+ | skills | `.zcode/skills/*/SKILL.md` |
138
+ | commands | `.zcode/commands/*.md` (`$ARGUMENTS`) |
139
+ | hooks | `.zcode/hooks/*` (files only; no config `hooks` key in this change) |
140
+ | MCP | `.zcode/config.json` → `mcp.servers` (nested merge, exact strip on clean) |
141
+
142
+ Install/clean: `npx @bonesofspring/ai-rules init zcode --preset <stack>` /
143
+ `clean zcode`, manifest `.zcode/.ai-rules-install.json`.
package/docs/ZCODE.md ADDED
@@ -0,0 +1,50 @@
1
+ # ZCode
2
+
3
+ Consumer guide for the ZCode platform preset (fifth sibling; id `zcode`). Install:
4
+
5
+ ```bash
6
+ npx @bonesofspring/ai-rules init zcode --preset next
7
+ npx @bonesofspring/ai-rules clean zcode # never deletes .ai.local/
8
+ ```
9
+
10
+ ## What `init zcode` writes
11
+
12
+ | Artifact | Destination |
13
+ |---|---|
14
+ | Entry | `REPO_AGENTS.md` → repo-root **`AGENTS.md`** (ZCode loads it natively; there is no `.zcode/AGENTS.md` and no per-tool map) |
15
+ | Rules | `.zcode/rules/*.md` (plain Markdown; not auto-loaded — the root file's ZCode host section points at the essential rules under `.zcode/rules/`, agents carry a `## Rules to load` block) |
16
+ | Agents | `.zcode/agents/*.md` (`name`/`description` frontmatter only) |
17
+ | Skills | `.zcode/skills/*/SKILL.md` |
18
+ | Commands | `.zcode/commands/*.md` (`$ARGUMENTS`) |
19
+ | Hooks | `.zcode/hooks/{chain-team-phases.sh,list-ai-local.mjs,check-preset-update.mjs}` — files only; the root file's ZCode host section instructs the update check and the per-turn overlay probe, the team pipeline docs (`.ai.local/team/README.md`) carry the chain-runner invocation |
20
+ | MCP | shipped `mcp.json` `mcpServers` merges into `.zcode/config.json` under the nested **`mcp.servers`** key (workspace scope, auto-connected) |
21
+ | Team | `.ai.local/team/` templates (shared runtime; `tasks/<slug>/` never overwritten) |
22
+
23
+ ## Merge and clean semantics
24
+
25
+ `.zcode/config.json` is consumer-owned. `init` merges only the nested `mcp.servers` key: consumer
26
+ keys (`hooks`, `plugins`, skill overrides, …) and custom server entries are kept; preset scalar
27
+ fields on a shipped server overwrite; omitted nested fields stay. An existing config that is not a
28
+ valid JSON object fails `init` with exit 1 and is left untouched. `clean zcode` deletes
29
+ sha-verified managed files, keeps the shared root `AGENTS.md` while another tool is installed,
30
+ strips exactly the recorded server ids (pruning `mcp`/`servers` only when this install created
31
+ them and they are now empty), and removes emptied directories.
32
+
33
+ This preset **never writes a `hooks` key** into `.zcode/config.json`: hook scripts ship as files
34
+ and the root file instructs the agent to run them (`projectHooks: manual` in the platform
35
+ contract). Config-hook enablement is a probe-gated follow-up; see
36
+ [`ZCODE-COMPATIBILITY.md`](ZCODE-COMPATIBILITY.md) § P-5/P-6.
37
+
38
+ ## Platform contract
39
+
40
+ `presets/zcode/platform-contract.json` declares `managedRoot: .zcode`, the ten released stacks,
41
+ `entryFiles: [REPO_AGENTS.md → AGENTS.md]`, `mcp {source: mcp.json, fallbackDestination:
42
+ .zcode/config.json, mode: merge-zcode-config}`, and 15 `nativeCapabilities` statuses from the
43
+ enum set. Capability evidence lives in [`ZCODE-COMPATIBILITY.md`](ZCODE-COMPATIBILITY.md)
44
+ (probes P-1…P-9). `init multi` and `update` gate zcode by `releasedStacks`.
45
+
46
+ ## Multi-install note
47
+
48
+ `init multi` now installs five platforms when present. ZCode shares the root `AGENTS.md` with the
49
+ other four hosts: the file is identical on every platform, and the ZCode host section is additive
50
+ prose the other hosts ignore. `clean zcode` keeps that file while any other install remains.
@@ -3,8 +3,8 @@
3
3
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
4
4
  "info": {
5
5
  "title": "Agent team SQLite projection API",
6
- "summary": "Read-only projection of `.ai.local/team`. Task files are authoritative; the database is a rebuildable copy. The only mutation is an idempotent rescan.",
7
- "description": "Loopback-only operator API. No authentication by design, no CORS, no outbound request. Errors use one `{error:{code,message,details?}}` envelope. Every non-GET/HEAD request to a read-only path returns 405 `E_METHOD_NOT_ALLOWED` with `Allow: GET, HEAD`; `GET` and `HEAD` on `/api/v1/sync` return 405 with `Allow: POST`.",
6
+ "summary": "Projection of `.ai.local/team`. Task files are authoritative; the database is a rebuildable copy. Two mutations exist — the idempotent rescan and the confirmed task delete — and both run as bounded child processes.",
7
+ "description": "Loopback-only operator API. No authentication by design, no CORS, no outbound request. Errors use one `{error:{code,message,details?}}` envelope. Every non-GET/HEAD request to a read-only path returns 405 `E_METHOD_NOT_ALLOWED` with `Allow: GET, HEAD`; `GET` and `HEAD` on `/api/v1/sync` return 405 with `Allow: POST`; any other method on `/api/v1/tasks/{slug}` returns 405 with `Allow: GET, HEAD, DELETE`.",
8
8
  "version": "1.0.0",
9
9
  "x-api-major": 1
10
10
  },
@@ -759,6 +759,107 @@
759
759
  }
760
760
  },
761
761
  "security": []
762
+ },
763
+ "delete": {
764
+ "tags": [
765
+ "tasks"
766
+ ],
767
+ "summary": "Delete one task: the task folder first, then its projection rows",
768
+ "description": "Confirmed, destructive and irreversible. The task folder `.ai.local/team/tasks/{slug}` is removed before the database rows, so a crash between the two legs converges toward deleted on the next rescan and never resurrects content. The row delete is one transaction: the task row plus every child row by cascade, plus the task's search rows. The slug in `active-task.json` is refused with 409 `E_ACTIVE_TASK`. An unknown slug answers 404 `E_NOT_FOUND` and touches nothing. The request body is ignored and no query parameters are declared. Executed as a bounded child process; `AI_RULES_TEAM_DB_DISABLE=1` answers 503 `E_DISABLED` before anything runs.",
769
+ "operationId": "deleteTask",
770
+ "parameters": [
771
+ {
772
+ "name": "slug",
773
+ "in": "path",
774
+ "required": true,
775
+ "description": "Task directory name.",
776
+ "schema": {
777
+ "type": "string",
778
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
779
+ }
780
+ }
781
+ ],
782
+ "responses": {
783
+ "200": {
784
+ "description": "The deleted slug",
785
+ "content": {
786
+ "application/json": {
787
+ "schema": {
788
+ "$ref": "#/components/schemas/TaskDeleteResult"
789
+ }
790
+ }
791
+ }
792
+ },
793
+ "400": {
794
+ "description": "Malformed request: an invalid slug",
795
+ "content": {
796
+ "application/json": {
797
+ "schema": {
798
+ "$ref": "#/components/schemas/ErrorEnvelope"
799
+ }
800
+ }
801
+ }
802
+ },
803
+ "403": {
804
+ "description": "A non-loopback Host or Origin was rejected before routing",
805
+ "content": {
806
+ "application/json": {
807
+ "schema": {
808
+ "$ref": "#/components/schemas/ErrorEnvelope"
809
+ }
810
+ }
811
+ }
812
+ },
813
+ "404": {
814
+ "description": "The task does not exist in the projection or on disk",
815
+ "content": {
816
+ "application/json": {
817
+ "schema": {
818
+ "$ref": "#/components/schemas/ErrorEnvelope"
819
+ }
820
+ }
821
+ }
822
+ },
823
+ "405": {
824
+ "description": "The route does not accept this method; the response carries an Allow header",
825
+ "headers": {
826
+ "Allow": {
827
+ "description": "HTTP methods allowed on this path, for example `GET, HEAD`",
828
+ "schema": {
829
+ "type": "string"
830
+ }
831
+ }
832
+ },
833
+ "content": {
834
+ "application/json": {
835
+ "schema": {
836
+ "$ref": "#/components/schemas/ErrorEnvelope"
837
+ }
838
+ }
839
+ }
840
+ },
841
+ "409": {
842
+ "description": "The slug is the active task; the delete is refused with `details.activeSlug` naming it",
843
+ "content": {
844
+ "application/json": {
845
+ "schema": {
846
+ "$ref": "#/components/schemas/ErrorEnvelope"
847
+ }
848
+ }
849
+ }
850
+ },
851
+ "503": {
852
+ "description": "The projection is disabled, the database is missing, unusable, busy, or the child exceeded its time bound",
853
+ "content": {
854
+ "application/json": {
855
+ "schema": {
856
+ "$ref": "#/components/schemas/ErrorEnvelope"
857
+ }
858
+ }
859
+ }
860
+ }
861
+ },
862
+ "security": []
762
863
  }
763
864
  },
764
865
  "/api/v1/tasks/{slug}/pipeline": {
@@ -2490,6 +2591,7 @@
2490
2591
  "E_DOC_NOT_FOUND",
2491
2592
  "E_DOC_BINARY",
2492
2593
  "E_DOC_CONTENT_OMITTED",
2594
+ "E_ACTIVE_TASK",
2493
2595
  "E_RANGE",
2494
2596
  "E_DISABLED",
2495
2597
  "E_DB_MISSING",
@@ -2842,6 +2944,24 @@
2842
2944
  }
2843
2945
  ]
2844
2946
  },
2947
+ "TaskDeleteResult": {
2948
+ "type": "object",
2949
+ "additionalProperties": false,
2950
+ "properties": {
2951
+ "slug": {
2952
+ "type": "string",
2953
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
2954
+ }
2955
+ },
2956
+ "required": [
2957
+ "slug"
2958
+ ],
2959
+ "examples": [
2960
+ {
2961
+ "slug": "agent-team-sqlite-dashboard"
2962
+ }
2963
+ ]
2964
+ },
2845
2965
  "TaskDetail": {
2846
2966
  "type": "object",
2847
2967
  "additionalProperties": false,