@rt-tools/agent-kit 0.23.0 → 0.26.0

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 (288) hide show
  1. package/README.md +8 -2
  2. package/assets/agents/business-analyst.md +51 -50
  3. package/assets/agents/conscience.md +37 -35
  4. package/assets/agents/project-manager.md +49 -48
  5. package/assets/agents/prose-editor.md +31 -29
  6. package/assets/agents/qa-engineer.md +50 -48
  7. package/assets/agents/rules-reviewer.md +63 -58
  8. package/assets/agents/skill-curator.md +83 -78
  9. package/assets/agents/spec-critic.md +34 -29
  10. package/assets/agents/spec-writer.md +35 -32
  11. package/assets/agents/strict-teacher.md +39 -37
  12. package/assets/checks/archive-age.mjs +48 -28
  13. package/assets/checks/archive-prune.mjs +16 -14
  14. package/assets/checks/board-epics.github.mjs +75 -41
  15. package/assets/checks/board-folders.mjs +61 -0
  16. package/assets/checks/board-gh.github.mjs +35 -26
  17. package/assets/checks/board-long-work.github.mjs +24 -24
  18. package/assets/checks/board-paths.github.mjs +21 -16
  19. package/assets/checks/board-runs.github.mjs +45 -43
  20. package/assets/checks/board-titles.github.mjs +19 -17
  21. package/assets/checks/board.github.mjs +150 -128
  22. package/assets/checks/check-archive-age.mjs +23 -19
  23. package/assets/checks/check-board.github.mjs +179 -157
  24. package/assets/checks/check-descriptions.mjs +30 -29
  25. package/assets/checks/check-doc-paths.mjs +104 -82
  26. package/assets/checks/check-dupes.mjs +84 -80
  27. package/assets/checks/check-file-size.mjs +79 -70
  28. package/assets/checks/check-glossary.mjs +47 -37
  29. package/assets/checks/check-hook-scope.mjs +30 -27
  30. package/assets/checks/check-lib-layers.mjs +22 -21
  31. package/assets/checks/check-profile-drift.mjs +48 -43
  32. package/assets/checks/check-prose-style.mjs +125 -33
  33. package/assets/checks/check-push-gate.mjs +53 -50
  34. package/assets/checks/check-reuse.mjs +50 -40
  35. package/assets/checks/check-schema-drift.mjs +87 -83
  36. package/assets/checks/check-specs.mjs +155 -134
  37. package/assets/checks/check-state-next.mjs +66 -52
  38. package/assets/checks/check-states.mjs +32 -30
  39. package/assets/checks/check-styles.mjs +52 -51
  40. package/assets/checks/check-turn-map.mjs +54 -46
  41. package/assets/checks/lib-boundaries.mjs +32 -30
  42. package/assets/checks/lib-common.mjs +30 -29
  43. package/assets/checks/lib-domains.mjs +34 -34
  44. package/assets/checks/lib-manifests.mjs +17 -15
  45. package/assets/checks/lib-reexports.mjs +18 -18
  46. package/assets/checks/rt-kit-checks.config.mjs +174 -142
  47. package/assets/checks/signals.mjs +43 -39
  48. package/assets/checks/spec-anchors.mjs +114 -87
  49. package/assets/checks/spec-common.mjs +128 -84
  50. package/assets/checks/spec-contract.mjs +30 -30
  51. package/assets/checks/spec-proposed.mjs +27 -24
  52. package/assets/checks/spec-scenarios.mjs +51 -28
  53. package/assets/checks/task-new.github.mjs +85 -56
  54. package/assets/commands/feedback.md +65 -59
  55. package/assets/commands/next-session.md +64 -57
  56. package/assets/commands/skill-curator.md +83 -79
  57. package/assets/defaults/gate-map.sh +115 -91
  58. package/assets/defaults/project.sh +228 -178
  59. package/assets/defaults/shell.sh +85 -65
  60. package/assets/defaults/turn-map.md +45 -44
  61. package/assets/docs/GLOSSARY.md +142 -65
  62. package/assets/hooks/browser-device-id.sh +12 -12
  63. package/assets/hooks/browser-guard-device-id.sh +46 -14
  64. package/assets/hooks/browser-guard-no-asking.sh +5 -4
  65. package/assets/hooks/browser-guard-no-listing.sh +12 -11
  66. package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
  67. package/assets/hooks/browser-guard-require-select.sh +34 -23
  68. package/assets/hooks/claim-guard.sh +62 -56
  69. package/assets/hooks/commit-msg.sh +11 -10
  70. package/assets/hooks/conscience-guard.sh +91 -45
  71. package/assets/hooks/constitution-index.sh +16 -16
  72. package/assets/hooks/deny-tail.sh +28 -26
  73. package/assets/hooks/dev-server-guard.sh +46 -43
  74. package/assets/hooks/dispatch.sh +84 -39
  75. package/assets/hooks/docs-guard.sh +105 -86
  76. package/assets/hooks/exam-guard.sh +146 -84
  77. package/assets/hooks/git-guard-delivery-conflict.sh +38 -36
  78. package/assets/hooks/git-guard-delivery-draft.sh +85 -0
  79. package/assets/hooks/git-guard-delivery-folder.sh +50 -43
  80. package/assets/hooks/git-guard-delivery-signature.sh +88 -52
  81. package/assets/hooks/git-guard-delivery.sh +207 -253
  82. package/assets/hooks/git-guard-main.sh +65 -26
  83. package/assets/hooks/git-guard-push-tests.sh +133 -75
  84. package/assets/hooks/glossary-load.sh +23 -22
  85. package/assets/hooks/grill-gate-ask.sh +12 -11
  86. package/assets/hooks/grill-gate.sh +94 -87
  87. package/assets/hooks/guard-note.sh +20 -19
  88. package/assets/hooks/handoff-entry-guard.sh +26 -24
  89. package/assets/hooks/handoff-write.sh +74 -67
  90. package/assets/hooks/hook-input.sh +70 -50
  91. package/assets/hooks/lint-after-edit.sh +95 -61
  92. package/assets/hooks/observe.sh +28 -26
  93. package/assets/hooks/override-write-guard.sh +23 -21
  94. package/assets/hooks/postmortem-guard.sh +42 -39
  95. package/assets/hooks/profile-check.sh +22 -20
  96. package/assets/hooks/proposal-guard.sh +57 -49
  97. package/assets/hooks/prose-style-guard.sh +19 -17
  98. package/assets/hooks/qa-dataid-guard.sh +52 -49
  99. package/assets/hooks/rerun-guard.sh +31 -30
  100. package/assets/hooks/reuse-first-guard.sh +108 -87
  101. package/assets/hooks/roles.sh +14 -14
  102. package/assets/hooks/rule-article.sh +36 -34
  103. package/assets/hooks/rule-source-guard.sh +52 -36
  104. package/assets/hooks/skill-gate-layers.sh +59 -57
  105. package/assets/hooks/skill-gate-rearm.sh +15 -8
  106. package/assets/hooks/skill-gate.sh +89 -81
  107. package/assets/hooks/skill-loaded.sh +6 -6
  108. package/assets/hooks/sql-guard-parse.sh +68 -66
  109. package/assets/hooks/sql-guard-request.sh +48 -46
  110. package/assets/hooks/sql-guard-target.sh +57 -51
  111. package/assets/hooks/sql-guard-write.sh +84 -79
  112. package/assets/hooks/sql-guard.sh +52 -47
  113. package/assets/hooks/stand-login-guard.sh +104 -0
  114. package/assets/hooks/task-context-load.sh +60 -55
  115. package/assets/hooks/task-flow-context.sh +87 -69
  116. package/assets/hooks/task-flow-draft-guard.sh +55 -48
  117. package/assets/hooks/task-flow-guard.sh +67 -64
  118. package/assets/hooks/turn-entry-load.sh +39 -32
  119. package/assets/hooks/turn-exit-guard.sh +256 -204
  120. package/assets/hooks/turn-exit-patterns.sh +53 -0
  121. package/assets/hooks/utf8.sh +11 -11
  122. package/assets/hooks/waiting-turn-guard.sh +94 -94
  123. package/assets/hooks/window-fill-guard.sh +70 -62
  124. package/assets/hooks/work-start-guard.sh +52 -49
  125. package/assets/hooks/write-targets.sh +115 -30
  126. package/assets/laws/autonomous-work.md +29 -27
  127. package/assets/laws/code-structure.md +31 -30
  128. package/assets/laws/delivery.md +148 -137
  129. package/assets/laws/entity-editing.md +52 -50
  130. package/assets/laws/entity-models.md +14 -13
  131. package/assets/laws/frontend-application.md +39 -38
  132. package/assets/laws/lib-imports.md +27 -27
  133. package/assets/laws/lists.md +31 -29
  134. package/assets/laws/navigation.md +37 -37
  135. package/assets/laws/observability.md +41 -40
  136. package/assets/laws/project-documentation.md +106 -99
  137. package/assets/laws/reuse-first.md +31 -29
  138. package/assets/laws/shared-code.md +27 -27
  139. package/assets/laws/verifiability.md +131 -114
  140. package/assets/laws/work-conduct.md +250 -250
  141. package/assets/patterns/admin-lists-screen.md +72 -69
  142. package/assets/patterns/admin-nav-item.md +51 -46
  143. package/assets/patterns/angular-patterns-state.md +32 -31
  144. package/assets/patterns/api-layer-pair.md +33 -31
  145. package/assets/patterns/autonomous-work-run.md +50 -49
  146. package/assets/patterns/browser-verification-measure.md +143 -67
  147. package/assets/patterns/browser-verification-stand.md +181 -128
  148. package/assets/patterns/component-structure-new.md +51 -42
  149. package/assets/patterns/dependencies-upgrade.md +55 -39
  150. package/assets/patterns/doc-style-human.md +93 -0
  151. package/assets/patterns/doc-style-sweep.md +82 -79
  152. package/assets/patterns/doc-style-trace.md +87 -81
  153. package/assets/patterns/doc-style-write.md +130 -122
  154. package/assets/patterns/entity-aside.md +77 -63
  155. package/assets/patterns/entity-models-new.md +37 -37
  156. package/assets/patterns/entity-store.md +33 -33
  157. package/assets/patterns/git-workflow-commit.azure.md +94 -75
  158. package/assets/patterns/git-workflow-commit.github.md +153 -129
  159. package/assets/patterns/git-workflow-commit.gitlab.md +96 -78
  160. package/assets/patterns/git-workflow-docker.md +165 -147
  161. package/assets/patterns/git-workflow-freshness.md +45 -45
  162. package/assets/patterns/git-workflow-merge.md +99 -86
  163. package/assets/patterns/git-workflow-migration.md +54 -52
  164. package/assets/patterns/git-workflow-pr-ready.md +57 -56
  165. package/assets/patterns/git-workflow-pr.azure.md +126 -121
  166. package/assets/patterns/git-workflow-pr.github.md +179 -175
  167. package/assets/patterns/git-workflow-pr.gitlab.md +138 -131
  168. package/assets/patterns/git-workflow-restart.md +35 -31
  169. package/assets/patterns/git-workflow-secrets.md +80 -73
  170. package/assets/patterns/git-workflow-stack.md +131 -106
  171. package/assets/patterns/lib-layers-move.md +62 -53
  172. package/assets/patterns/lib-layers-new.md +59 -45
  173. package/assets/patterns/observability-record.md +72 -67
  174. package/assets/patterns/platform-access-di.md +31 -29
  175. package/assets/patterns/reuse-first-extend.md +66 -61
  176. package/assets/patterns/shared-code-new.md +39 -38
  177. package/assets/patterns/spec-driven-domain.md +161 -151
  178. package/assets/patterns/spec-driven-rule.md +179 -168
  179. package/assets/patterns/spec-driven-sweep.md +41 -39
  180. package/assets/patterns/status-report-table.github.md +37 -36
  181. package/assets/patterns/styling-bem-component.md +42 -42
  182. package/assets/patterns/styling-bem-layout.md +39 -34
  183. package/assets/patterns/styling-bem-sheet.md +59 -58
  184. package/assets/patterns/task-flow-archive.md +222 -215
  185. package/assets/patterns/task-flow-close.md +215 -203
  186. package/assets/patterns/task-flow-handoff.md +154 -145
  187. package/assets/patterns/task-flow-resume.md +138 -133
  188. package/assets/patterns/task-flow-start.md +204 -192
  189. package/assets/patterns/testing-e2e.md +103 -92
  190. package/assets/patterns/testing-unit.md +77 -70
  191. package/assets/patterns/ts-procedure.md +32 -29
  192. package/assets/patterns/turn-entry-map.md +50 -48
  193. package/assets/pitfalls/agent-kit.md +152 -141
  194. package/assets/pitfalls/doc-style.md +96 -91
  195. package/assets/pitfalls/git-workflow.azure.md +49 -46
  196. package/assets/pitfalls/git-workflow.github.md +264 -234
  197. package/assets/pitfalls/git-workflow.gitlab.md +49 -45
  198. package/assets/pitfalls/spec-driven.md +73 -71
  199. package/assets/pitfalls/styling-bem.md +46 -40
  200. package/assets/pitfalls/task-flow.md +262 -246
  201. package/assets/pitfalls/testing.md +99 -92
  202. package/assets/pitfalls/turn-conduct.md +96 -81
  203. package/assets/rules/angular-patterns.md +81 -80
  204. package/assets/rules/api-layer.md +77 -74
  205. package/assets/rules/autonomous-work.md +75 -74
  206. package/assets/rules/browser-verification.md +223 -188
  207. package/assets/rules/component-structure.md +72 -69
  208. package/assets/rules/dependencies.md +74 -67
  209. package/assets/rules/deploy-flow.azure.md +118 -108
  210. package/assets/rules/deploy-flow.github.md +145 -135
  211. package/assets/rules/deploy-flow.gitlab.md +120 -110
  212. package/assets/rules/doc-style.md +209 -148
  213. package/assets/rules/entity-conventions.needs-admin.md +81 -79
  214. package/assets/rules/entity-models.md +73 -70
  215. package/assets/rules/git-workflow.azure.md +224 -228
  216. package/assets/rules/git-workflow.github.md +250 -242
  217. package/assets/rules/git-workflow.gitlab.md +218 -217
  218. package/assets/rules/lib-layers.md +85 -86
  219. package/assets/rules/lists.md +101 -97
  220. package/assets/rules/navigation.md +78 -78
  221. package/assets/rules/observability.needs-app.md +165 -153
  222. package/assets/rules/platform-access.md +76 -75
  223. package/assets/rules/reuse-first.md +153 -137
  224. package/assets/rules/shared-code.md +82 -79
  225. package/assets/rules/spec-driven.md +272 -260
  226. package/assets/rules/status-report.md +55 -58
  227. package/assets/rules/styling-bem.md +83 -72
  228. package/assets/rules/task-flow.md +282 -270
  229. package/assets/rules/testing.md +224 -188
  230. package/assets/rules/turn-conduct.md +255 -258
  231. package/assets/rules/turn-entry.md +92 -87
  232. package/assets/rules/typescript-conventions.md +94 -88
  233. package/assets/samples/specs/_template/spec.md +47 -47
  234. package/assets/samples/tasks/_template/grill.md +20 -20
  235. package/assets/samples/tasks/_template/plan.md +32 -30
  236. package/assets/samples/tasks/_template/progress.md +16 -16
  237. package/assets/skills/agent-kit-extend.md +129 -113
  238. package/assets/skills/agent-kit.md +236 -222
  239. package/assets/skills/write-a-skill.md +76 -71
  240. package/assets/templates/findings.md +19 -19
  241. package/assets/templates/gate-map.sh +16 -14
  242. package/assets/templates/implementation.md +28 -27
  243. package/assets/templates/pattern.md +17 -17
  244. package/assets/templates/pitfalls.md +6 -6
  245. package/assets/templates/postmortem.md +24 -23
  246. package/assets/templates/project.sh +24 -24
  247. package/assets/templates/proposal.md +62 -60
  248. package/assets/templates/rule.md +38 -38
  249. package/assets/workflows/feature.js +46 -46
  250. package/assets/workflows/plan.js +54 -54
  251. package/lib/catalog.d.ts +2 -0
  252. package/lib/catalog.d.ts.map +1 -1
  253. package/lib/catalog.js +4 -3
  254. package/lib/catalog.js.map +1 -1
  255. package/lib/commands.d.ts.map +1 -1
  256. package/lib/commands.js +68 -4
  257. package/lib/commands.js.map +1 -1
  258. package/lib/companion.js +3 -2
  259. package/lib/companion.js.map +1 -1
  260. package/lib/enroll.d.ts +7 -1
  261. package/lib/enroll.d.ts.map +1 -1
  262. package/lib/enroll.js +13 -4
  263. package/lib/enroll.js.map +1 -1
  264. package/lib/observations.d.ts +10 -1
  265. package/lib/observations.d.ts.map +1 -1
  266. package/lib/observations.js +1 -0
  267. package/lib/observations.js.map +1 -1
  268. package/lib/override-marks.d.ts +24 -0
  269. package/lib/override-marks.d.ts.map +1 -0
  270. package/lib/override-marks.js +98 -0
  271. package/lib/override-marks.js.map +1 -0
  272. package/lib/plan.d.ts +11 -0
  273. package/lib/plan.d.ts.map +1 -1
  274. package/lib/plan.js +10 -1
  275. package/lib/plan.js.map +1 -1
  276. package/lib/ship.d.ts +0 -7
  277. package/lib/ship.d.ts.map +1 -1
  278. package/lib/ship.js +10 -2
  279. package/lib/ship.js.map +1 -1
  280. package/lib/shipment.d.ts.map +1 -1
  281. package/lib/shipment.js +7 -3
  282. package/lib/shipment.js.map +1 -1
  283. package/lib/sync.d.ts.map +1 -1
  284. package/lib/sync.js +45 -11
  285. package/lib/sync.js.map +1 -1
  286. package/package.json +1 -1
  287. package/rt-tools-agent-kit-0.26.0.tgz +0 -0
  288. package/rt-tools-agent-kit-0.23.0.tgz +0 -0
