@bonesofspring/ai-rules 0.2.18 → 0.2.19

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 (653) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +5 -3
  3. package/bin/cli.js +111 -4
  4. package/package.json +6 -3
  5. package/presets/_shared/README.md +1 -1
  6. package/presets/_shared/assets/docs-specs/schemas/frontmatter-v1.schema.json +1 -1
  7. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +38 -0
  8. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -0
  9. package/presets/_shared/core/architecture/feature-delivery-workflow.md +2 -1
  10. package/presets/_shared/core/architecture/product-specs-authoring.md +6 -3
  11. package/presets/_shared/core/architecture/product-specs.md +8 -3
  12. package/presets/_shared/core/meta/preset-no-cross-stack-leakage.md +1 -0
  13. package/presets/_shared/core/quality/anti-sycophancy-discipline.md +1 -1
  14. package/presets/_shared/core/quality/code-quality-and-refactoring.md +1 -1
  15. package/presets/_shared/core/quality/mcp-usage.md +84 -0
  16. package/presets/claude/android-kotlin/MCP.md +20 -1
  17. package/presets/claude/android-kotlin/agents/accessibility-reviewer.md +6 -0
  18. package/presets/claude/android-kotlin/agents/ci-investigator.md +8 -0
  19. package/presets/claude/android-kotlin/agents/debugger.md +8 -0
  20. package/presets/claude/android-kotlin/agents/feature-developer.md +23 -0
  21. package/presets/claude/android-kotlin/agents/migration-specialist.md +6 -0
  22. package/presets/claude/android-kotlin/agents/performance-auditor.md +6 -0
  23. package/presets/claude/android-kotlin/agents/solution-architect.md +6 -0
  24. package/presets/claude/android-kotlin/agents/task-analyst.md +17 -0
  25. package/presets/claude/android-kotlin/agents/task-router.md +6 -0
  26. package/presets/claude/android-kotlin/commands/spec-start.md +1 -1
  27. package/presets/claude/android-kotlin/mcp.json +1 -1
  28. package/presets/claude/android-kotlin/rules/README.md +1 -0
  29. package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +3 -1
  30. package/presets/claude/android-kotlin/rules/architecture/product-specs-authoring.md +6 -4
  31. package/presets/claude/android-kotlin/rules/architecture/product-specs.md +8 -4
  32. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
  33. package/presets/claude/android-kotlin/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -1
  34. package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +1 -1
  35. package/presets/claude/android-kotlin/rules/tooling-and-review/mcp-usage.md +100 -0
  36. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-no-cross-stack-leakage.md +2 -0
  37. package/presets/claude/android-kotlin/skills/README.md +2 -0
  38. package/presets/claude/android-kotlin/skills/ci-investigation/SKILL.md +8 -0
  39. package/presets/claude/android-kotlin/skills/debug-investigation/SKILL.md +8 -0
  40. package/presets/claude/android-kotlin/skills/feature-delivery/SKILL.md +6 -0
  41. package/presets/claude/android-kotlin/skills/spec-discovery/SKILL.md +58 -0
  42. package/presets/claude/android-kotlin/team/README.md +8 -0
  43. package/presets/claude/android-kotlin/team/fixtures/feature-full.json +1 -0
  44. package/presets/claude/android-kotlin/team/fixtures/memlog.example.md +9 -0
  45. package/presets/claude/go/MCP.md +22 -1
  46. package/presets/claude/go/agents/ci-investigator.md +8 -0
  47. package/presets/claude/go/agents/debugger.md +8 -0
  48. package/presets/claude/go/agents/feature-developer.md +23 -0
  49. package/presets/claude/go/agents/migration-specialist.md +6 -0
  50. package/presets/claude/go/agents/performance-auditor.md +6 -0
  51. package/presets/claude/go/agents/solution-architect.md +6 -0
  52. package/presets/claude/go/agents/task-analyst.md +17 -0
  53. package/presets/claude/go/agents/task-router.md +6 -0
  54. package/presets/claude/go/commands/feature-continue.md +11 -40
  55. package/presets/claude/go/commands/spec-start.md +1 -1
  56. package/presets/claude/go/mcp.json +1 -1
  57. package/presets/claude/go/rules/README.md +2 -1
  58. package/presets/claude/go/rules/architecture/feature-delivery.md +2 -1
  59. package/presets/claude/go/rules/architecture/product-specs-authoring.md +6 -4
  60. package/presets/claude/go/rules/architecture/product-specs.md +8 -4
  61. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  62. package/presets/claude/go/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -1
  63. package/presets/claude/go/rules/tooling-and-review/code-quality.md +1 -1
  64. package/presets/claude/go/rules/tooling-and-review/mcp-usage.md +99 -0
  65. package/presets/claude/go/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -0
  66. package/presets/claude/go/skills/README.md +1 -1
  67. package/presets/claude/go/skills/ci-investigation/SKILL.md +7 -0
  68. package/presets/claude/go/skills/code-review/SKILL.md +1 -0
  69. package/presets/claude/go/skills/debug-investigation/SKILL.md +8 -0
  70. package/presets/claude/go/skills/feature-delivery/SKILL.md +7 -1
  71. package/presets/claude/go/skills/spec-discovery/SKILL.md +58 -0
  72. package/presets/claude/go/team/README.md +8 -0
  73. package/presets/claude/go/team/fixtures/feature-full.json +46 -10
  74. package/presets/claude/go/team/fixtures/memlog.example.md +9 -0
  75. package/presets/claude/ios-swift/MCP.md +20 -1
  76. package/presets/claude/ios-swift/agents/accessibility-reviewer.md +7 -10
  77. package/presets/claude/ios-swift/agents/api-contract-reviewer.md +2 -11
  78. package/presets/claude/ios-swift/agents/ci-investigator.md +10 -11
  79. package/presets/claude/ios-swift/agents/debugger.md +10 -11
  80. package/presets/claude/ios-swift/agents/feature-developer.md +23 -0
  81. package/presets/claude/ios-swift/agents/migration-specialist.md +8 -11
  82. package/presets/claude/ios-swift/agents/performance-auditor.md +8 -11
  83. package/presets/claude/ios-swift/agents/qa-tester.md +2 -11
  84. package/presets/claude/ios-swift/agents/security-reviewer.md +2 -11
  85. package/presets/claude/ios-swift/agents/solution-architect.md +6 -0
  86. package/presets/claude/ios-swift/agents/task-analyst.md +17 -0
  87. package/presets/claude/ios-swift/agents/task-router.md +6 -0
  88. package/presets/claude/ios-swift/agents/unit-test-generator.md +2 -11
  89. package/presets/claude/ios-swift/agents/unit-test-healer.md +2 -11
  90. package/presets/claude/ios-swift/agents/unit-test-planner.md +2 -11
  91. package/presets/claude/ios-swift/agents/xcuitest-test-generator.md +1 -11
  92. package/presets/claude/ios-swift/agents/xcuitest-test-healer.md +1 -11
  93. package/presets/claude/ios-swift/agents/xcuitest-test-planner.md +1 -13
  94. package/presets/claude/ios-swift/commands/spec-start.md +1 -1
  95. package/presets/claude/ios-swift/mcp.json +1 -1
  96. package/presets/claude/ios-swift/rules/README.md +3 -1
  97. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +2 -1
  98. package/presets/claude/ios-swift/rules/architecture/product-specs-authoring.md +6 -4
  99. package/presets/claude/ios-swift/rules/architecture/product-specs.md +8 -4
  100. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
  101. package/presets/claude/ios-swift/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -1
  102. package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +1 -1
  103. package/presets/claude/ios-swift/rules/tooling-and-review/mcp-usage.md +100 -0
  104. package/presets/claude/ios-swift/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -0
  105. package/presets/claude/ios-swift/skills/README.md +2 -0
  106. package/presets/claude/ios-swift/skills/ci-investigation/SKILL.md +8 -0
  107. package/presets/claude/ios-swift/skills/code-review/SKILL.md +1 -1
  108. package/presets/claude/ios-swift/skills/debug-investigation/SKILL.md +9 -1
  109. package/presets/claude/ios-swift/skills/feature-delivery/SKILL.md +7 -1
  110. package/presets/claude/ios-swift/skills/spec-discovery/SKILL.md +58 -0
  111. package/presets/claude/ios-swift/team/README.md +8 -0
  112. package/presets/claude/ios-swift/team/fixtures/feature-full.json +39 -9
  113. package/presets/claude/ios-swift/team/fixtures/memlog.example.md +9 -0
  114. package/presets/claude/java/CLAUDE.md +1 -1
  115. package/presets/claude/java/MCP.md +21 -0
  116. package/presets/claude/java/agents/ci-investigator.md +8 -0
  117. package/presets/claude/java/agents/debugger.md +8 -0
  118. package/presets/claude/java/agents/feature-developer.md +23 -0
  119. package/presets/claude/java/agents/migration-specialist.md +6 -0
  120. package/presets/claude/java/agents/performance-auditor.md +6 -0
  121. package/presets/claude/java/agents/solution-architect.md +6 -0
  122. package/presets/claude/java/agents/task-analyst.md +17 -0
  123. package/presets/claude/java/agents/task-router.md +6 -0
  124. package/presets/claude/java/commands/feature-continue.md +11 -40
  125. package/presets/claude/java/commands/spec-start.md +1 -1
  126. package/presets/claude/java/mcp.json +1 -1
  127. package/presets/claude/java/rules/README.md +1 -0
  128. package/presets/claude/java/rules/architecture/feature-delivery.md +2 -1
  129. package/presets/claude/java/rules/architecture/product-specs-authoring.md +6 -4
  130. package/presets/claude/java/rules/architecture/product-specs.md +8 -4
  131. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  132. package/presets/claude/java/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -1
  133. package/presets/claude/java/rules/tooling-and-review/code-quality.md +1 -1
  134. package/presets/claude/java/rules/tooling-and-review/mcp-usage.md +98 -0
  135. package/presets/claude/java/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -0
  136. package/presets/claude/java/skills/README.md +1 -1
  137. package/presets/claude/java/skills/ci-investigation/SKILL.md +7 -0
  138. package/presets/claude/java/skills/code-review/SKILL.md +1 -0
  139. package/presets/claude/java/skills/debug-investigation/SKILL.md +8 -0
  140. package/presets/claude/java/skills/feature-delivery/SKILL.md +7 -1
  141. package/presets/claude/java/skills/spec-discovery/SKILL.md +58 -0
  142. package/presets/claude/java/team/README.md +8 -0
  143. package/presets/claude/java/team/fixtures/feature-full.json +46 -10
  144. package/presets/claude/java/team/fixtures/memlog.example.md +9 -0
  145. package/presets/claude/mcp-ts/MCP.md +20 -1
  146. package/presets/claude/mcp-ts/agents/feature-developer.md +23 -0
  147. package/presets/claude/mcp-ts/agents/solution-architect.md +5 -0
  148. package/presets/claude/mcp-ts/agents/task-analyst.md +17 -0
  149. package/presets/claude/mcp-ts/agents/task-router.md +6 -0
  150. package/presets/claude/mcp-ts/commands/spec-start.md +1 -1
  151. package/presets/claude/mcp-ts/mcp.json +1 -1
  152. package/presets/claude/mcp-ts/rules/README.md +1 -0
  153. package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +3 -1
  154. package/presets/claude/mcp-ts/rules/architecture/product-specs-authoring.md +6 -4
  155. package/presets/claude/mcp-ts/rules/architecture/product-specs.md +8 -4
  156. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  157. package/presets/claude/mcp-ts/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -1
  158. package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +1 -1
  159. package/presets/claude/mcp-ts/rules/tooling-and-review/mcp-usage.md +99 -0
  160. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -0
  161. package/presets/claude/mcp-ts/skills/README.md +2 -0
  162. package/presets/claude/mcp-ts/skills/code-review/SKILL.md +1 -0
  163. package/presets/claude/mcp-ts/skills/debug-investigation/SKILL.md +7 -0
  164. package/presets/claude/mcp-ts/skills/feature-delivery/SKILL.md +7 -1
  165. package/presets/claude/mcp-ts/skills/spec-discovery/SKILL.md +58 -0
  166. package/presets/claude/mcp-ts/team/README.md +7 -0
  167. package/presets/claude/mcp-ts/team/fixtures/feature-full.json +5 -2
  168. package/presets/claude/mcp-ts/team/fixtures/memlog.example.md +9 -0
  169. package/presets/claude/next/MCP.md +22 -0
  170. package/presets/claude/next/agents/accessibility-reviewer.md +8 -0
  171. package/presets/claude/next/agents/ci-investigator.md +8 -0
  172. package/presets/claude/next/agents/debugger.md +12 -0
  173. package/presets/claude/next/agents/feature-developer.md +25 -0
  174. package/presets/claude/next/agents/migration-specialist.md +6 -0
  175. package/presets/claude/next/agents/performance-auditor.md +8 -0
  176. package/presets/claude/next/agents/playwright-test-generator.md +11 -1
  177. package/presets/claude/next/agents/playwright-test-healer.md +8 -1
  178. package/presets/claude/next/agents/solution-architect.md +6 -0
  179. package/presets/claude/next/agents/task-analyst.md +17 -0
  180. package/presets/claude/next/agents/task-router.md +6 -0
  181. package/presets/claude/next/commands/feature-continue.md +11 -40
  182. package/presets/claude/next/commands/spec-start.md +1 -1
  183. package/presets/claude/next/mcp.json +3 -3
  184. package/presets/claude/next/rules/README.md +5 -3
  185. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +2 -1
  186. package/presets/claude/next/rules/architecture/product-specs-authoring.md +6 -4
  187. package/presets/claude/next/rules/architecture/product-specs.md +8 -4
  188. package/presets/claude/next/rules/testing/tests-unit.md +5 -0
  189. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
  190. package/presets/claude/next/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -1
  191. package/presets/claude/next/rules/tooling-and-review/code-quality.md +1 -1
  192. package/presets/claude/next/rules/tooling-and-review/mcp-usage.md +101 -0
  193. package/presets/claude/next/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -0
  194. package/presets/claude/next/skills/README.md +2 -0
  195. package/presets/claude/next/skills/ci-investigation/SKILL.md +8 -0
  196. package/presets/claude/next/skills/code-review/SKILL.md +1 -1
  197. package/presets/claude/next/skills/debug-investigation/SKILL.md +13 -1
  198. package/presets/claude/next/skills/feature-delivery/SKILL.md +9 -1
  199. package/presets/claude/next/skills/spec-discovery/SKILL.md +58 -0
  200. package/presets/claude/next/team/README.md +11 -0
  201. package/presets/claude/next/team/fixtures/feature-full.json +43 -9
  202. package/presets/claude/next/team/fixtures/memlog.example.md +9 -0
  203. package/presets/claude/nuxt/MCP.md +22 -0
  204. package/presets/claude/nuxt/agents/accessibility-reviewer.md +8 -0
  205. package/presets/claude/nuxt/agents/ci-investigator.md +8 -0
  206. package/presets/claude/nuxt/agents/debugger.md +12 -0
  207. package/presets/claude/nuxt/agents/feature-developer.md +25 -0
  208. package/presets/claude/nuxt/agents/migration-specialist.md +6 -0
  209. package/presets/claude/nuxt/agents/performance-auditor.md +8 -0
  210. package/presets/claude/nuxt/agents/playwright-test-generator.md +11 -1
  211. package/presets/claude/nuxt/agents/playwright-test-healer.md +8 -1
  212. package/presets/claude/nuxt/agents/solution-architect.md +6 -0
  213. package/presets/claude/nuxt/agents/task-analyst.md +17 -0
  214. package/presets/claude/nuxt/agents/task-router.md +10 -4
  215. package/presets/claude/nuxt/commands/spec-start.md +1 -1
  216. package/presets/claude/nuxt/mcp.json +3 -3
  217. package/presets/claude/nuxt/rules/README.md +2 -0
  218. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +2 -1
  219. package/presets/claude/nuxt/rules/architecture/product-specs-authoring.md +6 -4
  220. package/presets/claude/nuxt/rules/architecture/product-specs.md +8 -4
  221. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
  222. package/presets/claude/nuxt/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -1
  223. package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +1 -1
  224. package/presets/claude/nuxt/rules/tooling-and-review/mcp-usage.md +106 -0
  225. package/presets/claude/nuxt/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -0
  226. package/presets/claude/nuxt/skills/README.md +2 -0
  227. package/presets/claude/nuxt/skills/ci-investigation/SKILL.md +8 -0
  228. package/presets/claude/nuxt/skills/code-review/SKILL.md +1 -1
  229. package/presets/claude/nuxt/skills/debug-investigation/SKILL.md +13 -1
  230. package/presets/claude/nuxt/skills/feature-delivery/SKILL.md +9 -1
  231. package/presets/claude/nuxt/skills/spec-discovery/SKILL.md +58 -0
  232. package/presets/claude/nuxt/team/README.md +11 -0
  233. package/presets/claude/nuxt/team/fixtures/feature-full.json +43 -9
  234. package/presets/claude/nuxt/team/fixtures/memlog.example.md +9 -0
  235. package/presets/claude/php-hexagonal/CLAUDE.md +1 -1
  236. package/presets/claude/php-hexagonal/MCP.md +20 -1
  237. package/presets/claude/php-hexagonal/agents/ci-investigator.md +8 -0
  238. package/presets/claude/php-hexagonal/agents/debugger.md +8 -0
  239. package/presets/claude/php-hexagonal/agents/feature-developer.md +23 -0
  240. package/presets/claude/php-hexagonal/agents/migration-specialist.md +6 -0
  241. package/presets/claude/php-hexagonal/agents/performance-auditor.md +6 -0
  242. package/presets/claude/php-hexagonal/agents/solution-architect.md +6 -0
  243. package/presets/claude/php-hexagonal/agents/task-analyst.md +17 -0
  244. package/presets/claude/php-hexagonal/agents/task-router.md +6 -0
  245. package/presets/claude/php-hexagonal/commands/feature-continue.md +11 -40
  246. package/presets/claude/php-hexagonal/commands/spec-start.md +1 -1
  247. package/presets/claude/php-hexagonal/mcp.json +1 -1
  248. package/presets/claude/php-hexagonal/rules/README.md +1 -0
  249. package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +2 -1
  250. package/presets/claude/php-hexagonal/rules/architecture/product-specs-authoring.md +6 -4
  251. package/presets/claude/php-hexagonal/rules/architecture/product-specs.md +8 -4
  252. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  253. package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -1
  254. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +1 -1
  255. package/presets/claude/php-hexagonal/rules/tooling-and-review/mcp-usage.md +98 -0
  256. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -0
  257. package/presets/claude/php-hexagonal/skills/README.md +1 -1
  258. package/presets/claude/php-hexagonal/skills/ci-investigation/SKILL.md +7 -0
  259. package/presets/claude/php-hexagonal/skills/code-review/SKILL.md +1 -0
  260. package/presets/claude/php-hexagonal/skills/debug-investigation/SKILL.md +8 -0
  261. package/presets/claude/php-hexagonal/skills/feature-delivery/SKILL.md +7 -1
  262. package/presets/claude/php-hexagonal/skills/spec-discovery/SKILL.md +58 -0
  263. package/presets/claude/php-hexagonal/team/README.md +8 -0
  264. package/presets/claude/php-hexagonal/team/fixtures/feature-full.json +46 -10
  265. package/presets/claude/php-hexagonal/team/fixtures/memlog.example.md +9 -0
  266. package/presets/claude/php-laravel/MCP.md +21 -0
  267. package/presets/claude/php-laravel/agents/ci-investigator.md +8 -0
  268. package/presets/claude/php-laravel/agents/debugger.md +8 -0
  269. package/presets/claude/php-laravel/agents/feature-developer.md +23 -0
  270. package/presets/claude/php-laravel/agents/migration-specialist.md +6 -0
  271. package/presets/claude/php-laravel/agents/performance-auditor.md +6 -0
  272. package/presets/claude/php-laravel/agents/solution-architect.md +6 -0
  273. package/presets/claude/php-laravel/agents/task-analyst.md +17 -0
  274. package/presets/claude/php-laravel/agents/task-router.md +6 -0
  275. package/presets/claude/php-laravel/commands/feature-continue.md +11 -40
  276. package/presets/claude/php-laravel/commands/spec-start.md +1 -1
  277. package/presets/claude/php-laravel/mcp.json +1 -1
  278. package/presets/claude/php-laravel/rules/README.md +1 -0
  279. package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +3 -1
  280. package/presets/claude/php-laravel/rules/architecture/product-specs-authoring.md +6 -4
  281. package/presets/claude/php-laravel/rules/architecture/product-specs.md +8 -4
  282. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  283. package/presets/claude/php-laravel/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -1
  284. package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +1 -1
  285. package/presets/claude/php-laravel/rules/tooling-and-review/mcp-usage.md +98 -0
  286. package/presets/claude/php-laravel/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -0
  287. package/presets/claude/php-laravel/skills/README.md +1 -1
  288. package/presets/claude/php-laravel/skills/ci-investigation/SKILL.md +7 -0
  289. package/presets/claude/php-laravel/skills/code-review/SKILL.md +1 -0
  290. package/presets/claude/php-laravel/skills/debug-investigation/SKILL.md +8 -0
  291. package/presets/claude/php-laravel/skills/feature-delivery/SKILL.md +7 -1
  292. package/presets/claude/php-laravel/skills/spec-discovery/SKILL.md +58 -0
  293. package/presets/claude/php-laravel/team/README.md +7 -0
  294. package/presets/claude/php-laravel/team/fixtures/feature-full.json +38 -9
  295. package/presets/claude/php-laravel/team/fixtures/memlog.example.md +9 -0
  296. package/presets/claude/svelte/MCP.md +22 -0
  297. package/presets/claude/svelte/agents/accessibility-reviewer.md +8 -0
  298. package/presets/claude/svelte/agents/ci-investigator.md +8 -0
  299. package/presets/claude/svelte/agents/debugger.md +12 -0
  300. package/presets/claude/svelte/agents/feature-developer.md +25 -0
  301. package/presets/claude/svelte/agents/migration-specialist.md +6 -0
  302. package/presets/claude/svelte/agents/performance-auditor.md +8 -0
  303. package/presets/claude/svelte/agents/playwright-test-generator.md +11 -1
  304. package/presets/claude/svelte/agents/playwright-test-healer.md +8 -1
  305. package/presets/claude/svelte/agents/solution-architect.md +6 -0
  306. package/presets/claude/svelte/agents/task-analyst.md +17 -0
  307. package/presets/claude/svelte/agents/task-router.md +6 -0
  308. package/presets/claude/svelte/commands/spec-start.md +1 -1
  309. package/presets/claude/svelte/mcp.json +3 -3
  310. package/presets/claude/svelte/rules/README.md +2 -0
  311. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +2 -1
  312. package/presets/claude/svelte/rules/architecture/product-specs-authoring.md +6 -4
  313. package/presets/claude/svelte/rules/architecture/product-specs.md +8 -4
  314. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +2 -1
  315. package/presets/claude/svelte/rules/tooling-and-review/anti-sycophancy-discipline.md +1 -1
  316. package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +1 -1
  317. package/presets/claude/svelte/rules/tooling-and-review/mcp-usage.md +101 -0
  318. package/presets/claude/svelte/rules/tooling-and-review/preset-no-cross-stack-leakage.md +1 -0
  319. package/presets/claude/svelte/skills/README.md +2 -0
  320. package/presets/claude/svelte/skills/ci-investigation/SKILL.md +8 -0
  321. package/presets/claude/svelte/skills/code-review/SKILL.md +1 -1
  322. package/presets/claude/svelte/skills/debug-investigation/SKILL.md +13 -1
  323. package/presets/claude/svelte/skills/feature-delivery/SKILL.md +9 -1
  324. package/presets/claude/svelte/skills/spec-discovery/SKILL.md +58 -0
  325. package/presets/claude/svelte/team/README.md +11 -0
  326. package/presets/claude/svelte/team/fixtures/feature-full.json +43 -9
  327. package/presets/claude/svelte/team/fixtures/memlog.example.md +9 -0
  328. package/presets/cursor/android-kotlin/MCP.md +20 -1
  329. package/presets/cursor/android-kotlin/agents/accessibility-reviewer.md +6 -0
  330. package/presets/cursor/android-kotlin/agents/ci-investigator.md +8 -0
  331. package/presets/cursor/android-kotlin/agents/debugger.md +8 -0
  332. package/presets/cursor/android-kotlin/agents/feature-developer.md +23 -0
  333. package/presets/cursor/android-kotlin/agents/migration-specialist.md +6 -0
  334. package/presets/cursor/android-kotlin/agents/performance-auditor.md +6 -0
  335. package/presets/cursor/android-kotlin/agents/solution-architect.md +6 -0
  336. package/presets/cursor/android-kotlin/agents/task-analyst.md +17 -0
  337. package/presets/cursor/android-kotlin/agents/task-router.md +6 -0
  338. package/presets/cursor/android-kotlin/commands/spec-start.md +1 -1
  339. package/presets/cursor/android-kotlin/mcp.json +1 -1
  340. package/presets/cursor/android-kotlin/rules/README.md +2 -0
  341. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +2 -1
  342. package/presets/cursor/android-kotlin/rules/anti-sycophancy-discipline.mdc +1 -1
  343. package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +1 -1
  344. package/presets/cursor/android-kotlin/rules/feature-delivery-workflow.mdc +3 -1
  345. package/presets/cursor/android-kotlin/rules/mcp-usage.mdc +99 -0
  346. package/presets/cursor/android-kotlin/rules/preset-no-cross-stack-leakage.mdc +3 -1
  347. package/presets/cursor/android-kotlin/rules/product-specs-authoring.mdc +6 -4
  348. package/presets/cursor/android-kotlin/rules/product-specs.mdc +8 -4
  349. package/presets/cursor/android-kotlin/skills/README.md +2 -0
  350. package/presets/cursor/android-kotlin/skills/ci-investigation/SKILL.md +8 -0
  351. package/presets/cursor/android-kotlin/skills/debug-investigation/SKILL.md +8 -0
  352. package/presets/cursor/android-kotlin/skills/feature-delivery/SKILL.md +6 -0
  353. package/presets/cursor/android-kotlin/skills/spec-discovery/SKILL.md +58 -0
  354. package/presets/cursor/android-kotlin/team/README.md +8 -0
  355. package/presets/cursor/android-kotlin/team/fixtures/feature-full.json +1 -0
  356. package/presets/cursor/android-kotlin/team/fixtures/memlog.example.md +9 -0
  357. package/presets/cursor/go/MCP.md +22 -1
  358. package/presets/cursor/go/agents/ci-investigator.md +8 -0
  359. package/presets/cursor/go/agents/debugger.md +8 -0
  360. package/presets/cursor/go/agents/feature-developer.md +23 -0
  361. package/presets/cursor/go/agents/migration-specialist.md +6 -0
  362. package/presets/cursor/go/agents/performance-auditor.md +6 -0
  363. package/presets/cursor/go/agents/solution-architect.md +6 -0
  364. package/presets/cursor/go/agents/task-analyst.md +17 -0
  365. package/presets/cursor/go/agents/task-router.md +6 -0
  366. package/presets/cursor/go/commands/spec-start.md +1 -1
  367. package/presets/cursor/go/mcp.json +1 -1
  368. package/presets/cursor/go/rules/README.md +2 -1
  369. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +1 -0
  370. package/presets/cursor/go/rules/anti-sycophancy-discipline.mdc +1 -1
  371. package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +1 -1
  372. package/presets/cursor/go/rules/feature-delivery-workflow.mdc +2 -1
  373. package/presets/cursor/go/rules/mcp-usage.mdc +98 -0
  374. package/presets/cursor/go/rules/preset-no-cross-stack-leakage.mdc +1 -0
  375. package/presets/cursor/go/rules/product-specs-authoring.mdc +6 -4
  376. package/presets/cursor/go/rules/product-specs.mdc +8 -4
  377. package/presets/cursor/go/skills/README.md +1 -1
  378. package/presets/cursor/go/skills/ci-investigation/SKILL.md +7 -0
  379. package/presets/cursor/go/skills/code-review/SKILL.md +1 -0
  380. package/presets/cursor/go/skills/debug-investigation/SKILL.md +8 -0
  381. package/presets/cursor/go/skills/feature-delivery/SKILL.md +7 -1
  382. package/presets/cursor/go/skills/spec-discovery/SKILL.md +58 -0
  383. package/presets/cursor/go/team/README.md +8 -0
  384. package/presets/cursor/go/team/fixtures/feature-full.json +46 -10
  385. package/presets/cursor/go/team/fixtures/memlog.example.md +9 -0
  386. package/presets/cursor/ios-swift/MCP.md +20 -1
  387. package/presets/cursor/ios-swift/agents/accessibility-reviewer.md +7 -10
  388. package/presets/cursor/ios-swift/agents/api-contract-reviewer.md +2 -11
  389. package/presets/cursor/ios-swift/agents/ci-investigator.md +10 -11
  390. package/presets/cursor/ios-swift/agents/debugger.md +10 -11
  391. package/presets/cursor/ios-swift/agents/feature-developer.md +23 -0
  392. package/presets/cursor/ios-swift/agents/migration-specialist.md +8 -11
  393. package/presets/cursor/ios-swift/agents/performance-auditor.md +8 -11
  394. package/presets/cursor/ios-swift/agents/qa-tester.md +2 -11
  395. package/presets/cursor/ios-swift/agents/security-reviewer.md +2 -11
  396. package/presets/cursor/ios-swift/agents/solution-architect.md +6 -0
  397. package/presets/cursor/ios-swift/agents/task-analyst.md +17 -0
  398. package/presets/cursor/ios-swift/agents/task-router.md +6 -0
  399. package/presets/cursor/ios-swift/agents/unit-test-generator.md +2 -11
  400. package/presets/cursor/ios-swift/agents/unit-test-healer.md +2 -11
  401. package/presets/cursor/ios-swift/agents/unit-test-planner.md +2 -11
  402. package/presets/cursor/ios-swift/agents/xcuitest-test-generator.md +1 -11
  403. package/presets/cursor/ios-swift/agents/xcuitest-test-healer.md +1 -11
  404. package/presets/cursor/ios-swift/agents/xcuitest-test-planner.md +1 -13
  405. package/presets/cursor/ios-swift/commands/spec-start.md +1 -1
  406. package/presets/cursor/ios-swift/mcp.json +1 -1
  407. package/presets/cursor/ios-swift/rules/README.md +2 -0
  408. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +2 -1
  409. package/presets/cursor/ios-swift/rules/anti-sycophancy-discipline.mdc +1 -1
  410. package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +1 -1
  411. package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +2 -1
  412. package/presets/cursor/ios-swift/rules/mcp-usage.mdc +99 -0
  413. package/presets/cursor/ios-swift/rules/preset-no-cross-stack-leakage.mdc +1 -0
  414. package/presets/cursor/ios-swift/rules/product-specs-authoring.mdc +6 -4
  415. package/presets/cursor/ios-swift/rules/product-specs.mdc +8 -4
  416. package/presets/cursor/ios-swift/skills/README.md +2 -0
  417. package/presets/cursor/ios-swift/skills/ci-investigation/SKILL.md +8 -0
  418. package/presets/cursor/ios-swift/skills/code-review/SKILL.md +1 -1
  419. package/presets/cursor/ios-swift/skills/debug-investigation/SKILL.md +9 -1
  420. package/presets/cursor/ios-swift/skills/feature-delivery/SKILL.md +7 -1
  421. package/presets/cursor/ios-swift/skills/spec-discovery/SKILL.md +58 -0
  422. package/presets/cursor/ios-swift/team/README.md +8 -0
  423. package/presets/cursor/ios-swift/team/fixtures/feature-full.json +39 -9
  424. package/presets/cursor/ios-swift/team/fixtures/memlog.example.md +9 -0
  425. package/presets/cursor/java/AGENTS.md +1 -1
  426. package/presets/cursor/java/MCP.md +20 -1
  427. package/presets/cursor/java/agents/ci-investigator.md +8 -0
  428. package/presets/cursor/java/agents/debugger.md +8 -0
  429. package/presets/cursor/java/agents/feature-developer.md +23 -0
  430. package/presets/cursor/java/agents/migration-specialist.md +6 -0
  431. package/presets/cursor/java/agents/performance-auditor.md +6 -0
  432. package/presets/cursor/java/agents/solution-architect.md +6 -0
  433. package/presets/cursor/java/agents/task-analyst.md +17 -0
  434. package/presets/cursor/java/agents/task-router.md +6 -0
  435. package/presets/cursor/java/commands/spec-start.md +1 -1
  436. package/presets/cursor/java/mcp.json +1 -1
  437. package/presets/cursor/java/rules/README.md +2 -1
  438. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +1 -0
  439. package/presets/cursor/java/rules/anti-sycophancy-discipline.mdc +1 -1
  440. package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +1 -1
  441. package/presets/cursor/java/rules/feature-delivery-workflow.mdc +2 -1
  442. package/presets/cursor/java/rules/mcp-usage.mdc +97 -0
  443. package/presets/cursor/java/rules/preset-no-cross-stack-leakage.mdc +1 -0
  444. package/presets/cursor/java/rules/product-specs-authoring.mdc +6 -4
  445. package/presets/cursor/java/rules/product-specs.mdc +8 -4
  446. package/presets/cursor/java/skills/README.md +1 -1
  447. package/presets/cursor/java/skills/ci-investigation/SKILL.md +7 -0
  448. package/presets/cursor/java/skills/code-review/SKILL.md +1 -0
  449. package/presets/cursor/java/skills/debug-investigation/SKILL.md +8 -0
  450. package/presets/cursor/java/skills/feature-delivery/SKILL.md +7 -1
  451. package/presets/cursor/java/skills/spec-discovery/SKILL.md +58 -0
  452. package/presets/cursor/java/team/README.md +8 -0
  453. package/presets/cursor/java/team/fixtures/feature-full.json +46 -10
  454. package/presets/cursor/java/team/fixtures/memlog.example.md +9 -0
  455. package/presets/cursor/mcp-ts/MCP.md +20 -1
  456. package/presets/cursor/mcp-ts/agents/feature-developer.md +23 -0
  457. package/presets/cursor/mcp-ts/agents/solution-architect.md +5 -0
  458. package/presets/cursor/mcp-ts/agents/task-analyst.md +17 -0
  459. package/presets/cursor/mcp-ts/agents/task-router.md +6 -0
  460. package/presets/cursor/mcp-ts/commands/spec-start.md +1 -1
  461. package/presets/cursor/mcp-ts/mcp.json +1 -1
  462. package/presets/cursor/mcp-ts/rules/README.md +3 -2
  463. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +1 -0
  464. package/presets/cursor/mcp-ts/rules/anti-sycophancy-discipline.mdc +1 -1
  465. package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +1 -1
  466. package/presets/cursor/mcp-ts/rules/feature-delivery-workflow.mdc +2 -1
  467. package/presets/cursor/mcp-ts/rules/mcp-usage.mdc +98 -0
  468. package/presets/cursor/mcp-ts/rules/preset-no-cross-stack-leakage.mdc +1 -0
  469. package/presets/cursor/mcp-ts/rules/product-specs-authoring.mdc +6 -4
  470. package/presets/cursor/mcp-ts/rules/product-specs.mdc +8 -4
  471. package/presets/cursor/mcp-ts/skills/README.md +2 -0
  472. package/presets/cursor/mcp-ts/skills/code-review/SKILL.md +1 -0
  473. package/presets/cursor/mcp-ts/skills/debug-investigation/SKILL.md +7 -0
  474. package/presets/cursor/mcp-ts/skills/feature-delivery/SKILL.md +7 -1
  475. package/presets/cursor/mcp-ts/skills/spec-discovery/SKILL.md +58 -0
  476. package/presets/cursor/mcp-ts/team/README.md +7 -0
  477. package/presets/cursor/mcp-ts/team/fixtures/feature-full.json +5 -2
  478. package/presets/cursor/mcp-ts/team/fixtures/memlog.example.md +9 -0
  479. package/presets/cursor/next/MCP.md +21 -1
  480. package/presets/cursor/next/agents/accessibility-reviewer.md +8 -0
  481. package/presets/cursor/next/agents/ci-investigator.md +8 -0
  482. package/presets/cursor/next/agents/debugger.md +12 -0
  483. package/presets/cursor/next/agents/feature-developer.md +25 -0
  484. package/presets/cursor/next/agents/migration-specialist.md +6 -0
  485. package/presets/cursor/next/agents/performance-auditor.md +8 -0
  486. package/presets/cursor/next/agents/playwright-test-generator.md +9 -1
  487. package/presets/cursor/next/agents/playwright-test-healer.md +9 -1
  488. package/presets/cursor/next/agents/playwright-test-planner.md +1 -1
  489. package/presets/cursor/next/agents/solution-architect.md +6 -0
  490. package/presets/cursor/next/agents/task-analyst.md +17 -0
  491. package/presets/cursor/next/agents/task-router.md +6 -0
  492. package/presets/cursor/next/commands/spec-start.md +1 -1
  493. package/presets/cursor/next/mcp.json +3 -3
  494. package/presets/cursor/next/rules/README.md +3 -2
  495. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +2 -1
  496. package/presets/cursor/next/rules/anti-sycophancy-discipline.mdc +1 -1
  497. package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +1 -1
  498. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +2 -1
  499. package/presets/cursor/next/rules/mcp-usage.mdc +100 -0
  500. package/presets/cursor/next/rules/preset-no-cross-stack-leakage.mdc +1 -0
  501. package/presets/cursor/next/rules/product-specs-authoring.mdc +6 -4
  502. package/presets/cursor/next/rules/product-specs.mdc +8 -4
  503. package/presets/cursor/next/rules/tests-unit.mdc +5 -0
  504. package/presets/cursor/next/skills/README.md +2 -0
  505. package/presets/cursor/next/skills/ci-investigation/SKILL.md +8 -0
  506. package/presets/cursor/next/skills/code-review/SKILL.md +1 -1
  507. package/presets/cursor/next/skills/debug-investigation/SKILL.md +13 -1
  508. package/presets/cursor/next/skills/feature-delivery/SKILL.md +9 -1
  509. package/presets/cursor/next/skills/spec-discovery/SKILL.md +58 -0
  510. package/presets/cursor/next/team/README.md +11 -0
  511. package/presets/cursor/next/team/fixtures/feature-full.json +1 -0
  512. package/presets/cursor/next/team/fixtures/memlog.example.md +9 -0
  513. package/presets/cursor/nuxt/MCP.md +21 -1
  514. package/presets/cursor/nuxt/agents/accessibility-reviewer.md +8 -0
  515. package/presets/cursor/nuxt/agents/ci-investigator.md +8 -0
  516. package/presets/cursor/nuxt/agents/debugger.md +12 -0
  517. package/presets/cursor/nuxt/agents/feature-developer.md +25 -0
  518. package/presets/cursor/nuxt/agents/migration-specialist.md +6 -0
  519. package/presets/cursor/nuxt/agents/performance-auditor.md +8 -0
  520. package/presets/cursor/nuxt/agents/playwright-test-generator.md +9 -1
  521. package/presets/cursor/nuxt/agents/playwright-test-healer.md +9 -1
  522. package/presets/cursor/nuxt/agents/playwright-test-planner.md +1 -1
  523. package/presets/cursor/nuxt/agents/solution-architect.md +6 -0
  524. package/presets/cursor/nuxt/agents/task-analyst.md +17 -0
  525. package/presets/cursor/nuxt/agents/task-router.md +6 -0
  526. package/presets/cursor/nuxt/commands/spec-start.md +1 -1
  527. package/presets/cursor/nuxt/mcp.json +3 -3
  528. package/presets/cursor/nuxt/rules/README.md +2 -1
  529. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +2 -1
  530. package/presets/cursor/nuxt/rules/anti-sycophancy-discipline.mdc +1 -1
  531. package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +1 -1
  532. package/presets/cursor/nuxt/rules/feature-delivery-workflow.mdc +2 -1
  533. package/presets/cursor/nuxt/rules/mcp-usage.mdc +100 -0
  534. package/presets/cursor/nuxt/rules/preset-no-cross-stack-leakage.mdc +1 -0
  535. package/presets/cursor/nuxt/rules/product-specs-authoring.mdc +6 -4
  536. package/presets/cursor/nuxt/rules/product-specs.mdc +8 -4
  537. package/presets/cursor/nuxt/skills/README.md +2 -0
  538. package/presets/cursor/nuxt/skills/ci-investigation/SKILL.md +8 -0
  539. package/presets/cursor/nuxt/skills/code-review/SKILL.md +1 -1
  540. package/presets/cursor/nuxt/skills/debug-investigation/SKILL.md +13 -1
  541. package/presets/cursor/nuxt/skills/feature-delivery/SKILL.md +9 -1
  542. package/presets/cursor/nuxt/skills/spec-discovery/SKILL.md +58 -0
  543. package/presets/cursor/nuxt/team/README.md +11 -0
  544. package/presets/cursor/nuxt/team/fixtures/feature-full.json +43 -9
  545. package/presets/cursor/nuxt/team/fixtures/memlog.example.md +9 -0
  546. package/presets/cursor/php-hexagonal/AGENTS.md +1 -1
  547. package/presets/cursor/php-hexagonal/MCP.md +20 -1
  548. package/presets/cursor/php-hexagonal/agents/ci-investigator.md +8 -0
  549. package/presets/cursor/php-hexagonal/agents/debugger.md +8 -0
  550. package/presets/cursor/php-hexagonal/agents/feature-developer.md +23 -0
  551. package/presets/cursor/php-hexagonal/agents/migration-specialist.md +6 -0
  552. package/presets/cursor/php-hexagonal/agents/performance-auditor.md +6 -0
  553. package/presets/cursor/php-hexagonal/agents/solution-architect.md +6 -0
  554. package/presets/cursor/php-hexagonal/agents/task-analyst.md +17 -0
  555. package/presets/cursor/php-hexagonal/agents/task-router.md +6 -0
  556. package/presets/cursor/php-hexagonal/commands/spec-start.md +1 -1
  557. package/presets/cursor/php-hexagonal/mcp.json +1 -1
  558. package/presets/cursor/php-hexagonal/rules/README.md +2 -1
  559. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +1 -0
  560. package/presets/cursor/php-hexagonal/rules/anti-sycophancy-discipline.mdc +1 -1
  561. package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +1 -1
  562. package/presets/cursor/php-hexagonal/rules/feature-delivery-workflow.mdc +2 -1
  563. package/presets/cursor/php-hexagonal/rules/mcp-usage.mdc +97 -0
  564. package/presets/cursor/php-hexagonal/rules/preset-no-cross-stack-leakage.mdc +1 -0
  565. package/presets/cursor/php-hexagonal/rules/product-specs-authoring.mdc +6 -4
  566. package/presets/cursor/php-hexagonal/rules/product-specs.mdc +8 -4
  567. package/presets/cursor/php-hexagonal/skills/README.md +1 -1
  568. package/presets/cursor/php-hexagonal/skills/ci-investigation/SKILL.md +7 -0
  569. package/presets/cursor/php-hexagonal/skills/code-review/SKILL.md +1 -0
  570. package/presets/cursor/php-hexagonal/skills/debug-investigation/SKILL.md +8 -0
  571. package/presets/cursor/php-hexagonal/skills/feature-delivery/SKILL.md +7 -1
  572. package/presets/cursor/php-hexagonal/skills/spec-discovery/SKILL.md +58 -0
  573. package/presets/cursor/php-hexagonal/team/README.md +8 -0
  574. package/presets/cursor/php-hexagonal/team/fixtures/feature-full.json +46 -10
  575. package/presets/cursor/php-hexagonal/team/fixtures/memlog.example.md +9 -0
  576. package/presets/cursor/php-laravel/AGENTS.md +1 -1
  577. package/presets/cursor/php-laravel/MCP.md +21 -0
  578. package/presets/cursor/php-laravel/agents/ci-investigator.md +8 -0
  579. package/presets/cursor/php-laravel/agents/debugger.md +8 -0
  580. package/presets/cursor/php-laravel/agents/feature-developer.md +23 -0
  581. package/presets/cursor/php-laravel/agents/migration-specialist.md +6 -0
  582. package/presets/cursor/php-laravel/agents/performance-auditor.md +6 -0
  583. package/presets/cursor/php-laravel/agents/solution-architect.md +6 -0
  584. package/presets/cursor/php-laravel/agents/task-analyst.md +17 -0
  585. package/presets/cursor/php-laravel/agents/task-router.md +6 -0
  586. package/presets/cursor/php-laravel/commands/spec-start.md +1 -1
  587. package/presets/cursor/php-laravel/mcp.json +1 -1
  588. package/presets/cursor/php-laravel/rules/README.md +2 -1
  589. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +1 -0
  590. package/presets/cursor/php-laravel/rules/anti-sycophancy-discipline.mdc +1 -1
  591. package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +1 -1
  592. package/presets/cursor/php-laravel/rules/feature-delivery-workflow.mdc +2 -1
  593. package/presets/cursor/php-laravel/rules/mcp-usage.mdc +97 -0
  594. package/presets/cursor/php-laravel/rules/preset-no-cross-stack-leakage.mdc +1 -0
  595. package/presets/cursor/php-laravel/rules/product-specs-authoring.mdc +6 -4
  596. package/presets/cursor/php-laravel/rules/product-specs.mdc +8 -4
  597. package/presets/cursor/php-laravel/skills/README.md +1 -1
  598. package/presets/cursor/php-laravel/skills/ci-investigation/SKILL.md +7 -0
  599. package/presets/cursor/php-laravel/skills/code-review/SKILL.md +1 -0
  600. package/presets/cursor/php-laravel/skills/debug-investigation/SKILL.md +8 -0
  601. package/presets/cursor/php-laravel/skills/feature-delivery/SKILL.md +7 -1
  602. package/presets/cursor/php-laravel/skills/spec-discovery/SKILL.md +58 -0
  603. package/presets/cursor/php-laravel/team/README.md +7 -0
  604. package/presets/cursor/php-laravel/team/fixtures/feature-full.json +38 -9
  605. package/presets/cursor/php-laravel/team/fixtures/memlog.example.md +9 -0
  606. package/presets/cursor/svelte/MCP.md +21 -1
  607. package/presets/cursor/svelte/agents/accessibility-reviewer.md +8 -0
  608. package/presets/cursor/svelte/agents/ci-investigator.md +8 -0
  609. package/presets/cursor/svelte/agents/debugger.md +12 -0
  610. package/presets/cursor/svelte/agents/feature-developer.md +25 -0
  611. package/presets/cursor/svelte/agents/migration-specialist.md +6 -0
  612. package/presets/cursor/svelte/agents/performance-auditor.md +8 -0
  613. package/presets/cursor/svelte/agents/playwright-test-generator.md +9 -1
  614. package/presets/cursor/svelte/agents/playwright-test-healer.md +9 -1
  615. package/presets/cursor/svelte/agents/playwright-test-planner.md +1 -1
  616. package/presets/cursor/svelte/agents/solution-architect.md +6 -0
  617. package/presets/cursor/svelte/agents/task-analyst.md +17 -0
  618. package/presets/cursor/svelte/agents/task-router.md +6 -0
  619. package/presets/cursor/svelte/commands/spec-start.md +1 -1
  620. package/presets/cursor/svelte/mcp.json +3 -3
  621. package/presets/cursor/svelte/rules/README.md +2 -1
  622. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +2 -1
  623. package/presets/cursor/svelte/rules/anti-sycophancy-discipline.mdc +1 -1
  624. package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +1 -1
  625. package/presets/cursor/svelte/rules/feature-delivery-workflow.mdc +2 -1
  626. package/presets/cursor/svelte/rules/mcp-usage.mdc +100 -0
  627. package/presets/cursor/svelte/rules/preset-no-cross-stack-leakage.mdc +1 -0
  628. package/presets/cursor/svelte/rules/product-specs-authoring.mdc +6 -4
  629. package/presets/cursor/svelte/rules/product-specs.mdc +8 -4
  630. package/presets/cursor/svelte/skills/README.md +2 -0
  631. package/presets/cursor/svelte/skills/ci-investigation/SKILL.md +8 -0
  632. package/presets/cursor/svelte/skills/code-review/SKILL.md +1 -1
  633. package/presets/cursor/svelte/skills/debug-investigation/SKILL.md +13 -1
  634. package/presets/cursor/svelte/skills/feature-delivery/SKILL.md +9 -1
  635. package/presets/cursor/svelte/skills/spec-discovery/SKILL.md +58 -0
  636. package/presets/cursor/svelte/team/README.md +11 -0
  637. package/presets/cursor/svelte/team/fixtures/feature-full.json +43 -9
  638. package/presets/cursor/svelte/team/fixtures/memlog.example.md +9 -0
  639. package/scripts/aggregate-agent-task-metrics.mjs +212 -0
  640. package/scripts/check-hook-only-lifecycle.sh +46 -0
  641. package/scripts/check-preset-i18n.sh +61 -0
  642. package/scripts/check-preset-leakage.sh +450 -0
  643. package/scripts/check-preset-structure.sh +70 -0
  644. package/scripts/check-preset-token-budget.sh +139 -0
  645. package/scripts/check-preset-twin-map.sh +122 -0
  646. package/scripts/check-product-specs.sh +90 -0
  647. package/scripts/check-rule-eval.mjs +149 -0
  648. package/scripts/check-shared-core-drift.sh +148 -0
  649. package/scripts/close-agent-task-human-gate.mjs +61 -0
  650. package/scripts/sync-dogfood-cursor.sh +70 -0
  651. package/scripts/sync-shared-core-embeds.sh +114 -0
  652. package/scripts/test-agent-task-metrics-hooks.mjs +895 -0
  653. package/scripts/test-cli-mcp-merge.mjs +137 -0
