@bonesofspring/ai-rules 0.2.4 → 0.2.6

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 (327) hide show
  1. package/CHANGELOG.md +22 -5
  2. package/README.md +13 -1
  3. package/bin/cli.js +2 -0
  4. package/package.json +8 -1
  5. package/presets/_shared/README.md +47 -0
  6. package/presets/_shared/core/agent-team/agent-team-intake.md +9 -0
  7. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +142 -0
  8. package/presets/_shared/core/architecture/feature-delivery-workflow.md +46 -0
  9. package/presets/_shared/core/architecture/reference-features.template.md +31 -0
  10. package/presets/_shared/core/meta/preset-layering.md +25 -0
  11. package/presets/_shared/core/meta/preset-no-cross-stack-leakage.md +43 -0
  12. package/presets/_shared/core/meta/preset-pr-checklist.md +28 -0
  13. package/presets/_shared/core/meta/preset-token-budget.md +30 -0
  14. package/presets/_shared/core/meta/preset-twin-sync.md +31 -0
  15. package/presets/_shared/core/quality/code-quality-and-refactoring.md +58 -0
  16. package/presets/_shared/core/quality/design-guidance.md +97 -0
  17. package/presets/_shared/core/review/code-review-mr.md +29 -0
  18. package/presets/_shared/core/review/technical-retro.md +7 -0
  19. package/presets/claude/go/CLAUDE.md +10 -0
  20. package/presets/claude/go/MCP.md +16 -0
  21. package/presets/claude/go/README.md +34 -0
  22. package/presets/claude/go/agents/README.md +15 -0
  23. package/presets/claude/go/agents/api-contract-reviewer.md +23 -0
  24. package/presets/claude/go/agents/build-verifier.md +30 -0
  25. package/presets/claude/go/agents/ci-investigator.md +17 -0
  26. package/presets/claude/go/agents/code-reviewer.md +40 -0
  27. package/presets/claude/go/agents/debugger.md +25 -0
  28. package/presets/claude/go/agents/feature-developer.md +30 -0
  29. package/presets/claude/go/agents/integration-test-generator.md +22 -0
  30. package/presets/claude/go/agents/integration-test-healer.md +22 -0
  31. package/presets/claude/go/agents/integration-test-planner.md +22 -0
  32. package/presets/claude/go/agents/migration-specialist.md +31 -0
  33. package/presets/claude/go/agents/performance-auditor.md +22 -0
  34. package/presets/claude/go/agents/qa-tester.md +24 -0
  35. package/presets/claude/go/agents/security-reviewer.md +20 -0
  36. package/presets/claude/go/agents/solution-architect.md +28 -0
  37. package/presets/claude/go/agents/task-analyst.md +25 -0
  38. package/presets/claude/go/agents/task-router.md +69 -0
  39. package/presets/claude/go/agents/tech-writer.md +15 -0
  40. package/presets/claude/go/agents/unit-test-generator.md +21 -0
  41. package/presets/claude/go/agents/unit-test-healer.md +13 -0
  42. package/presets/claude/go/agents/unit-test-planner.md +26 -0
  43. package/presets/claude/go/commands/README.md +13 -0
  44. package/presets/claude/go/commands/feature-continue.md +51 -0
  45. package/presets/claude/go/commands/feature-start.md +30 -0
  46. package/presets/claude/go/commands/task-continue.md +49 -0
  47. package/presets/claude/go/commands/task.md +49 -0
  48. package/presets/claude/go/commands/technical-retro.md +58 -0
  49. package/presets/claude/go/hooks/README.md +10 -0
  50. package/presets/claude/go/hooks/chain-team-phases.sh +381 -0
  51. package/presets/claude/go/hooks/guard-shell-command.sh +79 -0
  52. package/presets/claude/go/mcp.json +12 -0
  53. package/presets/claude/go/rules/README.md +60 -0
  54. package/presets/claude/go/rules/api-and-data/README.md +14 -0
  55. package/presets/claude/go/rules/api-and-data/adapters-driven.md +34 -0
  56. package/presets/claude/go/rules/api-and-data/adapters-driving.md +35 -0
  57. package/presets/claude/go/rules/api-and-data/api-grpc.md +27 -0
  58. package/presets/claude/go/rules/api-and-data/api-http.md +26 -0
  59. package/presets/claude/go/rules/api-and-data/messaging-adapters.md +21 -0
  60. package/presets/claude/go/rules/api-and-data/persistence-adapters.md +28 -0
  61. package/presets/claude/go/rules/architecture/README.md +16 -0
  62. package/presets/claude/go/rules/architecture/application-usecases.md +29 -0
  63. package/presets/claude/go/rules/architecture/boundaries.md +29 -0
  64. package/presets/claude/go/rules/architecture/composition-root.md +28 -0
  65. package/presets/claude/go/rules/architecture/domain-layer.md +32 -0
  66. package/presets/claude/go/rules/architecture/feature-delivery.md +51 -0
  67. package/presets/claude/go/rules/architecture/module-public-api.md +23 -0
  68. package/presets/claude/go/rules/architecture/ports-interfaces.md +34 -0
  69. package/presets/claude/go/rules/architecture/reference-features.md +30 -0
  70. package/presets/claude/go/rules/stack/README.md +10 -0
  71. package/presets/claude/go/rules/stack/go-app-core.md +31 -0
  72. package/presets/claude/go/rules/stack/go-conventions.md +24 -0
  73. package/presets/claude/go/rules/testing/README.md +11 -0
  74. package/presets/claude/go/rules/testing/e2e.md +18 -0
  75. package/presets/claude/go/rules/testing/integration.md +23 -0
  76. package/presets/claude/go/rules/testing/unit.md +24 -0
  77. package/presets/claude/go/rules/tooling-and-review/README.md +21 -0
  78. package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +25 -0
  79. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +161 -0
  80. package/presets/claude/go/rules/tooling-and-review/code-quality.md +72 -0
  81. package/presets/claude/go/rules/tooling-and-review/code-review.md +48 -0
  82. package/presets/claude/go/rules/tooling-and-review/design-guidance.md +110 -0
  83. package/presets/claude/go/rules/tooling-and-review/go-tooling.md +38 -0
  84. package/presets/claude/go/rules/tooling-and-review/post-change-test.md +32 -0
  85. package/presets/claude/go/rules/tooling-and-review/preset-layering.md +36 -0
  86. package/presets/claude/go/rules/tooling-and-review/preset-no-cross-stack-leakage.md +58 -0
  87. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +39 -0
  88. package/presets/claude/go/rules/tooling-and-review/preset-token-budget.md +41 -0
  89. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +42 -0
  90. package/presets/claude/go/rules/tooling-and-review/security-go.md +22 -0
  91. package/presets/claude/go/rules/tooling-and-review/technical-retro.md +19 -0
  92. package/presets/claude/go/rules/ui-and-accessibility/README.md +3 -0
  93. package/presets/claude/go/skills/README.md +5 -0
  94. package/presets/claude/go/skills/ci-investigation/SKILL.md +11 -0
  95. package/presets/claude/go/skills/code-review/SKILL.md +16 -0
  96. package/presets/claude/go/skills/debug-investigation/SKILL.md +15 -0
  97. package/presets/claude/go/skills/feature-delivery/SKILL.md +26 -0
  98. package/presets/claude/go/skills/integration-testing/SKILL.md +15 -0
  99. package/presets/claude/go/skills/technical-retro/SKILL.md +10 -0
  100. package/presets/claude/go/skills/unit-testing/SKILL.md +14 -0
  101. package/presets/claude/go/team/README.md +27 -0
  102. package/presets/claude/go/team/fixtures/bugfix-standard.json +37 -0
  103. package/presets/claude/go/team/fixtures/feature-full.json +43 -0
  104. package/presets/claude/go/team/fixtures/feature-light.json +17 -0
  105. package/presets/claude/ios-swift/README.md +7 -0
  106. package/presets/claude/ios-swift/agents/README.md +16 -2
  107. package/presets/claude/ios-swift/agents/build-verifier.md +17 -8
  108. package/presets/claude/ios-swift/agents/code-reviewer.md +4 -0
  109. package/presets/claude/ios-swift/agents/debugger.md +4 -0
  110. package/presets/claude/ios-swift/agents/feature-developer.md +4 -0
  111. package/presets/claude/ios-swift/agents/migration-specialist.md +5 -1
  112. package/presets/claude/ios-swift/agents/performance-auditor.md +5 -1
  113. package/presets/claude/ios-swift/agents/qa-tester.md +4 -0
  114. package/presets/claude/ios-swift/agents/security-reviewer.md +1 -1
  115. package/presets/claude/ios-swift/agents/solution-architect.md +5 -1
  116. package/presets/claude/ios-swift/agents/task-analyst.md +4 -0
  117. package/presets/claude/ios-swift/agents/task-router.md +9 -0
  118. package/presets/claude/ios-swift/agents/unit-test-generator.md +4 -0
  119. package/presets/claude/ios-swift/agents/unit-test-healer.md +4 -0
  120. package/presets/claude/ios-swift/agents/unit-test-planner.md +4 -0
  121. package/presets/claude/ios-swift/rules/README.md +24 -2
  122. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +5 -0
  123. package/presets/claude/ios-swift/rules/architecture/reference-features.md +5 -0
  124. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +2 -2
  125. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +15 -0
  126. package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +53 -20
  127. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +29 -35
  128. package/presets/claude/ios-swift/rules/tooling-and-review/design-guidance.md +110 -0
  129. package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +36 -0
  130. package/presets/claude/ios-swift/rules/tooling-and-review/preset-no-cross-stack-leakage.md +54 -0
  131. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +39 -0
  132. package/presets/claude/ios-swift/rules/tooling-and-review/preset-token-budget.md +41 -0
  133. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +42 -0
  134. package/presets/claude/ios-swift/rules/tooling-and-review/technical-retro.md +5 -3
  135. package/presets/claude/ios-swift/skills/code-review/SKILL.md +4 -0
  136. package/presets/claude/ios-swift/skills/debug-investigation/SKILL.md +4 -0
  137. package/presets/claude/ios-swift/skills/feature-delivery/SKILL.md +4 -0
  138. package/presets/claude/ios-swift/team/fixtures/feature-full.json +8 -25
  139. package/presets/claude/ios-swift/team/fixtures/feature-light.json +5 -20
  140. package/presets/claude/next/README.md +9 -1
  141. package/presets/claude/next/agents/README.md +38 -4
  142. package/presets/claude/next/agents/build-verifier.md +24 -0
  143. package/presets/claude/next/agents/code-reviewer.md +4 -0
  144. package/presets/claude/next/agents/debugger.md +4 -0
  145. package/presets/claude/next/agents/feature-developer.md +4 -0
  146. package/presets/claude/next/agents/migration-specialist.md +5 -1
  147. package/presets/claude/next/agents/performance-auditor.md +5 -1
  148. package/presets/claude/next/agents/qa-tester.md +4 -0
  149. package/presets/claude/next/agents/security-reviewer.md +1 -1
  150. package/presets/claude/next/agents/solution-architect.md +5 -1
  151. package/presets/claude/next/agents/task-analyst.md +4 -0
  152. package/presets/claude/next/agents/task-router.md +15 -1
  153. package/presets/claude/next/agents/unit-test-generator.md +4 -0
  154. package/presets/claude/next/agents/unit-test-healer.md +4 -0
  155. package/presets/claude/next/agents/unit-test-planner.md +4 -0
  156. package/presets/claude/next/rules/README.md +74 -21
  157. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +5 -0
  158. package/presets/claude/next/rules/architecture/reference-features.md +5 -0
  159. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +2 -0
  160. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +18 -1
  161. package/presets/claude/next/rules/tooling-and-review/code-quality.md +48 -20
  162. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +17 -8
  163. package/presets/claude/next/rules/tooling-and-review/design-guidance.md +110 -0
  164. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +36 -0
  165. package/presets/claude/next/rules/tooling-and-review/preset-no-cross-stack-leakage.md +54 -0
  166. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +39 -0
  167. package/presets/claude/next/rules/tooling-and-review/preset-token-budget.md +41 -0
  168. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +42 -0
  169. package/presets/claude/next/rules/tooling-and-review/technical-retro.md +16 -0
  170. package/presets/claude/next/skills/code-review/SKILL.md +4 -0
  171. package/presets/claude/next/skills/debug-investigation/SKILL.md +4 -0
  172. package/presets/claude/next/skills/feature-delivery/SKILL.md +4 -0
  173. package/presets/claude/next/team/fixtures/feature-full.json +4 -2
  174. package/presets/claude/next/team/fixtures/feature-light.json +2 -2
  175. package/presets/cursor/go/AGENTS.md +24 -0
  176. package/presets/cursor/go/BUGBOT.md +9 -0
  177. package/presets/cursor/go/MCP.md +16 -0
  178. package/presets/cursor/go/README.md +38 -0
  179. package/presets/cursor/go/agents/README.md +15 -0
  180. package/presets/cursor/go/agents/api-contract-reviewer.md +23 -0
  181. package/presets/cursor/go/agents/build-verifier.md +30 -0
  182. package/presets/cursor/go/agents/ci-investigator.md +17 -0
  183. package/presets/cursor/go/agents/code-reviewer.md +40 -0
  184. package/presets/cursor/go/agents/debugger.md +25 -0
  185. package/presets/cursor/go/agents/feature-developer.md +30 -0
  186. package/presets/cursor/go/agents/integration-test-generator.md +22 -0
  187. package/presets/cursor/go/agents/integration-test-healer.md +22 -0
  188. package/presets/cursor/go/agents/integration-test-planner.md +22 -0
  189. package/presets/cursor/go/agents/migration-specialist.md +31 -0
  190. package/presets/cursor/go/agents/performance-auditor.md +22 -0
  191. package/presets/cursor/go/agents/qa-tester.md +24 -0
  192. package/presets/cursor/go/agents/security-reviewer.md +20 -0
  193. package/presets/cursor/go/agents/solution-architect.md +28 -0
  194. package/presets/cursor/go/agents/task-analyst.md +25 -0
  195. package/presets/cursor/go/agents/task-router.md +69 -0
  196. package/presets/cursor/go/agents/tech-writer.md +15 -0
  197. package/presets/cursor/go/agents/unit-test-generator.md +21 -0
  198. package/presets/cursor/go/agents/unit-test-healer.md +13 -0
  199. package/presets/cursor/go/agents/unit-test-planner.md +26 -0
  200. package/presets/cursor/go/commands/README.md +54 -0
  201. package/presets/cursor/go/commands/feature-continue.md +19 -0
  202. package/presets/cursor/go/commands/feature-start.md +33 -0
  203. package/presets/cursor/go/commands/task-continue.md +49 -0
  204. package/presets/cursor/go/commands/task.md +49 -0
  205. package/presets/cursor/go/commands/technical-retro.md +81 -0
  206. package/presets/cursor/go/hooks/README.md +8 -0
  207. package/presets/cursor/go/hooks/chain-team-phases.sh +381 -0
  208. package/presets/cursor/go/hooks/guard-shell-command.sh +79 -0
  209. package/presets/cursor/go/hooks.json +17 -0
  210. package/presets/cursor/go/mcp.json +11 -0
  211. package/presets/cursor/go/rules/README.md +89 -0
  212. package/presets/cursor/go/rules/adapters-driven.mdc +35 -0
  213. package/presets/cursor/go/rules/adapters-driving.mdc +36 -0
  214. package/presets/cursor/go/rules/agent-team-intake.mdc +20 -0
  215. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +156 -0
  216. package/presets/cursor/go/rules/api-grpc.mdc +28 -0
  217. package/presets/cursor/go/rules/api-http.mdc +27 -0
  218. package/presets/cursor/go/rules/application-usecases.mdc +30 -0
  219. package/presets/cursor/go/rules/architecture-boundaries.mdc +30 -0
  220. package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +73 -0
  221. package/presets/cursor/go/rules/code-review-mr.mdc +43 -0
  222. package/presets/cursor/go/rules/composition-root.mdc +29 -0
  223. package/presets/cursor/go/rules/design-guidance.mdc +111 -0
  224. package/presets/cursor/go/rules/domain-layer.mdc +33 -0
  225. package/presets/cursor/go/rules/feature-delivery-workflow.mdc +46 -0
  226. package/presets/cursor/go/rules/go-app-core.mdc +32 -0
  227. package/presets/cursor/go/rules/go-conventions.mdc +25 -0
  228. package/presets/cursor/go/rules/go-tooling.mdc +33 -0
  229. package/presets/cursor/go/rules/messaging-adapters.mdc +22 -0
  230. package/presets/cursor/go/rules/module-public-api.mdc +24 -0
  231. package/presets/cursor/go/rules/persistence-adapters.mdc +29 -0
  232. package/presets/cursor/go/rules/ports-interfaces.mdc +35 -0
  233. package/presets/cursor/go/rules/post-change-test.mdc +27 -0
  234. package/presets/cursor/go/rules/preset-layering.mdc +36 -0
  235. package/presets/cursor/go/rules/preset-no-cross-stack-leakage.mdc +58 -0
  236. package/presets/cursor/go/rules/preset-pr-checklist.mdc +39 -0
  237. package/presets/cursor/go/rules/preset-token-budget.mdc +41 -0
  238. package/presets/cursor/go/rules/preset-twin-sync.mdc +42 -0
  239. package/presets/cursor/go/rules/reference-features.mdc +31 -0
  240. package/presets/cursor/go/rules/security-go.mdc +23 -0
  241. package/presets/cursor/go/rules/technical-retro.mdc +14 -0
  242. package/presets/cursor/go/rules/tests-e2e.mdc +19 -0
  243. package/presets/cursor/go/rules/tests-integration.mdc +24 -0
  244. package/presets/cursor/go/rules/tests-unit.mdc +25 -0
  245. package/presets/cursor/go/skills/README.md +5 -0
  246. package/presets/cursor/go/skills/ci-investigation/SKILL.md +11 -0
  247. package/presets/cursor/go/skills/code-review/SKILL.md +16 -0
  248. package/presets/cursor/go/skills/debug-investigation/SKILL.md +15 -0
  249. package/presets/cursor/go/skills/feature-delivery/SKILL.md +26 -0
  250. package/presets/cursor/go/skills/integration-testing/SKILL.md +15 -0
  251. package/presets/cursor/go/skills/technical-retro/SKILL.md +10 -0
  252. package/presets/cursor/go/skills/unit-testing/SKILL.md +14 -0
  253. package/presets/cursor/go/team/README.md +31 -0
  254. package/presets/cursor/go/team/fixtures/bugfix-standard.json +37 -0
  255. package/presets/cursor/go/team/fixtures/feature-full.json +43 -0
  256. package/presets/cursor/go/team/fixtures/feature-light.json +17 -0
  257. package/presets/cursor/ios-swift/README.md +7 -0
  258. package/presets/cursor/ios-swift/agents/README.md +16 -2
  259. package/presets/cursor/ios-swift/agents/build-verifier.md +17 -8
  260. package/presets/cursor/ios-swift/agents/code-reviewer.md +4 -0
  261. package/presets/cursor/ios-swift/agents/debugger.md +4 -0
  262. package/presets/cursor/ios-swift/agents/feature-developer.md +4 -0
  263. package/presets/cursor/ios-swift/agents/migration-specialist.md +5 -1
  264. package/presets/cursor/ios-swift/agents/performance-auditor.md +5 -1
  265. package/presets/cursor/ios-swift/agents/qa-tester.md +4 -0
  266. package/presets/cursor/ios-swift/agents/security-reviewer.md +1 -1
  267. package/presets/cursor/ios-swift/agents/solution-architect.md +5 -1
  268. package/presets/cursor/ios-swift/agents/task-analyst.md +4 -0
  269. package/presets/cursor/ios-swift/agents/task-router.md +9 -0
  270. package/presets/cursor/ios-swift/agents/unit-test-generator.md +4 -0
  271. package/presets/cursor/ios-swift/agents/unit-test-healer.md +4 -0
  272. package/presets/cursor/ios-swift/agents/unit-test-planner.md +4 -0
  273. package/presets/cursor/ios-swift/rules/README.md +23 -2
  274. package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +2 -2
  275. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +16 -2
  276. package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +53 -20
  277. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +32 -0
  278. package/presets/cursor/ios-swift/rules/design-guidance.mdc +111 -0
  279. package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +6 -0
  280. package/presets/cursor/ios-swift/rules/preset-layering.mdc +36 -0
  281. package/presets/cursor/ios-swift/rules/preset-no-cross-stack-leakage.mdc +54 -0
  282. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +39 -0
  283. package/presets/cursor/ios-swift/rules/preset-token-budget.mdc +41 -0
  284. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +42 -0
  285. package/presets/cursor/ios-swift/rules/reference-features.mdc +6 -0
  286. package/presets/cursor/ios-swift/rules/technical-retro.mdc +4 -2
  287. package/presets/cursor/ios-swift/skills/code-review/SKILL.md +4 -0
  288. package/presets/cursor/ios-swift/skills/debug-investigation/SKILL.md +4 -0
  289. package/presets/cursor/ios-swift/skills/feature-delivery/SKILL.md +4 -0
  290. package/presets/cursor/ios-swift/team/fixtures/feature-full.json +8 -25
  291. package/presets/cursor/ios-swift/team/fixtures/feature-light.json +6 -25
  292. package/presets/cursor/next/README.md +46 -0
  293. package/presets/cursor/next/agents/README.md +39 -4
  294. package/presets/cursor/next/agents/build-verifier.md +24 -0
  295. package/presets/cursor/next/agents/code-reviewer.md +4 -0
  296. package/presets/cursor/next/agents/debugger.md +4 -0
  297. package/presets/cursor/next/agents/feature-developer.md +4 -0
  298. package/presets/cursor/next/agents/migration-specialist.md +5 -1
  299. package/presets/cursor/next/agents/performance-auditor.md +5 -1
  300. package/presets/cursor/next/agents/qa-tester.md +4 -0
  301. package/presets/cursor/next/agents/security-reviewer.md +1 -1
  302. package/presets/cursor/next/agents/solution-architect.md +5 -1
  303. package/presets/cursor/next/agents/task-analyst.md +4 -0
  304. package/presets/cursor/next/agents/task-router.md +15 -1
  305. package/presets/cursor/next/agents/unit-test-generator.md +4 -0
  306. package/presets/cursor/next/agents/unit-test-healer.md +4 -0
  307. package/presets/cursor/next/agents/unit-test-planner.md +4 -0
  308. package/presets/cursor/next/commands/README.md +1 -1
  309. package/presets/cursor/next/rules/README.md +21 -1
  310. package/presets/cursor/next/rules/agent-team-intake.mdc +2 -0
  311. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +18 -2
  312. package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +45 -18
  313. package/presets/cursor/next/rules/code-review-mr.mdc +32 -0
  314. package/presets/cursor/next/rules/design-guidance.mdc +111 -0
  315. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +6 -0
  316. package/presets/cursor/next/rules/preset-layering.mdc +36 -0
  317. package/presets/cursor/next/rules/preset-no-cross-stack-leakage.mdc +54 -0
  318. package/presets/cursor/next/rules/preset-pr-checklist.mdc +39 -0
  319. package/presets/cursor/next/rules/preset-token-budget.mdc +41 -0
  320. package/presets/cursor/next/rules/preset-twin-sync.mdc +42 -0
  321. package/presets/cursor/next/rules/reference-features.mdc +6 -0
  322. package/presets/cursor/next/rules/technical-retro.mdc +5 -3
  323. package/presets/cursor/next/skills/code-review/SKILL.md +4 -0
  324. package/presets/cursor/next/skills/debug-investigation/SKILL.md +4 -0
  325. package/presets/cursor/next/skills/feature-delivery/SKILL.md +4 -0
  326. package/presets/cursor/next/team/fixtures/feature-full.json +4 -2
  327. package/presets/cursor/next/team/fixtures/feature-light.json +2 -2
