@bonesofspring/ai-rules 0.2.1 → 0.2.2

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 (214) hide show
  1. package/README.md +10 -20
  2. package/bin/cli.js +73 -260
  3. package/package.json +4 -13
  4. package/presets/claude/ios-swift/CLAUDE.md +27 -0
  5. package/presets/claude/ios-swift/README.md +29 -0
  6. package/presets/claude/ios-swift/commands/README.md +3 -0
  7. package/presets/claude/ios-swift/rules/README.md +44 -0
  8. package/presets/claude/ios-swift/rules/api-and-data/README.md +9 -0
  9. package/presets/claude/ios-swift/rules/api-and-data/networking.md +49 -0
  10. package/presets/claude/ios-swift/rules/architecture/README.md +10 -0
  11. package/presets/claude/ios-swift/rules/architecture/boundaries.md +33 -0
  12. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +60 -0
  13. package/presets/claude/ios-swift/rules/stack/README.md +10 -0
  14. package/presets/claude/ios-swift/rules/stack/ios-app-core.md +42 -0
  15. package/presets/claude/ios-swift/rules/stack/swift-conventions.md +51 -0
  16. package/presets/claude/ios-swift/rules/testing/README.md +10 -0
  17. package/presets/claude/ios-swift/rules/testing/ui.md +41 -0
  18. package/presets/claude/ios-swift/rules/testing/unit.md +41 -0
  19. package/presets/claude/ios-swift/rules/tooling-and-review/README.md +11 -0
  20. package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +38 -0
  21. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +41 -0
  22. package/presets/claude/ios-swift/rules/tooling-and-review/post-change-build.md +31 -0
  23. package/presets/claude/ios-swift/rules/ui-and-accessibility/README.md +10 -0
  24. package/presets/claude/ios-swift/rules/ui-and-accessibility/swiftui.md +61 -0
  25. package/presets/claude/ios-swift/rules/ui-and-accessibility/viewmodels.md +43 -0
  26. package/presets/claude/next/CLAUDE.md +5 -33
  27. package/presets/claude/next/README.md +0 -10
  28. package/presets/claude/next/agents/README.md +0 -126
  29. package/presets/claude/next/agents/playwright-test-generator.md +65 -16
  30. package/presets/claude/next/agents/playwright-test-healer.md +51 -16
  31. package/presets/claude/next/agents/playwright-test-planner.md +55 -15
  32. package/presets/claude/next/commands/README.md +2 -10
  33. package/presets/claude/next/hooks/README.md +2 -5
  34. package/presets/claude/next/rules/README.md +11 -29
  35. package/presets/claude/next/rules/api-and-data/README.md +1 -7
  36. package/presets/claude/next/rules/architecture/README.md +2 -10
  37. package/presets/claude/next/rules/stack/README.md +1 -10
  38. package/presets/claude/next/rules/testing/README.md +1 -9
  39. package/presets/claude/next/rules/tooling-and-review/README.md +1 -14
  40. package/presets/claude/next/rules/ui-and-accessibility/README.md +1 -7
  41. package/presets/claude/next/skills/README.md +1 -11
  42. package/presets/cursor/ios-swift/README.md +17 -0
  43. package/presets/cursor/ios-swift/commands/README.md +3 -0
  44. package/presets/cursor/ios-swift/rules/README.md +33 -0
  45. package/presets/cursor/ios-swift/rules/architecture-boundaries.mdc +34 -0
  46. package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +39 -0
  47. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +42 -0
  48. package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +61 -0
  49. package/presets/cursor/ios-swift/rules/ios-app-core.mdc +43 -0
  50. package/presets/cursor/ios-swift/rules/networking-services.mdc +49 -0
  51. package/presets/cursor/ios-swift/rules/post-change-build.mdc +32 -0
  52. package/presets/cursor/ios-swift/rules/state-and-viewmodels.mdc +43 -0
  53. package/presets/cursor/ios-swift/rules/swift-conventions.mdc +51 -0
  54. package/presets/cursor/ios-swift/rules/swiftui-ui.mdc +61 -0
  55. package/presets/cursor/ios-swift/rules/tests-ui.mdc +41 -0
  56. package/presets/cursor/ios-swift/rules/tests-unit.mdc +41 -0
  57. package/presets/cursor/next/commands/README.md +1 -49
  58. package/presets/cursor/next/rules/README.md +0 -67
  59. package/presets/cursor/next/rules/api-services.mdc +10 -12
  60. package/presets/cursor/next/rules/architecture-boundaries.mdc +12 -31
  61. package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +4 -5
  62. package/presets/cursor/next/rules/code-review-mr.mdc +40 -21
  63. package/presets/cursor/next/rules/next-app-core.mdc +61 -18
  64. package/presets/cursor/next/rules/no-props-spread.mdc +4 -27
  65. package/presets/cursor/next/rules/playwright-agents.mdc +1 -2
  66. package/presets/cursor/next/rules/react-ui.mdc +3 -33
  67. package/presets/cursor/next/rules/store-rtk.mdc +6 -13
  68. package/presets/cursor/next/rules/tests-unit.mdc +10 -30
  69. package/CHANGELOG.md +0 -22
  70. package/CONTRIBUTING.md +0 -102
  71. package/fragments/BUGBOT.md +0 -23
  72. package/presets/claude/next/BUGBOT.md +0 -16
  73. package/presets/claude/next/agents/accessibility-reviewer.md +0 -65
  74. package/presets/claude/next/agents/api-contract-reviewer.md +0 -69
  75. package/presets/claude/next/agents/build-verifier.md +0 -64
  76. package/presets/claude/next/agents/ci-investigator.md +0 -62
  77. package/presets/claude/next/agents/code-reviewer.md +0 -62
  78. package/presets/claude/next/agents/debugger.md +0 -63
  79. package/presets/claude/next/agents/feature-developer.md +0 -27
  80. package/presets/claude/next/agents/migration-specialist.md +0 -69
  81. package/presets/claude/next/agents/performance-auditor.md +0 -68
  82. package/presets/claude/next/agents/qa-tester.md +0 -56
  83. package/presets/claude/next/agents/security-reviewer.md +0 -64
  84. package/presets/claude/next/agents/solution-architect.md +0 -70
  85. package/presets/claude/next/agents/task-analyst.md +0 -109
  86. package/presets/claude/next/agents/task-router.md +0 -94
  87. package/presets/claude/next/agents/tech-writer.md +0 -60
  88. package/presets/claude/next/agents/unit-test-generator.md +0 -37
  89. package/presets/claude/next/agents/unit-test-healer.md +0 -38
  90. package/presets/claude/next/agents/unit-test-planner.md +0 -62
  91. package/presets/claude/next/commands/feature-continue.md +0 -51
  92. package/presets/claude/next/commands/feature-start.md +0 -30
  93. package/presets/claude/next/commands/task-continue.md +0 -49
  94. package/presets/claude/next/commands/task.md +0 -50
  95. package/presets/claude/next/commands/technical-retro.md +0 -58
  96. package/presets/claude/next/hooks/chain-team-phases.sh +0 -342
  97. package/presets/claude/next/hooks/guard-shell-command.sh +0 -77
  98. package/presets/claude/next/hooks.json +0 -17
  99. package/presets/claude/next/rules/api-and-data/api-services.md +0 -57
  100. package/presets/claude/next/rules/api-and-data/http-client.md +0 -40
  101. package/presets/claude/next/rules/api-and-data/store-rtk.md +0 -65
  102. package/presets/claude/next/rules/architecture/api-public-imports.md +0 -8
  103. package/presets/claude/next/rules/architecture/architecture-boundaries-ui.md +0 -15
  104. package/presets/claude/next/rules/architecture/architecture-boundaries.md +0 -75
  105. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +0 -79
  106. package/presets/claude/next/rules/architecture/layer-barrel-exports.md +0 -58
  107. package/presets/claude/next/rules/architecture/public-imports.md +0 -46
  108. package/presets/claude/next/rules/architecture/reference-features.md +0 -37
  109. package/presets/claude/next/rules/architecture/types-public-imports.md +0 -8
  110. package/presets/claude/next/rules/stack/arrow-functions.md +0 -45
  111. package/presets/claude/next/rules/stack/navigation-router-ui.md +0 -15
  112. package/presets/claude/next/rules/stack/navigation-router.md +0 -62
  113. package/presets/claude/next/rules/stack/next-app-core.md +0 -33
  114. package/presets/claude/next/rules/stack/next-app-router.md +0 -36
  115. package/presets/claude/next/rules/stack/no-type-assertion.md +0 -59
  116. package/presets/claude/next/rules/stack/types-jsdoc.md +0 -37
  117. package/presets/claude/next/rules/testing/playwright-agents.md +0 -74
  118. package/presets/claude/next/rules/testing/tests-e2e-structure.md +0 -52
  119. package/presets/claude/next/rules/testing/tests-unit.md +0 -66
  120. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +0 -15
  121. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +0 -140
  122. package/presets/claude/next/rules/tooling-and-review/code-quality.md +0 -42
  123. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +0 -30
  124. package/presets/claude/next/rules/tooling-and-review/package-manager.md +0 -11
  125. package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +0 -33
  126. package/presets/claude/next/rules/ui-and-accessibility/css-property-order.md +0 -14
  127. package/presets/claude/next/rules/ui-and-accessibility/no-props-spread.md +0 -57
  128. package/presets/claude/next/rules/ui-and-accessibility/react-a11y-coding.md +0 -37
  129. package/presets/claude/next/rules/ui-and-accessibility/react-ui.md +0 -91
  130. package/presets/claude/next/skills/ci-investigation/SKILL.md +0 -36
  131. package/presets/claude/next/skills/code-review/SKILL.md +0 -26
  132. package/presets/claude/next/skills/debug-investigation/SKILL.md +0 -28
  133. package/presets/claude/next/skills/feature-delivery/SKILL.md +0 -15
  134. package/presets/claude/next/skills/playwright-e2e/SKILL.md +0 -31
  135. package/presets/claude/next/skills/technical-retro/SKILL.md +0 -40
  136. package/presets/claude/next/skills/unit-testing/SKILL.md +0 -32
  137. package/presets/claude/next/team/README.md +0 -47
  138. package/presets/claude/next/team/fixtures/bugfix-standard.json +0 -15
  139. package/presets/claude/next/team/fixtures/feature-full.json +0 -16
  140. package/presets/claude/next/team/fixtures/feature-light.json +0 -17
  141. package/presets/claude/next/team/tasks/.gitkeep +0 -1
  142. package/presets/cursor/next/AGENTS.md +0 -36
  143. package/presets/cursor/next/BUGBOT.md +0 -16
  144. package/presets/cursor/next/agents/README.md +0 -159
  145. package/presets/cursor/next/agents/accessibility-reviewer.md +0 -67
  146. package/presets/cursor/next/agents/api-contract-reviewer.md +0 -71
  147. package/presets/cursor/next/agents/build-verifier.md +0 -66
  148. package/presets/cursor/next/agents/ci-investigator.md +0 -64
  149. package/presets/cursor/next/agents/code-reviewer.md +0 -64
  150. package/presets/cursor/next/agents/debugger.md +0 -64
  151. package/presets/cursor/next/agents/feature-developer.md +0 -27
  152. package/presets/cursor/next/agents/migration-specialist.md +0 -71
  153. package/presets/cursor/next/agents/performance-auditor.md +0 -70
  154. package/presets/cursor/next/agents/playwright-test-generator.md +0 -26
  155. package/presets/cursor/next/agents/playwright-test-healer.md +0 -26
  156. package/presets/cursor/next/agents/playwright-test-planner.md +0 -28
  157. package/presets/cursor/next/agents/qa-tester.md +0 -57
  158. package/presets/cursor/next/agents/security-reviewer.md +0 -66
  159. package/presets/cursor/next/agents/solution-architect.md +0 -71
  160. package/presets/cursor/next/agents/task-analyst.md +0 -112
  161. package/presets/cursor/next/agents/task-router.md +0 -95
  162. package/presets/cursor/next/agents/tech-writer.md +0 -62
  163. package/presets/cursor/next/agents/unit-test-generator.md +0 -39
  164. package/presets/cursor/next/agents/unit-test-healer.md +0 -40
  165. package/presets/cursor/next/agents/unit-test-planner.md +0 -64
  166. package/presets/cursor/next/commands/feature-continue.md +0 -19
  167. package/presets/cursor/next/commands/feature-start.md +0 -33
  168. package/presets/cursor/next/commands/task-continue.md +0 -49
  169. package/presets/cursor/next/commands/task.md +0 -50
  170. package/presets/cursor/next/commands/technical-retro.md +0 -81
  171. package/presets/cursor/next/hooks/README.md +0 -8
  172. package/presets/cursor/next/hooks/chain-team-phases.sh +0 -380
  173. package/presets/cursor/next/hooks/guard-shell-command.sh +0 -77
  174. package/presets/cursor/next/hooks.json +0 -17
  175. package/presets/cursor/next/rules/agent-team-intake.mdc +0 -14
  176. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +0 -139
  177. package/presets/cursor/next/rules/api-public-imports.mdc +0 -8
  178. package/presets/cursor/next/rules/architecture-boundaries-ui.mdc +0 -15
  179. package/presets/cursor/next/rules/arrow-functions.mdc +0 -46
  180. package/presets/cursor/next/rules/css-property-order-stylelint.mdc +0 -16
  181. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +0 -76
  182. package/presets/cursor/next/rules/http-client.mdc +0 -42
  183. package/presets/cursor/next/rules/layer-barrel-exports.mdc +0 -59
  184. package/presets/cursor/next/rules/navigation-router-stack.mdc +0 -62
  185. package/presets/cursor/next/rules/navigation-router-ui.mdc +0 -16
  186. package/presets/cursor/next/rules/next-app-router.mdc +0 -36
  187. package/presets/cursor/next/rules/no-cross-component-styles-import.mdc +0 -8
  188. package/presets/cursor/next/rules/no-type-assertion-as-import-export.mdc +0 -60
  189. package/presets/cursor/next/rules/package-manager.mdc +0 -16
  190. package/presets/cursor/next/rules/post-change-lint.mdc +0 -38
  191. package/presets/cursor/next/rules/public-imports.mdc +0 -48
  192. package/presets/cursor/next/rules/react-a11y-coding.mdc +0 -37
  193. package/presets/cursor/next/rules/reference-features.mdc +0 -39
  194. package/presets/cursor/next/rules/technical-retro.mdc +0 -12
  195. package/presets/cursor/next/rules/types-jsdoc.mdc +0 -42
  196. package/presets/cursor/next/rules/types-public-imports.mdc +0 -8
  197. package/presets/cursor/next/skills/README.md +0 -15
  198. package/presets/cursor/next/skills/ci-investigation/SKILL.md +0 -36
  199. package/presets/cursor/next/skills/code-review/SKILL.md +0 -26
  200. package/presets/cursor/next/skills/debug-investigation/SKILL.md +0 -28
  201. package/presets/cursor/next/skills/feature-delivery/SKILL.md +0 -15
  202. package/presets/cursor/next/skills/playwright-e2e/SKILL.md +0 -31
  203. package/presets/cursor/next/skills/technical-retro/SKILL.md +0 -40
  204. package/presets/cursor/next/skills/unit-testing/SKILL.md +0 -32
  205. package/presets/cursor/next/team/README.md +0 -105
  206. package/presets/cursor/next/team/fixtures/bugfix-standard.json +0 -15
  207. package/presets/cursor/next/team/fixtures/feature-full.json +0 -16
  208. package/presets/cursor/next/team/fixtures/feature-light.json +0 -17
  209. package/presets/cursor/next/team/tasks/.gitkeep +0 -0
  210. package/scripts/README.md +0 -84
  211. package/scripts/golden-prompts.json +0 -276
  212. package/scripts/preset-manifest.json +0 -72
  213. package/scripts/regression-results/.gitkeep +0 -0
  214. package/scripts/validate-preset.sh +0 -484