@@ -1,108 +1,113 @@
1
1
  ---
2
2
  name: write-a-skill
3
- description: Заведение нового скила — того, у которого нет закона над собой: витрина, генератор, чужой сервис, приём работы этого дерева. Брать, когда просят завести, написать или переписать скил. Форма правила и паттерна сюда не входит — это паттерн spec-driven-rule.
3
+ description: Creating a new skill — one with no law above it — a showcase, a generator, a third-party service, a working technique of this tree. Load when asked to create, write or rewrite a skill. The shape of a rule and a pattern is not here — that is pattern spec-driven-rule.
4
4
  ---
5
5
 
6
- # Как заводится скил
6
+ # How a skill is created
7
7
 
8
- Скил — это то, что агент загружает перед работой и читает целиком. Отсюда всё остальное: он
9
- короткий, он объявляет, когда его брать, и он не пересказывает то, что уже написано в соседнем.
8
+ A skill is what the agent loads before work and reads in full. Everything else follows: it is
9
+ short, it declares when to load it, and it does not retell what is already written in the
10
+ neighbouring one.
10
11
 
11
- ## Когда брать
12
+ ## When to use
12
13
 
13
- - Заводится скил, у которого нет закона над собой: витрина, генератор, работа с чужим сервисом,
14
- приём, принятый в этом дереве.
15
- - Скил разросся, и его пора делить.
16
- - Скил есть, но его никто не загружает — надо чинить объявление.
14
+ - A skill with no law above it is being created: a showcase, a generator, work with a
15
+ third-party service, a technique adopted in this tree.
16
+ - A skill has grown, and it is time to split it.
17
+ - The skill exists, but nobody loads it — the declaration needs fixing.
17
18
 
