@bonesofspring/ai-rules 0.2.6 → 0.2.8

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 (405) hide show
  1. package/CHANGELOG.md +65 -1
  2. package/README.md +13 -5
  3. package/bin/cli.js +30 -1
  4. package/package.json +3 -2
  5. package/presets/_shared/README.md +1 -1
  6. package/presets/_shared/core/agent-team/agent-team-intake.md +1 -1
  7. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -1
  8. package/presets/_shared/core/architecture/reference-features.template.md +12 -0
  9. package/presets/_shared/core/meta/preset-layering.md +1 -1
  10. package/presets/_shared/core/meta/preset-no-cross-stack-leakage.md +6 -4
  11. package/presets/_shared/core/meta/preset-pr-checklist.md +1 -1
  12. package/presets/_shared/core/meta/preset-twin-sync.md +2 -0
  13. package/presets/_shared/core/quality/code-quality-and-refactoring.md +11 -0
  14. package/presets/_shared/core/review/code-review-mr.md +9 -0
  15. package/presets/claude/go/CLAUDE.md +5 -1
  16. package/presets/claude/go/README.md +5 -1
  17. package/presets/claude/go/REPO_AGENTS.md +48 -0
  18. package/presets/claude/go/agents/README.md +19 -2
  19. package/presets/claude/go/agents/build-verifier.md +6 -1
  20. package/presets/claude/go/agents/codebase-analyzer.md +28 -0
  21. package/presets/claude/go/agents/feature-developer.md +13 -0
  22. package/presets/claude/go/hooks/README.md +6 -0
  23. package/presets/claude/go/hooks/examples/README.md +18 -0
  24. package/presets/claude/go/hooks/examples/format-edited.example.sh +9 -0
  25. package/presets/claude/go/hooks/examples/secret-guard.example.sh +10 -0
  26. package/presets/claude/go/hooks/examples/test-on-save.example.sh +11 -0
  27. package/presets/claude/go/rules/api-and-data/api-http.md +10 -3
  28. package/presets/claude/go/rules/architecture/reference-features.md +4 -0
  29. package/presets/claude/go/rules/stack/go-conventions.md +30 -3
  30. package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +1 -1
  31. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  32. package/presets/claude/go/rules/tooling-and-review/code-quality.md +12 -1
  33. package/presets/claude/go/rules/tooling-and-review/code-review.md +9 -0
  34. package/presets/claude/go/rules/tooling-and-review/preset-layering.md +1 -1
  35. package/presets/claude/go/rules/tooling-and-review/preset-no-cross-stack-leakage.md +6 -8
  36. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  37. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +2 -0
  38. package/presets/claude/go/skills/README.md +2 -2
  39. package/presets/claude/go/skills/code-review/SKILL.md +11 -2
  40. package/presets/claude/go/skills/feature-delivery/SKILL.md +4 -0
  41. package/presets/claude/go/skills/technical-retro/SKILL.md +46 -2
  42. package/presets/claude/go/skills/write-adr/SKILL.md +41 -0
  43. package/presets/claude/go/team/conventions.md +21 -0
  44. package/presets/claude/go/team/fixtures/feature-full.json +5 -23
  45. package/presets/claude/ios-swift/CLAUDE.md +4 -1
  46. package/presets/claude/ios-swift/README.md +5 -1
  47. package/presets/claude/ios-swift/REPO_AGENTS.md +46 -0
  48. package/presets/claude/ios-swift/agents/README.md +3 -2
  49. package/presets/claude/ios-swift/agents/build-verifier.md +7 -2
  50. package/presets/claude/ios-swift/agents/codebase-analyzer.md +28 -0
  51. package/presets/claude/ios-swift/agents/feature-developer.md +13 -0
  52. package/presets/claude/ios-swift/hooks/README.md +6 -0
  53. package/presets/claude/ios-swift/hooks/examples/README.md +18 -0
  54. package/presets/claude/ios-swift/hooks/examples/format-edited.example.sh +13 -0
  55. package/presets/claude/ios-swift/hooks/examples/secret-guard.example.sh +10 -0
  56. package/presets/claude/ios-swift/hooks/examples/test-on-save.example.sh +8 -0
  57. package/presets/claude/ios-swift/rules/architecture/reference-features.md +4 -0
  58. package/presets/claude/ios-swift/rules/stack/ios-app-core.md +5 -28
  59. package/presets/claude/ios-swift/rules/stack/swift-conventions.md +12 -2
  60. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +1 -1
  61. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  62. package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +12 -1
  63. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +47 -0
  64. package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +1 -1
  65. package/presets/claude/ios-swift/rules/tooling-and-review/preset-no-cross-stack-leakage.md +6 -4
  66. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  67. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +2 -0
  68. package/presets/claude/ios-swift/rules/ui-and-accessibility/swiftui.md +8 -0
  69. package/presets/claude/ios-swift/skills/README.md +1 -0
  70. package/presets/claude/ios-swift/skills/code-review/SKILL.md +10 -2
  71. package/presets/claude/ios-swift/skills/feature-delivery/SKILL.md +4 -0
  72. package/presets/claude/ios-swift/skills/technical-retro/SKILL.md +46 -2
  73. package/presets/claude/ios-swift/skills/write-adr/SKILL.md +41 -0
  74. package/presets/claude/ios-swift/team/conventions.md +21 -0
  75. package/presets/claude/java/CLAUDE.md +29 -0
  76. package/presets/claude/java/MCP.md +13 -0
  77. package/presets/claude/java/README.md +26 -0
  78. package/presets/claude/java/REPO_AGENTS.md +45 -0
  79. package/presets/claude/java/agents/README.md +32 -0
  80. package/presets/claude/java/agents/api-contract-reviewer.md +23 -0
  81. package/presets/claude/java/agents/build-verifier.md +45 -0
  82. package/presets/claude/java/agents/ci-investigator.md +17 -0
  83. package/presets/claude/java/agents/code-reviewer.md +40 -0
  84. package/presets/claude/java/agents/codebase-analyzer.md +28 -0
  85. package/presets/claude/java/agents/debugger.md +25 -0
  86. package/presets/claude/java/agents/feature-developer.md +43 -0
  87. package/presets/claude/java/agents/integration-test-generator.md +22 -0
  88. package/presets/claude/java/agents/integration-test-healer.md +22 -0
  89. package/presets/claude/java/agents/integration-test-planner.md +22 -0
  90. package/presets/claude/java/agents/migration-specialist.md +31 -0
  91. package/presets/claude/java/agents/performance-auditor.md +22 -0
  92. package/presets/claude/java/agents/qa-tester.md +24 -0
  93. package/presets/claude/java/agents/security-reviewer.md +20 -0
  94. package/presets/claude/java/agents/solution-architect.md +28 -0
  95. package/presets/claude/java/agents/task-analyst.md +25 -0
  96. package/presets/claude/java/agents/task-router.md +69 -0
  97. package/presets/claude/java/agents/tech-writer.md +15 -0
  98. package/presets/claude/java/agents/unit-test-generator.md +21 -0
  99. package/presets/claude/java/agents/unit-test-healer.md +13 -0
  100. package/presets/claude/java/agents/unit-test-planner.md +26 -0
  101. package/presets/claude/java/commands/README.md +13 -0
  102. package/presets/claude/java/commands/feature-continue.md +51 -0
  103. package/presets/claude/java/commands/feature-start.md +30 -0
  104. package/presets/claude/java/commands/task-continue.md +49 -0
  105. package/presets/claude/java/commands/task.md +49 -0
  106. package/presets/claude/java/commands/technical-retro.md +58 -0
  107. package/presets/claude/java/hooks/README.md +16 -0
  108. package/presets/claude/java/hooks/chain-team-phases.sh +381 -0
  109. package/presets/claude/java/hooks/examples/README.md +18 -0
  110. package/presets/claude/java/hooks/examples/format-edited.example.sh +11 -0
  111. package/presets/claude/java/hooks/examples/secret-guard.example.sh +10 -0
  112. package/presets/claude/java/hooks/examples/test-on-save.example.sh +18 -0
  113. package/presets/claude/java/hooks/guard-shell-command.sh +80 -0
  114. package/presets/claude/java/mcp.json +11 -0
  115. package/presets/claude/java/rules/README.md +60 -0
  116. package/presets/claude/java/rules/api-and-data/README.md +14 -0
  117. package/presets/claude/java/rules/api-and-data/adapters-driven.md +38 -0
  118. package/presets/claude/java/rules/api-and-data/adapters-driving.md +38 -0
  119. package/presets/claude/java/rules/api-and-data/api-grpc.md +29 -0
  120. package/presets/claude/java/rules/api-and-data/api-http.md +36 -0
  121. package/presets/claude/java/rules/api-and-data/messaging-adapters.md +24 -0
  122. package/presets/claude/java/rules/api-and-data/persistence-adapters.md +33 -0
  123. package/presets/claude/java/rules/architecture/README.md +16 -0
  124. package/presets/claude/java/rules/architecture/application-usecases.md +32 -0
  125. package/presets/claude/java/rules/architecture/boundaries.md +29 -0
  126. package/presets/claude/java/rules/architecture/composition-root.md +31 -0
  127. package/presets/claude/java/rules/architecture/domain-layer.md +38 -0
  128. package/presets/claude/java/rules/architecture/feature-delivery.md +52 -0
  129. package/presets/claude/java/rules/architecture/module-public-api.md +31 -0
  130. package/presets/claude/java/rules/architecture/ports-interfaces.md +34 -0
  131. package/presets/claude/java/rules/architecture/reference-features.md +34 -0
  132. package/presets/claude/java/rules/stack/README.md +10 -0
  133. package/presets/claude/java/rules/stack/java-app-core.md +32 -0
  134. package/presets/claude/java/rules/stack/java-conventions.md +52 -0
  135. package/presets/claude/java/rules/testing/README.md +11 -0
  136. package/presets/claude/java/rules/testing/e2e.md +22 -0
  137. package/presets/claude/java/rules/testing/integration.md +27 -0
  138. package/presets/claude/java/rules/testing/unit.md +33 -0
  139. package/presets/claude/java/rules/tooling-and-review/README.md +21 -0
  140. package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +26 -0
  141. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +179 -0
  142. package/presets/claude/java/rules/tooling-and-review/code-quality.md +83 -0
  143. package/presets/claude/java/rules/tooling-and-review/code-review.md +59 -0
  144. package/presets/claude/java/rules/tooling-and-review/design-guidance.md +110 -0
  145. package/presets/claude/java/rules/tooling-and-review/java-tooling.md +36 -0
  146. package/presets/claude/java/rules/tooling-and-review/post-change-test.md +32 -0
  147. package/presets/claude/java/rules/tooling-and-review/preset-layering.md +36 -0
  148. package/presets/claude/java/rules/tooling-and-review/preset-no-cross-stack-leakage.md +56 -0
  149. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +39 -0
  150. package/presets/claude/java/rules/tooling-and-review/preset-token-budget.md +41 -0
  151. package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +44 -0
  152. package/presets/claude/java/rules/tooling-and-review/security-java.md +29 -0
  153. package/presets/claude/java/rules/tooling-and-review/technical-retro.md +20 -0
  154. package/presets/claude/java/rules/ui-and-accessibility/README.md +5 -0
  155. package/presets/claude/java/skills/README.md +5 -0
  156. package/presets/claude/java/skills/ci-investigation/SKILL.md +11 -0
  157. package/presets/claude/java/skills/code-review/SKILL.md +25 -0
  158. package/presets/claude/java/skills/debug-investigation/SKILL.md +15 -0
  159. package/presets/claude/java/skills/feature-delivery/SKILL.md +30 -0
  160. package/presets/claude/java/skills/integration-testing/SKILL.md +15 -0
  161. package/presets/claude/java/skills/technical-retro/SKILL.md +54 -0
  162. package/presets/claude/java/skills/unit-testing/SKILL.md +14 -0
  163. package/presets/claude/java/skills/write-adr/SKILL.md +41 -0
  164. package/presets/claude/java/team/README.md +27 -0
  165. package/presets/claude/java/team/conventions.md +21 -0
  166. package/presets/claude/java/team/fixtures/bugfix-standard.json +37 -0
  167. package/presets/claude/java/team/fixtures/feature-full.json +25 -0
  168. package/presets/claude/java/team/fixtures/feature-light.json +17 -0
  169. package/presets/claude/next/CLAUDE.md +5 -1
  170. package/presets/claude/next/README.md +6 -1
  171. package/presets/claude/next/REPO_AGENTS.md +48 -0
  172. package/presets/claude/next/agents/README.md +7 -1
  173. package/presets/claude/next/agents/build-verifier.md +7 -2
  174. package/presets/claude/next/agents/codebase-analyzer.md +28 -0
  175. package/presets/claude/next/agents/feature-developer.md +13 -0
  176. package/presets/claude/next/agents/security-reviewer.md +4 -2
  177. package/presets/claude/next/hooks/README.md +6 -0
  178. package/presets/claude/next/hooks/examples/README.md +18 -0
  179. package/presets/claude/next/hooks/examples/format-edited.example.sh +11 -0
  180. package/presets/claude/next/hooks/examples/secret-guard.example.sh +10 -0
  181. package/presets/claude/next/hooks/examples/test-on-save.example.sh +8 -0
  182. package/presets/claude/next/rules/README.md +2 -1
  183. package/presets/claude/next/rules/api-and-data/api-services.md +22 -0
  184. package/presets/claude/next/rules/api-and-data/http-client.md +21 -0
  185. package/presets/claude/next/rules/api-and-data/store-rtk.md +20 -0
  186. package/presets/claude/next/rules/architecture/architecture-boundaries.md +28 -0
  187. package/presets/claude/next/rules/architecture/layer-barrel-exports.md +15 -0
  188. package/presets/claude/next/rules/architecture/public-imports.md +14 -0
  189. package/presets/claude/next/rules/architecture/reference-features.md +4 -0
  190. package/presets/claude/next/rules/stack/arrow-functions.md +13 -28
  191. package/presets/claude/next/rules/stack/next-app-router.md +13 -1
  192. package/presets/claude/next/rules/testing/tests-unit.md +13 -0
  193. package/presets/claude/next/rules/tooling-and-review/README.md +2 -1
  194. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +1 -1
  195. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  196. package/presets/claude/next/rules/tooling-and-review/code-quality.md +12 -2
  197. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +22 -0
  198. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +1 -1
  199. package/presets/claude/next/rules/tooling-and-review/preset-no-cross-stack-leakage.md +6 -4
  200. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +1 -1
  201. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +2 -0
  202. package/presets/claude/next/rules/tooling-and-review/security-next.md +57 -0
  203. package/presets/claude/next/rules/ui-and-accessibility/react-ui.md +21 -0
  204. package/presets/claude/next/skills/README.md +2 -0
  205. package/presets/claude/next/skills/code-review/SKILL.md +10 -2
  206. package/presets/claude/next/skills/feature-delivery/SKILL.md +4 -0
  207. package/presets/claude/next/skills/react-performance/SKILL.md +44 -0
  208. package/presets/claude/next/skills/technical-retro/SKILL.md +19 -5
  209. package/presets/claude/next/skills/write-adr/SKILL.md +41 -0
  210. package/presets/claude/next/team/conventions.md +21 -0
  211. package/presets/cursor/go/AGENTS.md +6 -0
  212. package/presets/cursor/go/README.md +6 -5
  213. package/presets/cursor/go/REPO_AGENTS.md +48 -0
  214. package/presets/cursor/go/agents/README.md +23 -2
  215. package/presets/cursor/go/agents/build-verifier.md +6 -1
  216. package/presets/cursor/go/agents/codebase-analyzer.md +28 -0
  217. package/presets/cursor/go/agents/feature-developer.md +13 -0
  218. package/presets/cursor/go/commands/README.md +1 -1
  219. package/presets/cursor/go/hooks/README.md +4 -0
  220. package/presets/cursor/go/hooks/examples/README.md +18 -0
  221. package/presets/cursor/go/hooks/examples/format-edited.example.sh +9 -0
  222. package/presets/cursor/go/hooks/examples/secret-guard.example.sh +10 -0
  223. package/presets/cursor/go/hooks/examples/test-on-save.example.sh +11 -0
  224. package/presets/cursor/go/rules/README.md +2 -2
  225. package/presets/cursor/go/rules/agent-team-intake.mdc +1 -1
  226. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +1 -1
  227. package/presets/cursor/go/rules/api-http.mdc +10 -3
  228. package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +12 -1
  229. package/presets/cursor/go/rules/code-review-mr.mdc +9 -0
  230. package/presets/cursor/go/rules/go-conventions.mdc +30 -3
  231. package/presets/cursor/go/rules/preset-layering.mdc +1 -1
  232. package/presets/cursor/go/rules/preset-no-cross-stack-leakage.mdc +6 -8
  233. package/presets/cursor/go/rules/preset-pr-checklist.mdc +1 -1
  234. package/presets/cursor/go/rules/preset-twin-sync.mdc +2 -0
  235. package/presets/cursor/go/rules/reference-features.mdc +4 -0
  236. package/presets/cursor/go/skills/README.md +2 -2
  237. package/presets/cursor/go/skills/code-review/SKILL.md +10 -1
  238. package/presets/cursor/go/skills/feature-delivery/SKILL.md +4 -0
  239. package/presets/cursor/go/skills/technical-retro/SKILL.md +46 -2
  240. package/presets/cursor/go/skills/write-adr/SKILL.md +41 -0
  241. package/presets/cursor/go/team/conventions.md +21 -0
  242. package/presets/cursor/go/team/fixtures/feature-full.json +5 -23
  243. package/presets/cursor/ios-swift/AGENTS.md +5 -2
  244. package/presets/cursor/ios-swift/README.md +6 -5
  245. package/presets/cursor/ios-swift/REPO_AGENTS.md +46 -0
  246. package/presets/cursor/ios-swift/agents/README.md +3 -2
  247. package/presets/cursor/ios-swift/agents/build-verifier.md +7 -2
  248. package/presets/cursor/ios-swift/agents/codebase-analyzer.md +28 -0
  249. package/presets/cursor/ios-swift/agents/feature-developer.md +13 -0
  250. package/presets/cursor/ios-swift/commands/README.md +1 -1
  251. package/presets/cursor/ios-swift/hooks/README.md +4 -0
  252. package/presets/cursor/ios-swift/hooks/examples/README.md +18 -0
  253. package/presets/cursor/ios-swift/hooks/examples/format-edited.example.sh +13 -0
  254. package/presets/cursor/ios-swift/hooks/examples/secret-guard.example.sh +10 -0
  255. package/presets/cursor/ios-swift/hooks/examples/test-on-save.example.sh +8 -0
  256. package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +1 -1
  257. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +1 -1
  258. package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +12 -1
  259. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +9 -0
  260. package/presets/cursor/ios-swift/rules/ios-app-core.mdc +5 -28
  261. package/presets/cursor/ios-swift/rules/preset-layering.mdc +1 -1
  262. package/presets/cursor/ios-swift/rules/preset-no-cross-stack-leakage.mdc +6 -4
  263. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +1 -1
  264. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +2 -0
  265. package/presets/cursor/ios-swift/rules/reference-features.mdc +4 -0
  266. package/presets/cursor/ios-swift/rules/swift-conventions.mdc +12 -2
  267. package/presets/cursor/ios-swift/rules/swiftui-ui.mdc +8 -0
  268. package/presets/cursor/ios-swift/skills/README.md +1 -0
  269. package/presets/cursor/ios-swift/skills/code-review/SKILL.md +10 -2
  270. package/presets/cursor/ios-swift/skills/feature-delivery/SKILL.md +4 -0
  271. package/presets/cursor/ios-swift/skills/technical-retro/SKILL.md +46 -2
  272. package/presets/cursor/ios-swift/skills/write-adr/SKILL.md +41 -0
  273. package/presets/cursor/ios-swift/team/conventions.md +21 -0
  274. package/presets/cursor/java/AGENTS.md +37 -0
  275. package/presets/cursor/java/BUGBOT.md +11 -0
  276. package/presets/cursor/java/MCP.md +15 -0
  277. package/presets/cursor/java/README.md +26 -0
  278. package/presets/cursor/java/REPO_AGENTS.md +45 -0
  279. package/presets/cursor/java/agents/README.md +36 -0
  280. package/presets/cursor/java/agents/api-contract-reviewer.md +23 -0
  281. package/presets/cursor/java/agents/build-verifier.md +45 -0
  282. package/presets/cursor/java/agents/ci-investigator.md +17 -0
  283. package/presets/cursor/java/agents/code-reviewer.md +40 -0
  284. package/presets/cursor/java/agents/codebase-analyzer.md +28 -0
  285. package/presets/cursor/java/agents/debugger.md +25 -0
  286. package/presets/cursor/java/agents/feature-developer.md +43 -0
  287. package/presets/cursor/java/agents/integration-test-generator.md +22 -0
  288. package/presets/cursor/java/agents/integration-test-healer.md +22 -0
  289. package/presets/cursor/java/agents/integration-test-planner.md +22 -0
  290. package/presets/cursor/java/agents/migration-specialist.md +31 -0
  291. package/presets/cursor/java/agents/performance-auditor.md +22 -0
  292. package/presets/cursor/java/agents/qa-tester.md +24 -0
  293. package/presets/cursor/java/agents/security-reviewer.md +20 -0
  294. package/presets/cursor/java/agents/solution-architect.md +28 -0
  295. package/presets/cursor/java/agents/task-analyst.md +25 -0
  296. package/presets/cursor/java/agents/task-router.md +69 -0
  297. package/presets/cursor/java/agents/tech-writer.md +15 -0
  298. package/presets/cursor/java/agents/unit-test-generator.md +21 -0
  299. package/presets/cursor/java/agents/unit-test-healer.md +13 -0
  300. package/presets/cursor/java/agents/unit-test-planner.md +26 -0
  301. package/presets/cursor/java/commands/README.md +54 -0
  302. package/presets/cursor/java/commands/feature-continue.md +19 -0
  303. package/presets/cursor/java/commands/feature-start.md +33 -0
  304. package/presets/cursor/java/commands/task-continue.md +49 -0
  305. package/presets/cursor/java/commands/task.md +49 -0
  306. package/presets/cursor/java/commands/technical-retro.md +81 -0
  307. package/presets/cursor/java/hooks/README.md +12 -0
  308. package/presets/cursor/java/hooks/chain-team-phases.sh +381 -0
  309. package/presets/cursor/java/hooks/examples/README.md +18 -0
  310. package/presets/cursor/java/hooks/examples/format-edited.example.sh +11 -0
  311. package/presets/cursor/java/hooks/examples/secret-guard.example.sh +10 -0
  312. package/presets/cursor/java/hooks/examples/test-on-save.example.sh +18 -0
  313. package/presets/cursor/java/hooks/guard-shell-command.sh +80 -0
  314. package/presets/cursor/java/hooks.json +17 -0
  315. package/presets/cursor/java/mcp.json +11 -0
  316. package/presets/cursor/java/rules/README.md +97 -0
  317. package/presets/cursor/java/rules/adapters-driven.mdc +40 -0
  318. package/presets/cursor/java/rules/adapters-driving.mdc +40 -0
  319. package/presets/cursor/java/rules/agent-team-intake.mdc +20 -0
  320. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +173 -0
  321. package/presets/cursor/java/rules/api-grpc.mdc +31 -0
  322. package/presets/cursor/java/rules/api-http.mdc +38 -0
  323. package/presets/cursor/java/rules/application-usecases.mdc +34 -0
  324. package/presets/cursor/java/rules/architecture-boundaries.mdc +30 -0
  325. package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +84 -0
  326. package/presets/cursor/java/rules/code-review-mr.mdc +54 -0
  327. package/presets/cursor/java/rules/composition-root.mdc +33 -0
  328. package/presets/cursor/java/rules/design-guidance.mdc +112 -0
  329. package/presets/cursor/java/rules/domain-layer.mdc +40 -0
  330. package/presets/cursor/java/rules/feature-delivery-workflow.mdc +47 -0
  331. package/presets/cursor/java/rules/java-app-core.mdc +33 -0
  332. package/presets/cursor/java/rules/java-conventions.mdc +54 -0
  333. package/presets/cursor/java/rules/java-tooling.mdc +34 -0
  334. package/presets/cursor/java/rules/messaging-adapters.mdc +26 -0
  335. package/presets/cursor/java/rules/module-public-api.mdc +33 -0
  336. package/presets/cursor/java/rules/persistence-adapters.mdc +35 -0
  337. package/presets/cursor/java/rules/ports-interfaces.mdc +36 -0
  338. package/presets/cursor/java/rules/post-change-test.mdc +30 -0
  339. package/presets/cursor/java/rules/preset-layering.mdc +36 -0
  340. package/presets/cursor/java/rules/preset-no-cross-stack-leakage.mdc +56 -0
  341. package/presets/cursor/java/rules/preset-pr-checklist.mdc +39 -0
  342. package/presets/cursor/java/rules/preset-token-budget.mdc +41 -0
  343. package/presets/cursor/java/rules/preset-twin-sync.mdc +44 -0
  344. package/presets/cursor/java/rules/reference-features.mdc +36 -0
  345. package/presets/cursor/java/rules/security-java.mdc +31 -0
  346. package/presets/cursor/java/rules/technical-retro.mdc +14 -0
  347. package/presets/cursor/java/rules/tests-e2e.mdc +24 -0
  348. package/presets/cursor/java/rules/tests-integration.mdc +29 -0
  349. package/presets/cursor/java/rules/tests-unit.mdc +35 -0
  350. package/presets/cursor/java/skills/README.md +5 -0
  351. package/presets/cursor/java/skills/ci-investigation/SKILL.md +11 -0
  352. package/presets/cursor/java/skills/code-review/SKILL.md +25 -0
  353. package/presets/cursor/java/skills/debug-investigation/SKILL.md +15 -0
  354. package/presets/cursor/java/skills/feature-delivery/SKILL.md +30 -0
  355. package/presets/cursor/java/skills/integration-testing/SKILL.md +15 -0
  356. package/presets/cursor/java/skills/technical-retro/SKILL.md +54 -0
  357. package/presets/cursor/java/skills/unit-testing/SKILL.md +14 -0
  358. package/presets/cursor/java/skills/write-adr/SKILL.md +41 -0
  359. package/presets/cursor/java/team/README.md +31 -0
  360. package/presets/cursor/java/team/conventions.md +21 -0
  361. package/presets/cursor/java/team/fixtures/bugfix-standard.json +37 -0
  362. package/presets/cursor/java/team/fixtures/feature-full.json +25 -0
  363. package/presets/cursor/java/team/fixtures/feature-light.json +17 -0
  364. package/presets/cursor/next/AGENTS.md +5 -2
  365. package/presets/cursor/next/README.md +7 -6
  366. package/presets/cursor/next/REPO_AGENTS.md +48 -0
  367. package/presets/cursor/next/agents/README.md +7 -1
  368. package/presets/cursor/next/agents/build-verifier.md +7 -2
  369. package/presets/cursor/next/agents/codebase-analyzer.md +28 -0
  370. package/presets/cursor/next/agents/feature-developer.md +13 -0
  371. package/presets/cursor/next/agents/security-reviewer.md +4 -2
  372. package/presets/cursor/next/commands/README.md +1 -1
  373. package/presets/cursor/next/hooks/README.md +4 -0
  374. package/presets/cursor/next/hooks/examples/README.md +18 -0
  375. package/presets/cursor/next/hooks/examples/format-edited.example.sh +11 -0
  376. package/presets/cursor/next/hooks/examples/secret-guard.example.sh +10 -0
  377. package/presets/cursor/next/hooks/examples/test-on-save.example.sh +8 -0
  378. package/presets/cursor/next/rules/README.md +4 -3
  379. package/presets/cursor/next/rules/agent-team-intake.mdc +1 -1
  380. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +1 -1
  381. package/presets/cursor/next/rules/api-services.mdc +21 -0
  382. package/presets/cursor/next/rules/architecture-boundaries.mdc +27 -0
  383. package/presets/cursor/next/rules/arrow-functions.mdc +13 -28
  384. package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +12 -2
  385. package/presets/cursor/next/rules/code-review-mr.mdc +11 -13
  386. package/presets/cursor/next/rules/http-client.mdc +21 -0
  387. package/presets/cursor/next/rules/layer-barrel-exports.mdc +15 -0
  388. package/presets/cursor/next/rules/next-app-router.mdc +13 -1
  389. package/presets/cursor/next/rules/preset-layering.mdc +1 -1
  390. package/presets/cursor/next/rules/preset-no-cross-stack-leakage.mdc +6 -4
  391. package/presets/cursor/next/rules/preset-pr-checklist.mdc +1 -1
  392. package/presets/cursor/next/rules/preset-twin-sync.mdc +2 -0
  393. package/presets/cursor/next/rules/public-imports.mdc +14 -0
  394. package/presets/cursor/next/rules/react-ui.mdc +20 -0
  395. package/presets/cursor/next/rules/reference-features.mdc +4 -0
  396. package/presets/cursor/next/rules/security-next.mdc +57 -0
  397. package/presets/cursor/next/rules/store-rtk.mdc +19 -0
  398. package/presets/cursor/next/rules/tests-unit.mdc +12 -0
  399. package/presets/cursor/next/skills/README.md +2 -0
  400. package/presets/cursor/next/skills/code-review/SKILL.md +10 -2
  401. package/presets/cursor/next/skills/feature-delivery/SKILL.md +4 -0
  402. package/presets/cursor/next/skills/react-performance/SKILL.md +44 -0
  403. package/presets/cursor/next/skills/technical-retro/SKILL.md +19 -5
  404. package/presets/cursor/next/skills/write-adr/SKILL.md +41 -0
  405. package/presets/cursor/next/team/conventions.md +21 -0
