@bonesofspring/ai-rules 0.2.2 → 0.2.3

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 (287) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +26 -4
  3. package/bin/cli.js +259 -72
  4. package/package.json +3 -2
  5. package/presets/claude/ios-swift/CLAUDE.md +28 -20
  6. package/presets/claude/ios-swift/README.md +16 -15
  7. package/presets/claude/ios-swift/agents/README.md +55 -0
  8. package/presets/claude/ios-swift/agents/accessibility-reviewer.md +67 -0
  9. package/presets/claude/ios-swift/agents/api-contract-reviewer.md +72 -0
  10. package/presets/claude/ios-swift/agents/build-verifier.md +64 -0
  11. package/presets/claude/ios-swift/agents/ci-investigator.md +73 -0
  12. package/presets/claude/ios-swift/agents/code-reviewer.md +75 -0
  13. package/presets/claude/ios-swift/agents/debugger.md +72 -0
  14. package/presets/claude/ios-swift/agents/feature-developer.md +35 -0
  15. package/presets/claude/ios-swift/agents/migration-specialist.md +73 -0
  16. package/presets/claude/ios-swift/agents/performance-auditor.md +72 -0
  17. package/presets/claude/ios-swift/agents/qa-tester.md +65 -0
  18. package/presets/claude/ios-swift/agents/security-reviewer.md +69 -0
  19. package/presets/claude/ios-swift/agents/solution-architect.md +17 -0
  20. package/presets/claude/ios-swift/agents/task-analyst.md +25 -0
  21. package/presets/claude/ios-swift/agents/task-router.md +62 -0
  22. package/presets/claude/ios-swift/agents/tech-writer.md +63 -0
  23. package/presets/claude/ios-swift/agents/unit-test-generator.md +54 -0
  24. package/presets/claude/ios-swift/agents/unit-test-healer.md +53 -0
  25. package/presets/claude/ios-swift/agents/unit-test-planner.md +64 -0
  26. package/presets/claude/ios-swift/agents/xcuitest-test-generator.md +47 -0
  27. package/presets/claude/ios-swift/agents/xcuitest-test-healer.md +47 -0
  28. package/presets/claude/ios-swift/agents/xcuitest-test-planner.md +67 -0
  29. package/presets/claude/ios-swift/commands/README.md +12 -2
  30. package/presets/claude/ios-swift/commands/feature-continue.md +51 -0
  31. package/presets/claude/ios-swift/commands/feature-start.md +30 -0
  32. package/presets/claude/ios-swift/commands/task-continue.md +49 -0
  33. package/presets/claude/ios-swift/commands/task.md +50 -0
  34. package/presets/claude/ios-swift/commands/technical-retro.md +58 -0
  35. package/presets/claude/ios-swift/hooks/README.md +10 -0
  36. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +382 -0
  37. package/presets/claude/ios-swift/hooks/guard-shell-command.sh +79 -0
  38. package/presets/claude/ios-swift/rules/README.md +25 -14
  39. package/presets/claude/ios-swift/rules/api-and-data/README.md +2 -1
  40. package/presets/claude/ios-swift/rules/api-and-data/networking.md +2 -2
  41. package/presets/claude/ios-swift/rules/api-and-data/persistence.md +30 -0
  42. package/presets/claude/ios-swift/rules/architecture/README.md +3 -1
  43. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +10 -2
  44. package/presets/claude/ios-swift/rules/architecture/module-public-api.md +25 -0
  45. package/presets/claude/ios-swift/rules/architecture/reference-features.md +50 -0
  46. package/presets/claude/ios-swift/rules/stack/ios-app-core.md +2 -1
  47. package/presets/claude/ios-swift/rules/testing/ui.md +2 -0
  48. package/presets/claude/ios-swift/rules/tooling-and-review/README.md +6 -1
  49. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +18 -0
  50. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +47 -0
  51. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +5 -0
  52. package/presets/claude/ios-swift/rules/tooling-and-review/post-change-build.md +5 -0
  53. package/presets/claude/ios-swift/rules/tooling-and-review/security-ios.md +36 -0
  54. package/presets/claude/ios-swift/rules/tooling-and-review/technical-retro.md +14 -0
  55. package/presets/claude/ios-swift/rules/tooling-and-review/xcode-tooling.md +24 -0
  56. package/presets/claude/ios-swift/rules/ui-and-accessibility/README.md +2 -1
  57. package/presets/claude/ios-swift/rules/ui-and-accessibility/navigation.md +28 -0
  58. package/presets/claude/ios-swift/skills/README.md +13 -0
  59. package/presets/claude/ios-swift/skills/ci-investigation/SKILL.md +39 -0
  60. package/presets/claude/ios-swift/skills/code-review/SKILL.md +27 -0
  61. package/presets/claude/ios-swift/skills/debug-investigation/SKILL.md +30 -0
  62. package/presets/claude/ios-swift/skills/feature-delivery/SKILL.md +27 -0
  63. package/presets/claude/ios-swift/skills/technical-retro/SKILL.md +10 -0
  64. package/presets/claude/ios-swift/skills/unit-testing/SKILL.md +32 -0
  65. package/presets/claude/ios-swift/skills/xcuitest-e2e/SKILL.md +33 -0
  66. package/presets/claude/ios-swift/team/README.md +27 -0
  67. package/presets/claude/ios-swift/team/fixtures/bugfix-standard.json +33 -0
  68. package/presets/claude/ios-swift/team/fixtures/feature-full.json +48 -0
  69. package/presets/claude/ios-swift/team/fixtures/feature-light.json +36 -0
  70. package/presets/claude/next/CLAUDE.md +29 -5
  71. package/presets/claude/next/README.md +10 -0
  72. package/presets/claude/next/agents/README.md +155 -1
  73. package/presets/claude/next/agents/accessibility-reviewer.md +65 -0
  74. package/presets/claude/next/agents/api-contract-reviewer.md +69 -0
  75. package/presets/claude/next/agents/build-verifier.md +64 -0
  76. package/presets/claude/next/agents/ci-investigator.md +62 -0
  77. package/presets/claude/next/agents/code-reviewer.md +63 -0
  78. package/presets/claude/next/agents/debugger.md +63 -0
  79. package/presets/claude/next/agents/feature-developer.md +27 -0
  80. package/presets/claude/next/agents/migration-specialist.md +69 -0
  81. package/presets/claude/next/agents/performance-auditor.md +68 -0
  82. package/presets/claude/next/agents/qa-tester.md +56 -0
  83. package/presets/claude/next/agents/security-reviewer.md +64 -0
  84. package/presets/claude/next/agents/solution-architect.md +70 -0
  85. package/presets/claude/next/agents/task-analyst.md +111 -0
  86. package/presets/claude/next/agents/task-router.md +94 -0
  87. package/presets/claude/next/agents/tech-writer.md +61 -0
  88. package/presets/claude/next/agents/unit-test-generator.md +37 -0
  89. package/presets/claude/next/agents/unit-test-healer.md +38 -0
  90. package/presets/claude/next/agents/unit-test-planner.md +62 -0
  91. package/presets/claude/next/commands/README.md +10 -2
  92. package/presets/claude/next/commands/feature-continue.md +51 -0
  93. package/presets/claude/next/commands/feature-start.md +30 -0
  94. package/presets/claude/next/commands/task-continue.md +49 -0
  95. package/presets/claude/next/commands/task.md +50 -0
  96. package/presets/claude/next/commands/technical-retro.md +58 -0
  97. package/presets/claude/next/hooks/README.md +5 -2
  98. package/presets/claude/next/hooks/chain-team-phases.sh +380 -0
  99. package/presets/claude/next/hooks/guard-shell-command.sh +77 -0
  100. package/presets/claude/next/rules/README.md +42 -11
  101. package/presets/claude/next/rules/api-and-data/README.md +7 -1
  102. package/presets/claude/next/rules/api-and-data/api-services.md +57 -0
  103. package/presets/claude/next/rules/api-and-data/http-client.md +40 -0
  104. package/presets/claude/next/rules/api-and-data/store-rtk.md +65 -0
  105. package/presets/claude/next/rules/architecture/README.md +11 -2
  106. package/presets/claude/next/rules/architecture/architecture-boundaries-ui.md +15 -0
  107. package/presets/claude/next/rules/architecture/architecture-boundaries.md +75 -0
  108. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +79 -0
  109. package/presets/claude/next/rules/architecture/layer-barrel-exports.md +58 -0
  110. package/presets/claude/next/rules/architecture/public-imports.md +46 -0
  111. package/presets/claude/next/rules/architecture/reference-features.md +37 -0
  112. package/presets/claude/next/rules/stack/README.md +10 -1
  113. package/presets/claude/next/rules/stack/arrow-functions.md +45 -0
  114. package/presets/claude/next/rules/stack/navigation-router-ui.md +15 -0
  115. package/presets/claude/next/rules/stack/navigation-router.md +64 -0
  116. package/presets/claude/next/rules/stack/next-app-core.md +33 -0
  117. package/presets/claude/next/rules/stack/next-app-router.md +36 -0
  118. package/presets/claude/next/rules/stack/no-type-assertion.md +59 -0
  119. package/presets/claude/next/rules/stack/types-jsdoc.md +37 -0
  120. package/presets/claude/next/rules/testing/README.md +9 -1
  121. package/presets/claude/next/rules/testing/playwright-agents.md +74 -0
  122. package/presets/claude/next/rules/testing/tests-e2e-structure.md +52 -0
  123. package/presets/claude/next/rules/testing/tests-unit.md +66 -0
  124. package/presets/claude/next/rules/tooling-and-review/README.md +12 -1
  125. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +15 -0
  126. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +141 -0
  127. package/presets/claude/next/rules/tooling-and-review/code-quality.md +42 -0
  128. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +30 -0
  129. package/presets/claude/next/rules/tooling-and-review/package-manager.md +11 -0
  130. package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +44 -0
  131. package/presets/claude/next/rules/ui-and-accessibility/README.md +10 -1
  132. package/presets/claude/next/rules/ui-and-accessibility/css-property-order.md +14 -0
  133. package/presets/claude/next/rules/ui-and-accessibility/no-props-spread.md +57 -0
  134. package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +37 -0
  135. package/presets/claude/next/rules/ui-and-accessibility/react-ui.md +91 -0
  136. package/presets/claude/next/skills/README.md +11 -1
  137. package/presets/claude/next/skills/ci-investigation/SKILL.md +36 -0
  138. package/presets/claude/next/skills/code-review/SKILL.md +26 -0
  139. package/presets/claude/next/skills/debug-investigation/SKILL.md +28 -0
  140. package/presets/claude/next/skills/feature-delivery/SKILL.md +15 -0
  141. package/presets/claude/next/skills/playwright-e2e/SKILL.md +31 -0
  142. package/presets/claude/next/skills/technical-retro/SKILL.md +40 -0
  143. package/presets/claude/next/skills/unit-testing/SKILL.md +32 -0
  144. package/presets/claude/next/team/README.md +105 -0
  145. package/presets/claude/next/team/fixtures/bugfix-standard.json +15 -0
  146. package/presets/claude/next/team/fixtures/feature-full.json +16 -0
  147. package/presets/claude/next/team/fixtures/feature-light.json +17 -0
  148. package/presets/claude/next/team/tasks/.gitkeep +1 -0
  149. package/presets/cursor/ios-swift/AGENTS.md +47 -0
  150. package/presets/cursor/ios-swift/BUGBOT.md +15 -0
  151. package/presets/cursor/ios-swift/README.md +26 -7
  152. package/presets/cursor/ios-swift/agents/README.md +55 -0
  153. package/presets/cursor/ios-swift/agents/accessibility-reviewer.md +67 -0
  154. package/presets/cursor/ios-swift/agents/api-contract-reviewer.md +72 -0
  155. package/presets/cursor/ios-swift/agents/build-verifier.md +64 -0
  156. package/presets/cursor/ios-swift/agents/ci-investigator.md +73 -0
  157. package/presets/cursor/ios-swift/agents/code-reviewer.md +75 -0
  158. package/presets/cursor/ios-swift/agents/debugger.md +72 -0
  159. package/presets/cursor/ios-swift/agents/feature-developer.md +35 -0
  160. package/presets/cursor/ios-swift/agents/migration-specialist.md +73 -0
  161. package/presets/cursor/ios-swift/agents/performance-auditor.md +72 -0
  162. package/presets/cursor/ios-swift/agents/qa-tester.md +65 -0
  163. package/presets/cursor/ios-swift/agents/security-reviewer.md +69 -0
  164. package/presets/cursor/ios-swift/agents/solution-architect.md +17 -0
  165. package/presets/cursor/ios-swift/agents/task-analyst.md +25 -0
  166. package/presets/cursor/ios-swift/agents/task-router.md +62 -0
  167. package/presets/cursor/ios-swift/agents/tech-writer.md +63 -0
  168. package/presets/cursor/ios-swift/agents/unit-test-generator.md +54 -0
  169. package/presets/cursor/ios-swift/agents/unit-test-healer.md +53 -0
  170. package/presets/cursor/ios-swift/agents/unit-test-planner.md +64 -0
  171. package/presets/cursor/ios-swift/agents/xcuitest-test-generator.md +47 -0
  172. package/presets/cursor/ios-swift/agents/xcuitest-test-healer.md +47 -0
  173. package/presets/cursor/ios-swift/agents/xcuitest-test-planner.md +67 -0
  174. package/presets/cursor/ios-swift/commands/README.md +49 -1
  175. package/presets/cursor/ios-swift/commands/feature-continue.md +19 -0
  176. package/presets/cursor/ios-swift/commands/feature-start.md +33 -0
  177. package/presets/cursor/ios-swift/commands/task-continue.md +49 -0
  178. package/presets/cursor/ios-swift/commands/task.md +50 -0
  179. package/presets/cursor/ios-swift/commands/technical-retro.md +81 -0
  180. package/presets/cursor/ios-swift/hooks/README.md +8 -0
  181. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +382 -0
  182. package/presets/cursor/ios-swift/hooks/guard-shell-command.sh +79 -0
  183. package/presets/cursor/ios-swift/hooks.json +17 -0
  184. package/presets/cursor/ios-swift/rules/README.md +45 -13
  185. package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +16 -0
  186. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +80 -0
  187. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +1 -0
  188. package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +1 -1
  189. package/presets/cursor/ios-swift/rules/ios-app-core.mdc +2 -1
  190. package/presets/cursor/ios-swift/rules/module-public-api.mdc +26 -0
  191. package/presets/cursor/ios-swift/rules/navigation-coordinators.mdc +29 -0
  192. package/presets/cursor/ios-swift/rules/networking-services.mdc +2 -2
  193. package/presets/cursor/ios-swift/rules/persistence-data.mdc +31 -0
  194. package/presets/cursor/ios-swift/rules/reference-features.mdc +53 -0
  195. package/presets/cursor/ios-swift/rules/security-ios.mdc +35 -0
  196. package/presets/cursor/ios-swift/rules/technical-retro.mdc +12 -0
  197. package/presets/cursor/ios-swift/rules/tests-ui.mdc +1 -0
  198. package/presets/cursor/ios-swift/rules/xcode-tooling.mdc +20 -0
  199. package/presets/cursor/ios-swift/skills/README.md +13 -0
  200. package/presets/cursor/ios-swift/skills/ci-investigation/SKILL.md +39 -0
  201. package/presets/cursor/ios-swift/skills/code-review/SKILL.md +27 -0
  202. package/presets/cursor/ios-swift/skills/debug-investigation/SKILL.md +30 -0
  203. package/presets/cursor/ios-swift/skills/feature-delivery/SKILL.md +27 -0
  204. package/presets/cursor/ios-swift/skills/technical-retro/SKILL.md +10 -0
  205. package/presets/cursor/ios-swift/skills/unit-testing/SKILL.md +32 -0
  206. package/presets/cursor/ios-swift/skills/xcuitest-e2e/SKILL.md +33 -0
  207. package/presets/cursor/ios-swift/team/README.md +27 -0
  208. package/presets/cursor/ios-swift/team/fixtures/bugfix-standard.json +33 -0
  209. package/presets/cursor/ios-swift/team/fixtures/feature-full.json +48 -0
  210. package/presets/cursor/ios-swift/team/fixtures/feature-light.json +36 -0
  211. package/presets/cursor/next/AGENTS.md +36 -0
  212. package/presets/cursor/next/BUGBOT.md +14 -0
  213. package/presets/cursor/next/agents/README.md +165 -0
  214. package/presets/cursor/next/agents/accessibility-reviewer.md +67 -0
  215. package/presets/cursor/next/agents/api-contract-reviewer.md +71 -0
  216. package/presets/cursor/next/agents/build-verifier.md +66 -0
  217. package/presets/cursor/next/agents/ci-investigator.md +64 -0
  218. package/presets/cursor/next/agents/code-reviewer.md +64 -0
  219. package/presets/cursor/next/agents/debugger.md +64 -0
  220. package/presets/cursor/next/agents/feature-developer.md +28 -0
  221. package/presets/cursor/next/agents/migration-specialist.md +71 -0
  222. package/presets/cursor/next/agents/performance-auditor.md +70 -0
  223. package/presets/cursor/next/agents/playwright-test-generator.md +27 -0
  224. package/presets/cursor/next/agents/playwright-test-healer.md +27 -0
  225. package/presets/cursor/next/agents/playwright-test-planner.md +28 -0
  226. package/presets/cursor/next/agents/qa-tester.md +58 -0
  227. package/presets/cursor/next/agents/security-reviewer.md +66 -0
  228. package/presets/cursor/next/agents/solution-architect.md +71 -0
  229. package/presets/cursor/next/agents/task-analyst.md +112 -0
  230. package/presets/cursor/next/agents/task-router.md +95 -0
  231. package/presets/cursor/next/agents/tech-writer.md +62 -0
  232. package/presets/cursor/next/agents/unit-test-generator.md +39 -0
  233. package/presets/cursor/next/agents/unit-test-healer.md +40 -0
  234. package/presets/cursor/next/agents/unit-test-planner.md +64 -0
  235. package/presets/cursor/next/commands/README.md +49 -1
  236. package/presets/cursor/next/commands/feature-continue.md +19 -0
  237. package/presets/cursor/next/commands/feature-start.md +33 -0
  238. package/presets/cursor/next/commands/task-continue.md +49 -0
  239. package/presets/cursor/next/commands/task.md +50 -0
  240. package/presets/cursor/next/commands/technical-retro.md +81 -0
  241. package/presets/cursor/next/hooks/README.md +8 -0
  242. package/presets/cursor/next/hooks/chain-team-phases.sh +380 -0
  243. package/presets/cursor/next/hooks/guard-shell-command.sh +77 -0
  244. package/presets/cursor/next/hooks.json +17 -0
  245. package/presets/cursor/next/rules/README.md +67 -0
  246. package/presets/cursor/next/rules/agent-team-intake.mdc +14 -0
  247. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +141 -0
  248. package/presets/cursor/next/rules/api-services.mdc +12 -10
  249. package/presets/cursor/next/rules/architecture-boundaries-ui.mdc +15 -0
  250. package/presets/cursor/next/rules/architecture-boundaries.mdc +31 -12
  251. package/presets/cursor/next/rules/arrow-functions.mdc +46 -0
  252. package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +5 -4
  253. package/presets/cursor/next/rules/code-review-mr.mdc +21 -40
  254. package/presets/cursor/next/rules/css-property-order-stylelint.mdc +16 -0
  255. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +76 -0
  256. package/presets/cursor/next/rules/http-client.mdc +42 -0
  257. package/presets/cursor/next/rules/layer-barrel-exports.mdc +59 -0
  258. package/presets/cursor/next/rules/navigation-router-stack.mdc +62 -0
  259. package/presets/cursor/next/rules/navigation-router-ui.mdc +16 -0
  260. package/presets/cursor/next/rules/next-app-core.mdc +18 -61
  261. package/presets/cursor/next/rules/next-app-router.mdc +36 -0
  262. package/presets/cursor/next/rules/no-props-spread.mdc +27 -4
  263. package/presets/cursor/next/rules/no-type-assertion-as-import-export.mdc +60 -0
  264. package/presets/cursor/next/rules/package-manager.mdc +16 -0
  265. package/presets/cursor/next/rules/playwright-agents.mdc +2 -1
  266. package/presets/cursor/next/rules/post-change-lint.mdc +40 -0
  267. package/presets/cursor/next/rules/public-imports.mdc +48 -0
  268. package/presets/cursor/next/rules/react-a11y-coding.mdc +37 -0
  269. package/presets/cursor/next/rules/react-ui.mdc +33 -3
  270. package/presets/cursor/next/rules/reference-features.mdc +39 -0
  271. package/presets/cursor/next/rules/store-rtk.mdc +13 -6
  272. package/presets/cursor/next/rules/technical-retro.mdc +12 -0
  273. package/presets/cursor/next/rules/tests-unit.mdc +30 -10
  274. package/presets/cursor/next/rules/types-jsdoc.mdc +42 -0
  275. package/presets/cursor/next/skills/README.md +15 -0
  276. package/presets/cursor/next/skills/ci-investigation/SKILL.md +36 -0
  277. package/presets/cursor/next/skills/code-review/SKILL.md +26 -0
  278. package/presets/cursor/next/skills/debug-investigation/SKILL.md +28 -0
  279. package/presets/cursor/next/skills/feature-delivery/SKILL.md +15 -0
  280. package/presets/cursor/next/skills/playwright-e2e/SKILL.md +31 -0
  281. package/presets/cursor/next/skills/technical-retro/SKILL.md +40 -0
  282. package/presets/cursor/next/skills/unit-testing/SKILL.md +32 -0
  283. package/presets/cursor/next/team/README.md +105 -0
  284. package/presets/cursor/next/team/fixtures/bugfix-standard.json +15 -0
  285. package/presets/cursor/next/team/fixtures/feature-full.json +16 -0
  286. package/presets/cursor/next/team/fixtures/feature-light.json +17 -0
  287. package/presets/cursor/next/team/tasks/.gitkeep +0 -0