18
- **Правило и паттерн сюда не идут.** Правило стоит под законом, паттерн — при правиле, и форму
19
- обоих держит паттерн `spec-driven-rule`. Скил без закона — третий случай, и только он здесь.
19
+ **A rule and a pattern do not go here.** A rule stands under a law, a pattern next to a rule,
20
+ and the shape of both is held by the pattern `spec-driven-rule`. A skill without a law is the
21
+ third case, and only it is here.
20
22
 
21
- ## Порядок
23
+ ## Order
22
24
 
23
- 1. **Спроси, чего не хватает.** Какую работу скил закрывает, на чём спотыкались без него, нужны
24
- ли готовые команды или хватает порядка действий. Скил, написанный без этого, пересказывает
25
- документацию инструмента — а её агент и так знает.
26
- 2. **Напиши черновик.** Один файл. Дополнительные — только когда первый перестаёт читаться
27
- целиком.
28
- 3. **Покажи владельцу.** Скил действует на все будущие сессии, и заводить его молча нельзя.
25
+ 1. **Ask what is missing.** What work the skill covers, where people stumbled without it,
26
+ whether ready-made commands are needed or an order of actions is enough. A skill written
27
+ without this retells the tool's documentation — and the agent knows that anyway.
28
+ 2. **Write a draft.** One file. Additional ones — only when the first stops being readable in
29
+ full.
30
+ 3. **Show the owner.** A skill acts on all future sessions, and creating it silently is not
31
+ allowed.
29
32
 
