@bonesofspring/ai-rules 0.2.2 → 0.2.4

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 (295) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +27 -4
  3. package/bin/cli.js +285 -72
  4. package/package.json +3 -2
  5. package/presets/claude/ios-swift/CLAUDE.md +28 -20
  6. package/presets/claude/ios-swift/MCP.md +14 -0
  7. package/presets/claude/ios-swift/README.md +18 -15
  8. package/presets/claude/ios-swift/agents/README.md +55 -0
  9. package/presets/claude/ios-swift/agents/accessibility-reviewer.md +67 -0
  10. package/presets/claude/ios-swift/agents/api-contract-reviewer.md +72 -0
  11. package/presets/claude/ios-swift/agents/build-verifier.md +64 -0
  12. package/presets/claude/ios-swift/agents/ci-investigator.md +73 -0
  13. package/presets/claude/ios-swift/agents/code-reviewer.md +75 -0
  14. package/presets/claude/ios-swift/agents/debugger.md +72 -0
  15. package/presets/claude/ios-swift/agents/feature-developer.md +35 -0
  16. package/presets/claude/ios-swift/agents/migration-specialist.md +73 -0
  17. package/presets/claude/ios-swift/agents/performance-auditor.md +72 -0
  18. package/presets/claude/ios-swift/agents/qa-tester.md +65 -0
  19. package/presets/claude/ios-swift/agents/security-reviewer.md +69 -0
  20. package/presets/claude/ios-swift/agents/solution-architect.md +17 -0
  21. package/presets/claude/ios-swift/agents/task-analyst.md +25 -0
  22. package/presets/claude/ios-swift/agents/task-router.md +62 -0
  23. package/presets/claude/ios-swift/agents/tech-writer.md +63 -0
  24. package/presets/claude/ios-swift/agents/unit-test-generator.md +54 -0
  25. package/presets/claude/ios-swift/agents/unit-test-healer.md +53 -0
  26. package/presets/claude/ios-swift/agents/unit-test-planner.md +64 -0
  27. package/presets/claude/ios-swift/agents/xcuitest-test-generator.md +47 -0
  28. package/presets/claude/ios-swift/agents/xcuitest-test-healer.md +47 -0
  29. package/presets/claude/ios-swift/agents/xcuitest-test-planner.md +67 -0
  30. package/presets/claude/ios-swift/commands/README.md +12 -2
  31. package/presets/claude/ios-swift/commands/feature-continue.md +51 -0
  32. package/presets/claude/ios-swift/commands/feature-start.md +30 -0
  33. package/presets/claude/ios-swift/commands/task-continue.md +49 -0
  34. package/presets/claude/ios-swift/commands/task.md +50 -0
  35. package/presets/claude/ios-swift/commands/technical-retro.md +58 -0
  36. package/presets/claude/ios-swift/hooks/README.md +10 -0
  37. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +382 -0
  38. package/presets/claude/ios-swift/hooks/guard-shell-command.sh +79 -0
  39. package/presets/claude/ios-swift/mcp.json +12 -0
  40. package/presets/claude/ios-swift/rules/README.md +25 -14
  41. package/presets/claude/ios-swift/rules/api-and-data/README.md +2 -1
  42. package/presets/claude/ios-swift/rules/api-and-data/networking.md +2 -2
  43. package/presets/claude/ios-swift/rules/api-and-data/persistence.md +30 -0
  44. package/presets/claude/ios-swift/rules/architecture/README.md +3 -1
  45. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +10 -2
  46. package/presets/claude/ios-swift/rules/architecture/module-public-api.md +25 -0
  47. package/presets/claude/ios-swift/rules/architecture/reference-features.md +50 -0
  48. package/presets/claude/ios-swift/rules/stack/ios-app-core.md +2 -1
  49. package/presets/claude/ios-swift/rules/testing/ui.md +2 -0
  50. package/presets/claude/ios-swift/rules/tooling-and-review/README.md +6 -1
  51. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +18 -0
  52. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +47 -0
  53. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +5 -0
  54. package/presets/claude/ios-swift/rules/tooling-and-review/post-change-build.md +5 -0
  55. package/presets/claude/ios-swift/rules/tooling-and-review/security-ios.md +36 -0
  56. package/presets/claude/ios-swift/rules/tooling-and-review/technical-retro.md +14 -0
  57. package/presets/claude/ios-swift/rules/tooling-and-review/xcode-tooling.md +24 -0
  58. package/presets/claude/ios-swift/rules/ui-and-accessibility/README.md +2 -1
  59. package/presets/claude/ios-swift/rules/ui-and-accessibility/navigation.md +28 -0
  60. package/presets/claude/ios-swift/skills/README.md +13 -0
  61. package/presets/claude/ios-swift/skills/ci-investigation/SKILL.md +39 -0
  62. package/presets/claude/ios-swift/skills/code-review/SKILL.md +27 -0
  63. package/presets/claude/ios-swift/skills/debug-investigation/SKILL.md +30 -0
  64. package/presets/claude/ios-swift/skills/feature-delivery/SKILL.md +27 -0
  65. package/presets/claude/ios-swift/skills/technical-retro/SKILL.md +10 -0
  66. package/presets/claude/ios-swift/skills/unit-testing/SKILL.md +32 -0
  67. package/presets/claude/ios-swift/skills/xcuitest-e2e/SKILL.md +33 -0
  68. package/presets/claude/ios-swift/team/README.md +27 -0
  69. package/presets/claude/ios-swift/team/fixtures/bugfix-standard.json +33 -0
  70. package/presets/claude/ios-swift/team/fixtures/feature-full.json +48 -0
  71. package/presets/claude/ios-swift/team/fixtures/feature-light.json +36 -0
  72. package/presets/claude/next/CLAUDE.md +29 -5
  73. package/presets/claude/next/MCP.md +16 -0
  74. package/presets/claude/next/README.md +12 -0
  75. package/presets/claude/next/agents/README.md +155 -1
  76. package/presets/claude/next/agents/accessibility-reviewer.md +65 -0
  77. package/presets/claude/next/agents/api-contract-reviewer.md +69 -0
  78. package/presets/claude/next/agents/build-verifier.md +64 -0
  79. package/presets/claude/next/agents/ci-investigator.md +62 -0
  80. package/presets/claude/next/agents/code-reviewer.md +63 -0
  81. package/presets/claude/next/agents/debugger.md +63 -0
  82. package/presets/claude/next/agents/feature-developer.md +27 -0
  83. package/presets/claude/next/agents/migration-specialist.md +69 -0
  84. package/presets/claude/next/agents/performance-auditor.md +68 -0
  85. package/presets/claude/next/agents/qa-tester.md +56 -0
  86. package/presets/claude/next/agents/security-reviewer.md +64 -0
  87. package/presets/claude/next/agents/solution-architect.md +70 -0
  88. package/presets/claude/next/agents/task-analyst.md +111 -0
  89. package/presets/claude/next/agents/task-router.md +94 -0
  90. package/presets/claude/next/agents/tech-writer.md +61 -0
  91. package/presets/claude/next/agents/unit-test-generator.md +37 -0
  92. package/presets/claude/next/agents/unit-test-healer.md +38 -0
  93. package/presets/claude/next/agents/unit-test-planner.md +62 -0
  94. package/presets/claude/next/commands/README.md +10 -2
  95. package/presets/claude/next/commands/feature-continue.md +51 -0
  96. package/presets/claude/next/commands/feature-start.md +30 -0
  97. package/presets/claude/next/commands/task-continue.md +49 -0
  98. package/presets/claude/next/commands/task.md +50 -0
  99. package/presets/claude/next/commands/technical-retro.md +58 -0
  100. package/presets/claude/next/hooks/README.md +5 -2
  101. package/presets/claude/next/hooks/chain-team-phases.sh +380 -0
  102. package/presets/claude/next/hooks/guard-shell-command.sh +77 -0
  103. package/presets/claude/next/mcp.json +20 -0
  104. package/presets/claude/next/rules/README.md +42 -11
  105. package/presets/claude/next/rules/api-and-data/README.md +7 -1
  106. package/presets/claude/next/rules/api-and-data/api-services.md +57 -0
  107. package/presets/claude/next/rules/api-and-data/http-client.md +40 -0
  108. package/presets/claude/next/rules/api-and-data/store-rtk.md +65 -0
  109. package/presets/claude/next/rules/architecture/README.md +11 -2
  110. package/presets/claude/next/rules/architecture/architecture-boundaries-ui.md +15 -0
  111. package/presets/claude/next/rules/architecture/architecture-boundaries.md +75 -0
  112. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +79 -0
  113. package/presets/claude/next/rules/architecture/layer-barrel-exports.md +58 -0
  114. package/presets/claude/next/rules/architecture/public-imports.md +46 -0
  115. package/presets/claude/next/rules/architecture/reference-features.md +37 -0
  116. package/presets/claude/next/rules/stack/README.md +10 -1
  117. package/presets/claude/next/rules/stack/arrow-functions.md +45 -0
  118. package/presets/claude/next/rules/stack/navigation-router-ui.md +15 -0
  119. package/presets/claude/next/rules/stack/navigation-router.md +64 -0
  120. package/presets/claude/next/rules/stack/next-app-core.md +33 -0
  121. package/presets/claude/next/rules/stack/next-app-router.md +36 -0
  122. package/presets/claude/next/rules/stack/no-type-assertion.md +59 -0
  123. package/presets/claude/next/rules/stack/types-jsdoc.md +37 -0
  124. package/presets/claude/next/rules/testing/README.md +9 -1
  125. package/presets/claude/next/rules/testing/playwright-agents.md +74 -0
  126. package/presets/claude/next/rules/testing/tests-e2e-structure.md +52 -0
  127. package/presets/claude/next/rules/testing/tests-unit.md +66 -0
  128. package/presets/claude/next/rules/tooling-and-review/README.md +12 -1
  129. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +15 -0
  130. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +145 -0
  131. package/presets/claude/next/rules/tooling-and-review/code-quality.md +42 -0
  132. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +30 -0
  133. package/presets/claude/next/rules/tooling-and-review/package-manager.md +11 -0
  134. package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +44 -0
  135. package/presets/claude/next/rules/ui-and-accessibility/README.md +10 -1
  136. package/presets/claude/next/rules/ui-and-accessibility/css-property-order.md +14 -0
  137. package/presets/claude/next/rules/ui-and-accessibility/no-props-spread.md +57 -0
  138. package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +37 -0
  139. package/presets/claude/next/rules/ui-and-accessibility/react-ui.md +91 -0
  140. package/presets/claude/next/skills/README.md +11 -1
  141. package/presets/claude/next/skills/ci-investigation/SKILL.md +36 -0
  142. package/presets/claude/next/skills/code-review/SKILL.md +26 -0
  143. package/presets/claude/next/skills/debug-investigation/SKILL.md +28 -0
  144. package/presets/claude/next/skills/feature-delivery/SKILL.md +15 -0
  145. package/presets/claude/next/skills/playwright-e2e/SKILL.md +31 -0
  146. package/presets/claude/next/skills/technical-retro/SKILL.md +40 -0
  147. package/presets/claude/next/skills/unit-testing/SKILL.md +32 -0
  148. package/presets/claude/next/team/README.md +105 -0
  149. package/presets/claude/next/team/fixtures/bugfix-standard.json +15 -0
  150. package/presets/claude/next/team/fixtures/feature-full.json +16 -0
  151. package/presets/claude/next/team/fixtures/feature-light.json +17 -0
  152. package/presets/claude/next/team/tasks/.gitkeep +1 -0
  153. package/presets/cursor/ios-swift/AGENTS.md +47 -0
  154. package/presets/cursor/ios-swift/BUGBOT.md +15 -0
  155. package/presets/cursor/ios-swift/MCP.md +16 -0
  156. package/presets/cursor/ios-swift/README.md +27 -7
  157. package/presets/cursor/ios-swift/agents/README.md +55 -0
  158. package/presets/cursor/ios-swift/agents/accessibility-reviewer.md +67 -0
  159. package/presets/cursor/ios-swift/agents/api-contract-reviewer.md +72 -0
  160. package/presets/cursor/ios-swift/agents/build-verifier.md +64 -0
  161. package/presets/cursor/ios-swift/agents/ci-investigator.md +73 -0
  162. package/presets/cursor/ios-swift/agents/code-reviewer.md +75 -0
  163. package/presets/cursor/ios-swift/agents/debugger.md +72 -0
  164. package/presets/cursor/ios-swift/agents/feature-developer.md +35 -0
  165. package/presets/cursor/ios-swift/agents/migration-specialist.md +73 -0
  166. package/presets/cursor/ios-swift/agents/performance-auditor.md +72 -0
  167. package/presets/cursor/ios-swift/agents/qa-tester.md +65 -0
  168. package/presets/cursor/ios-swift/agents/security-reviewer.md +69 -0
  169. package/presets/cursor/ios-swift/agents/solution-architect.md +17 -0
  170. package/presets/cursor/ios-swift/agents/task-analyst.md +25 -0
  171. package/presets/cursor/ios-swift/agents/task-router.md +62 -0
  172. package/presets/cursor/ios-swift/agents/tech-writer.md +63 -0
  173. package/presets/cursor/ios-swift/agents/unit-test-generator.md +54 -0
  174. package/presets/cursor/ios-swift/agents/unit-test-healer.md +53 -0
  175. package/presets/cursor/ios-swift/agents/unit-test-planner.md +64 -0
  176. package/presets/cursor/ios-swift/agents/xcuitest-test-generator.md +47 -0
  177. package/presets/cursor/ios-swift/agents/xcuitest-test-healer.md +47 -0
  178. package/presets/cursor/ios-swift/agents/xcuitest-test-planner.md +67 -0
  179. package/presets/cursor/ios-swift/commands/README.md +49 -1
  180. package/presets/cursor/ios-swift/commands/feature-continue.md +19 -0
  181. package/presets/cursor/ios-swift/commands/feature-start.md +33 -0
  182. package/presets/cursor/ios-swift/commands/task-continue.md +49 -0
  183. package/presets/cursor/ios-swift/commands/task.md +50 -0
  184. package/presets/cursor/ios-swift/commands/technical-retro.md +81 -0
  185. package/presets/cursor/ios-swift/hooks/README.md +8 -0
  186. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +382 -0
  187. package/presets/cursor/ios-swift/hooks/guard-shell-command.sh +79 -0
  188. package/presets/cursor/ios-swift/hooks.json +17 -0
  189. package/presets/cursor/ios-swift/mcp.json +11 -0
  190. package/presets/cursor/ios-swift/rules/README.md +45 -13
  191. package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +16 -0
  192. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +85 -0
  193. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +1 -0
  194. package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +1 -1
  195. package/presets/cursor/ios-swift/rules/ios-app-core.mdc +2 -1
  196. package/presets/cursor/ios-swift/rules/module-public-api.mdc +26 -0
  197. package/presets/cursor/ios-swift/rules/navigation-coordinators.mdc +29 -0
  198. package/presets/cursor/ios-swift/rules/networking-services.mdc +2 -2
  199. package/presets/cursor/ios-swift/rules/persistence-data.mdc +31 -0
  200. package/presets/cursor/ios-swift/rules/reference-features.mdc +53 -0
  201. package/presets/cursor/ios-swift/rules/security-ios.mdc +35 -0
  202. package/presets/cursor/ios-swift/rules/technical-retro.mdc +12 -0
  203. package/presets/cursor/ios-swift/rules/tests-ui.mdc +1 -0
  204. package/presets/cursor/ios-swift/rules/xcode-tooling.mdc +20 -0
  205. package/presets/cursor/ios-swift/skills/README.md +13 -0
  206. package/presets/cursor/ios-swift/skills/ci-investigation/SKILL.md +39 -0
  207. package/presets/cursor/ios-swift/skills/code-review/SKILL.md +27 -0
  208. package/presets/cursor/ios-swift/skills/debug-investigation/SKILL.md +30 -0
  209. package/presets/cursor/ios-swift/skills/feature-delivery/SKILL.md +27 -0
  210. package/presets/cursor/ios-swift/skills/technical-retro/SKILL.md +10 -0
  211. package/presets/cursor/ios-swift/skills/unit-testing/SKILL.md +32 -0
  212. package/presets/cursor/ios-swift/skills/xcuitest-e2e/SKILL.md +33 -0
  213. package/presets/cursor/ios-swift/team/README.md +31 -0
  214. package/presets/cursor/ios-swift/team/fixtures/bugfix-standard.json +33 -0
  215. package/presets/cursor/ios-swift/team/fixtures/feature-full.json +48 -0
  216. package/presets/cursor/ios-swift/team/fixtures/feature-light.json +36 -0
  217. package/presets/cursor/next/AGENTS.md +36 -0
  218. package/presets/cursor/next/BUGBOT.md +14 -0
  219. package/presets/cursor/next/MCP.md +16 -0
  220. package/presets/cursor/next/agents/README.md +165 -0
  221. package/presets/cursor/next/agents/accessibility-reviewer.md +67 -0
  222. package/presets/cursor/next/agents/api-contract-reviewer.md +71 -0
  223. package/presets/cursor/next/agents/build-verifier.md +66 -0
  224. package/presets/cursor/next/agents/ci-investigator.md +64 -0
  225. package/presets/cursor/next/agents/code-reviewer.md +64 -0
  226. package/presets/cursor/next/agents/debugger.md +64 -0
  227. package/presets/cursor/next/agents/feature-developer.md +28 -0
  228. package/presets/cursor/next/agents/migration-specialist.md +71 -0
  229. package/presets/cursor/next/agents/performance-auditor.md +70 -0
  230. package/presets/cursor/next/agents/playwright-test-generator.md +27 -0
  231. package/presets/cursor/next/agents/playwright-test-healer.md +27 -0
  232. package/presets/cursor/next/agents/playwright-test-planner.md +28 -0
  233. package/presets/cursor/next/agents/qa-tester.md +58 -0
  234. package/presets/cursor/next/agents/security-reviewer.md +66 -0
  235. package/presets/cursor/next/agents/solution-architect.md +71 -0
  236. package/presets/cursor/next/agents/task-analyst.md +112 -0
  237. package/presets/cursor/next/agents/task-router.md +95 -0
  238. package/presets/cursor/next/agents/tech-writer.md +62 -0
  239. package/presets/cursor/next/agents/unit-test-generator.md +39 -0
  240. package/presets/cursor/next/agents/unit-test-healer.md +40 -0
  241. package/presets/cursor/next/agents/unit-test-planner.md +64 -0
  242. package/presets/cursor/next/commands/README.md +49 -1
  243. package/presets/cursor/next/commands/feature-continue.md +19 -0
  244. package/presets/cursor/next/commands/feature-start.md +33 -0
  245. package/presets/cursor/next/commands/task-continue.md +49 -0
  246. package/presets/cursor/next/commands/task.md +50 -0
  247. package/presets/cursor/next/commands/technical-retro.md +81 -0
  248. package/presets/cursor/next/hooks/README.md +8 -0
  249. package/presets/cursor/next/hooks/chain-team-phases.sh +380 -0
  250. package/presets/cursor/next/hooks/guard-shell-command.sh +77 -0
  251. package/presets/cursor/next/hooks.json +17 -0
  252. package/presets/cursor/next/mcp.json +19 -0
  253. package/presets/cursor/next/rules/README.md +67 -0
  254. package/presets/cursor/next/rules/agent-team-intake.mdc +14 -0
  255. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +147 -0
  256. package/presets/cursor/next/rules/api-services.mdc +12 -10
  257. package/presets/cursor/next/rules/architecture-boundaries-ui.mdc +15 -0
  258. package/presets/cursor/next/rules/architecture-boundaries.mdc +31 -12
  259. package/presets/cursor/next/rules/arrow-functions.mdc +46 -0
  260. package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +5 -4
  261. package/presets/cursor/next/rules/code-review-mr.mdc +21 -40
  262. package/presets/cursor/next/rules/css-property-order-stylelint.mdc +16 -0
  263. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +76 -0
  264. package/presets/cursor/next/rules/http-client.mdc +42 -0
  265. package/presets/cursor/next/rules/layer-barrel-exports.mdc +59 -0
  266. package/presets/cursor/next/rules/navigation-router-stack.mdc +62 -0
  267. package/presets/cursor/next/rules/navigation-router-ui.mdc +16 -0
  268. package/presets/cursor/next/rules/next-app-core.mdc +18 -61
  269. package/presets/cursor/next/rules/next-app-router.mdc +36 -0
  270. package/presets/cursor/next/rules/no-props-spread.mdc +27 -4
  271. package/presets/cursor/next/rules/no-type-assertion-as-import-export.mdc +60 -0
  272. package/presets/cursor/next/rules/package-manager.mdc +16 -0
  273. package/presets/cursor/next/rules/playwright-agents.mdc +2 -1
  274. package/presets/cursor/next/rules/post-change-lint.mdc +40 -0
  275. package/presets/cursor/next/rules/public-imports.mdc +48 -0
  276. package/presets/cursor/next/rules/react-a11y-coding.mdc +37 -0
  277. package/presets/cursor/next/rules/react-ui.mdc +33 -3
  278. package/presets/cursor/next/rules/reference-features.mdc +39 -0
  279. package/presets/cursor/next/rules/store-rtk.mdc +13 -6
  280. package/presets/cursor/next/rules/technical-retro.mdc +12 -0
  281. package/presets/cursor/next/rules/tests-unit.mdc +30 -10
  282. package/presets/cursor/next/rules/types-jsdoc.mdc +42 -0
  283. package/presets/cursor/next/skills/README.md +15 -0
  284. package/presets/cursor/next/skills/ci-investigation/SKILL.md +36 -0
  285. package/presets/cursor/next/skills/code-review/SKILL.md +26 -0
  286. package/presets/cursor/next/skills/debug-investigation/SKILL.md +28 -0
  287. package/presets/cursor/next/skills/feature-delivery/SKILL.md +15 -0
  288. package/presets/cursor/next/skills/playwright-e2e/SKILL.md +31 -0
  289. package/presets/cursor/next/skills/technical-retro/SKILL.md +40 -0
  290. package/presets/cursor/next/skills/unit-testing/SKILL.md +32 -0
  291. package/presets/cursor/next/team/README.md +109 -0
  292. package/presets/cursor/next/team/fixtures/bugfix-standard.json +15 -0
  293. package/presets/cursor/next/team/fixtures/feature-full.json +16 -0
  294. package/presets/cursor/next/team/fixtures/feature-light.json +17 -0
  295. package/presets/cursor/next/team/tasks/.gitkeep +0 -0