@@ -15,7 +15,7 @@ paths:
15
15
 
16
16
  Procedural rules for code generation and review. Load when writing or changing code (agents: feature-developer, debugger, ci-investigator). Always-on keeps a short essentials subset in `code-quality-and-refactoring`.
17
17
 
18
- 1. **Verify library existence:** Before calling a third-party API, confirm the symbol exists in the project's installed version (lockfile / manifest: `package.json`, `go.mod`, `Podfile.lock`, `pom.xml`, `Cargo.toml`, or equivalent). If you cannot verify, mark `// VERIFY: lib.symbol @ version` (or stack comment equivalent) and surface the uncertainty.
18
+ 1. **Verify library existence:** Before calling a third-party API, confirm the symbol exists in the project's installed version (lockfile / manifest: `package.json`, `go.mod`, `Podfile.lock`, `pom.xml`, `Cargo.toml`, or equivalent). If that is not enough and Context7 MCP is available, load **`mcp-usage`** and query docs for the **installed major**. If you still cannot verify, mark `// VERIFY: lib.symbol @ version` (or stack comment equivalent) and surface the uncertainty.
19
19
  2. **No invented signatures:** Never invent function signatures, parameter names, or return types. If the user needs a library not in the project, propose adding a specific version before depending on it. Silent stubs are worse than refusal.