30
- ## Что в файле
33
+ ## What is in the file
31
34
 
32
35
  ```
33
- <имя-скила>/
34
- ├── SKILL.md # обязателен, и обычно единственный
35
- ├── <ЧТО-ТО>.md # отдельный файл — когда SKILL.md перестал читаться целиком
36
- └── scripts/ # готовые скрипты, если операция детерминированная
36
+ <skill-name>/
37
+ ├── SKILL.md # mandatory, and usually the only one
38
+ ├── <SOMETHING>.md # a separate file — when SKILL.md stopped being readable in full
39
+ └── scripts/ # ready-made scripts, if the operation is deterministic
37
40
  ```
38
41
 
39
- Вступление между `---` — `name` и `description`, дальше заголовок и разделы. Первым разделом —
40
- «Когда брать»: агент решает по нему, а не по названию.
42
+ The preamble between `---` is `name` and `description`, then the title and the sections. The
43
+ first section is "When to use": the agent decides by it, not by the title.
41
44
 
42
- ## Объявление решает всё
45
+ ## The declaration decides everything
43
46
 
44
- `description` — **единственное, что агент видит**, когда решает, грузить скил или нет. Он стоит
45
- в системном приглашении рядом с описаниями всех остальных, и выбор идёт по ним.
47
+ `description` is **the only thing the agent sees** when it decides whether to load the skill or
48
+ not. It stands in the system prompt next to the descriptions of all the others, and the choice
49
+ goes by them.
46
50
 
