@sjawhar/claude-envoy 4.11.0 → 4.11.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.
- package/.claude-plugin/plugin.json +1 -1
- package/.omp-plugin/plugin.json +1 -1
- package/AGENTS.md +43 -497
- package/dist/codex-hook.js +2076 -2042
- package/dist/dispatch.js +2106 -2050
- package/dist/envoy-channel.js +2077 -2043
- package/dist/session-hook.js +2076 -2042
- package/legion/skills/legion-architect/SKILL.md +88 -66
- package/legion/skills/legion-architect/references/acceptance.md +89 -258
- package/legion/skills/legion-architect/references/decomposition.md +94 -213
- package/legion/skills/legion-architect/references/design-gate.md +88 -353
- package/legion/skills/legion-architect/references/wake-routing.md +51 -43
- package/legion/skills/legion-controller/SKILL.md +50 -181
- package/legion/skills/legion-controller/references/admission.md +25 -54
- package/legion/skills/legion-controller/references/backlog-stewardship.md +23 -119
- package/legion/skills/legion-controller/references/consolidation.md +9 -93
- package/legion/skills/legion-controller/references/daily-report.md +21 -99
- package/legion/skills/legion-controller/references/escalation.md +16 -118
- package/legion/skills/legion-controller/references/finding-asks.md +31 -162
- package/legion/skills/legion-controller/references/park-asks.md +33 -0
- package/legion/skills/legion-controller/references/parked-decisions.md +20 -264
- package/legion/skills/legion-controller/references/session.md +26 -84
- package/legion/skills/legion-controller/references/slack-mentions.md +18 -134
- package/legion/skills/legion-controller/references/triage.md +18 -89
- package/legion/skills/legion-controller/references/wakes.md +22 -549
- package/legion/skills/legion-controller/references/weekly-audit.md +9 -90
- package/legion/skills/legion-oracle/SKILL.md +19 -28
- package/legion/skills/legion-retro/SKILL.md +54 -93
- package/legion/skills/legion-retro/references/learnings.md +21 -33
- package/legion/skills/legion-retro/references/pr-body-content.md +21 -37
- package/legion/skills/legion-worker/SKILL.md +50 -64
- package/legion/skills/legion-worker/references/ci-checks.md +16 -84
- package/legion/skills/legion-worker/references/conflicts-and-rewrites.md +34 -93
- package/legion/skills/legion-worker/references/default-branch-check.md +22 -60
- package/legion/skills/legion-worker/references/findings.md +25 -180
- package/legion/skills/legion-worker/references/foreign-path.md +14 -22
- package/legion/skills/legion-worker/references/gvisor.md +20 -0
- package/legion/skills/legion-worker/references/merge-gate.md +43 -419
- package/legion/skills/legion-worker/references/plan-tests.md +8 -28
- package/legion/skills/legion-worker/references/pr-body.md +19 -218
- package/legion/skills/legion-worker/references/review-threads.md +16 -70
- package/legion/skills/legion-worker/references/tools.md +31 -578
- package/legion/skills/legion-worker/references/withheld-capability.md +12 -163
- package/legion/skills/simplify-settled-diff/SKILL.md +23 -41
- package/legion/skills/simplify-settled-diff/references/personas/code-quality-reviewer.md +14 -14
- package/legion/skills/simplify-settled-diff/references/personas/code-reuse-reviewer.md +4 -4
- package/legion/skills/simplify-settled-diff/references/personas/efficiency-reviewer.md +8 -8
- package/package.json +1 -1
- package/skills/agent-secrets/SKILL.md +46 -312
- package/skills/agent-secrets/references/store-a-secret.md +9 -0
- package/skills/approval-review/SKILL.md +20 -76
- package/skills/asd-ste100/SKILL.md +43 -85
- package/skills/asd-ste100/examples/before-after.md +18 -53
- package/skills/dispatch/SKILL.md +1 -1
- package/skills/dispatch-writing-specs/SKILL.md +1 -1
- package/skills/envoy/SKILL.md +56 -126
- package/skills/envoy/references/check-settlement.md +26 -43
- package/skills/envoy/references/deliveries.md +26 -144
- package/skills/envoy/references/legion.md +12 -45
- package/skills/envoy/references/roles.md +11 -9
- package/skills/envoy/references/sources.md +13 -25
- package/skills/outside-message/SKILL.md +24 -81
- package/skills/plain-words/SKILL.md +24 -55
- package/skills/thermonuclear-code-quality/SKILL.md +16 -26
- package/skills/thermonuclear-deep-review/SKILL.md +22 -31
- package/legion/skills/legion-worker/references/cleanup-deletion.md +0 -22
- package/legion/skills/legion-worker/references/systematic-rename.md +0 -19
- package/skills/asd-ste100/references/writing-rules.md +0 -59
- package/skills/plain-words/references/mechanics.md +0 -49
|
@@ -1,36 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: plain-words
|
|
3
|
-
description: "Use
|
|
3
|
+
description: "Use when you are about to send or publish text a person reads (an ask, spec, comment, message, pull-request body, commit message, report or status update), answer a person's question, or hand a draft to a reviewer."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Say the literal thing
|
|
7
7
|
|
|
8
|
-
Delete the empty verb phrases agents keep using, and
|
|
9
|
-
|
|
10
|
-
Run this over your text before you send it. It takes a minute and it is not optional.
|
|
8
|
+
Delete the empty verb phrases agents keep using, and write what literally happens instead. Run this over every text before you send it.
|
|
11
9
|
|
|
12
10
|
## Answering a question
|
|
13
11
|
|
|
14
|
-
1. Answer the exact question, only it, in the order it was asked
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
from the behaviour, not the reverse.
|
|
18
|
-
3. Define each term where you first use it, in literal words. No analogy: the reader cannot tell
|
|
19
|
-
which part of one is true.
|
|
20
|
-
|
|
21
|
-
## Before you send
|
|
22
|
-
|
|
23
|
-
A fresh session that has only what the reader has removes what the reader does not need, and lists
|
|
24
|
-
every term it cannot define. Fix each listed term. A reviewer that reads only to approve has not
|
|
25
|
-
done this step, so the two lists are what show it ran. The check runs on the text going to the reader, never on the instructions you give that
|
|
26
|
-
session or on what it sends back, which would never end.
|
|
12
|
+
1. Answer the exact question, only it, in the order it was asked: anything else reads as evasion.
|
|
13
|
+
2. Start from what happens, not from a setting, a flag or a name.
|
|
14
|
+
3. Define each term where you first use it, in literal words. No analogy: the reader cannot tell which part of one is true.
|
|
27
15
|
|
|
28
16
|
## The test
|
|
29
17
|
|
|
30
|
-
Take the verb phrase out and ask:
|
|
31
|
-
happens, you did not know, and the phrase hid it from you as well as from the reader.
|
|
32
|
-
|
|
33
|
-
## The phrases
|
|
18
|
+
Take the verb phrase out and ask: what literally happens? Write that. If you cannot say, you did not know.
|
|
34
19
|
|
|
35
20
|
| Never | What to write |
|
|
36
21
|
|---|---|
|
|
@@ -41,45 +26,29 @@ happens, you did not know, and the phrase hid it from you as well as from the re
|
|
|
41
26
|
| carry it to X, carry the finding | tell X; send it to X; put it on the issue |
|
|
42
27
|
| this shows the gap, the number shows | the gap is 12 of 30; the number is 1.17 |
|
|
43
28
|
|
|
44
|
-
|
|
45
|
-
when you cannot say whether the thing merged, released or deployed. If you can say which, say it.
|
|
46
|
-
If you cannot, that is the sentence — "it is approved and not merged" — and it is more useful than
|
|
47
|
-
any verb.
|
|
29
|
+
If you cannot say whether a thing merged, released or deployed, say that: "it is approved and not merged". On the "name the X" row, delete "name"; if the sentence then says nothing, decide the action and write it.
|
|
48
30
|
|
|
49
|
-
|
|
50
|
-
sentence then says what happens, keep it that way; if it says nothing, you had not decided the
|
|
51
|
-
action, so decide it and write it.
|
|
31
|
+
Plain verbs that name a real action stay (merge, delete, send, read, measure), and so does a term of art that is the literal name of the thing (a merge queue merges).
|
|
52
32
|
|
|
53
|
-
##
|
|
33
|
+
## Cut what marks text as an agent's
|
|
54
34
|
|
|
55
|
-
|
|
56
|
-
|
|
35
|
+
1. A sentence that says what you are about to say, or what you just said.
|
|
36
|
+
2. Praise of the work or the reader: "great question", "a robust solution".
|
|
37
|
+
3. Symmetry such as "not only X but also Y": write the half that is true.
|
|
38
|
+
4. A hedge that costs a second read ("it may be worth considering whether"): recommend it or leave it out. Keep every hedge that carries a real doubt.
|
|
39
|
+
5. A closing offer to do more. Where something remains, name it as the next step with its owner.
|
|
40
|
+
6. A word that rates the thing ("comprehensive", "seamless"): give the measurement instead.
|
|
41
|
+
7. A paragraph whose first and last sentences say the same thing: delete one.
|
|
57
42
|
|
|
58
|
-
|
|
59
|
-
it so a reader can. **The handle is a symptom. Cut the passage instead.** A paragraph that needs a
|
|
60
|
-
shouted header to be skimmable is a paragraph nobody should have to skim.
|
|
43
|
+
No ALL-CAPS headings or phrases. Bold only a number, a name or a choice the reader must find again. A passage that needs a shouted handle needs cutting instead, in a brief to another agent too.
|
|
61
44
|
|
|
62
|
-
|
|
63
|
-
shouted twice, and a reader who sees three of them stops seeing any.
|
|
64
|
-
|
|
65
|
-
## What stays
|
|
66
|
-
|
|
67
|
-
Plain verbs that describe a real action stay: merge, delete, send, read, measure, kill a process by
|
|
68
|
-
pid, repoint a link. The rule is against phrases that sound like an action and name none.
|
|
69
|
-
|
|
70
|
-
A term of art stays when it is the literal name of the thing: a merge queue merges, a garbage
|
|
71
|
-
collector collects, a sweep sweeps.
|
|
72
|
-
|
|
73
|
-
## Where this fits
|
|
45
|
+
## Before you send
|
|
74
46
|
|
|
75
|
-
|
|
76
|
-
English. This skill removes verb phrases that carry no fact. Neither removes AI writing tells, so
|
|
77
|
-
where your session has a pass for those it is a third one. Run them all on an outside message
|
|
78
|
-
(`skill://outside-message`); run this one on everything.
|
|
47
|
+
Give a fresh session only what the reader has. It removes what the reader does not need and lists every term it cannot define; fix each listed term. Run this on the text going to the reader, never on your instructions to that session or on its reply.
|
|
79
48
|
|
|
80
|
-
|
|
81
|
-
text as an agent's — are `skill://plain-words/references/mechanics.md`.
|
|
49
|
+
## Other passes
|
|
82
50
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
51
|
+
- For sentence structure (one instruction per sentence, active voice, simple tenses, short noun stacks), use `skill://asd-ste100`.
|
|
52
|
+
- On an outside message, also follow `skill://outside-message`.
|
|
53
|
+
- A form skill your stream's brief names for a kind of text (a comment to another project's maintainers, a document a buyer reads) applies as well.
|
|
54
|
+
- Where your session installs a fuller pass of its own over AI writing tells, run it after this skill's "Cut what marks text as an agent's".
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: thermonuclear-code-quality
|
|
3
|
-
description: Use when asked for a thermonuclear code-quality review or a deep maintainability audit of a branch or PR diff
|
|
3
|
+
description: Use when asked for a thermonuclear code-quality review or a deep maintainability audit of a branch or PR diff, or to review abstraction quality, oversized files or ad-hoc branching growth.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -8,32 +8,27 @@ disable-model-invocation: true
|
|
|
8
8
|
|
|
9
9
|
If this skill disagrees with the code, a command's output or its `--help`, follow those and say which line of this skill is wrong.
|
|
10
10
|
|
|
11
|
-
Make your own scratch with `mktemp -d` and delete only the paths you made, each by its exact
|
|
12
|
-
path. Never delete by a glob in a shared directory: every role of this issue writes into the same
|
|
13
|
-
`$TMPDIR` on the issue's volume, so a sweep like `rm -rf "$TMPDIR"/tmp.*` deletes directories
|
|
14
|
-
another role has open.
|
|
11
|
+
Make your own scratch with `mktemp -d` and delete only the paths you made, each by its exact path. Never delete by a glob in a shared directory: another session's open directories may sit beside yours, as they do in a shared `$TMPDIR`.
|
|
15
12
|
|
|
16
|
-
This is a maintainability review of one diff: the current branch's changes, or the range you are given. Every remedy keeps behavior the same and removes code or concepts, or moves code where a reader finds it without reading the rest of the file
|
|
13
|
+
This is a maintainability review of one diff: the current branch's changes, or the range you are given. Every remedy keeps behavior the same and removes code or concepts, or moves code where a reader finds it without reading the rest of the file. A behavior change is work for `skill://thermonuclear-deep-review`. The table's last two rows change ordering or failure behavior: say so in the finding.
|
|
17
14
|
|
|
18
15
|
## Report
|
|
19
16
|
|
|
20
|
-
The first line is the verdict, with the short sha of the head you reviewed (`git rev-parse --short=8 HEAD`, or the sha your brief names when you have no shell):
|
|
17
|
+
The first line is the verdict, with the short sha of the head you reviewed (`git rev-parse --short=8 HEAD`, or the sha your brief names when you have no shell). Put nothing before it: a PR gate reads only the first line.
|
|
21
18
|
|
|
22
19
|
- `Verdict: APPROVE at <sha>` when no finding stands.
|
|
23
20
|
- `Verdict: CHANGES at <sha>` when one does.
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Then one entry per finding: `path:line`, the smell, the cost it adds, and the remedy, so the author can act on it without asking. Report few findings, each one you are sure of: a long list hides the ones that block. Order them so the costliest is read first: step 2's structural regressions and missed code-judo moves, then rows 2-3, 7-8, 1, 9-10, then the rest. Write each as a plain request: `this adds another special-case branch to an already busy flow. Move it into its own function.`
|
|
22
|
+
Then one entry per finding: `path:line`, the smell, the cost it adds, and the remedy. Report few findings, each one you are sure of. Order them costliest first: step 2's structural regressions and missed code-judo moves, then rows 2-3, 7-8, 1, 9-10, then the rest. Write each as a plain request: `this adds another special-case branch to an already busy flow. Move it into its own function.`
|
|
28
23
|
|
|
29
24
|
## Steps
|
|
30
25
|
|
|
31
26
|
1. Read the diff and each changed file around its hunks. Flag lines the pull request (the current branch against its base) adds or changes, and existing code it makes harder to follow, such as a function it lengthens or adds a branch or parameter to. A finding on code the pull request leaves alone blocks it for work it did not cause. A range limits what you must read, never what you flag: a smell you see in code the pull request changed before the range starts is a finding.
|
|
32
|
-
2. Look for the code-judo move first: a restructure onto the existing architecture that deletes whole branches, helpers, modes, conditionals or layers.
|
|
33
|
-
3. For a refactor, count the concepts (
|
|
34
|
-
4. Check every hunk against the table below
|
|
35
|
-
5. Before you report a finding, quote its line at the reviewed head. For a boundary, type or duplicate-helper claim, also read the callers (`grep` the symbol) and the existing helper you name.
|
|
36
|
-
6. Report only a cost you can name (the
|
|
27
|
+
2. Look for the code-judo move first: a restructure onto the existing architecture that deletes whole branches, helpers, modes, conditionals or layers. It often removes the line-level findings with it.
|
|
28
|
+
3. For a refactor, count the concepts (types, functions, flags, modes) a reader must know before and after. A move that keeps the count is not a simplification: say so. When the problem is structural, do not suggest a rename.
|
|
29
|
+
4. Check every hunk against the table below. For file size, compare `git show <base>:<path> | wc -l` with `wc -l <path>`; `<base>` is the range start your brief names, else `git merge-base HEAD origin/<default branch>`.
|
|
30
|
+
5. Before you report a finding, quote its line at the reviewed head. For a boundary, type or duplicate-helper claim, also read the callers (`grep` the symbol) and the existing helper you name.
|
|
31
|
+
6. Report only a cost you can name (the Cost column). A preference or a micro-optimization with no such cost is not a finding. When a structural finding exists, leave out naming and style nits.
|
|
37
32
|
7. Ask for a new abstraction (a type, module or policy object) only when the code shows two real callers or two ways it will change. With one, the abstraction is the thin wrapper row 6 flags.
|
|
38
33
|
|
|
39
34
|
## Smells and remedies
|
|
@@ -55,16 +50,11 @@ Then one entry per finding: `path:line`, the smell, the cost it adds, and the re
|
|
|
55
50
|
|
|
56
51
|
## Approval bar
|
|
57
52
|
|
|
58
|
-
- A structural regression, a hacky or magic abstraction, a boundary leak, or a missed obvious decomposition blocks whatever the PR says
|
|
59
|
-
- Every other finding blocks, and the verdict is CHANGES, unless the PR gives evidence that the simpler form fails: a caller it breaks, a measured cost, or a constraint outside the diff that the PR names with `path:line` or a link. "It works" and "tests pass" are no such evidence
|
|
60
|
-
- State a blocking finding as blocking, directly and without rudeness. A "maybe" or "consider" finding reads as optional
|
|
53
|
+
- A structural regression, a hacky or magic abstraction, a boundary leak, or a missed obvious decomposition blocks whatever the PR says.
|
|
54
|
+
- Every other finding blocks, and the verdict is CHANGES, unless the PR gives evidence that the simpler form fails: a caller it breaks, a measured cost, or a constraint outside the diff that the PR names with `path:line` or a link. "It works" and "tests pass" are no such evidence: this review judges structure, not behavior.
|
|
55
|
+
- State a blocking finding as blocking, directly and without rudeness. A "maybe" or "consider" finding reads as optional.
|
|
61
56
|
|
|
62
|
-
##
|
|
57
|
+
## Findings
|
|
63
58
|
|
|
64
|
-
- Rate each finding; the lead disposes of it.
|
|
65
|
-
|
|
66
|
-
by nobody.
|
|
67
|
-
- The four dispositions the lead gives a finding are act on, consider, noted and dismissed. Write
|
|
68
|
-
each finding so the lead can place it: the evidence, the cost, and what it depends on.
|
|
69
|
-
- Do not review a diff you wrote. A reviewer that grades its own work reports no finding against
|
|
70
|
-
it, so hand the diff to a session that did not write it.
|
|
59
|
+
- Rate each finding; the lead disposes of it (act on, consider, noted or dismissed). Give each the evidence, the cost and what it depends on, and put on the must-fix list only what must be fixed before this change ships.
|
|
60
|
+
- Do not review a diff you wrote: hand it to a session that did not write it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: thermonuclear-deep-review
|
|
3
|
-
description: Use when asked for a thermonuclear or deep review, or for a security and correctness audit of a branch or PR diff.
|
|
3
|
+
description: Use when asked for a thermonuclear or deep review, or for a security and correctness audit, of a branch or PR diff.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -8,8 +8,7 @@ disable-model-invocation: true
|
|
|
8
8
|
|
|
9
9
|
If this skill disagrees with the code, a command's output or its `--help`, follow those and say which line of this skill is wrong.
|
|
10
10
|
|
|
11
|
-
Make your own scratch as `skill://thermonuclear-code-quality` says
|
|
12
|
-
you made: every role of this issue writes into one shared `$TMPDIR`.
|
|
11
|
+
Make your own scratch as `skill://thermonuclear-code-quality` says.
|
|
13
12
|
|
|
14
13
|
## Verdict
|
|
15
14
|
|
|
@@ -18,7 +17,7 @@ The first line of the report is the verdict, in exactly this form, because a PR
|
|
|
18
17
|
- `Verdict: CHANGES at <sha>` when the report has a Medium or High finding.
|
|
19
18
|
- `Verdict: APPROVE at <sha>` when it has none. Minor findings do not block.
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
Trace each finding end to end before you rate it. Minor changes no behavior, hides no error and breaks no gate. Any other finding is Medium, or High when the report holds its trace: developers who get false High findings stop listening.
|
|
22
21
|
|
|
23
22
|
## Scope
|
|
24
23
|
|
|
@@ -26,25 +25,25 @@ Audit the range your brief names, or the checked-out branch against its base whe
|
|
|
26
25
|
|
|
27
26
|
## Checks
|
|
28
27
|
|
|
29
|
-
1. **Breakage.** Trace each change through its callers and contracts, across packages and modules
|
|
30
|
-
2. **Consumers.** For each behavior the diff changes
|
|
28
|
+
1. **Breakage.** Trace each change through its callers and contracts, across packages and modules.
|
|
29
|
+
2. **Consumers.** For each behavior the diff changes (log level, status code, exception type, metric or field name, payload shape, identity or uniqueness key, timing, retry, default), name its consumers and show that each still works. Tracing callers misses these, many outside the diff, the package or the repository:
|
|
31
30
|
- alert and monitor predicates (a monitor on `status:error` stops when a line goes down to WARNING)
|
|
32
31
|
- log-level contracts, structured-log field names, log-derived metric filters
|
|
33
32
|
- status codes and error-type strings in request logs, webhooks and audit records
|
|
34
33
|
- identity or uniqueness keys that a persistence layer arbitrates on
|
|
35
34
|
- dashboards, SLOs, saved queries, downstream parsers
|
|
36
35
|
|
|
37
|
-
If you cannot find a consumer, say so
|
|
38
|
-
3. **Developer experience.** Find changes to how developers run or build the code locally,
|
|
39
|
-
4. **Feature leaks.** Trace each feature flag or internal-only check and its callers
|
|
40
|
-
5. **Intended breakage.** A high-risk effect the PR body names and bounds (who it affects, how to undo it) is not a defect
|
|
41
|
-
6. **PR body claims.** Attack each safety or correctness claim in the PR body,
|
|
36
|
+
If you cannot find a consumer, say so. A change that removes its own alarm is High, because it also removes the signal that would catch it.
|
|
37
|
+
3. **Developer experience.** Find changes to how developers run or build the code locally, which no test catches: where or how the code reads secrets, new or renamed environment variables, remapped ports or networking, a new script that must run for a feature to keep working. A new alternative way to run or build, or a new package-manager dependency, is no break unless it needs a step the README or AGENTS.md does not list.
|
|
38
|
+
4. **Feature leaks.** Trace each feature flag or internal-only check and its callers: a leak ships a feature to users a gate excludes.
|
|
39
|
+
5. **Intended breakage.** A high-risk effect the PR body names and bounds (who it affects, how to undo it) is not a defect. Report one it does not bound, or one that removes a safeguard or feature gate.
|
|
40
|
+
6. **PR body claims.** Attack each safety or correctness claim in the PR body, since the diff does not show whether prose is true. First:
|
|
42
41
|
- Order, not coverage: after a pipeline sanitizes, can any later pass create or recreate what the sanitizer neutralized?
|
|
43
42
|
- An input called safe because another program escapes it depends on that program: rate the finding as if it did not.
|
|
44
43
|
|
|
45
44
|
## Security Guidelines
|
|
46
45
|
|
|
47
|
-
For each row whose surface the diff touches, answer with a file:line citation
|
|
46
|
+
For each row whose surface the diff touches, answer with a file:line citation.
|
|
48
47
|
|
|
49
48
|
| Tag | If the diff touches… | Answer, with file:line |
|
|
50
49
|
| --- | --- | --- |
|
|
@@ -57,30 +56,22 @@ For each row whose surface the diff touches, answer with a file:line citation, b
|
|
|
57
56
|
| `agent-def` | an agent definition, skill, role prompt, `.omp/` config, or `AGENTS.md` | whether this diff can steer its own reviewers, and, if so, what a reviewer must check by hand |
|
|
58
57
|
| `transport` | TLS or certificate verification, a signature, an HMAC, a randomness source, or a read or write that untrusted input sizes with no bound | what changed, the check or bound it relies on, and the ASVS identifier it maps to |
|
|
59
58
|
|
|
60
|
-
- Cite an OWASP ASVS v5.0.0 identifier where one applies (`v5.0.0-1.2.5` style)
|
|
61
|
-
- A security finding with no stated exploit path is hardening, ranked Minor. One that states an exploit path is
|
|
62
|
-
- Report at most two hardening items, ranked, and put the rest in one paragraph
|
|
63
|
-
- Start each security finding with its row's tag, `Security[<tag>]
|
|
64
|
-
- End the report with one `Security:` line
|
|
59
|
+
- Cite an OWASP ASVS v5.0.0 identifier where one applies (`v5.0.0-1.2.5` style).
|
|
60
|
+
- A security finding with no stated exploit path is hardening, ranked Minor. One that states an exploit path is a finding at its real priority.
|
|
61
|
+
- Report at most two hardening items, ranked, and put the rest in one paragraph.
|
|
62
|
+
- Start each security finding with its row's tag, `Security[<tag>]:`.
|
|
63
|
+
- End the report with one `Security:` line: each touched row's tag and its answer with file:line, or `Security: no sensitive surface in this diff.` when the diff touches none.
|
|
65
64
|
|
|
66
65
|
## Findings
|
|
67
66
|
|
|
68
|
-
- Never report a finding whose open question you can settle by reading code
|
|
67
|
+
- Never report a finding whose open question you can settle by reading code. When you cannot settle it, say what you searched and where.
|
|
68
|
+
- Rate each finding; the lead disposes of it (act on, consider, noted or dismissed). Give each the trace, the consumer it breaks and what it depends on, and put on the must-fix list only what must be fixed before this change ships.
|
|
69
|
+
- Do not review a diff you wrote: hand it to a session that did not write it.
|
|
69
70
|
|
|
70
71
|
## PR discussion
|
|
71
72
|
|
|
72
|
-
Only after your own audit,
|
|
73
|
+
Only after your own audit, and only with a Medium or High finding on a branch that has a PR:
|
|
73
74
|
|
|
74
|
-
1. Read the PR
|
|
75
|
+
1. Read the PR's comments and review comments, bots' included, with `gh` or `glab`.
|
|
75
76
|
2. Check their findings in the code: a comment is not evidence. Include the valid ones you missed; for one you share, add their evidence if yours lacks it.
|
|
76
|
-
3. Mark each finding that came from that discussion
|
|
77
|
-
|
|
78
|
-
## A reviewer rates, a lead decides
|
|
79
|
-
|
|
80
|
-
- Rate each finding; the lead disposes of it. Put on the must-fix list only a finding that has to
|
|
81
|
-
be fixed before this change ships, because a list that mixes those with the rest gets filtered
|
|
82
|
-
by nobody.
|
|
83
|
-
- The four dispositions the lead gives a finding are act on, consider, noted and dismissed. Write
|
|
84
|
-
each finding so the lead can place it: the trace, the consumer it breaks, and what it depends on.
|
|
85
|
-
- Do not review a diff you wrote. A reviewer that grades its own work reports no finding against
|
|
86
|
-
it, so hand the diff to a session that did not write it.
|
|
77
|
+
3. Mark each finding that came from that discussion.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Strategy: Cleanup & Deletion PRs
|
|
2
|
-
|
|
3
|
-
When deleting deprecated code, stale docs, or consolidating references.
|
|
4
|
-
|
|
5
|
-
## When deleting a CLI command, check all four:
|
|
6
|
-
|
|
7
|
-
1. Implementation file(s)
|
|
8
|
-
2. `package.json` / `pyproject.toml` script entry
|
|
9
|
-
3. All project documentation references (AGENTS.md or equivalent — check command tables AND section headings)
|
|
10
|
-
4. Wrapper scripts or CI jobs that invoke it
|
|
11
|
-
|
|
12
|
-
## project doc headings are documentation too
|
|
13
|
-
|
|
14
|
-
When updating a command reference, grep for the section heading and update it in the same commit. Headings that reference specific paths (`## Foo (meta/bar/)`) go stale when paths change.
|
|
15
|
-
|
|
16
|
-
## Deletion PRs should be almost entirely deletions
|
|
17
|
-
|
|
18
|
-
Resist opportunistic refactors. If the diff has significant additions, the scope has crept. The value of a cleanup PR is its tight, reviewable scope.
|
|
19
|
-
|
|
20
|
-
## Complete the deletion chain
|
|
21
|
-
|
|
22
|
-
If a feature has implementation + CLI wrapper + package.json entry + docs, remove all of them together. Partial deletion leaves broken references.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Strategy: Systematic Rename
|
|
2
|
-
|
|
3
|
-
When a repo, package, or URL is renamed across a codebase.
|
|
4
|
-
|
|
5
|
-
## Checklist
|
|
6
|
-
|
|
7
|
-
1. **Scope by file type** — grep all text-bearing extensions, not just the obvious ones:
|
|
8
|
-
- Source code (`.ts`, `.js`, `.py`, `.sh`) — functional, must update
|
|
9
|
-
- CI/CD configs (`.yml`, `.yaml`) — functional, must update
|
|
10
|
-
- Documentation (`.md`) — correctness, should update
|
|
11
|
-
- Config files (`.json`, `.toml`) — check but may be immutable
|
|
12
|
-
|
|
13
|
-
2. **Classify matches as mutable vs immutable** — historical records (transcripts, test snapshots, progress logs) must NOT be modified. Changing them falsifies history.
|
|
14
|
-
|
|
15
|
-
3. **Check comments for semantic context** — a comment mentioning the old name may still be correct in intent. Update the name but preserve the reasoning.
|
|
16
|
-
|
|
17
|
-
4. **Verify with grep before AND after** — capture pre-edit state as a baseline for comparison.
|
|
18
|
-
|
|
19
|
-
5. **Use `jj diff --git`** for verification — plain `jj diff` without color concatenates old/new text confusingly (e.g., `old-nameNEW-name` without color codes).
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# ASD-STE100 Writing Rules — Summary and Sources
|
|
2
|
-
|
|
3
|
-
This file summarizes the public, official description of ASD-STE100 (Simplified Technical English). It paraphrases rule *categories*. It does not reproduce the standard's text or its ~900-word dictionary verbatim. For the authoritative document, request the free download at the official site.
|
|
4
|
-
|
|
5
|
-
## What ASD-STE100 Is
|
|
6
|
-
|
|
7
|
-
ASD-STE100 is a controlled natural language, first released in 1986 (as AECMA Document PSC-85-16598) by what is now ASD (the AeroSpace and Defense Industries Association of Europe). It was built at the request of European airlines — most staffed by non-native English speakers — who needed maintenance documentation that could not be misread, because a misread instruction on an aircraft can kill people. The standard is maintained by the Simplified Technical English Maintenance Group (STEMG) and has been free to download since Issue 6 (2013). The current edition is Issue 9 (January 2025).
|
|
8
|
-
|
|
9
|
-
## Structure
|
|
10
|
-
|
|
11
|
-
- **53 writing rules across 9 sections** covering word choice, grammar, sentence structure, and style.
|
|
12
|
-
- **A dictionary** of roughly 900 approved words, each restricted to one meaning and one part of speech, plus roughly 1,200 words to avoid with suggested replacements.
|
|
13
|
-
- **A terminology allowance**: organizations may define their own dictionary of approved technical nouns and verbs beyond the base ~900 words, for domain-specific vocabulary the base dictionary can't cover.
|
|
14
|
-
|
|
15
|
-
## Rule Categories (Paraphrased)
|
|
16
|
-
|
|
17
|
-
**Word choice**
|
|
18
|
-
- Use approved words only in their approved meaning and part of speech.
|
|
19
|
-
- Each word maps to exactly one meaning — don't rely on context to disambiguate a word that has several dictionary senses.
|
|
20
|
-
- Prefer the plainer, shorter, more common word over a formal or rare synonym.
|
|
21
|
-
- Use an approved verb for an action, not a noun derived from that verb (Rule 3.7).
|
|
22
|
-
- Do not make phrasal verbs by putting a verb and a preposition together (Rule 9.3). Their meaning is not predictable from the parts, and non-native readers and translation systems both mishandle them.
|
|
23
|
-
|
|
24
|
-
**Verb forms**
|
|
25
|
-
- Permitted forms: infinitive, imperative, simple present, simple past, simple future, and past participle used only as an adjective.
|
|
26
|
-
- No present perfect, past perfect, or other compound/auxiliary constructions. "We have received" is not allowed. "We received" is allowed.
|
|
27
|
-
- "-ing" forms are permitted only as a technical noun or as part of a technical noun, not as a verb form.
|
|
28
|
-
|
|
29
|
-
**Voice**
|
|
30
|
-
- Active voice is required for procedures and instructions.
|
|
31
|
-
- Passive voice is allowed only in descriptive text, and only when the actor performing the action is genuinely unknown or irrelevant to the reader.
|
|
32
|
-
|
|
33
|
-
**Sentence structure**
|
|
34
|
-
- One instruction per sentence.
|
|
35
|
-
- Maximum ~20 words per sentence for procedures and instructions. Maximum ~25 words for descriptive text.
|
|
36
|
-
- Do not omit sentence parts (verb, subject, article) just to shorten the sentence — the standard explicitly warns that this creates ambiguity rather than clarity.
|
|
37
|
-
- Noun clusters (strings of nouns stacked as a modifier) are capped at 3 words.
|
|
38
|
-
- Semicolons are not permitted at all (Rule 8.1): "You can use all standard English punctuation marks but not the semicolon (;)." Write separate sentences instead. Every other standard mark, including the em dash, remains permitted.
|
|
39
|
-
|
|
40
|
-
**Paragraph and document structure**
|
|
41
|
-
- One topic per paragraph.
|
|
42
|
-
- Maximum ~6 sentences per paragraph.
|
|
43
|
-
- Use vertical (numbered or bulleted) lists for sequences, conditions, or complex enumerations instead of burying them in prose.
|
|
44
|
-
|
|
45
|
-
**Safety instructions**
|
|
46
|
-
- Safety-critical instructions must open with a clear command or condition, not be buried mid-sentence.
|
|
47
|
-
|
|
48
|
-
## Why This Skill Repurposes STE for Agent Output
|
|
49
|
-
|
|
50
|
-
STE was designed to eliminate ambiguity for a reader who cannot ask a follow-up question — a technician on a tarmac, working from a manual, with no author to call. An AI agent parsing another agent's output, a tool description, or a system message is in the same position: no back-channel to resolve "does this passive-voice sentence mean the caller does X, or the callee does X?" The same rule set that protects an airline mechanic from a misread torque spec protects a downstream agent from a misread instruction.
|
|
51
|
-
|
|
52
|
-
## Sources
|
|
53
|
-
|
|
54
|
-
- [ASD-STE100 official site](https://www.asd-ste100.org/)
|
|
55
|
-
- [ASD-STE100 — About STE](https://www.asd-ste100.org/about_STE.html)
|
|
56
|
-
- [ASD Europe — Simplified Technical English](https://www.asd-europe.org/standards-specifications/simplified-technical-english/)
|
|
57
|
-
- [Simplified Technical English — Wikipedia](https://en.wikipedia.org/wiki/Simplified_Technical_English)
|
|
58
|
-
- [TechScribe — ASD-STE100 Simplified Technical English](https://www.techscribe.co.uk/techw/asd-simplified-technical-english.htm)
|
|
59
|
-
- [SKYbrary — Simplified Technical English (STE)](https://skybrary.aero/articles/simplified-technical-english-ste)
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# The two passes over a draft
|
|
2
|
-
|
|
3
|
-
Read this when you have a draft and want the passes themselves, not the rule. The structural pass
|
|
4
|
-
makes a sentence hard to misread; the tells pass removes the writing that marks text as an agent's.
|
|
5
|
-
`skill://plain-words` holds the rule each pass serves: every verb names something that happened.
|
|
6
|
-
|
|
7
|
-
Run the structural pass first: a tell often disappears with the sentence that carried it.
|
|
8
|
-
|
|
9
|
-
## The structural pass
|
|
10
|
-
|
|
11
|
-
1. One instruction per sentence. A sentence that holds two actions hides the second from a reader
|
|
12
|
-
who stops at the first.
|
|
13
|
-
2. Active voice, with the actor named. "The job is retried" leaves the reader to guess who retries
|
|
14
|
-
it; "the daemon retries the job" does not.
|
|
15
|
-
3. Simple tenses. A compound tense carries a time relation the reader has to reconstruct, so keep
|
|
16
|
-
one only where that relation is the fact.
|
|
17
|
-
4. Write the thing, not its noun form: "the build failed", not "a build failure occurred". A noun
|
|
18
|
-
made from a verb drops the actor and the time.
|
|
19
|
-
5. Cut a noun stack to three words. Four or more leave the reader guessing which word modifies
|
|
20
|
-
which.
|
|
21
|
-
6. One idea per paragraph, and a list wherever you write three or more of anything. A reader
|
|
22
|
-
counts a list and cannot count a sentence.
|
|
23
|
-
7. Keep every qualifier, exception, number and hedge. Where keeping one makes the sentence long,
|
|
24
|
-
keep it long and say why: dropping "may" turns a possibility into a claim.
|
|
25
|
-
8. Use one word for one thing, through the whole text. A synonym reads as a second thing.
|
|
26
|
-
|
|
27
|
-
## The tells pass
|
|
28
|
-
|
|
29
|
-
1. Delete a sentence that says what you are about to say, or what you have just said. A reader who
|
|
30
|
-
has the point does not need it announced.
|
|
31
|
-
2. Delete praise of the work and of the reader: "great question", "a robust solution".
|
|
32
|
-
3. Delete the symmetry an agent reaches for: "not only X but also Y", "it is not just A, it is B".
|
|
33
|
-
Write the half that is true.
|
|
34
|
-
4. Delete a hedge that costs a second read: "it may be worth considering whether". Recommend it or
|
|
35
|
-
leave it out.
|
|
36
|
-
5. Delete a closing offer to do more. Where something remains, name it as the next step with its
|
|
37
|
-
owner.
|
|
38
|
-
6. Cut an em dash and a semicolon into two sentences, unless the aside is the fact.
|
|
39
|
-
7. Replace a word that rates the thing ("comprehensive", "significant", "seamless") with the
|
|
40
|
-
measurement that made you reach for it.
|
|
41
|
-
8. Read the first and last sentence of each paragraph alone. Where they say the same thing, delete
|
|
42
|
-
one.
|
|
43
|
-
|
|
44
|
-
## Where a fuller pass exists
|
|
45
|
-
|
|
46
|
-
`skill://asd-ste100` is the full controlled-language standard behind the structural pass: run it
|
|
47
|
-
where a reader must not misread one sentence. Neither pass here replaces `skill://plain-words`,
|
|
48
|
-
which is the rule both serve. Where your session installs a fuller pass of its own over AI writing
|
|
49
|
-
tells, run that one after the tells pass above; this file is what you run when it does not.
|