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
Fold in the review round's changes that need a test week
Eoghan Henn888f7efc36da
diff --git a/SKILL.md b/SKILL.mdindex 8e714a7..6aeb0f6 100644--- a/SKILL.md+++ b/SKILL.md@@ -409,12 +409,12 @@ and the noclobber create") when any of them fires.**Run the snippet immediately before EVERY write, including the first andonly one of a session** — an earlier read of the log is not a substitute,and the id the session-start scan printed is never an input to a write.-Where a helper can run, `bash scripts/new-observation.sh <slug> "[ABSOLUTE PATH]"`-is the only write path: it performs this whole snippet and prints the-created path, so derivation cannot drift from creation (the structural-barrier the second-violation rule demands). Load `references/observation-log.md`-("Run the snippet immediately before every write") when skipping feels-reasonable, or when two files turn out to share an id.+Where a helper can run, `bash scripts/new-observation.sh --body <file>+<slug> "[ABSOLUTE PATH]"` is the only write path: it runs this whole snippet,+copies the body in with `__ID__` and `__DATE__` filled and prints the created+path, so derivation cannot drift from creation (the structural barrier the+second-violation rule demands). Load `references/observation-log.md` ("Run the+snippet immediately before every write") when skipping feels reasonable.**Resolve each id at its own write time** — run the snippet before EACHfile, never pre-compute a range, and put the value it printed into both the@@ -680,7 +680,7 @@ agent not following the skill's rules, acknowledge and correct it instead.| Question | Answer ||----------|--------|| When do I observe? | The whole session, including feedback and reflection phases |-| How do I log? | Immediately, without interrupting the user's task, as one file per observation named `NNNN-slug.md`; id = max(active, archive, `.id-floor`) + 1, derived by running the snippet immediately before each write — an earlier read of the log for any other purpose is not a substitute; where a helper can run, `bash scripts/new-observation.sh <slug> "[ABSOLUTE PATH]"` is the only write path |+| How do I log? | Immediately, without interrupting the user's task, as one file per observation named `NNNN-slug.md`; id = max(active, archive, `.id-floor`) + 1, derived by running the snippet immediately before each write — an earlier read of the log for any other purpose is not a substitute; where a helper can run, `bash scripts/new-observation.sh --body <file> <slug> "[ABSOLUTE PATH]"` is the only write path || Status field? | Mandatory `status: open` frontmatter on every new observation; reviews treat a missing status as OPEN, never as nonexistent. Five values: `open`, `actioned`, `declined`, `superseded`, `parked` — `parked` = decided but blocked on an external precondition, so it leaves the queue, requires `parked_until:`, and never archives || Does the target skill have siblings? | Resolve it against `skill-observations/skill-families.md` BEFORE writing; add every sibling the insight applies to to `skill:`, and record the verdict in the mandatory `siblings_checked:` field — including "checked, no propagation" || A scan or query came back empty? | Two possibilities, only one is a finding: guard every retrieval meant to prevent duplicate work with an independent existence check, and treat empty output over known content as a broken command |diff --git a/references/ceilings.txt b/references/ceilings.txtindex daa17cd..a7363a1 100644--- a/references/ceilings.txt+++ b/references/ceilings.txt@@ -3,10 +3,10 @@# Over its ceiling, a file with more than 12 load triggers is split by episode;# one with 12 or fewer is trimmed, or its ceiling raised with a dated reason.# A ceiling more than 3 lines above its file's count is lowered to the count.-environments.md 1731 2026-10-16 the activation check opens unprimed, the desktop app's scheduler is named, other agent tools reading the folder, the far-side recipe asks for a go-ahead+environments.md 1734 2026-10-16 the activation check opens unprimed, the desktop app's scheduler is named, other agent tools reading the folder, the far-side recipe asks for a go-ahead, the live-set validator passmigration.md 250 2026-10-09 the abandoned-root pointer file is named and read, migrate-log.py checks dropped keysobservation-log.md 1474signals.md 234skill-authoring.md 1374 2026-10-16 a binary prerequisite is one that starts, the ./<path> citation formstarter-principles.md 504 2026-10-16 the marker is written after the answer, cited bodies are read, entry 23 covers the unmeasured baseline-weekly-review.md 2055 2026-10-16 corrected command forms, the check an entry names, dated summary claims, shared-tree worker checks, keep-two per skill+weekly-review.md 2068 2026-10-16 corrected command forms, the check an entry names, dated summary claims, shared-tree worker checks, keep-two per skill, the live-set validator pass and the --body helperdiff --git a/references/environments.md b/references/environments.mdindex bd3dfd2..7280d34 100644--- a/references/environments.md+++ b/references/environments.md@@ -1301,8 +1301,11 @@ remote shell (`device_bash`) and a file-commit toolshell running the id snippet (SKILL.md, How to Log) — or`scripts/new-observation.sh`, where the script is reachable on the device— at the moment of writing, and its body goes into the created path-through the same shell with a quoted heredoc. It is never composed in the-container and committed afterwards. The failure shape: a committed file+through the same shell with a quoted heredoc: into a scratch file first,+with `__ID__` and `__DATE__` as placeholders, handed to the helper's+`--body` so the id reaches the body without an unquoted expansion+(`observation-log.md`, "Editing an existing observation"). It is never+composed in the container and committed afterwards. The failure shape: a committed filecarries an id derived from a listing taken earlier, and the prefix guardnever ran because it lives in the command the commit bypassed; the lagging`.id-floor` appears first and the duplicate id at the next review.diff --git a/references/observation-log.md b/references/observation-log.mdindex 15c19c7..a0520b9 100644--- a/references/observation-log.md+++ b/references/observation-log.md@@ -1200,15 +1200,15 @@ reads like a harness fault rather than a consequence of the create. A quoted hershell receives the command as typed; on a host whose shell tool rewritesit in transit (`environments.md`, "Windows hosts: what reaches the shelland the file"), the body goes through the editing tool. Where the shell is that only path, write the-frontmatter with `printf` and the body with a QUOTED heredoc: quoting the-delimiter disables every substitution, so the body cannot carry-variables, and the id and the dates go in the `printf` above it —+whole file with a QUOTED heredoc: quoting the delimiter disables every+substitution, so the body cannot carry variables — the id and the date go in as+the literal placeholders `__ID__` and `__DATE__`, which `scripts/new-observation.sh --body <file>` replaces everywhere on its create (the body file is read as data, so a backticked path survives); with the inline snippet and no helper, `printf` the frontmatter and append a quoted-heredoc body —```bash-printf -- '---\nid: %s\ntitle: "%s"\nstatus: open\ndate: %s\n' "$next_id" "$title" "$(date +%F)" > "$f" # …the remaining fields, then the closing ----cat >> "$f" <<'OBS'-**Issue:** … `find -exec` … $(date) … written literally, none of it run+cat > "$tmp/body.md" <<'OBS' # frontmatter and body; __ID__ / __DATE__ where the id and date belong+**Issue:** … `find -exec` … $(date) … written literally, none of it run; #__ID__ on __DATE__OBS+bash "<skill directory>/scripts/new-observation.sh" --body "$tmp/body.md" <slug> "[ABSOLUTE PATH]"```The same rule covers `echo -e` and any `"$(cat <<…)"` form. Exit code 0diff --git a/references/weekly-review.md b/references/weekly-review.mdindex c964408..7c96373 100644--- a/references/weekly-review.md+++ b/references/weekly-review.md@@ -816,6 +816,18 @@ permissions; grow the (b) list when a change you made has vanished — arule that fires after the damage, so it is the backstop for theattribution read, never the test.+**Run the validator over the live set while the inventory is in hand.**+Step 1's gate compares staged against live and Step 5 validates what was+edited, so a skill that is never staged is never checked again, and the+validator's own checks tighten between releases. Run+`scripts/validate-skill-bundle.py` over every category-(a) live skill+directory — seconds for a whole library — and list the failures in the+Step 8 summary under Log integrity ("N installed skills fail the+validator: …"). A failing skill with no observations in the queue gets a+one-line staging that fixes only the gate failure (the minimal structural+change). The failure shape: a gate that runs only on what is about to+change never sees what has already drifted.+**Step 3 — cross-check observations.** Evaluate every OPEN observationagainst every skill — not just the skills named in its `skill:` list;Principles often generalise. Build skill → [relevant observations], seeding@@ -1743,7 +1755,8 @@ for the next review; or "none" — the line is never omitted]writing sessions' session_context and date; `skill:` names normalised forbucketing (Step 3), old → new; `skill:` entries in qualified and bareform (Step 3), N / M; inbox entries drained (Step 1), or "inbox-not read: <reason>"; or "none"]+not read: <reason>"; "N installed skills fail the validator: …" (Step 2),+each with its one-line staging; or "none"]### Skipped (needs manual review)[items with reasons]diff --git a/scripts/new-observation.sh b/scripts/new-observation.shindex 9c0279f..eea0adc 100755--- a/scripts/new-observation.sh+++ b/scripts/new-observation.sh@@ -3,18 +3,27 @@# as one command that cannot be split.## Usage:-# bash scripts/new-observation.sh <slug> [workspace-root]+# bash scripts/new-observation.sh [--body <file>] <slug> [workspace-root]## <slug> kebab-case, no id prefix, no extension ("short-slug")# [workspace-root] the pinned absolute workspace path — the directory that# holds skill-observations/. Defaults to the environment# variable TASK_OBSERVER_WORKSPACE. One of the two is# required; the log is never resolved from the cwd.+# --body <file> optional, before or after the slug: once the file is+# created, <file> (frontmatter and body, written by the+# caller with a QUOTED heredoc) is copied into it with+# the literal placeholders __ID__ and __DATE__ replaced+# everywhere by the issued id and today's date+# (YYYY-MM-DD). A quoted heredoc cannot carry the id, and+# an unquoted one runs every backticked span in the body;+# this flag fills the two values so neither is needed.## Prints the created file's absolute path on stdout (one line) and exits 0.# Any guard firing prints its message on stderr and exits 1 with NO file-# created. Write the observation body into the printed path, with the id-# from its NNNN- prefix in the `id:` field — copied, never retyped.+# created. Without --body, write the observation body into the printed+# path, with the id from its NNNN- prefix in the `id:` field — copied,+# never retyped.## This is the id-derivation snippet from SKILL.md "How to Log", plus a# number claim the inline snippet lacks, packaged so that the moment of@@ -32,18 +41,40 @@# so two writers running at once never share one) → PREFIX collision guard# across active and archive (two slugs sharing one number is the failure; a# path check cannot see it) → noclobber create → floor write (after the-# create, so a run that creates nothing never moves it) → print the path.+# create, so a run that creates nothing never moves it) → body copy with+# the placeholders filled (--body only) → print the path.## bash, not sh: the `10#` arithmetic is a bash extension. Runs on bash 3.2-# (stock macOS): case patterns are parenthesised for that reason.+# (stock macOS): case patterns are parenthesised for that reason, and the+# argument loop uses no array.set -u-slug="${1:-}"-root="${2:-${TASK_OBSERVER_WORKSPACE:-}}"+slug=; root=; body=; npos=0+while [ $# -gt 0 ]; do+ case $1 in+ (--body)+ [ $# -ge 2 ] || { echo "--body needs a file argument" >&2; exit 1; }+ body=$2; shift 2 ;;+ (--body=*) body=${1#--body=}; shift ;;+ (--*) echo "unknown option: $1" >&2; exit 1 ;;+ (*)+ npos=$((npos + 1))+ case $npos in+ (1) slug=$1 ;;+ (2) root=$1 ;;+ (*) echo "too many arguments: $1" >&2; exit 1 ;;+ esac+ shift ;;+ esac+done+[ -n "$root" ] || root="${TASK_OBSERVER_WORKSPACE:-}"if [ -z "$slug" ]; then- echo "usage: new-observation.sh <slug> [workspace-root]" >&2; exit 1+ echo "usage: new-observation.sh [--body <file>] <slug> [workspace-root]" >&2; exit 1+fi+if [ -n "$body" ] && ! { [ -f "$body" ] && [ -r "$body" ]; }; then+ echo "--body file is missing or unreadable: '$body'" >&2; exit 1ficase $slug in(*[!a-z0-9-]*|-*|*-|*--*|"")@@ -169,4 +200,16 @@ top_claim=$(for p in "$c"/[0-9]*; do [ -e "$p" ] && printf '%s\n' "${p##*/}"; dotop_claim=$((10#${top_claim:-0})); [ "$top_claim" -gt "$next_id" ] || top_claim=$next_idprintf '%s\n' "$top_claim" > "$d/archive/.id-floor" || { echo "FLOOR WRITE FAILED — $d/archive/.id-floor (the file $f exists; fix the floor by hand)" >&2; exit 1; }+# --- body copy, placeholders filled (--body only) ----------------------------+# The body file is read as data: sed matches the two literal placeholders+# (no regex metacharacters in either) and the replacements are an integer+# and a YYYY-MM-DD date, so nothing needs escaping and every other byte —+# backticks, $, quotes — reaches the file verbatim. Plain `s///g`, no -i and+# no GNU-only flag: BSD sed runs this too.+if [ -n "$body" ]; then+ if ! sed -e "s/__ID__/$next_id/g" -e "s/__DATE__/$today/g" "$body" > "$f"; then+ echo "BODY COPY FAILED — $f exists and is empty; write the body into it by hand (id $next_id)" >&2; exit 1+ fi+fi+if [ -n "$pin_form" ]; then cygpath "$pin_form" "$f"; else printf '%s\n' "$f"; fi