@@ -0,0 +1,57 @@
1
+ ---
2
+ paths:
3
+ - app/src/**/*.tsx
4
+ ---
5
+
6
+ # Не использовать спред пропов при передаче в компоненты
7
+
8
+ При вызове **пользовательских** React-компонентов (имя с заглавной буквы) **передавать пропы явно**, а не через spread (`{...props}`, `{...obj}`).
9
+
10
+ **Агентам и при ревью:** не «упрощать» JSX через объект с spread. Длинное ветвление — два явных JSX-блока или отдельные компоненты.
11
+
12
+ ## Почему
13
+
14
+ - Явная передача делает зависимости очевидными.
15
+ - Упрощает рефакторинг и поиск использований.
16
+ - Снижает риск лишних пропов.
17
+
18
+ ## Проверка в репозитории
19
+
20
+ - Для `app/src/ui/**/*.tsx` — ESLint `react/jsx-props-no-spreading` (`app/eslint.config.mjs`).
21
+ - Исключение — `eslint-disable-next-line` с комментарием «почему».
22
+
23
+ ## Примеры
24
+
25
+ ```tsx
26
+ // ❌ Плохо
27
+ const commonProps = { a, b, c }
28
+ return <Child {...commonProps} />
29
+
30
+ // ❌ Плохо
31
+ return <Child {...props} />
32
+
33
+ // ✅ Хорошо
34
+ return (
35
+ <Child
36
+ a={a}
37
+ b={b}
38
+ c={c}
39
+ />
40
+ )
41
+
42
+ // ✅ Хорошо — явные пропсы по веткам
43
+ return cond ? (
44
+ <IconBox name={name} size="m" variant="warning" />
45
+ ) : (
46
+ <IconBox
47
+ customColors={styles.IconBoxAccent.customColors}
48
+ name={name}
49
+ size="m"
50
+ />
51
+ )
52
+ ```
53
+
54
+ ## Исключения
55
+
56
+ - **Нативный** DOM (`<div {...rest} />`) — если `rest` только HTML-атрибуты.
57
+ - Обёртки — если явно документировано; при необходимости ESLint-disable.
@@ -0,0 +1,37 @@
1
+ ---
2
+ paths:
3
+ - app/src/ui/**/*.tsx
4
+ - app/src/ui/**/*.ts
5
+ ---
6
+
7
+ # A11y при разработке UI
8
+
9
+ Reviewer (`accessibility-reviewer`) проверяет diff; эти правила — **при написании** кода.
10
+
11
+ ## Семантика и ARIA
12
+
13
+ - Предпочитать **нативные элементы** (`button`, `a`, `label`, `input`) вместо `div` с `onClick`.
14
+ - **`role` / `aria-*`** — только когда нативного аналога нет; не дублировать то, что даёт семантика.
15
+ - Заголовки — иераархия `h1`–`h6` без пропусков уровней ради стилей.
16
+
17
+ ## Формы
18
+
19
+ - Каждый input связан с **`label`** (`htmlFor` / `id` или обёртка).
20
+ - Сообщения об ошибках — **`aria-describedby`**, `aria-invalid` при validation errors.
21
+ - Кнопки submit vs button — явный `type`.
22
+
23
+ ## Клавиатура и focus
24
+
25
+ - Все интерактивные элементы **достижимы с Tab** и активируются Enter/Space где ожидается.
26
+ - **Modals/drawers** — focus trap, возврат focus на trigger при закрытии, Esc закрывает (если по UX).
27
+ - Не удалять видимый **focus outline** без замены на доступный custom focus style.
28
+
29
+ ## Контент
30
+
31
+ - Изображения — **`alt`** (пустой `alt` только для декора).
32
+ - Иконки-кнопки — **`aria-label`** или visually hidden text.
33
+ - Динамические обновления — `aria-live` для критичных status/error (умеренно).
34
+
35
+ ## Проверка
36
+
37
+ - При сомнении — devtools a11y tree или `accessibility-reviewer` в pipeline для UI-heavy фич.
@@ -0,0 +1,91 @@
1
+ ---
2
+ paths:
3
+ - app/src/ui/**/*.tsx
4
+ - app/src/ui/**/*.ts
5
+ ---
6
+
7
+ # Общие правила компонентов
8
+
9
+ - Использовать **функциональные компоненты** с хуками, без классов.
10
+ - Компонент должен:
11
+ - быть максимально «тонким» по бизнес‑логике;
12
+ - делегировать состояние в store/хуки, если оно нужно в нескольких местах;
13
+ - опираться на **общие UI‑примитивы дизайна проекта** (пакеты или локальная библиотека компонентов), если они есть.
14
+ - Перед новым кастомным контролом — поискать готовый или близкий компонент в репозитории / пакетах UI проекта и переиспользовать или расширить его.
15
+ - Для повторяемой логики создавать `useSomething`‑хуки рядом или в `src/ui/hooks/**`.
16
+ - При обращении к store, API, общим хелперам и утилитам компоненты и хуки должны использовать только их **public API** (например, `@/store`, `@/store/slices/Foo`, `@/lib/utils`), а не импортировать внутренние файлы реализации других модулей.
17
+
18
+ # Структура файлов
19
+
20
+ Для страницы/крупного блока:
21
+
22
+ - `FeatureBlock.tsx` — JSX и композиция.
23
+ - `styles.ts` или соседний модуль стилей — по конвенции репозитория (CSS Modules, CSS-in-JS, и т.д.).
24
+ - `index.ts` — реэкспорт (если нужно наружу).
25
+
26
+ ## Дочерние компоненты (`./components`)
27
+
28
+ - Локальные подкомпоненты, используемые только этим блоком, выносятся в **`./components/<ComponentName>/`** относительно папки родительского компонента (не оставлять крупные куски JSX и «внутренние» компоненты в том же файле, что и родитель).
29
+ - У каждого такого подкомпонента — **своя** папка с тем же именем, что и публичное имя компонента:
30
+ - `ComponentName.tsx` — разметка и композиция;
31
+ - `styles.ts` — только стили этого подкомпонента (не тянуть `styles` соседних компонентов — см. § Стили ниже);
32
+ - при необходимости — `ComponentName.data.ts`, `ComponentName.utils.ts`, `ComponentName.hooks.ts` по тем же правилам префикса, что и у родителя;
33
+ - опционально `index.ts` с реэкспортом.
34
+ - Родитель импортирует подкомпонент из `./components/...`, а не держит его реализацию inline.
35
+
36
+ Для переиспользуемого компонента:
37
+
38
+ - Папка с именем компонента:
39
+ - `ComponentName.tsx`
40
+ - файлы стилей по принятой схеме;
41
+ - опционально: `types.ts`, `ComponentName.hooks.ts` (см. ниже про префикс).
42
+
43
+ ## Вспомогательные модули рядом с компонентом (именование)
44
+
45
+ **Префикс имени файла = публичное имя компонента** (как у `ComponentName.tsx` в этой папке), в **PascalCase**. Не вводить отдельные «говорящие» имена файлов по смыслу содержимого (`analysisPreparationIconMap.ts`, `buildAnalysisIdToNameMap.ts` и т.п.) — так теряется связь с компонентом и плодятся одноразовые названия.
46
+
47
+ **Суффикс по роли:**
48
+
49
+ | Суффикс | Назначение | Примеры содержимого |
50
+ |--------|------------|---------------------|
51
+ | `ComponentName.data.ts` | Статические данные и конфигурация для UI | мапы `id → иконка/лейбл`, константы списков, таблицы соответствий для отображения |
52
+ | `ComponentName.utils.ts` | Чистые функции без React | форматирование, предобработка пропсов/данных для рендера, `build…`/`map…`‑хелперы |
53
+ | `ComponentName.hooks.ts` | Хуки, используемые только этим блоком | локальные `use…` (если не вынесены в `src/ui/hooks/**`) |
54
+
55
+ - Несколько констант/мапов или несколько функций — **по-прежнему один** `.data.ts` и один `.utils.ts`, не дробить по «темам» отдельными файлами без веской причины (размер, разные зоны ответственности на уровне подкомпонентов).
56
+ - Если логика принадлежит **подкомпоненту** в подпапке (`components/Child/Child.tsx`), те же правила применяются к **`Child.data.ts`**, **`Child.utils.ts`** относительно этого подкомпонента.
57
+ - Тесты для утилит и данных — рядом в `__tests__/` или с суффиксом `.test.ts`, согласно `testing/tests-unit.md`, с тем же префиксом (`RequestForAnalysisRecommendations.utils.test.ts` и т.д.).
58
+
59
+ # Стили и дизайн‑токены
60
+
61
+ - **Корневой** styled в соседнем `styles` — экспорт **`Root`**; в JSX: `<s.Root>` при `import * as s from './styles'`. Вложенные — `Title`, `List` и т.д. Не `Container`/`Wrapper` для единственной обёртки.
62
+ - **Запрещено** импортировать `styles` другого компонента (`../Other/styles`, `../../styles`). Разрешено: `./styles`, общие примитивы из `@/ui/components/...` или пакетов дизайн-системы.
63
+ - Порядок CSS / `styled` — Stylelint idiomatic-order: `ui-and-accessibility/css-property-order.md` (грузится на `styles.ts` / `.css`).
64
+ - Для визуала использовать **тот стек стилей и токенов, который уже в проекте** (переменные, тема, общие классы, дизайн‑пакет).
65
+ - Избегать:
66
+ - inline‑стилей, кроме простых случаев;
67
+ - дублирования оформления, уже закрытого общими примитивами;
68
+ - «магических» литералов (`#xxxxxx`, произвольные `17px` / `23px`), если в проекте есть токены или масштаб.
69
+ - Если подходящего токена нет — локальный примитив **в одном месте** с последующим выравниванием под систему дизайна при возможности.
70
+
71
+ # Пропсы и типизация
72
+
73
+ - **Не передавать пропы в компоненты через spread** (`<Foo {...x} />`). Только явные атрибуты; подробности — `ui-and-accessibility/no-props-spread.md` (в `app/src/ui` это дополнительно ловит ESLint).
74
+ - Описывать пропсы через `type Props = { ... }` или `interface Props { ... }`.
75
+ - Не использовать `any`; при необходимости — обобщения (`<T>`), `unknown`, type guards.
76
+ - Для доменных сущностей использовать типы из `@/types` (и enum из `@/types/enums`), а не описывать их заново (`architecture/public-imports.md`).
77
+
78
+ # Логика и side effects
79
+
80
+ - Side effects и асинхронщина — по возможности в store (thunk’и, middleware) или в отдельные хуки.
81
+ - Компоненты не должны:
82
+ - напрямую знать детали API (URL, структура DTO);
83
+ - заниматься маппингом «сырых» DTO — только доменные типы;
84
+ - содержать нетривиальные вычисления и преобразования данных (булевы флаги, сложная склейка строк, агрегаты и т.п.). Данные для отображения должны быть подготовлены на этапах маппинга/подготовки (API → доменная модель → store).
85
+
86
+ # Тестирование UI
87
+
88
+ - Для нетривиальных компонентов добавлять тесты:
89
+ - **Testing Library** для React, как принято в проекте;
90
+ - проверять поведение и бизнес‑правила, а не конкретные CSS‑классы.
91
+ - В тестах ориентироваться на текст, роли и aria‑атрибуты.
@@ -1,5 +1,15 @@
1
1
  # `.claude/skills` (preset next)