20
20
  3. **Enumerate edge cases before validating:** When asked "is this correct?" or "does this work?", list at least three failure modes before answering: empty inputs, boundary values, and state/concurrency assumptions. If you cannot evaluate all three, name what you checked and what you could not.
21
21
  4. **Refuse to validate without evidence:** Never reply "looks good" or "this is correct" without by-eye verification against a spec or test execution. If no spec exists, ask for one or refuse to validate.
@@ -32,7 +32,7 @@ description: Maintain and improve code quality and architecture
32
32
 
33
33
  Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-discipline`**.
34
34
 
35
- - Unverifiable third-party API → mark `// VERIFY: lib.symbol @ version` (or stack equivalent); never invent signatures.
35
+ - Unverifiable third-party API → if Context7 is up, load **`mcp-usage`** and query the installed major; else mark `// VERIFY: lib.symbol @ version` (or stack equivalent); never invent signatures.
36
36
  - Before "is this correct?" — ≥3 failure modes (empty, boundary, concurrency/state) or name what you could not check.
37
37
  - Refactor without tests → propose characterization test; if declined, label `UNTESTED`.
38
38
  - Comments = WHY only when non-obvious; ban self-referential "added for issue Y".
@@ -0,0 +1,106 @@
1
+ ---
2
+ description: When to call shipped Context7 and local overlay MCP — detect presence, use if the task fits, degrade.
3
+ paths:
4
+ - pages/**/*
5
+ - components/**/*
6
+ - stores/**/*
7
+ - api/**/*
8
+ - composables/**/*
9
+ - types/**/*
10
+ ---
11
+
12
+ <!-- shared-core: quality/mcp-usage.md -->
13
+
14
+ # MCP usage
15
+
16
+ Requestable protocol for **shipped** and **local-overlay** MCP servers. Agents load this stem via one-liner wiring — do not copy tool schemas into prompts; discover them at runtime.
17
+
18
+ Does not replace Figma mockup-review (that checklist stays on `mockup-review`). Does not add pipeline agents or required handoff stems.
19
+
20
+ ## Presence (runtime catalog is SoT)
21
+
22
+ 1. Inspect the **session MCP catalog** (server names + `serverStatus`). Project `mcp.json` / `.mcp.json` is a hint, not proof the server is up (user-level and plugin servers never appear there).
23
+ 2. Treat `error`, `needsAuth`, and `loading` as **unavailable**. Authenticate only when this task needs that server.
24
+ 3. **Discover tool schemas before calling.** Never invent tool names or arguments from memory.
25
+ 4. Match overlay servers by **documented aliases** or exact catalog ids. Prefer a ready `plugin-*` id over an unknown similarly named server; if several match, ask rather than guessing.
26
+ 5. If two servers expose the same product (plugin + project entry), use the **ready** one; do not call both.
27
+
28
+ ## Classes
29
+
30
+ | Class | Who adds it | Policy |
31
+ |-------|-------------|--------|
32
+ | **Shipped** | Preset `mcp.json` | Assume it should be there; call when the task fits; degrade if down (do not block unless noted below) |
33
+ | **Local overlay** | Consumer project or user MCP | Use only when present **and** the task fits. Never a required pipeline step |
34
+
35
+ Shipped in every preset: **Context7** (library docs). Other shipped servers are stack-specific — see adapter **Stack notes**.
36
+
37
+ ## Context7 (shipped)
38
+
39
+ **When to call** (after lockfile / manifest + sibling files still do not confirm the symbol):
40
+
41
+ - Third-party API that would otherwise get `// VERIFY: lib.symbol @ version`
42
+ - Version-sensitive framework or SDK APIs
43
+ - Migrations / major upgrades
44
+ - Library is in the lockfile but the signature is unclear
45
+
46
+ **When not to call:** repo public API; a sibling file already imports the symbol; a trivial call already in this module.
47
+
48
+ **Flow:**
49
+
50
+ 1. Discover server `context7`.
51
+ 2. Resolve a library id, then query docs (read the live schema; typical names `resolve-library-id` then `query-docs`).
52
+ 3. Put the **installed major** from the project manifest into the query.
53
+ 4. Cap: **≤3 doc queries per question**.
54
+ 5. Source priority: lockfile / sibling code **>** Context7 **>** training data. If docs disagree with the installed major, keep the installed API.
55
+ 6. If Context7 is down: `// VERIFY` (or stack equivalent) and say MCP was unavailable. **Do not block** the task.
56
+
57
+ ## Local overlay protocol
58
+
59
+ If a matching server is ready and a **task signal** fires → discover and use. Otherwise continue from files / native tools (`gh`, repo docs, source).
60
+
61
+ Absence of an overlay is **not** `BLOCKED` unless the user required that MCP as source of truth.
62
+
63
+ ### Observability (Sentry, Datadog, similar)
64
+
65
+ **Signal:** production error, event/trace id, APM / latency, pasted dashboard or issue URL.
66
+
67
+ Use the **first ready** observability MCP. Do not invent metrics or stack traces. Do not require two observability servers.
68
+
69
+ ### Tickets (Linear, Jira, Notion, similar)
70
+
71
+ **Signal:** ticket/page URL in the prompt or brief, or an explicit “pull from \<tracker\>”.
72
+
73
+ Read-only by default. Task-folder artifacts (`brief.md`, `decomposition.md`) remain SoT — do not replace them with a tracker page. Write back to the tracker **only** if the user asked.
74
+
75
+ ### Component-library overlay
76
+
77
+ **Signal:** UI component public API, stories, controls, or explicit component-docs MCP.
78
+
79
+ If such a server is ready, use it for documented props/variants instead of inventing them. If it is down, read story/source files. **Block** only when the user required that MCP as SoT.
80
+
81
+ Usual aliases and runtime needs live in frontend **Stack notes**. Do not ship this server in preset `mcp.json`.
82
+
83
+ ### GitHub MCP
84
+
85
+ Native `gh` / git remain SoT for PRs and checks. A GitHub MCP may be used when present; do not require it.
86
+
87
+ ## Figma
88
+
89
+ Policy is stack-class-specific — see adapter **Stack notes**. If a Figma **plugin** and a project `figma` server are both present, use the ready one and do not duplicate calls.
90
+
91
+ ## Forbidden
92
+
93
+ - Secrets in `mcp.json` / `.mcp.json`
94
+ - New pipeline agents or required handoffs for overlay MCP
95
+ - Treating overlay absence as blocked (except user-required SoT)
96
+ - Tracker/admin write tools without an explicit ask
97
+ - Calling overlay MCP “just in case” on unrelated tasks
98
+
99
+ ## Stack notes
100
+
101
+ - Pipeline **`mockup-reviewer`** is the only agent that reads Figma for mockup review. See `mockup-review`.
102
+ - Shipped besides Context7: browser automation MCP (`playwright` / `playwright-test` / `user-playwright`) and `chrome-devtools`.
103
+ - **Split:** Playwright MCP → e2e agents (planner/generator/healer), selector checks, spec reproduction. Chrome DevTools MCP → `debugger` / `performance-auditor` against a **running app** (console, network, traces). Not a substitute for e2e.
104
+ - **Storybook overlay** (not shipped): aliases `storybook`, `user-storybook`, `plugin-storybook`, `storybook-mcp-addon`. Needs Storybook running (often `http://localhost:6006/mcp`). Discover docs/dev/testing toolsets. If down, read story/source files. Block only if the user required Storybook MCP as SoT.
105
+ - `init` **merges** `mcpServers`: preset keys update; extra local servers are kept. User-level MCP is never touched.
106
+ - If a Figma plugin is already connected, do not also require the project `figma` server.
@@ -19,6 +19,7 @@ Ban leakage of stack-specific names, paths, and handoff stems across presets.
19
19
  - `go` / `java` / `php-hexagonal` / `php-laravel` / `mcp-ts` must not ship Playwright, XCUITest, Android instrumentation agents, Next lint recipes, or `xcodebuild`/`SwiftLint` as required handoffs.