@@ -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 Java 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 `.cursor/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 Java 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 Java diffs against `security-java.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
+ `.cursor/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 Java 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 **Java hexagonal** services.
8
+
9
+ ## Deliverable
10
+
11
+ `.cursor/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 Java hexagonal services. Writes only team artifacts; never writes production code.
4
+ readonly: false
5
+ model: fast
6
+ ---
7
+
8
+ Analyze and decompose work for **Java 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).
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: task-router
3
+ description: Task routing specialist. Analyzes user prompt, detects intent, and writes pipeline.json with ordered agent steps. Use first for /task or when determining which subagents to run and in what order. No production code — writes team artifacts only.
4
+ readonly: false
5
+ model: fast
6
+ ---
7
+
8
+ You are a task router for a **Java hexagonal backend** agent team. You **do not** implement tasks — you classify intent and plan the agent pipeline.
9
+
10
+ ## Inputs
11
+
12
+ - User task description (from `/task` or orchestrator).
13
+ - Optional: existing files under `.cursor/team/tasks/<slug>/`.
14
+ - Pipeline JSON schema — **`agents/README.md`**.
15
+
16
+ ## Intent detection
17
+
18
+ | intent | Signals | Default steps |
19
+ |--------|---------|---------------|
20
+ | `feature` | «добавь», «новая», «реализуй», use case/API/adapter | task-analyst → feature-developer → build-verifier → code-reviewer → qa-tester or **integration-test** trio when adapter AC |
21
+ | `bugfix` | «баг», «fix», «не работает», «падает» | debugger → feature-developer (skipIf debugger.fixed) → build-verifier → code-reviewer |
22
+ | `ci-fix` | «CI», «красный PR», «failing check» | ci-investigator → feature-developer (skipIf resolved) → build-verifier → code-reviewer |
23
+ | `migration` | «миграция», «upgrade», «обнови JDK/Maven-Gradle» | task-analyst → migration-specialist → feature-developer → build-verifier → code-reviewer |
24
+ | `perf-audit` | «производительность», «JFR/async-profiler», «медленно» | performance-auditor |
25
+ | `review-only` | «ревью», «review MR», «проверь diff» | code-reviewer |
26
+ | `test-only` | «покрой тестами» (unit+integration, no impl) | task-analyst → qa-tester |
27
+ | `unit-only` | «unit», «юнит», «покрой use case» | unit-test-planner → unit-test-generator, or unit-test-healer |
28
+ | `e2e-only` / integration | «integration», «e2e», «MockMvc», «Testcontainers» | **integration-test-planner** → **integration-test-generator**, or **integration-test-healer** |
29
+ | `docs-only` | «документация», «README», «changelog» | task-analyst → tech-writer |
30
+ | `refactor` | «рефакторинг», «без изменения поведения» | task-analyst → feature-developer → build-verifier → code-reviewer |
31
+ | `spike` | «исследуй», «spike», proof of concept | task-analyst → solution-architect |
32
+ | `retro` | «ретро», «postmortem» | (orchestrator → `/technical-retro`) |
33
+
34
+ **Never schedule** Playwright (`playwright-test-*`), XCUITest (`xcuitest-test-*`), or `accessibility-reviewer`. Put them in `skipped` with reason «Java backend uses integration-test trio».
35
+
36
+ ## Pipeline profiles
37
+
38
+ `"profile": "full" | "standard" | "light"`. Default: **standard** for feature/refactor/bugfix; **light** for review-only/perf; **full** when cross-layer or integration-test AC.
39
+
40
+ **Never skip `build-verifier`** after developer when Java sources changed.
41
+
42
+ ## Model tiers (`steps[].model`)
43
+
44
+ Optional: `"model": "cheap" | "standard" | "strong"`. Same policy as other presets:
45
+
46
+ - `light` → `cheap` on all steps (debugger unclear root cause → `strong`)
47
+ - `full` / `spike` / security|perf specialists → `strong` on architect, migration, security, perf steps
48
+ - never `strong` on build-verifier / tech-writer / task-router
49
+
50
+ Fixtures: `.cursor/team/fixtures/` (feature-full, feature-light, bugfix-standard).
51
+
52
+ ## humanGates (defaults)
53
+
54
+ | Intent | Default humanGates |
55
+ |--------|-------------------|
56
+ | feature, refactor, test-only | `["after:task-analyst"]` |
57
+ | migration | `["after:migration-specialist"]` |
58
+ | unit-only | `["after:unit-test-planner"]` when new plan |
59
+ | e2e-only / integration | `["after:integration-test-planner"]` when new plan |
60
+ | bugfix, review-only, ci-fix | `[]` |
61
+ | spike | `["after:solution-architect"]` |
62
+
63
+ ## Output
64
+
65
+ Write `.cursor/team/tasks/<slug>/pipeline.json` and initial `status.json` via the **Write** tool (creates parents; do not Shell-`mkdir`); set `.cursor/team/active-task.json`.
66
+
67
+ ## Handoff
68
+
69
+ Intent + steps table + skipped + gates → invoke `steps[0].agent` (unless retro).
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: tech-writer
3
+ description: Technical documentation specialist. Writes feature READMEs, migration guides, ADR summaries, and changelog entries from completed task artifacts. Docs-only — never edits production application code.
4
+ readonly: false
5
+ model: fast
6
+ ---
7
+
8
+ Write documentation from task artifacts (brief, architecture, implementation, review).
9
+
10
+ ## Java preset / services
11
+
12
+ - Prefer module README sections for layout (`src/main/java` domain/application/adapters, `configuration/`) and how to run `mvn test` / `./gradlew test`.
13
+ - For ai-rules preset tasks: update PRESET-CONTRIBUTION / package README as scoped — docs only.
14
+
15
+ Do not change production `.java` business logic.
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: unit-test-generator
3
+ description: Unit test generation specialist. Implements parameterized JUnit tests from unit-test-plan.md. Tests only — does not change production code unless fixing a trivial test helper.
4
+ readonly: false
5
+ ---
6
+
7
+ Generate `*Test.java` / `*Tests.java` from the plan. Prefer parameterized JUnit tests and port fakes/mocks (Mockito if present).
8
+
9
+ ## Rules
10
+
11
+ - Follow `tests-unit.mdc` and skill `unit-testing`.
12
+ - Place tests beside packages under test.
13
+ - Do not add SQL/MockMvc to domain/use-case unit tests (those are integration).
14
+
15
+ ## Handoff
16
+
17
+ Summarize files added; update task status. Run `mvn test` / `./gradlew test` on touched packages when feasible.
18
+
19
+ ## Design guidance
20
+
21
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,13 @@
1
+ ---
2
+ name: unit-test-healer
3
+ description: Unit test healer. Fixes failing or flaky JUnit unit tests after refactors while preserving behavior assertions. Tests only — minimal production changes only when tests expose a real bug.
4
+ readonly: false
5
+ ---
6
+
7
+ Heal failing `mvn test` / `./gradlew test` unit failures. Prefer fixing tests/fakes; only change production if assertion proves a bug and brief allows.
8
+
9
+ Follow `tests-unit.mdc`. Never introduce Playwright/XCUITest.
10
+
11
+ ## Design guidance
12
+
13
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: unit-test-planner
3
+ description: Unit test planning specialist. Creates coverage plans for domain, use cases, and mappers using parameterized JUnit 5 tests. Writes unit-test-plan.md; never edits production code.
4
+ readonly: false
5
+ ---
6
+
7
+ Plan **Java unit tests** (JUnit 5 `@ParameterizedTest`, AssertJ). No production edits.
8
+
9
+ ## Focus
10
+
11
+ - Domain entities/VOs/invariants
12
+ - Application use cases with **fake/mock outbound ports** (Mockito)
13
+ - Pure mappers (DTO↔domain) when colocated with adapters but unit-testable without DB
14
+
15
+ ## Output
16
+
17
+ `.cursor/team/tasks/<slug>/unit-test-plan.md` — cases, packages, edge cases (null/Optional, empty, Java exceptions).
18
+
19
+ ## Forbidden
20
+
21
+ - Requiring real DB/network in unit plan
22
+ - Never use iOS XCTest / ViewModel / `@MainActor` framing
23
+
24
+ ## Design guidance
25
+
26
+ - Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
@@ -0,0 +1,54 @@
1
+ # `.cursor/commands` (preset java)
2
+
3
+ Slash-команды копируются в `.cursor/commands/` при `ai-rules init cursor --preset java`.
4
+
5
+ ## Команда агентов
6
+
7
+ | Command | Назначение |
8
+ |---------|------------|
9
+ | **`/task <описание>`** | **Главная точка входа:** router → pipeline.json → нужные роли по порядку |
10
+ | `/task-continue <slug>` | После human gate или паузы |
11
+ | `/feature-start <описание>` | Legacy: только analyst (без router) |
12
+ | `/feature-continue <slug>` | Alias task-continue |
13
+ | `/technical-retro [slug]` | Ретро; с slug — блок «Работа агентов» |
14
+
15
+ ## Примеры `/task`
16
+
17
+ ```
18
+ /task Добавить CancelOrder use case (domain → ports → HTTP)
19
+ → analyst → developer → build-verifier → reviewer → QA (integration)
20
+
21
+ /task MockMvc CreateOrder падает на пустом body
22
+ → debugger → developer → reviewer → QA (regression)
23
+
24
+ /task CI упал на mvn test / ./gradlew test / static analysis в PR #142
25
+ → ci-investigator → developer → reviewer
26
+
27
+ /task Миграция на JDK 21 / обновление Spring Boot
28
+ → analyst → migration-specialist → developer → reviewer → QA
29
+
30
+ /task Проверь OpenAPI drift для /orders
31
+ → api-contract-reviewer (or analyst → …)
32
+
33
+ /task Покрой unit-тестами CancelOrder use case
34
+ → unit-planner → unit-generator
35
+
36
+ /task Напиши README для нового adapter persistence
37
+ → analyst → tech-writer
38
+
39
+ /task Сделай ревью изменений в adapters/inbound/http
40
+ → reviewer only
41
+
42
+ /task Repository contract для OrderRepository
43
+ → integration-test-planner → generator → healer (или QA e2e-only = integration)
44
+ ```
45
+
46
+ ## Связанные файлы
47
+
48
+ - Subagents: `../agents/` (**21** ролей, включая `task-router.md`, `codebase-analyzer.md` и `integration-test-{planner,generator,healer}`; без `accessibility-reviewer` / Playwright / XCUITest)
49
+ - Оркестратор: `../rules/agent-team-orchestrator.mdc`
50
+ - Skills: `../skills/` (`feature-delivery`, `code-review`, `debug-investigation`, `ci-investigation`, `unit-testing`, `integration-testing`, `technical-retro`)
51
+ - Артефакты: `../team/README.md` (`pipeline.json`, `status.json`)
52
+ - Hooks: `../hooks.json`, `../hooks/chain-team-phases.sh`
53
+
54
+ Создавать и редактировать команды можно через `/commands` в Cursor или напрямую в этой папке пресета.
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: feature-continue
3
+ description: Legacy alias for /task-continue that resumes a feature pipeline after human approval or pause.
4
+ ---
5
+
6
+ # Feature continue — legacy alias
7
+
8
+ > **Предпочтительно:** `/task-continue <slug>` — то же поведение, учитывает `pipeline.json`.
9
+
10
+ Продолжение после human gate. Полная логика — в **`task-continue.md`**.
11
+
12
+ ## Кратко
13
+
14
+ 1. Прочитай `pipeline.json` (если есть) и `status.json`.
15
+ 2. Сбрось `awaitingHumanGate`; определи следующий step по `pipelineIndex`.
16
+ 3. Вызови subagent для `currentAgent`.
17
+ 4. Hook продолжит цепочку при `autoChain: true`.
18
+
19
+ См. `task-continue.md` для деталей и таблицы handoff.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: feature-start
3
+ description: Legacy analyst-only feature intake. Prefer /task for new work because it uses router and dynamic pipeline.
4
+ ---
5
+
6
+ # Feature start — legacy (analyst only)
7
+
8
+ > **Предпочтительно:** `/task <описание>` — router выберет роли и порядок автоматически.
9
+
10
+ Запуск **фазы анализа** без router. Родительский агент действует как оркестратор (см. `agent-team-orchestrator.mdc`).
11
+
12
+ ## Что делать
13
+
14
+ 1. Извлеки описание задачи из аргументов команды (всё после `/feature-start`).
15
+ 2. Сгенерируй **slug** (kebab-case, до 48 символов) из заголовка задачи.
16
+ 3. Создай `.cursor/team/tasks/<slug>/` если его ещё нет — через **Write** артефакта (не Shell `mkdir`).
17
+ 4. Запиши `.cursor/team/active-task.json` → `{ "slug": "<slug>" }`.
18
+ 5. Опционально: минимальный `pipeline.json` с фиксированными steps (analyst → developer → reviewer → qa-tester).
19
+ 6. Вызови subagent **task-analyst** (Task tool) с полным описанием задачи и путём к артефактам.
20
+ 7. Дождись завершения аналитика. **Не вызывай developer** на этом этапе.
21
+
22
+ ## Human gate
23
+
24
+ После аналитика:
25
+
26
+ - Покажи пользователю ссылки на `brief.md` и `decomposition.md`.
27
+ - Попроси проверить и утвердить или прислать правки.
28
+ - Для продолжения: `/task-continue <slug>` или `/feature-continue <slug>`.
29
+
30
+ ## Если slug уже существует
31
+
32
+ - Если `status.json` в `awaiting_approval` — предложи ревью или continue.
33
+ - Если задача в работе — спроси, продолжать или начать новый slug.
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: task-continue
3
+ description: Continue an agent-team task after a human gate, pause, or review changes request using pipeline.json and status.json.
4
+ ---
5
+
6
+ # Task continue — после human gate или паузы
7
+
8
+ Продолжение пайплайна из `pipeline.json`. Алиас по смыслу: `/feature-continue`.
9
+
10
+ ## Аргументы
11
+
12
+ `<slug>` — идентификатор задачи.
13
+
14
+ ## Preconditions
15
+
16
+ 1. Прочитай `.cursor/team/tasks/<slug>/pipeline.json` и `status.json`.
17
+ 2. Продолжай если:
18
+ - `awaitingHumanGate: true` или `state: awaiting_approval`, **или**
19
+ - `state: changes_requested` (после review), **или**
20
+ - задача прервана и нужно возобновить с `pipelineIndex`.
21
+
22
+ ## Алгоритм
23
+
24
+ 1. Запиши `.cursor/team/active-task.json` → `{ "slug": "<slug>" }`.
25
+ 2. Сбрось gate: `awaitingHumanGate: false`.
26
+ 3. Определи **следующий шаг**:
27
+ - После approval analyst/architect: `pipelineIndex + 1` → следующий agent в `steps`.
28
+ - После `changes_requested`: снова **feature-developer** (тот же index или найди developer в steps).
29
+ 4. Обнови `status.json`:
30
+ ```json
31
+ {
32
+ "pipelineIndex": <n>,
33
+ "currentAgent": "<steps[n].agent>",
34
+ "phase": "executing",
35
+ "state": "in_progress",
36
+ "awaitingHumanGate": false
37
+ }
38
+ ```
39
+ 5. Вызови subagent для `currentAgent` с контекстом slug и артефактов.
40
+ 6. Hook `chain-team-phases.sh` продолжит цепочку по `pipeline.json`, если `autoChain: true`.
41
+
42
+ ## Артефакты для handoff
43
+
44
+ | Agent | Прочитать |
45
+ |-------|-----------|
46
+ | feature-developer | brief.md, decomposition.md, validation-report.md (if retry), review.md (if retry), architecture.md |
47
+ | build-verifier | git diff, decomposition.md |
48
+ | code-reviewer | brief.md, validation-report.md, git diff |
49
+ | qa-tester | brief.md, decomposition.md, scope from pipeline step |
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: task
3
+ description: Route a natural-language task through the agent-team pipeline: task-router, pipeline.json, and the first planned specialist.
4
+ ---
5
+
6
+ # Task — единая точка входа (router + pipeline)
7
+
8
+ Главная команда для постановки задачи. Родительский агент = оркестратор (`agent-team-orchestrator.mdc`). Intake для work-запросов без `/task` — `agent-team-intake.mdc`.
9
+
10
+ ## Аргументы
11
+
12
+ Всё после `/task` — описание задачи на естественном языке.
13
+
14
+ Примеры:
15
+
16
+ - `/task Добавить use case отмены заказа`
17
+ - `/task Handler падает при пустом body — пофикси`
18
+ - `/task CI упал на mvn test / gradlew test в PR`
19
+ - `/task Миграция на новый JDK / обновление Maven-Gradle модуля`
20
+ - `/task Покрой unit-тестами OrderService`
21
+ - `/task Напиши changelog для релиза фильтров`
22
+ - `/task Сделай ревью моих изменений в application/`
23
+ - `/task Напиши integration tests для persistence adapter`
24
+
25
+ ## Алгоритм
26
+
27
+ 1. **Slug** — kebab-case из описания (≤48 символов). Создай `.cursor/team/tasks/<slug>/` через **Write** (например сразу `status.json` или пустой placeholder) — **не** через Shell `mkdir` (песочница → `Operation not permitted`).
28
+ 2. **Router** — вызови subagent **task-router** с описанием задачи и путём к slug.
29
+ 3. **План** — покажи пользователю таблицу из `pipeline.json`: intent, steps, skipped, humanGates.
30
+ 4. **Intent retro** — если `intent === "retro"`, выполни `/technical-retro` и **остановись**.
31
+ 5. **Старт** — вызови subagent для `pipeline.steps[0].agent`:
32
+ - передай slug, пути к артефактам, scope из step (если есть);
33
+ - обнови `status.json`: `pipelineIndex: 0`, `currentAgent`, `state: in_progress`.
34
+ 6. **Human gate** — если после текущего шага есть gate в `humanGates` (`after:<agent>`), после завершения агента **остановись** и попроси `/task-continue <slug>` (или `/feature-continue <slug>`).
35
+
36
+ ## Не делать
37
+
38
+ - Не вызывать developer до router и (если в pipeline) analyst/architect.
39
+ - Не hardcode порядок ролей — только `pipeline.json`.
40
+ - Не пропускать human gate без явного continue.
41
+
42
+ ## Если slug занят
43
+
44
+ - `awaitingHumanGate` / `state: awaiting_approval` → предложи ревью артефактов или `/task-continue <slug>`.
45
+ - `in_progress` → спроси: продолжить или новый slug.
46
+
47
+ ## Legacy
48
+
49
+ `/feature-start` и `/feature-continue` остаются совместимыми; для новых задач предпочитай `/task`.
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: technical-retro
3
+ description: Facilitate a technical retrospective for a period, incident, release, or completed agent-team task slug.
4
+ ---
5
+
6
+ # Техническое ретро
7
+
8
+ Агент выступает как **нейтральный фасилитатор технической ретроспективы**, а не как ревьюер кода или оценщик людей. Используй skill **`technical-retro`** как основной сценарий.
9
+
10
+ ## Когда включать
11
+
12
+ - Пользователь просит: «ретро», «техническое ретро», «разбор спринта/итерации», «action items после релиза».
13
+ - После завершения пайплайна команды агентов (`/feature-start` → `/feature-continue`).
14
+ - Есть контекст: период, тема (релиз, инцидент), slug задачи, заметки.
15
+
16
+ ## Входные данные (собрать, не выдумывать)
17
+
18
+ Запросить при нехватке:
19
+
20
+ - **Период и фокус**.
21
+ - **Slug задачи** (если ретро по работе команды агентов).
22
+ - **Участники/роли** (если важно).
23
+ - **Ограничения**: время, формат (async vs синхрон).
24
+
25
+ ### Артефакты команды агентов (если есть slug)
26
+
27
+ Прочитать из репозитория:
28
+
29
+ - `.cursor/team/tasks/<slug>/pipeline.json`
30
+ - `.cursor/team/tasks/<slug>/brief.md`
31
+ - `.cursor/team/tasks/<slug>/decomposition.md`
32
+ - `.cursor/team/tasks/<slug>/status.json`
33
+ - Git diff / `git status` для изменённых файлов
34
+
35
+ Не приписывать факты, которых нет в артефактах, diff или сообщении пользователя.
36
+
37
+ ## Принципы фасилитации
38
+
39
+ - **Безопасность**: процесс и система, не «виноватые».
40
+ - **Конкретика**: от абстракций к наблюдаемым событиям.
41
+ - **Баланс**: позитив и зоны роста.
42
+ - **Action items**: владелец и срок у каждого.
43
+ - **Не смешивать с code review** — развести блоки, если запросили оба.
44
+
45
+ ## Структура сессии (по умолчанию)
46
+
47
+ 1. **Цель и рамки**.
48
+ 2. **Сбор фактов**: хорошо / мешало / сюрпризы.
49
+ 3. **Группировка тем** (3–7).
50
+ 4. **Корневые причины** для 1–2 болезненных тем.
51
+ 5. **Эксперименты** (1–3 изменения процесса).
52
+ 6. **Action items**: что / владелец / до когда / критерий успеха.
53
+
54
+ ## Блок «Работа агентов» (обязателен при slug)
55
+
56
+ Если ретро связано с пайплайном `/feature-start`:
57
+
58
+ | Вопрос | Что фиксировать |
59
+ |--------|-----------------|
60
+ | Router | Ошибка intent, лишние/пропущенные steps в pipeline |
61
+ | Аналитик | Ошибки в assumptions, пропущенные AC, лишние/недостающие таски |
62
+ | Декомпозиция | Неполное покрытие слоёв, неверный порядок, blocked-зависимости |
63
+ | Developer | Scope creep, пропущенные правила, lint/type gaps |
64
+ | Reviewer | Пропущенные дефекты, false positives, качество чеклиста |
65
+ | QA | Покрытие AC тестами, flakiness, пробелы в e2e планах |
66
+
67
+ **Action items** в этом блоке — на улучшение **промптов, subagents и rules** (не только кода).
68
+
69
+ ## Формат ответа
70
+
71
+ - Шапка: период, фокус, slug (если есть), допущения.
72
+ - Повестка по этапам.
73
+ - Блок **«Работа агентов»** (если применимо).
74
+ - Темы — буллеты; спорное — **вопросы команде**.
75
+ - **Action items** в конце.
76
+
77
+ ## Ограничения
78
+
79
+ - Не приписывать цитаты и факты без входа.
80
+ - Не выдавать HR‑рекомендации.
81
+ - Если просят только шаблон — **шаблон повестки** без выдуманного контента.
@@ -0,0 +1,12 @@
1
+ # `.cursor/hooks` (preset java)
2
+
3
+ | File | Purpose |
4
+ |------|---------|
5
+ | `guard-shell-command.sh` | Destructive git / JS package-manager mismatch; **does not** block `mvn test / ./gradlew test` / `compiler/IDE inspections` / `configured static analysis` / `repo static analysis` |
6
+ | `chain-team-phases.sh` | Auto-chain pipeline steps on `subagentStop` |
7
+
8
+ See root `hooks.json` for registration (`beforeShellExecution`, `subagentStop`).
9
+
10
+ ## Optional cookbook
11
+
12
+ See `hooks/examples/README.md` — secret-guard / format-edited / test-on-save. **Not** in default `hooks.json`.