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
Phrase procedures as capabilities; classify write targets by durability
Eoghan Hennf07b3e603b78
diff --git a/SKILL.md b/SKILL.mdindex 8cee154..9ed859d 100644--- a/SKILL.md+++ b/SKILL.md@@ -88,7 +88,8 @@ was handled without its reference loaded, log an observation.## Session Start Protocol1. **Storage.** If `skill-observations/observation-log/` (with its- `archive/` subdirectory) or `cross-cutting-principles.md` don't exist,+ `archive/` subdirectory) or+ `skill-observations/cross-cutting-principles.md` don't exist,create them (principles template: `references/skill-authoring.md`).Create `skill-observations/last-review-date.txt` containing the literalvalue `never` if it doesn't exist — never write a date into it at setup;@@ -176,7 +177,18 @@ observation files, or, if genuinely none have accumulated, append aone-line `no observations` acknowledgement to`skill-observations/checkpoints.log`. The required action is a concretewrite; a remembered "ask whether" is not enforcement. The count need not be-precise; roughly every third completion is the rule.+precise; roughly every third completion is the rule. (Exception: where the+workspace is a shared hosted document store in which every write is priced+and invalidates other sessions' context, suppress the empty marker and+keep only the check — see `references/environments.md`.)++**A denied or failed write is not a read-only log.** Retry once before+concluding the workspace is unwritable, and try a second tool that reaches+the same path — a permission classifier can deny one interface while+allowing another, and consecutive denials from a probabilistic gatekeeper+are noise, not a wall. Report "failed N times", never "cannot be done",+unless retries and alternate interfaces are actually exhausted; otherwise+observations are silently lost for the rest of the session.**Deliverable-event flush.** Whenever you present or render a majordeliverable — a file handed to the user, a deck or PDF render, a stageddiff --git a/references/environments.md b/references/environments.mdindex d95d557..f6aeb0a 100644--- a/references/environments.md+++ b/references/environments.md@@ -167,6 +167,45 @@ back to the user" is safe but consistently over-escalates. Never assumeunrestricted edit access to shared or governance-tracked config — manysetups gate exactly those files.+## Environment mappings++The procedures in this skill are written as capabilities. This table is+the only place product-specific names live; when a step says "present the+staged file" or "register the review", look up the current environment+here rather than guessing a tool name.++| Capability | Claude Cowork | Claude Code | Web chat / no filesystem |+|---|---|---|---|+| Persistent workspace | the shared folder | pinned absolute path (see activation block) | none — handoff-doc mode below |+| Live skill files | `.claude/skills/{skill}/` on a read-only mount (writes fail with EROFS) | `~/.claude/skills/{skill}/`, ordinary writable files — no guard | n/a |+| Present a staged file for install | the file-presentation tool (`present_files`) with its upload button | none — report the staged path and a change summary in chat | paste into the handoff doc |+| Scheduled review | the app's scheduled tasks (runs on the user's machine, only while it is on) | cron / a harness `SessionStart` hook / an account-level scheduler that can reach the workspace | calendar reminder + manual trigger |+| Session-start hook | none | `SessionStart` hook (`hookSpecificOutput.additionalContext`) | none |+| Local-vs-cloud tell | `allow_cowork_file_delete` present ⇒ local session | n/a | n/a |++Grow the table when a new environment appears; do not scatter its tool+names through the procedure files.++## Storage regimes++Persistence is one axis; the *price* of a write is another. Three+regimes:++1. **Local filesystem** — appends are free. Write the checkpoint markers+ exactly as SKILL.md specifies; they are the only evidence the check+ happened.+2. **Shared or hosted document store** (the workspace resolves to a+ hosted knowledge base or project, where each "file" is a document and+ every write is a mutation that invalidates cached context for every+ other session in that workspace). Keep the mandatory *check* at every+ checkpoint but suppress *empty* markers: enforce the check by hanging+ it on writes that were going to happen anyway — deliverable events and+ task completions — and write only when there is an observation to+ record. An enforcement mechanism has to be priced against its+ environment; a rule that makes writes mandatory-even-when-empty is+ only free where writes are free.+3. **No persistence** — handoff-doc mode, below.+## Bundle manifestThis skill consists of `SKILL.md`, the reference files it listsdiff --git a/references/skill-authoring.md b/references/skill-authoring.mdindex 5f2a704..674e39b 100644--- a/references/skill-authoring.md+++ b/references/skill-authoring.md@@ -248,8 +248,16 @@ capture is the point.)1. The live file is the authoritative source: in Claude Code,`~/.claude/skills/{skill}/SKILL.md`; in Cowork, a read-only mount at`.claude/skills/{skill}/SKILL.md` (writes fail with EROFS by design).- Do not edit skill files in place, in any environment — staging-only is- what keeps the autonomous review safe.+ **That guard exists in Cowork only.** In Claude Code and most+ local-filesystem environments the same files are ordinary writable+ files and nothing stops the write — the discipline is the only thing+ preventing the overwrite. Assume you are in the unprotected case unless+ you have seen an EROFS yourself. Do not edit skill files in place, in+ any environment — staging-only is what keeps the autonomous review+ safe, and the way to make it hold where no guard exists is to begin+ every edit with the copy (`mkdir -p` the staging dir, `cp` the live+ file in, `diff -q` to prove it matches), so the live path is never the+ one in hand.2. Always base edits on a fresh read of the live file — never a workspacecopy, prior draft, or memory.3. Before overwriting any staged/workspace copy, diff it against the livediff --git a/references/weekly-review.md b/references/weekly-review.mdindex be7d30b..c2e270d 100644--- a/references/weekly-review.md+++ b/references/weekly-review.md@@ -35,6 +35,19 @@ scheduler runs somewhere that can reach it. Three regimes:a terminal-resident loop): works, but the user must keep the localagent runnable.+**Offline-workspace policy for scheduled runs.** A scheduled or autonomous+session may fire while the workspace's persistence layer is unreachable —+the log can live on a machine that is asleep or offline at fire time.+Define the policy up front: (1) check workspace reachability before+anything else; (2) if unreachable, end gracefully with a one-line "review+skipped — workspace offline" note, no retries — the next firing or the+7-day in-session fallback catches up; (3) when setting up a scheduled+review, bake this policy into the scheduled task's prompt, so fresh+sessions inherit it without rediscovery. A permission failure mid-run is+handled the same way: skip the gated step, record it as a manual+follow-up, and still emit the final report — a blocked step N must never+cost the report for steps 1 through N-1.+## Approval policy**Interactive (user present):** always present observations grouped by@@ -70,8 +83,9 @@ offering, check reachability (see the regimes above): if the platform'sscheduler runs where it cannot reach the workspace folder (regime 2), doNOT offer registration — recommend the calendar-reminder-plus-manual-trigger pattern instead, and skip the rest of this step. Otherwise-offer to set one up. Yes → register via the platform scheduler (Cowork:-`create-shortcut` / `set_scheduled_task`; terminal: cron), name it+offer to set one up. Yes → register it through whatever scheduler the+environment provides (see the environment table in+`references/environments.md`), name it`weekly-skill-review`, use the draft prompt at`skill-observations/scheduled-task-draft.md` if present, then verify theregistration actually succeeded (the scheduler lists the task, or the@@ -113,14 +127,27 @@ Also read all active cross-cutting principles. If there are no OPENobservations and no outstanding principles: report "no open observationsor outstanding principles", update the timestamp, and stop.-**Step 2 — inventory skills.** List all skills (system prompt-`<available_skills>` or the skills directory). Only user-owned custom-skills can be updated. Known read-only system skills: docx, pdf, xlsx,-pptx, skill-creator, schedule (grow this list when an update fails for-permissions). Observations targeting a system skill are NOT skipped — route-them to a complementary user-owned `{system-skill}-extras` skill containing-only the delta, creating it if needed and noting the pairing in-configuration.+**Step 2 — inventory skills and classify each write target by whether+an edit SURVIVES, not by whether it succeeds.** List all skills (system+prompt `<available_skills>` or the skills directory) and put each into one+of three categories:++| Category | Detection | Action |+|---|---|---|+| (a) User-owned, no upstream | in the user's skills directory; not a git checkout; not refreshed from anywhere | normal staging flow |+| (b) Writable but volatile | path contains a plugin cache or version-pinned directory; or the skill is refreshed from an upstream by clone/copy or `git pull` | never edit in place — the next update silently discards it, and no permission error ever fires |+| (c) No on-disk file, or read-only | built-in / harness-provided skills (e.g. docx, pdf, xlsx, pptx, skill-creator); a mount that rejects writes | cannot be edited |++Observations targeting (b) or (c) are NOT skipped — the destination must+be one that survives and that something actually loads. Offer both routes+and let the user choose: a complementary user-owned `{skill}-extras` skill+holding only the delta **plus** a routing entry in the user's instruction+file (state plainly that without the routing entry nothing ever loads the+companion — a fix routed somewhere nothing loads is not a fix); or routing+the content straight into the instruction file, which loads+unconditionally. For (b) with an upstream, also offer an upstream issue or+PR per the attribution block. Grow the (c) list when an update fails for+permissions; grow the (b) list when a change you made has vanished.**Step 3 — cross-check observations.** Evaluate every OPEN observationagainst every skill — not just the skills named in its `skill:` list;@@ -156,7 +183,19 @@ 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.-**Step 5 — apply.** For each skill with approved/non-escalated items,+**Step 5 — apply.** Begin with the copy, not the edit: for each skill+with approved/non-escalated items,++```bash+mkdir -p "[workspace folder]/skill-updates/[today]/[skill-name]"+cp "<live>/SKILL.md" "[workspace folder]/skill-updates/[today]/[skill-name]/SKILL.md"+diff -q "<live>/SKILL.md" "[workspace folder]/skill-updates/[today]/[skill-name]/SKILL.md"+# then make EVERY edit against the staged path+```++so the live path is never the target of an edit, the staged copy provably+starts from live, and a stale staged copy from an earlier date cannot be+picked up by accident. 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@@ -223,10 +262,11 @@ Wait for the user to acknowledge before other work.Save each updated skill to`[workspace folder]/skill-updates/[date]/[skill-name]/` — the FULL skilldirectory (SKILL.md plus references/, scripts/, assets/ where present),-never SKILL.md alone — and present it for review and installation. In-Cowork: via `present_files` and its upload button. In environments without-a presentation tool (e.g. Claude Code CLI): report the staged path and a-change summary in chat and let the user review and install from there.+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 iswritable — staging-only is a deliberate safety property of the review loop(nothing goes live without the user's sign-off), not a filesystem