@bonesofspring/ai-rules 0.2.76 → 0.2.77

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 (593) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/docs/PRESET-CONTRIBUTION.md +6 -3
  3. package/docs/ZCODE.md +1 -1
  4. package/package.json +5 -1
  5. package/presets/_shared/ai-local/scripts/check-write-scope.mjs +70 -8
  6. package/presets/_shared/core/architecture/feature-delivery-workflow.md +1 -1
  7. package/presets/claude/android-kotlin/CLAUDE.md +1 -1
  8. package/presets/claude/android-kotlin/REPO_AGENTS.md +8 -0
  9. package/presets/claude/android-kotlin/agents/README.md +4 -0
  10. package/presets/claude/android-kotlin/agents/accessibility-reviewer.md +1 -1
  11. package/presets/claude/android-kotlin/agents/api-contract-reviewer.md +1 -1
  12. package/presets/claude/android-kotlin/agents/build-verifier.md +1 -1
  13. package/presets/claude/android-kotlin/agents/ci-investigator.md +0 -1
  14. package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -1
  15. package/presets/claude/android-kotlin/agents/codebase-analyzer.md +1 -1
  16. package/presets/claude/android-kotlin/agents/debugger.md +0 -1
  17. package/presets/claude/android-kotlin/agents/feature-developer.md +0 -1
  18. package/presets/claude/android-kotlin/agents/migration-specialist.md +1 -1
  19. package/presets/claude/android-kotlin/agents/mockup-reviewer.md +1 -0
  20. package/presets/claude/android-kotlin/agents/openspec-author.md +2 -1
  21. package/presets/claude/android-kotlin/agents/performance-auditor.md +1 -1
  22. package/presets/claude/android-kotlin/agents/qa-tester.md +0 -1
  23. package/presets/claude/android-kotlin/agents/security-reviewer.md +1 -1
  24. package/presets/claude/android-kotlin/agents/solution-architect.md +1 -1
  25. package/presets/claude/android-kotlin/agents/task-analyst.md +1 -1
  26. package/presets/claude/android-kotlin/agents/task-router.md +1 -1
  27. package/presets/claude/android-kotlin/agents/tech-writer.md +1 -1
  28. package/presets/claude/android-kotlin/agents/unit-test-generator.md +0 -1
  29. package/presets/claude/android-kotlin/agents/unit-test-healer.md +0 -1
  30. package/presets/claude/android-kotlin/agents/unit-test-planner.md +1 -1
  31. package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +66 -8
  32. package/presets/claude/android-kotlin/rules/architecture/reference-features.md +48 -2
  33. package/presets/claude/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  34. package/presets/claude/android-kotlin/team/fixtures/feature-parallel.json +84 -0
  35. package/presets/claude/go/CLAUDE.md +1 -1
  36. package/presets/claude/go/REPO_AGENTS.md +8 -0
  37. package/presets/claude/go/agents/README.md +4 -0
  38. package/presets/claude/go/agents/api-contract-reviewer.md +1 -1
  39. package/presets/claude/go/agents/build-verifier.md +1 -1
  40. package/presets/claude/go/agents/ci-investigator.md +0 -1
  41. package/presets/claude/go/agents/code-reviewer.md +3 -3
  42. package/presets/claude/go/agents/codebase-analyzer.md +1 -1
  43. package/presets/claude/go/agents/debugger.md +0 -1
  44. package/presets/claude/go/agents/feature-developer.md +2 -3
  45. package/presets/claude/go/agents/integration-test-generator.md +1 -2
  46. package/presets/claude/go/agents/integration-test-healer.md +1 -2
  47. package/presets/claude/go/agents/integration-test-planner.md +1 -2
  48. package/presets/claude/go/agents/migration-specialist.md +1 -1
  49. package/presets/claude/go/agents/openspec-author.md +2 -1
  50. package/presets/claude/go/agents/performance-auditor.md +1 -1
  51. package/presets/claude/go/agents/qa-tester.md +0 -1
  52. package/presets/claude/go/agents/security-reviewer.md +2 -2
  53. package/presets/claude/go/agents/solution-architect.md +1 -1
  54. package/presets/claude/go/agents/task-analyst.md +1 -1
  55. package/presets/claude/go/agents/task-router.md +1 -1
  56. package/presets/claude/go/agents/tech-writer.md +1 -1
  57. package/presets/claude/go/agents/unit-test-generator.md +1 -2
  58. package/presets/claude/go/agents/unit-test-healer.md +1 -2
  59. package/presets/claude/go/agents/unit-test-planner.md +1 -1
  60. package/presets/claude/go/rules/architecture/feature-delivery.md +50 -1
  61. package/presets/claude/go/rules/architecture/reference-features.md +22 -0
  62. package/presets/claude/go/skills/feature-delivery/SKILL.md +2 -2
  63. package/presets/claude/go/skills/unit-testing/SKILL.md +1 -1
  64. package/presets/claude/go/team/fixtures/feature-parallel.json +84 -0
  65. package/presets/claude/ios-swift/CLAUDE.md +1 -1
  66. package/presets/claude/ios-swift/REPO_AGENTS.md +8 -0
  67. package/presets/claude/ios-swift/agents/README.md +4 -0
  68. package/presets/claude/ios-swift/agents/accessibility-reviewer.md +1 -1
  69. package/presets/claude/ios-swift/agents/api-contract-reviewer.md +1 -1
  70. package/presets/claude/ios-swift/agents/build-verifier.md +1 -1
  71. package/presets/claude/ios-swift/agents/ci-investigator.md +0 -1
  72. package/presets/claude/ios-swift/agents/code-reviewer.md +1 -1
  73. package/presets/claude/ios-swift/agents/codebase-analyzer.md +1 -1
  74. package/presets/claude/ios-swift/agents/debugger.md +0 -1
  75. package/presets/claude/ios-swift/agents/feature-developer.md +0 -1
  76. package/presets/claude/ios-swift/agents/migration-specialist.md +1 -1
  77. package/presets/claude/ios-swift/agents/mockup-reviewer.md +1 -0
  78. package/presets/claude/ios-swift/agents/openspec-author.md +2 -1
  79. package/presets/claude/ios-swift/agents/performance-auditor.md +1 -1
  80. package/presets/claude/ios-swift/agents/qa-tester.md +0 -1
  81. package/presets/claude/ios-swift/agents/security-reviewer.md +1 -1
  82. package/presets/claude/ios-swift/agents/solution-architect.md +1 -1
  83. package/presets/claude/ios-swift/agents/task-analyst.md +1 -1
  84. package/presets/claude/ios-swift/agents/task-router.md +1 -1
  85. package/presets/claude/ios-swift/agents/tech-writer.md +1 -1
  86. package/presets/claude/ios-swift/agents/unit-test-generator.md +0 -1
  87. package/presets/claude/ios-swift/agents/unit-test-healer.md +0 -1
  88. package/presets/claude/ios-swift/agents/unit-test-planner.md +1 -1
  89. package/presets/claude/ios-swift/agents/xcuitest-test-generator.md +0 -1
  90. package/presets/claude/ios-swift/agents/xcuitest-test-healer.md +0 -1
  91. package/presets/claude/ios-swift/agents/xcuitest-test-planner.md +0 -1
  92. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +8 -8
  93. package/presets/claude/ios-swift/rules/architecture/reference-features.md +2 -21
  94. package/presets/claude/ios-swift/skills/unit-testing/SKILL.md +1 -1
  95. package/presets/claude/ios-swift/team/fixtures/feature-parallel.json +84 -0
  96. package/presets/claude/java/CLAUDE.md +2 -2
  97. package/presets/claude/java/REPO_AGENTS.md +8 -0
  98. package/presets/claude/java/agents/README.md +4 -0
  99. package/presets/claude/java/agents/api-contract-reviewer.md +1 -1
  100. package/presets/claude/java/agents/build-verifier.md +1 -1
  101. package/presets/claude/java/agents/ci-investigator.md +0 -1
  102. package/presets/claude/java/agents/code-reviewer.md +3 -3
  103. package/presets/claude/java/agents/codebase-analyzer.md +1 -1
  104. package/presets/claude/java/agents/debugger.md +0 -1
  105. package/presets/claude/java/agents/feature-developer.md +2 -3
  106. package/presets/claude/java/agents/integration-test-generator.md +1 -2
  107. package/presets/claude/java/agents/integration-test-healer.md +1 -2
  108. package/presets/claude/java/agents/integration-test-planner.md +1 -2
  109. package/presets/claude/java/agents/migration-specialist.md +1 -1
  110. package/presets/claude/java/agents/openspec-author.md +2 -1
  111. package/presets/claude/java/agents/performance-auditor.md +1 -1
  112. package/presets/claude/java/agents/qa-tester.md +0 -1
  113. package/presets/claude/java/agents/security-reviewer.md +2 -2
  114. package/presets/claude/java/agents/solution-architect.md +1 -1
  115. package/presets/claude/java/agents/task-analyst.md +1 -1
  116. package/presets/claude/java/agents/task-router.md +1 -1
  117. package/presets/claude/java/agents/tech-writer.md +1 -1
  118. package/presets/claude/java/agents/unit-test-generator.md +1 -2
  119. package/presets/claude/java/agents/unit-test-healer.md +1 -2
  120. package/presets/claude/java/agents/unit-test-planner.md +1 -1
  121. package/presets/claude/java/rules/architecture/feature-delivery.md +51 -1
  122. package/presets/claude/java/rules/architecture/reference-features.md +22 -0
  123. package/presets/claude/java/skills/feature-delivery/SKILL.md +2 -2
  124. package/presets/claude/java/team/fixtures/feature-parallel.json +84 -0
  125. package/presets/claude/mcp-ts/CLAUDE.md +1 -1
  126. package/presets/claude/mcp-ts/REPO_AGENTS.md +8 -0
  127. package/presets/claude/mcp-ts/agents/README.md +4 -0
  128. package/presets/claude/mcp-ts/agents/build-verifier.md +1 -1
  129. package/presets/claude/mcp-ts/agents/feature-developer.md +2 -3
  130. package/presets/claude/mcp-ts/agents/security-reviewer.md +2 -2
  131. package/presets/claude/mcp-ts/agents/solution-architect.md +1 -1
  132. package/presets/claude/mcp-ts/agents/task-analyst.md +1 -1
  133. package/presets/claude/mcp-ts/agents/task-router.md +1 -1
  134. package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +47 -1
  135. package/presets/claude/mcp-ts/rules/architecture/reference-features.md +22 -0
  136. package/presets/claude/mcp-ts/skills/code-review/SKILL.md +1 -1
  137. package/presets/claude/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
  138. package/presets/claude/mcp-ts/skills/unit-testing/SKILL.md +1 -1
  139. package/presets/claude/mcp-ts/team/fixtures/feature-parallel.json +84 -0
  140. package/presets/claude/mol/CLAUDE.md +1 -1
  141. package/presets/claude/mol/REPO_AGENTS.md +8 -0
  142. package/presets/claude/mol/agents/README.md +2 -4
  143. package/presets/claude/mol/agents/accessibility-reviewer.md +1 -0
  144. package/presets/claude/mol/agents/api-contract-reviewer.md +1 -0
  145. package/presets/claude/mol/agents/build-verifier.md +1 -0
  146. package/presets/claude/mol/agents/code-reviewer.md +1 -0
  147. package/presets/claude/mol/agents/codebase-analyzer.md +1 -0
  148. package/presets/claude/mol/agents/migration-specialist.md +1 -0
  149. package/presets/claude/mol/agents/mockup-reviewer.md +1 -0
  150. package/presets/claude/mol/agents/openspec-author.md +1 -0
  151. package/presets/claude/mol/agents/performance-auditor.md +1 -0
  152. package/presets/claude/mol/agents/security-reviewer.md +1 -0
  153. package/presets/claude/mol/agents/solution-architect.md +1 -0
  154. package/presets/claude/mol/agents/task-analyst.md +1 -0
  155. package/presets/claude/mol/agents/task-router.md +1 -0
  156. package/presets/claude/mol/agents/tech-writer.md +1 -0
  157. package/presets/claude/mol/agents/unit-test-planner.md +1 -0
  158. package/presets/claude/mol/rules/architecture/feature-delivery-workflow.md +10 -10
  159. package/presets/claude/mol/rules/architecture/reference-features.md +0 -19
  160. package/presets/claude/next/CLAUDE.md +3 -3
  161. package/presets/claude/next/REPO_AGENTS.md +8 -0
  162. package/presets/claude/next/agents/README.md +4 -0
  163. package/presets/claude/next/agents/accessibility-reviewer.md +1 -0
  164. package/presets/claude/next/agents/api-contract-reviewer.md +1 -0
  165. package/presets/claude/next/agents/build-verifier.md +1 -0
  166. package/presets/claude/next/agents/code-reviewer.md +1 -0
  167. package/presets/claude/next/agents/codebase-analyzer.md +1 -1
  168. package/presets/claude/next/agents/migration-specialist.md +1 -0
  169. package/presets/claude/next/agents/mockup-reviewer.md +1 -0
  170. package/presets/claude/next/agents/openspec-author.md +1 -0
  171. package/presets/claude/next/agents/performance-auditor.md +1 -0
  172. package/presets/claude/next/agents/security-reviewer.md +1 -0
  173. package/presets/claude/next/agents/solution-architect.md +1 -0
  174. package/presets/claude/next/agents/task-analyst.md +1 -0
  175. package/presets/claude/next/agents/task-router.md +12 -0
  176. package/presets/claude/next/agents/tech-writer.md +1 -0
  177. package/presets/claude/next/agents/unit-test-planner.md +1 -0
  178. package/presets/claude/next/ai-local/rules-library/agent-artifacts-no-local-paths.md +71 -0
  179. package/presets/claude/next/ai-local/rules-library/agent-pipeline-gates.md +19 -0
  180. package/presets/claude/next/ai-local/rules-library/analytics-events.md +18 -0
  181. package/presets/claude/next/ai-local/rules-library/api-contract-source.md +14 -0
  182. package/presets/claude/next/ai-local/rules-library/artifact-lifecycle.md +17 -0
  183. package/presets/claude/next/ai-local/rules-library/code-style.md +68 -0
  184. package/presets/claude/next/ai-local/rules-library/commit-hygiene.md +17 -0
  185. package/presets/claude/next/ai-local/rules-library/component-child-decomposition.md +81 -0
  186. package/presets/claude/next/ai-local/rules-library/feature-flags-experiments.md +15 -0
  187. package/presets/claude/next/ai-local/rules-library/mcp-required-for-ui-layout.md +45 -0
  188. package/presets/claude/next/ai-local/rules-library/no-react-fc.md +46 -0
  189. package/presets/claude/next/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
  190. package/presets/claude/next/ai-local/rules-library/pre-pr-checklist.md +16 -0
  191. package/presets/claude/next/ai-local/rules-library/pwa-service-worker.md +15 -0
  192. package/presets/claude/next/ai-local/rules-library/qa-test-cases.md +14 -0
  193. package/presets/claude/next/ai-local/rules-library/router-pages.md +25 -0
  194. package/presets/claude/next/ai-local/rules-library/single-source-copy-constants.md +18 -0
  195. package/presets/claude/next/ai-local/rules-library/storybook-catalog-structure.md +62 -0
  196. package/presets/claude/next/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
  197. package/presets/claude/next/ai-local/rules-library/storybook-csf-authoring.md +100 -0
  198. package/presets/claude/next/ai-local/rules-library/storybook-dev-compare-figma.md +72 -0
  199. package/presets/claude/next/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
  200. package/presets/claude/next/ai-local/rules-library/storybook-modals.md +64 -0
  201. package/presets/claude/next/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
  202. package/presets/claude/next/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
  203. package/presets/claude/next/ai-local/rules-library/ui-change-review-gate.md +16 -0
  204. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +13 -13
  205. package/presets/claude/next/rules/architecture/reference-features.md +0 -19
  206. package/presets/claude/next/rules/stack/next-app-core.md +1 -1
  207. package/presets/claude/next/team/fixtures/feature-l2-lite.json +27 -0
  208. package/presets/claude/nuxt/CLAUDE.md +3 -3
  209. package/presets/claude/nuxt/REPO_AGENTS.md +8 -0
  210. package/presets/claude/nuxt/agents/README.md +2 -4
  211. package/presets/claude/nuxt/agents/accessibility-reviewer.md +1 -0
  212. package/presets/claude/nuxt/agents/api-contract-reviewer.md +1 -0
  213. package/presets/claude/nuxt/agents/build-verifier.md +1 -0
  214. package/presets/claude/nuxt/agents/code-reviewer.md +1 -0
  215. package/presets/claude/nuxt/agents/codebase-analyzer.md +1 -1
  216. package/presets/claude/nuxt/agents/migration-specialist.md +1 -0
  217. package/presets/claude/nuxt/agents/mockup-reviewer.md +1 -0
  218. package/presets/claude/nuxt/agents/openspec-author.md +2 -1
  219. package/presets/claude/nuxt/agents/performance-auditor.md +1 -0
  220. package/presets/claude/nuxt/agents/playwright-test-generator.md +24 -68
  221. package/presets/claude/nuxt/agents/playwright-test-healer.md +28 -54
  222. package/presets/claude/nuxt/agents/playwright-test-planner.md +18 -51
  223. package/presets/claude/nuxt/agents/security-reviewer.md +1 -0
  224. package/presets/claude/nuxt/agents/solution-architect.md +1 -0
  225. package/presets/claude/nuxt/agents/task-analyst.md +12 -0
  226. package/presets/claude/nuxt/agents/task-router.md +1 -0
  227. package/presets/claude/nuxt/agents/tech-writer.md +1 -0
  228. package/presets/claude/nuxt/agents/unit-test-planner.md +1 -0
  229. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +9 -9
  230. package/presets/claude/nuxt/rules/architecture/reference-features.md +1 -20
  231. package/presets/claude/nuxt/team/fixtures/feature-parallel.json +84 -0
  232. package/presets/claude/php-hexagonal/CLAUDE.md +2 -2
  233. package/presets/claude/php-hexagonal/REPO_AGENTS.md +8 -0
  234. package/presets/claude/php-hexagonal/agents/README.md +4 -0
  235. package/presets/claude/php-hexagonal/agents/api-contract-reviewer.md +1 -1
  236. package/presets/claude/php-hexagonal/agents/build-verifier.md +1 -1
  237. package/presets/claude/php-hexagonal/agents/ci-investigator.md +0 -1
  238. package/presets/claude/php-hexagonal/agents/code-reviewer.md +3 -3
  239. package/presets/claude/php-hexagonal/agents/codebase-analyzer.md +1 -1
  240. package/presets/claude/php-hexagonal/agents/debugger.md +0 -1
  241. package/presets/claude/php-hexagonal/agents/feature-developer.md +2 -3
  242. package/presets/claude/php-hexagonal/agents/integration-test-generator.md +1 -2
  243. package/presets/claude/php-hexagonal/agents/integration-test-healer.md +1 -2
  244. package/presets/claude/php-hexagonal/agents/integration-test-planner.md +1 -2
  245. package/presets/claude/php-hexagonal/agents/migration-specialist.md +1 -1
  246. package/presets/claude/php-hexagonal/agents/openspec-author.md +2 -1
  247. package/presets/claude/php-hexagonal/agents/performance-auditor.md +1 -1
  248. package/presets/claude/php-hexagonal/agents/qa-tester.md +0 -1
  249. package/presets/claude/php-hexagonal/agents/security-reviewer.md +2 -2
  250. package/presets/claude/php-hexagonal/agents/solution-architect.md +1 -1
  251. package/presets/claude/php-hexagonal/agents/task-analyst.md +1 -1
  252. package/presets/claude/php-hexagonal/agents/task-router.md +1 -1
  253. package/presets/claude/php-hexagonal/agents/tech-writer.md +1 -1
  254. package/presets/claude/php-hexagonal/agents/unit-test-generator.md +1 -2
  255. package/presets/claude/php-hexagonal/agents/unit-test-healer.md +1 -2
  256. package/presets/claude/php-hexagonal/agents/unit-test-planner.md +1 -1
  257. package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +51 -1
  258. package/presets/claude/php-hexagonal/rules/architecture/reference-features.md +25 -0
  259. package/presets/claude/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
  260. package/presets/claude/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
  261. package/presets/claude/php-laravel/CLAUDE.md +1 -1
  262. package/presets/claude/php-laravel/REPO_AGENTS.md +8 -0
  263. package/presets/claude/php-laravel/agents/README.md +4 -0
  264. package/presets/claude/php-laravel/agents/api-contract-reviewer.md +1 -1
  265. package/presets/claude/php-laravel/agents/build-verifier.md +1 -1
  266. package/presets/claude/php-laravel/agents/ci-investigator.md +0 -1
  267. package/presets/claude/php-laravel/agents/code-reviewer.md +1 -1
  268. package/presets/claude/php-laravel/agents/codebase-analyzer.md +1 -1
  269. package/presets/claude/php-laravel/agents/debugger.md +0 -1
  270. package/presets/claude/php-laravel/agents/feature-developer.md +2 -3
  271. package/presets/claude/php-laravel/agents/integration-test-generator.md +1 -2
  272. package/presets/claude/php-laravel/agents/integration-test-healer.md +1 -2
  273. package/presets/claude/php-laravel/agents/integration-test-planner.md +1 -2
  274. package/presets/claude/php-laravel/agents/migration-specialist.md +1 -1
  275. package/presets/claude/php-laravel/agents/openspec-author.md +2 -1
  276. package/presets/claude/php-laravel/agents/performance-auditor.md +1 -1
  277. package/presets/claude/php-laravel/agents/qa-tester.md +0 -1
  278. package/presets/claude/php-laravel/agents/security-reviewer.md +1 -1
  279. package/presets/claude/php-laravel/agents/solution-architect.md +1 -1
  280. package/presets/claude/php-laravel/agents/task-analyst.md +1 -1
  281. package/presets/claude/php-laravel/agents/task-router.md +1 -1
  282. package/presets/claude/php-laravel/agents/tech-writer.md +1 -1
  283. package/presets/claude/php-laravel/agents/unit-test-generator.md +1 -2
  284. package/presets/claude/php-laravel/agents/unit-test-healer.md +1 -2
  285. package/presets/claude/php-laravel/agents/unit-test-planner.md +1 -1
  286. package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +54 -1
  287. package/presets/claude/php-laravel/rules/architecture/reference-features.md +27 -0
  288. package/presets/claude/php-laravel/skills/feature-delivery/SKILL.md +2 -2
  289. package/presets/claude/php-laravel/team/fixtures/feature-parallel.json +84 -0
  290. package/presets/claude/svelte/CLAUDE.md +3 -3
  291. package/presets/claude/svelte/REPO_AGENTS.md +8 -0
  292. package/presets/claude/svelte/agents/README.md +2 -4
  293. package/presets/claude/svelte/agents/accessibility-reviewer.md +1 -0
  294. package/presets/claude/svelte/agents/api-contract-reviewer.md +1 -0
  295. package/presets/claude/svelte/agents/build-verifier.md +1 -0
  296. package/presets/claude/svelte/agents/code-reviewer.md +1 -0
  297. package/presets/claude/svelte/agents/codebase-analyzer.md +1 -1
  298. package/presets/claude/svelte/agents/migration-specialist.md +1 -0
  299. package/presets/claude/svelte/agents/mockup-reviewer.md +1 -0
  300. package/presets/claude/svelte/agents/openspec-author.md +2 -1
  301. package/presets/claude/svelte/agents/performance-auditor.md +1 -0
  302. package/presets/claude/svelte/agents/playwright-test-generator.md +24 -68
  303. package/presets/claude/svelte/agents/playwright-test-healer.md +28 -54
  304. package/presets/claude/svelte/agents/playwright-test-planner.md +18 -51
  305. package/presets/claude/svelte/agents/security-reviewer.md +1 -0
  306. package/presets/claude/svelte/agents/solution-architect.md +1 -0
  307. package/presets/claude/svelte/agents/task-analyst.md +12 -0
  308. package/presets/claude/svelte/agents/task-router.md +1 -1
  309. package/presets/claude/svelte/agents/tech-writer.md +1 -0
  310. package/presets/claude/svelte/agents/unit-test-planner.md +1 -0
  311. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +7 -7
  312. package/presets/claude/svelte/rules/architecture/reference-features.md +1 -20
  313. package/presets/claude/svelte/team/fixtures/feature-parallel.json +84 -0
  314. package/presets/cursor/android-kotlin/REPO_AGENTS.md +8 -0
  315. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +17 -5
  316. package/presets/cursor/android-kotlin/rules/feature-delivery-workflow.mdc +66 -8
  317. package/presets/cursor/android-kotlin/rules/reference-features.mdc +48 -2
  318. package/presets/cursor/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  319. package/presets/cursor/android-kotlin/team/fixtures/feature-parallel.json +84 -0
  320. package/presets/cursor/go/REPO_AGENTS.md +8 -0
  321. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +16 -5
  322. package/presets/cursor/go/rules/feature-delivery-workflow.mdc +63 -5
  323. package/presets/cursor/go/rules/reference-features.mdc +46 -6
  324. package/presets/cursor/go/skills/feature-delivery/SKILL.md +2 -2
  325. package/presets/cursor/go/skills/unit-testing/SKILL.md +1 -1
  326. package/presets/cursor/go/team/fixtures/feature-parallel.json +84 -0
  327. package/presets/cursor/ios-swift/REPO_AGENTS.md +8 -0
  328. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +17 -5
  329. package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +64 -8
  330. package/presets/cursor/ios-swift/rules/reference-features.mdc +44 -21
  331. package/presets/cursor/ios-swift/skills/unit-testing/SKILL.md +1 -1
  332. package/presets/cursor/ios-swift/team/fixtures/feature-parallel.json +84 -0
  333. package/presets/cursor/java/AGENTS.md +1 -1
  334. package/presets/cursor/java/REPO_AGENTS.md +8 -0
  335. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +16 -5
  336. package/presets/cursor/java/rules/feature-delivery-workflow.mdc +63 -5
  337. package/presets/cursor/java/rules/reference-features.mdc +46 -6
  338. package/presets/cursor/java/skills/feature-delivery/SKILL.md +2 -2
  339. package/presets/cursor/java/team/fixtures/feature-parallel.json +84 -0
  340. package/presets/cursor/mcp-ts/REPO_AGENTS.md +8 -0
  341. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +17 -6
  342. package/presets/cursor/mcp-ts/rules/feature-delivery-workflow.mdc +63 -5
  343. package/presets/cursor/mcp-ts/rules/reference-features.mdc +46 -6
  344. package/presets/cursor/mcp-ts/skills/code-review/SKILL.md +1 -1
  345. package/presets/cursor/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
  346. package/presets/cursor/mcp-ts/skills/unit-testing/SKILL.md +1 -1
  347. package/presets/cursor/mcp-ts/team/fixtures/feature-parallel.json +84 -0
  348. package/presets/cursor/mol/REPO_AGENTS.md +8 -0
  349. package/presets/cursor/mol/rules/agent-team-orchestrator.mdc +16 -5
  350. package/presets/cursor/mol/rules/feature-delivery-workflow.mdc +65 -9
  351. package/presets/cursor/mol/rules/reference-features.mdc +43 -20
  352. package/presets/cursor/next/README.md +2 -2
  353. package/presets/cursor/next/REPO_AGENTS.md +8 -0
  354. package/presets/cursor/next/rules/README.md +2 -2
  355. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +16 -5
  356. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +68 -12
  357. package/presets/cursor/next/rules/next-app-core.mdc +1 -1
  358. package/presets/cursor/next/rules/reference-features.mdc +42 -19
  359. package/presets/cursor/nuxt/REPO_AGENTS.md +8 -0
  360. package/presets/cursor/nuxt/rules/README.md +2 -2
  361. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +16 -5
  362. package/presets/cursor/nuxt/rules/feature-delivery-workflow.mdc +64 -8
  363. package/presets/cursor/nuxt/rules/reference-features.mdc +37 -14
  364. package/presets/cursor/nuxt/team/fixtures/feature-parallel.json +84 -0
  365. package/presets/cursor/php-hexagonal/AGENTS.md +1 -1
  366. package/presets/cursor/php-hexagonal/REPO_AGENTS.md +8 -0
  367. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +16 -5
  368. package/presets/cursor/php-hexagonal/rules/feature-delivery-workflow.mdc +63 -5
  369. package/presets/cursor/php-hexagonal/rules/reference-features.mdc +46 -6
  370. package/presets/cursor/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
  371. package/presets/cursor/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
  372. package/presets/cursor/php-laravel/AGENTS.md +1 -1
  373. package/presets/cursor/php-laravel/REPO_AGENTS.md +8 -0
  374. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +16 -5
  375. package/presets/cursor/php-laravel/rules/feature-delivery-workflow.mdc +63 -5
  376. package/presets/cursor/php-laravel/rules/reference-features.mdc +46 -6
  377. package/presets/cursor/php-laravel/skills/feature-delivery/SKILL.md +2 -2
  378. package/presets/cursor/php-laravel/team/fixtures/feature-parallel.json +84 -0
  379. package/presets/cursor/svelte/REPO_AGENTS.md +8 -0
  380. package/presets/cursor/svelte/rules/README.md +1 -1
  381. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +16 -5
  382. package/presets/cursor/svelte/rules/feature-delivery-workflow.mdc +62 -6
  383. package/presets/cursor/svelte/rules/reference-features.mdc +40 -17
  384. package/presets/cursor/svelte/team/fixtures/feature-parallel.json +84 -0
  385. package/presets/mavis/android-kotlin/REPO_AGENTS.md +8 -0
  386. package/presets/mavis/android-kotlin/adapter-map.json +11 -2
  387. package/presets/mavis/android-kotlin/rules/feature-delivery-workflow.md +66 -8
  388. package/presets/mavis/android-kotlin/rules/reference-features.md +48 -2
  389. package/presets/mavis/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  390. package/presets/mavis/android-kotlin/team/fixtures/feature-parallel.json +84 -0
  391. package/presets/mavis/go/REPO_AGENTS.md +8 -0
  392. package/presets/mavis/go/adapter-map.json +9 -1
  393. package/presets/mavis/go/rules/feature-delivery-workflow.md +50 -1
  394. package/presets/mavis/go/rules/reference-features.md +22 -0
  395. package/presets/mavis/go/skills/feature-delivery/SKILL.md +2 -2
  396. package/presets/mavis/go/skills/unit-testing/SKILL.md +1 -1
  397. package/presets/mavis/go/team/fixtures/feature-parallel.json +84 -0
  398. package/presets/mavis/ios-swift/REPO_AGENTS.md +8 -0
  399. package/presets/mavis/ios-swift/adapter-map.json +9 -1
  400. package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +8 -8
  401. package/presets/mavis/ios-swift/rules/reference-features.md +2 -21
  402. package/presets/mavis/ios-swift/skills/unit-testing/SKILL.md +1 -1
  403. package/presets/mavis/ios-swift/team/fixtures/feature-parallel.json +84 -0
  404. package/presets/mavis/java/MAVIS.md +1 -1
  405. package/presets/mavis/java/REPO_AGENTS.md +8 -0
  406. package/presets/mavis/java/adapter-map.json +9 -1
  407. package/presets/mavis/java/rules/feature-delivery-workflow.md +51 -1
  408. package/presets/mavis/java/rules/reference-features.md +22 -0
  409. package/presets/mavis/java/skills/feature-delivery/SKILL.md +2 -2
  410. package/presets/mavis/java/team/fixtures/feature-parallel.json +84 -0
  411. package/presets/mavis/mcp-ts/REPO_AGENTS.md +8 -0
  412. package/presets/mavis/mcp-ts/adapter-map.json +9 -1
  413. package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +47 -1
  414. package/presets/mavis/mcp-ts/rules/reference-features.md +22 -0
  415. package/presets/mavis/mcp-ts/skills/code-review/SKILL.md +1 -1
  416. package/presets/mavis/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
  417. package/presets/mavis/mcp-ts/skills/unit-testing/SKILL.md +1 -1
  418. package/presets/mavis/mcp-ts/team/fixtures/feature-parallel.json +84 -0
  419. package/presets/mavis/mol/REPO_AGENTS.md +8 -0
  420. package/presets/mavis/mol/adapter-map.json +1 -1
  421. package/presets/mavis/mol/rules/feature-delivery-workflow.md +10 -10
  422. package/presets/mavis/mol/rules/reference-features.md +0 -19
  423. package/presets/mavis/next/REPO_AGENTS.md +8 -0
  424. package/presets/mavis/next/adapter-map.json +1 -1
  425. package/presets/mavis/next/rules/feature-delivery-workflow.md +13 -13
  426. package/presets/mavis/next/rules/next-app-core.md +1 -1
  427. package/presets/mavis/next/rules/reference-features.md +0 -19
  428. package/presets/mavis/nuxt/REPO_AGENTS.md +8 -0
  429. package/presets/mavis/nuxt/adapter-map.json +9 -1
  430. package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +9 -9
  431. package/presets/mavis/nuxt/rules/reference-features.md +1 -20
  432. package/presets/mavis/nuxt/team/fixtures/feature-parallel.json +84 -0
  433. package/presets/mavis/php-hexagonal/MAVIS.md +1 -1
  434. package/presets/mavis/php-hexagonal/REPO_AGENTS.md +8 -0
  435. package/presets/mavis/php-hexagonal/adapter-map.json +9 -1
  436. package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
  437. package/presets/mavis/php-hexagonal/rules/reference-features.md +25 -0
  438. package/presets/mavis/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
  439. package/presets/mavis/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
  440. package/presets/mavis/php-laravel/MAVIS.md +1 -1
  441. package/presets/mavis/php-laravel/REPO_AGENTS.md +8 -0
  442. package/presets/mavis/php-laravel/adapter-map.json +9 -1
  443. package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +54 -1
  444. package/presets/mavis/php-laravel/rules/reference-features.md +27 -0
  445. package/presets/mavis/php-laravel/skills/feature-delivery/SKILL.md +2 -2
  446. package/presets/mavis/php-laravel/team/fixtures/feature-parallel.json +84 -0
  447. package/presets/mavis/svelte/REPO_AGENTS.md +8 -0
  448. package/presets/mavis/svelte/adapter-map.json +9 -1
  449. package/presets/mavis/svelte/rules/feature-delivery-workflow.md +7 -7
  450. package/presets/mavis/svelte/rules/reference-features.md +1 -20
  451. package/presets/mavis/svelte/team/fixtures/feature-parallel.json +84 -0
  452. package/presets/opencode/android-kotlin/REPO_AGENTS.md +8 -0
  453. package/presets/opencode/android-kotlin/adapter-map.json +11 -2
  454. package/presets/opencode/android-kotlin/rules/feature-delivery-workflow.md +66 -8
  455. package/presets/opencode/android-kotlin/rules/reference-features.md +48 -2
  456. package/presets/opencode/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  457. package/presets/opencode/android-kotlin/team/fixtures/feature-parallel.json +84 -0
  458. package/presets/opencode/go/REPO_AGENTS.md +8 -0
  459. package/presets/opencode/go/adapter-map.json +9 -1
  460. package/presets/opencode/go/rules/feature-delivery-workflow.md +50 -1
  461. package/presets/opencode/go/rules/reference-features.md +22 -0
  462. package/presets/opencode/go/skills/feature-delivery/SKILL.md +2 -2
  463. package/presets/opencode/go/skills/unit-testing/SKILL.md +1 -1
  464. package/presets/opencode/go/team/fixtures/feature-parallel.json +84 -0
  465. package/presets/opencode/ios-swift/REPO_AGENTS.md +8 -0
  466. package/presets/opencode/ios-swift/adapter-map.json +9 -1
  467. package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +8 -8
  468. package/presets/opencode/ios-swift/rules/reference-features.md +2 -21
  469. package/presets/opencode/ios-swift/skills/unit-testing/SKILL.md +1 -1
  470. package/presets/opencode/ios-swift/team/fixtures/feature-parallel.json +84 -0
  471. package/presets/opencode/java/OPENCODE.md +1 -1
  472. package/presets/opencode/java/REPO_AGENTS.md +8 -0
  473. package/presets/opencode/java/adapter-map.json +9 -1
  474. package/presets/opencode/java/rules/feature-delivery-workflow.md +51 -1
  475. package/presets/opencode/java/rules/reference-features.md +22 -0
  476. package/presets/opencode/java/skills/feature-delivery/SKILL.md +2 -2
  477. package/presets/opencode/java/team/fixtures/feature-parallel.json +84 -0
  478. package/presets/opencode/mcp-ts/REPO_AGENTS.md +8 -0
  479. package/presets/opencode/mcp-ts/adapter-map.json +9 -1
  480. package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +47 -1
  481. package/presets/opencode/mcp-ts/rules/reference-features.md +22 -0
  482. package/presets/opencode/mcp-ts/skills/code-review/SKILL.md +1 -1
  483. package/presets/opencode/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
  484. package/presets/opencode/mcp-ts/skills/unit-testing/SKILL.md +1 -1
  485. package/presets/opencode/mcp-ts/team/fixtures/feature-parallel.json +84 -0
  486. package/presets/opencode/mol/REPO_AGENTS.md +8 -0
  487. package/presets/opencode/mol/adapter-map.json +1 -1
  488. package/presets/opencode/mol/rules/feature-delivery-workflow.md +10 -10
  489. package/presets/opencode/mol/rules/reference-features.md +0 -19
  490. package/presets/opencode/next/REPO_AGENTS.md +8 -0
  491. package/presets/opencode/next/adapter-map.json +1 -1
  492. package/presets/opencode/next/rules/feature-delivery-workflow.md +13 -13
  493. package/presets/opencode/next/rules/next-app-core.md +1 -1
  494. package/presets/opencode/next/rules/reference-features.md +0 -19
  495. package/presets/opencode/nuxt/REPO_AGENTS.md +8 -0
  496. package/presets/opencode/nuxt/adapter-map.json +9 -1
  497. package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +9 -9
  498. package/presets/opencode/nuxt/rules/reference-features.md +1 -20
  499. package/presets/opencode/nuxt/team/fixtures/feature-parallel.json +84 -0
  500. package/presets/opencode/php-hexagonal/OPENCODE.md +1 -1
  501. package/presets/opencode/php-hexagonal/REPO_AGENTS.md +8 -0
  502. package/presets/opencode/php-hexagonal/adapter-map.json +9 -1
  503. package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
  504. package/presets/opencode/php-hexagonal/rules/reference-features.md +25 -0
  505. package/presets/opencode/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
  506. package/presets/opencode/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
  507. package/presets/opencode/php-laravel/OPENCODE.md +1 -1
  508. package/presets/opencode/php-laravel/REPO_AGENTS.md +8 -0
  509. package/presets/opencode/php-laravel/adapter-map.json +9 -1
  510. package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +54 -1
  511. package/presets/opencode/php-laravel/rules/reference-features.md +27 -0
  512. package/presets/opencode/php-laravel/skills/feature-delivery/SKILL.md +2 -2
  513. package/presets/opencode/php-laravel/team/fixtures/feature-parallel.json +84 -0
  514. package/presets/opencode/svelte/REPO_AGENTS.md +8 -0
  515. package/presets/opencode/svelte/adapter-map.json +9 -1
  516. package/presets/opencode/svelte/rules/feature-delivery-workflow.md +7 -7
  517. package/presets/opencode/svelte/rules/reference-features.md +1 -20
  518. package/presets/opencode/svelte/team/fixtures/feature-parallel.json +84 -0
  519. package/presets/zcode/android-kotlin/REPO_AGENTS.md +8 -0
  520. package/presets/zcode/android-kotlin/adapter-map.json +11 -2
  521. package/presets/zcode/android-kotlin/rules/README.md +3 -3
  522. package/presets/zcode/android-kotlin/rules/feature-delivery-workflow.md +66 -8
  523. package/presets/zcode/android-kotlin/rules/reference-features.md +48 -2
  524. package/presets/zcode/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  525. package/presets/zcode/android-kotlin/team/fixtures/feature-parallel.json +84 -0
  526. package/presets/zcode/go/REPO_AGENTS.md +8 -0
  527. package/presets/zcode/go/adapter-map.json +9 -1
  528. package/presets/zcode/go/rules/README.md +3 -3
  529. package/presets/zcode/go/rules/feature-delivery-workflow.md +50 -1
  530. package/presets/zcode/go/rules/reference-features.md +22 -0
  531. package/presets/zcode/go/skills/feature-delivery/SKILL.md +2 -2
  532. package/presets/zcode/go/skills/unit-testing/SKILL.md +1 -1
  533. package/presets/zcode/go/team/fixtures/feature-parallel.json +84 -0
  534. package/presets/zcode/ios-swift/REPO_AGENTS.md +8 -0
  535. package/presets/zcode/ios-swift/adapter-map.json +9 -1
  536. package/presets/zcode/ios-swift/rules/README.md +3 -3
  537. package/presets/zcode/ios-swift/rules/feature-delivery-workflow.md +8 -8
  538. package/presets/zcode/ios-swift/rules/reference-features.md +2 -21
  539. package/presets/zcode/ios-swift/skills/unit-testing/SKILL.md +1 -1
  540. package/presets/zcode/ios-swift/team/fixtures/feature-parallel.json +84 -0
  541. package/presets/zcode/java/REPO_AGENTS.md +8 -0
  542. package/presets/zcode/java/adapter-map.json +9 -1
  543. package/presets/zcode/java/rules/README.md +3 -3
  544. package/presets/zcode/java/rules/feature-delivery-workflow.md +51 -1
  545. package/presets/zcode/java/rules/reference-features.md +22 -0
  546. package/presets/zcode/java/skills/feature-delivery/SKILL.md +2 -2
  547. package/presets/zcode/java/team/fixtures/feature-parallel.json +84 -0
  548. package/presets/zcode/mcp-ts/REPO_AGENTS.md +8 -0
  549. package/presets/zcode/mcp-ts/adapter-map.json +9 -1
  550. package/presets/zcode/mcp-ts/rules/README.md +3 -3
  551. package/presets/zcode/mcp-ts/rules/feature-delivery-workflow.md +47 -1
  552. package/presets/zcode/mcp-ts/rules/reference-features.md +22 -0
  553. package/presets/zcode/mcp-ts/skills/code-review/SKILL.md +1 -1
  554. package/presets/zcode/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
  555. package/presets/zcode/mcp-ts/skills/unit-testing/SKILL.md +1 -1
  556. package/presets/zcode/mcp-ts/team/fixtures/feature-parallel.json +84 -0
  557. package/presets/zcode/mol/REPO_AGENTS.md +8 -0
  558. package/presets/zcode/mol/adapter-map.json +1 -1
  559. package/presets/zcode/mol/rules/README.md +3 -3
  560. package/presets/zcode/mol/rules/feature-delivery-workflow.md +10 -10
  561. package/presets/zcode/mol/rules/reference-features.md +0 -19
  562. package/presets/zcode/next/REPO_AGENTS.md +8 -0
  563. package/presets/zcode/next/adapter-map.json +1 -1
  564. package/presets/zcode/next/rules/README.md +3 -3
  565. package/presets/zcode/next/rules/feature-delivery-workflow.md +13 -13
  566. package/presets/zcode/next/rules/next-app-core.md +1 -1
  567. package/presets/zcode/next/rules/reference-features.md +0 -19
  568. package/presets/zcode/nuxt/REPO_AGENTS.md +8 -0
  569. package/presets/zcode/nuxt/adapter-map.json +9 -1
  570. package/presets/zcode/nuxt/rules/README.md +3 -3
  571. package/presets/zcode/nuxt/rules/feature-delivery-workflow.md +9 -9
  572. package/presets/zcode/nuxt/rules/reference-features.md +1 -20
  573. package/presets/zcode/nuxt/team/fixtures/feature-parallel.json +84 -0
  574. package/presets/zcode/php-hexagonal/REPO_AGENTS.md +8 -0
  575. package/presets/zcode/php-hexagonal/adapter-map.json +9 -1
  576. package/presets/zcode/php-hexagonal/rules/README.md +3 -3
  577. package/presets/zcode/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
  578. package/presets/zcode/php-hexagonal/rules/reference-features.md +25 -0
  579. package/presets/zcode/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
  580. package/presets/zcode/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
  581. package/presets/zcode/php-laravel/REPO_AGENTS.md +8 -0
  582. package/presets/zcode/php-laravel/adapter-map.json +9 -1
  583. package/presets/zcode/php-laravel/rules/README.md +3 -3
  584. package/presets/zcode/php-laravel/rules/feature-delivery-workflow.md +54 -1
  585. package/presets/zcode/php-laravel/rules/reference-features.md +27 -0
  586. package/presets/zcode/php-laravel/skills/feature-delivery/SKILL.md +2 -2
  587. package/presets/zcode/php-laravel/team/fixtures/feature-parallel.json +84 -0
  588. package/presets/zcode/svelte/REPO_AGENTS.md +8 -0
  589. package/presets/zcode/svelte/adapter-map.json +9 -1
  590. package/presets/zcode/svelte/rules/README.md +3 -3
  591. package/presets/zcode/svelte/rules/feature-delivery-workflow.md +7 -7
  592. package/presets/zcode/svelte/rules/reference-features.md +1 -20
  593. package/presets/zcode/svelte/team/fixtures/feature-parallel.json +84 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: task-router