47
- Оно отвечает на два вопроса: что скил даёт и когда его брать. Пиши третьим лицом, до 1024
48
- знаков: первая фраза — что делает, вторая — «Брать, когда…», третья — чего в нём нет и где это
49
- искать.
51
+ It answers two questions: what the skill gives and when to load it. Write in the third person,
52
+ up to 1024 characters: the first sentence — what it does, the second — "Load when…", the third —
53
+ what is not in it and where to look for that.
50
54
 
51
55
  ```
52
- ✓ Заведение нового скила — того, у которого нет закона над собой. Брать, когда просят
53
- завести, написать или переписать скил. Форма правила и паттерна сюда не входит — это
54
- паттерн spec-driven-rule.
56
+ ✓ Creating a new skill — one with no law above it. Load when asked to create, write or
57
+ rewrite a skill. The shape of a rule and a pattern is not here — that is pattern
58
+ spec-driven-rule.
55
59
 
56
- ✗ Помогает со скилами.
60
+ ✗ Helps with skills.
57
61
  ```
58
62
 
59
- Второе объявление не даёт агенту ни одного способа отличить этот скил от соседнего — и он не
60
- загрузит ни один.
63
+ The second declaration gives the agent no way to tell this skill from the neighbouring one —
64
+ and it loads neither.
61
65
 
62
- Строка «чего здесь нет» не украшение: скилов в дереве десятки, и половина ошибок выбора — это
63
- взятый соседний. Назови его по имени.
66
+ The line "what is not here" is not decoration: there are dozens of skills in the tree, and half
67
+ of the wrong choices are the neighbour taken instead. Name it by name.
64
68
 
65
- ## Готовые команды вместо описания
69
+ ## Ready-made commands instead of a description
66
70
 
67
- Скрипт кладётся рядом со скилом, когда операция детерминированная — проверка, приведение к
68
- форме, разбор вывода. Такое дешевле позвать, чем породить заново, и ошибку в нём видно один раз,
69
- а не в каждом порождении.
71
+ A script is put next to the skill when the operation is deterministic — a check, bringing to a
72
+ form, parsing output. Such a thing is cheaper to call than to generate anew, and an error in it
73
+ is seen once, not in every generation.
70
74
 
71
- Порядок действий, зависящий от того, что нашлось, скриптом не становится: он остаётся текстом.
75
+ An order of actions that depends on what was found does not become a script: it stays text.
72
76
 
73
- ## Когда делить
77
+ ## When to split
74
78
 
75
- Делить, когда:
79
+ Split when:
76
80
 
77
- - файл перестал читаться целиком — по опыту это около сотни строк;
78
- - в нём два разных предмета, и второй нужен раз в месяц;
79
- - готовый код занял больше места, чем объяснение, зачем он.
81
+ - the file stopped being readable in full — by experience, that is around a hundred lines;
82
+ - it holds two different subjects, and the second is needed once a month;
83
+ - ready-made code took more room than the explanation of what it is for.
80
84
 
81
- Не делить ради красоты: два файла вместо одного стоят одного лишнего перехода при каждом
82
- чтении, а ссылка глубже одного уровня не читается вовсе.
85
+ Do not split for beauty: two files instead of one cost one extra hop at every reading, and a
86
+ link deeper than one level is not followed at all.
83
87
 
84
- ## Чем скил вредит
88
+ ## How a skill does harm
85
89
 
86
- - **Пересказ документации инструмента.** Агент читает скил при каждой работе; строка, которую он
87
- знает и без того, вытесняет ту, которой не знает.
88
- - **Дублирование соседа.** Два скила об одном начинают противоречить друг другу, и первым это
89
- замечает тот, кто выполнил оба.
90
- - **То, что устареет вместе с кодом.** Скил, называющий версию, число или имя файла, которое
91
- правится чаще раза в квартал, врёт молча.
92
- - **Длина.** Скил в три экрана перестают читать целиком, а читают до первого знакомого раздела.
90
+ - **Retelling the tool's documentation.** The agent reads the skill at every piece of work; a
91
+ line it knows anyway pushes out the one it does not.
92
+ - **Duplicating a neighbour.** Two skills about one thing start to contradict each other, and
93
+ the first to notice is whoever has carried out both.
94
+ - **What goes stale together with the code.** A skill naming a version, a number or a file name
95
+ that is edited more often than once a quarter lies silently.
96
+ - **Length.** A skill of three screens stops being read in full and is read up to the first
97
+ familiar section.
93
98
 
94
- ## Перед тем как отдать
99
+ ## Before handing it over
95
100
 
96
- - [ ] в объявлении есть «Брать, когда…» и назван сосед, которого брать не надо;
97
- - [ ] первый раздел — «Когда брать»;
98
- - [ ] файл читается целиком за один заход;
99
- - [ ] ни одной строки, которая повторяет соседний скил;
100
- - [ ] ничего, что устареет само собой: версий, чисел, сроков;
101
- - [ ] есть хотя бы один готовый пример, а не только объяснение;
102
- - [ ] ссылки уходят на один уровень, не глубже.
101
+ - [ ] the declaration has "Load when…" and names the neighbour not to load;
102
+ - [ ] the first section is "When to use";
103
+ - [ ] the file is readable in full in one sitting;
104
+ - [ ] not one line repeats the neighbouring skill;
105
+ - [ ] nothing that goes stale by itself: versions, numbers, dates;
106
+ - [ ] at least one ready-made sample, not only an explanation;
107
+ - [ ] links go one level deep, no deeper.
103
108
 
104
- ## Чтобы скил загружали
109
+ ## So that the skill gets loaded
105
110
 
