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
Session start: create the workspace with one asserting command
Eoghan Henne7de1d95e32a
diff --git a/SKILL.md b/SKILL.mdindex c04c085..9cf0200 100644--- a/SKILL.md+++ b/SKILL.md@@ -134,29 +134,25 @@ was handled without its reference loaded, log an observation.not in context. Why this guard is only the backup, and where the primaryone belongs, is in `references/environments.md` ("Activation config —late, intermittent, and why the guard cannot live inside it") — load it- when setting up or diagnosing activation. Once the path resolves: if- `skill-observations/observation-log/` (with its `archive/`- subdirectory) or `skill-observations/cross-cutting-principles.md`- don't exist, create them (principles template:- `references/skill-authoring.md`). Then the **starter-set reconciliation**,- due whenever `skill-observations/starter-principles-reviewed.txt` is- absent or holds a starter-set version older than the one in+ when setting up or diagnosing activation. Before creating or writing+ anything: if the resolved workspace sits under an ephemeral path+ (`.claude/worktrees/`, a temporary clone), warn and re-anchor on the+ stable project path — state written there is lost at teardown; where+ none resolves (a disposable worker), use report-back mode:+ `references/environments.md` ("Claude Code Projects"). Then RUN the one+ idempotent command in `references/observation-log.md` ("Workspace+ creation"): it creates the four workspace artefacts and asserts each,+ and refuses a pre-3.0 `log.md` layout (load `references/migration.md`+ and convert first) — never create them by working down a list by hand.+ Then the **starter-set reconciliation**, due whenever+ `skill-observations/starter-principles-reviewed.txt` is absent or holds+ a starter-set version older than the one in`references/starter-principles.md` — a fresh install, an upgrade to abundle that ships the file, and every later growth of the set. Load that- file and follow its **Reconciliation** section: match by substance, offer- once in one line, import only what the adopter picks, then write the- shipped version into the marker file so the offer never repeats until- the set changes. Never pre-populate silently.- Create `skill-observations/last-review-date.txt` holding the literal- `never` if it doesn't exist — never write a date at setup; a date means- a review actually ran. If a legacy `skill-observations/log.md` exists- and `observation-log/` does not, this is a pre-3.0 upgrade: load- `references/migration.md` and run the scripted conversion before writing- anything else. Before creating or writing anything: if the resolved- workspace sits under an ephemeral path (`.claude/worktrees/`, a temporary- clone), warn and re-anchor on the stable project path — state written- there is lost at teardown; where none resolves (a disposable worker), use- report-back mode: `references/environments.md` ("Claude Code Projects").+ file and follow its **Reconciliation** section: match by substance,+ offer once in one line, import only what the adopter picks, then write+ the shipped version into the marker file so the offer never repeats+ until the set changes. Never pre-populate silently.2. **Scan.** Read only the frontmatter of each file in `observation-log/`— the header block between the first two `---` lines, never the bodies— and build awareness from `status`, `skill`, `proposes_skill` anddiff --git a/references/observation-log.md b/references/observation-log.mdindex 9af465e..59d1a1b 100644--- a/references/observation-log.md+++ b/references/observation-log.md@@ -15,6 +15,7 @@ empty.## Contents- Layout+ - Workspace creation- Frontmatter fields- Unquoted `: ` in a prose value — how far it drifts before anyone notices- A list entry holding a colon is not portable@@ -70,6 +71,55 @@ directory listing is the index, and the frontmatter is the metadata."The observation log", wherever this skill or any other skill says it,means this directory.+### Workspace creation++One idempotent command, then an assertion. Session Start step 1 points+here: run this, do not work down the tree above by hand.++```bash+d="[ABSOLUTE PATH]/skill-observations" # the pinned path, quoted: it may contain a space; bash, not sh+[ -e "$d/log.md" ] && [ ! -d "$d/observation-log" ] && { echo "LEGACY log.md — run the migration (references/migration.md) before creating anything"; exit 1; }+mkdir -p "$d/observation-log/archive"+[ -e "$d/last-review-date.txt" ] || printf 'never\n' > "$d/last-review-date.txt" # the literal `never`, never a date: a date means a review actually ran+[ -e "$d/cross-cutting-principles.md" ] || printf '# Cross-Cutting Principles\n\nPrinciples that apply to all skills. Read as a mandatory checklist during\nany skill creation or regeneration.\n\n---\n\n## Active Principles\n' > "$d/cross-cutting-principles.md"+for x in observation-log observation-log/archive last-review-date.txt cross-cutting-principles.md; do+ [ -e "$d/$x" ] || { echo "WORKSPACE SETUP INCOMPLETE: $x"; exit 1; }+done+```++`mkdir -p` creates the parent, so `observation-log/` needs no separate line;+the `[ -e ]` guards make the command safe to re-run on an existing+workspace, which is what lets step 1 run it unconditionally rather than+deciding first whether setup is needed. The legacy guard runs first+because a created `observation-log/` would hide the one condition that+identifies a pre-3.0 install. The principles stub is the header of the+template in `skill-authoring.md` ("Principle Propagation"); change the two+together.++**Why a command and not the prose list it replaces.** Observed on a fresh+user-scope install: a session created `skill-observations/` and+`observation-log/` and nothing else. The next session could not tell —+step 1's probe is an `ls` of the pinned path, the path resolved,+`observation-log/` was there, and nothing re-checks the siblings. The+workspace looked set up from outside for as long as nobody looked closer.++The assertion loop is the half that matters, because the four artefacts+fail differently and only one of them complains:++| Missing | How it surfaces |+|---|---|+| `observation-log/` | immediately, at the first scan |+| `archive/` | at the first write, when the id snippet reads `.id-floor` or `mv`s into it |+| `cross-cutting-principles.md` | at the first review |+| `last-review-date.txt` | only if step 3 applies its own recreate rule — otherwise the review trigger never fires, and nothing says so |++This is the same shape the skill already solved for archival, and solved+the same way — a duty written as prose next to another action inherits none+of that action's enforcement, so the archival sweep was folded *into* the+id-derivation snippet ("If a step must always accompany a tool call, put it+inside the same command", Archival on Write). Step 1's creation is the+remaining place where that reasoning had not been applied.+## Frontmatter fields| Field | Meaning |