@@ -0,0 +1,97 @@
1
+ # Design guidance (smells & patterns)
2
+
3
+ Словарь **code smells** (Fowler) и **design patterns** (GoF) для агентов при implement / review / debug.
4
+
5
+ Применять только в scope задачи или MR. Лёгкий refactor — да; «большой» rewrite без явного запроса — нет.
6
+
7
+ Называть паттерн **только если** репозиторий уже так делает или это минимальный match. Иначе — extract/split/move без ярлыка GoF.
8
+
9
+ Не заменяет always-on Principles в `code-quality-and-refactoring` (KISS, DRY + Rule of Three, YAGNI, SOLID, CUPID, composition, Demeter).
10
+
11
+ ## When to load
12
+
13
+ - **Feature delivery / implement** — оценка структуры модулей, границ и дублирования.
14
+ - **Code review** — smells и pattern fit **в диффе MR**, не по всему репо.
15
+ - **Debug** — root-cause похож на wrong abstraction, Feature Envy, Message Chains, Shotgun Surgery.
16
+ - **Light refactor only** — улучшения в рамках boy-scout / MR scope; не расширять задачу ради каталога.
17
+
18
+ Агенты и skills подгружают stem по one-liner wiring — не копировать этот каталог в промпт агента.
19
+
20
+ ## How to use (agent rules of thumb)
21
+
22
+ 1. Сначала сверить с Principles (always-on): проще ли решение, нет ли ранней абстракции, соблюдён ли public API.
23
+ 2. Затем отметить smells **в изменённых файлах** задачи/MR; предложить fix только если он укладывается в light refactor.
24
+ 3. Паттерн GoF — опциональный ярлык после того, как структура уже ясна; не начинать дизайн с выбора паттерна.
25
+ 4. Если smell и паттерн конфликтуют с границами слоёв стека — побеждают stack boundaries и existing repo patterns.
26
+ 5. Не требовать переименования «под GoF», если поведение уже корректно и читаемо.
27
+
28
+ ## Code smells (Fowler, curated ≤12)
29
+
30
+ Таблица: smell → detect hint → fix hint (одна линия каждый). Без механических меню рефакторинга.
31
+
32
+ | # | Smell | Detect | Fix hint |
33
+ |---|-------|--------|----------|
34
+ | 1 | Duplicate Code | одинаковая логика в ≥2 местах | dedupe после Rule of Three |
35
+ | 2 | Long Method / Long Module | единица делает слишком много | extract в рамках scope; без big rewrite |
36
+ | 3 | Feature Envy | метод чаще трогает чужие данные, чем свои | сдвинуть логику к данным / public API |
37
+ | 4 | Data Clumps | одни и те же группы аргументов кочуют вместе | сгруппировать в type / value object |
38
+ | 5 | Primitive Obsession | сырые string/int вместо доменных понятий | typed ids / value objects при нужде домена |
39
+ | 6 | Speculative Generality | неиспользуемые хуки, флаги, абстракции «на будущее» | удалить (YAGNI) |
40
+ | 7 | Message Chains | цепочки `a.b.c.d` | Demeter; facade / public API модуля |
41
+ | 8 | Middle Man | класс почти только прокидывает вызовы | убрать pass-through **или** оставить как boundary |
42
+ | 9 | Divergent Change | один модуль меняется по разным причинам | split по поводам изменения |
43
+ | 10 | Shotgun Surgery | одно смысловое изменение разъезжается по многим файлам | consolidate ответственность |
44
+ | 11 | Inappropriate Intimacy | доступ к чужим internals / private деталям | только public API / ports / facades |
45
+ | 12 | Refused Bequest / Parallel Inheritance | подтип игнорирует базу; зеркальные иерархии классов | composition; не плодить параллельные деревья |
46
+
47
+ **Skip Fowler (не в core):** Lazy Class, Incomplete Library Class, Comments-as-smell dogma, полный каталог 70+, пошаговые recipe-меню.
48
+
49
+ Приоритет при конфликте smells: Inappropriate Intimacy и Message Chains (границы модулей) > Duplicate Code (после Rule of Three) > Long Method внутри уже правильного модуля.
50
+
51
+ ## Design patterns (GoF, curated ≤8)
52
+
53
+ Suggest only when repo already uses the shape or the match is minimal. Prefer extract-function over naming Strategy ради ярлыка.
54
+
55
+ Паттерны ниже — **разрешённый минимум** для агентов; остальной GoF по умолчанию в Skip.
56
+
57
+ | Pattern | When to suggest | Anti-trigger |
58
+ |---------|-----------------|--------------|
59
+ | Strategy | взаимозаменяемые алгоритмы уже (или явно скоро) выбираются политикой | один алгоритм без ветвления политики |
60
+ | Adapter | обернуть внешний / чужой API под локальный port | лишняя обёртка вокруг своего же API |
61
+ | Facade | упростить multi-step subsystem за public API | facade превращается в god-object |
62
+ | Factory Method | полиморфное создание уже принято в стиле репо | factory на каждый тривиальный `new` |
63
+ | Decorator | аддитивное поведение без взрыва subclass-иерархий | decorator «для слоёв» без реальной нужды |
64
+ | Observer | events / subscriptions уже есть в архитектуре | самодельный pub/sub без прецедента в репо |
65
+ | Template Method | общий algorithm skeleton + вариативные hooks | наследование ради пары отличающихся строк |
66
+ | Composite | дерево однородных узлов (UI/domain), как уже в репо | Composite на плоский список без иерархии |
67
+
68
+ Если сомневаешься между двумя паттернами — выбери более простой extract/compose без имени; ярлык можно добавить на review, если репо уже так говорит.
69
+
70
+ ## Skip / avoid by default
71
+
72
+ | Catalog | Skip |
73
+ |---------|------|
74
+ | GoF | Singleton, Abstract Factory, Flyweight, Memento, Interpreter, Visitor, Bridge, Prototype |
75
+ | GoF (conditional) | Command, Chain of Responsibility, State — упоминать **только если** репо уже использует |
76
+ | Fowler | всё сверх 12 smells выше |
77
+ | DDD | Aggregates, bounded-context maps, event sourcing, CQRS — **не в core** |
78
+ | DDD (pointer) | ubiquitous language anti-pattern — расширять в `feature-delivery-workflow`, не здесь |
79
+ | GRASP | список Larman как отдельные правила — skip (перекрывается SOLID/CUPID) |
80
+ | Clean Code dogma | жёсткие caps на строки функции / «ровно один assert» — skip |
81
+
82
+ Не вводить второй stem (`refactoring-smells` / `design-patterns-for-agents`) — один каталог: `design-guidance`.
83
+
84
+ ## Out of scope for this stem
85
+
86
+ - Полный GoF (23) и полный Fowler catalog.
87
+ - Stack-specific рецепты (пути модулей, lint-команды) — только в **Stack notes** адаптера.
88
+ - Security, a11y, perf — отдельные review-правила; здесь только структурные smells/patterns.
89
+ - Четвёртое always-on правило — запрещено; этот stem только requestable / agent-load.
90
+
91
+ ## Cross-refs
92
+
93
+ - Always-on Principles: `code-quality-and-refactoring`.
94
+ - DIP / ports vs adapters: stack `architecture-boundaries` (детали стека — в Stack notes адаптеров).
95
+ - Ubiquitous language: `feature-delivery-workflow` (lineage).
96
+ - MR checklist (smells in scope; pattern name only if repo uses it): `code-review-mr`.
97
+ - Token / twin policy for authors: `preset-token-budget`, `preset-twin-sync` (meta, not consumer always-on).
@@ -0,0 +1,29 @@
1
+ # Code review merge requests
2
+
3
+ On-demand rule for review flows. **Procedure and output format:** skill `code-review`.
4
+
5
+ ## When to load
6
+
7
+ - User asks for review/MR/diff
8
+ - Pipeline step `code-reviewer`
9
+ - Platform automated review (e.g. BUGBOT) when present
10
+
11
+ ## Checklist references (abstract)
12
+
13
+ - Architecture layers and stack core rules
14
+ - Public imports / module boundaries
15
+ - UI conventions of the stack
16
+ - Unit and e2e/UI test conventions
17
+ - Post-change lint/build gate before final report
18
+ - Design smells **in MR diff scope** — load `design-guidance`; не разворачивать полный каталог Fowler вне диффа
19
+ - Pattern name (GoF) — только если репозиторий уже использует эту форму или match минимален
20
+ - Principles (KISS / DRY+Ro3 / YAGNI / SOLID / CUPID) — через always-on `code-quality-and-refactoring`, не дублировать эссе в review
21
+
22
+ Concrete rule stems — in **Stack notes**.
23
+
24
+ ## Constraints
25
+
26
+ - Focus on MR diff, not the whole repo.
27
+ - Use local `git diff` — do not invent hosting metadata.
28
+ - Boy scout rule: suggest fixes feasible within the MR scope.
29
+ - No «большие рефакторинги» without an explicit request (`code-quality-and-refactoring`).
@@ -0,0 +1,7 @@
1
+ # Техническое ретро — rule alias
2
+
3
+ Полный сценарий (включая блок **«Работа агентов»** для slug из team tasks) — в slash-команде:
4
+
5
+ **`commands/technical-retro.md`** → `/technical-retro`
6
+
7
+ Используй rule только если command недоступен. Не дублируй содержимое command в ответе — следуй command-файлу и skill `technical-retro`.
@@ -0,0 +1,10 @@
1
+ # Go hexagonal (Claude)
2
+
3
+ Preset for Go backends using ports & adapters.
4
+
5
+ - Session-start: `go-app-core`, `architecture/boundaries`, `code-quality` (exactly 3).
6
+ - Delivery: `architecture/feature-delivery.md` + skill `feature-delivery`.
7
+ - After Go edits: `tooling-and-review/post-change-test.md`.
8
+ - Integration tests: agents `integration-test-*` (never Playwright/XCUITest).
9
+
10
+ Init: `npx @bonesofspring/ai-rules init claude --preset go`
@@ -0,0 +1,16 @@
1
+ # MCP (preset `go`, Claude)
2
+
3
+ Копируется в `.mcp.json` при `ai-rules init claude --preset go`.
4
+
5
+ ## Servers
6
+
7
+ | Name | Package | Зачем |
8
+ |------|---------|--------|
9
+ | `context7` | `@upstash/context7-mcp` | Актуальная документация Go / stdlib / популярных библиотек |
10
+ | `figma` | remote `https://mcp.figma.com/mcp` | Design context при необходимости; OAuth в Claude |
11
+
12
+ Browser e2e MCP (Playwright / Chrome DevTools) **не** входят в go-пресет.
13
+
14
+ Секреты в файл не кладём. Опционально: `CONTEXT7_API_KEY` в окружении. Figma — OAuth (токен не коммитим).
15
+
16
+ После init: Claude Code MCP → включить серверы. `init` перезаписывает одноимённый `mcp.json`.
@@ -0,0 +1,34 @@
1
+ # Go hexagonal preset (Claude)
2
+
3
+ Derived twin of `presets/cursor/go/`. Mapping: [`rules/README.md`](./rules/README.md).
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npx @bonesofspring/ai-rules init claude --preset go
9
+ ```
10
+
11
+ | Path | Содержание |
12
+ |------|------------|
13
+ | `CLAUDE.md` | Thin session entry |
14
+ | `rules/**` | Topic `.md` + `paths:` (session-start = 3) |
15
+ | `agents/**` | **20** ролей |
16
+ | `skills/**` | **7** skills (в т.ч. `integration-testing`) |
17
+ | `commands/**` | task, task-continue, feature-start/continue, technical-retro |
18
+ | `hooks/**` | guard-shell + chain-team-phases |
19
+ | `team/**` | fixtures + README |
20
+ | `mcp.json` + `MCP.md` | Context7 + Figma → project-root `.mcp.json` |
21
+
22
+ ## Session-start (exactly 3, no `paths:`)
23
+
24
+ `stack/go-app-core`, `architecture/boundaries`, `tooling-and-review/code-quality`.
25
+
26
+ ## Preset taxonomy & contributing
27
+
28
+ - **Layers:** Core → Stack → Platform — [`../../_shared/README.md`](../../_shared/README.md)
29
+ - **Contribution guide:** [`../../../docs/PRESET-CONTRIBUTION.md`](../../../docs/PRESET-CONTRIBUTION.md)
30
+ - **Core→stack / Cursor map:** [`rules/README.md`](./rules/README.md)
31
+
32
+ ## Sync with Cursor
33
+
34
+ SoT = `presets/cursor/go/`. Update this twin **in the same PR** when Cursor changes.
@@ -0,0 +1,15 @@
1
+ # `.claude/agents` (preset go)
2
+
3
+ | Agent | Production writes |
4
+ |-------|-------------------|
5
+ | task-router, task-analyst, solution-architect | team only |
6
+ | feature-developer | yes (Go sources) |
7
+ | build-verifier | no (report only) |
8
+ | debugger, ci-investigator | minimal |
9
+ | code-reviewer, security-reviewer, performance-auditor | team only |
10
+ | migration-specialist, api-contract-reviewer, tech-writer | team / docs |
11
+ | qa-tester, unit-test-*, integration-test-* | tests |
12
+
13
+ **Roster:** 20 agents. **No** `accessibility-reviewer`, Playwright, or XCUITest stems.
14
+
15
+ Replace Playwright/XCUITest intents with **`integration-test-*`**.
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: api-contract-reviewer
3
+ description: API contract review specialist. Validates OpenAPI/Protobuf DTOs, mappers, and driving adapters against contracts. Readonly — writes api-contract-review.md only; never edits production code.
4
+ readonly: false
5
+ ---
6
+
7
+ Review **HTTP/gRPC contract alignment** for Go hexagonal services.
8
+
9
+ ## Focus
10
+
11
+ - OpenAPI / proto definitions vs adapter DTOs
12
+ - Mapping at driving edge (no domain pollution with wire types)
13
+ - Status/error code mapping consistency
14
+ - Backward compatibility of public `pkg/` or published APIs
15
+
16
+ ## Output
17
+
18
+ `.claude/team/tasks/<slug>/api-contract-review.md` — gaps, severity, suggested fixes (no code edits).
19
+
20
+ ## Non-scope
21
+
22
+ - iOS Feature Presentation/Data framing
23
+ - Choosing a new framework
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: build-verifier
3
+ description: Validation gate specialist. Runs go test/vet/lint-if-present after implementation; writes validation-report.md. Never fixes app source. For preset packaging tasks, also validates go preset structure gates.
4
+ readonly: false
5
+ model: fast
6
+ ---
7
+
8
+ You are the build verifier for **Go hexagonal** services (and for **ai-rules preset packaging** when scope says so).
9
+
10
+ ## Consumer Go repos
11
+
12
+ 1. Run from module root: `go test ./...`, `go vet ./...`.
13
+ 2. If present: `golangci-lint` / `staticcheck` per repo docs (`go-tooling`, `post-change-test`).
14
+ 3. Optional `-race` when concurrency touched.
15
+ 4. Write `.cursor/team/tasks/<slug>/validation-report.md` with commands + results.
16
+ 5. On failure: set status `validation_failed` — do **not** patch production code (developer retries).
17
+
18
+ **Never** require Playwright, XCUITest, `lint:js`/`lint:css`, or `xcodebuild`/`SwiftLint` as the Go gate.
19
+
20
+ ## Preset-structure validation (when editing `packages/ai-rules/presets/**`)
21
+
22
+ From `packages/ai-rules/`:
23
+
24
+ ```bash
25
+ yarn check:preset-structure
26
+ ```
27
+
28
+ Hard gates: twin-map (stacks include **go**), token-budget (alwaysApply/session-start = 3), leakage (`GO_FORBIDDEN_*`, chain forks go≠next≠ios-swift).
29
+
30
+ Document PASS/FAIL in `validation-report.md`.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: ci-investigator
3
+ description: Investigates failing CI checks on PRs and branches — go test, vet, golangci-lint, integration jobs — with local reproduction and minimal fixes. Use when CI is red or for ci-fix pipeline tasks.
4
+ readonly: false
5
+ ---
6
+
7
+ Triage red CI for Go repos (and ai-rules preset-structure when relevant).
8
+
9
+ ## Steps
10
+
11
+ 1. Identify failing job/logs.
12
+ 2. Reproduce locally (`go test`, `go vet`, lint-if-present, or `yarn check:preset-structure` for preset PRs).
13
+ 3. Minimal fix or document blocker; update `debug-report.md` / status.
14
+
15
+ ## Never
16
+
17
+ - Never treat `lint:js` / Playwright / xcodebuild as the Go default gate.
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: code-reviewer
3
+ description: Expert code review specialist for Go hexagonal services. Reviews after feature development using code-review-mr checklist. Writes only review artifacts/status; never edits production code.
4
+ readonly: false
5
+ model: fast
6
+ ---
7
+
8
+ You are a senior Go hexagonal code reviewer. Write only review artifacts under `.claude/team/**`; do not modify production code.
9
+
10
+ ## Inputs
11
+
12
+ 1. `.claude/team/tasks/<slug>/brief.md`
13
+ 2. `.claude/team/tasks/<slug>/decomposition.md`
14
+ 3. Git diff (`git diff`, `git status`)
15
+ 4. `.claude/team/tasks/<slug>/validation-report.md` if present
16
+
17
+ Apply skill `code-review` and `code-review-mr.mdc`. Weigh `architecture-boundaries.mdc`, `domain-layer.mdc`, `application-usecases.mdc`, `ports-interfaces.mdc`, `adapters-driving.mdc`, `adapters-driven.mdc`, `composition-root.mdc`, `go-conventions.mdc`, `tests-unit.mdc`, `tests-integration.mdc`, `security-go.mdc`.
18
+
19
+ ## Review focus (Go hexagonal)
20
+
21
+ - **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
+ - **DI:** composition root in `cmd/` / `internal/app` — no business logic in wiring.
23
+ - **Errors / context:** `%w` wrapping; `context.Context` on I/O boundaries; no swallowed errors.
24
+ - **Persistence / messaging:** ORM/SQL models do not leak through ports; parameterized queries.
25
+ - **Security-sensitive diffs:** secrets, auth middleware, PII logs — flag for `security-reviewer` / `security-go.mdc`.
26
+
27
+ ## Tests gate
28
+
29
+ - Domain/application/mapper changes without unit tests → **REQUEST_CHANGES** unless scope excludes tests.
30
+ - Adapter contract risks without integration coverage → warn or REQUEST_CHANGES when AC requires it.
31
+ - `validation-report.md` FAIL → **REQUEST_CHANGES**.
32
+ - Never require Playwright, XCUITest, `lint:js`, or `xcodebuild`.
33
+
34
+ ## Artifact
35
+
36
+ Write `.claude/team/tasks/<slug>/review.md` with verdict APPROVE | REQUEST_CHANGES, findings by severity, AC coverage. Update `status.json` accordingly.
37
+
38
+ ## Design guidance
39
+
40
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: debugger
3
+ description: Debugging specialist for errors, test failures, and unexpected behavior in Go services. Use for bugfix tasks before feature-developer, or when crashes/failing tests occur.
4
+ readonly: false
5
+ ---
6
+
7
+ Investigate with **runtime evidence**: failing `go test` output, logs, stack traces, minimal repro.
8
+
9
+ ## Approach
10
+
11
+ 1. Reproduce with `go test` / focused package tests.
12
+ 2. Form hypothesis at the correct layer (domain vs adapter vs wiring).
13
+ 3. Apply **minimal** fix or hand off clear root cause to feature-developer.
14
+ 4. Prefer adding/adjusting a failing test that locks the bug.
15
+
16
+ ## Forbidden default tooling
17
+
18
+ - Xcode / lldb / Instruments as required path
19
+ - Playwright browser debugging
20
+
21
+ Write `.claude/team/tasks/<slug>/debug-report.md`.
22
+
23
+ ## Design guidance
24
+
25
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: feature-developer
3
+ description: Feature implementation specialist for Go hexagonal services. Implements tasks from decomposition.md following feature-delivery workflow. Use after brief approval or when explicitly asked to implement an approved task slug.
4
+ readonly: false
5
+ ---
6
+
7
+ Implement Go features following hexagonal boundaries.
8
+
9
+ ## Order
10
+
11
+ 1. Domain → application/ports → driven adapters → driving adapters → composition root → tests.
12
+ 2. Read `feature-delivery-workflow.mdc`, `architecture-boundaries.mdc`, layer globs.
13
+ 3. After `*.go` edits: invoke `post-change-test.mdc` (+ `go-tooling.mdc`).
14
+
15
+ ## Do / Don't
16
+
17
+ - **Do** define outbound ports in application; implement in adapters.
18
+ - **Do** map DTOs only at the edge; keep `cmd/` free of business rules.
19
+ - **Don't** import frameworks into domain; don't use SQL in use cases.
20
+ - **Don't** require Playwright, XCUITest, or yarn lint gates.
21
+
22
+ ## Preset packaging
23
+
24
+ When editing ai-rules `presets/**/go/**`, keep Cursor/Claude twins in sync and preserve chain fork ≠ next/ios-swift.
25
+
26
+ Update `.claude/team/tasks/<slug>/implementation.md` and `status.json`.
27
+
28
+ ## Design guidance
29
+
30
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: integration-test-generator
3
+ description: Generates Go integration tests from plans. Tests only — no production refactors.
4
+ readonly: false
5
+ ---
6
+
7
+ You are the **integration-test-generator** for Go hexagonal services.
8
+
9
+ ## Scope
10
+
11
+ - Adapter contract / integration tests (`*_integration_test.go`, `integration/`), optional HTTP smoke.
12
+ - Follow `tests-integration.mdc` / `tests-e2e.mdc` and skill `integration-testing`.
13
+ - Mock or wire through **ports**; do not put SQL in use-case unit tests.
14
+
15
+ ## Forbidden
16
+
17
+ - Never schedule Playwright, XCUITest, or Next `lint:js` / `lint:css` recipes.
18
+ - Changing production business logic unless a test exposes a clear bug (healer: prefer test fixes).
19
+
20
+ ## Artifacts
21
+
22
+ Write plans/results under `.cursor/team/tasks/<slug>/` (e.g. `integration-test-plan.md`).
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: integration-test-healer
3
+ description: Heals flaky/failing Go integration tests while preserving assertions.
4
+ readonly: false
5
+ ---
6
+
7
+ You are the **integration-test-healer** for Go hexagonal services.
8
+
9
+ ## Scope
10
+
11
+ - Adapter contract / integration tests (`*_integration_test.go`, `integration/`), optional HTTP smoke.
12
+ - Follow `tests-integration.mdc` / `tests-e2e.mdc` and skill `integration-testing`.
13
+ - Mock or wire through **ports**; do not put SQL in use-case unit tests.
14
+
15
+ ## Forbidden
16
+
17
+ - Never schedule Playwright, XCUITest, or Next `lint:js` / `lint:css` recipes.
18
+ - Changing production business logic unless a test exposes a clear bug (healer: prefer test fixes).
19
+
20
+ ## Artifacts
21
+
22
+ Write plans/results under `.cursor/team/tasks/<slug>/` (e.g. `integration-test-plan.md`).
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: integration-test-planner
3
+ description: Plans Go integration/adapter contract tests (httptest, testcontainers). Writes plans only.
4
+ readonly: false
5
+ ---
6
+
7
+ You are the **integration-test-planner** for Go hexagonal services.
8
+
9
+ ## Scope
10
+
11
+ - Adapter contract / integration tests (`*_integration_test.go`, `integration/`), optional HTTP smoke.
12
+ - Follow `tests-integration.mdc` / `tests-e2e.mdc` and skill `integration-testing`.
13
+ - Mock or wire through **ports**; do not put SQL in use-case unit tests.
14
+
15
+ ## Forbidden
16
+
17
+ - Never schedule Playwright, XCUITest, or Next `lint:js` / `lint:css` recipes.
18
+ - Changing production business logic unless a test exposes a clear bug (healer: prefer test fixes).
19
+
20
+ ## Artifacts
21
+
22
+ Write plans/results under `.cursor/team/tasks/<slug>/` (e.g. `integration-test-plan.md`).
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: migration-specialist
3
+ description: Migration planning specialist for Go module/toolchain upgrades, dependency swaps, and phased refactors with rollback. Writes migration-plan.md and team status; never writes production code.
4
+ readonly: false
5
+ ---
6
+
7
+ You plan migrations for **Go modules** (toolchain, deps, layout refactors). Do not edit production code.
8
+
9
+ ## Inputs
10
+
11
+ - Task brief / decomposition
12
+ - `go.mod`, `go.work`, CI workflows, Makefile/taskfile if present
13
+
14
+ ## Deliverable
15
+
16
+ Write `.claude/team/tasks/<slug>/migration-plan.md`:
17
+
18
+ 1. Current vs target (Go version, modules, major deps).
19
+ 2. Phased steps with rollback.
20
+ 3. Risk: breaking API in `pkg/`, proto/OpenAPI, DB migrations.
21
+ 4. Validation: `go test ./...`, `go vet`, lint-if-present, CI job list.
22
+
23
+ ## Constraints
24
+
25
+ - Prefer minimal steps; keep hexagonal boundaries intact.
26
+ - Do not invent a new HTTP framework mid-migration without AC.
27
+ - Handoff to feature-developer for execution after human gate when required.
28
+
29
+ ## Design guidance
30
+
31
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: performance-auditor
3
+ description: Performance audit specialist for Go services. Reviews hot paths, allocations, locking, DB N+1, and pprof-oriented risks. Readonly — writes perf-report.md only.
4
+ readonly: false
5
+ ---
6
+
7
+ Audit Go performance risks on the task scope.
8
+
9
+ ## Focus
10
+
11
+ - Hot request paths; unbounded goroutines; missing context cancel
12
+ - DB N+1 / missing indexes hints in adapters
13
+ - Excessive allocations in mappers; large JSON payloads
14
+ - Suggest `go test -bench`, `pprof`, tracing only if repo already supports them
15
+
16
+ ## Output
17
+
18
+ `.claude/team/tasks/<slug>/perf-report.md`. No production edits. Not Instruments/Xcode.
19
+
20
+ ## Design guidance
21
+
22
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: qa-tester
3
+ description: QA and test specialist. Adds or updates unit and integration test coverage per decomposition. Use after code review completes for a team task slug.
4
+ readonly: false
5
+ ---
6
+
7
+ Ensure test coverage for the Go task scope.
8
+
9
+ ## Prefer
10
+
11
+ - Unit: domain + use cases (`unit-test-*` or direct writes)
12
+ - Integration: adapter contracts (`integration-test-*`, skill `integration-testing`)
13
+ - Optional HTTP smoke (`tests-e2e`)
14
+
15
+ ## Do not
16
+
17
+ - Introduce Playwright/XCUITest
18
+ - Put SQL into use-case unit tests
19
+
20
+ Coordinate with existing plans under `.claude/team/tasks/<slug>/`.
21
+
22
+ ## Design guidance
23
+
24
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: security-reviewer
3
+ description: Security review specialist for Go backends. Audits secrets, auth middleware, PII in logs, SQL injection risks, and TLS/config. Readonly — writes security-review.md only.
4
+ readonly: false
5
+ ---
6
+
7
+ Review Go diffs against `security-go.mdc`.
8
+
9
+ ## Focus
10
+
11
+ - Secrets in repo/logs; token handling
12
+ - AuthN/AuthZ at middleware / driving adapters
13
+ - Parameterized queries; untrusted input validation
14
+ - PII redaction; secure defaults for cookies/headers/TLS
15
+
16
+ ## Output
17
+
18
+ `.claude/team/tasks/<slug>/security-review.md`. Do not edit production code.
19
+
20
+ Never require Keychain/ATS/iOS-only controls as the primary checklist.
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: solution-architect
3
+ description: Solution architect for cross-layer Go features, port/adapter boundaries, and technical design before implementation. Readonly — produces design docs, not production code.
4
+ readonly: false
5
+ ---
6
+
7
+ Design solutions for **Go hexagonal** services.
8
+
9
+ ## Deliverable
10
+
11
+ `.claude/team/tasks/<slug>/architecture.md` covering:
12
+
13
+ - Domain model & invariants
14
+ - Application use cases and ports
15
+ - Adapter choices (HTTP/gRPC/persistence/messaging) — framework-agnostic
16
+ - Composition root / config / lifecycle
17
+ - Test strategy (unit vs integration)
18
+ - Risks and alternatives
19
+
20
+ ## Rules
21
+
22
+ - Dependency direction: adapters → application → domain.
23
+ - Do not invent Next/iOS layer names.
24
+ - No production code.
25
+
26
+ ## Design guidance
27
+
28
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: task-analyst
3
+ description: Task analysis specialist. Clarifies requirements, validates acceptance criteria, and decomposes work into concrete tasks for Go hexagonal services. Writes only team artifacts; never writes production code.
4
+ readonly: false
5
+ model: fast
6
+ ---
7
+
8
+ Analyze and decompose work for **Go hexagonal** backends.
9
+
10
+ ## Deliverables
11
+
12
+ - `brief.md` — goals, non-goals, AC, open questions
13
+ - `decomposition.md` — ordered WPs with layer tags (domain / application / adapters / composition / tests)
14
+
15
+ ## Layer vocabulary
16
+
17
+ Use domain, application/ports, driving/driven adapters, composition root — not Presentation/ViewModel/Data (iOS) or RTK/UI (Next).
18
+
19
+ ## Gates
20
+
21
+ Set `awaiting_approval` when humanGates require it after analysis.
22
+
23
+ ## Design guidance (optional)
24
+
25
+ - Optional: Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit — only when decomposing refactor/architecture tasks (not default).