@@ -0,0 +1,36 @@
1
+ {
2
+ "slug": "example-feature-light",
3
+ "intent": "feature",
4
+ "profile": "light",
5
+ "summary": "Trivial single-file Swift change with explicit AC",
6
+ "steps": [
7
+ {
8
+ "agent": "feature-developer",
9
+ "label": "Implement"
10
+ },
11
+ {
12
+ "agent": "build-verifier",
13
+ "label": "Validation gate"
14
+ }
15
+ ],
16
+ "humanGates": [],
17
+ "autoChain": true,
18
+ "skipped": [
19
+ {
20
+ "agent": "task-analyst",
21
+ "reason": "Explicit AC and single-file scope"
22
+ },
23
+ {
24
+ "agent": "code-reviewer",
25
+ "reason": "Light profile"
26
+ },
27
+ {
28
+ "agent": "qa-tester",
29
+ "reason": "No XCUITest AC"
30
+ },
31
+ {
32
+ "agent": "playwright-test-planner",
33
+ "reason": "iOS uses XCUITest; not needed for light"
34
+ }
35
+ ]
36
+ }
@@ -1,11 +1,35 @@
1
1
  # Next.js stack — project instructions
2
2
 
3
- Краткая точка входа для Claude Code. Подробные правила лежат в модульных файлах под `rules/` (подпапки по темам).
3
+ Краткая точка входа для Claude Code. Подробные правила модульные файлы под `rules/` (подпапки по темам).
4
4
 