20
20
  - `mcp-ts` must not ship Go tool commands (`go test`, `go vet`, `golangci-lint`) or `integration-test-*` agents as required delivery gates.
21
21
  - Shared core must not embed stack paths (`app/src/**`, `Features/**`, `playwright`, `xcodebuild`).
22
+ - Storybook / Chrome DevTools MCP must **not** be required handoffs or agent stems (`storybook-reviewer`) on backend or mobile stacks. Frontend overlay mentions in `MCP.md` / `mcp-usage` Stack notes are OK.
22
23
 
23
24
  ## Forbidden in ios-swift hooks/agents (FAIL)
24
25
 
@@ -5,6 +5,8 @@
5
5
  | Skill | When to use |
6
6
  |-------|-------------|
7
7
  | `feature-delivery` | End-to-end feature work across types, API, store, UI, tests |
8
+ | `spec-authoring` | Author or bootstrap docs/specs (INDEX, page/feature templates); `/spec-start` / analyst author mode |
9
+ | `spec-discovery` | Opt-in research-before-spec in analyst author mode (claim ledger; not default `/task` consume) |
8
10
  | `mockup-review` | Figma mockup review: DS, coverage, viewports (standalone or embedded) |
9
11
  | `ux-design` | Behavioral UX synthesis/review via task-analyst (standalone or embedded; no Figma MCP) |
