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
Observation quality gates and review ordering
Eoghan Henn3ec808c4ec97
diff --git a/SKILL.md b/SKILL.mdindex 6dfe540..ec9e129 100644--- a/SKILL.md+++ b/SKILL.md@@ -136,6 +136,20 @@ was handled without its reference loaded, log an observation.another session's entry. Before changing the *status* of an existingobservation, re-read that one file first (a parallel review may haveresolved it).+6. **Targets and staged work.** Resolve each distinct `skill:` value in+ the scanned frontmatter against the installed skill set and mention, in+ one line, any that no longer resolve — a deleted skill can accumulate+ dozens of observations before a review discovers the target is gone.+ If `skill-updates/PENDING.md` lists staged updates, say "N staged+ updates awaiting review" in one line.+7. **First run.** If the log is empty and the project has history+ (handover or decision docs, commit history, test scripts, an existing+ CLAUDE.md — which is largely a record of corrections nobody logged),+ offer a one-off backfill pass over those artefacts. Backfilled entries+ cite the durable artefact (file and section) in `session_context`+ instead of a session, and the same-turn immediacy rule is satisfied by+ one batched write. The pass is one-off; the scheduled review takes+ over afterwards.## When to Observe@@ -164,7 +178,17 @@ remove. Full catalogue with examples: `references/signals.md`.**Do NOT log:** one-off corrections that don't generalise; preferencesalready captured in a skill; tool bugs unrelated to methodology;observations that would need proprietary client information to be useful-in an open-source skill (unless an internal skill is the right home).+in an open-source skill (unless an internal skill is the right home). The+generalisability test, when unsure: would this still make sense in another+project, and for another task using the same skill? Does it name a missing+rule, step or principle rather than fix this task? Is it likely to recur?+Mostly no → task context, not an observation. Before minting a+`proposes_skill` name, check the existing candidates and reuse a fitting+one — independently logged proposals for one skill rarely share a name.++**Validate the target at write time.** A name in `skill:` must be a skill+that exists now; if it doesn't, the observation proposes a skill instead.+Checking is cheap at write time and expensive forty entries later.## How to Log@@ -232,7 +256,7 @@ always write `status: open` at creation time** — an observation without a---id: [N]title: [Short descriptive title]-status: open # open | actioned | declined+status: open # open | actioned | declined | supersededtype: open-source # open-source | internalskill: [list of existing skills this improves — always a list, even withone entry; first entry is primary; may be empty]@@ -284,14 +308,17 @@ line number misread as an id.**Open-source** — client-agnostic, methodology-driven, useful to otherpractitioners. **Internal** — contains user/client/project specifics orpersonal preferences. Default to open-source when it could go either way,-stripping specifics. The boundary is also a confidentiality boundary. Full-requirements (attribution, licensing, structure): `references/skill-authoring.md`.+stripping specifics. The boundary is also a confidentiality boundary, and+the two errors are not symmetric: over-classifying as internal costs only+reach, under-classifying can leak — when genuinely uncertain, prefer+internal and promote later. Full requirements (attribution, licensing,+structure): `references/skill-authoring.md`.## Archival on WriteOn every write, first `mv` already-resolved files from `observation-log/`to `observation-log/archive/`. "Already resolved" is read from the file's-own frontmatter: `status: actioned` or `status: declined` AND a+own frontmatter: `status: actioned`, `declined` or `superseded` AND a`resolved:` date **before today**. Files resolved today stay until the nextday, whichever session resolved them — the grace period lives in the file,never in session memory. A resolved file with no readable `resolved:` datediff --git a/references/environments.md b/references/environments.mdindex f6aeb0a..039b919 100644--- a/references/environments.md+++ b/references/environments.md@@ -186,6 +186,32 @@ here rather than guessing a tool name.Grow the table when a new environment appears; do not scatter its toolnames through the procedure files.+## Git as an optional staging medium++Staging a skill update as a branch or commit the user merges gives the+same guarantee as the `skill-updates/` directory — nothing goes live+without a user action — plus diffs, history and rollback, and it suits a+multi-device setup that syncs skills through a private repository. It is+an option, not a change to the default: the review still writes the+staging manifest, still never edits the live install, and still presents+the change for a decision. Treat the version-control commands as a+mutation surface for the observation log (see+`references/observation-log.md`).++## First-run backfill++The skill is least valuable at the moment it is adopted: the log is empty,+a review correctly reports nothing to do, and the largest pile of+uncaptured insight — the project's own history — is never touched because+no procedure says to touch it. Session Start step 7 offers a one-off+mining pass over handover, architecture and decision docs, commit history+since the last release, test and verification scripts (which encode+hard-won discipline densely), and existing agent-instruction files, which+are largely a record of corrections the user already had to make. One+such pass over seven weeks of history produced twenty-three actionable+observations, eleven of them factual corrections to an existing skill.+Backfilled entries cite the durable artefact; the pass runs once.+## Storage regimesPersistence is one axis; the *price* of a write is another. Threediff --git a/references/observation-log.md b/references/observation-log.mdindex ae74e62..9745538 100644--- a/references/observation-log.md+++ b/references/observation-log.md@@ -34,7 +34,7 @@ means this directory.|---|---|| `id` | Integer; matches the `NNNN-` filename prefix. Never reused. || `title` | Short descriptive title. |-| `status` | `open`, `actioned` or `declined`. A missing status is read as `open`, never as nonexistent. |+| `status` | `open`, `actioned`, `declined` or `superseded` (a later observation found this one's mitigation does not work; `resolution` names it). A missing status is read as `open`, never as nonexistent. || `type` | `open-source` or `internal` (see Taxonomy in the core skill). || `skill` | **Always a list**, even with one entry, so no consumer ever branches on string-vs-list. First entry is primary. May be empty. || `proposes_skill` | List of new-skill candidates by working name. Independent of `skill`; either may be empty, both may be filled. |@@ -145,7 +145,7 @@ run `git clean` with that directory in scope.On every write, first move already-resolved files from `observation-log/`to `observation-log/archive/`. "Already resolved" is decided by the file's-own frontmatter: `status: actioned` or `status: declined` AND a+own frontmatter: `status: actioned`, `declined` or `superseded` AND a`resolved:` date before today. Files resolved today stay until the nextday, no matter which session resolved them — the grace period lives in thefile, never in session memory, so it holds across parallel and subsequentdiff --git a/references/signals.md b/references/signals.mdindex e48ac12..df3c920 100644--- a/references/signals.md+++ b/references/signals.md@@ -47,6 +47,22 @@ an unskippable tool call — or remove it). Treat these as a reviewchecklist; ask "what can we remove?" as deliberately as "what should weadd?"+## The generalisability test++Before recording a candidate improvement, ask: (1) would this correction+still make sense in another project? (2) would it apply to another task+using the same skill? (3) does it identify a missing rule, workflow step or+principle, rather than merely fix this task? (4) is there evidence the+issue is likely to recur? If the answers are mostly no, treat it as+task-specific context rather than an observation. A workaround that only+applies to one repository, a preference specific to one user, a decision+forced by a temporary constraint — these look like skill improvements+while the task is happening and are not. Instead of "the user preferred+modules in a single repository", log "the skill lacks guidance for+deciding when shared modules should be centralised". Knowing when *not*+to learn is as important as detecting signals: over-learning from isolated+examples is how a skill drifts into over-specific complexity.+## Do NOT logOne-off corrections that don't generalise; preferences already captured indiff --git a/references/weekly-review.md b/references/weekly-review.mdindex efe211f..da71bac 100644--- a/references/weekly-review.md+++ b/references/weekly-review.md@@ -53,6 +53,20 @@ cost the report for steps 1 through N-1.**Interactive (user present):** always present observations grouped byskill (number, title, one-sentence summary), flag judgment calls as "needsyour input", and wait for blanket or selective approval before applying.+**Classify before you ask.** Any *disposition* option offered to the user+(fold in, decline, revive, route to skill X) must be derived from the+entries' bodies, never from their titles and `skill:` fields — a+title-level summary is exactly what can be produced without reading, and+it licenses the wrong split. Read and bucket first, then present the+routing decision with the real counts attached ("15 → skill A, 25 → skill+B, 2 dead"). The trigger to watch for is a target skill that no longer+exists: "revive / fold in / decline" looks like a disposition question and+is really a classification task, because a corpus filed against one dead+skill routinely splits across several live ones. Where a bulk question+genuinely must come first (very large backlog, a session budget that will+not cover reading everything), say so in the question, mark the proposed+split as provisional, and re-present it if the contents disagree. The+order is `read → bucket → present counts → ask`, never `ask → read`.A declined or dismissed approval prompt is NOT approval — and it is not arequest to skip the asking and proceed either. Treat it as a stop signalfor the gated actions: halt, then ask in plain chat text what the user@@ -117,9 +131,11 @@ no `status` field at all.** Concretely:1. Enumerate every file in `observation-log/` — the directory listing is theauthoritative list of entries.2. For each file, read the `status` field from its frontmatter. Treat a- missing, blank, or any non-`actioned` / non-`declined` status as OPEN.+ missing, blank, or any status other than `actioned`, `declined` or+ `superseded` as OPEN.3. Never derive the work queue from a `grep 'status: open'` alone. Derive- it from the file list minus the resolved (`actioned` / `declined`)+ it from the file list minus the resolved (`actioned` / `declined` /+ `superseded`)files. A grep on an optional field silently drops every file missingthat field — the review then confidently reports a clean backlog whileuntriaged observations are skipped.@@ -161,9 +177,25 @@ Principles often generalise. Build skill → [relevant observations], seedingit from the frontmatter: every entry in an observation's `skill:` list putsit in that skill's bucket (the first entry is primary), and every entry in`proposes_skill:` puts it under a new-skill candidate of that name. An-observation may appear in both. Interactive:-present all of it and await approval. Autonomous: apply the approval policy-above and continue.+observation may appear in both. Then, before anything is presented:++- **Consolidate new-skill candidates by the problem they solve, not by+ name.** Independently logged proposals for the same skill will not look+ alike, because each is named after the task that surfaced it; eleven+ working names have collapsed to four skills on reading. Present merged+ clusters with their constituent observation ids.+- **Supersession check.** Where a later observation's finding is that an+ earlier one's mitigation does not work, mark the earlier one+ `status: superseded`, `resolution: "by #N"`, and carry only the later+ one forward.+- **Confidentiality pass over the log itself.** For every OPEN+ `open-source` observation, check the Issue and Improvement fields for+ client-identifying specifics no longer needed for context and strip+ them. The log is the artefact most likely to be shared casually, and+ the authoring-time sweeps never see it.++Interactive: present all of it and await approval. Autonomous: apply the+approval policy above and continue.**Cluster by decision BEFORE the escalation list is written.** Anappend-only log accumulates convergent entries by construction: the same@@ -201,7 +233,14 @@ diff -q "<live>/SKILL.md" "[workspace folder]/skill-updates/[today]/[skill-name]so the live path is never the target of an edit, the staged copy provablystarts from live, and a stale staged copy from an earlier date cannot be-picked up by accident. Then+picked up by accident. **Presence check before writing anything:** grep+the staged copy for the substance of each suggested improvement and+classify it as already-applied / partially-applied / outstanding — an+`open` status is not evidence the work is outstanding, and applying an+already-applied observation over a section that has since been refined+regresses the skill in the name of improving it. Mark already-applied+entries `actioned` with a resolution noting that a prior session applied+them, and leave the section alone. Thenproduce an updated SKILL.md: integrate insights into the sections wherethey belong (never append an observations list at the bottom); preservestructure, voice, and attribution; place new rules where they logically@@ -301,3 +340,17 @@ well as files. Do not edit skill files in place — nothing goes liveuntil the user installs it. **Keep-two rule:** for any skill, keep onlythe two most recent date directories under `skill-updates/`; deleteolder ones.++**Staging manifest.** Every delivery appends one entry to+`[workspace folder]/skill-updates/PENDING.md`: the skill, the date+directory, the observation ids applied, and a per-change summary+(observation id → section touched → one-line rationale). The manifest is+what the Session Start Protocol reads to announce "N staged updates+awaiting review", so staged work is never quietly forgotten; the+per-change summary is what lets the user review a full-file diff+quickly, which is what raises the install rate. Remove an entry when the+user installs the update or when the keep-two rule prunes its directory.+The gate stays absolute — the fix for a safety gate people are tempted to+bypass is reducing the friction that creates the temptation, not+loosening the gate. An optional git-based staging medium is described in+`references/environments.md`.