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.
Python agent-skillsai-skillsaugmented-expertiseawesome-skillsclaudeclaude-codeclaude-code-skillclaude-code-skillsclaude-coworkclaude-skillsmeta-skillrebelyticsskill-automationskill-builderskill-creationskill-improvementskill-managementskills
Sync core and references with the maintainer's live install
Eoghan Hennfc77e88f59e7
diff --git a/SKILL.md b/SKILL.mdindex 1dc1686..565424b 100644--- a/SKILL.md+++ b/SKILL.md@@ -48,10 +48,11 @@ configuration pins it elsewhere.- `references/weekly-review.md` — the comprehensive review procedure(scheduled or 7-day fallback), approval policy, delivery/staging ofupdated skills. Load when a review triggers or the user asks for one.-- `references/skill-authoring.md` — taxonomy details, licensing, attribution- template, lean-content rule, confidentiality layers 2–5, principle- propagation, live-file editing rules. Load before creating or editing any- skill.+- `references/skill-authoring.md` — taxonomy details, structure defaults+ (progressive disclosure, documenting external tool surfaces), licensing,+ attribution template, lean-content rule, confidentiality layers 2–5,+ principle propagation, live-file editing rules. Load before creating or+ editing any skill.- `references/environments.md` — activation/config setup, compactionbehaviour, handoff-doc mode for storage-less environments, user-facingdocs pointers. Load for setup questions or when there's no filesystem.@@ -263,6 +264,21 @@ bounded entry at a time and verify every mutation.exists exactly once; re-append any that are missing (with fresh numbers)and log a meta-observation about the collision.+6. **Splitting the backlog across parallel sessions needs an ownership+ fence.** Rules 1–5 are the mechanical layer: they stop writes destroying+ each other. They cannot stop two sessions legitimately resolving the same+ entry in different ways (both marking it ACTIONED with different accounts+ of what was done). So when work on one log is divided between sessions,+ the handoff must carry: an explicit in-scope list by observation number,+ an explicit OUT-of-scope list, a standing instruction that neither+ session archives for the duration of the split (archival is the+ read-filter-rewrite that has destroyed concurrent appends in production),+ and a warning that a second session is live. Each session verifies its+ own entries survived before finishing. Appending stays safe under a+ split; only archival must be deferred. The ownership fence is a+ coordination artefact, not a file-locking one — it has to be exchanged in+ the handoff, because no amount of careful writing recovers it afterwards.+Principle: a log shared across many entries must be mutated one boundedentry at a time; every rewrite must be based on a fresh read, verified by astructural invariant against the live pre-write file, and backed up. Writers@@ -356,10 +372,21 @@ ones.Archival is a read-filter-rewrite — the highest-risk mutation the logundergoes, and the one that has destroyed concurrent appends in production.-It MUST follow the full Log-write safety sequence above: backup, re-read-the live log immediately before writing back and merge any entries that-appeared since the snapshot, then verify the post-write header count equals-the live pre-write count minus exactly the number of archived entries.+Before the backup, probe for live concurrent writers: record the log's+`### Observation` header count and its mtime. An mtime only minutes old, or+a count above what this session's own writes account for, is evidence that+another session is appending right now. Under that evidence, DEFER archival+to a later write — do not proceed carefully. The safety rules protect a+rewrite from a stale snapshot; they cannot protect against a writer+appending during the rewrite itself. The probe covers the uncoordinated+case: rule 6's ownership fence handles a known split, but only a handoff+can carry it, and nobody hands off a session they don't know exists.++If the probe is clean, archival MUST follow the full Log-write safety+sequence above: backup, re-read the live log immediately before writing+back and merge any entries that appeared since the snapshot, then verify+the post-write header count equals the live pre-write count minus exactly+the number of archived entries.## Log Structure@@ -422,6 +449,25 @@ skill", "act on observation #N"); (3) in-session correction when a skill isproducing wrong output the user should know about. Otherwise: log, don'tact.+**Read the full body before resolving, dismissing, fixing, or citing.** A+tracked item's title (observation, GitHub issue, ticket) is an index entry,+not its content — it compresses away the failure story, the reporter's+context, and often the proposed fix. Before (a) claiming an item is+resolved, (b) dismissing it as a duplicate or as irrelevant, (c) designing+a fix in its area, or (d) citing it as overlapping other work, read its+full body. Dismissal is the path with no downstream checkpoint: a resolved+or cited item gets reviewed later, a dismissed one silently disappears.+Harvest fix designs from issue bodies — reporters frequently include the+correct solution, which also settles attribution. Two reports about the+same mechanism can require opposite treatments; a fix designed from one+title can worsen the other case. When a parallel agent logs a finding that+appears to duplicate your own, diff the two bodies — do not match the+titles. Two entries about the same mechanism can carry opposite+operational conclusions, and the second is often the refinement, not the+echo (one says a wall exists; the other says the wall has a door). Apparent+agreement suppresses verification more effectively than disagreement does,+so this rule binds hardest exactly where it feels least necessary.+When acting: small, clearly-additive, low-risk changes (a new rule, aclarification, a factual fix) may be applied directly. Substantial changes(restructuring, new capabilities, changed methodology) and all new-skill@@ -441,6 +487,6 @@ same reference).| Citing an observation number? | Only from its literal `### Observation N:` header — `grep -n` line numbers are positional metadata, not IDs; sanity-check against the known counter range || Open-source or internal? | Default open-source; the boundary is confidential || Small fix or substantial? | Additive → apply directly; restructuring/new skill → `references/skill-authoring.md` |-| Rewriting the log (archival/renumber/status)? | Backup → re-read live and merge → bounded mutation → verify count against live pre-write file → confirm own entries survived |+| Rewriting the log (archival/renumber/status)? | Liveness probe (recent mtime or unaccounted-for count → defer archival) → backup → re-read live and merge → bounded mutation → verify count against live pre-write file → confirm own entries survived || Weekly review? | Trigger check at session start; procedure in `references/weekly-review.md` || No filesystem? | Handoff-doc mode — `references/environments.md` |diff --git a/references/environments.md b/references/environments.mdindex 648b300..dee150b 100644--- a/references/environments.md+++ b/references/environments.md@@ -68,6 +68,21 @@ behaviour is defined entirely by its own files, never by external content:- README: https://github.com/rebelytics/one-skill-to-rule-them-all/blob/main/README.md- USER-GUIDE: https://github.com/rebelytics/one-skill-to-rule-them-all/blob/main/USER-GUIDE.md+## Repo/maintainer sessions — verify commit identity before writing++Authentication and attribution are separate channels in git: the push+credential (PAT/SSH key) controls who may WRITE; the commit's author+email (`git config user.email`) declares who WROTE, and the platform maps+that email to whichever account has it verified — regardless of which+account pushed. Before the first terminal commit in any clone used for a+specific identity, verify `git config user.email` resolves to the+intended account, and set repo-local config where the machine's global+identity differs. Diagnose suspected mis-attribution via the commits API+(author login vs commit email). Fix forward only: rewriting a published+main to correct author metadata (with tags/CI descending from it) costs+more than the cosmetic gain — verifying the email on the intended account+is the alternative remedy.+## Handoff-doc mode (no persistent storage)The methodology is environment-independent; only persistence varies. Indiff --git a/references/skill-authoring.md b/references/skill-authoring.mdindex 46cda3b..5f2a704 100644--- a/references/skill-authoring.md+++ b/references/skill-authoring.md@@ -1,7 +1,15 @@-# Skill Authoring — taxonomy, licensing, confidentiality, editing rules+# Skill Authoring — structure, taxonomy, licensing, confidentiality, editing rulesLoad this before creating any skill or making substantial changes to one.+**Contents:** Taxonomy in full · The Pre-Flight Principle · Lean Content+(including progressive disclosure, the default structure above ~500 lines)+· Documenting an external tool surface · Licensing · Versioning releases ·+Author Attribution Template · Confidentiality layers · Timelessness ·+Editing skills — always start from the live file · Verifying relocations+and restructures · Trial design · New skills · Retiring skills · Principle+Propagation.+## Taxonomy in full**Open-source skills** are client-agnostic and methodology-driven.@@ -51,6 +59,74 @@ per-session rules in the skill body and episodic material in referencefiles loaded on demand (progressive disclosure) — a skill loaded everysession is fixed overhead and should be audited like one.+**Progressive disclosure is the DEFAULT, not an option.** Loading happens+in three levels: frontmatter metadata is always in context, the SKILL.md+body loads whenever the skill triggers, and bundled resources load only+when something reads them. The body is therefore a per-invocation tax and+the reference files are not, so content belongs in the body only if it+changes behaviour every time the skill fires. Any NEW or SUBSTANTIALLY+REVISED skill whose body would run past roughly 500 lines is split — this+is the target structure, not a suggestion to weigh up. Concretely:++- **SKILL.md keeps** the mental model, the small number of rules that+ change behaviour on every invocation, and a pointer list to the+ reference files.+- **`references/` takes** tool inventories, recipes, taxonomies,+ per-variant detail and long gotcha catalogues — anything consulted+ during one kind of episode rather than on every trigger.+- **Each reference file gets a table of contents** once it passes roughly+ 300 lines, so a reader can load it and jump rather than read it whole.+- **Every pointer states its load trigger explicitly** — "read before the+ first export", "read when choosing a tool", "read when a review+ triggers" — because a pointer without a trigger reads as optional and+ gets skipped. An unconditioned list of filenames is not progressive+ disclosure, it is a bibliography.++Splitting also creates the seams that make a large skill maintainable: a+monolithic body has no natural edit boundary, so every change touches the+whole file and every edit risks the rest. Retrofitting existing large+skills is a separate, lower-priority job — the default binds immediately+for new work and for any revision substantial enough that the body is+being rewritten anyway.++## Documenting an external tool surface++Applies to any skill that documents a surface someone else owns — an MCP+server's tools, an API's endpoints, a platform's interface. The value of+such a skill is that its claims were OBSERVED rather than inferred from+the vendor's own descriptions, and the first version is almost always+written after exercising only part of the surface. Documenting the+untested majority in the same voice as the tested minority silently+promotes vendor copy into apparent field findings, and a later reader has+no way to tell which claims carry evidence. Dropping the untested items+isn't the fix either — they still need listing so the agent knows they+exist.++1. **Mark every item, not just the exceptions.** Give each documented+ tool, endpoint or screen a visible per-item marker for verified-in-+ practice versus unexercised, and state the key near the top of the+ inventory so the distinction can't be missed. Marking only the+ unexercised ones fails: an unmarked item reads as absence of+ information rather than as evidence.+2. **Write unexercised items in a different voice.** What the vendor says,+ plus what can be safely inferred about risk — "the docs describe X";+ "assume this evicts current state" — never as observed behaviour. No+ worked examples, no timing or quota claims, no gotchas for something+ nobody has run.+3. **Make the marker a work queue.** Add an explicit instruction that when+ an unexercised item is used, the agent reports back what it actually+ did so the entry can be rewritten and its marker promoted. Without+ that, the markers ossify into a permanent disclaimer and the skill+ never converges on evidence.+4. **Promote on revision.** Any substantial edit to the skill re-checks+ the markers against what has been exercised since — promotion is part+ of the edit, not a separate project.++Principle: documentation that covers less but says which claims are tested+is more useful than documentation that blends the two, because the+reader's decision — trust it, or verify first — depends entirely on that+distinction, and it is unrecoverable once blurred.+## LicensingInclude a licence statement in the preamble and a LICENSE file with full@@ -71,6 +147,19 @@ internal" as "therefore open source": distribution channel determines therights framing, not just the feedback routing (see the distribution-channelnote below).+## Versioning releases++A version number is a claim about history and compatibility, not a+counter of tags. Number from the consumer's perspective: what era did+they install, and does their install path still work? When tagging a+FIRST release for an artefact with prior distribution history: (1) treat+the pre-tag era as effective v1, not 0.x; (2) any restructure that breaks+the established install/consumption path (e.g. single-file install →+directory install) is a MAJOR version bump regardless of content+compatibility; (3) align secondary version surfaces (registry/plugin+manifests etc.) with the release number in the same push, before the tag+is created, so the tagged snapshot is internally consistent.+## Author Attribution Template```markdown@@ -125,6 +214,34 @@ in layers so any one catches what others miss:blurring counts, widening verticals, using illustrative ranges, orconsolidating into composites. Run this mechanically — the author is theleast reliable judge because they know the ground truth.+6. **Recipient-perspective pass (client-shared artifacts)** — the layers+ above guard one direction only: other parties' information leaking IN.+ An artifact prepared FOR a specific recipient also leaks the author's+ own workspace OUT: references to internal working files (analysis+ workbook filenames, private docs) that the recipient never received are+ both confusing (citing sources the reader can't open) and factual+ errors (e.g. describing them as "delivered"). Check: every referenced+ file, document, or source must be either included in the share or+ actually in the recipient's possession; replace internal-artifact+ citations with a plain description of the analysis they came from.+ Test: "can the recipient open or verify every reference in this+ document?"++## Timelessness — shared skills must not capture current state++Any skill leaving the author's own maintenance loop (published, or shared+with a client for ongoing use) has no update cadence — undated+present-tense claims become silently wrong, and an agent will act on+them. "A recommendation on how it should be is timeless; a capture of the+current state is not." Rules: (a) recommendations and rules — keep; (b)+dated historical facts ("in June 2026 the share was ~50%") — keep, they+stay true as history; (c) undated/present-tense current-state claims+("X is currently blocked", "the site now does Y") — replace with a check+instruction ("verify the current state of X before acting"). Sweep+pattern: grep for "currently", "right now", "as of", "now", and+present-tense state verbs near infrastructure nouns. (Internal client+dossiers are exempt: they live in a maintenance loop where current-state+capture is the point.)## Editing skills — always start from the live file@@ -140,7 +257,17 @@ in layers so any one catches what others miss:failure: an update built on a stale snapshot silently dropped twosections added to the live skill the same day; only a pre-merge diffcaught it.)-4. Stage every update to+4. Before any cross-copy sync or publish work (live install, workspace+ copies, published repo/branch), enumerate all copies of the artefact+ and establish freshness PER COPY from evidence — mtime, content+ probes, hashes — never from role ("the repo", "the live version");+ then pick the base explicitly. During multi-pass work in interactive+ sessions, re-verify the baseline before interpreting any diff: a diff+ that SHRINKS against a supposedly-fixed baseline means the baseline+ absorbed earlier changes (e.g. the user installed a staged update+ mid-session), not that edits vanished. Treat unexpected diff-stat+ direction as a baseline-moved signal, not an error in the edits.+5. Stage every update to`[workspace folder]/skill-updates/[date]/[skill-name]/` — the FULLskill directory (SKILL.md plus references/, scripts/, assets/ wherepresent), never SKILL.md alone — and present it for review and@@ -154,23 +281,42 @@ in layers so any one catches what others miss:delivery convention applied to a multi-file skill truncates itsilently (the install succeeds, the skill loads, and the missingpieces only surface when a reference load or script call fails- mid-task). **Pre-delivery gate — two items, checked at the moment of+ mid-task). **Pre-delivery gate — three items, checked at the moment ofdelivery, not just at drafting time:** (1) every `references/`,`scripts/`, `assets/` path in the staged SKILL.md body has its file inthe staged set; (2) if the skill is multi-file, the delivery artefactis the `.skill` bundle — bare file links fail this gate even when all- files are staged. (Reading this rule while drafting does not enforce+ files are staged; (3) frontmatter constraints — measure the description+ (the FOLDED value, not the raw YAML block) and fail the delivery above+ 1024 characters, with a soft warning above ~900 so a near-boundary+ description gets tightened before it becomes someone else's install+ error. Trigger coverage survives compression: the fix is tightening+ phrasing, not dropping triggers. Measure every skill in the delivery+ set, not just the one that failed — the pressure toward trigger-rich+ descriptions puts others near the boundary too, and only measuring the+ set reveals it. Generally: any hard limit the consuming platform imposes+ belongs in this gate as a measurement, not as a rule the author is+ expected to remember; otherwise the user discovers it at install time.+ (Reading this rule while drafting does not enforceit at delivery; run the gate as the last step before presenting.)Packaging hygiene: before zipping, sweep the staged tree for buildartefacts (`__pycache__/`, `*.pyc`, `.DS_Store`, `.~lock.*`) left byin-session checks, and read the archive listing back after zipping —the listing is the cheap verification that catches leaked artefacts.-5. When seeding a staged copy by copying from the read-only mount, reset- write permissions immediately (`chmod -R u+w` on the staged path, or- `cp --no-preserve=mode`) — the mount's read-only mode travels with+6. When seeding a staged copy by copying from the read-only mount, reset+ write permissions immediately — the mount's read-only mode travels withthe copy, for directories as well as files, and the follow-up edit- otherwise fails with a permission error.-6. Match process rigour to the change: complex/open-source/uncertain design+ otherwise fails with a permission error. For a SINGLE FILE, `cp`+ followed by `chmod u+w` (or `cp --no-preserve=mode`) works. For a+ DIRECTORY TREE, `cp --no-preserve=mode` is NOT reliable in this+ environment: it has failed with "Permission denied" while creating+ files inside copied subdirectories (`references/`, `scripts/`) even+ though top-level files copied. The only verified sequence for trees is:+ `mkdir -p` the directory structure first, then per-file `cp`, then+ `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.+7. Match process rigour to the change: complex/open-source/uncertain design→ use the skill-creator if available; internal skills with requirementsalready established in conversation → write directly, flaggingsubstantial changes for review.@@ -199,6 +345,23 @@ enforcement machinery because it reads as redundancy — and sweep any "purerestructuring" change for net-new behaviour, which hides well in a largerewording diff.+## Trial design — measuring whether a behaviour fires unprompted++When a change is on trial and what's being measured is whether the agent+does something ORGANICALLY (loads a reference file because the work called+for it, applies a rule without being told), record the trial's trigger+condition somewhere the agent under test does not read — a maintainer note+or the review report, never a task file, CLAUDE.md, or a handoff prompt.+Add an explicit invalidation clause to the trial's definition: any session+whose priming text names the trigger condition, or instructs the behaviour+directly, is discarded rather than counted either way. And instrument the+negative case deliberately — log "substantive work in scope, no organic+load" as its own data point. Principle: an instruction that names what is+being measured is an intervention, not a description; priming text and+measurement apparatus must live in separate channels, or the trial measures+compliance with the prompt. Corollary: null results need active recording,+or the trial cannot distinguish "not yet observed" from "not happening".+## New skillsUse the skill-creator when available, passing the observation(s) as the@@ -206,6 +369,24 @@ brief. Determine type early: open-source → strip and generalise; internal →include specifics freely; uncertain → default open-source and let the useradd internal detail afterwards.+## Retiring skills — harvest before you retire++An ending engagement is a harvest trigger, not only a cleanup trigger.+Before retiring any operational skill tied to that engagement, assess each+section as either transferable methodology or client-specific+configuration. If the transferable share is substantial, extract a+client-agnostic skill FIRST and retire the original afterwards, keeping the+client dossier for reference. The extraction pattern that works: keep the+platform mechanics concrete — real interface quirks, DOM patterns, layered+diagnostics, everything earned through real runs and real corrections — and+replace the client's answers (account IDs, domains, source rosters,+criteria) with the intake questions that produced them. The resulting skill+tells the next agent what to ask, rather than what the previous client+happened to say. Principle: the methodology in an operational skill and the+client configuration wrapped around it have very different shelf lives.+Retiring them together discards the durable half at the moment its cost is+already sunk, and the loss is invisible because nothing errors.+## Principle PropagationWhen an observation's Principle applies to skills in general, log it withdiff --git a/references/weekly-review.md b/references/weekly-review.mdindex 3eb252f..6a541be 100644--- a/references/weekly-review.md+++ b/references/weekly-review.md@@ -51,6 +51,10 @@ observations conflict. A scheduled run should still apply everynon-escalated item — a review that applies nothing is just a reportgenerator.+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.+## Steps**Step 0 — recommend scheduled setup (fallback mode only).** Ordering@@ -81,7 +85,9 @@ firings within the window re-surface the offer). No scheduler available inthis environment → skip silently.**Step 1 — load.** Archive entries resolved in *previous* sessions (see-Archival on Write in SKILL.md). Read the observation log.+Archival on Write in SKILL.md — including its liveness probe: a minutes-old+mtime or an unaccounted-for entry count means another session may be+writing, so defer archival). Read the observation log.Build the work queue from the structural identifiers, not from a statusfilter. The OPEN set is defined as: **status is literally OPEN, OR the@@ -122,6 +128,27 @@ often generalise. Build skill → [relevant observations]. Interactive:present all of it and await approval. Autonomous: apply the approval policyabove and continue.+**Cluster by decision BEFORE the escalation list is written.** An+append-only log accumulates convergent entries by construction: the same+underlying problem is rediscovered from different task contexts and filed+against different skills, so grouping by filing category preserves that+duplication into the escalation list and the user is asked the same+question more than once. Group the OPEN entries by the DECISION they+require, not by the skill they are filed against; escalate one decision per+cluster with the member observation numbers listed under it; cross-reference+rather than separately escalate any entry whose decision duplicates+another's. Cheap first pass: scan the Principle lines — convergent+observations usually have near-identical principles even when their Issues+describe unrelated tasks. Corollary for in-session behaviour: if you notice+the overlap strongly enough to offer "this is the same as X" as an answer+option, that is the answer — take it and tell the user, rather than+spending a round-trip asking. **Across an ownership fence:** when the+backlog is split across parallel sessions and you defer an entry to a+cluster owned by the other session, the deferral is not complete until the+pointer exists on BOTH sides — relay it to that session directly, or+surface it to the user as a handoff item. A one-way note leaves the entry+pointing at a decision that may be settled without it.+**Step 4 — cross-check principles.** Flag every skill that doesn't yetcomply with each active cross-cutting principle.@@ -132,6 +159,22 @@ structure, voice, and attribution; place new rules where they logicallylive. Follow the editing rules in `references/skill-authoring.md` (livefile as base, staging, diff-before-overwrite).+**Scaling note — fan out when the apply-phase is large.** When the+apply-phase spans more than ~3 skills or ~10 observations, delegate Step 5+to parallel subagents clustered by skill rather than applying everything+in the main session. Brief each subagent with: the observation numbers to+read from the log, the live-mount path, the staging path, the+mkdir/per-file-cp/`chmod -R u+w` seeding sequence, the integration logic+for observation interdependencies (which observation supersedes, refines,+or folds into which — the parent must state this per cluster explicitly,+or subagents applying observations sequentially produce patch-on-patch+instead of coherent final state), the confidentiality rules for+open-source skills, and an explicit do-not-touch-the-log rule. Reserve+ALL observation-log writes (status marking, archival) for the parent+session. The principle: the apply-phase is embarrassingly parallel across+skills but strictly serial on the shared log — split the work along that+seam.+**Step 6 — mark ACTIONED.** Update each applied observation's status:`ACTIONED (YYYY-MM-DD) — Applied to [skill-name] (weekly review)`. Thedate immediately after the status word is load-bearing: archival is gated@@ -190,7 +233,10 @@ before presenting): (1) grep the staged SKILL.md body for `references/`,`scripts/`, `assets/` paths and fail the delivery if any referenced fileis missing from the staged set; (2) for multi-file skills, fail thedelivery if the artefact being presented is bare file links rather than-the `.skill` bundle. Sweep build artefacts (`__pycache__/`, `*.pyc`,+the `.skill` bundle; (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. Sweep build artefacts (`__pycache__/`, `*.pyc`,`.DS_Store`, `.~lock.*`) before zipping and read the archive listing backafter. When seeding stagedcopies from the read-only mount, `chmod -R u+w` the staged path first —