2
2
 
3
- [Skills](https://code.claude.com/docs/en/skills) в Claude Code — сценарии, которые подгружаются по необходимости, а не в каждой сессии целиком. Добавьте сюда `SKILL.md` или структуру skills по документации инструмента.
3
+ [Skills](https://code.claude.com/docs/en/skills) в Claude Code — сценарии, которые подгружаются по необходимости, а не в каждой сессии целиком. Они синхронизированы по смыслу с `.cursor/skills` из Cursor-пресета.
4
+
5
+ | Skill | Когда использовать |
6
+ |-------|--------------------|
7
+ | `feature-delivery` | End-to-end feature work across types, API, store, UI, tests |
8
+ | `code-review` | MR/diff review using project architecture and test standards |
9
+ | `debug-investigation` | Reproducing and fixing bugs with root-cause evidence |
10
+ | `ci-investigation` | Diagnosing and fixing failing CI checks on PRs/branches |
11
+ | `unit-testing` | Planning, generating, or healing unit test coverage |
12
+ | `playwright-e2e` | Planning, generating, or healing Playwright e2e coverage |
13
+ | `technical-retro` | Technical retrospective for a task, sprint, incident, or agent pipeline |
4
14
 
5
15
  Папка копируется в `.claude/skills/` при `ai-rules init claude --preset next`, если существует.
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: ci-investigation
3
+ description: Investigates failing CI checks on PRs and branches — lint, type-check, unit, e2e — with local reproduction and minimal fixes. Use when CI is red or for ci-fix pipeline tasks.
4
+ ---
5
+
6
+ # CI Investigation
7
+
8
+ ## Workflow
9
+
10
+ 1. Identify the **first failing check** (lint, type-check, unit, e2e, build).
11
+ 2. Capture error output — ignore cascading failures until root cause is found.
12
+ 3. Reproduce locally with the same commands CI uses from `app/`:
13
+ - `lint:js`, `lint:css`, `type-check`
14
+ - targeted unit test file or suite
15
+ - affected Playwright spec if e2e failed
16
+ 4. Inspect git diff for changed files related to the failure.
17
+ 5. Apply **minimal fix** — no unrelated refactors.
18
+
19
+ ## Artifact
20
+
21
+ Write `ci-report.md` under the task slug folder:
22
+
23
+ - Failed check name and link/log excerpt
24
+ - Root cause classification
25
+ - Fix applied (or handoff to feature-developer)
26
+ - Validation commands and results
27
+
28
+ ## Handoff Rules
29
+
30
+ - Config-only or one-line fixes → fix in place, re-run check.
31
+ - Missing tests or architecture work → document and route to `feature-developer` or `qa-tester`.
32
+ - Flaky e2e → prefer `playwright-test-healer` after ci-investigator identifies the spec.
33
+
34
+ ## Validation
35
+
36
+ Always re-run the failing command locally before marking complete. If environment blocks execution, state the exact command and blocker.
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: code-review
3
+ description: Reviews pull requests, merge requests, git diffs, and branch changes using the preset's architecture, import, UI, API, and testing standards. Use when the user asks for review or when code-reviewer runs in an agent pipeline.
4
+ ---
5
+
6
+ # Code Review
7
+
8
+ ## Inputs
9
+
10
+ Use the local repository as the source of truth: `git status`, `git diff`, task artifacts under `.claude/team/tasks/<slug>/` when present, and opened files. Do not invent hosting metadata such as labels, CI status, or reviewers.
11
+
12
+ ## Review Order
13
+
14
+ 1. Understand the intent and affected layers.
15
+ 2. Check correctness and regressions first.
16
+ 3. Verify architecture boundaries: UI does not know DTO/transport, store does not depend on UI, API services do not pull UI/store.
17
+ 4. Check public imports through `@/types` and `@/api`, plus barrel updates for new public symbols.
18
+ 5. Review UI consistency, styling conventions, and prop shape.
19
+ 6. Check tests: unit for mapper/domain logic, behavior tests for HTTP client changes, e2e plan/spec updates for user flows.
20
+ 7. Report validation gaps: lint, stylelint, type-check, or relevant tests not run.
21
+
22
+ ## Output
23
+
24
+ Lead with findings ordered by severity. Each finding should include the file, the problem, impact, and a concrete fix direction. If there are no findings, say so and call out remaining test or validation risk.
25
+
26
+ For agent team tasks, write `.claude/team/tasks/<slug>/review.md` and set `status.json` to `completed` or `changes_requested`.
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: debug-investigation
3
+ description: Investigates bugs, failing tests, crashes, and incorrect behavior with runtime evidence before applying minimal fixes. Use for bugfix tasks, debugger agent runs, regressions, and flaky test diagnosis.
4
+ ---
5
+
6
+ # Debug Investigation
7
+
8
+ ## Process
9
+
10
+ 1. Reproduce the issue or collect the closest available evidence: error output, failing test, browser snapshot, logs, or user steps.
11
+ 2. Define expected vs actual behavior in one sentence.
12
+ 3. Trace the failing path through the smallest relevant slice of the codebase.
13
+ 4. Identify the root cause before editing. Avoid broad refactors during bugfixes.
14
+ 5. Apply the smallest fix that preserves existing architecture and public contracts.
15
+ 6. Add or update a regression test when the behavior is user-facing or likely to recur.
16
+ 7. Run the narrow failing check first, then relevant lint/type/test validation.
17
+
18
+ ## Artifacts
19
+
20
+ For agent team tasks, write `.claude/team/tasks/<slug>/debug-report.md` with:
21
+
22
+ - Reproduction steps or evidence source.
23
+ - Root cause.
24
+ - Fix scope.
25
+ - Regression coverage.
26
+ - Remaining risk.
27
+
28
+ Update `status.json` when complete.
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: feature-delivery
3
+ description: Delivers Next.js frontend features end-to-end across domain types, API services, store, UI, mocks, tests, and validation. Use when implementing or extending a feature, especially through /task or feature-developer.
4
+ ---
5
+
6
+ # Feature Delivery
7
+
8
+ 1. Read task brief, acceptance criteria, and decomposition if present.
9
+ 2. Read **`rules/architecture/feature-delivery-workflow.md`** and **`rules/architecture/reference-features.md`** — follow layer order and mirror closest reference feature.
10
+ 3. Add or update focused tests for changed behavior.
11
+ 4. Validation from `app/`: **invoke** **`rules/tooling-and-review/post-change-lint.md`** after code edits (requestable, not session-start — but mandatory when code changed). Pipeline: scoped lint OK if next step is `build-verifier`.
12
+
13
+ ## Handoff
14
+
15
+ Summarize by layer, validation results, and known gaps. Agent team: update `.claude/team/tasks/<slug>/status.json`.
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: playwright-e2e
3
+ description: Plans, generates, and heals Playwright e2e tests using this preset's app/__tests__/e2e layout, *.cases.md plans, page objects, and shared helpers. Use for e2e planning, test generation, or fixing failing browser tests.
4
+ ---
5
+
6
+ # Playwright E2E
7
+
8
+ ## Project Layout
9
+
10
+ - Test root: `app/__tests__/e2e`.
11
+ - Test plans: `*.cases.md` files under the matching feature folder.
12
+ - Executable specs: `*.spec.ts` files in the same folder.
13
+ - Seed/setup reference: `app/__tests__/e2e/seed.spec.ts`.
14
+
15
+ Do not introduce top-level `specs/` or `tests/` folders for real coverage unless the user explicitly asks for a sandbox.
16
+
17
+ ## Planner
18
+
19
+ Create or update the relevant `*.cases.md` file. Each scenario should include title, preconditions, steps, and expected result. Cover happy path, important edge cases, validation, and error states.
20
+
21
+ ## Generator
22
+
23
+ Generate specs from `*.cases.md` into the same folder. Reuse existing page objects and `_shared/` helpers. Keep test names aligned with scenario names.
24
+
25
+ ## Healer
26
+
27
+ Fix selectors, waits, setup, or page-object details without weakening business assertions. Use the matching `*.cases.md` file as the behavior contract.
28
+
29
+ ## Validation
30
+
31
+ Run the affected spec when feasible. If the environment blocks execution, report the command that should be run and the blocker.
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: technical-retro
3
+ description: Facilitates technical retrospectives for tasks, sprints, incidents, releases, and agent-team pipelines. Use when the user asks for retro, postmortem, process review, or action items after delivery.
4
+ ---
5
+
6
+ # Technical Retro
7
+
8
+ ## Inputs
9
+
10
+ Ask for missing period, focus, task slug, participants, or format constraints. If a slug is provided, read `.claude/team/tasks/<slug>/` artifacts and local git status/diff. Do not invent facts not present in artifacts or the user's message.
11
+
12
+ ## Facilitation Principles
13
+
14
+ - Focus on process and system behavior, not blame.
15
+ - Separate facts, interpretations, and proposed actions.
16
+ - Balance what worked with what slowed delivery.
17
+ - Keep action items concrete, owned, and measurable.
18
+
19
+ ## Default Structure
20
+
21
+ 1. Goal and scope.
22
+ 2. Timeline or factual observations.
23
+ 3. What worked.
24
+ 4. What hurt quality, speed, or confidence.
25
+ 5. Root causes for the top one or two issues.
26
+ 6. Experiments and action items.
27
+
28
+ ## Agent Team Block
29
+
30
+ For `/task` pipelines, include router, analyst, developer, **build-verifier**, reviewer, QA/e2e, hooks, and rules.
31
+
32
+ ## Preset feedback loop
33
+
34
+ If the same issue appeared in 2+ tasks, add section **Preset updates**:
35
+
36
+ - Proposed change to `.claude/rules/`, `.claude/agents/`, or `.claude/skills/`
37
+ - One concrete diff or file path to update
38
+ - Whether it belongs in session-start rules vs `paths:` vs skill
39
+
40
+ Do not apply preset changes without user approval.
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: unit-testing
3
+ description: Plans, generates, and heals unit tests for mappers, thunks, HTTP client behavior, and React components using colocated *.spec.ts files and tests-unit rules. Use for unit test planning, generation, or fixing failing unit tests.
4
+ ---
5
+
6
+ # Unit Testing
7
+
8
+ ## Project Layout
9
+
10
+ - Specs colocated with source: `*.spec.ts` / `*.spec.tsx` next to the module under test.
11
+ - Legacy `*.test.ts` / `*.test.tsx` — do not rename without a separate task.
12
+ - Runner: Jest or Vitest as configured in the target repo; components use `@testing-library/react`.
13
+
14
+ Follow **`rules/testing/tests-unit.md`**.
15
+
16
+ ## Planner
17
+
18
+ Write or update `.claude/team/tasks/<slug>/unit-test-plan.md`.
19
+
20
+ Each scenario needs a Russian `it()` title (capital letter after each sentence). Cover mappers, thunks, client behavior branches, and component interactions per AC.
21
+
22
+ ## Generator
23
+
24
+ Implement specs from `unit-test-plan.md`. Reuse project test-store, HTTP mocks, and existing test utilities. Do not change production code.
25
+
26
+ ## Healer
27
+
28
+ Fix mocks, async timing, selectors, and setup — preserve business assertions. Use `unit-test-plan.md` and `brief.md` as the behavior contract.
29
+
30
+ ## Validation
31
+
32
+ Run affected unit tests from `app/` when feasible. Report command, pass/fail, and remaining gaps vs plan.
@@ -0,0 +1,105 @@
1
+ # Agent team artifacts
2
+
3
+ Каталог артефактов пайплайна «команда агентов» Claude.
4
+
5
+ ## Layout
6
+
7
+ ```
8
+ .claude/team/
9
+ active-task.json
10
+ fixtures/ # pipeline profile examples (feature-full, feature-light, bugfix-standard)
11
+ tasks/
12
+ <slug>/
13
+ pipeline.json
14
+ status.json
15
+ brief.md
16
+ decomposition.md
17
+ debug-report.md # fixApplied: true/false
18
+ validation-report.md # build-verifier: PASS | FAIL
19
+ architecture.md
20
+ migration-plan.md
21
+ ci-report.md
22
+ a11y-review.md
23
+ perf-report.md
24
+ security-review.md
25
+ api-contract-review.md
26
+ unit-test-plan.md
27
+ documentation.md
28
+ review.md
29
+ ```
30
+
31
+ ## pipeline.json schema
32
+
33
+ ```json
34
+ {
35
+ "slug": "order-history-date-filter",
36
+ "intent": "feature",
37
+ "summary": "Add date filter to Order History",
38
+ "steps": [
39
+ { "agent": "task-analyst", "label": "Clarify and decompose" },
40
+ { "agent": "feature-developer", "label": "Implement + unit tests", "scope": "unit-in-dev" },
41
+ { "agent": "build-verifier", "label": "Validation gate" },
42
+ { "agent": "code-reviewer", "label": "Code review" },
43
+ { "agent": "qa-tester", "label": "E2E", "scope": "e2e-only" }
44
+ ],
45
+ "humanGates": ["after:task-analyst"],
46
+ "autoChain": true,
47
+ "skipped": []
48
+ }
49
+ ```
50
+
51
+ ### Step fields
52
+
53
+ | Field | Description |
54
+ |-------|-------------|
55
+ | `agent` | kebab-case name or array when `parallel: true` |
56
+ | `label` | Human-readable step name |
57
+ | `scope` | Passed to agents (e.g. `unit-in-dev`, `e2e-only`) |
58
+ | `skipIf` | `debugger.fixed` \| `ci-investigator.resolved` |
59
+ | `parallel` | Invoke all `agent` values in one parent turn |
60
+
61
+ ## status.json (pipeline mode)
62
+
63
+ ```json
64
+ {
65
+ "slug": "order-history-date-filter",
66
+ "intent": "feature",
67
+ "pipelineIndex": 0,
68
+ "currentAgent": "task-analyst",
69
+ "phase": "executing",
70
+ "state": "in_progress",
71
+ "awaitingHumanGate": false,
72
+ "parallelCompleted": [],
73
+ "retryAfterFix": null,
74
+ "updatedAt": "2026-05-29T12:00:00.000Z"
75
+ }
76
+ ```
77
+
78
+ ### phase
79
+
80
+ Prefer **`executing`** for pipeline mode. Legacy: `analysis`, `development`, `review`, `testing`, `done`.
81
+
82
+ ### state
83
+
84
+ | Value | Description |
85
+ |-------|-------------|
86
+ | `in_progress` | Current step running |
87
+ | `completed` | Current step finished |
88
+ | `awaiting_approval` | Human gate; use `/task-continue` |
89
+ | `changes_requested` | Reviewer requires fixes |
90
+ | `validation_failed` | build-verifier failed |
91
+ | `approved` | Legacy continue |
92
+
93
+ ## Workflow entry
94
+
95
+ ```bash
96
+ /task <описание задачи>
97
+ /task-continue <slug>
98
+ /technical-retro <slug>
99
+ ```
100
+
101
+ Legacy: `/feature-start`, `/feature-continue`.
102
+
103
+ ## Git
104
+
105
+ Commit task artifacts if you want them to survive `ai-rules clean claude`. Or copy finished tasks to `docs/agent-workflow/tasks/<slug>/`.
@@ -0,0 +1,15 @@
1
+ {
2
+ "slug": "example-bugfix-standard",
3
+ "intent": "bugfix",
4
+ "profile": "standard",
5
+ "summary": "Regression fix with review",
6
+ "steps": [
7
+ { "agent": "debugger", "label": "Root cause" },
8
+ { "agent": "feature-developer", "label": "Fix if needed", "skipIf": "debugger.fixed" },
9
+ { "agent": "build-verifier", "label": "Validation gate" },
10
+ { "agent": "code-reviewer", "label": "Code review" }
11
+ ],
12
+ "humanGates": [],
13
+ "autoChain": true,
14
+ "skipped": []
15
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "slug": "example-feature-full",
3
+ "intent": "feature",
4
+ "profile": "full",
5
+ "summary": "Multi-layer feature with e2e coverage",
6
+ "steps": [
7
+ { "agent": "task-analyst", "label": "Clarify and decompose" },
8
+ { "agent": "feature-developer", "label": "Implement + unit tests", "scope": "unit-in-dev" },
9
+ { "agent": "build-verifier", "label": "Validation gate" },
10
+ { "agent": "code-reviewer", "label": "Code review" },
11
+ { "agent": "qa-tester", "label": "E2E", "scope": "e2e-only" }
12
+ ],
13
+ "humanGates": ["after:task-analyst"],
14
+ "autoChain": true,
15
+ "skipped": []
16
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "slug": "example-feature-light",
3
+ "intent": "feature",
4
+ "profile": "light",
5
+ "summary": "Trivial single-file change with explicit AC",
6
+ "steps": [
7
+ { "agent": "feature-developer", "label": "Implement" },
8
+ { "agent": "build-verifier", "label": "Validation gate" }
9
+ ],
10
+ "humanGates": [],
11
+ "autoChain": true,
12
+ "skipped": [
13
+ { "agent": "task-analyst", "reason": "Explicit AC and single-file scope" },
14
+ { "agent": "code-reviewer", "reason": "Light profile — non-trivial app changes should use standard" },
15
+ { "agent": "qa-tester", "reason": "No e2e AC" }
16
+ ]
17
+ }
@@ -0,0 +1 @@
1
+ # Keep the task artifact directory in the published preset.
@@ -0,0 +1,47 @@
1
+ # iOS Swift stack — Cursor agent team
2
+
3
+ Краткая точка входа для Cursor. Подробные правила — `.cursor/rules/*.mdc`; сценарии — `.cursor/skills/**`.
4
+
5
+ See `.cursor/rules/README.md` for the full catalog and loading strategy.
6
+
7
+ ## Quick start
8
+
9
+ | Задача | Куда смотреть |
10
+ |--------|----------------|
11
+ | Любая новая work-задача | `/task` → `commands/task.md` + `agent-team-orchestrator.mdc` (+ `agent-team-intake.mdc` on-demand) |
12
+ | Новая фича end-to-end | skill `feature-delivery` + `feature-delivery-workflow.mdc` |
13
+ | Стек и слои | `ios-app-core.mdc` |
14
+ | Эталонные Feature | `reference-features.mdc` (примеры `Features/Orders/…`; заменить на реальные пути) |
15
+ | Toolchain / схемы | `xcode-tooling.mdc` (requestable) |
16
+ | После правок Swift | `post-change-build.mdc` (**requestable**, обязателен после edits; полный gate — `build-verifier`) |
17
+ | Code review MR | skill `code-review` + `code-review-mr.mdc` |
18
+ | UI-тесты | skill `xcuitest-e2e` + agents `xcuitest-test-*` |
19
+ | Security / Keychain | `security-ios.mdc` |
20
+ | Валидация перед review | agent `build-verifier` (для preset: ещё проверка chain≠next) |
21
+ | Техническое ретро | `/technical-retro` + skill `technical-retro` |
22
+
23
+ ## Dogfood (5 сценариев)
24
+
25
+ 1. `/task` — новая Feature под `Features/<Name>`.
26
+ 2. Баг ViewModel — debugger + unit test.
27
+ 3. Mapper — unit-test-planner/generator.
28
+ 4. UI flow — xcuitest trio.
29
+ 5. Auth/Keychain — security-reviewer + `security-ios.mdc`.
30
+
31
+ ## Когда использовать `/task`
32
+
33
+ - Реализация, багфикс, миграция, тесты, ревью MR, CI-fix — **предпочтительно через `/task`**.
34
+ - Простой one-liner без архитектурного риска — можно без pipeline, если пользователь явно просит.
35
+ - Вопросы «как работает X» — ответ без `/task`.
36
+
37
+ ## Pipeline routing
38
+
39
+ Intent detection, profiles (`full` / `standard` / `light`), and default steps — **only** in `agents/task-router.md`. Schema and rename map (Playwright → XCUITest) — `agents/README.md`.
40
+
41
+ ## Install
42
+
43
+ ```bash
44
+ npx @bonesofspring/ai-rules init cursor --preset ios-swift
45
+ ```
46
+
47
+ Копирует rules, commands, agents, hooks, skills, team, `hooks.json`, `BUGBOT.md`, `AGENTS.md`, `MCP.md`, `mcp.json` → `.cursor/mcp.json`.
@@ -0,0 +1,15 @@
1
+ # Cursor Bugbot Review Guidelines (iOS)
2
+
3
+ Follow the **`code-review` skill** and **`code-review-mr.mdc`** for the full checklist.
4
+
5
+ ## Priorities
6
+
7
+ 1. Correctness regressions and runtime bugs (crashes, wrong state, concurrency races).
8
+ 2. Architecture boundary violations (`architecture-boundaries.mdc`): View↛API/DTO, Domain↛SwiftUI, Data↛Presentation.
9
+ 3. Missing unit tests for mappers / use cases / non-trivial ViewModel logic; XCUITest updates for user flows (`tests-unit.mdc`, `tests-ui.mdc`).
10
+ 4. Concurrency and safety (`swift-conventions.mdc`): `@MainActor`, typed errors, no unjustified force unwrap; SPM public API / no deep-imports (`module-public-api.mdc`).
11
+ 5. Security-sensitive diffs: Keychain, tokens, PII, ATS (`security-ios.mdc`).
12
+
13
+ ## Review style
14
+
15
+ Lead with concrete findings: file, impact, fix direction. Skip style-only nits unless they violate SwiftLint/project conventions.