106
- Написанного мало: скил, который никто не открывает, не действует. Новый скил либо называется в
107
- карте гейта этого дерева, либо его зовёт по имени другой скил или роль. Скил, не названный
108
- нигде, останется декорацией.
111
+ Writing it is not enough: a skill nobody opens does not act. A new skill is either named in the
112
+ gate map of this tree, or called by name by another skill or a role. A skill named nowhere stays
113
+ a decoration.
@@ -1,27 +1,27 @@
1
- # Находки эпика <о чём он>
1
+ # Findings of the epic <what it is about>
2
2
 
3
- <Копятся здесь, у замысла эпика: папка задачи умирает со слиянием, а находки владелец читает
4
- разом, когда эпик кончился. Имя файла — имя замысла с хвостом `-findings`, и лежит он рядом с
5
- самим замыслом.
3
+ <They accumulate here, next to the epic plan: the task folder dies with the merge, and the owner
4
+ reads the findings at once, when the epic is over. The file name is the plan name with the tail
5
+ `-findings`, and it lies next to the plan itself.
6
6
 
7
- Раздел на задачу, строка на находку. Каждая называет адрес — слой правил, имена этого дерева
8
- или надстройку над разложенным: без адреса общее оседает в своём дереве и остаётся неизвестным
9
- всем остальным.
7
+ A section per task, a line per finding. Each names an address — the rules layer, the names of
8
+ this tree or an override on top of the laid-out: without an address, what is general settles in
9
+ its own tree and stays unknown to everyone else.
10
10
 
11
- Длина смотрится перед первой написанной строкой: раздел задачи занимает десятки строк, и предел
12
- длины документа он переходит молча. Не влезает — заводится следующая часть с именем той задачи,
13
- которая её завела: `<имя замысла>-findings-<КЛЮЧ>-<номер>.md`. Порядкового номера у части нет —
14
- его каждое рабочее дерево видит своим, и два дерева одного эпика заводят один и тот же файл.>
11
+ The length is looked at before the first line is written: a task section takes dozens of lines,
12
+ and it crosses the document length limit silently. Does not fit — the next part is started with
13
+ the name of the task that started it: `<plan name>-findings-<KEY>-<number>.md`. A part has no
14
+ ordinal number — every working tree sees its own, and two trees of one epic start the same file.>
15
15
 
16
- ## <КЛЮЧ>-<номер> — <что делала задача>
16
+ ## <KEY>-<number> — <what the task did>
17
17
 
18
- - **<Находка одной фразой — что не так, а не что надо сделать.>** <Чем подтверждена: число,
19
- отказ, файл. Что это стоило.> **Адрес:** <слой правил | имена этого дерева — <что именно> |
20
- надстройка над разложенным>.
18
+ - **<The finding in one sentence — what is wrong, not what to do.>** <What confirms it: a number,
19
+ a refusal, a file. What it cost.> **Address:** <rules layer | names of this tree — <what
20
+ exactly> | override on top of the laid-out>.
21
21
 
22
- ## Осталось нерешённым
22
+ ## Left unresolved
23
23
 
24
- <Находка, по которой правки ещё не было. Названная здесь, она переезжает в закрытые вместе с
25
- той правкой, которая её закрыла, — а не остаётся числиться живой.>
24
+ <A finding with no edit yet. Named here, it moves to the closed ones together with the edit that
25
+ closed it — instead of staying listed as live.>
26
26
 
27
- - **<находка>** — <почему не закрыта: ждёт решения владельца, заводится своей задачей, спорна>.
27
+ - **<finding>** — <why it is not closed: waits for the owner's decision, becomes a task of its own, is disputed>.
@@ -1,16 +1,17 @@
1
1
  #!/usr/bin/env bash
2
- # Надстройка карты гейта: то, чего нет у других деревьев мастерской.
2
+ # Gate map override: what the workshop's other trees do not have.
3
3
  #
4
- # Скопировать в `.claude/rt-kit/gate-map.sh` и дописать своё. Файл необязателен: без него
5
- # действует умолчание пакета — `.claude/rt-kit/defaults/gate-map.sh`, где уже разобраны тесты,
6
- # компоненты, стили, барели, манифесты, документы и команды поставки.
4
+ # Copy to `.claude/rt-kit/gate-map.sh` and add your own. The file is optional: without it the
5
+ # package default applies — `.claude/rt-kit/defaults/gate-map.sh`, where tests, components,
6
+ # styles, barrels, manifests, documents and delivery commands are already handled.
7
7
  #
8
- # Заводить эту надстройку стоит ровно тогда, когда у дерева есть род файлов, которого нет у
9
- # остальных: витрина, свой генератор, чужая раскладка каталогов.
8
+ # This override is worth starting exactly when the tree has a kind of file the others lack: a
9
+ # showcase, its own generator, a foreign directory layout.
10
10
  #
11
- # Функция печатает ИМЯ ПРАВИЛА или молчит. Имён может быть несколько, по одному в строке.
12
- # Порядок веток решает: первое совпадение выигрывает, поэтому частное идёт раньше общего — и
13
- # своё частное обязано стоять ДО вызова умолчания, иначе общая ветка расширения его перехватит.
11
+ # The function prints the RULE NAME or stays silent. There may be several names, one per line.
12
+ # The order of branches decides: the first match wins, so the specific goes before the general —
13
+ # and your own specific branch must stand BEFORE the call of the default, otherwise the general
14
+ # branch of the extension intercepts it.
14
15
 
15
16
  skill_for() {
16
17
  kind="$1"
@@ -20,25 +21,26 @@ skill_for() {
20
21
  case "$kind" in
21
22
  edit)
22
23
  case "$target" in
23
- # Пример: у витрины своё правило, пакет такого не везёт.
24
+ # Sample: the showcase has a rule of its own, the package ships none.
24
25
  # *.stories.ts | *.mdx) printf '%s\n' '<правило витрины>' ; return 0 ;;
25
26
 
26
- # Пример: домен, который правится по своему правилу.
27
+ # Sample: a domain edited under a rule of its own.
27
28
  # */libs/<домен>/*) printf '%s\n' '<правило домена>' ; return 0 ;;
28
29
  *) ;;