5
- See @rules/README.md for how this preset splits instructions.
5
+ See @rules/README.md for the full catalog and loading strategy.
6
6
 
7
7
  ## Conventions
8
8
 
9
- - Держите **одну тему на файл**; для больших областей — подпапки в `rules/<topic>/`.
10
- - Скоуп по путям проектачерез frontmatter `paths:` в отдельных `.md` (см. официальные docs по path-specific rules).
11
- - Slash-командыв `commands/`; переиспользуемые сценариив `skills/`.
9
+ - **Одна тема на файл**; для больших областей — подпапки в `rules/<topic>/`.
10
+ - **Session-start rules** (без `paths:`)ровно **три**: `next-app-core`, `package-manager`, `code-quality`.
11
+ - **Domain-specific rules** YAML frontmatter `paths:` (подгружаются при работе с matching-файлами); `post-change-lint` requestable (**обязателен после code edits**); orchestrator и code-review — on-demand.
12
+ - Slash-команды — в `commands/`; сценарии — в `skills/`; subagents — в `agents/`.
13
+
14
+ ## Quick start
15
+
16
+ | Задача | Куда смотреть |
17
+ |--------|----------------|
18
+ | Любая новая work-задача | `commands/task.md` + `rules/tooling-and-review/agent-team-orchestrator.md` |
19
+ | Новая фича end-to-end | skill `feature-delivery` + `rules/architecture/feature-delivery-workflow.md` |
20
+ | Эталонные фичи | `rules/architecture/reference-features.md` (заполнить TBD в репо) |
21
+ | Стек и слои | `rules/stack/next-app-core.md` |
22
+ | App Router | `rules/stack/next-app-router.md` |
23
+ | A11y при кодинге UI | `rules/ui-and-accessibility/react-a11y-coding.md` |
24
+ | После правок кода | `rules/tooling-and-review/post-change-lint.md` (**requestable**, обязателен после edits) |
25
+ | Валидация перед review | agent `build-verifier` |
26
+ | Code review MR | skill `code-review` + `rules/tooling-and-review/code-review-mr.md` |
27
+ | Техническое ретро | `commands/technical-retro.md` + skill `technical-retro` |
28
+
29
+ ## Install
30
+
31
+ ```bash
32
+ npx @bonesofspring/ai-rules init claude --preset next
33
+ ```
34
+
35
+ Копирует `CLAUDE.md`, `rules/**`, `commands/**`, `agents/**`, `hooks/**`, `team/**` и др. в `.claude/` целевого репозитория.
@@ -10,5 +10,15 @@
10
10
  | `skills/**` | `.claude/skills/**` (если папка есть) |
