@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.
- package/README.md +8 -2
- package/assets/agents/business-analyst.md +51 -50
- package/assets/agents/conscience.md +37 -35
- package/assets/agents/project-manager.md +49 -48
- package/assets/agents/prose-editor.md +31 -29
- package/assets/agents/qa-engineer.md +50 -48
- package/assets/agents/rules-reviewer.md +63 -58
- package/assets/agents/skill-curator.md +83 -78
- package/assets/agents/spec-critic.md +34 -29
- package/assets/agents/spec-writer.md +35 -32
- package/assets/agents/strict-teacher.md +39 -37
- package/assets/checks/archive-age.mjs +48 -28
- package/assets/checks/archive-prune.mjs +16 -14
- package/assets/checks/board-epics.github.mjs +75 -41
- package/assets/checks/board-folders.mjs +61 -0
- package/assets/checks/board-gh.github.mjs +35 -26
- package/assets/checks/board-long-work.github.mjs +24 -24
- package/assets/checks/board-paths.github.mjs +21 -16
- package/assets/checks/board-runs.github.mjs +45 -43
- package/assets/checks/board-titles.github.mjs +19 -17
- package/assets/checks/board.github.mjs +150 -128
- package/assets/checks/check-archive-age.mjs +23 -19
- package/assets/checks/check-board.github.mjs +179 -157
- package/assets/checks/check-descriptions.mjs +30 -29
- package/assets/checks/check-doc-paths.mjs +104 -82
- package/assets/checks/check-dupes.mjs +84 -80
- package/assets/checks/check-file-size.mjs +79 -70
- package/assets/checks/check-glossary.mjs +47 -37
- package/assets/checks/check-hook-scope.mjs +30 -27
- package/assets/checks/check-lib-layers.mjs +22 -21
- package/assets/checks/check-profile-drift.mjs +48 -43
- package/assets/checks/check-prose-style.mjs +125 -33
- package/assets/checks/check-push-gate.mjs +53 -50
- package/assets/checks/check-reuse.mjs +50 -40
- package/assets/checks/check-schema-drift.mjs +87 -83
- package/assets/checks/check-specs.mjs +155 -134
- package/assets/checks/check-state-next.mjs +66 -52
- package/assets/checks/check-states.mjs +32 -30
- package/assets/checks/check-styles.mjs +52 -51
- package/assets/checks/check-turn-map.mjs +54 -46
- package/assets/checks/lib-boundaries.mjs +32 -30
- package/assets/checks/lib-common.mjs +30 -29
- package/assets/checks/lib-domains.mjs +34 -34
- package/assets/checks/lib-manifests.mjs +17 -15
- package/assets/checks/lib-reexports.mjs +18 -18
- package/assets/checks/rt-kit-checks.config.mjs +174 -142
- package/assets/checks/signals.mjs +43 -39
- package/assets/checks/spec-anchors.mjs +114 -87
- package/assets/checks/spec-common.mjs +128 -84
- package/assets/checks/spec-contract.mjs +30 -30
- package/assets/checks/spec-proposed.mjs +27 -24
- package/assets/checks/spec-scenarios.mjs +51 -28
- package/assets/checks/task-new.github.mjs +85 -56
- package/assets/commands/feedback.md +65 -59
- package/assets/commands/next-session.md +64 -57
- package/assets/commands/skill-curator.md +83 -79
- package/assets/defaults/gate-map.sh +115 -91
- package/assets/defaults/project.sh +228 -178
- package/assets/defaults/shell.sh +85 -65
- package/assets/defaults/turn-map.md +45 -44
- package/assets/docs/GLOSSARY.md +142 -65
- package/assets/hooks/browser-device-id.sh +12 -12
- package/assets/hooks/browser-guard-device-id.sh +46 -14
- package/assets/hooks/browser-guard-no-asking.sh +5 -4
- package/assets/hooks/browser-guard-no-listing.sh +12 -11
- package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
- package/assets/hooks/browser-guard-require-select.sh +34 -23
- package/assets/hooks/claim-guard.sh +62 -56
- package/assets/hooks/commit-msg.sh +11 -10
- package/assets/hooks/conscience-guard.sh +91 -45
- package/assets/hooks/constitution-index.sh +16 -16
- package/assets/hooks/deny-tail.sh +28 -26
- package/assets/hooks/dev-server-guard.sh +46 -43
- package/assets/hooks/dispatch.sh +84 -39
- package/assets/hooks/docs-guard.sh +105 -86
- package/assets/hooks/exam-guard.sh +146 -84
- package/assets/hooks/git-guard-delivery-conflict.sh +38 -36
- package/assets/hooks/git-guard-delivery-draft.sh +85 -0
- package/assets/hooks/git-guard-delivery-folder.sh +50 -43
- package/assets/hooks/git-guard-delivery-signature.sh +88 -52
- package/assets/hooks/git-guard-delivery.sh +207 -253
- package/assets/hooks/git-guard-main.sh +65 -26
- package/assets/hooks/git-guard-push-tests.sh +133 -75
- package/assets/hooks/glossary-load.sh +23 -22
- package/assets/hooks/grill-gate-ask.sh +12 -11
- package/assets/hooks/grill-gate.sh +94 -87
- package/assets/hooks/guard-note.sh +20 -19
- package/assets/hooks/handoff-entry-guard.sh +26 -24
- package/assets/hooks/handoff-write.sh +74 -67
- package/assets/hooks/hook-input.sh +70 -50
- package/assets/hooks/lint-after-edit.sh +95 -61
- package/assets/hooks/observe.sh +28 -26
- package/assets/hooks/override-write-guard.sh +23 -21
- package/assets/hooks/postmortem-guard.sh +42 -39
- package/assets/hooks/profile-check.sh +22 -20
- package/assets/hooks/proposal-guard.sh +57 -49
- package/assets/hooks/prose-style-guard.sh +19 -17
- package/assets/hooks/qa-dataid-guard.sh +52 -49
- package/assets/hooks/rerun-guard.sh +31 -30
- package/assets/hooks/reuse-first-guard.sh +108 -87
- package/assets/hooks/roles.sh +14 -14
- package/assets/hooks/rule-article.sh +36 -34
- package/assets/hooks/rule-source-guard.sh +52 -36
- package/assets/hooks/skill-gate-layers.sh +59 -57
- package/assets/hooks/skill-gate-rearm.sh +15 -8
- package/assets/hooks/skill-gate.sh +89 -81
- package/assets/hooks/skill-loaded.sh +6 -6
- package/assets/hooks/sql-guard-parse.sh +68 -66
- package/assets/hooks/sql-guard-request.sh +48 -46
- package/assets/hooks/sql-guard-target.sh +57 -51
- package/assets/hooks/sql-guard-write.sh +84 -79
- package/assets/hooks/sql-guard.sh +52 -47
- package/assets/hooks/stand-login-guard.sh +104 -0
- package/assets/hooks/task-context-load.sh +60 -55
- package/assets/hooks/task-flow-context.sh +87 -69
- package/assets/hooks/task-flow-draft-guard.sh +55 -48
- package/assets/hooks/task-flow-guard.sh +67 -64
- package/assets/hooks/turn-entry-load.sh +39 -32
- package/assets/hooks/turn-exit-guard.sh +256 -204
- package/assets/hooks/turn-exit-patterns.sh +53 -0
- package/assets/hooks/utf8.sh +11 -11
- package/assets/hooks/waiting-turn-guard.sh +94 -94
- package/assets/hooks/window-fill-guard.sh +70 -62
- package/assets/hooks/work-start-guard.sh +52 -49
- package/assets/hooks/write-targets.sh +115 -30
- package/assets/laws/autonomous-work.md +29 -27
- package/assets/laws/code-structure.md +31 -30
- package/assets/laws/delivery.md +148 -137
- package/assets/laws/entity-editing.md +52 -50
- package/assets/laws/entity-models.md +14 -13
- package/assets/laws/frontend-application.md +39 -38
- package/assets/laws/lib-imports.md +27 -27
- package/assets/laws/lists.md +31 -29
- package/assets/laws/navigation.md +37 -37
- package/assets/laws/observability.md +41 -40
- package/assets/laws/project-documentation.md +106 -99
- package/assets/laws/reuse-first.md +31 -29
- package/assets/laws/shared-code.md +27 -27
- package/assets/laws/verifiability.md +131 -114
- package/assets/laws/work-conduct.md +250 -250
- package/assets/patterns/admin-lists-screen.md +72 -69
- package/assets/patterns/admin-nav-item.md +51 -46
- package/assets/patterns/angular-patterns-state.md +32 -31
- package/assets/patterns/api-layer-pair.md +33 -31
- package/assets/patterns/autonomous-work-run.md +50 -49
- package/assets/patterns/browser-verification-measure.md +143 -67
- package/assets/patterns/browser-verification-stand.md +181 -128
- package/assets/patterns/component-structure-new.md +51 -42
- package/assets/patterns/dependencies-upgrade.md +55 -39
- package/assets/patterns/doc-style-human.md +93 -0
- package/assets/patterns/doc-style-sweep.md +82 -79
- package/assets/patterns/doc-style-trace.md +87 -81
- package/assets/patterns/doc-style-write.md +130 -122
- package/assets/patterns/entity-aside.md +77 -63
- package/assets/patterns/entity-models-new.md +37 -37
- package/assets/patterns/entity-store.md +33 -33
- package/assets/patterns/git-workflow-commit.azure.md +94 -75
- package/assets/patterns/git-workflow-commit.github.md +153 -129
- package/assets/patterns/git-workflow-commit.gitlab.md +96 -78
- package/assets/patterns/git-workflow-docker.md +165 -147
- package/assets/patterns/git-workflow-freshness.md +45 -45
- package/assets/patterns/git-workflow-merge.md +99 -86
- package/assets/patterns/git-workflow-migration.md +54 -52
- package/assets/patterns/git-workflow-pr-ready.md +57 -56
- package/assets/patterns/git-workflow-pr.azure.md +126 -121
- package/assets/patterns/git-workflow-pr.github.md +179 -175
- package/assets/patterns/git-workflow-pr.gitlab.md +138 -131
- package/assets/patterns/git-workflow-restart.md +35 -31
- package/assets/patterns/git-workflow-secrets.md +80 -73
- package/assets/patterns/git-workflow-stack.md +131 -106
- package/assets/patterns/lib-layers-move.md +62 -53
- package/assets/patterns/lib-layers-new.md +59 -45
- package/assets/patterns/observability-record.md +72 -67
- package/assets/patterns/platform-access-di.md +31 -29
- package/assets/patterns/reuse-first-extend.md +66 -61
- package/assets/patterns/shared-code-new.md +39 -38
- package/assets/patterns/spec-driven-domain.md +161 -151
- package/assets/patterns/spec-driven-rule.md +179 -168
- package/assets/patterns/spec-driven-sweep.md +41 -39
- package/assets/patterns/status-report-table.github.md +37 -36
- package/assets/patterns/styling-bem-component.md +42 -42
- package/assets/patterns/styling-bem-layout.md +39 -34
- package/assets/patterns/styling-bem-sheet.md +59 -58
- package/assets/patterns/task-flow-archive.md +222 -215
- package/assets/patterns/task-flow-close.md +215 -203
- package/assets/patterns/task-flow-handoff.md +154 -145
- package/assets/patterns/task-flow-resume.md +138 -133
- package/assets/patterns/task-flow-start.md +204 -192
- package/assets/patterns/testing-e2e.md +103 -92
- package/assets/patterns/testing-unit.md +77 -70
- package/assets/patterns/ts-procedure.md +32 -29
- package/assets/patterns/turn-entry-map.md +50 -48
- package/assets/pitfalls/agent-kit.md +152 -141
- package/assets/pitfalls/doc-style.md +96 -91
- package/assets/pitfalls/git-workflow.azure.md +49 -46
- package/assets/pitfalls/git-workflow.github.md +264 -234
- package/assets/pitfalls/git-workflow.gitlab.md +49 -45
- package/assets/pitfalls/spec-driven.md +73 -71
- package/assets/pitfalls/styling-bem.md +46 -40
- package/assets/pitfalls/task-flow.md +262 -246
- package/assets/pitfalls/testing.md +99 -92
- package/assets/pitfalls/turn-conduct.md +96 -81
- package/assets/rules/angular-patterns.md +81 -80
- package/assets/rules/api-layer.md +77 -74
- package/assets/rules/autonomous-work.md +75 -74
- package/assets/rules/browser-verification.md +223 -188
- package/assets/rules/component-structure.md +72 -69
- package/assets/rules/dependencies.md +74 -67
- package/assets/rules/deploy-flow.azure.md +118 -108
- package/assets/rules/deploy-flow.github.md +145 -135
- package/assets/rules/deploy-flow.gitlab.md +120 -110
- package/assets/rules/doc-style.md +209 -148
- package/assets/rules/entity-conventions.needs-admin.md +81 -79
- package/assets/rules/entity-models.md +73 -70
- package/assets/rules/git-workflow.azure.md +224 -228
- package/assets/rules/git-workflow.github.md +250 -242
- package/assets/rules/git-workflow.gitlab.md +218 -217
- package/assets/rules/lib-layers.md +85 -86
- package/assets/rules/lists.md +101 -97
- package/assets/rules/navigation.md +78 -78
- package/assets/rules/observability.needs-app.md +165 -153
- package/assets/rules/platform-access.md +76 -75
- package/assets/rules/reuse-first.md +153 -137
- package/assets/rules/shared-code.md +82 -79
- package/assets/rules/spec-driven.md +272 -260
- package/assets/rules/status-report.md +55 -58
- package/assets/rules/styling-bem.md +83 -72
- package/assets/rules/task-flow.md +282 -270
- package/assets/rules/testing.md +224 -188
- package/assets/rules/turn-conduct.md +255 -258
- package/assets/rules/turn-entry.md +92 -87
- package/assets/rules/typescript-conventions.md +94 -88
- package/assets/samples/specs/_template/spec.md +47 -47
- package/assets/samples/tasks/_template/grill.md +20 -20
- package/assets/samples/tasks/_template/plan.md +32 -30
- package/assets/samples/tasks/_template/progress.md +16 -16
- package/assets/skills/agent-kit-extend.md +129 -113
- package/assets/skills/agent-kit.md +236 -222
- package/assets/skills/write-a-skill.md +76 -71
- package/assets/templates/findings.md +19 -19
- package/assets/templates/gate-map.sh +16 -14
- package/assets/templates/implementation.md +28 -27
- package/assets/templates/pattern.md +17 -17
- package/assets/templates/pitfalls.md +6 -6
- package/assets/templates/postmortem.md +24 -23
- package/assets/templates/project.sh +24 -24
- package/assets/templates/proposal.md +62 -60
- package/assets/templates/rule.md +38 -38
- package/assets/workflows/feature.js +46 -46
- package/assets/workflows/plan.js +54 -54
- package/lib/catalog.d.ts +2 -0
- package/lib/catalog.d.ts.map +1 -1
- package/lib/catalog.js +4 -3
- package/lib/catalog.js.map +1 -1
- package/lib/commands.d.ts.map +1 -1
- package/lib/commands.js +68 -4
- package/lib/commands.js.map +1 -1
- package/lib/companion.js +3 -2
- package/lib/companion.js.map +1 -1
- package/lib/enroll.d.ts +7 -1
- package/lib/enroll.d.ts.map +1 -1
- package/lib/enroll.js +13 -4
- package/lib/enroll.js.map +1 -1
- package/lib/observations.d.ts +10 -1
- package/lib/observations.d.ts.map +1 -1
- package/lib/observations.js +1 -0
- package/lib/observations.js.map +1 -1
- package/lib/override-marks.d.ts +24 -0
- package/lib/override-marks.d.ts.map +1 -0
- package/lib/override-marks.js +98 -0
- package/lib/override-marks.js.map +1 -0
- package/lib/plan.d.ts +11 -0
- package/lib/plan.d.ts.map +1 -1
- package/lib/plan.js +10 -1
- package/lib/plan.js.map +1 -1
- package/lib/ship.d.ts +0 -7
- package/lib/ship.d.ts.map +1 -1
- package/lib/ship.js +10 -2
- package/lib/ship.js.map +1 -1
- package/lib/shipment.d.ts.map +1 -1
- package/lib/shipment.js +7 -3
- package/lib/shipment.js.map +1 -1
- package/lib/sync.d.ts.map +1 -1
- package/lib/sync.js +45 -11
- package/lib/sync.js.map +1 -1
- package/package.json +1 -1
- package/rt-tools-agent-kit-0.26.0.tgz +0 -0
- package/rt-tools-agent-kit-0.23.0.tgz +0 -0
|
@@ -2,244 +2,255 @@
|
|
|
2
2
|
name: spec-driven-rule
|
|
3
3
|
kind: pattern
|
|
4
4
|
rule: spec-driven
|
|
5
|
-
description:
|
|
5
|
+
description: Pattern of rule spec-driven. Load when creating or editing a law in docs/constitution, a rule or a pattern in .claude/skills — ready-made headers, the section set of each layer, the binding table, the sign that a rule is due for splitting. Not for a domain spec — that is pattern spec-driven-domain.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Law, rule and pattern
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Pattern of the rule `spec-driven`. What must be true — the law
|
|
11
11
|
`docs/constitution/project-documentation.md`.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## When to use
|
|
14
14
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
15
|
+
- A rule has to be repeated in two more places — time to create a law.
|
|
16
|
+
- A rule is created under a law that already exists.
|
|
17
|
+
- Ready-made code in a rule has grown — time to move it out into a pattern.
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Law
|
|
20
20
|
|
|
21
|
-
`docs/constitution
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
`docs/constitution/<law>.md`. Knows nothing of the project: no paths, no file names, no
|
|
22
|
+
bindings. The sign of a law: an attempt to put the rule into a domain spec forces repeating the
|
|
23
|
+
same thing in two more.
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
The layer is chosen by one question: does the article stay true in an application with no
|
|
26
|
+
payments, no translation locales and no second owning entity. It stays — the law lives in the
|
|
27
|
+
root; it does not — this is an application law, and it goes to
|
|
28
|
+
`docs/constitution/application/<law>.md`. A law name is one for both layers: neither `law:` in
|
|
29
|
+
the rule header nor `**Законы:**` in the spec header names the layer, and two laws with one name
|
|
30
|
+
would part a rule from its law.
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
Sections: `## Зачем` (without a heading, as the intro paragraph) · `## Articles` ·
|
|
33
|
+
`## Open questions`. Only "Articles" is mandatory — that is what the check audits. "Open
|
|
34
|
+
questions" is created when there is a question and erased with the last one closed: a closed
|
|
35
|
+
question is removed from the law, not turned into an empty section.
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
There is no date in a law either: one law out of seventeen had one, the rest never did, and read
|
|
38
|
+
as an expiry it ages a correct text nobody touched, because there was nothing to touch. A law
|
|
39
|
+
holds neither a history of edits nor arguments for why something was once chosen so. History is
|
|
40
|
+
held by version control, and an argument with a rejected alternative is a trait of the work, not
|
|
41
|
+
of the product: its place is the "Pitfalls" of the rule under this law, where file paths are
|
|
42
|
+
allowed too. A statement that cannot be written as "always true" does not become an article at
|
|
43
|
+
all.
|
|
43
44
|
|
|
44
45
|
```markdown
|
|
45
|
-
#
|
|
46
|
+
# The delivery law
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
How an edit reaches the running application. …
|
|
48
49
|
|
|
49
|
-
##
|
|
50
|
+
## Articles
|
|
50
51
|
|
|
51
|
-
-
|
|
52
|
-
|
|
52
|
+
- **The image of the commit being rolled out is what gets rolled out.** The default "latest"
|
|
53
|
+
falls behind the main branch, and the application silently returns to the previous version
|
|
54
|
+
while it keeps answering.
|
|
53
55
|
```
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
The `## Open questions` section is created when there is a question and erased with the last
|
|
58
|
+
one closed. A question is named `Q-<law letter>-<number>`, says what the decision would change
|
|
59
|
+
and carries its creation date; the number is not reused after closing.
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
Code behaviour is not a law: "the store answers with a boolean", "the method is called `save`" —
|
|
62
|
+
neither a guest nor the owner sees this. The boundary is simple: a law describes what is visible
|
|
63
|
+
from outside the application. The exception is an article about code structure that the machine
|
|
64
|
+
audits: anchors are read only under `docs/specs/` and `docs/constitution/`.
|
|
63
65
|
|
|
64
|
-
##
|
|
66
|
+
## Rule
|
|
65
67
|
|
|
66
|
-
`.claude/skills
|
|
67
|
-
бывает несколько.
|
|
68
|
+
`.claude/skills/<rule>/SKILL.md`. Binds a law to this project; there can be several per law.
|
|
68
69
|
|
|
69
70
|
```markdown
|
|
70
71
|
---
|
|
71
72
|
name: git-workflow
|
|
72
73
|
kind: rule
|
|
73
74
|
law: delivery
|
|
74
|
-
description:
|
|
75
|
+
description: Rule under the delivery law. Load for … Ready-made code — in patterns …
|
|
75
76
|
---
|
|
76
77
|
```
|
|
77
78
|
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
Under the header stands the line requiring neighbouring resources — those without which the
|
|
80
|
+
rule's articles are not carried out:
|
|
80
81
|
|
|
81
82
|
```markdown
|
|
82
|
-
|
|
83
|
+
**Requires:** `hooks/<guard>.sh`, `checks/<check>.mjs`
|
|
83
84
|
```
|
|
84
85
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
Resources are named by package names, not by tree paths. No line — the rule requires nothing;
|
|
87
|
+
it is never empty. Deriving a requirement from a phrase in the text is not allowed: not
|
|
88
|
+
everything is laid out at the consumer, and a text saying "a guard refuses the edit" lies in a
|
|
89
|
+
tree where there is no guard.
|
|
88
90
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
The line is read as a list of resource identifiers, so prose in it turns into requirements that
|
|
92
|
+
do not exist: "requires the launch command and the tree token" the layout splits into two names
|
|
93
|
+
and prints both as unanswered — in its output such lines cannot be told from a real shortage. A
|
|
94
|
+
requirement is declared by a resource identifier or not declared at all.
|
|
93
95
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
Sections: `## What it is called here` · `## Where it lives` · `## Flow` ·
|
|
97
|
+
`## How the law applies here` · `## What of the law is not here` · `## Patterns` · `## Pitfalls`.
|
|
96
98
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
Only `## How the law applies here` is audited: each of its items starts with a bold phrase,
|
|
100
|
+
and each bold phrase has a line in `implementation.md` next to it.
|
|
99
101
|
|
|
100
102
|
```markdown
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
|
|
|
103
|
+
| Article | Where it is carried out |
|
|
104
|
+
| ------------------------------------------------------------- | ----------------------------------- |
|
|
105
|
+
| Images are rolled out by commit sha, not by the "latest" tag. | `docker-compose.prod.yml:IMAGE_TAG` |
|
|
104
106
|
```
|
|
105
107
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
A statement that found no place in code is not put into this section: it goes as prose to
|
|
109
|
+
"Pitfalls" or as a question `Q-<law letter>-<number>` to the law.
|
|
108
110
|
|
|
109
|
-
##
|
|
111
|
+
## Pattern
|
|
110
112
|
|
|
111
|
-
`.claude/skills
|
|
113
|
+
`.claude/skills/<rule>-<what>/SKILL.md`. At least one per rule.
|
|
112
114
|
|
|
113
115
|
```markdown
|
|
114
116
|
---
|
|
115
117
|
name: git-workflow-commit
|
|
116
118
|
kind: pattern
|
|
117
119
|
rule: git-workflow
|
|
118
|
-
description:
|
|
120
|
+
description: Pattern of rule git-workflow. Load for … Not for … — that is pattern …
|
|
119
121
|
---
|
|
120
122
|
```
|
|
121
123
|
|
|
122
|
-
|
|
124
|
+
Sections: `## When to use` · ready-made code · `## Common misses`. A pattern has no binding:
|
|
125
|
+
the check does not audit it, because there is nothing to check ready-made code against but
|
|
126
|
+
itself.
|
|
123
127
|
|
|
124
|
-
|
|
125
|
-
его вызвало: запрет писать в чужую настройку стоял на том, что слияние JSON молча теряет
|
|
126
|
-
несовпавшее, — и был верен, пока куском была карта из двух десятков объявлений. Пришёл
|
|
127
|
-
диспетчер, кусок стал строкой на событие, довод перестал быть верным, а стоял ещё две редакции
|
|
128
|
-
и читался действующим запретом. Названное устройство — то, по чему при следующей правке видно,
|
|
129
|
-
что довод пора перечитать.
|
|
128
|
+
## How the article itself is written
|
|
130
129
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
**An argument at an article names the structure on which it is true.** An argument ages with
|
|
131
|
+
what caused it: the ban on writing into someone else's settings stood on JSON merging silently
|
|
132
|
+
losing what did not match — and was true while the piece was a map of two dozen declarations.
|
|
133
|
+
A dispatcher came, the piece became one line per event, the argument stopped being true, yet
|
|
134
|
+
it stood for two more editions and read as a current ban. The named structure is what shows,
|
|
135
|
+
at the next edit, that the argument is due for rereading.
|
|
135
136
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
**A requirement for a step stands in the section that leads that step.** What is written below
|
|
138
|
+
is read after the step: the section about the remaining step was required before too, and the
|
|
139
|
+
samples stood ready — but the requirement itself lay below the description of opening the PR.
|
|
140
|
+
The reader got to the opening, opened the PR and had not yet seen the requirement; it looks like
|
|
141
|
+
forgetfulness, not like the order of the text.
|
|
140
142
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
**An article about the uncheckable names which tool exactly does not catch it.** "There is
|
|
144
|
+
nothing to check it by machine" ages with what was used for checking: the work queue audit does
|
|
145
|
+
not read the PR body — and that was written down as "nobody reads it", although the delivery
|
|
146
|
+
guard parses the same command line and judges the title by it. The named tool gives the next
|
|
147
|
+
edit a point to count from.
|
|
143
148
|
|
|
144
|
-
##
|
|
149
|
+
## Description: three hundred characters and one question
|
|
145
150
|
|
|
146
|
-
|
|
147
|
-
|
|
151
|
+
The description of a rule and a pattern goes whole into the system prompt of every session —
|
|
152
|
+
every session pays for it, whatever it works on. It answers one question: load this or not.
|
|
148
153
|
|
|
149
|
-
|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
|
154
|
+
| In the description | Not in the description |
|
|
155
|
+
| ------------------------------------------------------ | ----------------------------------- |
|
|
156
|
+
| which law the rule is under | a retelling of its articles |
|
|
157
|
+
| when to load — by edit paths or by the subject name | a list of sections |
|
|
158
|
+
| for a pattern — when not to load, naming the neighbour | an argument for why the rule exists |
|
|
159
|
+
| pattern names at a rule | their content |
|
|
155
160
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
161
|
+
The descriptions check counts the length: it names those over the limit by name, with the
|
|
162
|
+
character count. A description that would otherwise stop being found by its subject is left
|
|
163
|
+
longer than the limit — and then the name of the rule or pattern goes into the accepted-debt
|
|
164
|
+
list with a reason, so that a silent overrun and a deliberate one do not look the same.
|
|
160
165
|
|
|
161
|
-
##
|
|
166
|
+
## Order
|
|
162
167
|
|
|
163
|
-
1.
|
|
164
|
-
2.
|
|
165
|
-
3.
|
|
166
|
-
|
|
167
|
-
4.
|
|
168
|
-
5. `npm run check:specs` —
|
|
168
|
+
1. The article is written into the law — without paths or file names.
|
|
169
|
+
2. The rule declares the law in its header and names the same thing in this tree's terms.
|
|
170
|
+
3. Every statement of the rule gets a line in `implementation.md`; the anchor is checked by
|
|
171
|
+
opening the file, not from memory.
|
|
172
|
+
4. Ready-made code leaves for a pattern, and the rule refers to it.
|
|
173
|
+
5. `npm run check:specs` — before the push.
|
|
169
174
|
|
|
170
|
-
##
|
|
175
|
+
## Compressing an article: a live sample
|
|
171
176
|
|
|
172
|
-
|
|
173
|
-
|
|
177
|
+
The shape is in the rule next to it; here is one real article before and after, with numbers.
|
|
178
|
+
Taken from the rule on checking a component: 1110 characters, of which the statement is 90.
|
|
174
179
|
|
|
175
|
-
|
|
180
|
+
**Before.** The statement, the mechanism, two cases from the measurement, a rejected cure, the
|
|
181
|
+
consequence in the reference:
|
|
176
182
|
|
|
177
183
|
```markdown
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
- **A shot beyond the window touches the page under the shutter, and the cure is not a loop but
|
|
185
|
+
the window.** A frame of a whole page wider or taller than the window the browser takes by
|
|
186
|
+
swapping the window for the duration of the frame: the page gets a `resize`, and everything
|
|
187
|
+
computed from the window size shifts right in the frame. The measurement caught this twice in
|
|
188
|
+
one task — the photo viewer strip lost its scroll, and the frame got the first snapshot of the
|
|
189
|
+
set instead of the last; the page height drifted by two pixels. Whether the shift lands in the
|
|
190
|
+
raster is decided by a race, so the same story turns red or not… A loop until two frames in a
|
|
191
|
+
row match is no cure here but a fixing of the breakage: the shift is stable… The cure is the
|
|
192
|
+
reverse order — the window is widened to the page **before** the frame…
|
|
186
193
|
```
|
|
187
194
|
|
|
188
|
-
|
|
195
|
+
**After — 517 characters, the same decision:**
|
|
189
196
|
|
|
190
197
|
```markdown
|
|
191
|
-
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
198
|
+
- **A shot beyond the window touches the page under the shutter, and the cure is not a loop but
|
|
199
|
+
the window.** A frame wider or taller than the window the browser takes by swapping the window:
|
|
200
|
+
the page gets a `resize`, and everything computed from the window size shifts right in the
|
|
201
|
+
frame. A loop until two frames match is no cure here but a fixing of the breakage — the shift
|
|
202
|
+
is stable. The window is widened to the page **before** the frame, the render is waited for to
|
|
203
|
+
settle, and an ordinary frame is taken; in the reference `100vh` and `100vw` count from the
|
|
204
|
+
widened window. Pitfalls — in the cold part.
|
|
197
205
|
```
|
|
198
206
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
(
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
##
|
|
209
|
-
|
|
210
|
-
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
207
|
+
**Where the rest went — 593 characters in `pitfalls.md`:** which story exactly turned red, how
|
|
208
|
+
many times, by how many pixels the height drifted, why a different story looked guilty each time
|
|
209
|
+
and why this reads as floating layout. Not one edit decision stands on this: it is needed by
|
|
210
|
+
whoever reviews a red snapshot — and loads at that moment.
|
|
211
|
+
|
|
212
|
+
**What stayed at the article:** the whole statement, the mechanism in one phrase, the rejected
|
|
213
|
+
cure (without it the next session creates the same loop again) and the consequence in the
|
|
214
|
+
reference — it changes how a story is written.
|
|
215
|
+
|
|
216
|
+
## Common misses
|
|
217
|
+
|
|
218
|
+
- The check of the requirement "the step is done" is placed on the call of the step itself. A
|
|
219
|
+
guard bound to the call catches the shape of what was done and does not see what was not done
|
|
220
|
+
at all: leaving a draft that never was gives it not a single event. Such a requirement is
|
|
221
|
+
checked at the end of the turn — there it shows what did not happen during the turn.
|
|
222
|
+
- The binding names one place where the statement is carried out, while several sides carry it
|
|
223
|
+
out. The audit looks for the presence of a line, not the completeness of the list: the
|
|
224
|
+
agreement promised declaring several events, the binding led to the settings assembly, and the
|
|
225
|
+
dispatcher read one — and both sides stayed silent. An article whose statement is carried out
|
|
226
|
+
in several places names them all.
|
|
227
|
+
- The list named by the tree lies in the companion, and the general argument in the rule itself.
|
|
228
|
+
The general argument always reaches the context, the list only when it was read, and it loses
|
|
229
|
+
the minute the decision is made from memory. Whenever a rule requires "the list is named by the
|
|
230
|
+
tree", it also requires that the list be read before the general words — and says so directly.
|
|
231
|
+
|
|
232
|
+
- A law named a project file — the check refuses. Paths belong in the rule.
|
|
233
|
+
- A sidecar with a binding lies next to the law: it binds the law to this project, and a green
|
|
234
|
+
check will confirm that, because the structure matches what the check itself expects.
|
|
235
|
+
- The anchor leads to a dead symbol: declared and found nowhere else. That is how five rules on
|
|
236
|
+
entity editing turned out bound to a mechanism no screen calls.
|
|
237
|
+
- The statement was reworded and the binding line was not touched: the link goes by text, and
|
|
238
|
+
the check stops finding it.
|
|
239
|
+
- An empty binding is refused by the spec audit, and its verdict must be verbatim: accepted are
|
|
240
|
+
`Не исполняется`, `Не применимо`, `Не проверяется`. A phrase in one's own words — "held by
|
|
241
|
+
text", "checked by eye" — does not count as a verdict, and this is learned from the audit's
|
|
242
|
+
refusal.
|
|
243
|
+
- A binding line was appended to the end of the companion instead of inserted into the table.
|
|
244
|
+
More sections follow the table there — "What checks it", "What else to know when reading the
|
|
245
|
+
code" — and a line appended at the end does not make the table at all: the statement reads as
|
|
246
|
+
unbound, and the spec audit is silent about it, because it looks for the line in the table.
|
|
247
|
+
The line's place is the same as its statement's in the rule: the order of both sides is kept
|
|
248
|
+
the same, otherwise the statement and its binding stop being found by one another.
|
|
249
|
+
- The `description` does not say when **not** to load the pattern — the neighbouring pattern of
|
|
250
|
+
the same rule becomes indistinguishable.
|
|
251
|
+
- A block of ready-made code was accepted by its look, not by checking against the declaration.
|
|
252
|
+
The call in the sample repeats the name, number and order of the live function's parameters: a
|
|
253
|
+
two-parameter call looked plausible exactly until the four-parameter declaration was opened
|
|
254
|
+
next to it. The same pass checks the shape of the code — a sample declaring fields unlike the
|
|
255
|
+
tree declares them teaches breaking the language rule, and the rule that forbids it will not
|
|
256
|
+
know.
|