10
12
  | `code-review` | MR/diff review using project architecture and test standards |
@@ -25,6 +25,14 @@ Write `ci-report.md` under the task slug folder:
25
25
  - Fix applied (or handoff to feature-developer)
26
26
  - Validation commands and results
27
27
 
28
+
29
+ ## MCP usage
30
+
31
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
32
+
33
+ If a Sentry/Datadog (or similar) MCP is ready and the task is a production error, event, or trace, use it. Do not invent telemetry.
34
+
35
+
28
36
  ## Handoff Rules
29
37
 
30
38
  - Config-only or one-line fixes → fix in place, re-run check.
@@ -31,7 +31,7 @@ Lead with findings ordered by severity. Required shape (also in `code-review-mr`
31
31
  - End with a verdict line: **`Safe to merge | needs changes | reject`**.
32
32
  - If there are no findings, say so and call out remaining test or validation risk.
33
33
 
34
- For agent team tasks, write `.claude/team/tasks/<slug>/review.md` and set `status.json` to `completed` or `changes_requested`.
34
+ For agent team tasks, write `.claude/team/tasks/<slug>/review.md` and upsert the owned terminal receipt (`completed` or `changes_requested`); do not mutate `status.json`.
35
35
 
36
36
  ## Design guidance
37
37
 
@@ -25,7 +25,19 @@ For agent team tasks, write `.claude/team/tasks/<slug>/debug-report.md` with:
25
25
  - Regression coverage.
26
26
  - Remaining risk.
27
27
 
28
- Update `status.json` when complete.
28
+ Agent team: upsert the owned terminal receipt in `artifact-manifest.json`; do not mutate `status.json`.
29
+
30
+
31
+ ## MCP usage
32
+
33
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
34
+
35
+ If Chrome DevTools MCP is ready and the app is running, use it for console, network, and runtime evidence.
36
+
37
+ Shipped browser split: Playwright MCP for e2e specs/selectors; Chrome DevTools MCP for live-app debug and performance (app must be running). Storybook MCP if present and the work is component docs/stories.
38
+
39
+ If a Sentry/Datadog (or similar) MCP is ready and the task is a production error, event, or trace, use it. Do not invent telemetry.
40
+
29
41
 
30
42
  ## Design guidance
31
43
 
@@ -20,7 +20,15 @@ Implement only the current AC / decomposition task. Clarify ambiguity before cod
20
20
 
21
21
  ## Handoff
22
22
 
23
- Summarize by layer, validation results, and known gaps. Agent team: update `.claude/team/tasks/<slug>/status.json`.
23
+ Summarize by layer, validation results, and known gaps. Agent team: upsert the owned terminal receipt in `artifact-manifest.json`; do not mutate `status.json`.
24
+
25
+
26
+ ## MCP usage
27
+
28
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
29
+
30
+ Shipped browser split: Playwright MCP for e2e specs/selectors; Chrome DevTools MCP for live-app debug and performance (app must be running). Storybook MCP if present and the work is component docs/stories.
31
+
24
32
 
25
33
  ## Design guidance
26
34
 
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: spec-discovery
3
+ description: Opt-in research-before-spec for task-analyst author mode. 11 named methods plus a mandatory claim ledger. Use when the user or AC asks discovery before generating docs/specs — not default /task consume.
4
+ ---
5
+
6
+ # Spec discovery
7
+
8
+ Requestable — **not** always-on. Load **only** in **task-analyst author mode** when the user or AC asks research-before-spec (including `/spec-start` with that intent). Never default consume `/task`. Not a pipeline step.
9
+
10
+ Load **`product-specs`** (and **`product-specs-authoring`** after this skill if authoring follows). Do **not** invent product behavior. Do **not** create a second spec-file tree.
11
+
12
+ ## Load policy
13
+
14
+ 1. Pick a **subset** of methods that fit the task — not all 11 every time.
15
+ 2. **`claim-ledger` is mandatory** whenever this skill runs.
16
+ 3. Write chronological notes to `.claude/team/tasks/<slug>/.memlog.md` (append-only). Do **not** mutate `status.json` / `metrics.json`.
17
+ 4. Discovery output lives in memlog + `brief.md` sections. Then hand off to skill **`spec-authoring`** (or stop if `specMode: none`).
18
+
19
+ Backend / MCP stacks: skip UI-only examples; prefer `analog-scan`, `code-archaeology`, `problem-define`, `assumption-audit`, `claim-ledger`.
20
+
21
+ ## Methods
22
+
23
+ | Method | Produces | Skip when |
24
+ |--------|----------|-----------|
25
+ | **intake-capture** | Raw idea, origin, first unknowns → memlog + brief Research inputs | User prompt + AC already complete |
26
+ | **index-locator** | Related INDEX rows + linked spec paths + gaps | `specMode: none` or INDEX absent without consume intent |
27
+ | **code-archaeology** | Observed behavior labeled `inferred`/`draft` with path citations | Greenfield with no relevant code |
28
+ | **research-pack-scan** | Claims from `team/tasks/<slug>/research/**` or user-supplied paths | No research paths cited |
29
+ | **evidence-against** | Reasons the idea may fail | Internal spike with no product/external risk |
30
+ | **problem-define** | Who hurts, goals, non-goals, cost of inaction → brief | Brief Goal + Out of scope already exhaustive |
31
+ | **concept-shape** | 2–3 approach options + appetite (small/medium/large); no API design | `architecture.md` exists or one obvious path |
32
+ | **working-backwards-check** | Headline + 5 customer objections + verdict `forged` / `needs-heat` / `cracked` | Consume mode with approved specs |
33
+ | **assumption-audit** | Assumption register → brief Assumptions + `open_questions` | Never skip in author mode (keep lightweight) |
34
+ | **analog-scan** | 2–3 repo analogs via `reference-features` / code search | No plausible analog |
35
+ | **claim-ledger** | Markdown table `source → claim` for every product-behavior claim | **Never skip** when this skill is loaded |
36
+
37
+ ## Claim ledger (required)
38
+
39
+ Block spec authoring until every product-behavior claim has a source:
40
+
41
+ ```markdown
42
+ | Source | Claim |
43
+ |--------|-------|
44
+ | brief AC-3 | Checkout shows empty cart copy |
45
+ | code-archaeology inferred | Empty state uses an illustration |
46
+ ```
47
+
48
+ Sources: AC / user / UI copy / labeled code inference / research path. Unsourced claims → `open_questions`.
49
+
50
+ ## Memlog
51
+
52
+ Path: `.claude/team/tasks/<slug>/.memlog.md`. Chronological `## YYYY-MM-DD` headings. Optional tags: `decision`, `assumption`, `override`, `event`, `claim`.
53
+
54
+ ## Forbidden
55
+
56
+ - 108-technique catalogs, HTML composers, party-mode, five `assess.*` slash commands, Python memlog runtime.
57
+ - Dummy INDEX rows when `specMode: none`.
58
+ - Dumping the whole `docs/specs/**` tree — locator is INDEX → linked page + optional `feature.md`.
@@ -27,6 +27,7 @@ Artifact directory for the Claude Code “agent team” pipeline.
27
27
  unit-test-plan.md
28
28
  documentation.md
29
29
  review.md
30
+ .memlog.md # append-only agent notes (optional)
30
31
  ```
31
32
 
32
33
  ## pipeline.json schema
@@ -35,6 +36,7 @@ Artifact directory for the Claude Code “agent team” pipeline.
35
36
  {
36
37
  "slug": "order-history-date-filter",
37
38
  "intent": "feature",
39
+ "specMode": "consume",
38
40
  "summary": "Add date filter to Order History",
39
41
  "steps": [
40
42
  { "agent": "task-analyst", "label": "Clarify and decompose" },
@@ -59,6 +61,8 @@ Artifact directory for the Claude Code “agent team” pipeline.
59
61
  | `skipIf` | `debugger.fixed` \| `ci-investigator.resolved` |
60
62
  | `parallel` | Invoke all `agent` values in one parent turn |
61
63
 
64
+ Optional top-level **`specMode`:** `consume` | `generate` | `none` (router echo; `brief.md` `## Spec mode` wins).
65
+
62
66
  ## status.json (pipeline mode)
63
67
 
64
68
  ```json
@@ -112,6 +116,13 @@ Bootstrap `<slug>/` by **writing** `pipeline.json` (Write tool). Runtime/hook ow
112
116
 
113
117
  Commit task artifacts if you want them to survive `ai-rules clean cursor`. Or copy finished tasks to `docs/agent-workflow/tasks/<slug>/`.
114
118
 
119
+
120
+ ## specMode, applyReadiness, memlog
121
+
122
+ - **`specMode`:** `consume` | `generate` | `none` — primary in `brief.md` `## Spec mode`; optional top-level `pipeline.json` `specMode`. `none` skips INDEX/author mode (spike/research).
123
+ - **`applyReadiness`:** YAML frontmatter on developer `implementation.md`; JSON-shaped `{ "state": "blocked"|"ready"|"all_done", "contextFiles": [] }` on the analyst receipt (analyst may emit `blocked` pre-gate). See `agent-artifact-contracts`.
124
+ - **Memlog:** `.cursor/team/tasks/<slug>/.memlog.md` (Claude: `.claude/team/tasks/<slug>/.memlog.md`) — append-only, agent-written; `/task-continue` may read. Hook does not parse it. Example: `fixtures/memlog.example.md`.
125
+
115
126
  ## Artifact manifest and receipts
116
127
 
117
128
  Each slug stores one context index at `.claude/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.
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "slug": "example-feature-full",
3
3
  "intent": "feature",
4
+ "specMode": "consume",
4
5
  "profile": "full",
5
6
  "routingDecision": {
6
7
  "complexity": "high",
7
- "riskFlags": ["cross-layer", "public-contract", "broad-test-surface"],
8
+ "riskFlags": [
9
+ "cross-layer",
10
+ "public-contract",
11
+ "broad-test-surface"
12
+ ],
8
13
  "routingReasons": [
9
14
  "The feature spans UI, state, and API boundaries, so architecture and implementation checkpoints are required.",
10
15
  "The public contract and e2e acceptance surface require independent validation and review."
@@ -14,15 +19,44 @@
14
19
  },
15
20
  "summary": "Multi-layer feature with e2e coverage",
16
21
  "steps": [
17
- { "agent": "task-analyst", "label": "Clarify and decompose" },
18
- { "agent": "solution-architect", "label": "Design boundaries", "model": "strong" },
19
- { "agent": "feature-developer", "label": "Implement + unit tests", "scope": "unit-in-dev" },
20
- { "agent": "build-verifier", "label": "Validation gate", "model": "cheap" },
21
- { "agent": "security-reviewer", "label": "Security review", "model": "strong" },
22
- { "agent": "code-reviewer", "label": "Code review", "model": "cheap" },
23
- { "agent": "qa-tester", "label": "E2E", "scope": "e2e-only" }
22
+ {
23
+ "agent": "task-analyst",
24
+ "label": "Clarify and decompose"
25
+ },
26
+ {
27
+ "agent": "solution-architect",
28
+ "label": "Design boundaries",
29
+ "model": "strong"
30
+ },
31
+ {
32
+ "agent": "feature-developer",
33
+ "label": "Implement + unit tests",
34
+ "scope": "unit-in-dev"
35
+ },
36
+ {
37
+ "agent": "build-verifier",
38
+ "label": "Validation gate",
39
+ "model": "cheap"
40
+ },
41
+ {
42
+ "agent": "security-reviewer",
43
+ "label": "Security review",
44
+ "model": "strong"
45
+ },
46
+ {
47
+ "agent": "code-reviewer",
48
+ "label": "Code review",
49
+ "model": "cheap"
50
+ },
51
+ {
52
+ "agent": "qa-tester",
53
+ "label": "E2E",
54
+ "scope": "e2e-only"
55
+ }
56
+ ],
57
+ "humanGates": [
58
+ "after:task-analyst"
24
59
  ],
25
- "humanGates": ["after:task-analyst"],
26
60
  "autoChain": true,
27
61
  "skipped": []
28
62
  }
@@ -0,0 +1,9 @@
1
+ # Memlog example
2
+
3
+ Append-only. Agents write; `/task-continue` may read. The hook does not parse this file.
4
+
5
+ ## 2026-08-13
6
+
7
+ - `decision`: specMode=generate; research-before-spec requested
8
+ - `claim`: empty-cart copy lives in CartEmpty.tsx (code-archaeology, inferred)
9
+ - `assumption`: no guest checkout in v1
@@ -15,7 +15,7 @@ Preset for PHP backends using ports & adapters (PSR / Composer-first).
15
15
  ## Inventory
16
16
 
17
17
  - **21 agents** — `agents/README.md` (no a11y / Playwright / XCUITest)
18
- - **8 skills** — feature-delivery, unit-testing, integration-testing, ci-investigation, debug-investigation, code-review, technical-retro, write-adr
18
+ - **10 skills** — feature-delivery, spec-authoring, spec-discovery, unit-testing, integration-testing, ci-investigation, debug-investigation, code-review, technical-retro, write-adr
19
19
  - **5 commands** — `/task`, `/task-continue`, `/feature-start`, `/feature-continue`, `/technical-retro`
20
20
 
21
21
  ## Dogfood (5 scenarios)
@@ -12,4 +12,23 @@ Figma and browser e2e MCP (Playwright / Chrome DevTools) are **not** part of the
12
12
 
13
13
  Do not put secrets in the file. Optional: `CONTEXT7_API_KEY` in the environment.
14
14
 
15
- After init: enable MCP servers in Claude Code. `init` overwrites the same-named `mcp.json`.
15
+
16
+ ## Agent usage
17
+
18
+ Load requestable rule `mcp-usage`. The **session MCP catalog** is source of truth (this file and `mcp.json` are hints). Discover tool schemas before calling; never invent them.
19
+
20
+ **Context7 (shipped):** query docs when a third-party API is not confirmed by lockfile + sibling files. Use the installed major. Cap ≤3 doc queries per question. If Context7 is down, mark `// VERIFY` and continue — do not block.
21
+
22
+ ## Local overlay (not shipped)
23
+
24
+ `init` **merges** `mcpServers`: preset keys are updated; extra local servers are kept. User-level MCP is never touched. Prefer user-level MCP if you do not want overlay servers in the project file.
25
+
26
+ Use an overlay only when it is **ready** (`serverStatus` not `error` / `needsAuth` / `loading`) **and** the task fits. Absence is not a blocker unless the user required that MCP as source of truth.
27
+
28
+ | Kind | Typical aliases | When |
29
+ |------|-----------------|------|
30
+ | Observability | `sentry`, `datadog`, `plugin-datadog-*` | production error, event/trace id, APM |
31
+ | Tickets | `linear`, `jira`, `notion`, `plugin-notion-*` | ticket/page URL; read-only; task-folder artifacts remain SoT |
32
+ | GitHub MCP | `github` | optional; native `gh` remains SoT for PRs and checks |
33
+
34
+ Do **not** require Storybook, Playwright, or Chrome DevTools MCP as delivery gates on this preset.
@@ -16,6 +16,14 @@ Triage red CI for PHP repos (and ai-rules preset-structure when relevant).
16
16
 
17
17
  - Never treat `lint:js` / Playwright / xcodebuild as the PHP default gate.
18
18
 
19
+
20
+ ## MCP usage
21
+
22
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
23
+
24
+ If a Sentry/Datadog (or similar) MCP is ready and the task is a production error, event, or trace, use it. Do not invent telemetry.
25
+
26
+
19
27
  ## Anti-sycophancy discipline
20
28
 
21
29
  - When writing or changing code, load / follow rule `anti-sycophancy-discipline`.
@@ -20,6 +20,14 @@ Investigate with **runtime evidence**: failing `composer test` / `vendor/bin/php
20
20
 
21
21
  Write `.claude/team/tasks/<slug>/debug-report.md`.
22
22
 
23
+
24
+ ## MCP usage
25
+
26
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
27
+
28
+ If a Sentry/Datadog (or similar) MCP is ready and the task is a production error, event, or trace, use it. Do not invent telemetry.
29
+
30
+
23
31
  ## Design guidance
24
32
 
25
33
  - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -53,6 +53,29 @@ When work touches a page/feature/route/alias: if `docs/specs/INDEX.md` exists (o
53
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
54
 
55
55
 
56
+ **specMode `none`:** do not require INDEX; implement from brief/AC only.
57
+
58
+ **applyReadiness:** YAML frontmatter on `implementation.md`:
59
+
60
+ ```yaml
61
+ applyReadiness:
62
+ state: ready # blocked | ready | all_done
63
+ contextFiles: []
64
+ ```
65
+
66
+ `blocked` if human gate pending, required spec missing, required UX `INCOMPLETE`, or incomplete WP deps. `ready` when the current WP may be implemented. `all_done` on the final receipt when mechanical spec sync is done.
67
+
68
+ **Code Map + Suggested Review Order:** when this WP spans **>1 layer or module**, add to `implementation.md` a Code Map (3–8 annotated paths) and Suggested Review Order lines `concern | path:line | ≤15 words`. Omit for single-file / single-layer WPs.
69
+
70
+ **Memlog:** append implementation decisions to `.claude/team/tasks/<slug>/.memlog.md` (append-only).
71
+
72
+
73
+
74
+ ## MCP usage
75
+
76
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
77
+
78
+
56
79
  ## Artifact contract
57
80
 
58
81
  - **Authoritative inputs:** read `.claude/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.
@@ -26,6 +26,12 @@ Write `.cursor/team/tasks/<slug>/migration-plan.md`:
26
26
  - Do not invent a new HTTP framework mid-migration without AC.
27
27
  - Handoff to feature-developer for execution after human gate when required.
28
28
 
29
+
30
+ ## MCP usage
31
+
32
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
33
+
34
+
29
35
  ## Design guidance
30
36
 
31
37
  - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -17,6 +17,12 @@ Audit PHP performance risks on the task scope.
17
17
 
18
18
  `.claude/team/tasks/<slug>/perf-report.md`. No production edits. Not Instruments/Xcode.
19
19
 
20
+
21
+ ## MCP usage
22
+
23
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
24
+
25
+
20
26
  ## Design guidance
21
27
 
22
28
  - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -23,6 +23,12 @@ Design solutions for **PHP hexagonal** services.
23
23
  - Do not invent Next/iOS layer names.
24
24
  - No production code.
25
25
 
26
+
27
+ ## MCP usage
28
+
29
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
30
+
31
+
26
32
  ## Design guidance
27
33
 
28
34
  - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -30,6 +30,15 @@ Emit an analysis receipt; the runtime applies any configured human gate.
30
30
 
31
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
32
 
33
+
34
+ **Spec mode:** Write `## Spec mode` in `brief.md` with exactly one of `consume` | `generate` | `none`. Infer if unset: spike/research/preset-only → `none`; `/spec-start` or router `spec-gen` → `generate`; otherwise `consume`. Router may echo `specMode` on `pipeline.json`.
35
+
36
+ **`none`:** skip INDEX row requirement and author mode; do not invent a dummy INDEX.
37
+
38
+ **Research-before-spec (opt-in):** load skill **`spec-discovery`** only when the user/AC asks research before authoring (not default consume `/task`). Run a **subset** of methods; **`claim-ledger` is mandatory** whenever the skill loads. Append chronological notes to `.claude/team/tasks/<slug>/.memlog.md` (append-only; do not mutate `status.json`).
39
+
40
+ **applyReadiness (author blocked):** if specs are drafted but the human gate has not passed, or a required named spec is missing, emit `applyReadiness: { "state": "blocked", "contextFiles": ["…"] }` on the analysis receipt. Do not invoke feature-developer.
41
+
33
42
  ### Brief sections (when author mode or INDEX exists)
34
43
 
35
44
  Add to `brief.md`:
@@ -43,6 +52,14 @@ Add to `brief.md`:
43
52
  ```
44
53
 
45
54
 
55
+
56
+ ## MCP usage
57
+
58
+ Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
59
+
60
+ If the prompt/brief has a tracker URL (Linear/Jira/Notion/…) and that MCP is ready, pull AC **read-only**. Task-folder artifacts remain SoT.
61
+
62
+
46
63
  ## Artifact contract
47
64
 
48
65
  - **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume `pipeline.json`, the manifest routing entry, user-approved decisions, and any authoritative architecture/approval entries.
@@ -75,6 +75,7 @@ Fixtures: `.claude/team/fixtures/` (feature-full, feature-light, bugfix-standard
75
75
  | Intent | Default humanGates |
76
76
  |--------|-------------------|
77
77
  | feature, refactor, test-only | `["after:task-analyst"]` |
78
+ | spec-gen | `["after:task-analyst"]` |
78
79
  | migration | `["after:migration-specialist"]` |
79
80
  | unit-only | `["after:unit-test-planner"]` when new plan |
80
81
  | e2e-only / integration | `["after:integration-test-planner"]` when new plan |
@@ -100,6 +101,11 @@ Detect and set routing reasons when the user asks to **generate / bootstrap prod
100
101
 
101
102
  Do **not** add a dedicated `spec-author` agent. Do not require solution-architect for routine spec authoring.
102
103
 
104
+
105
+ **specMode (optional `pipeline.json` field):** `none` for spike/research; `generate` for `spec-gen` / `/spec-start`; `consume` default when INDEX exists. Echo top-level `specMode`. Brief `## Spec mode` wins on conflict.
106
+
107
+ Do **not** add a pipeline step for `spec-discovery`. Instruct analyst to load that skill only when the user/AC asks research-before-spec.
108
+
103
109
  ## Runtime initialization
104
110
 
105
111
  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.