29
30
  esac
30
31
  ;;
31
32
  bash)
32
33
  case "$target" in
33
- # Пример: своя команда развёртывания.
34
+ # Sample: a deployment command of your own.
34
35
  # *<команда>*) printf '%s\n' '<правило>' ; return 0 ;;
35
36
  *) ;;
36
37
  esac
37
38
  ;;
38
39
  esac
39
40
 
40
- # Всё, что дерево не назвало своим, разбирает умолчание пакета. Проверка на объявленность
41
- # нужна ровно в одном промежутке: пакет обновлён, а `sync` в этом дереве ещё не прогнан.
41
+ # Everything the tree did not name its own is handled by the package default. The check for
42
+ # the declaration is needed in exactly one gap: the package is updated, and `sync` has not
43
+ # yet been run in this tree.
42
44
  command -v skill_for_default >/dev/null 2>&1 && skill_for_default "$kind" "$target" "$written"
43
45
 
44
46
  return 0
@@ -1,44 +1,45 @@
1
- # <имя-правила> — что здесь своё
1
+ # <имя-правила> — what is this tree's own
2
2
 
3
- Имена и привязки этого дерева при правиле `SKILL.md` рядом.
3
+ Names and bindings of this tree under the rule `SKILL.md` next to it.
4
4
 
5
- Правило говорит приёмом и называет пути, общие для деревьев мастерской, — их переписывать
6
- здесь не надо. Сюда идёт только то, чего пакет знать не может: как названы вещи именно в этом
7
- репозитории, и в каком его файле каждая статья правила исполняется.
5
+ The rule speaks by technique and names the paths shared by the workshop's trees — there is no
6
+ need to rewrite them here. Only what the package cannot know goes here: what things are called in
7
+ this very repository, and in which of its files each article of the rule is carried out.
8
8
 
9
- Пока в файле стоит `<!-- заполняет проект -->`, правило считается неразвёрнутым: `agent-kit
10
- sync --check` отказывает, а агент читает указание, у которого здесь нет адресата.
9
+ While `<!-- заполняет проект -->` stands in the file, the rule counts as not deployed:
10
+ `agent-kit sync --check` refuses, and the agent reads an instruction that has no addressee here.
11
11
 
12
- ## Как это называется здесь
12
+ ## What it is called here
13
13
 
14
- Только то, что расходится с правилом: ключ задач, адрес борды, префикс компонентов, имя
15
- владеющей сущности, валюта хранения, набор областей коммита. Строку, которая просто повторяет
16
- правило, сюда не переносят — она устареет отдельно от него.
14
+ Only what differs from the rule: the task key, the board address, the component prefix, the name
15
+ of the owning entity, the storage currency, the set of commit scopes. A line that merely repeats
16
+ the rule is not carried here — it would go stale separately from it.
17
17
 
18
- | В правиле | Здесь |
19
- | ----------------- | ------------------------------------------- |
20
- | <понятие правила> | <имя в этом коде> <!-- заполняет проект --> |
18
+ | In the rule | Here |
19
+ | ---------------- | ------------------------------------------------- |
20
+ | <rule notion> | <name in this code> <!-- заполняет проект --> |
21
21
 
22
- ## Где это лежит
22
+ ## Where it lives
23
23
 
24
- | Что | Где |
25
- | ---------- | ---------------------------------- |
26
- | <механизм> | `<путь>` <!-- заполняет проект --> |
24
+ | What | Where |
25
+ | ----------- | ------------------------------------------ |
26
+ | <mechanism> | `<path>` <!-- заполняет проект --> |
27
27
 
28
28
  ## Где исполняются статьи
29
29
 
30
- Первая колонка — статья дословно, как она написана в разделе «Как закон применяется здесь»
31
- (жирная часть пункта). Статья без строки и строка без статьи — расхождение: правило обещает то,
32
- чего в дереве нет, либо в дереве стоит то, о чём правило молчит.
30
+ The first column is the article verbatim, as written in the section "How the law applies here"
31
+ (the bold part of the item). An article without a line and a line without an article is a
32
+ discrepancy: the rule promises what the tree does not have, or the tree holds what the rule is
33
+ silent about.
33
34
 
34
- | Статья | Где исполняется |
35
- | ----------------- | ------------------------------------------- |
35
+ | Article | Where it is carried out |
36
+ | ------------------ | --------------------------------------------------- |
36
37
  | <статья дословно> | `<путь>:<символ>` <!-- заполняет проект --> |
37
38
 
38
- ## Что ещё стоит знать при чтении кода
39
+ ## What else is worth knowing when reading the code
39
40
 
40
- - <Что видно только изнутри этого дерева: почему приём выглядит здесь именно так.>
41
+ - <What is visible only from inside this tree: why the technique looks exactly so here.>
41
42
 
42
- ## Чем это проверяется
43
+ ## What checks it
43
44
 
44
- - <Команда, которая ловит нарушение, — и что именно она ловит.>
45
+ - <The command that catches a violation — and what exactly it catches.>
@@ -1,33 +1,33 @@
1
1
  ---
2
- name: <имя-правила>-<что>
2
+ name: <rule-name>-<what>
3
3
  kind: pattern
4
- rule: <имя-правила>
5
- description: Паттерн правила <имя-правила>. Брать <когда> — <что даёт>. Не брать для <соседний случай> — это паттерн <имя соседа>.
4
+ rule: <rule-name>
5
+ description: Pattern of rule <rule-name>. Load <when> — <what it gives>. Not for <the neighbouring case> — that is pattern <neighbour name>.
6
6
  ---