3
3
  description: Task routing specialist. Analyzes user prompt, detects intent, and writes pipeline.json with ordered agent steps. Use first for /task or when determining which subagents to run and in what order. No production code — writes team artifacts only.
4
- readonly: false
4
+ disallowedTools: Edit, MultiEdit, NotebookEdit
5
5
  model: fast
6
6
  ---
7
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: tech-writer
3
3
  description: Technical documentation specialist. Writes feature READMEs, migration guides, ADR summaries, and changelog entries from completed task artifacts. Docs-only — never edits production application code.
4
+ disallowedTools: Edit, MultiEdit, NotebookEdit
4
5
  model: fast
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: unit-test-planner
3
3
  description: Unit test planning specialist. Creates coverage plans for mappers, Svelte stores/runes actions, HTTP client behavior, and component logic. Writes unit-test-plan.md only; never writes production code or spec files.
4
+ disallowedTools: Edit, MultiEdit, NotebookEdit
4
5
  model: inherit
5
6
  ---
6
7
 
@@ -61,7 +61,7 @@ flowchart LR
61
61
 
62
62
  ## Zone → rules matrix
63
63
 
64
- Filled in the stack adapter: concrete globs/paths and `.mdc` / topic `.md` names.
64
+ Filled in the stack adapter: concrete globs/paths and each rule name in the format that platform ships.
65
65
 
