Skip to content

The meta-skill that builds and improves all your skills, including itself. Watches your work sessions (autonomous or human-led), captures patterns, corrections and judgement calls, and turns them into skill improvements and new skill candidates for your review. Practical application of the Augmented Expertise methodology. Open source: CC BY 4.0.

Trim duplicated rules from the reference files

Eoghan Henn3ba6a27b4ea5
diff --git a/references/environments.md b/references/environments.md
index c68a1f5..0c0e034 100644
--- a/references/environments.md
+++ b/references/environments.md
@@ -465,13 +465,8 @@ enforcement layer by what it needs in order to function: a filesystem
write survives into any session type, a prose reminder survives only
while the prose is being acted on.
-A third belt sits inside the protocol itself: its scan appends a dated
-line to `checkpoints.log` (SKILL.md, Session Start Protocol step 2), so
-the protocol leaves its own trace and a session that skipped it is
-detectable afterwards rather than only noticeable in the moment. That is
-the missing half of the diagnosis above — the load produces a visible
-artefact in the transcript and the protocol produces none, so having
-loaded the skill feels like having done the thing the skill asks for.
+A third belt: the scan's `checkpoints.log` line (`observation-log.md`,
+"The scan ends in a write, not only a print").
Treat *loaded but not run* as a distinct failure cause, alongside the
skill being absent, truncated, or present and skipped: it is the likeliest
of the four, precisely because the load's visible success stands in for
@@ -482,9 +477,6 @@ that a full startup protocol feels disproportionate to it.
**Anti-pattern:** don't chain activation through another skill — load
task-observer and related skills independently from configuration; a broken
chain silences all observation activity.
-A start-up rule written into a project file reaches every agent the
-project dispatches, so a controller and its workers are concurrent writers
-of one log unless the block above stops the workers.
### A session-start hook (Claude Code and similar harnesses)
@@ -834,10 +826,7 @@ probe.** Whatever the harness reads before any skill — Cowork's
user-preferences block, a Claude Code user-level (global) CLAUDE.md, a
session-start hook's injected text — carries the whole first batch: the
workspace probe AND the session-start skill loads, named, in one batched
-call; the tier-2 line above is the template. A rule that must fire on the
-first tool call cannot live only inside a skill, because on turn 1 that
-skill has not been read yet; the skill-side copy (SKILL.md step 1) is the
-backup guard for turn 2. The failure shape: a line naming only the probe
+call; the tier-2 line above is the template. The failure shape: a line naming only the probe
fires the probe and leaves the loads to a project config that arrives late
or intermittently, so the first batch carries the probe alone and the
skills load a batch later. The review's activation regression pass checks
@@ -1352,11 +1341,9 @@ harness needs for the workspace root — for Claude Code headless,
permissions rule — and the setup is not done until one firing has
reached the workspace **from inside the task's own execution context**:
an interactive test proves nothing about the sandbox the scheduler
-creates, and a task the scheduler lists is not a run that succeeded. The
-probe separates the two failures: a path that is not there is the
-offline-workspace policy's case (`references/weekly-review.md`); a
-permission or sandbox error on a path that exists is a configuration
-gap no later firing heals, and its skip note names the missing grant.
+creates, and a task the scheduler lists is not a run that succeeded.
+(The run-time skip note: `references/weekly-review.md`, offline-workspace
+policy.)
**Managed skills directories (dotfile managers, sync tools).** Where the
skills directory is generated by chezmoi, GNU Stow, yadm, a symlinked
diff --git a/references/observation-log.md b/references/observation-log.md
index e65db3d..79f7347 100644
--- a/references/observation-log.md
+++ b/references/observation-log.md
@@ -494,16 +494,11 @@ Retrieval has to happen where the decision is made.
### An empty scan over a non-empty log is a broken command
**An empty scan in a log known to be non-empty is a broken command until
-proven otherwise**, never the finding "no relevant observations". The
-scan's guard is what settles which of the two it is, and both halves of
-its independence are load-bearing: the file count comes from a literal
-path rather than from the variable the parse loop uses, and the assertion
-compares two numbers derived by different means — halt if files exist and
-nothing parsed. Keep that independence when adapting the scan, and keep
-every path re-derived inside the same tool call. The reasoning and the
-reports each rule came from are in "Guard the read, not just the write"
-and "Snippets spanning several tool calls must re-derive their own paths"
-above.
+proven otherwise**, never the finding "no relevant observations": halt if
+files exist and nothing parsed, and keep the two counts independent and
+every path re-derived inside the same tool call ("Guard the read, not
+just the write"; "Snippets spanning several tool calls must re-derive
+their own paths", above).
**A partial parse is lost entries, not a smaller log.** The guard halts
only when nothing parsed. A numbered file with no header — zero bytes,
@@ -723,11 +718,6 @@ This is why the counts and the trace run first. Three consequences:
The session proceeds without the backlog in context; it is not equivalent
to a scan that ran.
-The general form belongs with the instrument guard below: *the instrument
-was not permitted to run* is a third state beside *it ran and found nothing*
-and *it ran and broke*. All three produce an empty result, and only the
-middle one is a fact about the world.
-
### A refused snippet is a degraded path, never a skipped step
The refusal above is of the print alone; a harness that vets command
@@ -813,13 +803,6 @@ skill in front of you and the family diverges quietly. The divergence has
no symptom until someone reads two members side by side, which happens at
a drift audit, months later.
-**The cheapest propagation signal is a phrase.** A rule that declares
-itself generic *inside one artefact* — "this applies to any file-writing
-script, not just X", "true of every companion in this family" — has
-already told you it belongs to every sibling. Treat that phrasing as an
-automatic multi-skill flag; it costs nothing to notice and it catches the
-case the name-removal test is only a proxy for.
-
The `skill:` field is already a list, so multi-skill observations are
expressible. The mechanism exists; the *check* does not — and a list field
with no rule to populate it collapses to a single value. Four parts, in
@@ -969,11 +952,8 @@ what it rests on — the file and section read in that sibling — or says
the exclusion. Example:
`siblings_checked: "list-commands: render, pick, close — render added; pick excluded (pick.md §2, selects by stable id); close excluded (assumed)"`.
-**4. Propagation and drift audit at review time** — see
-`weekly-review.md` (Steps 3 and 4). The first three parts only cover what
-happens from now on; the mechanical audit is the only one that catches
-drift predating the rule or introduced by a skill authored outside the
-log. A registry can go stale; a grep cannot.
+**4. Propagation and drift audit at review time** — `weekly-review.md`,
+Steps 3 and 4.
## Assigning an id
@@ -1043,14 +1023,7 @@ derivation. `sort -n` needs no stripping; the arithmetic does. The floor
is read as digits only, so a floor file written with a CRLF, padding or
spaces still reads as its number instead of as nothing.
-`awk`, `sed -n`, `grep -oE`, `sort -n`, `mv` and `printf` are POSIX,
-and the one non-POSIX construct is deliberate: `10#` in the arithmetic
-is a bash extension, the shortest form that keeps a zero-padded prefix out
-of octal — so run the snippet under `bash`, not `sh` (under `dash` the
-derivation stops with an arithmetic error before any file exists). It runs
-unchanged on macOS, Linux and Git Bash. The sweep's date comparison is an
-`awk` string comparison of ISO dates, which sort lexically, so it needs no
-`date` arithmetic. A skill that hands the agent a
+A skill that hands the agent a
shell command owns that command's portability: lead with the portable
form, never offer it as a footnote the agent reaches for after the primary
has failed — and make any command that derives a number from a file fail
@@ -1264,13 +1237,8 @@ a missing target: that converts a migration signal into corruption
`migration.md` on coexistence with live sessions). A writer's model of
shared mutable state is only as fresh as its last read.
-**This covers reads as well as writes.** A retrieval that comes back empty
-over content you know exists — the session-start scan, a filter for
-observations naming the current skills, a grep for a prior finding — is the
-same signal wearing different clothes, and it is the more dangerous half,
-because a broken read produces no error and its result ("nothing relevant")
-is a legitimate possible answer. Re-probe before acting on it (see "Guard
-the read, not just the write" above).
+**This covers reads as well as writes**: an empty read over content you
+know exists is the same signal ("Guard the read, not just the write").
### Why this is the entire concurrency story
@@ -1558,14 +1526,8 @@ date written to that field instead of being archived; the embedded sweep
deliberately skips such files (its date check fails closed), so that
one-field repair is a separate, careful edit of that file alone.
-**`parked` is exempt from archival — deliberately.** It is the one status
-that means "decided" without meaning "resolved", so it satisfies neither half
-of the gate: not in the resolved set, and it carries no `resolved:` date. Do
-not infer from "it has left the work queue" that it should be archived, and do
-not stamp it with a `resolved:` date to tidy it away — a parked entry has to
-stay in `observation-log/` for the review to re-check its `parked_until:`
-condition (`weekly-review.md`, Step 1). It archives only once it is actually
-actioned, declined or superseded.
+**`parked` never archives**: it is not resolved and carries no `resolved:`
+date — never stamp one on it to tidy it away (The `parked` status, above).
Archival is a set of plain `mv` operations, one file at a time. Moving one
resolved file cannot affect any other observation. The safe form is the
diff --git a/references/skill-authoring.md b/references/skill-authoring.md
index 3406534..93b8541 100644
--- a/references/skill-authoring.md
+++ b/references/skill-authoring.md
@@ -965,12 +965,8 @@ re-check exists, do not record the value — record how to obtain it.
`chmod -R u+w` on the staged path. A workaround documented as
equivalent to another must be re-verified per failure surface — an
option that works for single files can still fail for directory trees.
- Use the exact snippet in `weekly-review.md` Step 5 rather than
- reconstructing it: strip the live prefix **without** a trailing slash so
- the top-level directory maps to the staged root, and keep `IFS=` on the
- read loops for paths containing spaces. Both are easy to get wrong from
- this description alone, and the resulting phantom directories cannot be
- deleted on a mount that denies `unlink`.
+ Use the exact snippet in `weekly-review.md` Step 5; its notes explain
+ the two details that are easy to get wrong.
7. Match process rigour to the change: complex/open-source/uncertain design
→ use the skill-creator if available; internal skills with requirements
already established in conversation → write directly, flagging
@@ -1242,10 +1238,8 @@ weekly-review.md Step 5): a staged copy that never went live has no live
file to diff against, so nothing else in the procedure surfaces it, and
a from-scratch draft beside it drops whatever it carried.
-Use the skill-creator when available, passing the observation(s) as the
-brief. Determine type early: open-source → strip and generalise; internal →
-include specifics freely; uncertain → default open-source and let the user
-add internal detail afterwards.
+Where the skill-creator is used (editing rule 7), pass the observation(s)
+as its brief.
**First decide whether the skill joins a family, and if it does, read the
siblings before drafting.** Intent → interview → draft is right for a
@@ -1297,9 +1291,7 @@ one mover, and require that mover to produce **both** halves of every
section it splits (the core text and the companion's remainder) plus the
coverage table from "Verifying relocations and restructures". The
reconciliation notes, not the diffs, are the deliverable the maintainer
-reviews. Two independent movers flagging the same ambiguity means the
-brief is the defect: fix the brief and re-issue rather than adjudicating
-the outputs.
+reviews.
**A script that ships with a skill is verified by a hostile test, not a
normal run.** Each of these failure shapes passes an ordinary run and is
diff --git a/references/weekly-review.md b/references/weekly-review.md
index 8bc82a8..82d7d62 100644
--- a/references/weekly-review.md
+++ b/references/weekly-review.md
@@ -281,9 +281,7 @@ returned a maintainer's own "priority" decision to him as a question and
left the published skill in the shape he had decided against for another
cycle; the run staged it anyway, and this paragraph makes that the rule.)
-Escalate one DECISION per cluster, never the same decision twice — cluster
-the OPEN entries before the escalation list is written (Step 3), and list
-the member observation numbers under each decision.
+Escalate one decision per cluster (Step 3).
## Steps
@@ -702,21 +700,6 @@ repeated, never carried forward verbatim: nothing in a ledger expires on
its own, so a line that was correct at staging turns destructive without
changing a word once the live file moves on.
-**A staged state file is reconciled by its recorded hash, not by a diff.**
-For each file under `skill-updates/<date>/_target-files/` (Delivery, "State
-files are staged as a patch"), re-hash the live file and compare it with
-the byte size and sha256 the manifest entry recorded at staging. Hash
-unchanged → the instruction may say "apply the patch — copy is safe", since
-the patch applies to exactly the file it was made from. Hash changed → the
-gate reports "staged patch, live file has moved — apply the N changed
-lines, do not copy", with N counted from the patch, and
-rewrites the entry's instruction to say so. Every added line of the patch
-already present in live, and every removed line already gone → installed;
-remove the entry. An install instruction is re-derived each time it is
-repeated, never carried forward verbatim: nothing in a ledger expires on
-its own, so a line that was correct at staging turns destructive without
-changing a word once the live file moves on.
-
**(b) against (c) is decided per differing hunk, never per file.**
`diff -rq` settles only (a). For every line present only in the staged
copy, ask whether live *supersedes* it — carries a line that contains
@@ -1310,10 +1293,8 @@ an assertion, not a default**: a row that has ever carried one records
when it was cleared and by which merge, so "no field" is distinguishable
from "nobody wrote the field". The cycle **cross-checks the skill's
staging directories** for a `release/` staging newer than the row's
-last-cleared date and asks rather than assumes when it finds one. And this
-review's reconciliation gate (Step 1) treats a `release/`-shaped staging
-with no manifest entry as a gate failure in the summary's first line,
-never as a copy to reconstruct silently.
+last-cleared date and asks rather than assumes when it finds one. (Step
+1's gate treats a manifest-less `release/` staging as a gate failure.)
**The merge review is a fixed weekday, anchored on the install, not the
cut.** The merge decision is taken in the publishing session, which runs
@@ -1845,44 +1826,26 @@ tickets or sessions either come from a value the run computes as it sends,
or come out. A sentence that was true when written is not a safe default —
it is the one part of the message nothing re-checks.
-Save each updated skill to
-`[workspace folder]/skill-updates/[date]/[skill-name]/` — the FULL skill
-directory (SKILL.md plus references/, scripts/, assets/ where present),
-never SKILL.md alone — and present it for review and installation using
-whatever file-presentation capability the environment offers (see the
-environment table in `references/environments.md`); where there is none,
-report the staged path and a change summary in chat and let the user
-review and install from there.
-Never write to the live skill directly, even where the skills directory is
-writable — staging-only is a deliberate safety property of the review loop
-(nothing goes live without the user's sign-off), not a filesystem
-constraint, and it is absolute for skills because a skill has an install
-step; non-skill files are split by owner (below). **Every** staged skill is packed into a `.skill` bundle and
-presented as that bundle — one delivery format for all of them,
-regardless of size or file count. A format that switches on the shape of
-the artefact creates two conventions for one thing and a boundary every
-consumer has to re-derive; one format costs nothing on a single-file
-skill and removes the whole "a bare SKILL.md silently truncates a
-multi-file skill" failure class at the other end.
+Stage and present each updated skill per `references/skill-authoring.md`,
+editing rule 5 — the full directory, packed into a `.skill` bundle,
+staging-only in every environment; the presentation tool per environment
+is in `references/environments.md`, and non-skill files are split by owner
+(below).
Pre-delivery gate (run as the last step
-before presenting): (1) grep the staged SKILL.md body for `references/`,
-`scripts/`, `assets/` paths and fail the delivery if any referenced file
-is missing from the staged set — a backticked path counts as this skill's
-own only when it is UNQUALIFIED, so a file belonging to another skill is
-cited as `<skill-name>/references/<file>` and passes untouched; that
-qualification is the convention, and re-wording a genuine cross-reference
+before presenting; the authoring detail for items 1–5 is in
+`references/skill-authoring.md`, editing rule 5): (1) every UNQUALIFIED
+`references/`, `scripts/`, `assets/` path in the staged SKILL.md body has
+its file in the staged set — re-wording a genuine cross-reference
until the backtick no longer starts with the prefix is disguising a
reference to satisfy a linter, not fixing a defect; (2) the artefact presented is the
bundle — bare file links fail this gate — and every staged bundle is
presented (Step 8's staged/presented count); the number of cards is never
a reason to present fewer, since one call carries them all and each card
-is an install decision the user makes either way; (3) measure each staged skill's frontmatter
-description (the folded value, not the raw YAML block) and fail the
-delivery above 1024 characters, with a soft warning above ~900 —
-measure every skill in the set, not just the one that failed; (4) `name`
+is an install decision the user makes either way; (3) each staged skill's
+folded frontmatter description is at most 1024 characters (soft warning
+above ~900); (4) `name`
is kebab-case, matches the directory, and the frontmatter parses; (5) the
-bundle's member paths use `/`, checked on raw bytes (Windows packers write
-`\`, and normalising readers hide it); (6) exactly one frontmatter block
+bundle's member paths use `/`, checked on raw bytes; (6) exactly one frontmatter block
— a second `---` block or stray `name:`/`description:` lines directly
after the first is a duplicated header that every field check passes by
construction; (7) no edit residue in any text file of the bundle,
@@ -1905,34 +1868,22 @@ published tree — justifications stated as failure shapes, examples across
verticals.
`scripts/validate-skill-bundle.py`
asserts all seven and packs a well-formed bundle — run it where Python is
-available. It also enforces each skill's OWN declared core ceiling
-(`core_max_lines:` in its frontmatter, or a `.core-ceiling` file —
-`references/skill-authoring.md`, Lean Content), and **the pack step is
-never bypassed for a ceiling failure**: a skill that fails its own declared
-ceiling is trimmed back under it, moving content to a reference file, and
-re-validated — or, where the ceiling sits more than the tolerance above a
-trimmed core, the ceiling is lowered to the count; a skill with no declared ceiling cannot fail it and is only
-reported. Hand-packing a bundle to skirt the validator is the exact failure
-the gate exists to prevent (observed: three skills packed by hand with a
-mirror of `pack()` when a ceiling that was then a constant in the script
-failed them — every other check passed, and the constant was the defect,
-but the bypass was the wrong response to it). Where the bundle ships a public extract of a private file
+available. It also enforces each skill's own declared core ceiling
+(`references/skill-authoring.md`, Lean Content); a ceiling failure is
+fixed by trimming or lowering, never by bypassing the pack step —
+hand-packing a bundle to skirt the validator is the exact failure
+the gate exists to prevent. Where the bundle ships a public extract of a private file
(this skill's `references/starter-principles.md`), run the
confidentiality scan over that extract here too: it is the one file in
the bundle whose content is copied from a private source, so the
-authoring-time sweeps never see it. Sweep build artefacts (`__pycache__/`, `*.pyc`, `.DS_Store`,
-`.~lock.*`) and version-control directories (`.git/`, `.hg/`, `.svn/`)
-before zipping and read the archive listing back after, for
-leaked artefacts and for path separators. **Packing is the LAST write to
+authoring-time sweeps never see it. Sweep build and VCS artefacts and read
+the listing back (`references/skill-authoring.md`, editing rule 5). **Packing is the LAST write to
a staged skill.** The bundle is the deliverable, so an edit to the
directory after packing leaves two versions: the bundle the user
installs and the directory the next review diffs. After packing, the
bundle's members must equal the staged directory byte for byte — `--pack`
verifies the round trip and exits non-zero on a mismatch — and any edit
-after that means re-pack and re-check before presenting. When seeding staged
-copies from the read-only mount, `chmod -R u+w` the staged path first —
-the mount's read-only mode travels with the copy, for directories as
-well as files. Do not edit a skill's files in place — nothing goes live
+after that means re-pack and re-check before presenting. Do not edit a skill's files in place — nothing goes live
until the user installs it. **Keep-two rule** — a fixed Delivery step of
every review, run after packing and before the Step 8 summary, with the
delete grant requested in the same step: for any skill, keep only
@@ -1947,11 +1898,8 @@ copy with the reconciliation gate's comparison first ("Compare with the
installer's frontmatter quoting normalised" — a copy differing only in that quoting is (a)): prune only copies
that came back **(a) identical** or **(b) superseded**; a copy in state
(c) or (d) is uninstalled work and is kept whatever its age, and named
-in the summary so it does not accumulate invisibly. For the prunable
-ones, **request the delete grant on the target directory, then delete —
-never rename into a holding folder** (if the permission stream fails in
-an autonomous run, leave them in place and name them in the report as
-"pending deletion — grant needed"). The rule is scoped to staged skill copies,
+in the summary so it does not accumulate invisibly. Delete the prunable
+ones as Step 5 says: the delete grant first, never a holding folder. The rule is scoped to staged skill copies,
not to date directories: before pruning a directory, list what else is in
it — an assembly script, a verification script, working notes — and move
anything that is not a staged skill copy aside first, or leave the
@@ -2068,11 +2016,7 @@ turn, creating the file when it
is absent, and never starting it at today: on creation, list every skill
directory already under `skill-updates/<date>/` that is not identical to
live, so the manifest's first state describes the tree it indexes rather
-than the one delivery that happened to create it (an appender that
-assumes the file is there writes nothing, as the aggregate-run rule
-above already says of a participant workspace; an index whose absence is
-indistinguishable from "nothing pending" cannot be the mechanism that
-stops work being forgotten). For a delivery, the entry carries the skill, the date
+than the one delivery that happened to create it. For a delivery, the entry carries the skill, the date
directory, the producer (which session or scheduled run staged it), the
observation ids applied, and a per-change summary
(observation id → section touched → one-line rationale). The install
@@ -2093,9 +2037,7 @@ per-change summary is what lets the user review a full-file diff
quickly, which is what raises the install rate. Entries are removed by
the staged-work reconciliation gate (Step 1, mirrored in Session Start
step 6) when the staged copy proves identical to live or superseded by
-it, or when the keep-two rule prunes the directory — never "at install
-time", because no session observes the install; the session that reads
-the manifest owns its cleanup.
+it, or when the keep-two rule prunes the directory.
The manifest carries three kinds of entry and no others: provenance,
install instructions, and — in an aggregate run over several logs — the