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 local self-improvements since last push
Eoghan Henn17fc083a3e1b
diff --git a/SKILL.md b/SKILL.mdindex 04b574c..9e04a83 100644--- a/SKILL.md+++ b/SKILL.md@@ -111,8 +111,34 @@ an open-source skill (unless an internal skill is the right home).Append to the log **silently, within the same turn or the next** — neverbatch mentally for later; the act of writing is the enforcement mechanism.-Checkpoint: after roughly every 3rd completed todo item, stop and flush any-unlogged observations.++**Mandatory observation checkpoint after every 3rd TodoWrite completion:** After+marking the 3rd, 6th, 9th (etc.) TodoWrite item as completed in a session, you+must **write to the log** — not merely pause to ask yourself a question. Either+append any pending observations, or, if genuinely none have accumulated, append+an explicit acknowledgement marker (a one-line `no observations` note for that+checkpoint). The required action is a concrete log write; a remembered "ask+whether" is not enforcement. This is a hard checkpoint, not a suggestion — the+skill has demonstrated that softer "check when completing items" or "pause and+ask" guidance gets lost during cognitively demanding analytical work, exactly+when the most observations accumulate. The count doesn't need to be precise;+the rule is: roughly every third completion, write to the log (observations or+the acknowledgement marker). The write itself is the enforcement mechanism: it+forces the mental check to surface as a recorded action, and it prevents the+common failure mode where the skill is loaded but no observations are written+until the user explicitly asks.++**Deliverable-event flush:** Hard enforcement that hooks onto tool calls you are+already making is the only reliable mechanism; soft prompts that rely on memory+don't survive cognitive load during long substantive sessions (when the most+insights surface). So tie observation-flushing to deliverable and workflow events+that already involve a tool call. Whenever you present or render a major+deliverable — `present_files`, a deck or PDF render, a staged skill file handed+to the user — or complete a task/todo batch, flush any pending observations to+the log at that moment, before moving on. These are natural, already-occurring+checkpoints; piggy-backing the flush onto them means the write happens as a+side effect of work you were doing anyway, rather than depending on a separate+act of memory.**Numbering discipline (mandatory, every append):**@@ -145,9 +171,45 @@ unlogged observations.pattern for shared logs written by parallel agents ischeck-then-act-then-verify.+**Log-write safety — never let a mutation span entry boundaries:** When+mutating the log programmatically (marking entries ACTIONED/DECLINED,+archiving, renumbering), a greedy or DOTALL pattern over the whole file can+silently swallow everything from one match to EOF. This has happened: a+`.*$` under `re.S` over the multi-entry file captured from one entry's+Status line to end-of-file and overwrote 16 later entries in a single+substitution. The log is shared state across many entries; mutate it one+bounded entry at a time and verify every mutation.++1. **Isolate the target entry, or anchor to a single line.** Either split+ the log on `### Observation N:` headers, edit the TARGET entry's chunk in+ isolation, and reassemble — OR, for a status-only edit, use a strictly+ line-anchored multiline substitution that cannot cross a newline, e.g.+ `re.sub(r'(?m)^(\s*-?\s*)\*\*Status:\*\*.*$', ...)` (multiline `^...$`+ bounds the match to one line). NEVER use a DOTALL/greedy pattern across+ the multi-entry file.++2. **Assert a structural invariant after every write.** Count+ `### Observation` headers before and after the mutation. For a status-only+ edit the count MUST be unchanged; for archival or append it must change by+ exactly the expected number. Fail loudly if the count is off — a silent+ mismatch means the write captured more than its target.++3. **Keep the pre-write backup.** Copy `log.md` before any programmatic+ mutation. This is what made full recovery trivial when the truncation+ above occurred — it turned a destructive bug into a non-event.++Principle: a log shared across many entries must be mutated one bounded+entry at a time, and every mutation verified by a structural invariant+(entry count) immediately afterwards. Backups turn a destructive bug into a+non-event.+**Format and insertion:** always `### Observation NNN:`, always appended tothe END of the log, never mid-file, never alternative ID formats. One-format, one insertion point.+format, one insertion point. **Every new observation MUST include+`**Status:** OPEN` as its first field — this is mandatory at write time, not+optional.** Reviews classify entries by their Status line; an observation+written without one is invisible to any status-filtered pass and risks being+silently skipped instead of triaged.```markdown### Observation [N]: [Short descriptive title]@@ -179,6 +241,30 @@ Principle must be fully generalised — no client names, domains, or detailstraceable to a real project. Full confidentiality layers for skillauthoring: `references/skill-authoring.md`.+## Referencing Observations++When citing an observation by number — in conversation, in a review report,+or from within another observation — the number must come from the entry's+literal `### Observation N:` header line. Never cite an observation number+that wasn't read from that header.++- **Search-tool line numbers are positional metadata, not IDs.** `grep -n`+ prefixes every match with a line number; when a match lands mid-entry+ (e.g., on a Session context or Principle line rather than the header),+ that line number is NOT the observation number. Resolve to the owning+ header first — scan backwards from the matched line to the nearest+ preceding `### Observation N:` header and take the number from there+ (e.g., an awk backwards-scan, or re-grep for `^### Observation` and pick+ the last header line before the match).+- **Plausibility check (cheap second layer):** before quoting any+ observation number, compare it against the known counter range — the+ highest `### Observation N:` header in the log. A number outside that+ range (e.g., citing #1365 when the log's counter is at #766) is almost+ certainly a line number or other positional artefact misread as an ID.++The general rule: IDs must come from the record's own identifier field,+never from the positional metadata of the search tool that found it.+## Taxonomy (quick version)**Open-source** — client-agnostic, methodology-driven, useful to other@@ -223,11 +309,27 @@ suggested type; ask which to act on. Surface earlier when an observationneeds user input to be complete, when a skill is actively producing wrongoutput, or when observations cluster on one skill.+**Default to log-and-defer.** Surfacing an observation is not an invitation+to act on it. The default is log-and-defer: state that the observation is+logged for the next review, and stop. Reserve in-session application+strictly for the two triggers already defined under "Acting on+Observations" — an explicit user request that names the action, or+correcting a skill that is producing wrong output in the current session.++Do NOT routinely offer a binary "apply now vs leave for next review" choice+when surfacing observations. For users who run regular reviews, that offer is+unwanted friction repeated every session. If a user has expressed a standing+preference to always defer to the next review, suppress the in-session+"act now?" offer entirely rather than asking each time.+**Self-check before surfacing:** observations were logged throughout thewhole session (including discussion phases); logged silently; each followsIssue → Improvement → Principle; each is typed; existing-skill items name-the section; no open-source Principle contains client-identifying info. Fix-failures before surfacing.+the section; no open-source Principle contains client-identifying info;+every appended observation carries a Status line (`**Status:** OPEN` at+write time) — a statusless entry is invisible to any status-filtered review+pass, so if any observation lacks one, add it now. Fix failures before+surfacing.## Acting on Observations@@ -252,6 +354,8 @@ same reference).| When do I observe? | The whole session, including feedback and reflection phases || How do I log? | Silently, immediately, appended to the end, with the 3-step numbering discipline || When do I surface? | End of session, or earlier if needed |+| Status line? | Mandatory `**Status:** OPEN` as the first field of every new observation; reviews treat statusless entries as OPEN, never as nonexistent |+| 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` || Weekly review? | Trigger check at session start; procedure in `references/weekly-review.md` |diff --git a/references/skill-authoring.md b/references/skill-authoring.mdindex e3de40b..6fe2f2d 100644--- a/references/skill-authoring.md+++ b/references/skill-authoring.md@@ -66,6 +66,15 @@ methodology, log it and suggest sharing it; if from the agent not followingthe skill's rules, acknowledge and correct.```+**Distribution-channel note:** the template's feedback routing assumes+public-repo distribution. Only reference a repository URL once that+repository actually exists — never write a reference to an artefact before+the artefact exists. Until publication, route feedback to direct author+contact only; when the skill is published, inject the repo URL at publish+time. When an open-source skill is distributed privately (shared directly+with a client rather than published), keep the direct-author-contact+routing — a public-repo reference is wrong for that channel.+## Confidentiality layersThe open-source/internal boundary is a confidentiality boundary; enforce itdiff --git a/references/weekly-review.md b/references/weekly-review.mdindex 2f7b98b..dc41411 100644--- a/references/weekly-review.md+++ b/references/weekly-review.md@@ -45,8 +45,30 @@ 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 all OPEN observations and all active-cross-cutting principles. If none of either: report "no open observations+Archival on Write in SKILL.md). Read the observation log.++Build the work queue from the structural identifiers, not from a status+filter. The OPEN set is defined as: **status is literally OPEN, OR the+observation has no Status line at all.** Concretely:++1. Enumerate all `### Observation N:` headers first — this is the+ authoritative list of entries in the log.+2. For each header, classify the entry's status by looking for a+ `**Status:**` line within its body. Treat a missing, blank, or any+ non-ACTIONED / non-DECLINED status as OPEN.+3. Never derive the work queue from a `grep '**Status:** OPEN'` alone.+ Derive it from the header list minus the resolved (ACTIONED /+ DECLINED) entries. A grep on an optional field silently drops every+ entry missing that field — the review then confidently reports a+ clean log while a backlog of untriaged observations is skipped.++**Reconciliation guard:** before proceeding, assert that+`count(### Observation headers) == count(status-classified entries)`.+If the counts differ, the delta is statusless entries — surface and+triage them (as OPEN) rather than proceeding as if the log were clean.++Also read all active cross-cutting principles. If there are no OPEN+observations and no outstanding principles: report "no open observationsor outstanding principles", update the timestamp, and stop.**Step 2 — inventory skills.** List all skills (system prompt