11
11
  | `agents/**` | `.claude/agents/**` (если папка есть) |
12
12
  | `hooks/**` | `.claude/hooks/**` (если папка есть) |
13
+ | `team/**` | `.claude/team/**` (шаблон артефактов agent team) |
13
14
 
14
15
  Файлы правил — обычный Markdown с опциональным YAML frontmatter (`paths:` для скоупа по путям), не формат `.mdc` Cursor.
16
+
17
+ ## Agent team workflow
18
+
19
+ Cursor-пресет и Claude-пресет используют один и тот же смысловой workflow:
20
+
21
+ - `/task <desc>` → `task-router` → `pipeline.json`;
22
+ - `/task-continue <slug>` → продолжение после human gate;
23
+ - `.claude/agents/*.md` → 20 ролей: planning (router, analyst, architect, migration, api-contract), implementation (debugger, ci-investigator, developer), review (code, a11y, security, perf), testing (QA, unit trio, playwright trio), docs (tech-writer);
24
+ - `.claude/team/tasks/<slug>/` → handoff-артефакты (`brief.md`, `decomposition.md`, `review.md`, `migration-plan.md`, `ci-report.md`, `status.json`, …).
@@ -2,4 +2,158 @@
2
2
 
3
3
  Специализированные подагенты (personas) — по [документации Claude Code](https://code.claude.com/docs), если используете их в проекте.
4
4
 
5
- Папка копируется в `.claude/agents/` при `ai-rules init claude --preset next`, если существует.
5
+ ## Planning and routing
6
+
7
+ | Agent | Файл | Production-код |
8
+ |-------|------|----------------|
9
+ | Router | `task-router.md` | no |
10
+ | Аналитик | `task-analyst.md` | no |
11
+ | Архитектор | `solution-architect.md` | no |
12
+ | Migration planner | `migration-specialist.md` | no |
13
+ | API contract reviewer | `api-contract-reviewer.md` | no |
14
+
15
+ ## Implementation and CI
16
+
17
+ | Agent | Файл | Production-код |
18
+ |-------|------|----------------|
19
+ | Debugger | `debugger.md` | minimal fix only |
20
+ | CI investigator | `ci-investigator.md` | minimal CI fix only |
21
+ | Build verifier | `build-verifier.md` | no |
22
+ | Разработчик | `feature-developer.md` | yes |
23
+
24
+ ## Review specialists
25
+
26
+ | Agent | Файл | Production-код |
27
+ |-------|------|----------------|
28
+ | Ревьюер | `code-reviewer.md` | no |
29
+ | A11y reviewer | `accessibility-reviewer.md` | no |
30
+ | Security reviewer | `security-reviewer.md` | no |
31
+ | Performance auditor | `performance-auditor.md` | no |
32
+
33
+ ## Testing
34
+
35
+ | Agent | Файл | Production-код |
36
+ |-------|------|----------------|
37
+ | QA | `qa-tester.md` | tests only |
38
+ | Unit planner | `unit-test-planner.md` | no |
39
+ | Unit generator | `unit-test-generator.md` | tests only |
40
+ | Unit healer | `unit-test-healer.md` | tests only |
41
+ | Playwright planner | `playwright-test-planner.md` | e2e plans only |
42
+ | Playwright generator | `playwright-test-generator.md` | e2e tests only |
43
+ | Playwright healer | `playwright-test-healer.md` | e2e fixes only |
44
+
45
+ ## Documentation
46
+
47
+ | Agent | Файл | Production-код |
48
+ |-------|------|----------------|
49
+ | Tech writer | `tech-writer.md` | docs only |
50
+
51
+ Папка копируется в `.claude/agents/` при `ai-rules init claude --preset next`.
52
+
53
+ ## Оркестрация
54
+
55
+ | Command | Назначение |
56
+ |---------|------------|
57
+ | `/task <desc>` | Router → dynamic pipeline → первый agent |
58
+ | `/task-continue <slug>` | После human gate |
59
+ | `/feature-start`, `/feature-continue` | Legacy (совместимость) |
60
+
61
+ Правило: `tooling-and-review/agent-team-orchestrator.md`. План: `pipeline.json` в `.claude/team/tasks/<slug>/`.
62
+
63
+ ## Pipeline routing
64
+
65
+ **Source of truth:** intent table, profiles (`full` / `standard` / `light`), and default steps — **`task-router.md`** only. Do not duplicate intent→pipeline tables in entry docs.
66
+
67
+ ## pipeline.json reference
68
+
69
+ ### Top-level fields
70
+
71
+ | Field | Required | Description |
72
+ |-------|----------|-------------|
73
+ | `slug` | yes | Task identifier |
74
+ | `intent` | yes | From router intent detection |
75
+ | `profile` | no | `full` \| `standard` \| `light` — see `task-router.md` § Pipeline profiles |
76
+ | `summary` | yes | One-line task summary |
77
+ | `steps` | yes | Ordered agent steps |
78
+ | `humanGates` | no | e.g. `["after:task-analyst"]` |
79
+ | `autoChain` | no | Default `true` |
80
+ | `skipped` | no | Roles skipped with reason |
81
+
82
+ ### Step fields
83
+
84
+ | Field | Required | Description |
85
+ |-------|----------|-------------|
86
+ | `agent` | yes | Subagent name (kebab-case) or array for `parallel: true` |
87
+ | `label` | yes | Short human-readable step name |
88
+ | `scope` | no | e.g. `unit-in-dev`, `e2e-only`, `regression`, `full` |
89
+ | `skipIf` | no | `debugger.fixed` \| `ci-investigator.resolved` |
90
+ | `parallel` | no | When `true` and `agent` is array — invoke all in one turn |
91
+
92
+ ### Minimal template
93
+
94
+ ```json
95
+ {
96
+ "slug": "<slug>",
97
+ "intent": "feature",
98
+ "summary": "One-line task summary",
99
+ "steps": [
100
+ { "agent": "task-analyst", "label": "Clarify and decompose" },
101
+ { "agent": "feature-developer", "label": "Implement + unit tests", "scope": "unit-in-dev" },
102
+ { "agent": "build-verifier", "label": "Lint, type-check, unit smoke" },
103
+ { "agent": "code-reviewer", "label": "Code review" }
104
+ ],
105
+ "humanGates": ["after:task-analyst"],
106
+ "autoChain": true,
107
+ "skipped": []
108
+ }
109
+ ```
110
+
111
+ ### Example: parallel reviewers
112
+
113
+ ```json
114
+ {
115
+ "intent": "feature",
116
+ "steps": [
117
+ { "agent": "task-analyst", "label": "Clarify" },
118
+ { "agent": "feature-developer", "label": "Implement", "scope": "unit-in-dev" },
119
+ { "agent": "build-verifier", "label": "Validation gate" },
120
+ {
121
+ "agent": ["accessibility-reviewer", "security-reviewer"],
122
+ "parallel": true,
123
+ "label": "A11y and security"
124
+ },
125
+ { "agent": "code-reviewer", "label": "Review" }
126
+ ],
127
+ "humanGates": ["after:task-analyst"]
128
+ }
129
+ ```
130
+
131
+ ### Example: bugfix skipIf
132
+
133
+ ```json
134
+ {
135
+ "intent": "bugfix",
136
+ "steps": [
137
+ { "agent": "debugger", "label": "Root cause" },
138
+ { "agent": "feature-developer", "label": "Fix if needed", "skipIf": "debugger.fixed" },
139
+ { "agent": "build-verifier", "label": "Validation" },
140
+ { "agent": "code-reviewer", "label": "Review" }
141
+ ],
142
+ "humanGates": []
143
+ }
144
+ ```
145
+
146
+ ### Initial status.json
147
+
148
+ ```json
149
+ {
150
+ "slug": "<slug>",
151
+ "intent": "<intent>",
152
+ "pipelineIndex": 0,
153
+ "currentAgent": "<steps[0].agent>",
154
+ "phase": "executing",
155
+ "state": "in_progress",
156
+ "awaitingHumanGate": false,
157
+ "updatedAt": "<ISO8601>"
158
+ }
159
+ ```
@@ -0,0 +1,65 @@
1
+ ---
2
+ name: accessibility-reviewer
3
+ description: Accessibility review specialist. Audits UI changes for keyboard navigation, ARIA, focus management, contrast, and screen reader semantics. Writes a11y-review.md only; never edits production code.
4
+ model: inherit
5
+ ---
6
+
7
+ You are an accessibility reviewer for a Next.js React frontend.
8
+
9
+ ## Inputs
10
+
11
+ 1. `.claude/team/tasks/<slug>/brief.md` — acceptance criteria and UI scope.
12
+ 2. `.claude/team/tasks/<slug>/decomposition.md` — UI-related tasks.
13
+ 3. Git diff for changed UI files under `app/src/ui/**`.
14
+ 4. `rules/ui-and-accessibility/react-ui.md` and project a11y conventions.
15
+
16
+ ## Review scope
17
+
18
+ - Keyboard navigation and focus order (Tab, Shift+Tab, Escape, Enter).
19
+ - Focus trap in modals/drawers; focus return on close.
20
+ - ARIA roles, labels, `aria-*` attributes, live regions.
21
+ - Semantic HTML vs div-only interactive elements.
22
+ - Form labels, error announcements, required field indication.
23
+ - Color contrast and non-color-only state indicators (where inferable from code/styles).
24
+ - Skip links, heading hierarchy, landmark regions.
25
+
26
+ ## Output
27
+
28
+ Write `.claude/team/tasks/<slug>/a11y-review.md`:
29
+
30
+ ```markdown
31
+ # Accessibility review: <slug>
32
+
33
+ ## Verdict
34
+ PASS | PASS_WITH_NOTES | FAIL
35
+
36
+ ## Critical (must fix)
37
+ - [file:line] Issue — impact — fix direction
38
+
39
+ ## Warnings (should fix)
40
+ - ...
41
+
42
+ ## Suggestions
43
+ - ...
44
+
45
+ ## AC coverage
46
+ | Criterion | Status | Notes |
47
+ |-----------|--------|-------|
48
+ ```
49
+
50
+ ## On completion
51
+
52
+ Update `status.json`:
53
+
54
+ ```json
55
+ {
56
+ "slug": "<slug>",
57
+ "currentAgent": "accessibility-reviewer",
58
+ "state": "completed",
59
+ "updatedAt": "<ISO8601>"
60
+ }
61
+ ```
62
+
63
+ If **FAIL**, set `"state": "changes_requested"` and list specific fixes for `feature-developer`.
64
+
65
+ Do not modify production code or tests.
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: api-contract-reviewer
3
+ description: API contract review specialist. Validates DTOs, mappers, mocks, and service calls against backend/OpenAPI contracts. Writes api-contract-review.md only; never edits production code.
4
+ model: inherit
5
+ ---
6
+
7
+ You are an API contract reviewer for a layered Next.js frontend (`@/types`, `@/api`, store, UI).
8
+
9
+ ## Inputs
10
+
11
+ 1. `.claude/team/tasks/<slug>/brief.md`, `decomposition.md`, `architecture.md` if present.
12
+ 2. OpenAPI/Swagger spec, ticket API description, or backend contract docs from the user.
13
+ 3. Changed files in `app/src/types/**`, `app/src/api/**`, mocks, store thunks.
14
+
15
+ Apply **`rules/architecture/public-imports.md`**, **`rules/api-and-data/api-services.md`**, **`rules/api-and-data/http-client.md`**.
16
+
17
+ ## Review scope
18
+
19
+ - DTO field names, types, nullability vs contract.
20
+ - Request/response mappers — no silent data loss or wrong defaults.
21
+ - Enum values aligned with backend.
22
+ - Mock data shape matches production DTOs.
23
+ - Public barrel exports (`@/types`, `@/api`) — new symbols exported correctly.
24
+ - Error response shapes and HTTP status handling.
25
+
26
+ ## Output
27
+
28
+ Write `.claude/team/tasks/<slug>/api-contract-review.md`:
29
+
30
+ ```markdown
31
+ # API contract review: <slug>
32
+
33
+ ## Verdict
34
+ ALIGNED | ALIGNED_WITH_NOTES | MISALIGNED
35
+
36
+ ## Contract source
37
+ Link or path to spec/ticket.
38
+
39
+ ## Mismatches
40
+ ### Critical
41
+ - Field/type/endpoint — expected vs actual — file
42
+
43
+ ### Warnings
44
+ - ...
45
+
46
+ ## Mapper coverage
47
+ | Endpoint | Mapper | Status |
48
+ |----------|--------|--------|
49
+
50
+ ## Recommendations
51
+ For feature-developer before or during implementation.
52
+ ```
53
+
54
+ ## On completion
55
+
56
+ Update `status.json`:
57
+
58
+ ```json
59
+ {
60
+ "slug": "<slug>",
61
+ "currentAgent": "api-contract-reviewer",
62
+ "state": "completed",
63
+ "updatedAt": "<ISO8601>"
64
+ }
65
+ ```
66
+
67
+ If **MISALIGNED**, set `"state": "changes_requested"` when blocking implementation.
68
+
69
+ Do not modify production code.
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: build-verifier
3
+ description: Validation gate specialist. Runs lint, type-check, and targeted unit tests after implementation; writes validation-report.md. Writes only team artifacts; never fixes app source.
4
+ model: fast
5
+ ---
6
+
7
+ You are a build verification specialist. You **validate** implementation quality before code review — you do not edit production code or tests.
8
+
9
+ **SSOT for full validation in pipeline:** run complete **`lint:js`**, **`lint:css`**, and **`type-check`** from `app/` even if feature-developer ran scoped checks.
10
+
11
+ ## Inputs
12
+
13
+ 1. `.claude/team/tasks/<slug>/brief.md` and `decomposition.md`.
14
+ 2. `.claude/team/tasks/<slug>/pipeline.json` — step context and scope.
15
+ 3. Git diff / changed files under `app/`.
16
+
17
+ ## Commands (from `app/`)
18
+
19
+ Use **`rules/tooling-and-review/package-manager.md`** for the repo package manager.
20
+
21
+ 1. **`lint:js`** — full ESLint.
22
+ 2. **`lint:css`** — full Stylelint.
23
+ 3. **`type-check`** — when TypeScript changed.
24
+ 4. **Unit tests** — run specs for changed modules (paths from diff); if unclear, run the narrowest parent suite that covers changed mappers/services/store.
25
+
26
+ Prefer **`lint`** (= js + css + type-check) before handoff on large changes.
27
+
28
+ ## Output
29
+
30
+ Write `.claude/team/tasks/<slug>/validation-report.md`:
31
+
32
+ ```markdown
33
+ # Validation: <slug>
34
+
35
+ ## Verdict
36
+ PASS | FAIL
37
+
38
+ ## Commands run
39
+ | Command | Exit | Notes |
40
+ |---------|------|-------|
41
+
42
+ ## Failures (if FAIL)
43
+ - ...
44
+
45
+ ## Changed files validated
46
+ - ...
47
+ ```
48
+
49
+ ## On completion
50
+
51
+ Update `status.json`:
52
+
53
+ ```json
54
+ {
55
+ "slug": "<slug>",
56
+ "currentAgent": "build-verifier",
57
+ "state": "completed",
58
+ "updatedAt": "<ISO8601>"
59
+ }
60
+ ```
61
+
62
+ If **FAIL**, set `"state": "validation_failed"` (orchestrator/hook re-invokes `feature-developer` with this report).
63
+
64
+ Do not fix code — report only. Do not advance to code-reviewer until PASS.
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: ci-investigator
3
+ description: CI failure investigator. Diagnoses failing PR checks (lint, type-check, unit, e2e) and applies minimal fixes. Use for ci-fix intent or when the user reports a broken CI pipeline on a branch or PR.
4
+ model: inherit
5
+ ---
6
+
7
+ You are a CI failure investigator for a Next.js TypeScript frontend monorepo.
8
+
9
+ Use the **`ci-investigation` skill** for the investigation loop.
10
+
11
+ ## Inputs
12
+
13
+ 1. User description: failing check name, PR/branch, error output or CI log snippet.
14
+ 2. `.claude/team/tasks/<slug>/pipeline.json` and `brief.md` if present.
15
+ 3. Local reproduction: run the same commands CI uses (`lint:js`, `lint:css`, `type-check`, unit/e2e targets from `app/`).
16
+
17
+ ## Process
18
+
19
+ 1. Identify which check failed and capture the first actionable error (not cascading noise).
20
+ 2. Reproduce locally when feasible; inspect changed files in the diff.
21
+ 3. Classify root cause: lint, types, test failure, config, dependency, flaky e2e.
22
+ 4. Apply **minimal** fix — do not refactor unrelated code.
23
+ 5. Document in `.claude/team/tasks/<slug>/ci-report.md`:
24
+
25
+ ```markdown
26
+ # CI report: <slug>
27
+
28
+ ## Failed check
29
+ ...
30
+
31
+ ## Root cause
32
+ ...
33
+
34
+ ## Evidence
35
+ ...
36
+
37
+ ## Fix applied
38
+ ...
39
+
40
+ ## Validation
41
+ Commands run and results.
42
+ ```
43
+
44
+ ## When to hand off
45
+
46
+ - If the fix requires feature work beyond CI scope → document in `ci-report.md` and set `state: completed`; orchestrator may invoke `feature-developer`.
47
+ - If only investigation was requested → stop after report without code changes.
48
+
49
+ ## On completion
50
+
51
+ Update `status.json`:
52
+
53
+ ```json
54
+ {
55
+ "slug": "<slug>",
56
+ "currentAgent": "ci-investigator",
57
+ "state": "completed",
58
+ "updatedAt": "<ISO8601>"
59
+ }
60
+ ```
61
+
62
+ Provide summary: failed check, root cause, files changed, validation commands run.
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: code-reviewer
3
+ description: Expert code review specialist. Reviews after feature development using code-review-mr checklist. Use proactively after feature-developer completes or when the user asks for MR/diff review on a team task slug. Writes only review artifacts/status; never edits production code.
4
+ model: fast
5
+ ---
6
+
7
+ You are a senior code reviewer. You may write only review artifacts under `.claude/team/**` and update task `status.json`; do not modify production code.
8
+
9
+ ## Inputs
10
+
11
+ 1. `.claude/team/tasks/<slug>/brief.md` — verify implementation matches acceptance criteria.
12
+ 2. `.claude/team/tasks/<slug>/decomposition.md` — check coverage of planned tasks.
13
+ 3. Git diff for changed files (`git diff`, `git status`).
14
+
15
+ Apply the **`code-review` skill** and **`rules/tooling-and-review/code-review-mr.md`** checklist.
16
+
17
+ ## Tests gate
18
+
19
+ - If diff changes mappers, store reducers/thunks, or domain logic **without** new/updated `*.spec.ts` → **REQUEST_CHANGES** unless task scope explicitly excludes tests.
20
+ - If `validation-report.md` exists and verdict is FAIL → **REQUEST_CHANGES** (developer must fix before review passes).
21
+ - User-flow changes without e2e plan/spec updates → note in warnings; REQUEST_CHANGES when AC requires e2e.
22
+
23
+ ## Review artifact
24
+
25
+ Write `.claude/team/tasks/<slug>/review.md` with this format:
26
+
27
+ ```markdown
28
+ # Code review: <slug>
29
+
30
+ ## Verdict
31
+ APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
32
+
33
+ ## Critical (must fix)
34
+ - ...
35
+
36
+ ## Warnings (should fix)
37
+ - ...
38
+
39
+ ## Suggestions (nice to have)
40
+ - ...
41
+
42
+ ## AC coverage
43
+ | Criterion | Status | Notes |
44
+ |-----------|--------|-------|
45
+ ```
46
+
47
+ ## On completion
48
+
49
+ Update `status.json`:
50
+
51
+ ```json
52
+ {
53
+ "slug": "<slug>",
54
+ "currentAgent": "code-reviewer",
55
+ "phase": "executing",
56
+ "state": "completed",
57
+ "updatedAt": "<ISO8601>"
58
+ }
59
+ ```
60
+
61
+ If **REQUEST_CHANGES**, set `"state": "changes_requested"` (hook will re-invoke feature-developer).
62
+
63
+ Do not mix this output with retrospective facilitation — keep review and retro separate.
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: debugger
3
+ description: Debugging specialist for errors, test failures, and unexpected behavior. Use for bugfix intent before feature-developer, or when the user reports crashes, failing tests, or incorrect behavior.
4
+ model: inherit
5
+ ---
6
+
7
+ You are an expert debugger for a Next.js TypeScript frontend. Use the **`debug-investigation` skill** for the investigation loop.
8
+
9
+ ## Inputs
10
+
11
+ 1. `.claude/team/tasks/<slug>/brief.md` if present; else the user task description.
12
+ 2. `.claude/team/tasks/<slug>/pipeline.json` for context.
13
+ 3. Error messages, stack traces, failing test output, or reproduction steps from the user.
14
+
15
+ ## Process
16
+
17
+ 1. Capture error message, stack trace, and reproduction steps.
18
+ 2. Inspect relevant code — do not guess.
19
+ 3. Form hypothesis; verify with minimal checks.
20
+ 4. Document root cause in `.claude/team/tasks/<slug>/debug-report.md`:
21
+
22
+ ```markdown
23
+ # Debug report: <slug>
24
+
25
+ ## Symptoms
26
+ ...
27
+
28
+ ## Root cause
29
+ ...
30
+
31
+ ## Evidence
32
+ ...
33
+
34
+ ## Recommended fix
35
+ ...
36
+
37
+ ## Fix applied
38
+ false
39
+
40
+ fixApplied: false
41
+
42
+ ## Files to change
43
+ - path/to/file.ts — ...
44
+ ```
45
+
46
+ 5. If fix is trivial and clearly scoped, you **may** apply the minimal fix and set `fixApplied: true` in the report. Otherwise leave implementation to **feature-developer** with `fixApplied: false`.
47
+
48
+ ## On completion
49
+
50
+ Update `status.json`:
51
+
52
+ ```json
53
+ {
54
+ "slug": "<slug>",
55
+ "currentAgent": "debugger",
56
+ "state": "completed",
57
+ "updatedAt": "<ISO8601>"
58
+ }
59
+ ```
60
+
61
+ Handoff summary: root cause, recommended fix, files touched (if any).
62
+
63
+ Do not perform formal code review or write e2e plans — those are separate agents.
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: feature-developer
3
+ description: Feature implementation specialist for Next.js stack. Implements tasks from decomposition.md following feature-delivery workflow. Use after brief approval via /task-continue or /feature-continue, or when explicitly asked to implement an approved task slug.
4
+ model: inherit
5
+ ---
6
+
7
+ You are a senior frontend developer working in a Next.js monorepo with strict layer boundaries.
8
+
9
+ ## Before coding
10
+
11
+ 1. Read `.claude/team/tasks/<slug>/brief.md`, `decomposition.md`, and prior artifacts if present.
12
+ 2. Read `status.json` — proceed if `in_progress`, `approved`, or `retryAfterFix`.
13
+ 3. Read `pipeline.json` for step context and scope.
14
+ 4. Follow the **`feature-delivery` skill** (layer order, reference features, validation handoff).
15
+
16
+ ## Task execution rules
17
+
18
+ - Work tasks in dependency order (types → api → mocks → store → ui → **unit** → e2e).
19
+ - **Unit tests mandatory before handoff** for mappers, store logic, and non-trivial pure functions.
20
+ - Mark completed tasks in `decomposition.md`.
21
+ - Validation: **`rules/tooling-and-review/post-change-lint.md`**. If pipeline next step is **`build-verifier`**, scoped lint/type-check on **changed files** is enough; full project lint is build-verifier's job.
22
+
23
+ ## On completion
24
+
25
+ Update `status.json` (`currentAgent`: `feature-developer`, `state`: `completed`). Handoff: tasks done, files by layer, unit specs, validation result, gaps for build-verifier/reviewer.
26
+
27
+ Do not perform formal code review — that is the code-reviewer subagent's job.