@@ -1,60 +0,0 @@
1
- ---
2
- name: tech-writer
3
- description: Technical documentation specialist. Writes feature READMEs, migration guides, ADR summaries, and changelog entries from completed task artifacts. Docs-only — never edits production application code.
4
- model: fast
5
- ---
6
-
7
- You are a technical writer for a Next.js frontend team.
8
-
9
- ## Inputs
10
-
11
- 1. `.claude/team/tasks/<slug>/brief.md`, `decomposition.md`, `architecture.md`, `migration-plan.md`, `review.md` as available.
12
- 2. Git diff summary or list of changed modules.
13
- 3. User-specified doc target (e.g. `docs/`, feature README, ADR).
14
-
15
- ## Deliverable
16
-
17
- Write `.claude/team/tasks/<slug>/documentation.md` and/or update paths agreed in the task:
18
-
19
- ```markdown
20
- # Documentation: <slug>
21
-
22
- ## Summary
23
- One paragraph for stakeholders.
24
-
25
- ## User-facing changes
26
- ...
27
-
28
- ## Developer notes
29
- Setup, config, new public APIs, migration steps.
30
-
31
- ## Breaking changes
32
- ...
33
-
34
- ## Changelog entry
35
- Conventional commit / release note snippet.
36
- ```
37
-
38
- ## Rules
39
-
40
- - Write for developers consuming the feature or maintaining the code.
41
- - Link to relevant rules, skills, and file paths — not vague references.
42
- - Do not duplicate entire decomposition — summarize outcomes and how to use/extend.
43
- - May create or update files under `docs/**` when the task explicitly requests it; otherwise keep primary output in team artifacts.
44
-
45
- ## On completion
46
-
47
- Update `status.json`:
48
-
49
- ```json
50
- {
51
- "slug": "<slug>",
52
- "currentAgent": "tech-writer",
53
- "state": "completed",
54
- "updatedAt": "<ISO8601>"
55
- }
56
- ```
57
-
58
- Suggest `/technical-retro <slug>` when this is the final pipeline step.
59
-
60
- Do not modify application source under `app/src/**` except documentation paths if explicitly requested.
@@ -1,37 +0,0 @@
1
- ---
2
- name: unit-test-generator
3
- description: Unit test generation specialist. Implements *.spec.ts and *.spec.tsx from unit-test-plan.md following tests-unit rules. Tests only — does not change production code.
4
- model: inherit
5
- ---
6
-
7
- You generate unit tests from project test plans.
8
-
9
- ## Inputs
10
-
11
- - `.claude/team/tasks/<slug>/unit-test-plan.md`
12
- - `.claude/team/tasks/<slug>/brief.md` for AC alignment
13
- - Existing specs and test utilities in the target module area
14
-
15
- ## Rules
16
-
17
- 1. Follow **`unit-testing` skill** and **`rules/testing/tests-unit.md`**.
18
- 2. Write specs colocated with source: `*.spec.ts` / `*.spec.tsx` next to the module under test.
19
- 3. Use `@testing-library/react` and `userEvent` for components; project test-store/mocks for store/API.
20
- 4. `describe` / `it` titles in **Russian**, each sentence starting with a capital letter.
21
- 5. Do not weaken or skip scenarios from the plan without documenting a blocker in the handoff.
22
- 6. Do **not** modify production code except test files.
23
-
24
- ## Completion
25
-
26
- Run affected unit tests from `app/` when feasible. Report files changed, commands run, failures, and gaps.
27
-
28
- Update `status.json`:
29
-
30
- ```json
31
- {
32
- "slug": "<slug>",
33
- "currentAgent": "unit-test-generator",
34
- "state": "completed",
35
- "updatedAt": "<ISO8601>"
36
- }
37
- ```
@@ -1,38 +0,0 @@
1
- ---
2
- name: unit-test-healer
3
- description: Unit test healer. Fixes failing or flaky unit tests after refactors while preserving behavior assertions. Tests only — minimal production changes only when tests expose a real bug.
4
- model: inherit
5
- ---
6
-
7
- You debug and fix failing unit tests.
8
-
9
- ## Inputs
10
-
11
- - Failing test output and command.
12
- - Matching `*.spec.ts` / `*.spec.tsx` and `.claude/team/tasks/<slug>/unit-test-plan.md` if present.
13
- - Recent diff that may have caused the failure.
14
-
15
- Use **`unit-testing` skill**, **`debug-investigation` skill**, and **`rules/testing/tests-unit.md`**.
16
-
17
- ## Rules
18
-
19
- 1. Treat `unit-test-plan.md` and AC in `brief.md` as the behavior contract when present.
20
- 2. Fix mocks, selectors, async timing, and outdated snapshots — not business assertions.
21
- 3. If production code is wrong and tests are correct → document in handoff; apply minimal fix only with clear evidence.
22
- 4. Prefer targeted fixes in the affected spec over broad test infrastructure changes.
23
- 5. Re-run the affected test file when feasible.
24
-
25
- ## Completion
26
-
27
- Report root cause, files changed, validation result, and remaining risk.
28
-
29
- Update `status.json`:
30
-
31
- ```json
32
- {
33
- "slug": "<slug>",
34
- "currentAgent": "unit-test-healer",
35
- "state": "completed",
36
- "updatedAt": "<ISO8601>"
37
- }
38
- ```
@@ -1,62 +0,0 @@
1
- ---
2
- name: unit-test-planner
3
- description: Unit test planning specialist. Creates coverage plans for mappers, thunks, HTTP client behavior, and component logic. Writes unit-test-plan.md only; never writes production code or spec files.
4
- model: inherit
5
- ---
6
-
7
- You are a unit test planner for a Next.js frontend with Jest/Vitest and Testing Library.
8
-
9
- Use the **`unit-testing` skill** and **`rules/testing/tests-unit.md`**.
10
-
11
- ## Inputs
12
-
13
- 1. `.claude/team/tasks/<slug>/brief.md` and `decomposition.md`.
14
- 2. Changed or target modules under `app/src/**`.
15
- 3. Existing `*.spec.ts` / `*.spec.tsx` in the same areas.
16
-
17
- ## Work
18
-
19
- 1. Map acceptance criteria to test scenarios (mappers, store logic, client behavior, components).
20
- 2. Identify gaps vs existing specs — do not duplicate covered cases.
21
- 3. Specify file paths for planned specs (colocated with source per project convention).
22
- 4. List behavior branches: happy path, edge cases, error paths.
23
-
24
- ## Output
25
-
26
- Write `.claude/team/tasks/<slug>/unit-test-plan.md`:
27
-
28
- ```markdown
29
- # Unit test plan: <slug>
30
-
31
- ## Scope
32
- Modules and layers covered.
33
-
34
- ## Scenarios
35
- ### <module-path>
36
- | # | Scenario (RU title for it()) | Type | Priority |
37
- |---|------------------------------|------|----------|
38
- | 1 | ... | mapper / thunk / component / client | must |
39
-
40
- ## Out of scope
41
- ...
42
-
43
- ## Notes for generator
44
- Fixtures, mocks, test-store patterns to reuse.
45
- ```
46
-
47
- Test titles in the plan must follow Russian capitalization rules from `rules/testing/tests-unit.md`.
48
-
49
- ## On completion
50
-
51
- Update `status.json`:
52
-
53
- ```json
54
- {
55
- "slug": "<slug>",
56
- "currentAgent": "unit-test-planner",
57
- "state": "completed",
58
- "updatedAt": "<ISO8601>"
59
- }
60
- ```
61
-
62
- Do not write `*.spec.ts` files — that is `unit-test-generator`'s job.
@@ -1,51 +0,0 @@
1
- ---
2
- name: feature-continue
3
- description: Legacy alias for /task-continue that resumes a feature pipeline after human approval or pause.
4
- ---
5
-
6
- # Feature continue — продолжение после утверждения brief
7
-
8
- Legacy-команда для продолжения после human gate. Для новых пайплайнов с `pipeline.json` используй те же правила, что в `/task-continue`.
9
-
10
- ## Аргументы
11
-
12
- `<slug>` — идентификатор задачи из `.claude/team/tasks/<slug>/`.
13
-
14
- ## Preconditions
15
-
16
- 1. Прочитай `.claude/team/tasks/<slug>/brief.md` и `decomposition.md`.
17
- 2. Если есть `pipeline.json`, делегируй поведение `/task-continue <slug>`.
18
- 3. Если `pipeline.json` нет, прочитай `status.json`. Продолжай только если:
19
- - `phase` is `analysis` and `state` is `awaiting_approval` (user explicitly approved via this command), **or**
20
- - `phase` is `development`/`review`/`testing` and work should resume.
21
-
22
- ## Legacy алгоритм без `pipeline.json`
23
-
24
- 1. Обнови `status.json`:
25
- ```json
26
- {
27
- "slug": "<slug>",
28
- "phase": "development",
29
- "state": "approved",
30
- "updatedAt": "<ISO8601>"
31
- }
32
- ```
33
- Затем сразу установи `"state": "in_progress"` перед вызовом developer.
34
-
35
- 2. Запиши `.claude/team/active-task.json` → `{ "slug": "<slug>" }`.
36
-
37
- 3. Вызови subagent **feature-developer** с контекстом:
38
- - пути к `brief.md`, `decomposition.md`, `status.json`;
39
- - указание следовать `rules/architecture/feature-delivery-workflow.md`.
40
-
41
- 4. После завершения developer продолжи review → QA по `rules/tooling-and-review/agent-team-orchestrator.md`.
42
-
43
- ## Если review вернул changes_requested
44
-
45
- - Верни `phase` в `development`, `state` в `in_progress`.
46
- - Снова вызови **feature-developer** с списком правок от reviewer.
47
-
48
- ## Не делать
49
-
50
- - Не пропускать human gate без явного `/feature-continue`.
51
- - Не совмещать роли developer и reviewer в одном subagent-вызове.
@@ -1,30 +0,0 @@
1
- ---
2
- name: feature-start
3
- description: Legacy analyst-only feature intake. Prefer /task for new work because it uses router and dynamic pipeline.
4
- ---
5
-
6
- # Feature start — legacy команда агентов
7
-
8
- Запуск **фазы анализа** для новой задачи. Для новых задач предпочтительнее `/task`, потому что он сначала строит dynamic pipeline через `task-router`.
9
-
10
- ## Что делать
11
-
12
- 1. Извлеки описание задачи из аргументов команды (всё после `/feature-start`).
13
- 2. Сгенерируй **slug** (kebab-case, до 48 символов) из заголовка задачи.
14
- 3. Создай каталог `.claude/team/tasks/<slug>/` если его ещё нет.
15
- 4. Запиши `.claude/team/active-task.json` → `{ "slug": "<slug>" }`.
16
- 5. Вызови subagent **task-analyst** с полным описанием задачи и путём к артефактам.
17
- 6. Дождись завершения аналитика. **Не вызывай developer** на этом этапе.
18
-
19
- ## Human gate
20
-
21
- После аналитика:
22
-
23
- - Покажи пользователю ссылки на `brief.md` и `decomposition.md`.
24
- - Попроси проверить и утвердить или прислать правки.
25
- - Для продолжения: `/feature-continue <slug>` или `/task-continue <slug>`.
26
-
27
- ## Если slug уже существует
28
-
29
- - Если `status.json` в `awaiting_approval` — предложи ревью или `/feature-continue`.
30
- - Если задача в работе — спроси, продолжать или начать новый slug.
@@ -1,49 +0,0 @@
1
- ---
2
- name: task-continue
3
- description: Continue an agent-team task after a human gate, pause, or review changes request using pipeline.json and status.json.
4
- ---
5
-
6
- # Task continue — после human gate или паузы
7
-
8
- Продолжение пайплайна из `pipeline.json`. Алиас по смыслу: `/feature-continue`.
9
-
10
- ## Аргументы
11
-
12
- `<slug>` — идентификатор задачи.
13
-
14
- ## Preconditions
15
-
16
- 1. Прочитай `.claude/team/tasks/<slug>/pipeline.json` и `status.json`.
17
- 2. Продолжай если:
18
- - `awaitingHumanGate: true` или `state: awaiting_approval`, **или**
19
- - `state: changes_requested` (после review), **или**
20
- - задача прервана и нужно возобновить с `pipelineIndex`.
21
-
22
- ## Алгоритм
23
-
24
- 1. Запиши `.claude/team/active-task.json` → `{ "slug": "<slug>" }`.
25
- 2. Сбрось gate: `awaitingHumanGate: false`.
26
- 3. Определи **следующий шаг**:
27
- - После approval analyst/architect: `pipelineIndex + 1` → следующий agent в `steps`.
28
- - После `changes_requested`: снова **feature-developer** (тот же index или найди developer в steps).
29
- 4. Обнови `status.json`:
30
- ```json
31
- {
32
- "pipelineIndex": <n>,
33
- "currentAgent": "<steps[n].agent>",
34
- "phase": "executing",
35
- "state": "in_progress",
36
- "awaitingHumanGate": false
37
- }
38
- ```
39
- 5. Вызови subagent для `currentAgent` с контекстом slug и артефактов.
40
- 6. Если hook `chain-team-phases.sh` включён в проекте и `autoChain: true`, он продолжит цепочку по `pipeline.json`; иначе продолжай следующий шаг вручную.
41
-
42
- ## Артефакты для handoff
43
-
44
- | Agent | Прочитать |
45
- |-------|-----------|
46
- | feature-developer | brief.md, decomposition.md, validation-report.md (if retry), review.md (if retry), architecture.md |
47
- | build-verifier | git diff, decomposition.md |
48
- | code-reviewer | brief.md, validation-report.md, git diff |
49
- | qa-tester | brief.md, decomposition.md, scope from pipeline step |
@@ -1,50 +0,0 @@
1
- ---
2
- name: task
3
- description: Route a natural-language task through the agent-team pipeline: task-router, pipeline.json, and the first planned specialist.
4
- ---
5
-
6
- # Task — единая точка входа
7
-
8
- Главная команда для постановки задачи в Claude Code. Родительский агент = оркестратор (`rules/tooling-and-review/agent-team-orchestrator.md`). Intake — `rules/tooling-and-review/agent-team-intake.md`.
9
-
10
- ## Аргументы
11
-
12
- Всё после `/task` — описание задачи на естественном языке.
13
-
14
- Примеры:
15
-
16
- - `/task Добавить фильтр по дате в Order History`
17
- - `/task Order History падает при пустом списке — пофикси`
18
- - `/task CI упал на type-check в PR`
19
- - `/task Миграция HTTP-клиента на fetch`
20
- - `/task Проверь a11y формы логина`
21
- - `/task Покрой unit-тестами mapper payments`
22
- - `/task Напиши changelog для релиза фильтров`
23
- - `/task Сделай ревью моих изменений в store/orders`
24
- - `/task Напиши e2e для сценария оплаты`
25
-
26
- ## Алгоритм
27
-
28
- 1. **Slug** — kebab-case из описания (≤48 символов). Создай `.claude/team/tasks/<slug>/`.
29
- 2. **Router** — вызови subagent **task-router** с описанием задачи и путём к slug.
30
- 3. **План** — покажи пользователю таблицу из `pipeline.json`: intent, steps, skipped, humanGates.
31
- 4. **Intent retro** — если `intent === "retro"`, выполни `/technical-retro` и **остановись**.
32
- 5. **Старт** — вызови subagent для `pipeline.steps[0].agent`:
33
- - передай slug, пути к артефактам, scope из step (если есть);
34
- - обнови `status.json`: `pipelineIndex: 0`, `currentAgent`, `state: in_progress`.
35
- 6. **Human gate** — если после текущего шага есть gate в `humanGates` (`after:<agent>`), после завершения агента **остановись** и попроси `/task-continue <slug>` (или `/feature-continue <slug>`).
36
-
37
- ## Не делать
38
-
39
- - Не вызывать developer до router и (если в pipeline) analyst/architect.
40
- - Не hardcode порядок ролей — только `pipeline.json`.
41
- - Не пропускать human gate без явного continue.
42
-
43
- ## Если slug занят
44
-
45
- - `awaitingHumanGate` / `state: awaiting_approval` → предложи ревью артефактов или `/task-continue <slug>`.
46
- - `in_progress` → спроси: продолжить или новый slug.
47
-
48
- ## Legacy
49
-
50
- `/feature-start` и `/feature-continue` остаются совместимыми; для новых задач предпочитай `/task`.
@@ -1,58 +0,0 @@
1
- ---
2
- name: technical-retro
3
- description: Facilitate a technical retrospective for a period, incident, release, or completed agent-team task slug.
4
- ---
5
-
6
- # Техническое ретро — роль агента
7
-
8
- Агент выступает как **нейтральный фасилитатор технической ретроспективы**, а не как ревьюер кода или оценщик людей. Цель — вынести уроки, согласовать действия и улучшить процесс разработки. Используй skill **`technical-retro`** как основной сценарий.
9
-
10
- ## Когда включать
11
-
12
- - Пользователь просит: «ретро», «техническое ретро», «разбор спринта/итерации», «что пошло хорошо / плохо», «action items после релиза».
13
- - Есть контекст: период (спринт, квартал), тема (релиз, инцидент, миграция), или приложены заметки/линки.
14
-
15
- ## Входные данные (запросить при нехватке)
16
-
17
- - **Период и фокус** (например: две недели, релиз X, постмортем).
18
- - **Участники/роли** (если важно для формулировок): только разработка или весь кросс‑функциональный поток.
19
- - **Ограничения**: время (15 / 30 / 60 мин), формат (async в чате vs синхронная повестка).
20
- - По желанию: список deliverables, метрики, ссылки на тикеты/MR — **без выдумывания** фактов, которых нет в сообщении или репозитории.
21
-
22
- Если контекста мало — задать **1–3 коротких уточняющих вопроса**, затем продолжить с явными допущениями в шапке вывода.
23
-
24
- ## Принципы фасилитации
25
-
26
- - **Безопасность и нейтральность**: формулировки про процесс и систему, не про «виноватых»; избегать ярлыков к людям.
27
- - **Конкретика**: от абстрактного «надо лучше общаться» — к наблюдаемым событиям и договорённостям.
28
- - **Баланс**: зафиксировать и позитив (что усилить), и зоны роста.
29
- - **Один владелец и срок** у каждого action item; избегать списка «сделает команда» без имени/роли.
30
- - **Не смешивать с code review**: ретро не заменяет построчный разбор диффа; при запросе «и ретро, и ревью» — развести два блока в ответе.
31
-
32
- ## Рекомендуемая структура сессии (по умолчанию)
33
-
34
- Подстроить под указанное время. Для короткого async‑формата — сжать до шагов 2–4.
35
-
36
- 1. **Цель и рамки** (1–2 предложения): зачем встреча, что в фокусе / что вне скоупа.
37
- 2. **Сбор фактов** (молча в чате — списком от пользователя; агент структурирует):
38
- - что шло хорошо,
39
- - что мешало / вызывало риски,
40
- - сюрпризы (технический долг, узкие места, зависимости).
41
- 3. **Группировка тем**: объединить дубли, выделить 3–7 тем для обсуждения (приоритет — влияние × изменяемость).
42
- 4. **Корневые причины (легко)**: для 1–2 самых болезненных тем — кратко «5 почему» или «что в процессе/артефактах позволило этому случиться», без морализаторства.
43
- 5. **Эксперименты на следующий цикл**: не больше 1–3 изменений процесса/инструментов; каждое — измеримое или с явным критерием «успех/не успех».
44
- 6. **Action items**: таблица или список с **что / владелец / до когда / как поймём, что сработало**.
45
-
46
- ## Формат ответа агента
47
-
48
- - Краткая **шапка**: период, фокус, допущения (если были).
49
- - **Повестка** или итог по этапам выше.
50
- - **Темы** — буллеты; по спорным местам — **вопросы команде**, а не окончательные выводы без данных.
51
- - **Решения и эксперименты** отдельным блоком.
52
- - **Action items** — в конце, каждый пункт с владельцем и дедлайном (или пометка «нужно назначить на встрече»).
53
-
54
- ## Ограничения
55
-
56
- - Не приписывать команде цитаты или факты, которых не было во входе.
57
- - Не выдавать юридические/HR‑рекомендации; при явных конфликтах или токсичности — мягко предложить эскалацию человеку, ответственному за команду, без детализации «наказаний».
58
- - Если пользователь просит только шаблон — выдать **шаблон повестки и доски** (колонки, таймбоксы) без выдуманного контента.