7
7
 
8
- # <Что собирается>
8
+ # <What is assembled>
9
9
 
10
- Паттерн правила `<имя-правила>`. Что при этом должно быть верно — закон
11
- `docs/constitution/<закон>.md`.
10
+ Pattern of the rule `<rule-name>`. What must be true — the law
11
+ `docs/constitution/<law>.md`.
12
12
 
13
- ## Когда брать
13
+ ## When to use
14
14
 
15
- - <Случай, по которому паттерн узнаётся.>
15
+ - <The case by which the pattern is recognised.>
16
16
 
17
- ## <Приём>
17
+ ## <The technique>
18
18
 
19
- <Готовый код целиком, а не пересказ: паттерн берут, чтобы не писать заново.>
19
+ <The ready-made code in full, not a retelling: a pattern is taken so as not to write anew.>
20
20
 
21
- Имена в примере безымянные — `libs/<домен>`, `<Feature>Component`, `<app>`. Настоящие имена
22
- этого дерева стоят в `implementation.md` при правиле: пример, написанный на чужих именах,
23
- читается как рабочий код и переносится в дерево вместе с ними.
21
+ The names in the sample are nameless — `libs/<domain>`, `<Feature>Component`, `<app>`. The real
22
+ names of this tree stand in `implementation.md` next to the rule: a sample written with foreign
23
+ names reads as working code and is carried into the tree together with them.
24
24
 
25
25
  ```
26
- <код>
26
+ <code>
27
27
  ```
28
28
 
29
- <Одно-два предложения о том, почему именно так, если из кода этого не видно.>
29
+ <One or two sentences on why exactly so, if the code does not show it.>
30
30
 
31
- ## Частые промахи
31
+ ## Common misses
32
32
 
33
- - <Что делают вместо этого и чем это кончается.>
33
+ - <What is done instead and how it ends.>
@@ -1,10 +1,10 @@
1
- # <О чём правило> — холодная часть
1
+ # <What the rule is about> — the cold part
2
2
 
3
- Ловушки: грабли, на которые уже наступали. Грузится не вместе с правилом, а по требованию —
4
- при обычном решении она не нужна, она нужна тому, кто уже наступил.
3
+ Pitfalls: traps already stepped on. Loaded on demand, not together with the rule — an ordinary
4
+ decision does not need it; it is needed by whoever has already stepped in.
5
5
 
6
- Правило — `<имя-правила>`; статьи, которыми держится закон, стоят там.
6
+ The rule is `<rule-name>`; the articles that hold the law stand there.
7
7
 
8
- ## Ловушки
8
+ ## Pitfalls
9
9
 
10
- - **<Грабли, на которые уже наступали.>** <Чем это кончилось.>
10
+ - **<A trap already stepped on.>** <How it ended.>
@@ -1,36 +1,37 @@
1
- # <чем был промах, а не на какой задаче случился>
1
+ # <what the miss was, not on which task it happened>
2
2
 
3
- <дата>. <Одна строка: где шла работа и до чего она дошла.>
3
+ <date>. <One line: where the work was going and how far it got.>
4
4
 
5
- ## Что произошло
5
+ ## What happened
6
6
 
7
- <Что исполнитель сделал и чем это было неверно. Без оценок: разбирается механизм, а не
8
- намерение.>
7
+ <What the executor did and in what way it was wrong. Without appraisals: the mechanism is
8
+ examined, not the intention.>
9
9
 
10
- ## Механизм промаха
10
+ ## Mechanism of the miss
11
11
 
12
- 1. <что принято за данность>
13
- 2. <откуда взято>
14
- 3. <чем подтверждено — и почему подтверждение оказалось ложным>
15
- 4. <что сделано дальше>
12
+ 1. <what was taken for granted>
13
+ 2. <where it was taken from>
14
+ 3. <what confirmed it — and why the confirmation turned out false>
15
+ 4. <what was done next>
16
16
 
17
- ## Что было доступно до промаха
17
+ ## What was available before the miss
18
18
 
19
- - <файл, команда или уже прочитанное, где лежал ответ>
19
+ - <a file, a command or something already read, where the answer lay>
20
20
 
21
- Отсюда видно, промах это или нехватка данных.
21
+ From here it is visible whether this is a miss or a lack of data.
22
22
 
23
- ## Чем ловилось
23
+ ## What caught it
24
24
 
25
- - **Слоем правил —** <что отбило, что промолчало>.
26
- - **Гардом —** <сработал, не сработал, сработал поздно>.
27
- - **Владельцем —** <заметил сразу, заметил на приёмке, не заметил>.
25
+ - **The rules layer —** <what refused, what stayed silent>.
26
+ - **A guard —** <fired, did not fire, fired late>.
27
+ - **The owner —** <noticed at once, noticed at acceptance, did not notice>.
28
28
 
29
- ## Что ушло в слой правил
29
+ ## What went into the rules layer
30
30
 
31
- <Предложение с адресом либо правка закона, правила, паттерна — с именами. Запись без этого
32
- раздела закрытой не считается: разбор, из которого ничего не вышло, — жалоба.
31
+ <A proposal with an address, or an edit of a law, a rule, a pattern — with names. A record
32
+ without this section does not count as closed: an analysis that produced nothing is a complaint.
33
33
 
34
- Предложение называется адресом и предметом — «в пакет, о таком-то», — а не путём к файлу
35
- предложений: каталог предложений в историю не едет, и путь у любого другого читателя ведёт в
36
- пустоту. Ресурс, к которому предложение написано, называть можно: он в истории есть.>
34
+ The proposal is named by address and subject — "to the package, about such-and-such" — not by a
35
+ path to the proposals file: the proposals directory does not go into history, and for any other
36
+ reader the path leads nowhere. The resource the proposal is written to may be named: it is in
37
+ history.>