66
66
  ## Stack notes
67
67
 
@@ -71,7 +71,7 @@ Typical feature with backend data and shared state. Layer details — `architect
71
71
 
72
72
  Canonical paths: `src/routes/**`, `src/lib/{components,stores,api,clients,types}/**`, `tests/e2e/**`. Aliases: `$lib` preferred; `@/` if configured. State: `store-svelte` (runes primary; legacy stores secondary).
73
73
 
74
- ## Checklist (work order)
74
+ ### Checklist (work order)
75
75
 
76
76
  1. **Domain types** — `src/lib/types/**`, barrel (`public-imports`, `layer-barrel-exports`); JSDoc — `types-jsdoc`.
77
77
  2. **API contract** — DTOs where the repo uses them; domain types in `$lib/types`.
@@ -83,7 +83,7 @@ Canonical paths: `src/routes/**`, `src/lib/{components,stores,api,clients,types}
83
83
  8. **E2E** — `tests/e2e/<Area>/<plan>.cases.md` + `*.spec.ts`.
84
84
  9. **Gate** — `post-change-lint`: `lint:js`, `lint:css`, `check`. When the current WP spans **more than one** layer or module, `implementation.md` includes a **Code Map** (3–8 annotated paths) and **Suggested Review Order** (`concern | path:line | ≤15 word note`). Omit both for a single-file or single-layer WP.
85
85
 
86
- ## Partial scenarios
86
+ ### Partial scenarios
87
87
 
88
88
  | Task | Minimum |
89
89
  |------|---------|
@@ -92,7 +92,7 @@ Canonical paths: `src/routes/**`, `src/lib/{components,stores,api,clients,types}
92
92
  | UI only | Store/`load` data; no HTTP/DTO. |
93
93
  | E2E only | `*.cases.md` + spec; page object. |
94
94
 
95
- ## Anti-patterns
95
+ ### Anti-patterns
96
96
 
97
97
  - DTO in UI or untyped store.
98
98
  - HTTP from a component / store bypassing the service.
@@ -102,7 +102,7 @@ Canonical paths: `src/routes/**`, `src/lib/{components,stores,api,clients,types}
102
102
  - Load `design-guidance` when assessing structure / smells.
103
103
  - Do not mutate pipeline `status.json` / `metrics.json`; the orchestration hook is the single writer. Skills upsert the owned terminal receipt in `artifact-manifest.json`.
104
104
 
105
- ## Zone → rules matrix
105
+ ### Zone → rules matrix
106
106
 
107
107
  | Zone | Rules |
108
108
  |------|-------|
@@ -113,10 +113,10 @@ Canonical paths: `src/routes/**`, `src/lib/{components,stores,api,clients,types}
113
113
  | `src/lib/types/**` | `public-imports`, `types-jsdoc`, `layer-barrel-exports` |
114
114
  | `tests/e2e/**` | `tests-e2e-structure`, `playwright-agents` |
115
115
 
116
- ## Iterative refinement loop
116
+ ### Iterative refinement loop
117
117
 
118
118
  Every stage runs the named loop **draft → evaluate against named criteria → refine** with a named oracle (structural gate, reviewer parity check, test suite, or human approval). **Exit criteria:** a layer or stage is complete only when its named criteria hold; do not advance past a failing oracle. A repeatedly failing oracle triggers **plan revision**.
119
119
 
120
- ## Related
120
+ ### Related
121
121
 
122
122
  - Product behavior discovery: requestable **`product-specs`** (`docs/specs/INDEX.md`) — do not paste the discovery algorithm here.
@@ -53,9 +53,7 @@ Path pointer and stack tables — in the preset adapter (`.ai.local/conventions.
53
53
 
54
54
  Before implementing, find a feature of the same type and **mirror its structure**; do not invent a new file organization.
55
55
 
56
- Taxonomy / shared core: [`presets/_shared/README.md`](../../../_shared/README.md) · [Preset contribution guide](../../../../docs/PRESET-CONTRIBUTION.md).
57
-
58
- ## Reference table
56
+ Taxonomy / shared core: `presets/_shared/README.md` · `docs/PRESET-CONTRIBUTION.md` (preset source tree; the installed rule lives at a different depth, so these are paths, not links).
59
57
 
60
58
  Replace **TBD** with real paths after team agreement (or on `ai-rules init` in the target repo):
61
59
 
@@ -68,20 +66,3 @@ Replace **TBD** with real paths after team agreement (or on `ai-rules init` in t
68
66
  | Types module | **TBD** `src/lib/types/<example>/` | domain types, JSDoc, barrel export |
69
67
  | Unit tests | **TBD** next to the reference mapper/service | `*.spec.ts`, describe/it naming |
70
68
  | E2E area | **TBD** `tests/e2e/<Area>/` | `*.cases.md`, page objects, `_shared/` |
71
-
72
- ## How to use
73
-
74
- 1. Identify affected layers from `decomposition.md` or the task.
75
- 2. Open the reference from the table (after paths are filled in).
76
- 3. Mirror naming, file order, import patterns, and tests.
77
- 4. If there is no reference — pick the **closest** existing feature in the same layer and record the choice in the handoff.
78
-
79
- ## Living conventions
80
-
81
- Post-init gotchas / patterns / decisions: **`.ai.local/conventions.md`** (shared across tools; `.ai.local/team/**` is pipeline artifacts, not rules). Consumer-owned; not always-on. See root `AGENTS.md` § Living conventions.
82
-
83
- ## Related rules
84
-
85
- - `tooling-and-review/code-quality.md` — repeat patterns; no deep-import.
86
- - `architecture/feature-delivery-workflow.md` — layer order.
87
- - skill `feature-delivery` — end-to-end scenario.
@@ -0,0 +1,84 @@
1
+ {
2
+ "slug": "example-feature-parallel",
3
+ "intent": "feature",
4
+ "specMode": "none",
5
+ "profile": "full",
6
+ "routingDecision": {
7
+ "complexity": "high",
8
+ "riskFlags": ["cross-layer", "concurrency-state", "broad-test-surface"],
9
+ "routingReasons": [
10
+ "Two independent review surfaces (code + security) sit on the same dependency level, so the pipeline may schedule them as one parallel wave.",
11
+ "The step graph carries declared write scopes so the conflict model can prove the wave conflict-free before any step is marked parallel."
12
+ ],
13
+ "estimatedWorkPackages": 2,
14
+ "openDecisionCount": 0
15
+ },
16
+ "summary": "Step-graph feature pipeline with one parallel review wave",
17
+ "steps": [
18
+ {
19
+ "id": "T1",
20
+ "taskIds": ["T1"],
21
+ "agent": "task-analyst",
22
+ "label": "Clarify and decompose",
23
+ "writeScopes": [".ai.local/team/tasks/<slug>/brief.md", ".ai.local/team/tasks/<slug>/decomposition.md"],
24
+ "artifactOutputId": "analysis"
25
+ },
26
+ {
27
+ "id": "T2",
28
+ "taskIds": ["T2"],
29
+ "agent": "solution-architect",
30
+ "label": "Design boundaries",
31
+ "model": "strong",
32
+ "dependsOn": ["T1"],
33
+ "writeScopes": [".ai.local/team/tasks/<slug>/architecture.md"],
34
+ "artifactOutputId": "architecture"
35
+ },
36
+ {
37
+ "id": "T3",
38
+ "taskIds": ["T3"],
39
+ "agent": "feature-developer",
40
+ "label": "Implement + unit tests",
41
+ "scope": "unit-in-dev",
42
+ "dependsOn": ["T2"],
43
+ "writeScopes": ["app/src/feature", ".ai.local/team/tasks/<slug>/implementation.md"],
44
+ "artifactOutputId": "implementation"
45
+ },
46
+ {
47
+ "id": "T4",
48
+ "taskIds": ["T4"],
49
+ "agent": ["code-reviewer", "security-reviewer"],
50
+ "label": "Review (code + security)",
51
+ "parallel": true,
52
+ "dependsOn": ["T3"],
53
+ "writeScopes": [".ai.local/team/tasks/<slug>/review.md", ".ai.local/team/tasks/<slug>/security-review.md"],
54
+ "artifactInputIds": ["implementation"],
55
+ "artifactOutputIds": {
56
+ "code-reviewer": "review",
57
+ "security-reviewer": "security-review"
58
+ }
59
+ },
60
+ {
61
+ "id": "T5",
62
+ "taskIds": ["T5"],
63
+ "agent": "tech-writer",
64
+ "label": "Documentation",
65
+ "dependsOn": ["T3"],
66
+ "writeScopes": [".ai.local/team/tasks/<slug>/documentation.md"],
67
+ "artifactOutputId": "documentation"
68
+ },
69
+ {
70
+ "id": "T6",
71
+ "taskIds": ["T6"],
72
+ "agent": "build-verifier",
73
+ "label": "Validation gate",
74
+ "model": "cheap",
75
+ "dependsOn": ["T4", "T5"],
76
+ "writeScopes": [".ai.local/team/tasks/<slug>/validation-report.md"],
77
+ "artifactInputIds": ["implementation", "review", "security-review"],
78
+ "artifactOutputId": "validation"
79
+ }
80
+ ],
81
+ "humanGates": ["after:task-analyst"],
82
+ "autoChain": true,
83
+ "skipped": []
84
+ }
@@ -53,8 +53,16 @@ Empty output or a failed run stays silent.
53
53
 
54
54
  Gotchas, local patterns, and team decisions: **`.ai.local/conventions.md`** (fill after init; `init` does not overwrite it).
55
55
 
56
+ ## ZCode host
57
+
58
+ ZCode loads this file natively and has no per-tool map: this file is the entry. The essential rules are the always-on set under `.zcode/rules/` (plain Markdown, not auto-loaded) — start with `ai-local-overlay` and the stack app-core rule, and read the rest when the task scope matches. Agents, commands, and skills live under `.zcode/agents/`, `.zcode/commands/`, and `.zcode/skills/`.
59
+
60
+ On every turn, run `node .zcode/hooks/list-ai-local.mjs` with the paths this step will touch, apply the printed `.ai.local/rules/*.md` and `.ai.local/conventions.md`, and acknowledge `Using .ai.local: <rule-name>`. On the first reply of a session, run `node .zcode/hooks/check-preset-update.mjs` when it exists; the update-notice rules above apply.
61
+
56
62
  ## Local overlay (`.ai.local/`) — MANDATORY
57
63
 
58
64
  A `.ai.local/` directory MAY exist at the repo root or at any nesting depth in monorepos. **Every agent MUST read and apply it on every turn.** Rules there override preset rules; `override: kill <preset-rule-name>` drops that preset rule from context entirely.
59
65
 
60
66
  On every turn, run `list-ai-local.mjs` from the host hooks directory (`.cursor`, `.claude`, `.mavis`, `.opencode`, or `.zcode`) with the paths this step will touch, then apply the printed `.ai.local/rules/*.md` and `.ai.local/conventions.md`. The root overlay applies to every path; a nested one applies only under its directory. Do not read `shadowed` files or `rules-library/**` as rules. Acknowledge `Using .ai.local: <rule-name>` when answering. Authoring guide: `docs/LOCAL-OVERLAY.md`.
67
+
68
+ The `ai-local-overlay` rule is always-on on Cursor and session-start on Claude; Mavis, OpenCode, and ZCode have no native always-on mechanism, so this section plus the platform entry's essential-rules list is the reinforcement.
@@ -121,6 +121,13 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
121
121
  | `awaiting_approval` | Human gate; wait for `/task-continue` |
122
122
  | `changes_requested` | Reviewer blocked; re-run developer |
123
123
  | `validation_failed` | build-verifier failed; re-run developer then verifier |
124
+ | `paused` | Operator sentinel engaged; the hook recorded the pause and refused to advance or hand off. Remove the sentinel and run `/task-continue`. |
125
+
126
+ ### Operator pause
127
+
128
+ - Pause new steps with a file at `.ai.local/STOP` (also accepted: `.ai.local/ESTOP`). The chain hook finishes the in-flight attempt and its terminal receipt, records `state: paused` / `phase: paused`, and emits no handoff. An empty or corrupt sentinel still counts as engaged.
129
+ - A paused human gate stays open: the pause check runs before `end_human_gate` closes it, so removing the sentinel and running `/task-continue <slug>` reruns the same gate resume.
130
+ - Remove the sentinel (`.ai.local/STOP`, `.ai.local/ESTOP`, or the per-task `.ai.local/team/tasks/<slug>/STOP` written by a tracker Stop), then run `/task-continue <slug>`. Only the hook writes the `paused` state; never edit `status.json` to pause or resume.
124
131
 
125
132
  ## Parallel scheduling (graph mode)
126
133
 
@@ -148,11 +155,16 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
148
155
 
149
156
  ## Model when invoking (Task)
150
157
 
151
- Honor optional `steps[i].model` (`cheap` \| `standard` \| `strong`); else agent frontmatter (matrix in `agents/README.md`).
152
-
153
- - `cheap` → Task `model: "fast"` when accepted.
154
- - `standard` → omit Task model.
155
- - `strong` → never pass `fast`; use agent pin `claude-opus-4-8[effort=high]` / parent Max.
158
+ 1. Read `steps[i].model` if present; else use the agent’s frontmatter `model` (see `agents/README.md` matrix).
159
+ 2. Resolve the tier through `.ai.local/team/model-tiers.json` → `tiers.<tier>` when that file exists. The user approved that map, so passing an explicit model is allowed. Pass the resolved `providerID/modelID` (or `providerID/modelID#variant`) to the Task/subagent tool.
160
+ - **`cheap`** → router, analyst, tech-writer, codebase-analyzer, and the review roles `code-reviewer`, `build-verifier`, `api-contract-reviewer`, `mockup-reviewer`. Resolve the provider through `.ai.local/team/model-tiers.json`. Do not write a provider id into the agent file. Pass the mapped id as written; do not append `#high`.
161
+ - **`standard`** → implementation and the other non-review specialists. `feature-developer` stays on this tier.
162
+ - **`strong`** → architecture, security, migration, performance. Never downgrade a `strong` step to the parent default, and do not put `mockup-reviewer` on `strong`.
163
+ - When `steps[i].model` is omitted and the agent file has no `model`, those four review roles stay `cheap` when `.ai.local/team/model-tiers.json` exists. Without that file, omit the model and the session model applies.
164
+ - If a tier is declared but the file has no mapping, **STOP** and report `model-tier-unmapped`; do not silently inherit the parent model.
165
+ 3. If the tool does not accept a model (Cursor/Claude adapters), record the resolved tier in the handoff and let the platform pin apply.
166
+ 4. Parallel steps: apply the step-level `model` to **each** agent in the array (or omit → each agent’s own frontmatter).
167
+ 5. The tier never changes the step order, gates, receipts, or retry policy.
156
168
 
157
169
  ## Team artifact I/O (Cursor Shell sandbox)
158
170
 
@@ -3,15 +3,73 @@ description: End-to-end checklist for Android features (domain → data → DI
3
3
  alwaysApply: false
4
4
  ---
5
5
 
6
- When the prompt or `brief.md` contains a `figma.com` URL, **mockup review** (`mockup-reviewer` / skill `mockup-review`) must complete — or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue` — **before UI implementation**. Non-UI tasks no-op this gate. When required-signal and **no** `figma.com`, **`ux-design.md`** (on the analysis manifest entry) must exist and not be `INCOMPLETE` before UI work — else **blocked**, hand back to `task-analyst`. Parallel to the mockup gate.
7
-
8
6
  <!-- shared-core: architecture/feature-delivery-workflow.md -->
9
7
 
10
- # Feature delivery (Android Kotlin)
8
+ # Feature delivery (end-to-end order)
9
+
10
+ Typical feature with data and UI. Concrete directories and rule stems — in the adapter **Stack notes**.
11
+
12
+ ## Checklist (abstract order)
13
+
14
+ 1. **Domain / types** — Domain/types-layer entities and contracts; layer public API.
15
+ 2. **Transport / DTO** — DTOs and mappers Domain ↔ transport (must not leak into UI).
16
+ 3. **Services / Data** — repository / API-service implementations via the stack’s public clients.
17
+ 4. **State** — store / ViewModel / use cases; no direct HTTP and no DTOs in UI.
18
+ 5. **UI** — thin views/components; data via state; design system. If the prompt or `brief.md` contains a `figma.com` URL, **mockup review must complete** (or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue`) **before UI work**. When required-signal and **no** `figma.com`, **`ux-design.md` must exist** (not `INCOMPLETE`) before UI work — else blocked, hand back to analyst. Non-UI tasks no-op these gates. When a mockup contract exists for the WP, the UI step consumes it (per-node spec = the binding baseline) and a post-implementation verification gate runs against it (scope per `mockup-review` § Post-implementation gate) — screenshot / value / state / structural-parity diff plus a freeze re-check; unmapped implemented components are findings, not silent additions.
19
+ 6. **Tests** — unit for mappers / non-trivial logic; e2e/UI per stack convention.
20
+ 7. **Completion** — closure gate: `build-verifier` runs the stack gate set **once**, after the last authoring step. During Build (steps 1–6) do not run project lint/test/build; author code and tests. When the current WP spans **more than one** layer or module, `implementation.md` includes a **Code Map** (3–8 annotated repo-relative paths) and **Suggested Review Order** (`concern | path:line | ≤15 word note`). Omit both for a single-file or single-layer WP.
21
+
22
+ ## Context hygiene
23
+
24
+ A command whose output can exceed ~4 KB — a test run, a build/lint log, `git log`, a diff — is piped through `.ai.local/scripts/dump-output.mjs --task <slug>` instead of being read whole. Work from its ≤40-line head and the stored file (grep it or use `team-db.mjs search`), and when that output informed a decision, record the repo-relative `outputs/…` path in `implementation.md` or `validation-report.md`; a `code-reviewer` may ask for that path. Do not read the whole output into context. Artifact reads take the same slice: read the `artifact-manifest.json` entry, not the artifact body, and never re-read a completed entry's body. Read a large artifact with offset/limit ranges instead of a whole-file read.
25
+
26
+ ## Iterative refinement loop
27
+
28
+ Every stage runs the named loop **draft → structural evaluation → refine** against a named oracle: reference-feature parity, layer/import shape, schema/contract parity, or review. The oracle is **not** a project test run. Tests are authored in the stage and executed by the closure gate; a failing test is closure evidence, not a per-stage trigger. When `implementationRail: tdd` is explicitly on, targeted tests are the documented cadence exception.
29
+
30
+ **Exit criteria:** a layer or stage is complete only when its structural criteria hold (reference parity, barrel/import shape, authored test present). Do not advance to the next checklist step while the current step's oracle fails; a repeatedly failing oracle triggers **plan revision**.
31
+
32
+ ## Data flow (orientation)
33
+
34
+ ```mermaid
35
+ flowchart LR
36
+ DTO[DTO] --> Mappers[Mappers]
37
+ Mappers --> Domain[Domain]
38
+ Domain --> Service[Service / Repo]
39
+ Service --> State[Store / VM]
40
+ State --> UI[UI]
41
+ ```
42
+
43
+ ## Partial scenarios
44
+
45
+ | Task | Minimum |
46
+ |------|---------|
47
+ | API / model only | Domain + DTO + mapper + service/repo; unit for mapper |
48
+ | State only | Protocols/services; no HTTP in UI |
49
+ | UI only | Existing state; no DTOs |
50
+ | Tests only | Specs per convention; do not change production without need |
51
+
52
+ ## Anti-patterns (shared)
53
+
54
+ - DTO / transport types in UI or presentation state.
55
+ - Low-level HTTP / concrete client from UI bypassing the service.
56
+ - Deep-import of another module/feature’s internal files.
57
+ - Breaking layer boundaries for brevity.
58
+ - **Ubiquitous language:** Domain/type names and boundaries reflect the feature’s subject domain — do not mix transport/framework terms into the domain without need; presentation must not dictate the model vocabulary.
59
+ - When assessing structure, smells, or pattern choice — load requestable **`design-guidance`** (not always-on); do not copy the catalog into the feature checklist.
60
+ - Do not mutate pipeline `status.json` / `metrics.json`; the orchestration hook is the single writer. Skills upsert the owned terminal receipt in `artifact-manifest.json`.
61
+
62
+ ## Zone → rules matrix
63
+
64
+ Filled in the stack adapter: concrete globs/paths and each rule name in the format that platform ships.
65
+
66
+ ## Stack notes
67
+
68
+ When the prompt or `brief.md` contains a `figma.com` URL, **mockup review** (`mockup-reviewer` / skill `mockup-review`) must complete — or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue` — **before UI implementation**. Non-UI tasks no-op this gate. When required-signal and **no** `figma.com`, **`ux-design.md`** (on the analysis manifest entry) must exist and not be `INCOMPLETE` before UI work — else **blocked**, hand back to `task-analyst`. Parallel to the mockup gate.
11
69
 
12
70
  Deliver features in layer order. Prefer neighboring `features/<name>/` analogs.
13
71
 
14
- ## Checklist
72
+ ### Checklist
15
73
 
16
74
  1. **Public API** — contracts / launcher ports in `features/<name>/api` when other modules will depend on them (`module-public-api`).
17
75
  2. **Domain** — entities, use-case ports; no Android UI / HTTP DTOs (`architecture-boundaries`).
@@ -22,7 +80,7 @@ Deliver features in layer order. Prefer neighboring `features/<name>/` analogs.
22
80
  7. **Tests** — JVM unit tests; instrumentation when UI AC requires (`tests-unit`, `tests-ui`).
23
81
  8. **Gate** — invoke **`post-change-build`** + **`gradle-tooling`**. When the current WP spans **more than one** layer or module, `implementation.md` includes a **Code Map** (3–8 annotated paths) and **Suggested Review Order** (`concern | path:line | ≤15 word note`). Omit both for a single-file or single-layer WP.
24
82
 
25
- ## Layer → rule matrix
83
+ ### Layer → rule matrix
26
84
 
27
85
  | Layer | Rules |
28
86
  |-------|-------|
@@ -32,16 +90,16 @@ Deliver features in layer order. Prefer neighboring `features/<name>/` analogs.
32
90
  | presentation | `state-and-viewmodels`, `compose-ui` |
33
91
  | tests | `tests-unit`, `tests-ui`, `instrumentation-ui-e2e` |
34
92
 
35
- ## Agent requirements
93
+ ### Agent requirements
36
94
 
37
95
  - Skill `feature-delivery` owns the end-to-end path; do not skip api/impl boundaries for speed.
38
96
  - Local type names only in consumer `.ai.local/conventions.md`.
39
97
 
40
- ## Iterative refinement loop
98
+ ### Iterative refinement loop
41
99
 
42
100
  Every stage runs the named loop **draft → evaluate against named criteria → refine** with a named oracle (structural gate, reviewer parity check, test suite, or human approval). **Exit criteria:** a layer or stage is complete only when its named criteria hold; do not advance past a failing oracle. A repeatedly failing oracle triggers **plan revision**.
43
101
 
44
- ## Related
102
+ ### Related
45
103
 
46
104
  - Do not mutate pipeline `status.json` / `metrics.json`; the orchestration hook is the single writer. Skills upsert the owned terminal receipt in `artifact-manifest.json`.
47
105
 
@@ -3,7 +3,53 @@ description: Placeholder reference feature paths for Android multimodule repos
3
3
  alwaysApply: false
4
4
  ---
5
5
 
6
- # Reference features (placeholders)
6
+ <!-- shared-core: architecture/reference-features.template.md -->
7
+
8
+ # Reference features
9
+
10
+ Before implementing, find a feature of the same type and **mirror its structure**; do not invent a new file organization.
11
+
12
+ ## Reference table
13
+
14
+ Replace placeholders with **real** paths after `ai-rules init` / team agreement:
15
+
16
+ | Layer | Reference | What to copy |
17
+ |-------|-----------|--------------|
18
+ | UI / Presentation | **TBD** | components, styles/data helpers, barrel |
19
+ | State / ViewModel | **TBD** | slice/VM, selectors, types |
20
+ | API / Data | **TBD** | service/repo, mappers, barrel |
21
+ | Domain / Types | **TBD** | domain types, public export |
22
+ | Unit tests | **TBD** | `*.spec` / XCTest naming |
23
+ | E2E / UI tests | **TBD** | cases/plans, page objects / accessibility IDs |
24
+
25
+ ## How to use
26
+
27
+ 1. Identify affected layers from `decomposition.md` or the task.
28
+ 2. Open the reference from the table (after paths are filled).
29
+ 3. Mirror naming, file order, import patterns, and tests.
30
+ 4. If there is no reference — pick the **closest** existing feature of the same layer and record the choice in the handoff.
31
+
32
+ ## Living conventions
33
+
34
+ After init the team maintains **local** gotchas, patterns, and decisions in a consumer-owned store (not in shared core and not only in root `AGENTS.md`):
35
+
36
+ | Section | What to record |
37
+ |---------|----------------|
38
+ | Gotchas | Recurring traps, fragile spots, “do not do X in this repo” |
39
+ | Patterns | Local patterns beyond the reference table |
40
+ | Decisions | Short ADR links / product decisions that affect code |
41
+
42
+ Path pointer and stack tables — in the preset adapter (`.ai.local/conventions.md`). The file is **not** always-on.
43
+
44
+ ## Related rules
45
+
46
+ - `code-quality-and-refactoring` — repeat patterns, no deep-import.
47
+ - `feature-delivery-workflow` — layer order.
48
+ - skill `feature-delivery` — end-to-end scenario.
49
+
50
+ > Concrete path tables, globs, and dogfood checklists live in the stack adapter **Stack notes**.
51
+
52
+ ## Stack notes
7
53
 
8
54
  Use these **placeholder** paths when pointing agents at analogs. Replace with real module names in the consumer repo (and optionally document local names in `.ai.local/conventions.md`).
9
55
 
@@ -21,7 +67,7 @@ Use these **placeholder** paths when pointing agents at analogs. Replace with re
21
67
  | JVM tests | `**/src/test/**` |
22
68
  | Instrumentation | `**/src/androidTest/**` |
23
69
 
24
- # Agent requirements
70
+ ### Agent requirements
25
71
 
26
72
  - Copy patterns from the closest neighboring feature — do not invent a parallel layout.
27
73
  - Never cite private consumer monorepo or vendor names in shared preset text.
@@ -17,7 +17,7 @@ Load `kotlin-anti-hallucination` before writing or patching code or tests.
17
17
  - Framework: JUnit 4/5 (repo default) — MockK, Turbine, Truth/AssertJ as already configured.
18
18
  - Do **not** create Jest/Vitest `*.spec.ts` files.
19
19
 
20
- Follow `tests-unit.mdc` (Cursor `.mdc` / Claude `testing/unit.md` depending on preset).
20
+ Follow `tests-unit.mdc` (rule `tests-unit` on Cursor, `testing/unit` on Claude).
21
21
 
22
22
  ## Planner
23
23
 
@@ -0,0 +1,84 @@
1
+ {
2
+ "slug": "example-feature-parallel",
3
+ "intent": "feature",
4
+ "specMode": "none",
5
+ "profile": "full",
6
+ "routingDecision": {
7
+ "complexity": "high",
8
+ "riskFlags": ["cross-layer", "concurrency-state", "broad-test-surface"],
9
+ "routingReasons": [
10
+ "Two independent review surfaces (code + security) sit on the same dependency level, so the pipeline may schedule them as one parallel wave.",
11
+ "The step graph carries declared write scopes so the conflict model can prove the wave conflict-free before any step is marked parallel."
12
+ ],
13
+ "estimatedWorkPackages": 2,
14
+ "openDecisionCount": 0
15
+ },
16
+ "summary": "Step-graph feature pipeline with one parallel review wave",
17
+ "steps": [
18
+ {
19
+ "id": "T1",
20
+ "taskIds": ["T1"],
21
+ "agent": "task-analyst",
22
+ "label": "Clarify and decompose",
23
+ "writeScopes": [".ai.local/team/tasks/<slug>/brief.md", ".ai.local/team/tasks/<slug>/decomposition.md"],
24
+ "artifactOutputId": "analysis"
25
+ },
26
+ {
27
+ "id": "T2",
28
+ "taskIds": ["T2"],
29
+ "agent": "solution-architect",
30
+ "label": "Design boundaries",
31
+ "model": "strong",
32
+ "dependsOn": ["T1"],
33
+ "writeScopes": [".ai.local/team/tasks/<slug>/architecture.md"],
34
+ "artifactOutputId": "architecture"
35
+ },
36
+ {
37
+ "id": "T3",
38
+ "taskIds": ["T3"],
39
+ "agent": "feature-developer",
40
+ "label": "Implement + unit tests",
41
+ "scope": "unit-in-dev",
42
+ "dependsOn": ["T2"],
43
+ "writeScopes": ["app/src/feature", ".ai.local/team/tasks/<slug>/implementation.md"],
44
+ "artifactOutputId": "implementation"
45
+ },
46
+ {
47
+ "id": "T4",
48
+ "taskIds": ["T4"],
49
+ "agent": ["code-reviewer", "security-reviewer"],
50
+ "label": "Review (code + security)",
51
+ "parallel": true,
52
+ "dependsOn": ["T3"],
53
+ "writeScopes": [".ai.local/team/tasks/<slug>/review.md", ".ai.local/team/tasks/<slug>/security-review.md"],
54
+ "artifactInputIds": ["implementation"],
55
+ "artifactOutputIds": {
56
+ "code-reviewer": "review",
57
+ "security-reviewer": "security-review"
58
+ }
59
+ },
60
+ {
61
+ "id": "T5",
62
+ "taskIds": ["T5"],
63
+ "agent": "tech-writer",
64
+ "label": "Documentation",
65
+ "dependsOn": ["T3"],
66
+ "writeScopes": [".ai.local/team/tasks/<slug>/documentation.md"],
67
+ "artifactOutputId": "documentation"
68
+ },
69
+ {
70
+ "id": "T6",
71
+ "taskIds": ["T6"],
72
+ "agent": "build-verifier",
73
+ "label": "Validation gate",
74
+ "model": "cheap",
75
+ "dependsOn": ["T4", "T5"],
76
+ "writeScopes": [".ai.local/team/tasks/<slug>/validation-report.md"],
77
+ "artifactInputIds": ["implementation", "review", "security-review"],
78
+ "artifactOutputId": "validation"
79
+ }
80
+ ],
81
+ "humanGates": ["after:task-analyst"],
82
+ "autoChain": true,
83
+ "skipped": []
84
+ }
@@ -53,8 +53,16 @@ Empty output or a failed run stays silent.
53
53
 
54
54
  Gotchas, local patterns, and team decisions: **`.ai.local/conventions.md`** (fill after init; `init` does not overwrite it).
55
55
 
56
+ ## ZCode host
57
+
58
+ ZCode loads this file natively and has no per-tool map: this file is the entry. The essential rules are the always-on set under `.zcode/rules/` (plain Markdown, not auto-loaded) — start with `ai-local-overlay` and the stack app-core rule, and read the rest when the task scope matches. Agents, commands, and skills live under `.zcode/agents/`, `.zcode/commands/`, and `.zcode/skills/`.
59
+
60
+ On every turn, run `node .zcode/hooks/list-ai-local.mjs` with the paths this step will touch, apply the printed `.ai.local/rules/*.md` and `.ai.local/conventions.md`, and acknowledge `Using .ai.local: <rule-name>`. On the first reply of a session, run `node .zcode/hooks/check-preset-update.mjs` when it exists; the update-notice rules above apply.
61
+
56
62
  ## Local overlay (`.ai.local/`) — MANDATORY
57
63
 
58
64
  A `.ai.local/` directory MAY exist at the repo root or at any nesting depth in monorepos. **Every agent MUST read and apply it on every turn.** Rules there override preset rules; `override: kill <preset-rule-name>` drops that preset rule from context entirely.
59
65
 
60
66
  On every turn, run `list-ai-local.mjs` from the host hooks directory (`.cursor`, `.claude`, `.mavis`, `.opencode`, or `.zcode`) with the paths this step will touch, then apply the printed `.ai.local/rules/*.md` and `.ai.local/conventions.md`. The root overlay applies to every path; a nested one applies only under its directory. Do not read `shadowed` files or `rules-library/**` as rules. Acknowledge `Using .ai.local: <rule-name>` when answering. Authoring guide: `docs/LOCAL-OVERLAY.md`.
67
+
68
+ The `ai-local-overlay` rule is always-on on Cursor and session-start on Claude; Mavis, OpenCode, and ZCode have no native always-on mechanism, so this section plus the platform entry's essential-rules list is the reinforcement.
@@ -137,6 +137,13 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
137
137
  | `validation_failed` | build-verifier failed; re-run developer then build-verifier |
138
138
  | `blocked` | Pipeline / step cannot proceed (e.g. `pipeline_parse_error`, completion of a parallel step whose producer's receipt was missing — see `agent-artifact-contracts.md` § Completion receipts) |
139
139
  | `awaiting_artifact_receipt` | Producer stopped but the bound or assigned-output receipt was missing or stale; hook keeps the attempt active and does not advance. See `agent-artifact-contracts.md` (Schema field name + Receipt binding) for the silent-bug class that lands here. |
140
+ | `paused` | Operator sentinel engaged; the hook recorded the pause and refused to advance or hand off. Remove the sentinel and run `/task-continue`. |
141
+
142
+ ### Operator pause
143
+
144
+ - Pause new steps with a file at `.ai.local/STOP` (also accepted: `.ai.local/ESTOP`). The chain hook finishes the in-flight attempt and its terminal receipt, records `state: paused` / `phase: paused`, and emits no handoff. An empty or corrupt sentinel still counts as engaged.
145
+ - A paused human gate stays open: the pause check runs before `end_human_gate` closes it, so removing the sentinel and running `/task-continue <slug>` reruns the same gate resume.
146
+ - Remove the sentinel (`.ai.local/STOP`, `.ai.local/ESTOP`, or the per-task `.ai.local/team/tasks/<slug>/STOP` written by a tracker Stop), then run `/task-continue <slug>`. Only the hook writes the `paused` state; never edit `status.json` to pause or resume.
140
147
 
141
148
  ## Pipeline step options
142
149
 
@@ -189,11 +196,15 @@ Use Task tool or `/agent-name`. Pass: slug, artifact paths, step `scope` if set.
189
196
  ### Model when invoking (Task)
190
197
 
191
198
  1. Read `steps[i].model` if present; else use the agent’s frontmatter `model` (see `agents/README.md` matrix).
192
- 2. Map abstract tiers:
193
- - **`cheap`** → pass Task `model: "fast"` when the tool accepts it (or rely on agent `fast`).
194
- - **`standard`** → omit Task `model` (frontmatter `inherit` / mid default).
195
- - **`strong`** → **never** pass `fast`; rely on agent pin or parent Max model.
196
- 3. Parallel steps: apply the step-level `model` to **each** agent in the array (or omit → each agent’s own frontmatter).
199
+ 2. Resolve the tier through `.ai.local/team/model-tiers.json` → `tiers.<tier>` when that file exists. The user approved that map, so passing an explicit model is allowed. Pass the resolved `providerID/modelID` (or `providerID/modelID#variant`) to the Task/subagent tool.
200
+ - **`cheap`** → router, analyst, tech-writer, codebase-analyzer, and the review roles `code-reviewer`, `build-verifier`, `api-contract-reviewer`, `mockup-reviewer`. Resolve the provider through `.ai.local/team/model-tiers.json`. Do not write a provider id into the agent file. Pass the mapped id as written; do not append `#high`.
201
+ - **`standard`** → implementation and the other non-review specialists. `feature-developer` stays on this tier.
202
+ - **`strong`** → architecture, security, migration, performance. Never downgrade a `strong` step to the parent default, and do not put `mockup-reviewer` on `strong`.
203
+ - When `steps[i].model` is omitted and the agent file has no `model`, those four review roles stay `cheap` when `.ai.local/team/model-tiers.json` exists. Without that file, omit the model and the session model applies.
204
+ - If a tier is declared but the file has no mapping, **STOP** and report `model-tier-unmapped`; do not silently inherit the parent model.
205
+ 3. If the tool does not accept a model (Cursor/Claude adapters), record the resolved tier in the handoff and let the platform pin apply.
206
+ 4. Parallel steps: apply the step-level `model` to **each** agent in the array (or omit → each agent’s own frontmatter).
207
+ 5. The tier never changes the step order, gates, receipts, or retry policy.
197
208
 
198
209
  After each agent completes, verify its terminal manifest receipt, then let the orchestration runtime/hook reconcile `status.json` (`completed`, a blocking outcome, or `awaiting_approval`) from that receipt. Do not ask the agent to mutate shared lifecycle fields, and do not invoke the next specialist until the hook has written the handoff / updated `status.json`.
199
210