@sjawhar/claude-envoy 4.10.0 → 4.11.1
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 +9 -3
- package/dist/dispatch.js +9 -3
- package/dist/envoy-channel.js +10 -4
- package/dist/session-hook.js +9 -3
- 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,96 +1,73 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: asd-ste100
|
|
3
|
-
description: "Use when English text must be
|
|
4
|
-
version: 0.4.0
|
|
3
|
+
description: "Use when English text must be read with no human to resolve ambiguity (tool descriptions, error messages, agent instructions, system prompts, status reports), reads as dense or easy to misparse, or needs an STE100 or plain-language rewrite. Not for creative or marketing copy."
|
|
5
4
|
---
|
|
6
5
|
|
|
7
|
-
Copied from danyuchn/asd-ste100-skill at 32511c69 under its MIT licence (LICENSE), without its linter.
|
|
8
|
-
|
|
9
6
|
# Simplified Technical English (ASD-STE100)
|
|
10
7
|
|
|
11
|
-
## Two
|
|
12
|
-
|
|
13
|
-
Pick a mode before rewriting. If the user does not say which, infer it from the text type. Keep the choice internal unless the user asks for the rule table (see Output Format).
|
|
14
|
-
|
|
15
|
-
**Strict** — procedures, error messages, tool and function descriptions, inter-agent instructions, safety text. Anywhere a wrong reading has a cost. Apply every rule below, including the hard length caps and one-word-one-meaning discipline.
|
|
16
|
-
|
|
17
|
-
**STE-flavored** — READMEs, PR descriptions, changelogs, explanatory prose. Apply the structural rules in full and treat the lexical rules as advisory (see Core Rewrite Rules for that split). In practice that means keeping the sentence length caps, active voice, simple tenses, no phrasal verbs, no semicolons, no nominalization and no marketing adjectives, while dropping the one-word-one-meaning lockdown: prose needs some range, and a strict rewrite of prose reads as a personality transplant rather than a clarification.
|
|
18
|
-
|
|
19
|
-
The two modes and the structural/lexical split are the same distinction seen from two directions. The split says which rules this skill can verify without ASD's dictionary. The modes say which of them to enforce for a given kind of text.
|
|
20
|
-
|
|
21
|
-
## Source and Scope
|
|
22
|
-
|
|
23
|
-
The rule summary, its citations and worked examples are in `references/writing-rules.md` and `examples/before-after.md`.
|
|
8
|
+
## Two modes
|
|
24
9
|
|
|
25
|
-
|
|
10
|
+
Pick a mode before you rewrite. If the user does not name one, infer it from the text type.
|
|
26
11
|
|
|
27
|
-
|
|
12
|
+
- **Strict**: procedures, error messages, tool and function descriptions, instructions to an agent, safety text, and anywhere a wrong reading has a cost. Apply every rule below.
|
|
13
|
+
- **STE-flavored**: READMEs, PR descriptions, changelogs, explanatory prose. Apply the structural rules in full; treat the lexical rules as advice, since prose needs some range of words.
|
|
28
14
|
|
|
29
|
-
##
|
|
30
|
-
|
|
31
|
-
STE's rules divide into two kinds, and this skill can only fully deliver one of them. **Structural rules** are self-contained: they describe sentence shape, and you can apply them from the description alone. **Lexical rules** are defined entirely by the official ~900-word dictionary, which this skill deliberately does not reproduce (see Source and Scope). Without that dictionary, the lexical rules degrade from a checkable standard into a preference for plain words.
|
|
32
|
-
|
|
33
|
-
Apply the structural rules with confidence. Apply the lexical rules as a direction of travel, and say so in your output rather than implying dictionary compliance you cannot verify.
|
|
34
|
-
|
|
35
|
-
### Structural rules — apply these
|
|
15
|
+
## Structural rules
|
|
36
16
|
|
|
37
17
|
| Rule | Do | Don't |
|
|
38
18
|
|---|---|---|
|
|
39
|
-
| Active voice | "The agent deletes the file." | "The file is deleted (by the agent)."
|
|
40
|
-
|
|
|
19
|
+
| Active voice in procedures and instructions | "The agent deletes the file." | "The file is deleted (by the agent)." Passive only in descriptive text, when the actor is unknown or irrelevant |
|
|
20
|
+
| Safety first | Open a safety-critical instruction with its command or condition: "Stop the pump before you open the valve." | The command or condition buried mid-sentence |
|
|
21
|
+
| No phrasal verbs (Rule 9.3) | "Remove the panel." / "Start the job." | "Take off the panel." / "Spin up the job." |
|
|
41
22
|
| One instruction per sentence | "Open the file. Read line 3." | "Open the file and read line 3, then check if it matches." |
|
|
42
|
-
| Sentence length | ≤20 words for instructions
|
|
43
|
-
| No semicolons (Rule 8.1) |
|
|
44
|
-
| Noun clusters | ≤3
|
|
45
|
-
| No ellipsis | Keep the subject, verb
|
|
46
|
-
| Keep modality | "The request **may have** failed." stays
|
|
47
|
-
|
|
|
48
|
-
| Lists for sequences |
|
|
23
|
+
| Sentence length | ≤20 words for instructions and procedures, ≤25 for descriptions | Long compound or subordinate-clause sentences |
|
|
24
|
+
| No semicolons (Rule 8.1) | Separate sentences | Any semicolon. Every other mark is allowed; an em dash often marks a sentence to split. |
|
|
25
|
+
| Noun clusters | ≤3 nouns stacked ("fuel pump valve") | 4 or more ("high pressure fuel pump inlet valve assembly") |
|
|
26
|
+
| No ellipsis | Keep the subject, verb and article | "Files not backed up will be lost" (which files?) |
|
|
27
|
+
| Keep modality | "The request **may have** failed." stays as it is | Turning a hedge into a fact, or adding a certainty the source did not state |
|
|
28
|
+
| Paragraphs | One topic, ≤6 sentences | Several topics in one paragraph |
|
|
29
|
+
| Lists for sequences | A numbered or bulleted list for 3 or more steps or conditions | A sequence buried in one sentence |
|
|
49
30
|
|
|
50
|
-
|
|
31
|
+
## Lexical rules
|
|
51
32
|
|
|
52
|
-
|
|
53
|
-
|---|---|---|---|
|
|
54
|
-
| One word, one meaning | Pick one verb for one action and reuse it every time (e.g. always "check", never mix "check"/"verify"/"confirm" for the same action) | Rotate synonyms for the same idea across a document | Consistency within a document is checkable. Which word is the *approved* one is not, without the dictionary. |
|
|
55
|
-
| One part of speech per word | "Apply oil to the valve" (oil = noun) | "Oil the valve" (oil = verb) | Whether "oil" is approved as a noun only is a dictionary fact. Prefer the noun form when both read equally well. Do not claim compliance. |
|
|
56
|
-
| Verb, not noun (Rule 3.7) | "Analyze the log." | "Perform an analysis of the log." — a noun form of an action makes the sentence longer and hides who acts | Rule 3.7 says "use an **approved** verb to describe an action." Preferring the verb form is safe to apply anywhere. Knowing which verb is the approved one needs the dictionary. |
|
|
57
|
-
| Domain terms | Keep necessary technical nouns/verbs, but define them once if not common English (STE allows a project-specific glossary beyond its base dictionary) | Use jargon without ever defining it | The glossary allowance is real STE, but the base dictionary it extends is absent. |
|
|
33
|
+
These come from ASD's dictionary of about 900 approved words, which ASD does not let others reproduce, so this skill does not hold it. Apply them as a direction, and never claim dictionary compliance. Where exact approved wording matters, get the standard from https://www.asd-ste100.org/ and check word by word.
|
|
58
34
|
|
|
59
|
-
|
|
35
|
+
- One word, one meaning: one term for one thing or action through the whole text.
|
|
36
|
+
- One part of speech per word: "Apply oil to the valve", not "Oil the valve".
|
|
37
|
+
- Verb, not noun (Rule 3.7): "Analyze the log", not "Perform an analysis of the log".
|
|
38
|
+
- Keep necessary technical terms, and define each once if it is not common English.
|
|
60
39
|
|
|
61
|
-
|
|
40
|
+
## Simple tenses
|
|
62
41
|
|
|
63
|
-
|
|
42
|
+
Use the infinitive, imperative, simple present, simple past, simple future, and the past participle as an adjective: "we received the report", not "we have received the report". Where a compound form carries information the simple form cannot ("the job has completed" as current state, or the hedge in "may have failed"), keep it. When the tense rule and the modality rule conflict, modality wins.
|
|
64
43
|
|
|
65
|
-
## Scan
|
|
44
|
+
## Scan checklist
|
|
66
45
|
|
|
67
|
-
|
|
46
|
+
Scan for all six before you rewrite:
|
|
68
47
|
|
|
69
|
-
1. **Synonym rotation
|
|
70
|
-
2. **Hedge stacking
|
|
71
|
-
3. **Nominalization
|
|
72
|
-
4. **Marketing adjectives
|
|
73
|
-
5. **Run-on sentences
|
|
74
|
-
6. **Soft phrasal verbs
|
|
48
|
+
1. **Synonym rotation**: one thing with several names ("the user", "the customer", "the client"). Pick one.
|
|
49
|
+
2. **Hedge stacking**: qualifiers that leave no claim ("it is important to note that this may potentially help"). State the claim or delete it.
|
|
50
|
+
3. **Nominalization**: "perform an analysis of", "provides assistance to". Use the verb.
|
|
51
|
+
4. **Marketing adjectives**: seamless, robust, powerful, effortless. Delete, or give the measurement.
|
|
52
|
+
5. **Run-on sentences**: ideas joined by semicolons or em dashes. One idea per sentence.
|
|
53
|
+
6. **Soft phrasal verbs**: spin up, reach out, dive into, kick off. Use start, contact, read, begin.
|
|
75
54
|
|
|
76
55
|
## Process
|
|
77
56
|
|
|
78
|
-
1. Pick the mode
|
|
79
|
-
2. Read the
|
|
80
|
-
3. Walk it sentence by sentence
|
|
81
|
-
4. Rewrite each flagged sentence to
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
5. Output the rewritten text (see Output Format). Keep the mode choice and the rule analysis internal unless the user asked to see them.
|
|
85
|
-
6. If the input already complies, say so — do not force changes onto compliant text.
|
|
57
|
+
1. Pick the mode.
|
|
58
|
+
2. Read the text once for meaning before you change anything.
|
|
59
|
+
3. Walk it sentence by sentence, and flag each break of the rules and each checklist habit. In STE-flavored mode, flag the lexical rules but do not enforce them.
|
|
60
|
+
4. Rewrite each flagged sentence with the same meaning. Keep every hedge ("may", "could", "is likely to") at its strength, and add no cause, frequency or mechanism the source did not state. Where a rewrite would drop a safety condition, a scope qualifier or a number, keep the longer form.
|
|
61
|
+
5. Stop when each sentence has one reading, not when it is shortest.
|
|
62
|
+
6. If the text already complies, say so and change nothing.
|
|
86
63
|
|
|
87
|
-
|
|
64
|
+
Read `skill://asd-ste100/examples/before-after.md` when you want worked rewrites of agent output, each with what was flagged and what was kept.
|
|
88
65
|
|
|
89
|
-
|
|
66
|
+
## Output
|
|
90
67
|
|
|
91
|
-
|
|
68
|
+
By default, print the rewritten text and nothing else: no preamble, mode, count, summary or offer. If step 4 kept a longer form on purpose, add one line after the text, `Kept as-is:`, naming the phrase and the precision it keeps.
|
|
92
69
|
|
|
93
|
-
|
|
70
|
+
When the user asks for the reasoning ("show the diff", "which rules did it break", "before/after"), print this table instead, then one line on what you did not simplify and why:
|
|
94
71
|
|
|
95
72
|
```markdown
|
|
96
73
|
| Rule violated | Original | Simplified |
|
|
@@ -101,23 +78,4 @@ The one permitted addition: if step 4 kept a longer phrasing on purpose, add a s
|
|
|
101
78
|
Mode: Strict. 7 violations found.
|
|
102
79
|
```
|
|
103
80
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
## Boundaries
|
|
107
|
-
|
|
108
|
-
**Will:**
|
|
109
|
-
- Rewrite ambiguous or dense English into short, single-meaning, active-voice sentences.
|
|
110
|
-
- Return the rewritten text alone by default, and name the rules it applied when the user asks.
|
|
111
|
-
- Preserve every fact, condition, and scope qualifier in the original.
|
|
112
|
-
- Preserve the strength of every hedge, and add no claim the source did not make.
|
|
113
|
-
- Suggest a one-line glossary entry for domain terms that must stay.
|
|
114
|
-
|
|
115
|
-
**Will not:**
|
|
116
|
-
- Reproduce ASD's official ~900-word dictionary as if it were memorized verbatim — always treat the official download as the source of truth for exact approved wording.
|
|
117
|
-
- Simplify creative, marketing, or persuasive copy where voice and nuance are the point.
|
|
118
|
-
- Silently drop a safety condition, exception, or scope qualifier to shorten a sentence — it will flag the trade-off instead.
|
|
119
|
-
- Convert "may have failed" into "failed", or "could be caused by X" into "X is the cause" — losing a hedge changes the claim.
|
|
120
|
-
- Guarantee an aerospace/defense-grade STE-compliant document. This is a general-purpose clarity tool inspired by STE, not a certified STE authoring tool.
|
|
121
|
-
- Make weak content true or useful. STE fixes the *form* of a text, not its substance. A hollow paragraph rewritten under these rules becomes a clean, short, well-punctuated hollow paragraph. If the text has nothing to say, no rewrite fixes that — say so instead of polishing it.
|
|
122
|
-
- Shorten past the point of clarity. Cutting words is not the goal. Removing ambiguity is the goal. Past a certain point compression starts costing the reader time rather than saving it, so stop when the sentence is unambiguous, not when it is shortest.
|
|
123
|
-
|
|
81
|
+
STE fixes the form of a text, not its substance. If the text has nothing to say, say so rather than polish it.
|
|
@@ -1,92 +1,57 @@
|
|
|
1
|
-
# Before
|
|
1
|
+
# Before and after: agent output
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Each example gives the text, what was flagged, the rewrite, and the calls made on the way. Word counts are whitespace-separated tokens.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
| Rule | Before | After | Why |
|
|
8
|
-
|---|---|---|---|
|
|
9
|
-
| One meaning per word | "Verify the system." / "Check the connections." / "Confirm receipt." | "Make sure the system is correct." (one approved term used consistently) | Three near-synonyms force the reader to guess whether they mean the same action. |
|
|
10
|
-
| One part of speech per word | "Oil the valve." | "Apply oil to the valve." | If "oil" is approved only as a noun, using it as a verb breaks the one-word-one-role guarantee. |
|
|
11
|
-
| Precise verb meaning | "Follow the safety instructions." | "Obey the safety instructions." | "Follow" can mean "come after" or "obey" — STE picks the unambiguous one. |
|
|
12
|
-
| Simple tense only | "We have received the technical reports from HQ." | "We received the technical reports from HQ." | Present perfect adds a second parse ("received, and still relevant now?") that simple past avoids. |
|
|
13
|
-
| Verb, not noun | "Perform an inspection of the filter." | "Inspect the filter." | The noun form hides the action and adds a filler verb that carries no meaning. |
|
|
14
|
-
| No phrasal verbs | "Take off the access panel." | "Remove the access panel." | "Take off" also means "depart" and "deduct" — the two words together do not predict the meaning. |
|
|
15
|
-
|
|
16
|
-
## Part 2 — Applied to Agent Output
|
|
17
|
-
|
|
18
|
-
These are original examples built for this skill's actual use case: rewriting AI agent output so another agent, a translation layer, or a non-native reader can parse it without ambiguity. They are illustrations, not quotes from any real system.
|
|
19
|
-
|
|
20
|
-
Word counts below are whitespace-separated tokens (`text.split()`), punctuation not counted separately. A different tokenizer will produce a different number.
|
|
21
|
-
|
|
22
|
-
### Example A — Tool description
|
|
5
|
+
## A. Tool description (strict)
|
|
23
6
|
|
|
24
7
|
**Before:**
|
|
25
8
|
> This tool will attempt to synchronize state across the various backends that have been configured, and if a conflict is detected it may resolve it automatically depending on the strategy that has been set, or otherwise it will surface the conflict for manual review.
|
|
26
9
|
|
|
27
|
-
**
|
|
28
|
-
- Two instructions in one sentence (sync + resolve/surface).
|
|
29
|
-
- Present perfect in the relative clauses ("have been configured", "has been set").
|
|
30
|
-
- 44 words, far over the 25-word descriptive cap.
|
|
10
|
+
**Flagged:** two instructions in one sentence (sync, and resolve or surface); present perfect in the relative clauses ("have been configured", "has been set"); 44 words, over the 25-word cap.
|
|
31
11
|
|
|
32
|
-
|
|
12
|
+
**Not flagged:** "will attempt to" and "may resolve". They are hedges: the tool is not promised to succeed, and the rewrite must not promise it.
|
|
33
13
|
|
|
34
14
|
**After:**
|
|
35
15
|
> The tool tries to synchronize state across the configured backends. If it finds a conflict, it reads the configured strategy. If the strategy allows automatic resolution, the tool may resolve the conflict without a user. If the tool does not resolve the conflict, it reports the conflict for manual review.
|
|
36
16
|
|
|
37
|
-
The last sentence branches on whether the conflict was resolved, not on what the strategy allows
|
|
17
|
+
The last sentence branches on whether the conflict was resolved, not on what the strategy allows: that is what "or otherwise" meant.
|
|
38
18
|
|
|
39
|
-
|
|
19
|
+
## B. Error message (strict)
|
|
40
20
|
|
|
41
21
|
**Before:**
|
|
42
22
|
> An error may have occurred while processing your request due to a possible mismatch in the expected data format, which could be caused by an outdated client version.
|
|
43
23
|
|
|
44
|
-
**
|
|
45
|
-
- One sentence carrying three separate claims (an error occurred, a format mismatch, a client version).
|
|
46
|
-
- 28 words, over the descriptive cap.
|
|
24
|
+
**Flagged:** one sentence with three claims (an error, a format mismatch, a client version); 28 words.
|
|
47
25
|
|
|
48
|
-
Not flagged
|
|
26
|
+
**Not flagged:** "may have occurred" and "could be caused by". The system does not know what went wrong, and both hedges report that.
|
|
49
27
|
|
|
50
28
|
**After:**
|
|
51
29
|
> Your request may have failed. The cause may be a data format that does not match what the server expects. An outdated client can cause this mismatch. Check your client version.
|
|
52
30
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
Note also that "may have failed" keeps a compound verb form that the simple-tense rule would otherwise remove. **When the tense rule and the modality rule conflict, modality wins** — dropping the auxiliary here would delete the uncertainty along with the tense.
|
|
31
|
+
Wrong rewrites read better: "The request failed" asserts a failure the system only suspects, and "an outdated client is the most common cause" invents a frequency the input never gave. "May have failed" keeps a compound verb form because modality wins over the tense rule.
|
|
56
32
|
|
|
57
|
-
|
|
33
|
+
## C. Instruction to an agent (strict)
|
|
58
34
|
|
|
59
35
|
**Before:**
|
|
60
36
|
> Once the upstream job has completed and assuming no errors were raised, the downstream agent should proceed to consume the output artifact, though it is worth noting that partial artifacts are sometimes produced under timeout conditions.
|
|
61
37
|
|
|
62
|
-
**
|
|
63
|
-
- Present perfect ("has completed") and subordinate-clause stacking ("assuming...", "though it is worth noting...").
|
|
64
|
-
- One sentence, three separate facts (completion condition, next action, edge-case warning).
|
|
65
|
-
- 36 words, over the 20-word instruction cap.
|
|
38
|
+
**Flagged:** present perfect ("has completed"); stacked subordinate clauses ("assuming...", "though it is worth noting..."); three facts in one sentence; 36 words, over the 20-word cap.
|
|
66
39
|
|
|
67
40
|
**After:**
|
|
68
41
|
> Wait for the upstream job to finish with no errors. Then read the output artifact. Warning: a timeout can produce a partial artifact. Check that the artifact is complete before you use it.
|
|
69
42
|
|
|
70
|
-
Two
|
|
71
|
-
- "should proceed to consume" became the imperative "read".
|
|
72
|
-
- The
|
|
43
|
+
Two calls, stated rather than hidden:
|
|
44
|
+
- "should proceed to consume" became the imperative "read". That is right for an instruction to the agent that acts, and wrong in descriptive text.
|
|
45
|
+
- The last sentence is new content: it makes the warning actionable. Say so when you add one, and drop it if the source's silence was deliberate.
|
|
73
46
|
|
|
74
|
-
|
|
47
|
+
## D. README prose (STE-flavored)
|
|
75
48
|
|
|
76
49
|
**Before:**
|
|
77
50
|
> Our caching layer is designed to slot seamlessly into your existing stack with minimal friction and no vendor lock-in; it leverages semantic similarity to dramatically reduce the cache misses that traditionally plague LLM workloads.
|
|
78
51
|
|
|
79
|
-
**
|
|
80
|
-
- Marketing adjectives and claims without measurement ("seamlessly", "minimal friction", "dramatically").
|
|
81
|
-
- Semicolon joining two separate ideas.
|
|
82
|
-
- Nominalization and soft phrasing ("is designed to slot into", "leverages").
|
|
83
|
-
- 34 words, over the 25-word descriptive cap.
|
|
52
|
+
**Flagged:** marketing claims without measurement ("seamlessly", "minimal friction", "dramatically"); a semicolon joining two ideas; soft phrasing ("is designed to slot into", "leverages"); 34 words.
|
|
84
53
|
|
|
85
54
|
**After:**
|
|
86
55
|
> A normal cache matches requests by exact text, so a small change in wording causes a cache miss. This cache compares the meaning of a new prompt against the prompts it already holds. It runs alongside your current stack and stores no data outside it.
|
|
87
56
|
|
|
88
|
-
Flavored mode kept the explanatory rhythm and did not force one
|
|
89
|
-
|
|
90
|
-
## How to Read These Examples
|
|
91
|
-
|
|
92
|
-
Part 1 shows the actual rules this skill is built on. Part 2 shows the transfer: the same discipline — one meaning per word, active voice, simple tense, one instruction per sentence, explicit conditions instead of buried subordinate clauses — makes machine-to-machine and cross-language text safer to parse, not just aircraft manuals.
|
|
57
|
+
Flavored mode kept the explanatory rhythm and did not force one term per concept. It still cut the marketing words, the semicolon and the length.
|
package/skills/dispatch/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dispatch
|
|
3
|
-
description: "Use
|
|
3
|
+
description: "Use when you first use `dispatch` in a session: a message, comment, ask, artifact, document edit, claim or status change."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Dispatch
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dispatch-writing-specs
|
|
3
|
-
description: "Use
|
|
3
|
+
description: "Use when you write or change a spec, ask, comment or message a person reads, in a session with Dispatch. It replaces superpowers' brainstorming there."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Writing specs
|
package/skills/envoy/SKILL.md
CHANGED
|
@@ -1,163 +1,93 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: envoy
|
|
3
|
-
description: Use when you
|
|
3
|
+
description: Use when you message or reply to another agent session, find a session id or whether a session is live, subscribe to a topic (pull request, CI, Dispatch, Slack), publish to a role or team, or wait for CI or a merge; also as a subagent reporting to another session, or when a subscription is silent.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Envoy
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Envoy carries events and messages between agent sessions.
|
|
9
|
+
Each Envoy tool's description holds the topic guide, the session states and what each answer means; this skill holds what they leave out.
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
Delivery is at-least-once and can come out of order across topics: drop a repeated `id`, and when two deliveries conflict, act on the one with the later `at`.
|
|
11
|
+
Delivery is at-least-once and can come out of order across topics: drop a repeated `id`, and of two deliveries that conflict, act on the one with the later `at`.
|
|
12
12
|
|
|
13
|
-
## Send a message
|
|
14
|
-
|
|
15
|
-
- Take the target id from the delivery's `reply_with`, or, where the delivery wants no reply and carries none, from its `from`; or from `envoy_sessions` (filter by `machine`, `dir` or `title`).
|
|
16
|
-
Never address a tmux pane or window: Envoy delivers only to a session id, and the session in a pane can change.
|
|
13
|
+
## Send a message
|
|
17
14
|
|
|
15
|
+
- Address a session by its id: take it from the delivery's `reply_with` (or its `from` when it carries none), or from `envoy_sessions` (filter by `machine`, `dir` or `title`).
|
|
16
|
+
Never address a tmux pane: the session in a pane can change.
|
|
18
17
|
- Reply with `in_reply_to=<the delivery's id>`, so the recipient can match the answer to its question.
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
What each send answer means: `skill://envoy/references/deliveries.md`, "What a publish and a send answer".
|
|
25
|
-
|
|
26
|
-
- When `envoy_send` says the send is not confirmed delivered, send the same message again with the `idempotency_key` the error names, within 72 hours:
|
|
27
|
-
Envoy drops it as a repeat if the first copy arrived, and the result then says the earlier attempt was already stored (its text begins `sent to <recipient> once` for a running session, `queued once for <recipient>` for a stopped one).
|
|
28
|
-
A resend without that key can deliver the message twice.
|
|
29
|
-
When the error says Envoy cannot recognise the repeat, ask the recipient whether it arrived instead.
|
|
30
|
-
|
|
31
|
-
- Put the URL or path of what you report in the message, because the recipient cannot find your files any other way.
|
|
32
|
-
|
|
33
|
-
- Set `expects_reply=false` on a message that needs no answer, and set `urgency` only when the work waits on the answer, so the recipient knows whether to answer and how soon.
|
|
34
|
-
`urgency` is for the recipient to read: it does not deliver the message sooner or ahead of others.
|
|
18
|
+
- Read `recipient` in the send result. If it is not the session you meant, send again to the right id.
|
|
19
|
+
- A send answered `queued <id> for <recipient>: the session is stopped …` is stored for that session. Do not send it again: each send stores another copy.
|
|
20
|
+
- When `envoy_send` errs that the send is not confirmed delivered, send the same message again with the `idempotency_key` the error names. A resend without the key can deliver it twice.
|
|
21
|
+
- Put the URL or path of what you report in the message: the recipient cannot see your files.
|
|
22
|
+
- Set `expects_reply=false` when you need no answer, and `urgency` only when work waits on the answer. `urgency` does not deliver sooner.
|
|
35
23
|
|
|
36
24
|
```text
|
|
37
25
|
envoy_send(session_id="<id>", message="Review complete: <url>", in_reply_to="<id>", expects_reply=false)
|
|
38
26
|
```
|
|
39
27
|
|
|
40
|
-
###
|
|
28
|
+
### From a subagent
|
|
41
29
|
|
|
42
|
-
- `envoy_whoami`'s `session_id` is
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
- Start a subagent's message with who you are and who receives the reply ("From <name>, a subagent of session <id>;
|
|
49
|
-
a reply to <id> reaches me"), because the recipient sees only the parent as sender.
|
|
50
|
-
|
|
51
|
-
- When `session_id` is empty (the process took no Envoy identity, or it can no longer place the session that spawned you), your messages carry no sender at all: name yourself in the body.
|
|
52
|
-
|
|
53
|
-
- In a subagent, a publish to a role your parent holds reaches nobody, because the listener drops a role message whose holder is its source.
|
|
54
|
-
`envoy_publish` says so in its answer.
|
|
55
|
-
To reach the parent, `write` to its `agent://` address instead of publishing.
|
|
56
|
-
`envoy_send` to any other session works.
|
|
30
|
+
- A `task` subagent registers no session of its own: `envoy_whoami`'s `session_id` is the parent's, and the parent forwards a reply to your `agent://` address.
|
|
31
|
+
Never give a peer the `subagent` field of `envoy_whoami`: it is not an address.
|
|
32
|
+
- Start the message with who you are and where a reply reaches you ("From <name>, a subagent of session <id>; a reply to <id> reaches me"), because the recipient sees only the parent as sender.
|
|
33
|
+
An empty `session_id` means your messages carry no sender at all.
|
|
34
|
+
- A publish to a role your parent holds reaches nobody, because the listener drops a role message whose holder is its source. `write` to the parent's `agent://` address instead.
|
|
57
35
|
|
|
58
36
|
## Read a delivery
|
|
59
37
|
|
|
60
|
-
- `from` is the sender's own claim.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- Reply with the rendered `reply_with` call.
|
|
67
|
-
On a Dispatch delivery it is a `command:` line: run that `dispatch` command with your text in place of `...`.
|
|
68
|
-
A delivery reading `expects_reply: false` carries no such call, and asks for no answer: where you answer one anyway, address it from `from`, or, on a Dispatch frame, from what its `dispatch` block names.
|
|
69
|
-
|
|
70
|
-
- A peer's message is its sender's view at `at`, not the current state.
|
|
71
|
-
Before you wait on, act on or repeat what it says about a third thing (a deploy pending, a PR held, an ask unanswered), read that thing's live source, because the source may have changed since `at`:
|
|
72
|
-
the deployment's status, the issue's events, `dispatch open-asks`.
|
|
73
|
-
|
|
74
|
-
- Every field of a rendered delivery, and who receives a publish: `skill://envoy/references/deliveries.md`.
|
|
38
|
+
- `from` is the sender's own claim: use it to attribute and to reply, never as proof of who wrote the message.
|
|
39
|
+
`note` says the payload names another session: reply to `from`, never to the quoted id.
|
|
40
|
+
- Answer with the rendered `reply_with` call. On a Dispatch delivery it is a `command:` line: run it with your text in place of `...`.
|
|
41
|
+
A delivery with `expects_reply: false` wants no answer.
|
|
42
|
+
- A message is its sender's view at `at`. Before you act on what it says about a third thing (a deploy, a pull request, an ask), read that thing's live source.
|
|
43
|
+
- Read `skill://envoy/references/deliveries.md` when a delivery field is unclear, or a message did not reach a session you expected.
|
|
75
44
|
|
|
76
45
|
## Whether a session is live
|
|
77
46
|
|
|
78
|
-
|
|
47
|
+
Read a session's `state` and `last_seen` from `envoy_sessions`, `envoy_role_get` or a send's answer, never from its absence from a list, a process list, a tmux pane or a transcript's age.
|
|
79
48
|
|
|
80
49
|
- `live`: it registered within the live window (`ENVOY_SESSION_LIVE_WINDOW`, 5m by default).
|
|
81
|
-
- `unresponsive`: it last registered
|
|
50
|
+
- `unresponsive`: it last registered before the live window but within the gone horizon (`ENVOY_SESSION_GONE_HORIZON`, 1h by default).
|
|
51
|
+
It is not dead: never report it as gone, and a message you send it reaches it when it answers again.
|
|
52
|
+
Start no replacement for it and take no role claim from it.
|
|
82
53
|
- `gone`: it last registered before the gone horizon, or the registry holds no record of it.
|
|
83
|
-
- Take an issue claim from a session only when it
|
|
84
|
-
|
|
54
|
+
- Take an issue claim from a session only when it is `gone` or its `last_seen` is more than 20 minutes old.
|
|
55
|
+
Only the role-claim reaper releases a role claim, once its holder is `gone`: no lookup, publish or delivery failure releases one.
|
|
85
56
|
|
|
86
57
|
## Subscribe to a topic
|
|
87
58
|
|
|
88
|
-
Every topic starts with `notifications
|
|
59
|
+
Every topic starts with `notifications.`; the `envoy_subscribe` description lists the GitHub, Slack, Ghost Wispr and WhatsApp topics.
|
|
60
|
+
A Dispatch issue is `dispatch.issue.<KEY>.>`, and a Dispatch document `dispatch.document.<PROJECT>.<SLUG>.>`.
|
|
89
61
|
|
|
90
|
-
|
|
91
|
-
| --- | --- |
|
|
92
|
-
| A pull request: lifecycle, comments, reviews, mentions, checks | `github.<owner>.<repo>.pr.<n>.>` |
|
|
93
|
-
| Other GitHub | `github.<owner>.<repo>.issue.<n>[.comment\|.mention]`, `.push.branch.<name>`, `.push.tag.<name>`, `.workflow.<file>.<action>` |
|
|
94
|
-
| A Dispatch issue or document | `dispatch.issue.<KEY>.>`, `dispatch.document.<PROJECT>.<SLUG>.>` |
|
|
95
|
-
| Your own inbox | `agent.<session_id>` |
|
|
96
|
-
| Slack, Ghost Wispr, WhatsApp | `skill://envoy/references/sources.md` |
|
|
97
|
-
|
|
98
|
-
- Write the owner, the repository, a branch or tag name and a workflow file as one token each, with every dot written `_`:
|
|
99
|
-
`acme/site.io` is `github.acme.site_io`, and `ci.yml` is `workflow.ci_yml`.
|
|
100
|
-
A slash stays.
|
|
62
|
+
- Write the owner, the repository, a branch or tag name and a workflow file as one token each, every dot as `_` (a slash in a branch name stays): `acme/site.io` is `github.acme.site_io`, and `ci.yml` is `workflow.ci_yml`.
|
|
101
63
|
A topic spelled with the dot receives nothing.
|
|
102
|
-
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
- Read the `warnings` that `envoy_subscribe` returns, and confirm the active topics with `envoy_list`.
|
|
107
|
-
A warning names the spelling Envoy publishes, a token that is not a GitHub topic kind, or a pull request's bare subject `pr.<n>` that no topic of yours extends to its reviews; fix the topic it names.
|
|
108
|
-
"No GitHub event ... in the stream's retention window" means nothing came from that repository in the last 72 hours:
|
|
109
|
-
check that the GitHub App that sends Envoy its webhooks is installed on that repository before you rely on a wake.
|
|
64
|
+
- For a pull request, subscribe to `github.<owner>.<repo>.pr.<n>.>`. Envoy adds the bare lifecycle subject `pr.<n>`, which `>` does not match.
|
|
65
|
+
- Read the `warnings` that `envoy_subscribe` returns and fix the topic each names; confirm the active topics with `envoy_list`.
|
|
66
|
+
`no GitHub event for <owner>/<repo> in the stream's retention window`: check that the GitHub App that sends Envoy its webhooks is installed on that repository before you rely on a wake.
|
|
67
|
+
- Read `skill://envoy/references/sources.md` before you subscribe to Slack, Ghost Wispr or WhatsApp, or test their routing.
|
|
110
68
|
|
|
111
69
|
## Wait for CI or a merge
|
|
112
70
|
|
|
113
|
-
- Subscribe to `github.<owner>.<repo>.pr.<n>.>` and end the turn.
|
|
114
|
-
|
|
71
|
+
- Subscribe to `github.<owner>.<repo>.pr.<n>.>` and end the turn. Never start a `gh` poller: the event wakes you.
|
|
72
|
+
- One `pr.<n>.checks` event arrives per commit whose checks settle, the head or not: compare its `sha` with the head you wait on.
|
|
73
|
+
A commit whose message carries a GitHub skip keyword (`[skip ci]`) starts no workflow, so it may never settle.
|
|
74
|
+
- A commit settles once it has had no check event for 5 seconds (`ENVOY_CI_DEBOUNCE`) and every check run and check suite it reported has finished.
|
|
75
|
+
Envoy does not read GitHub's required checks, so a green settlement does not mean GitHub will merge.
|
|
76
|
+
- A `pr.<n>` event with `closed` and `merged: true` is the merge; it carries `merge_commit_sha`.
|
|
77
|
+
- Read `skill://envoy/references/check-settlement.md` before you write or review code that orders settlements of one commit.
|
|
115
78
|
|
|
116
|
-
|
|
117
|
-
Compare its `sha` with the head you wait on, because an earlier commit's settlement can arrive first.
|
|
118
|
-
A commit whose message carries one of GitHub's skip keywords (`[skip ci]` and its kin) starts no workflow, so no settlement of it may ever arrive.
|
|
119
|
-
|
|
120
|
-
- Settlement waits until the commit has had no check event for 5 seconds (`ENVOY_CI_DEBOUNCE`) and every reported check run and check suite of it has finished.
|
|
121
|
-
No event arrives before that.
|
|
122
|
-
Envoy does not read GitHub's required-checks list, so a green settlement does not mean GitHub will merge the PR.
|
|
123
|
-
|
|
124
|
-
- A `pr.<n>` event with `closed` and `merged: true` means the PR merged; it carries `merge_commit_sha`, `merged_by` and `head_sha`.
|
|
125
|
-
|
|
126
|
-
- Code that orders settlements of one commit follows `skill://envoy/references/check-settlement.md`.
|
|
79
|
+
## Roles and team topics
|
|
127
80
|
|
|
128
|
-
-
|
|
129
|
-
|
|
81
|
+
- Publish to a role with `envoy_publish(topic="notifications.role.<role>", ...)`. Never subscribe to a role topic: the listener forwards a role message to its holder only.
|
|
82
|
+
`envoy_role_get(role=...)` names the holder.
|
|
83
|
+
- When no live session holds the role, Envoy keeps the message for one hour (`kept_until`) and hands it to the next session that holds the role live.
|
|
84
|
+
Neither a kept answer nor a publish error releases the claim: an `unresponsive` holder keeps its role.
|
|
85
|
+
- From a shell with no Envoy tools, such as one in a Legion pod, read a role's holder in bash (the `<(...)` keeps the token out of `curl`'s arguments):
|
|
130
86
|
|
|
131
|
-
|
|
87
|
+
```sh
|
|
88
|
+
curl -sS -H @<(printf 'Authorization: Bearer %s' "$(< "$ENVOY_TOKEN_FILE")") "$ENVOY_URL/v1/roles/<role>" | jq -c '{holder, holder_state, reason, error}'
|
|
89
|
+
```
|
|
132
90
|
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
-
|
|
136
|
-
never subscribe to a role topic, because the listener forwards a role message to its holder only.
|
|
137
|
-
A publish returns once Envoy's stream has stored the forward for the holder, with the live `holder` and its `holder_state`.
|
|
138
|
-
When no live session holds the role, Envoy keeps the message for one hour: the answer says it was kept, and its `kept_until` is the time that hour ends.
|
|
139
|
-
That holds when nobody claims the role, and when its holder is not `live`: the answer then also names the holder, its `holder_state` (`unresponsive` or `gone`) and its `last_seen`.
|
|
140
|
-
The next session to hold the role live before `kept_until` is handed the message once, and that can be the same holder when it answers again.
|
|
141
|
-
If no session takes it by then, Envoy drops it, and when your publish named your session, sends your session a message that names it, unless it dropped it more than an hour late.
|
|
142
|
-
An `unresponsive` holder is not dead, so start no replacement for it and take nothing from it.
|
|
143
|
-
A forward the stream did not store for a live holder within about 4 seconds errs, and you see that error after about 8 seconds, because the client tries once more.
|
|
144
|
-
Neither a kept answer nor an error releases the role's claim: a holder whose `holder_state` is `unresponsive` keeps its role.
|
|
145
|
-
`envoy_role_get(role=...)` finds the holder first.
|
|
146
|
-
The forward is kept on the holder's inbox, so the holder's session gets it once from its own durable consumer, also after a restart, a reconnect, or while it was not running.
|
|
147
|
-
From a shell with no tool device, such as one in a Legion pod, read the holder with `curl -sS -H @<(printf 'Authorization: Bearer %s' "$(< "$ENVOY_TOKEN_FILE")") "$ENVOY_URL/v1/roles/<role>" | jq -r '.holder // .reason // .error'` in bash (the `<(...)` keeps the token out of `curl`'s arguments), which prints the holder's session id, `unclaimed` for a role nobody holds, or the error of a refused read, such as `unauthorized` for a bad token.
|
|
148
|
-
|
|
149
|
-
- For a team, the group subscribes to `notifications.team.<name>.>`, and any member publishes to `notifications.team.<name>.all`.
|
|
150
|
-
Envoy's stream keeps a team topic, so a publish returns once it is stored and every session that follows the topic gets it once from its own consumer
|
|
151
|
-
— yours too, when you subscribe — including a session that was not running then, for up to 72 hours.
|
|
152
|
-
A session that stopped without unregistering is named nowhere and fails nothing: its copy waits in its consumer until it answers again.
|
|
153
|
-
A team topic is not kept for a session that subscribes later: a consumer starts where its session is, not at the beginning.
|
|
154
|
-
Every other `notifications.` topic no source in the table uses is refused by name, at publish and at subscribe, because no session would ever receive it.
|
|
155
|
-
A topic outside `notifications.` is refused at publish alone: you may subscribe to one, and nothing is stored under it, so you receive nothing on it.
|
|
156
|
-
|
|
157
|
-
- A publish answered `published <id>; no other session subscribes to <topic>, so no other session gets it` reached nobody: reach whoever you meant another way.
|
|
158
|
-
What the counts in a publish answer mean: `skill://envoy/references/deliveries.md`, "What a publish and a send answer".
|
|
159
|
-
|
|
160
|
-
- How a role claim survives a resume, a fork or a dead process: `skill://envoy/references/roles.md`.
|
|
161
|
-
|
|
162
|
-
- In a Legion pane, the plugin claims your role for you, at your session's first turn;
|
|
163
|
-
read `skill://envoy/references/legion.md` before you claim, release or publish to a role, or answer a role delivery failure there.
|
|
91
|
+
- A team subscribes to `notifications.team.<name>.>`, and any member publishes to `notifications.team.<name>.all`. A session that subscribes later gets nothing published before.
|
|
92
|
+
- Read `skill://envoy/references/roles.md` when a role you held is gone after a resume, fork or restart, or when `envoy_role_set` is refused.
|
|
93
|
+
- In a Legion pane the plugin claims your role for you. Read `skill://envoy/references/legion.md` before you claim, release or publish to a role there, or when a Legion role message fails.
|