@bonesofspring/ai-rules 0.2.15 → 0.2.17

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 (575) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +22 -3
  3. package/bin/cli.js +41 -0
  4. package/package.json +3 -1
  5. package/presets/_shared/README.md +2 -2
  6. package/presets/_shared/assets/docs-specs/INDEX.md +9 -0
  7. package/presets/_shared/assets/docs-specs/_templates/feature.md +32 -0
  8. package/presets/_shared/assets/docs-specs/_templates/page.md +47 -0
  9. package/presets/_shared/assets/docs-specs/schemas/frontmatter-v1.schema.json +22 -0
  10. package/presets/_shared/core/architecture/product-specs-authoring.md +107 -0
  11. package/presets/_shared/core/architecture/product-specs.md +49 -0
  12. package/presets/_shared/core/meta/preset-layering.md +1 -1
  13. package/presets/_shared/core/meta/preset-no-cross-stack-leakage.md +25 -12
  14. package/presets/_shared/core/meta/preset-pr-checklist.md +1 -1
  15. package/presets/_shared/core/meta/preset-twin-sync.md +2 -0
  16. package/presets/claude/android-kotlin/CLAUDE.md +38 -0
  17. package/presets/claude/android-kotlin/MCP.md +16 -0
  18. package/presets/claude/android-kotlin/README.md +32 -0
  19. package/presets/claude/android-kotlin/REPO_AGENTS.md +48 -0
  20. package/presets/claude/android-kotlin/agents/README.md +44 -0
  21. package/presets/claude/android-kotlin/agents/accessibility-reviewer.md +60 -0
  22. package/presets/claude/android-kotlin/agents/api-contract-reviewer.md +70 -0
  23. package/presets/claude/android-kotlin/agents/build-verifier.md +70 -0
  24. package/presets/claude/android-kotlin/agents/ci-investigator.md +74 -0
  25. package/presets/claude/android-kotlin/agents/code-reviewer.md +76 -0
  26. package/presets/claude/android-kotlin/agents/codebase-analyzer.md +28 -0
  27. package/presets/claude/android-kotlin/agents/debugger.md +77 -0
  28. package/presets/claude/android-kotlin/agents/feature-developer.md +70 -0
  29. package/presets/claude/android-kotlin/agents/instrumentation-test-generator.md +19 -0
  30. package/presets/claude/android-kotlin/agents/instrumentation-test-healer.md +19 -0
  31. package/presets/claude/android-kotlin/agents/instrumentation-test-planner.md +19 -0
  32. package/presets/claude/android-kotlin/agents/migration-specialist.md +74 -0
  33. package/presets/claude/android-kotlin/agents/performance-auditor.md +67 -0
  34. package/presets/claude/android-kotlin/agents/qa-tester.md +66 -0
  35. package/presets/claude/android-kotlin/agents/security-reviewer.md +65 -0
  36. package/presets/claude/android-kotlin/agents/solution-architect.md +21 -0
  37. package/presets/claude/android-kotlin/agents/task-analyst.md +55 -0
  38. package/presets/claude/android-kotlin/agents/task-router.md +114 -0
  39. package/presets/claude/android-kotlin/agents/tech-writer.md +66 -0
  40. package/presets/claude/android-kotlin/agents/unit-test-generator.md +55 -0
  41. package/presets/claude/android-kotlin/agents/unit-test-healer.md +54 -0
  42. package/presets/claude/android-kotlin/agents/unit-test-planner.md +65 -0
  43. package/presets/claude/android-kotlin/commands/README.md +51 -0
  44. package/presets/claude/android-kotlin/commands/feature-continue.md +23 -0
  45. package/presets/claude/android-kotlin/commands/feature-start.md +41 -0
  46. package/presets/claude/android-kotlin/commands/spec-start.md +29 -0
  47. package/presets/claude/android-kotlin/commands/task-continue.md +53 -0
  48. package/presets/claude/android-kotlin/commands/task.md +56 -0
  49. package/presets/claude/android-kotlin/commands/technical-retro.md +85 -0
  50. package/presets/claude/android-kotlin/hooks/README.md +16 -0
  51. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +705 -0
  52. package/presets/claude/android-kotlin/hooks/examples/README.md +18 -0
  53. package/presets/claude/android-kotlin/hooks/examples/format-edited.example.sh +13 -0
  54. package/presets/claude/android-kotlin/hooks/examples/secret-guard.example.sh +10 -0
  55. package/presets/claude/android-kotlin/hooks/examples/test-on-save.example.sh +8 -0
  56. package/presets/claude/android-kotlin/hooks/guard-shell-command.sh +80 -0
  57. package/presets/claude/android-kotlin/mcp.json +12 -0
  58. package/presets/claude/android-kotlin/rules/README.md +65 -0
  59. package/presets/claude/android-kotlin/rules/api-and-data/README.md +10 -0
  60. package/presets/claude/android-kotlin/rules/api-and-data/networking.md +30 -0
  61. package/presets/claude/android-kotlin/rules/api-and-data/persistence.md +29 -0
  62. package/presets/claude/android-kotlin/rules/architecture/README.md +9 -0
  63. package/presets/claude/android-kotlin/rules/architecture/boundaries.md +27 -0
  64. package/presets/claude/android-kotlin/rules/architecture/di-dagger-feature-holders.md +34 -0
  65. package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +45 -0
  66. package/presets/claude/android-kotlin/rules/architecture/module-public-api.md +29 -0
  67. package/presets/claude/android-kotlin/rules/architecture/product-specs-authoring.md +121 -0
  68. package/presets/claude/android-kotlin/rules/architecture/product-specs.md +62 -0
  69. package/presets/claude/android-kotlin/rules/architecture/reference-features.md +28 -0
  70. package/presets/claude/android-kotlin/rules/stack/README.md +6 -0
  71. package/presets/claude/android-kotlin/rules/stack/android-app-core.md +27 -0
  72. package/presets/claude/android-kotlin/rules/stack/kotlin-conventions.md +30 -0
  73. package/presets/claude/android-kotlin/rules/testing/README.md +10 -0
  74. package/presets/claude/android-kotlin/rules/testing/ui.md +28 -0
  75. package/presets/claude/android-kotlin/rules/testing/unit.md +29 -0
  76. package/presets/claude/android-kotlin/rules/tooling-and-review/README.md +19 -0
  77. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +18 -0
  78. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +129 -0
  79. package/presets/claude/android-kotlin/rules/tooling-and-review/anti-sycophancy-discipline.md +29 -0
  80. package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +52 -0
  81. package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +88 -0
  82. package/presets/claude/android-kotlin/rules/tooling-and-review/design-guidance.md +110 -0
  83. package/presets/claude/android-kotlin/rules/tooling-and-review/gradle-tooling.md +30 -0
  84. package/presets/claude/android-kotlin/rules/tooling-and-review/post-change-build.md +34 -0
  85. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-layering.md +36 -0
  86. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-no-cross-stack-leakage.md +100 -0
  87. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +39 -0
  88. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-token-budget.md +41 -0
  89. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +56 -0
  90. package/presets/claude/android-kotlin/rules/tooling-and-review/security-android.md +29 -0
  91. package/presets/claude/android-kotlin/rules/tooling-and-review/technical-retro.md +18 -0
  92. package/presets/claude/android-kotlin/rules/ui-and-accessibility/README.md +7 -0
  93. package/presets/claude/android-kotlin/rules/ui-and-accessibility/compose.md +31 -0
  94. package/presets/claude/android-kotlin/rules/ui-and-accessibility/navigation.md +30 -0
  95. package/presets/claude/android-kotlin/rules/ui-and-accessibility/viewmodels.md +27 -0
  96. package/presets/claude/android-kotlin/skills/README.md +14 -0
  97. package/presets/claude/android-kotlin/skills/ci-investigation/SKILL.md +39 -0
  98. package/presets/claude/android-kotlin/skills/code-review/SKILL.md +39 -0
  99. package/presets/claude/android-kotlin/skills/debug-investigation/SKILL.md +34 -0
  100. package/presets/claude/android-kotlin/skills/feature-delivery/SKILL.md +36 -0
  101. package/presets/claude/android-kotlin/skills/instrumentation-ui-e2e/SKILL.md +17 -0
  102. package/presets/claude/android-kotlin/skills/spec-authoring/SKILL.md +26 -0
  103. package/presets/claude/android-kotlin/skills/technical-retro/SKILL.md +54 -0
  104. package/presets/claude/android-kotlin/skills/unit-testing/SKILL.md +32 -0
  105. package/presets/claude/android-kotlin/skills/write-adr/SKILL.md +41 -0
  106. package/presets/claude/android-kotlin/team/README.md +54 -0
  107. package/presets/claude/android-kotlin/team/conventions.md +17 -0
  108. package/presets/claude/android-kotlin/team/fixtures/bugfix-standard.json +47 -0
  109. package/presets/claude/android-kotlin/team/fixtures/feature-full.json +97 -0
  110. package/presets/claude/android-kotlin/team/fixtures/feature-light.json +38 -0
  111. package/presets/claude/go/agents/build-verifier.md +3 -0
  112. package/presets/claude/go/agents/code-reviewer.md +2 -0
  113. package/presets/claude/go/agents/feature-developer.md +7 -0
  114. package/presets/claude/go/agents/task-analyst.md +19 -0
  115. package/presets/claude/go/agents/task-router.md +11 -0
  116. package/presets/claude/go/agents/tech-writer.md +5 -0
  117. package/presets/claude/go/commands/feature-continue.md +1 -0
  118. package/presets/claude/go/commands/feature-start.md +8 -0
  119. package/presets/claude/go/commands/spec-start.md +29 -0
  120. package/presets/claude/go/commands/task-continue.md +6 -3
  121. package/presets/claude/go/rules/README.md +2 -0
  122. package/presets/claude/go/rules/architecture/feature-delivery.md +4 -0
  123. package/presets/claude/go/rules/architecture/product-specs-authoring.md +121 -0
  124. package/presets/claude/go/rules/architecture/product-specs.md +63 -0
  125. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +2 -0
  126. package/presets/claude/go/rules/tooling-and-review/preset-layering.md +1 -1
  127. package/presets/claude/go/rules/tooling-and-review/preset-no-cross-stack-leakage.md +25 -12
  128. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  129. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +2 -0
  130. package/presets/claude/go/skills/feature-delivery/SKILL.md +5 -4
  131. package/presets/claude/go/skills/spec-authoring/SKILL.md +26 -0
  132. package/presets/claude/ios-swift/agents/build-verifier.md +3 -0
  133. package/presets/claude/ios-swift/agents/code-reviewer.md +2 -0
  134. package/presets/claude/ios-swift/agents/feature-developer.md +7 -0
  135. package/presets/claude/ios-swift/agents/task-analyst.md +19 -0
  136. package/presets/claude/ios-swift/agents/task-router.md +11 -0
  137. package/presets/claude/ios-swift/agents/tech-writer.md +2 -15
  138. package/presets/claude/ios-swift/commands/feature-continue.md +4 -0
  139. package/presets/claude/ios-swift/commands/feature-start.md +8 -0
  140. package/presets/claude/ios-swift/commands/spec-start.md +29 -0
  141. package/presets/claude/ios-swift/commands/task-continue.md +6 -3
  142. package/presets/claude/ios-swift/rules/README.md +3 -0
  143. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +4 -0
  144. package/presets/claude/ios-swift/rules/architecture/product-specs-authoring.md +121 -0
  145. package/presets/claude/ios-swift/rules/architecture/product-specs.md +62 -0
  146. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +2 -0
  147. package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +1 -1
  148. package/presets/claude/ios-swift/rules/tooling-and-review/preset-no-cross-stack-leakage.md +25 -12
  149. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  150. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +2 -0
  151. package/presets/claude/ios-swift/skills/feature-delivery/SKILL.md +5 -4
  152. package/presets/claude/ios-swift/skills/spec-authoring/SKILL.md +26 -0
  153. package/presets/claude/java/agents/build-verifier.md +3 -0
  154. package/presets/claude/java/agents/code-reviewer.md +2 -0
  155. package/presets/claude/java/agents/feature-developer.md +7 -0
  156. package/presets/claude/java/agents/task-analyst.md +19 -0
  157. package/presets/claude/java/agents/task-router.md +11 -0
  158. package/presets/claude/java/agents/tech-writer.md +5 -0
  159. package/presets/claude/java/commands/feature-continue.md +1 -0
  160. package/presets/claude/java/commands/feature-start.md +8 -0
  161. package/presets/claude/java/commands/spec-start.md +29 -0
  162. package/presets/claude/java/commands/task-continue.md +6 -3
  163. package/presets/claude/java/rules/README.md +2 -0
  164. package/presets/claude/java/rules/architecture/feature-delivery.md +4 -0
  165. package/presets/claude/java/rules/architecture/product-specs-authoring.md +121 -0
  166. package/presets/claude/java/rules/architecture/product-specs.md +63 -0
  167. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +2 -0
  168. package/presets/claude/java/rules/tooling-and-review/preset-layering.md +1 -1
  169. package/presets/claude/java/rules/tooling-and-review/preset-no-cross-stack-leakage.md +25 -12
  170. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  171. package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +2 -0
  172. package/presets/claude/java/skills/feature-delivery/SKILL.md +5 -4
  173. package/presets/claude/java/skills/spec-authoring/SKILL.md +26 -0
  174. package/presets/claude/mcp-ts/agents/build-verifier.md +3 -0
  175. package/presets/claude/mcp-ts/agents/feature-developer.md +7 -0
  176. package/presets/claude/mcp-ts/agents/task-analyst.md +21 -0
  177. package/presets/claude/mcp-ts/agents/task-router.md +11 -0
  178. package/presets/claude/mcp-ts/commands/feature-continue.md +4 -0
  179. package/presets/claude/mcp-ts/commands/feature-start.md +8 -0
  180. package/presets/claude/mcp-ts/commands/spec-start.md +29 -0
  181. package/presets/claude/mcp-ts/commands/task-continue.md +6 -3
  182. package/presets/claude/mcp-ts/rules/README.md +2 -0
  183. package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +4 -0
  184. package/presets/claude/mcp-ts/rules/architecture/product-specs-authoring.md +121 -0
  185. package/presets/claude/mcp-ts/rules/architecture/product-specs.md +63 -0
  186. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +2 -0
  187. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +1 -1
  188. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-no-cross-stack-leakage.md +25 -12
  189. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  190. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +2 -0
  191. package/presets/claude/mcp-ts/skills/feature-delivery/SKILL.md +4 -3
  192. package/presets/claude/mcp-ts/skills/spec-authoring/SKILL.md +26 -0
  193. package/presets/claude/next/agents/build-verifier.md +3 -0
  194. package/presets/claude/next/agents/code-reviewer.md +1 -0
  195. package/presets/claude/next/agents/feature-developer.md +7 -0
  196. package/presets/claude/next/agents/task-analyst.md +19 -0
  197. package/presets/claude/next/agents/task-router.md +11 -0
  198. package/presets/claude/next/agents/tech-writer.md +5 -0
  199. package/presets/claude/next/commands/feature-continue.md +1 -0
  200. package/presets/claude/next/commands/feature-start.md +8 -0
  201. package/presets/claude/next/commands/spec-start.md +29 -0
  202. package/presets/claude/next/commands/task-continue.md +6 -3
  203. package/presets/claude/next/rules/README.md +3 -0
  204. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +4 -0
  205. package/presets/claude/next/rules/architecture/product-specs-authoring.md +121 -0
  206. package/presets/claude/next/rules/architecture/product-specs.md +63 -0
  207. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +2 -0
  208. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +1 -1
  209. package/presets/claude/next/rules/tooling-and-review/preset-no-cross-stack-leakage.md +25 -12
  210. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  211. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +2 -0
  212. package/presets/claude/next/skills/feature-delivery/SKILL.md +4 -3
  213. package/presets/claude/next/skills/spec-authoring/SKILL.md +26 -0
  214. package/presets/claude/nuxt/agents/build-verifier.md +3 -0
  215. package/presets/claude/nuxt/agents/code-reviewer.md +2 -0
  216. package/presets/claude/nuxt/agents/feature-developer.md +7 -0
  217. package/presets/claude/nuxt/agents/task-analyst.md +19 -0
  218. package/presets/claude/nuxt/agents/task-router.md +11 -0
  219. package/presets/claude/nuxt/agents/tech-writer.md +5 -0
  220. package/presets/claude/nuxt/commands/feature-continue.md +4 -0
  221. package/presets/claude/nuxt/commands/feature-start.md +8 -0
  222. package/presets/claude/nuxt/commands/spec-start.md +29 -0
  223. package/presets/claude/nuxt/commands/task-continue.md +6 -3
  224. package/presets/claude/nuxt/rules/README.md +3 -0
  225. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +4 -0
  226. package/presets/claude/nuxt/rules/architecture/product-specs-authoring.md +121 -0
  227. package/presets/claude/nuxt/rules/architecture/product-specs.md +62 -0
  228. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +2 -0
  229. package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +1 -1
  230. package/presets/claude/nuxt/rules/tooling-and-review/preset-no-cross-stack-leakage.md +25 -12
  231. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  232. package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +2 -0
  233. package/presets/claude/nuxt/skills/feature-delivery/SKILL.md +4 -3
  234. package/presets/claude/nuxt/skills/spec-authoring/SKILL.md +26 -0
  235. package/presets/claude/php-hexagonal/agents/build-verifier.md +3 -0
  236. package/presets/claude/php-hexagonal/agents/code-reviewer.md +2 -0
  237. package/presets/claude/php-hexagonal/agents/feature-developer.md +7 -0
  238. package/presets/claude/php-hexagonal/agents/task-analyst.md +19 -0
  239. package/presets/claude/php-hexagonal/agents/task-router.md +11 -0
  240. package/presets/claude/php-hexagonal/agents/tech-writer.md +5 -0
  241. package/presets/claude/php-hexagonal/commands/feature-continue.md +1 -0
  242. package/presets/claude/php-hexagonal/commands/feature-start.md +8 -0
  243. package/presets/claude/php-hexagonal/commands/spec-start.md +29 -0
  244. package/presets/claude/php-hexagonal/commands/task-continue.md +6 -3
  245. package/presets/claude/php-hexagonal/rules/README.md +2 -0
  246. package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +4 -0
  247. package/presets/claude/php-hexagonal/rules/architecture/product-specs-authoring.md +121 -0
  248. package/presets/claude/php-hexagonal/rules/architecture/product-specs.md +63 -0
  249. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +2 -0
  250. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +1 -1
  251. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-no-cross-stack-leakage.md +25 -12
  252. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  253. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +2 -0
  254. package/presets/claude/php-hexagonal/skills/feature-delivery/SKILL.md +5 -4
  255. package/presets/claude/php-hexagonal/skills/spec-authoring/SKILL.md +26 -0
  256. package/presets/claude/php-laravel/agents/build-verifier.md +3 -0
  257. package/presets/claude/php-laravel/agents/code-reviewer.md +2 -0
  258. package/presets/claude/php-laravel/agents/feature-developer.md +7 -0
  259. package/presets/claude/php-laravel/agents/task-analyst.md +19 -0
  260. package/presets/claude/php-laravel/agents/task-router.md +11 -0
  261. package/presets/claude/php-laravel/agents/tech-writer.md +5 -0
  262. package/presets/claude/php-laravel/commands/feature-continue.md +1 -0
  263. package/presets/claude/php-laravel/commands/feature-start.md +8 -0
  264. package/presets/claude/php-laravel/commands/spec-start.md +29 -0
  265. package/presets/claude/php-laravel/commands/task-continue.md +6 -3
  266. package/presets/claude/php-laravel/rules/README.md +2 -0
  267. package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +4 -0
  268. package/presets/claude/php-laravel/rules/architecture/product-specs-authoring.md +121 -0
  269. package/presets/claude/php-laravel/rules/architecture/product-specs.md +63 -0
  270. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +2 -0
  271. package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +1 -1
  272. package/presets/claude/php-laravel/rules/tooling-and-review/preset-no-cross-stack-leakage.md +25 -12
  273. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  274. package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +2 -0
  275. package/presets/claude/php-laravel/skills/feature-delivery/SKILL.md +5 -4
  276. package/presets/claude/php-laravel/skills/spec-authoring/SKILL.md +26 -0
  277. package/presets/claude/svelte/agents/build-verifier.md +3 -0
  278. package/presets/claude/svelte/agents/code-reviewer.md +2 -0
  279. package/presets/claude/svelte/agents/feature-developer.md +7 -0
  280. package/presets/claude/svelte/agents/task-analyst.md +19 -0
  281. package/presets/claude/svelte/agents/task-router.md +11 -0
  282. package/presets/claude/svelte/agents/tech-writer.md +5 -0
  283. package/presets/claude/svelte/commands/feature-continue.md +4 -0
  284. package/presets/claude/svelte/commands/feature-start.md +8 -0
  285. package/presets/claude/svelte/commands/spec-start.md +29 -0
  286. package/presets/claude/svelte/commands/task-continue.md +6 -3
  287. package/presets/claude/svelte/rules/README.md +3 -0
  288. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +4 -0
  289. package/presets/claude/svelte/rules/architecture/product-specs-authoring.md +121 -0
  290. package/presets/claude/svelte/rules/architecture/product-specs.md +62 -0
  291. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +2 -0
  292. package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +1 -1
  293. package/presets/claude/svelte/rules/tooling-and-review/preset-no-cross-stack-leakage.md +25 -12
  294. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  295. package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +2 -0
  296. package/presets/claude/svelte/skills/feature-delivery/SKILL.md +4 -3
  297. package/presets/claude/svelte/skills/spec-authoring/SKILL.md +26 -0
  298. package/presets/cursor/android-kotlin/AGENTS.md +50 -0
  299. package/presets/cursor/android-kotlin/BUGBOT.md +16 -0
  300. package/presets/cursor/android-kotlin/MCP.md +16 -0
  301. package/presets/cursor/android-kotlin/README.md +35 -0
  302. package/presets/cursor/android-kotlin/REPO_AGENTS.md +48 -0
  303. package/presets/cursor/android-kotlin/agents/README.md +44 -0
  304. package/presets/cursor/android-kotlin/agents/accessibility-reviewer.md +60 -0
  305. package/presets/cursor/android-kotlin/agents/api-contract-reviewer.md +70 -0
  306. package/presets/cursor/android-kotlin/agents/build-verifier.md +70 -0
  307. package/presets/cursor/android-kotlin/agents/ci-investigator.md +74 -0
  308. package/presets/cursor/android-kotlin/agents/code-reviewer.md +76 -0
  309. package/presets/cursor/android-kotlin/agents/codebase-analyzer.md +28 -0
  310. package/presets/cursor/android-kotlin/agents/debugger.md +77 -0
  311. package/presets/cursor/android-kotlin/agents/feature-developer.md +70 -0
  312. package/presets/cursor/android-kotlin/agents/instrumentation-test-generator.md +19 -0
  313. package/presets/cursor/android-kotlin/agents/instrumentation-test-healer.md +19 -0
  314. package/presets/cursor/android-kotlin/agents/instrumentation-test-planner.md +19 -0
  315. package/presets/cursor/android-kotlin/agents/migration-specialist.md +74 -0
  316. package/presets/cursor/android-kotlin/agents/performance-auditor.md +67 -0
  317. package/presets/cursor/android-kotlin/agents/qa-tester.md +66 -0
  318. package/presets/cursor/android-kotlin/agents/security-reviewer.md +65 -0
  319. package/presets/cursor/android-kotlin/agents/solution-architect.md +21 -0
  320. package/presets/cursor/android-kotlin/agents/task-analyst.md +55 -0
  321. package/presets/cursor/android-kotlin/agents/task-router.md +114 -0
  322. package/presets/cursor/android-kotlin/agents/tech-writer.md +66 -0
  323. package/presets/cursor/android-kotlin/agents/unit-test-generator.md +55 -0
  324. package/presets/cursor/android-kotlin/agents/unit-test-healer.md +54 -0
  325. package/presets/cursor/android-kotlin/agents/unit-test-planner.md +65 -0
  326. package/presets/cursor/android-kotlin/commands/README.md +51 -0
  327. package/presets/cursor/android-kotlin/commands/feature-continue.md +23 -0
  328. package/presets/cursor/android-kotlin/commands/feature-start.md +41 -0
  329. package/presets/cursor/android-kotlin/commands/spec-start.md +29 -0
  330. package/presets/cursor/android-kotlin/commands/task-continue.md +53 -0
  331. package/presets/cursor/android-kotlin/commands/task.md +56 -0
  332. package/presets/cursor/android-kotlin/commands/technical-retro.md +85 -0
  333. package/presets/cursor/android-kotlin/hooks/README.md +12 -0
  334. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +723 -0
  335. package/presets/cursor/android-kotlin/hooks/examples/README.md +18 -0
  336. package/presets/cursor/android-kotlin/hooks/examples/format-edited.example.sh +13 -0
  337. package/presets/cursor/android-kotlin/hooks/examples/secret-guard.example.sh +10 -0
  338. package/presets/cursor/android-kotlin/hooks/examples/test-on-save.example.sh +8 -0
  339. package/presets/cursor/android-kotlin/hooks/guard-shell-command.sh +80 -0
  340. package/presets/cursor/android-kotlin/hooks.json +17 -0
  341. package/presets/cursor/android-kotlin/mcp.json +11 -0
  342. package/presets/cursor/android-kotlin/rules/README.md +64 -0
  343. package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +16 -0
  344. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +126 -0
  345. package/presets/cursor/android-kotlin/rules/android-app-core.mdc +28 -0
  346. package/presets/cursor/android-kotlin/rules/anti-sycophancy-discipline.mdc +30 -0
  347. package/presets/cursor/android-kotlin/rules/architecture-boundaries.mdc +28 -0
  348. package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +53 -0
  349. package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +84 -0
  350. package/presets/cursor/android-kotlin/rules/compose-ui.mdc +32 -0
  351. package/presets/cursor/android-kotlin/rules/design-guidance.mdc +111 -0
  352. package/presets/cursor/android-kotlin/rules/di-dagger-feature-holders.mdc +35 -0
  353. package/presets/cursor/android-kotlin/rules/feature-delivery-workflow.mdc +40 -0
  354. package/presets/cursor/android-kotlin/rules/gradle-tooling.mdc +31 -0
  355. package/presets/cursor/android-kotlin/rules/kotlin-conventions.mdc +31 -0
  356. package/presets/cursor/android-kotlin/rules/module-public-api.mdc +30 -0
  357. package/presets/cursor/android-kotlin/rules/navigation-feature-launcher.mdc +31 -0
  358. package/presets/cursor/android-kotlin/rules/networking-data.mdc +31 -0
  359. package/presets/cursor/android-kotlin/rules/persistence-data.mdc +30 -0
  360. package/presets/cursor/android-kotlin/rules/post-change-build.mdc +30 -0
  361. package/presets/cursor/android-kotlin/rules/preset-layering.mdc +36 -0
  362. package/presets/cursor/android-kotlin/rules/preset-no-cross-stack-leakage.mdc +100 -0
  363. package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +39 -0
  364. package/presets/cursor/android-kotlin/rules/preset-token-budget.mdc +41 -0
  365. package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +56 -0
  366. package/presets/cursor/android-kotlin/rules/product-specs-authoring.mdc +123 -0
  367. package/presets/cursor/android-kotlin/rules/product-specs.mdc +64 -0
  368. package/presets/cursor/android-kotlin/rules/reference-features.mdc +29 -0
  369. package/presets/cursor/android-kotlin/rules/security-android.mdc +30 -0
  370. package/presets/cursor/android-kotlin/rules/state-and-viewmodels.mdc +28 -0
  371. package/presets/cursor/android-kotlin/rules/technical-retro.mdc +16 -0
  372. package/presets/cursor/android-kotlin/rules/tests-ui.mdc +29 -0
  373. package/presets/cursor/android-kotlin/rules/tests-unit.mdc +30 -0
  374. package/presets/cursor/android-kotlin/skills/README.md +14 -0
  375. package/presets/cursor/android-kotlin/skills/ci-investigation/SKILL.md +39 -0
  376. package/presets/cursor/android-kotlin/skills/code-review/SKILL.md +39 -0
  377. package/presets/cursor/android-kotlin/skills/debug-investigation/SKILL.md +34 -0
  378. package/presets/cursor/android-kotlin/skills/feature-delivery/SKILL.md +36 -0
  379. package/presets/cursor/android-kotlin/skills/instrumentation-ui-e2e/SKILL.md +17 -0
  380. package/presets/cursor/android-kotlin/skills/spec-authoring/SKILL.md +26 -0
  381. package/presets/cursor/android-kotlin/skills/technical-retro/SKILL.md +54 -0
  382. package/presets/cursor/android-kotlin/skills/unit-testing/SKILL.md +32 -0
  383. package/presets/cursor/android-kotlin/skills/write-adr/SKILL.md +41 -0
  384. package/presets/cursor/android-kotlin/team/README.md +54 -0
  385. package/presets/cursor/android-kotlin/team/conventions.md +17 -0
  386. package/presets/cursor/android-kotlin/team/fixtures/bugfix-standard.json +47 -0
  387. package/presets/cursor/android-kotlin/team/fixtures/feature-full.json +97 -0
  388. package/presets/cursor/android-kotlin/team/fixtures/feature-light.json +38 -0
  389. package/presets/cursor/go/agents/build-verifier.md +3 -0
  390. package/presets/cursor/go/agents/code-reviewer.md +2 -0
  391. package/presets/cursor/go/agents/feature-developer.md +7 -0
  392. package/presets/cursor/go/agents/task-analyst.md +19 -0
  393. package/presets/cursor/go/agents/task-router.md +11 -0
  394. package/presets/cursor/go/agents/tech-writer.md +5 -0
  395. package/presets/cursor/go/commands/feature-continue.md +4 -0
  396. package/presets/cursor/go/commands/feature-start.md +8 -0
  397. package/presets/cursor/go/commands/spec-start.md +29 -0
  398. package/presets/cursor/go/commands/task-continue.md +6 -3
  399. package/presets/cursor/go/rules/README.md +4 -1
  400. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +2 -0
  401. package/presets/cursor/go/rules/feature-delivery-workflow.mdc +4 -0
  402. package/presets/cursor/go/rules/preset-layering.mdc +1 -1
  403. package/presets/cursor/go/rules/preset-no-cross-stack-leakage.mdc +25 -12
  404. package/presets/cursor/go/rules/preset-pr-checklist.mdc +1 -1
  405. package/presets/cursor/go/rules/preset-twin-sync.mdc +2 -0
  406. package/presets/cursor/go/rules/product-specs-authoring.mdc +123 -0
  407. package/presets/cursor/go/rules/product-specs.mdc +65 -0
  408. package/presets/cursor/go/skills/feature-delivery/SKILL.md +5 -4
  409. package/presets/cursor/go/skills/spec-authoring/SKILL.md +26 -0
  410. package/presets/cursor/ios-swift/agents/build-verifier.md +3 -0
  411. package/presets/cursor/ios-swift/agents/code-reviewer.md +2 -0
  412. package/presets/cursor/ios-swift/agents/feature-developer.md +7 -0
  413. package/presets/cursor/ios-swift/agents/task-analyst.md +19 -0
  414. package/presets/cursor/ios-swift/agents/task-router.md +11 -0
  415. package/presets/cursor/ios-swift/agents/tech-writer.md +2 -15
  416. package/presets/cursor/ios-swift/commands/feature-continue.md +4 -0
  417. package/presets/cursor/ios-swift/commands/feature-start.md +8 -0
  418. package/presets/cursor/ios-swift/commands/spec-start.md +29 -0
  419. package/presets/cursor/ios-swift/commands/task-continue.md +6 -3
  420. package/presets/cursor/ios-swift/rules/README.md +4 -1
  421. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +2 -0
  422. package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +4 -0
  423. package/presets/cursor/ios-swift/rules/preset-layering.mdc +1 -1
  424. package/presets/cursor/ios-swift/rules/preset-no-cross-stack-leakage.mdc +25 -12
  425. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +1 -1
  426. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +2 -0
  427. package/presets/cursor/ios-swift/rules/product-specs-authoring.mdc +123 -0
  428. package/presets/cursor/ios-swift/rules/product-specs.mdc +64 -0
  429. package/presets/cursor/ios-swift/skills/feature-delivery/SKILL.md +5 -4
  430. package/presets/cursor/ios-swift/skills/spec-authoring/SKILL.md +26 -0
  431. package/presets/cursor/java/agents/build-verifier.md +3 -0
  432. package/presets/cursor/java/agents/code-reviewer.md +2 -0
  433. package/presets/cursor/java/agents/feature-developer.md +7 -0
  434. package/presets/cursor/java/agents/task-analyst.md +19 -0
  435. package/presets/cursor/java/agents/task-router.md +11 -0
  436. package/presets/cursor/java/agents/tech-writer.md +5 -0
  437. package/presets/cursor/java/commands/feature-continue.md +4 -0
  438. package/presets/cursor/java/commands/feature-start.md +8 -0
  439. package/presets/cursor/java/commands/spec-start.md +29 -0
  440. package/presets/cursor/java/commands/task-continue.md +6 -3
  441. package/presets/cursor/java/rules/README.md +4 -1
  442. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +2 -0
  443. package/presets/cursor/java/rules/feature-delivery-workflow.mdc +4 -0
  444. package/presets/cursor/java/rules/preset-layering.mdc +1 -1
  445. package/presets/cursor/java/rules/preset-no-cross-stack-leakage.mdc +25 -12
  446. package/presets/cursor/java/rules/preset-pr-checklist.mdc +1 -1
  447. package/presets/cursor/java/rules/preset-twin-sync.mdc +2 -0
  448. package/presets/cursor/java/rules/product-specs-authoring.mdc +123 -0
  449. package/presets/cursor/java/rules/product-specs.mdc +65 -0
  450. package/presets/cursor/java/skills/feature-delivery/SKILL.md +5 -4
  451. package/presets/cursor/java/skills/spec-authoring/SKILL.md +26 -0
  452. package/presets/cursor/mcp-ts/agents/build-verifier.md +3 -0
  453. package/presets/cursor/mcp-ts/agents/feature-developer.md +7 -0
  454. package/presets/cursor/mcp-ts/agents/task-analyst.md +21 -0
  455. package/presets/cursor/mcp-ts/agents/task-router.md +11 -0
  456. package/presets/cursor/mcp-ts/commands/feature-continue.md +4 -0
  457. package/presets/cursor/mcp-ts/commands/feature-start.md +8 -0
  458. package/presets/cursor/mcp-ts/commands/spec-start.md +29 -0
  459. package/presets/cursor/mcp-ts/commands/task-continue.md +6 -3
  460. package/presets/cursor/mcp-ts/rules/README.md +2 -0
  461. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +2 -0
  462. package/presets/cursor/mcp-ts/rules/feature-delivery-workflow.mdc +4 -0
  463. package/presets/cursor/mcp-ts/rules/preset-layering.mdc +1 -1
  464. package/presets/cursor/mcp-ts/rules/preset-no-cross-stack-leakage.mdc +25 -12
  465. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +1 -1
  466. package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +2 -0
  467. package/presets/cursor/mcp-ts/rules/product-specs-authoring.mdc +123 -0
  468. package/presets/cursor/mcp-ts/rules/product-specs.mdc +65 -0
  469. package/presets/cursor/mcp-ts/skills/feature-delivery/SKILL.md +4 -3
  470. package/presets/cursor/mcp-ts/skills/spec-authoring/SKILL.md +26 -0
  471. package/presets/cursor/next/agents/build-verifier.md +3 -0
  472. package/presets/cursor/next/agents/code-reviewer.md +1 -0
  473. package/presets/cursor/next/agents/feature-developer.md +7 -0
  474. package/presets/cursor/next/agents/task-analyst.md +19 -0
  475. package/presets/cursor/next/agents/task-router.md +11 -0
  476. package/presets/cursor/next/agents/tech-writer.md +5 -0
  477. package/presets/cursor/next/commands/feature-continue.md +4 -0
  478. package/presets/cursor/next/commands/feature-start.md +8 -0
  479. package/presets/cursor/next/commands/spec-start.md +29 -0
  480. package/presets/cursor/next/commands/task-continue.md +6 -3
  481. package/presets/cursor/next/rules/README.md +3 -1
  482. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +2 -0
  483. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +4 -0
  484. package/presets/cursor/next/rules/preset-layering.mdc +1 -1
  485. package/presets/cursor/next/rules/preset-no-cross-stack-leakage.mdc +25 -12
  486. package/presets/cursor/next/rules/preset-pr-checklist.mdc +1 -1
  487. package/presets/cursor/next/rules/preset-twin-sync.mdc +2 -0
  488. package/presets/cursor/next/rules/product-specs-authoring.mdc +123 -0
  489. package/presets/cursor/next/rules/product-specs.mdc +65 -0
  490. package/presets/cursor/next/skills/feature-delivery/SKILL.md +4 -3
  491. package/presets/cursor/next/skills/spec-authoring/SKILL.md +26 -0
  492. package/presets/cursor/nuxt/agents/build-verifier.md +3 -0
  493. package/presets/cursor/nuxt/agents/code-reviewer.md +2 -0
  494. package/presets/cursor/nuxt/agents/feature-developer.md +7 -0
  495. package/presets/cursor/nuxt/agents/task-analyst.md +19 -0
  496. package/presets/cursor/nuxt/agents/task-router.md +11 -0
  497. package/presets/cursor/nuxt/agents/tech-writer.md +5 -0
  498. package/presets/cursor/nuxt/commands/feature-continue.md +4 -0
  499. package/presets/cursor/nuxt/commands/feature-start.md +8 -0
  500. package/presets/cursor/nuxt/commands/spec-start.md +29 -0
  501. package/presets/cursor/nuxt/commands/task-continue.md +6 -3
  502. package/presets/cursor/nuxt/rules/README.md +3 -1
  503. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +2 -0
  504. package/presets/cursor/nuxt/rules/feature-delivery-workflow.mdc +4 -0
  505. package/presets/cursor/nuxt/rules/preset-layering.mdc +1 -1
  506. package/presets/cursor/nuxt/rules/preset-no-cross-stack-leakage.mdc +25 -12
  507. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +1 -1
  508. package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +2 -0
  509. package/presets/cursor/nuxt/rules/product-specs-authoring.mdc +123 -0
  510. package/presets/cursor/nuxt/rules/product-specs.mdc +64 -0
  511. package/presets/cursor/nuxt/skills/feature-delivery/SKILL.md +4 -3
  512. package/presets/cursor/nuxt/skills/spec-authoring/SKILL.md +26 -0
  513. package/presets/cursor/php-hexagonal/agents/build-verifier.md +3 -0
  514. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +2 -0
  515. package/presets/cursor/php-hexagonal/agents/feature-developer.md +7 -0
  516. package/presets/cursor/php-hexagonal/agents/task-analyst.md +19 -0
  517. package/presets/cursor/php-hexagonal/agents/task-router.md +11 -0
  518. package/presets/cursor/php-hexagonal/agents/tech-writer.md +5 -0
  519. package/presets/cursor/php-hexagonal/commands/feature-continue.md +4 -0
  520. package/presets/cursor/php-hexagonal/commands/feature-start.md +8 -0
  521. package/presets/cursor/php-hexagonal/commands/spec-start.md +29 -0
  522. package/presets/cursor/php-hexagonal/commands/task-continue.md +6 -3
  523. package/presets/cursor/php-hexagonal/rules/README.md +4 -1
  524. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +2 -0
  525. package/presets/cursor/php-hexagonal/rules/feature-delivery-workflow.mdc +4 -0
  526. package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +1 -1
  527. package/presets/cursor/php-hexagonal/rules/preset-no-cross-stack-leakage.mdc +25 -12
  528. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +1 -1
  529. package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +2 -0
  530. package/presets/cursor/php-hexagonal/rules/product-specs-authoring.mdc +123 -0
  531. package/presets/cursor/php-hexagonal/rules/product-specs.mdc +65 -0
  532. package/presets/cursor/php-hexagonal/skills/feature-delivery/SKILL.md +5 -4
  533. package/presets/cursor/php-hexagonal/skills/spec-authoring/SKILL.md +26 -0
  534. package/presets/cursor/php-laravel/agents/build-verifier.md +3 -0
  535. package/presets/cursor/php-laravel/agents/code-reviewer.md +2 -0
  536. package/presets/cursor/php-laravel/agents/feature-developer.md +7 -0
  537. package/presets/cursor/php-laravel/agents/task-analyst.md +19 -0
  538. package/presets/cursor/php-laravel/agents/task-router.md +11 -0
  539. package/presets/cursor/php-laravel/agents/tech-writer.md +5 -0
  540. package/presets/cursor/php-laravel/commands/feature-continue.md +4 -0
  541. package/presets/cursor/php-laravel/commands/feature-start.md +8 -0
  542. package/presets/cursor/php-laravel/commands/spec-start.md +29 -0
  543. package/presets/cursor/php-laravel/commands/task-continue.md +6 -3
  544. package/presets/cursor/php-laravel/rules/README.md +4 -1
  545. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +2 -0
  546. package/presets/cursor/php-laravel/rules/feature-delivery-workflow.mdc +4 -0
  547. package/presets/cursor/php-laravel/rules/preset-layering.mdc +1 -1
  548. package/presets/cursor/php-laravel/rules/preset-no-cross-stack-leakage.mdc +25 -12
  549. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +1 -1
  550. package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +2 -0
  551. package/presets/cursor/php-laravel/rules/product-specs-authoring.mdc +123 -0
  552. package/presets/cursor/php-laravel/rules/product-specs.mdc +65 -0
  553. package/presets/cursor/php-laravel/skills/feature-delivery/SKILL.md +5 -4
  554. package/presets/cursor/php-laravel/skills/spec-authoring/SKILL.md +26 -0
  555. package/presets/cursor/svelte/agents/build-verifier.md +3 -0
  556. package/presets/cursor/svelte/agents/code-reviewer.md +2 -0
  557. package/presets/cursor/svelte/agents/feature-developer.md +7 -0
  558. package/presets/cursor/svelte/agents/task-analyst.md +19 -0
  559. package/presets/cursor/svelte/agents/task-router.md +11 -0
  560. package/presets/cursor/svelte/agents/tech-writer.md +5 -0
  561. package/presets/cursor/svelte/commands/feature-continue.md +4 -0
  562. package/presets/cursor/svelte/commands/feature-start.md +8 -0
  563. package/presets/cursor/svelte/commands/spec-start.md +29 -0
  564. package/presets/cursor/svelte/commands/task-continue.md +6 -3
  565. package/presets/cursor/svelte/rules/README.md +3 -1
  566. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +2 -0
  567. package/presets/cursor/svelte/rules/feature-delivery-workflow.mdc +4 -0
  568. package/presets/cursor/svelte/rules/preset-layering.mdc +1 -1
  569. package/presets/cursor/svelte/rules/preset-no-cross-stack-leakage.mdc +25 -12
  570. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +1 -1
  571. package/presets/cursor/svelte/rules/preset-twin-sync.mdc +2 -0
  572. package/presets/cursor/svelte/rules/product-specs-authoring.mdc +123 -0
  573. package/presets/cursor/svelte/rules/product-specs.mdc +64 -0
  574. package/presets/cursor/svelte/skills/feature-delivery/SKILL.md +4 -3
  575. package/presets/cursor/svelte/skills/spec-authoring/SKILL.md +26 -0
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: technical-retro
3
+ description: Facilitates technical retrospectives for tasks, sprints, incidents, releases, and agent-team pipelines. Use when the user asks for retro, postmortem, process review, or action items after delivery.
4
+ ---
5
+
6
+ # Technical Retro
7
+
8
+ ## Inputs
9
+
10
+ Ask for missing period, focus, task slug, participants, or format constraints. If a slug is provided, read `.cursor/team/tasks/<slug>/` artifacts and local git status/diff. Do not invent facts not present in artifacts or the user's message.
11
+
12
+ ## Facilitation Principles
13
+
14
+ - Focus on process and system behavior, not blame.
15
+ - Separate facts, interpretations, and proposed actions.
16
+ - Balance what worked with what slowed delivery.
17
+ - Keep action items concrete, owned, and measurable.
18
+
19
+ ## Default Structure
20
+
21
+ 1. Goal and scope.
22
+ 2. Timeline or factual observations.
23
+ 3. What worked.
24
+ 4. What hurt quality, speed, or confidence.
25
+ 5. Root causes for the top one or two issues.
26
+ 6. Experiments and action items.
27
+
28
+ ## Agent Team Block
29
+
30
+ For `/task` pipelines, include router, analyst, developer, **build-verifier** (./gradlew), reviewer, QA/Android instrumentation, hooks, and rules.
31
+
32
+ ## Wrong-turn taxonomy (optional)
33
+
34
+ When artifacts or the user mention agent mistakes, tag incidents:
35
+
36
+ | Kind | Signal |
37
+ |------|--------|
38
+ | `correction` | User pushback («no», «don't», «actually») |
39
+ | `retry` | Same tool/approach 2+ times before success |
40
+ | `waste` | Many searches before the right file |
41
+ | `reversal` | Edit then revert / delete |
42
+ | `dead-end` | Env/tool failure (missing binary, wrong path) |
43
+
44
+ Severity: **high** (explicit correction / large waste) · **med** · **low**. Confidence 0–100 — be honest; low-confidence items are optional.
45
+
46
+ ## Preset feedback loop
47
+
48
+ If the same issue appeared in **2+** tasks (or **3+** for packaging a new rule/skill — Rule of Three), add section **Preset updates**:
49
+
50
+ - Proposed change to `.cursor/rules/`, `.cursor/agents/`, `.cursor/skills/`, or **`.cursor/team/conventions.md`** (prefer conventions for project gotchas)
51
+ - One concrete snippet or file path
52
+ - Whether it belongs in always-on vs globs vs skill vs conventions (see `PRESET-CONTRIBUTION` → Building blocks)
53
+
54
+ Do not apply preset or conventions changes without user approval.
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: unit-testing
3
+ description: Plans, generates, and heals JUnit 4/5 (repo default) for mappers, use cases, and ViewModels using src/test and tests-unit rules. Use for unit test planning, generation, or fixing failing unit tests.
4
+ ---
5
+
6
+ # Unit Testing (Android)
7
+
8
+ ## Project Layout
9
+
10
+ - Unit targets: `src/test` (+ `androidTest` for instrumentation) colocated or parallel to Feature — **as in the Android Studio / AGP project**.
11
+ - Framework: JUnit 4/5 (repo default) — MockK, Turbine, Truth/AssertJ as already configured.
12
+ - Do **not** create Jest/Vitest `*.spec.ts` files.
13
+
14
+ Follow `tests-unit.mdc` (Cursor `.mdc` / Claude `testing/unit.md` depending on preset).
15
+
16
+ ## Planner
17
+
18
+ Write or update `.cursor/team/tasks/<slug>/unit-test-plan.md`.
19
+
20
+ Each scenario needs a Russian `test` / `@Test` title (capital letter after each sentence). Cover mappers, use cases, ViewModel state branches, and mocked client/repository behavior per AC.
21
+
22
+ ## Generator
23
+
24
+ Implement tests from `unit-test-plan.md` into the correct `src/test` source set. Reuse shared fixtures and interface mocks / fakes (MockK). Do not change production code.
25
+
26
+ ## Healer
27
+
28
+ Fix mocks, coroutine/dispatcher timing, and fixtures — preserve business assertions. Use `unit-test-plan.md` and `brief.md` as the behavior contract.
29
+
30
+ ## Validation
31
+
32
+ Run affected unit tests via `./gradlew test` (`gradle-tooling.mdc`) when feasible. Report command, pass/fail, and remaining gaps vs plan.
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: write-adr
3
+ description: Author an Architecture Decision Record (ADR) with Context, Decision, Consequences, and Links. Use when capturing a durable technical choice for the team.
4
+ ---
5
+
6
+ # Write ADR
7
+
8
+ On-demand skill for durable architecture decisions. Stack-agnostic sections — fill with project-specific paths and links.
9
+
10
+ ## When to use
11
+
12
+ - Choosing between non-trivial alternatives (storage, layering, library, API shape).
13
+ - Recording a decision that future agents/humans should not silently reverse.
14
+ - User asks for an ADR, decision log, or “why did we pick X”.
15
+
16
+ ## Template
17
+
18
+ Create (or append) a short markdown ADR in the repo’s agreed location (e.g. `docs/adr/`, `.cursor/team/`, wiki). Suggested filename: `NNNN-short-title.md`.
19
+
20
+ ```markdown
21
+ # ADR NNNN: <Title>
22
+
23
+ ## Context
24
+ What problem / constraint / force requires a decision?
25
+
26
+ ## Decision
27
+ What we chose (one clear option). Include rejected alternatives briefly if useful.
28
+
29
+ ## Consequences
30
+ Positive and negative outcomes; follow-up work; what becomes harder.
31
+
32
+ ## Links
33
+ Related PRs, issues, rules, prior ADRs, diagrams.
34
+ ```
35
+
36
+ ## Guidelines
37
+
38
+ - Prefer one decision per ADR.
39
+ - Keep Context factual; Decision imperative and short.
40
+ - Link living gotchas to `team/conventions.md` when the decision becomes a recurring local pattern.
41
+ - Do not put ADR bodies only in root `AGENTS.md` (overwrite on init).
@@ -0,0 +1,54 @@
1
+ # Agent team artifacts (android-kotlin)
2
+
3
+ Artifact directory for the Android agent-team pipeline.
4
+
5
+ ## Layout
6
+
7
+ ```
8
+ .cursor/team/ # Claude: .claude/team/
9
+ active-task.json
10
+ fixtures/
11
+ tasks/<slug>/
12
+ pipeline.json
13
+ status.json
14
+ brief.md
15
+ decomposition.md
16
+
17
+ ```
18
+
19
+ ## Fixtures
20
+
21
+ | Fixture | Notes |
22
+ |---------|-------|
23
+ | `feature-full.json` | Full profile; QA scope `e2e-only` = **Android instrumentation** |
24
+ | `feature-light.json` | developer → build-verifier |
25
+ | `bugfix-standard.json` | debugger → developer (skipIf) → verifier → reviewer |
26
+
27
+ ### `skipped[]` in fixtures
28
+
29
+ `pipeline.json` / fixture `skipped` is **documentation of forbidden or non-applicable template stems** from other stacks (Playwright, XCUITest, JVM `integration-test-*`) — **not** agents that ran and were skipped at runtime, and **not** steps to schedule. Routers must never promote these stems into `steps[]`. For UI-test-only intents use `instrumentation-test-*`.
30
+
31
+ **Never** schedule Playwright-only steps without skip rationale. Use `instrumentation-test-*` for UI-test-only intents.
32
+
33
+ ## Creating task dirs
34
+
35
+ Bootstrap `tasks/<slug>/` by **writing** artifacts (Write tool), not Shell `mkdir`. Cursor sandbox → `Operation not permitted` otherwise (worse on Desktop/Documents).
36
+
37
+ ## Artifact manifest and receipts
38
+
39
+ Each slug stores one context index at `.cursor/team/tasks/<slug>/artifact-manifest.json`. Schema v1 is defined by shared core `agent-team/agent-artifact-contracts.md`: every entry declares its producer, status, authoritative paths, acceptance-criteria IDs, decomposition task IDs, timestamps, and a terminal completion receipt.
40
+
41
+ Producer/consumer rules:
42
+
43
+ - Read the manifest first and use only the authoritative inputs needed by the current step; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` when it is missing or stale, and report that gap.
44
+ - Producers upsert only their stable entry IDs, preserve foreign entries, and finish with `completed`, `blocked`, `changes_requested`, or `validation_failed` receipt evidence.
45
+ - The router owns `pipeline.json` and its routing entry; analyst, developer, verifier, and reviewer own their named outputs and receipts. Consumers do not edit another producer's receipt.
46
+ - Agents do not mutate `status.json` or `metrics.json`. The orchestration runtime/hook is their single writer. Parallel receipt merges are serialized by the parent/orchestrator.
47
+
48
+ ## Local metrics ledger
49
+
50
+ `metrics.json` is an append-only schema-v1 event ledger for one task run. It contains only allowlisted IDs, task dimensions, timestamps, outcomes, and attribution confidence—never prompts, secrets, file paths, or contents. The orchestration runtime writes `task_started` / `attempt_started`; the hook records host-clock completion and human-gate edges under a per-task lock with temp-and-rename.
51
+
52
+ `status.json.activeAttempts` is a transient timing bridge keyed by `attemptId`; `lastCompletedAttempt` is diagnostic; `parallelOutcomes` holds per-agent outcomes for the current parallel join until the step advances. For parallel stops, the hook must use a stable payload identity or the sole active attempt. Otherwise an explicit `.metrics-receipts.json` receipt is fallback data marked `source: agent`, `attributionConfidence: fallback`; it must never guess from `currentAgent`.
53
+
54
+ Aggregate with `node packages/ai-rules/scripts/aggregate-agent-task-metrics.mjs --team-root .cursor/team`. It reports role/agent count, completed count, total/average duration, distinct completed run IDs, separate human-gate wait, and incomplete artifacts.
@@ -0,0 +1,17 @@
1
+ # Team conventions (consumer-local)
2
+
3
+ After installing this preset, document **local** names and paths here. Do not put vendor/brand names into the shared preset packages.
4
+
5
+ ## Suggested entries
6
+
7
+ | Concern | Local name / path |
8
+ |---------|-------------------|
9
+ | ViewModel base class | _(fill)_ |
10
+ | Feature DI holder / component types | _(fill)_ |
11
+ | Design-system package | _(fill)_ |
12
+ | App shell module(s) under `applications/` | _(fill)_ |
13
+ | Default product flavor / variant for local builds | _(fill)_ |
14
+ | Instrumentation test base / robot pattern | _(fill)_ |
15
+ | Documented Gradle wrapper (if not `./gradlew`) | _(fill)_ |
16
+
17
+ Keep this file consumer-owned; `ai-rules init` may overwrite other preset files but conventions are meant to accumulate local decisions.
@@ -0,0 +1,47 @@
1
+ {
2
+ "slug": "example-bugfix-standard",
3
+ "intent": "bugfix",
4
+ "profile": "standard",
5
+ "summary": "Bugfix with unit coverage and optional instrumentation",
6
+ "steps": [
7
+ {
8
+ "agent": "task-analyst",
9
+ "label": "Clarify repro and AC"
10
+ },
11
+ {
12
+ "agent": "debugger",
13
+ "label": "Reproduce and locate root cause"
14
+ },
15
+ {
16
+ "agent": "feature-developer",
17
+ "label": "Minimal fix + unit test",
18
+ "scope": "unit-in-dev"
19
+ },
20
+ {
21
+ "agent": "build-verifier",
22
+ "label": "Gradle compile + lint + unit smoke",
23
+ "model": "cheap"
24
+ },
25
+ {
26
+ "agent": "code-reviewer",
27
+ "label": "Code review",
28
+ "model": "cheap"
29
+ }
30
+ ],
31
+ "humanGates": [],
32
+ "autoChain": true,
33
+ "skipped": [
34
+ {
35
+ "agent": "playwright-test-planner",
36
+ "reason": "Android uses instrumentation-test-*"
37
+ },
38
+ {
39
+ "agent": "xcuitest-test-planner",
40
+ "reason": "iOS-only"
41
+ },
42
+ {
43
+ "agent": "instrumentation-test-planner",
44
+ "reason": "No UI AC \u2014 add if regression is UI-only"
45
+ }
46
+ ]
47
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "slug": "example-feature-full",
3
+ "intent": "feature",
4
+ "profile": "full",
5
+ "summary": "Multi-layer feature with Android instrumentation coverage",
6
+ "steps": [
7
+ {
8
+ "agent": "task-analyst",
9
+ "label": "Clarify and decompose"
10
+ },
11
+ {
12
+ "agent": "solution-architect",
13
+ "label": "Design boundaries",
14
+ "model": "strong"
15
+ },
16
+ {
17
+ "agent": "feature-developer",
18
+ "label": "Implement + unit tests",
19
+ "scope": "unit-in-dev"
20
+ },
21
+ {
22
+ "agent": "build-verifier",
23
+ "label": "Gradle compile + lint + unit smoke",
24
+ "model": "cheap"
25
+ },
26
+ {
27
+ "agent": "security-reviewer",
28
+ "label": "Security review",
29
+ "model": "strong"
30
+ },
31
+ {
32
+ "agent": "code-reviewer",
33
+ "label": "Code review",
34
+ "model": "cheap"
35
+ },
36
+ {
37
+ "agent": "accessibility-reviewer",
38
+ "label": "Compose a11y",
39
+ "model": "cheap"
40
+ },
41
+ {
42
+ "agent": "instrumentation-test-planner",
43
+ "label": "Plan instrumentation UI tests"
44
+ },
45
+ {
46
+ "agent": "instrumentation-test-generator",
47
+ "label": "Generate instrumentation tests"
48
+ },
49
+ {
50
+ "agent": "instrumentation-test-healer",
51
+ "label": "Heal flaky instrumentation",
52
+ "model": "cheap"
53
+ }
54
+ ],
55
+ "humanGates": [
56
+ "after:task-analyst"
57
+ ],
58
+ "autoChain": true,
59
+ "skipped": [
60
+ {
61
+ "agent": "playwright-test-planner",
62
+ "reason": "Android uses instrumentation-test-* \u2014 not Playwright"
63
+ },
64
+ {
65
+ "agent": "playwright-test-generator",
66
+ "reason": "Android uses instrumentation-test-*"
67
+ },
68
+ {
69
+ "agent": "playwright-test-healer",
70
+ "reason": "Android uses instrumentation-test-*"
71
+ },
72
+ {
73
+ "agent": "xcuitest-test-planner",
74
+ "reason": "iOS-only"
75
+ },
76
+ {
77
+ "agent": "xcuitest-test-generator",
78
+ "reason": "iOS-only"
79
+ },
80
+ {
81
+ "agent": "xcuitest-test-healer",
82
+ "reason": "iOS-only"
83
+ },
84
+ {
85
+ "agent": "integration-test-planner",
86
+ "reason": "JVM backend pattern \u2014 not Android UI"
87
+ },
88
+ {
89
+ "agent": "integration-test-generator",
90
+ "reason": "JVM backend pattern"
91
+ },
92
+ {
93
+ "agent": "integration-test-healer",
94
+ "reason": "JVM backend pattern"
95
+ }
96
+ ]
97
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "slug": "example-feature-light",
3
+ "intent": "feature",
4
+ "profile": "light",
5
+ "summary": "Trivial single-file change with explicit AC",
6
+ "steps": [
7
+ {
8
+ "agent": "feature-developer",
9
+ "label": "Implement",
10
+ "model": "cheap"
11
+ },
12
+ {
13
+ "agent": "build-verifier",
14
+ "label": "Gradle compile + lint + unit smoke",
15
+ "model": "cheap"
16
+ }
17
+ ],
18
+ "humanGates": [],
19
+ "autoChain": true,
20
+ "skipped": [
21
+ {
22
+ "agent": "task-analyst",
23
+ "reason": "Explicit AC and single-file scope"
24
+ },
25
+ {
26
+ "agent": "code-reviewer",
27
+ "reason": "Light profile \u2014 non-trivial app changes should use standard"
28
+ },
29
+ {
30
+ "agent": "instrumentation-test-planner",
31
+ "reason": "No UI AC"
32
+ },
33
+ {
34
+ "agent": "playwright-test-planner",
35
+ "reason": "Android uses instrumentation-test-*"
36
+ }
37
+ ]
38
+ }
@@ -40,3 +40,6 @@ Document PASS/FAIL in `validation-report.md`.
40
40
  - **Owned outputs:** `validation-report.md`; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `validation`) and preserve all foreign entries.
41
41
  - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `validation_failed`. Bind it to the supplied `attemptId` when present.
42
42
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
43
+
44
+ 13. **Product-specs assets (FAIL):** package must ship `presets/_shared/assets/docs-specs/INDEX.md`, `_templates/page.md`, `_templates/feature.md`. Cursor+Claude twins for `product-specs` and `product-specs-authoring` must embed matching shared-core markers; both stems **requestable** (`alwaysApply: false` / Claude `paths: docs/specs/**`) — never session-start.
45
+ 14. **Optional consumer check (WARN default):** `scripts/check-product-specs.sh` + schema stub may exist for opt-in consumer CI; **FAIL** only with `--strict` or AC that requires named specs — do not force consumer CI.
@@ -18,6 +18,8 @@ Apply skill `code-review` and `code-review-mr.mdc`. Weigh `architecture-boundari
18
18
 
19
19
  ## Review focus (Go hexagonal)
20
20
 
21
+ - If the MR touches `docs/specs/**`, load **`product-specs`** (+ **`product-specs-authoring`** when new/changed specs): **WARN** code/spec drift; **FAIL** broken INDEX `path` link or missing required frontmatter keys/arrays on touched spec files; required body headings missing → **FAIL** on touched files. Do not invent missing product behavior.
22
+
21
23
  - **Layers:** domain has no HTTP/SQL/framework imports; application defines ports and has no concrete adapters; handlers map DTO↔domain at the edge only.
22
24
  - **DI:** composition root in `cmd/` / `internal/app` — no business logic in wiring.
23
25
  - **Errors / context:** `%w` wrapping; `context.Context` on I/O boundaries; no swallowed errors.
@@ -46,6 +46,13 @@ Update `.cursor/team/tasks/<slug>/implementation.md` and the owned implementatio
46
46
 
47
47
  - When writing or changing code, load / follow rule `anti-sycophancy-discipline`.
48
48
 
49
+ ## Product specs (docs/specs)
50
+
51
+ When work touches a page/feature/route/alias: if `docs/specs/INDEX.md` exists (or brief lists approved specs), load **`product-specs`** and treat **approved** specs from brief/handoff as **behavior SoT**. Soft-fail on miss (`open_questions` + code / `.ai/context` fallback); **never invent** product behavior.
52
+
53
+ Mechanical INDEX/frontmatter fixes only when implementation renames routes/ids. Substantive behavior edits → hand back to task-analyst (or tech-writer where present). If INDEX is absent and generation was not approved, treat specs as optional (greenfield).
54
+
55
+
49
56
  ## Artifact contract
50
57
 
51
58
  - **Authoritative inputs:** read `.cursor/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for `brief.md`, `decomposition.md`, current scope, and applicable prior findings.
@@ -24,6 +24,25 @@ Emit an analysis receipt; the runtime applies any configured human gate.
24
24
 
25
25
  - Optional: Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit — only when decomposing refactor/architecture tasks (not default).
26
26
 
27
+ ## Product specs (docs/specs)
28
+
29
+ **Consume (default):** When work touches a page/feature/route/alias and `docs/specs/INDEX.md` exists, load **`product-specs`**, resolve the linked page/feature spec, and cite it under **Related specs** in `brief.md`. Soft-fail on miss (`open_questions` + code / `.ai/context` fallback); **never invent** product behavior. If INDEX is absent, treat specs as optional unless author mode applies.
30
+
31
+ **Author mode (Generate / Bootstrap):** When the user runs `/spec-start`, router intent is `spec-gen` / bootstrap, or brief/AC requests generation: load **`product-specs`** + **`product-specs-authoring`** and skill **`spec-authoring`**. You are the **primary author** (INDEX bootstrap included). Follow frontmatter v1 + required headings; update INDEX in the **same change set**; default `status: draft`. Block handoff via `open_questions` until the authoring self-check passes.
32
+
33
+ ### Brief sections (when author mode or INDEX exists)
34
+
35
+ Add to `brief.md`:
36
+
37
+ ```markdown
38
+ ## Related specs
39
+ - path or id (or N/A)
40
+
41
+ ## Spec gaps / generation requested
42
+ - [ ] none | generate | bootstrap — sources: …
43
+ ```
44
+
45
+
27
46
  ## Artifact contract
28
47
 
29
48
  - **Authoritative inputs:** read `.cursor/team/tasks/<slug>/artifact-manifest.json` first; consume `pipeline.json`, the manifest routing entry, user-approved decisions, and any authoritative architecture/approval entries.
@@ -89,6 +89,17 @@ Write `.cursor/team/tasks/<slug>/pipeline.json` and initialize the routing entry
89
89
 
90
90
  Intent + steps table + skipped + gates → invoke `steps[0].agent` (unless retro).
91
91
 
92
+ ## Spec generation intents
93
+
94
+ Detect and set routing reasons when the user asks to **generate / bootstrap product specs**, mentions `docs/specs`, or runs `/spec-start`:
95
+
96
+ | Signal | Intent | Steps |
97
+ |--------|--------|-------|
98
+ | `/spec-start`, "bootstrap docs/specs", "generate product spec" | `spec-gen` | task-analyst (**author mode**) → human gate → stop (or continue to feature-developer only if implement-after) |
99
+ | Feature/task with AC "generate specs" / missing INDEX + bootstrap AC | `spec-gen` inside feature profile | task-analyst author mode first; **not** a separate agent step |
100
+
101
+ Do **not** add a dedicated `spec-author` agent. Do not require solution-architect for routine spec authoring.
102
+
92
103
  ## Runtime initialization
93
104
 
94
105
  Return the routing receipt to the orchestrator. The orchestration runtime/hook exclusively initializes and updates `status.json`, `metrics.json`, attempt identities, and gate lifecycle; the router does not write those shared runtime files.
@@ -13,3 +13,8 @@ Write documentation from task artifacts (brief, architecture, implementation, re
13
13
  - For ai-rules preset tasks: update PRESET-CONTRIBUTION / package README as scoped — docs only.
14
14
 
15
15
  Do not change production `.go` business logic.
16
+
17
+ ## Product specs (docs/specs)
18
+
19
+ Post-delivery: when behavior or public docs changed and `docs/specs/` is in play, load **`product-specs`** (+ **`product-specs-authoring`** if updating specs). Sync page/feature specs + INDEX in the **same change set**. **Never invent** product behavior without AC/code source; label inferred lines `status: draft`. Soft-fail on miss; no-op if INDEX absent and sync not requested.
20
+
@@ -17,3 +17,7 @@ Continue after a human gate. Full logic lives in **`task-continue.md`**.
17
17
  4. The hook continues the chain when `autoChain: true`.
18
18
 
19
19
  See `task-continue.md` for details and the handoff table.
20
+
21
+ ## Product specs (docs/specs)
22
+
23
+ When the next agent is **feature-developer** (or other implementer): if `docs/specs/INDEX.md` exists, instruct them to load **`product-specs`** and honor **Related specs** from `brief.md` (behavior SoT). Soft-fail on miss; never invent product behavior. No-op if INDEX is absent.
@@ -19,11 +19,19 @@ Starts the **analysis phase** without the router. The parent agent acts as orche
19
19
  6. Invoke subagent **task-analyst** (Task tool) with the full task description and artifact paths.
20
20
  7. Wait for the analyst to finish. **Do not invoke developer** at this stage.
21
21
 
22
+ ## Product specs (docs/specs)
23
+
24
+ When invoking **task-analyst**: if `docs/specs/INDEX.md` exists, instruct consume via **`product-specs`** and cite **Related specs**. Soft-fail on miss; never invent behavior.
25
+
26
+ If the user/AC requests generation or bootstrap, or INDEX is missing **with** bootstrap AC / `/spec-start` intent: instruct **author mode** inside the same analyst step — load **`product-specs-authoring`** + skill **`spec-authoring`**. Authoring is **not** a separate pipeline agent. Handoff must list created paths + INDEX diff; human gate must approve generated specs before feature-developer.
27
+
28
+
22
29
  ## Human gate
23
30
 
24
31
  After the analyst:
25
32
 
26
33
  - Show the user links to `brief.md` and `decomposition.md`.
34
+ - Also ask them to check **Related specs** in `brief.md` when `docs/specs/INDEX.md` exists.
27
35
  - Ask them to review and approve or send edits.
28
36
  - To continue: `/task-continue <slug>` or `/feature-continue <slug>`.
29
37
 
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: spec-start
3
+ description: Bootstrap or generate docs/specs (INDEX + page/feature) via task-analyst author mode. Optional docs-only path with human gate.
4
+ ---
5
+
6
+ # Spec start — generate / bootstrap product specs
7
+
8
+ Routes intent **`spec-gen`** (or bootstrap) → **task-analyst** in **author mode** → human gate (`after:task-analyst`) → stop, or continue to feature-developer if the user asked to implement after.
9
+
10
+ ## What to do
11
+
12
+ 1. Extract description from arguments after `/spec-start` (domain, page/feature ids, sources).
13
+ 2. Generate a **slug** (kebab-case, ≤48 chars), e.g. `spec-<domain>-<id>`.
14
+ 3. Ensure `.cursor/team/tasks/<slug>/` exists (Write artifacts; not Shell mkdir).
15
+ 4. Write `.cursor/team/active-task.json` → `{ "slug": "<slug>" }`.
16
+ 5. Write minimal `pipeline.json`: task-analyst → (optional stop) → feature-developer only if user asked implement-after. **No separate spec-author agent.**
17
+ 6. Invoke **task-analyst** with: author mode; load **`product-specs`** + **`product-specs-authoring`** + skill **`spec-authoring`**; Bootstrap if `docs/specs/` absent, else Generate.
18
+ 7. Wait for analyst. **Do not** invoke feature-developer until human gate passes.
19
+
20
+ ## Human gate
21
+
22
+ - Show created/updated spec paths and INDEX diff.
23
+ - Ask user to approve drafts (`status: draft` → promote) or send edits.
24
+ - Continue: `/task-continue <slug>` only after approval when implementation follows; otherwise stop after docs.
25
+
26
+ ## Notes
27
+
28
+ - Greenfield invent of INDEX is allowed **only** via this command, explicit ask, or AC bootstrap language.
29
+ - mcp-ts: analyst-only author/sync (no tech-writer).
@@ -40,11 +40,14 @@ printf '%s\n' '{"status":"completed","action":"end_human_gate","activateNext":tr
40
40
 
41
41
  | Agent | Read |
42
42
  |-------|------|
43
- | feature-developer | brief.md, decomposition.md, validation-report.md (if retry), review.md (if retry), architecture.md |
43
+ | feature-developer | brief.md (incl. **Related specs**), decomposition.md, validation-report.md (if retry), review.md (if retry), architecture.md; if `docs/specs/INDEX.md` exists → load **`product-specs`** |
44
44
  | build-verifier | git diff, decomposition.md |
45
45
  | code-reviewer | brief.md, validation-report.md, git diff |
46
46
  | qa-tester | brief.md, decomposition.md, scope from pipeline step |
47
47
 
48
- ## Metrics
48
+ ## Product specs (docs/specs)
49
+
50
+ When the next agent is **feature-developer** (or other implementer): if `docs/specs/INDEX.md` exists or brief lists approved specs, instruct them to load **`product-specs`** and honor **Related specs** / approved generated specs as behavior SoT. Soft-fail on miss; never invent product behavior.
51
+
52
+ If analyst ran **author mode**, confirm human approved drafts before developer. Pass spec paths + INDEX diff in the handoff. No-op if INDEX is absent and no approved specs.
49
53
 
50
- On human-gate resume, the hook action above appends `human_gate_ended` under the per-task lock **before** any new `attempt_started`. Agents must not calculate durations.
@@ -19,7 +19,7 @@
19
19
  ## Loading strategy
20
20
 
21
21
  - **`alwaysApply: true`** (Cursor) / **without `paths:`** (Claude) — base invariants only (**3**): `go-app-core`, `architecture-boundaries`, `code-quality-and-refactoring`
22
- - **On-demand / requestable** — `post-change-test`, `go-tooling`, `agent-team-intake`, `agent-team-orchestrator`, hexagonal domain/adapters, tests, feature-delivery-workflow, reference-features, `design-guidance`, `anti-sycophancy-discipline`, `technical-retro`
22
+ - **On-demand / requestable** — `post-change-test`, `go-tooling`, `agent-team-intake`, `agent-team-orchestrator`, hexagonal domain/adapters, tests, feature-delivery-workflow, reference-features, product-specs, product-specs-authoring, `design-guidance`, `anti-sycophancy-discipline`, `technical-retro`
23
23
  - **Preset author meta** (globs `packages/ai-rules/presets/**`, never alwaysApply): `preset-layering`, `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`
24
24
  - **Skills** — long procedures (`feature-delivery`, `code-review`, `integration-testing`, …)
25
25
 
@@ -47,6 +47,8 @@ SoT prose: `packages/ai-rules/presets/_shared/core/**` (see `_shared/README.md`)
47
47
  | `agent-team/agent-team-intake.md` | `agent-team-intake.mdc` | embed | thin alias |
48
48
  | `architecture/feature-delivery-workflow.md` | `feature-delivery-workflow.mdc` | lineage | Go hexagonal checklist (stack-native body; core = abstract SoT) |
49
49
  | `architecture/reference-features.template.md` | `reference-features.mdc` | lineage | `internal/**` / `cmd/**` table + dogfood |
50
+ | `architecture/product-specs.md` | `product-specs.mdc` | INDEX discovery; Stack notes field semantics |
51
+ | `architecture/product-specs-authoring.md` | `product-specs-authoring.mdc` | Generate/Bootstrap contract; requestable |
50
52
  | `review/code-review-mr.md` | `code-review-mr.mdc` | embed | Go checklist |
51
53
  | `review/technical-retro.md` | `technical-retro.mdc` | embed | thin alias |
52
54
  | `meta/preset-*.md` | `preset-*.mdc` | embed | author-only globs (incl. `preset-no-cross-stack-leakage`) |
@@ -64,6 +66,7 @@ Claude twins + Cursor→Claude map: `presets/claude/go/rules/README.md`. Cross-s
64
66
  | `design-guidance` | full | requestable embed |
65
67
  | `feature-delivery-workflow` | full | lineage |
66
68
  | `reference-features` | full | lineage |
69
+ | `product-specs` | full | requestable embed — docs/specs INDEX |
67
70
  | `agent-team-orchestrator` | full | lineage |
68
71
  | `code-review-mr` | full | embed |
69
72
  | `preset-*` (×5) | full | author meta |
@@ -183,3 +183,5 @@ When the work edits `packages/ai-rules/presets/**` (or dogfood `.cursor/` sync o
183
183
  - **No `accessibility-reviewer`** agent (no UI surface) — do not schedule it; `task-router` bans it. Gates: `build-verifier`, `code-reviewer`, `security-reviewer`, `performance-auditor`.
184
184
  - E2E/integration intents use **`integration-test-*`** agents — never Playwright or XCUITest.
185
185
  - After Go code changes, pipeline includes **build-verifier** with `go test` / `post-change-test`.
186
+
187
+ **Product specs:** When `/task`, `/feature-start`, or `/spec-start` touches pages/features/`docs/specs`: if INDEX exists and no generate intent → instruct next agent to load requestable **`product-specs`** (consume; soft-fail; never invent). If generate/bootstrap/`spec-gen` → load **`product-specs-authoring`** + skill **`spec-authoring`** inside **task-analyst** (not a separate pipeline step); pass created spec paths + INDEX diff in handoff; human gate must approve before feature-developer. No-op if INDEX absent and no author intent.
@@ -44,3 +44,7 @@ flowchart LR
44
44
  - Framework types in domain; SQL in use cases; DI inside handlers; skipping port interfaces “for speed”.
45
45
  - **Ubiquitous language:** Domain names/boundaries reflect the feature domain — do not mix transport/framework terms into domain without need.
46
46
  - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
47
+
48
+ ## Related
49
+
50
+ - Product behavior discovery: requestable **`product-specs`** (`docs/specs/INDEX.md`) — do not paste the discovery algorithm here.
@@ -24,7 +24,7 @@ Rules for **preset authors** (`packages/ai-rules/presets/**`). Not always-on in
24
24
  ## Where to put a new rule
25
25
 
26
26
  1. Shared principles for all stacks → **core** + adapters with `<!-- shared-core: … -->`.
27
- 2. Only one of the installable stacks (`next` / `nuxt` / `svelte` / `ios-swift` / `go` / `java` / `mcp-ts` / `php-hexagonal` / `php-laravel`) → **stack-specific** (not in `_shared`).
27
+ 2. Only one of the installable stacks (`next` / `nuxt` / `svelte` / `ios-swift` / `android-kotlin` / `go` / `java` / `mcp-ts` / `php-hexagonal` / `php-laravel`) → **stack-specific** (not in `_shared`).
28
28
  3. Only Cursor or only Claude packaging → platform artifact / frontmatter; do not duplicate semantics.
29
29
 
30
30
  ## SoT