Skip to content

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.

Sync core and references with the maintainer's live install

Eoghan Henn233320b8b3d2
diff --git a/SKILL.md b/SKILL.md
index ec9e129..78bb2ba 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -110,12 +110,29 @@ was handled without its reference loaded, log an observation.
surface unprompted. Frontmatter-only is the whole point of the per-file
format: the scan stays cheap once hundreds of observations exist.
+ **An empty scan in a log known to be non-empty is a broken command
+ until proven otherwise**, never the finding "no relevant observations".
+ Count the files independently of the parse — a literal path, not the
+ variable the loop uses — and halt if files exist but nothing parsed.
+ Re-derive every path inside the same tool call: shell state does not
+ carry between calls in most harnesses, and a path variable that
+ silently resolves to empty turns a filter into a match-nothing glob
+ rather than an error.
+
```bash
- for f in skill-observations/observation-log/*.md; do
- awk 'NR==1 && /^---[[:space:]]*$/ {fm=1; next}
- fm && /^---[[:space:]]*$/ {print "---"; exit}
- fm' "$f"
+ d=skill-observations/observation-log # re-derive in EVERY call
+ n=$(ls skill-observations/observation-log/*.md 2>/dev/null | wc -l) # literal path: independent of $d
+ parsed=0
+ for f in "$d"/*.md; do
+ [ -e "$f" ] || continue
+ hdr=$(awk 'NR==1 && /^---[[:space:]]*$/ {fm=1; next}
+ fm && /^---[[:space:]]*$/ {exit}
+ fm' "$f")
+ [ -n "$hdr" ] && parsed=$(( parsed + 1 ))
+ printf '%s\n---\n' "$hdr"
done
+ [ "$n" -gt 0 ] && [ "$parsed" -eq 0 ] && \
+ { echo "SCAN COMMAND BROKEN — $n files present, 0 headers parsed"; exit 1; }
```
3. **Review trigger.** Read `skill-observations/last-review-date.txt`. The
value carries the truth: a date = when the last review actually ran;
@@ -190,6 +207,27 @@ one — independently logged proposals for one skill rarely share a name.
that exists now; if it doesn't, the observation proposes a skill instead.
Checking is cheap at write time and expensive forty entries later.
+**Check the target's siblings at write time, and record that you did.**
+Libraries accumulate *families* — several skills implementing one
+methodology for different tools, one structure for different subjects, one
+companion pattern for different base skills. An insight found while using
+one member usually applies to the rest, but nothing in the workflow asks,
+so `skill:` collapses to a single entry and the family silently diverges.
+Before writing, resolve the target against the family registry
+(`skill-observations/skill-families.md`; spec, coherence models and the
+no-registry fallback in `references/observation-log.md`), and for each
+sibling either add it to `skill:` or state in the body why it does not
+apply. Fast test: **could this sentence survive having the tool's or
+subject's name removed?** If yes it belongs to every sibling — and a rule
+that declares itself generic inside one artefact ("this applies to any
+file-writing script, not just X") is the cheapest possible propagation
+signal, so treat that phrasing as an automatic multi-skill flag. Then
+record the outcome in the mandatory `siblings_checked:` frontmatter field,
+including the verdict "checked — instance-specific, no propagation": a
+one-entry `skill:` list is byte-identical whether the siblings were
+evaluated or never considered, and only the recorded field makes the
+*absence* of the judgement visible to a review or a drift audit.
+
## How to Log
Write the observation file **silently, within the same turn or the next** —
@@ -247,24 +285,50 @@ overwrite or renumber anyone else's work. If two parallel sessions pick the
same id, two files share a number — harmless; the next review renumbers one
and logs a meta-observation.
+**Batch writes: resolve each id at its own write time.** When logging more
+than one observation in a session that may overlap a scheduled review or
+another writer, run the id snippet before EACH file — never pre-compute a
+range and hardcode sequential numbers into a batch. A batch append is N
+separate races, not one; pre-baked numbers collapse N independent
+max-checks into a single stale read (observed: a hardcoded id collided
+with one a parallel review issued between the check and the write).
+
+**A structural probe that comes back empty where content existed before is
+a stop signal, not a create.** If the directory or file you logged to
+earlier in the session is suddenly missing, or the id check returns empty
+in a log you know is populated, HALT and re-probe the structure (is there
+an `observation-log/`? a `log.md.migrated`?) — a parallel session may have
+migrated or reorganised the storage. Never let an append silently recreate
+a missing target: that converts a migration signal into corruption
+(observed: a stale session recreated the retired `log.md` with a fresh
+"Observation 1" after the per-file migration renamed it).
+
**File format.** YAML frontmatter (the metadata every scan reads) followed
by the Issue → Improvement → Principle body. **The frontmatter is mandatory;
-always write `status: open` at creation time** — an observation without a
-`status` field is treated as OPEN by reviews, never as nonexistent.
+always write `status: open` and a non-empty `siblings_checked:` at creation
+time** — an observation without a `status` field is treated as OPEN by
+reviews, never as nonexistent, and one without `siblings_checked:` counts
+as logged without a sibling check.
```markdown
---
id: [N]
title: [Short descriptive title]
-status: open # open | actioned | declined | superseded
+status: open # open | actioned | declined | superseded | parked
type: open-source # open-source | internal
skill: [list of existing skills this improves — always a list, even with
one entry; first entry is primary; may be empty]
proposes_skill: [list of new skills this argues for, by working name;
may be empty — an observation can fill either list or both]
+siblings_checked: [MANDATORY, never blank: the family name and the members
+ evaluated, plus the verdict — e.g. "family-name: a, b — shared, both
+ added" or "family-name: a, b — instance-specific, no propagation";
+ the literal `none` only where the target belongs to no family]
area: [which part of the skill or workflow]
date: [YYYY-MM-DD]
session_context: [what task was being worked on]
+parked_until: # MANDATORY when status is parked, empty otherwise:
+ # one line naming the condition that unparks it
resolved: # date resolved; leave empty while OPEN
resolution: # what was done — set only when actioned/declined
reference: # optional: path to saved session-local evidence
@@ -279,6 +343,20 @@ section or rule; for new skills, scope and key components.]
**Principle:** [The generalisable takeaway — the most important field.]
```
+**`parked` means decided, not pending.** Use it when an observation is sound
+but cannot be acted on until an external precondition is met — the scheduled
+task that produced it is disabled, the tool it describes is out of use, a
+dependency has not landed. A parked entry is OUT of the work queue: reviews
+must not re-escalate it, and the decision belongs in `status:`, not in a
+free-text note beside a `status: open` (a note nothing classifies on leaves
+the entry in the queue and it gets re-raised at every review). It is not
+resolved either, so it never archives — archival needs a resolved status plus
+a `resolved:` date. It stays in `observation-log/` indefinitely until either
+its `parked_until:` condition is met — set it back to `open` and queue it — or
+it is genuinely resolved. `parked_until:` is mandatory whenever status is
+`parked`: one line stating the condition, phrased so a later session can
+actually answer whether it has happened.
+
**Context preservation:** if an observation depends on session-local data
(uploads, API output), save that context into the workspace first and set
`reference:` to its path — an observation whose evidence dies with the
@@ -291,7 +369,8 @@ traceable to a real project. Full confidentiality layers:
`references/skill-authoring.md`.
**Changing an existing observation:** re-read that one file, edit only the
-frontmatter fields you are changing (`status`, `resolved`, `resolution`),
+frontmatter fields you are changing (`status`, `parked_until`, `resolved`,
+`resolution`),
never batch-rewrite the directory. Archival is a plain `mv` (below).
## Referencing Observations
@@ -345,8 +424,9 @@ friction, and if a user has said they always defer, suppress it entirely.
whole session (including discussion phases); logged silently; each follows
Issue → Improvement → Principle; each is typed; existing-skill items name
the section; no open-source Principle contains client-identifying info;
-every observation file carries `status:` (`status: open` at write time) —
-if any lacks one, add it now.
+every observation file carries `status:` (`status: open` at write time) and
+a non-empty `siblings_checked:` — if any lacks one, do the sibling check
+now and record it rather than back-filling the field with `none`.
## Acting on Observations
@@ -397,7 +477,9 @@ exactly as it is for logging.
| When do I observe? | The whole session, including feedback and reflection phases |
| How do I log? | Silently, immediately, as one file per observation named `NNNN-slug.md`; id = max(active, archive, `.id-floor`) + 1 |
| When do I surface? | End of session, or earlier if needed |
-| Status field? | Mandatory `status: open` frontmatter on every new observation; reviews treat a missing status as OPEN, never as nonexistent |
+| 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 |
| Citing an observation number? | From the `id:` frontmatter field (= the `NNNN-` filename prefix); never a `grep -n` line number; sanity-check against the known id 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` |
diff --git a/references/environments.md b/references/environments.md
index 039b919..8985e75 100644
--- a/references/environments.md
+++ b/references/environments.md
@@ -174,12 +174,36 @@ 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.
+**Cowork execution mode — cloud vs local is a user setting.** Cowork can
+run a session in two modes with materially different tool surfaces, and
+the platform's default moved to cloud (so installs upgraded from earlier
+versions may silently change mode — users experience that as the tool
+losing abilities). The switch: Settings → Cowork → "Run new tasks in the
+cloud" (plus a "Beta" button at session start). The tell: the
+local-filesystem permission tool (`allow_cowork_file_delete`) present in
+the tool surface ⇒ local session; absent ⇒ cloud. What differs:
+
+| Capability | Local session | Cloud session |
+|---|---|---|
+| Scheduled-task editing | desktop scheduled-task tools | draft instructions only; the user applies them on the Scheduled tasks page |
+| Deleting workspace files | permission gate (`allow_cowork_file_delete`) | no delete tool; rename-away only |
+| Git on the mounted workspace | with the delete grant | never — use a sandbox clone |
+| Locally-installed MCP servers | reachable | unreachable unless proxied via the desktop app |
+| Working-file persistence | workspace folder persists | files not handed back are not kept |
+| Runs while the computer is off | no | yes |
+
+Steps that must edit scheduled tasks, delete workspace files (review
+cleanup, keep-two pruning), or run git in the shared folder need a local
+session — treat that as a one-line precondition on those steps, and when
+reporting a mode-conditional limit, name the mode and the switch in the
+same breath.
+
| 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 |
+| Scheduled review | the app's scheduled tasks (cloud-default: run remotely; legacy local mode: run on the user's machine, only while it is on — see the execution-mode note above) | 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 |
diff --git a/references/migration.md b/references/migration.md
index fe42f89..8afe7cd 100644
--- a/references/migration.md
+++ b/references/migration.md
@@ -54,7 +54,17 @@ Run from the workspace folder. Python 3.8+, no dependencies.
1. **Make sure nothing else is writing.** Close parallel sessions and
check for a scheduled review due in the next hour. The conversion
reads `log.md` once; an entry appended after that moment would be
- lost from the new layout.
+ lost from the new layout. Know this probe's limit: it catches sessions
+ writing NOW, not sessions that will write LATER from a stale model of
+ the layout — a long-running session that appended to `log.md` hours ago
+ and is idle at migration time is invisible to any liveness check, and
+ its next append can recreate the old file (`cat >>` creates missing
+ targets). The rename in step 7 is therefore also a guard: it makes
+ stale appends fail their numbering pre-check loudly — provided
+ appenders treat an empty/missing probe as a stop signal rather than
+ defaulting the counter (see the log-write safety rules in SKILL.md).
+ After migrating, warn any known long-running session before it next
+ writes.
2. **Back up.** `cp skill-observations/log.md skill-observations/log.md.bak`
3. **Check-only pass over everything you have**, including archived logs
you do not intend to convert:
diff --git a/references/observation-log.md b/references/observation-log.md
index 9745538..4618714 100644
--- a/references/observation-log.md
+++ b/references/observation-log.md
@@ -18,6 +18,8 @@ skill-observations/
.id-floor # highest id ever issued; the counter never drops below it
log-YYYY-MM-DD.md # legacy monolithic archives from pre-3.0 installs, if any
cross-cutting-principles.md
+ skill-families.md # declared families: members, shared vs member-specific,
+ # coherence model (created when the first family is named)
last-review-date.txt
checkpoints.log # append-only acknowledgement markers (optional)
```
@@ -34,10 +36,13 @@ means this directory.
|---|---|
| `id` | Integer; matches the `NNNN-` filename prefix. Never reused. |
| `title` | Short descriptive title. |
-| `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. |
+| `status` | `open`, `actioned`, `declined`, `superseded` (a later observation found this one's mitigation does not work; `resolution` names it) or `parked`. A missing status is read as `open`, never as nonexistent. |
+| `parked` (status value) | Decided, but blocked on an external precondition: the entry is sound and no longer awaiting a judgement, so reviews drop it from the work queue and never re-escalate it. It is not resolved, so it does not archive — see Archival below. It stays in `observation-log/` until its `parked_until:` condition is met (set it back to `open`) or it is genuinely resolved. Recording a park as free text while leaving `status: open` does not work: nothing classifies on prose, so the entry stays in the queue and is re-raised at every review. |
+| `parked_until` | **Mandatory whenever status is `parked`**, empty otherwise. One line naming the condition that unparks the entry ("the X scheduled task is re-enabled"), phrased so a later review can answer yes or no without reopening the original decision. |
| `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. |
+| `siblings_checked` | **Mandatory, never blank.** Records that the sibling check happened and what it concluded: the family name, the members evaluated, and the verdict (propagated / instance-specific). `none` only where the target belongs to no family. Missing or empty = logged without a sibling check, and reviews count it as such. |
| `area` | The part of the skill or workflow concerned. |
| `date` | Date logged, `YYYY-MM-DD`. |
| `session_context` | What was being worked on. |
@@ -54,13 +59,121 @@ lines — never the bodies. This is what keeps the session-start scan and
the review's work-queue pass cheap once hundreds of observations exist:
```bash
-for f in skill-observations/observation-log/*.md; do
- awk 'NR==1 && /^---[[:space:]]*$/ {fm=1; next}
- fm && /^---[[:space:]]*$/ {print "---"; exit}
- fm' "$f"
+d=skill-observations/observation-log # re-derive in EVERY call
+n=$(ls skill-observations/observation-log/*.md 2>/dev/null | wc -l) # literal path: independent of $d
+parsed=0
+for f in "$d"/*.md; do
+ [ -e "$f" ] || continue
+ hdr=$(awk 'NR==1 && /^---[[:space:]]*$/ {fm=1; next}
+ fm && /^---[[:space:]]*$/ {exit}
+ fm' "$f")
+ [ -n "$hdr" ] && parsed=$(( parsed + 1 ))
+ printf '%s\n---\n' "$hdr"
done
+[ "$n" -gt 0 ] && [ "$parsed" -eq 0 ] && \
+ { echo "SCAN COMMAND BROKEN — $n files present, 0 headers parsed"; exit 1; }
```
+**Guard the read, not just the write.** A query that returns nothing is
+reporting on two possibilities at once — the data is absent, or the
+question never got asked — and only one of them is a finding. Guard every
+retrieval whose purpose is to prevent duplicate work with an independent
+existence check, because that failure is silent, self-confirming, and
+costs exactly the work the retrieval existed to avoid: a scan that
+produced no output has been read as "no relevant observations" while the
+log held dozens, and the same finding was then rediscovered and presented
+as new. Two properties make the check independent rather than decorative:
+the file count comes from a literal path, not from the variable the parse
+loop uses, and the assertion compares two numbers derived by different
+means. Empty output has to earn the status of evidence.
+
+**Snippets spanning several tool calls must re-derive their own paths.**
+Shell state does not carry between tool calls in most harnesses, so a
+variable defined in an earlier call is empty in the next one — and an
+empty path variable does not error, it expands the glob to `/*.md` and
+matches nothing. A filter silently becomes a match-nothing filter. Every
+snippet here defines the paths it uses in the same invocation that uses
+them; keep that property when adapting them.
+
+## Skill families and the sibling check
+
+Where several skills implement one idea — the same methodology for
+different tools, the same structure for different subjects, the same
+companion pattern for different base skills — the shared part drifts by
+default, because each member is maintained only in the sessions that use
+it and nobody looks at the set. Measured in real libraries: a rule that is
+pure epistemics, applicable to every member of a five-skill family,
+present in one of five; a rule whose own text says it "applies to any
+file-writing script, not specific to this one", present in one of four,
+while two of the other three break the same way. Nobody removed anything;
+some members simply grew and others did not.
+
+The `skill:` field is already a list, so multi-skill observations are
+expressible. The mechanism exists; the *check* does not — and a list field
+with no rule to populate it collapses to a single value. Four parts, in
+increasing cost:
+
+**1. Declare the families —** `skill-observations/skill-families.md`. One
+entry per family, with the members, and the load-bearing second column:
+**what is shared versus what is legitimately member-specific.** Without
+that column every observation looks like it might apply everywhere and the
+check generates noise instead of signal. Record each family's *coherence
+model* too, because it decides what "fixing drift" means:
+
+| Coherence model | Meaning | Fixing drift means |
+|---|---|---|
+| `synced-duplicates` | each member is self-contained (e.g. published standalone) and shared sections are kept in sync | edit every member |
+| `shared-core` | one skill holds the common material; the others load it as a companion | edit the core once, check the pointers |
+
+```markdown
+## [family name]
+**Members:** skill-a, skill-b, skill-c
+**Coherence model:** synced-duplicates | shared-core
+**Shared:** [the material every member should carry]
+**Member-specific:** [what legitimately differs, and why]
+```
+
+Duplication is sometimes correct and absence is not always drift — that is
+exactly what the shared/member-specific split records.
+
+**2. Logging-time check** (SKILL.md, "How to Log"). Before writing an
+observation, resolve the target against the registry. If it belongs to a
+family, evaluate each sibling and either add it to `skill:` or state in the
+body why it does not apply. **No registry yet, or the target is not in
+it?** The check is still required: scan the installed skill names for a
+shared prefix, suffix or subject (`*-extras` companions, per-tool
+implementations of one method, per-subject dossiers), do the evaluation
+against whatever set that yields, and propose the registry entry. Two
+cheap tests decide the verdict:
+
+- Could this sentence survive having the tool's, client's or subject's
+ name removed? If yes it belongs to every sibling.
+- Does the rule declare its own generality ("this applies more broadly",
+ "not specific to X")? That phrasing is the cheapest possible propagation
+ signal and needs a mechanism that notices it — treat it as an automatic
+ multi-skill flag rather than a stylistic aside.
+
+**3. Record the verdict** in `siblings_checked:`. The field exists because
+the two states of a one-entry `skill:` list — siblings evaluated and
+correctly excluded, versus siblings never considered — are byte-identical,
+so nothing downstream can distinguish them: a review cannot flag
+under-scoped entries and a drift audit cannot tell a decision from an
+oversight. Recording the judgement does not make the judgement better; it
+makes its *absence* visible, which is the only property that lets anything
+enforce it. The instruction alone is demonstrably not enough — four
+observations in one session were logged under-scoped by an author who had
+written the propagation rule earlier in that same session. Because the
+field is frontmatter, the cheap scan above can report "N observations
+logged without a sibling check" without reading a single body. Where a
+skill already relies on "the write is the enforcement", a new rule that
+writes nothing is the odd one out and should be suspected on that basis.
+
+**4. Propagation and drift audit at review time** — see
+`weekly-review.md` (Steps 3 and 4). The first three parts only cover what
+happens from now on; the mechanical audit is the only one that catches
+drift predating the rule or introduced by a skill authored outside the
+log. A registry can go stale; a grep cannot.
+
## Assigning an id
The id is the highest of three values, plus one: the highest numeric
@@ -88,6 +201,33 @@ has failed — and make any command that derives a number from a file fail
loudly on an empty result, because a command that fails to empty rather
than to error may never announce that it failed at all.
+**Run the snippet once per file when writing a batch.** Appending several
+observations in one session that may overlap a scheduled review or another
+writer means N separate id races, not one. Pre-computing a base and
+hardcoding sequential numbers (e.g. into a multi-entry heredoc) collapses
+those N independent max-checks into a single stale read — a parallel
+writer's id issued between the check and the write turns the whole batch
+into duplicates. Resolve each entry's id against the live directory at the
+moment of its own write, and run a post-write per-number count when
+overlap is plausible.
+
+**An empty probe over a populated log is a migration signal, not a zero.**
+If a structure you wrote to earlier in the session has vanished — the
+directory is missing, the id extraction returns empty where ids existed —
+stop and re-probe the layout (`observation-log/` present? a
+`log.md.migrated` tombstone?) before writing anything. A parallel session
+may have migrated or reorganised the storage; a writer's model of shared
+mutable state is only as fresh as its last read. Append paths must fail
+loudly on a missing target, never silently create it — auto-creation
+converts the signal into corruption (see `migration.md` on coexistence
+with live sessions). **This rule covers reads as well as writes.** A
+retrieval that comes back empty over content you know exists — the
+session-start scan, a filter for observations naming the current skills, a
+grep for a prior finding — is the same signal wearing different clothes,
+and it is more dangerous, because a broken read produces no error and its
+result ("nothing relevant") is a legitimate possible answer. Re-probe
+before acting on it (see "Guard the read, not just the write" above).
+
### Why this is the entire concurrency story
Because every observation lives in its own file, a new observation never
@@ -152,6 +292,15 @@ file, never in session memory, so it holds across parallel and subsequent
sessions. A resolved file with no readable `resolved:` date gets today's
date written to that field instead of being archived.
+**`parked` is exempt from archival — deliberately.** It is the one status
+that means "decided" without meaning "resolved", so it satisfies neither half
+of the gate: not in the resolved set, and it carries no `resolved:` date. Do
+not infer from "it has left the work queue" that it should be archived, and do
+not stamp it with a `resolved:` date to tidy it away — a parked entry has to
+stay in `observation-log/` for the review to re-check its `parked_until:`
+condition (`weekly-review.md`, Step 1). It archives only once it is actually
+actioned, declined or superseded.
+
Archival is a set of plain `mv` operations, one file at a time. Moving one
resolved file cannot affect any other observation. Compare a `resolved:`
date to today portably (ISO dates sort lexically):
diff --git a/references/skill-authoring.md b/references/skill-authoring.md
index 8d9713b..56243a0 100644
--- a/references/skill-authoring.md
+++ b/references/skill-authoring.md
@@ -120,6 +120,29 @@ skills is a separate, lower-priority job — the default binds immediately
for new work and for any revision substantial enough that the body is
being rewritten anyway.
+**The load trigger is a new failure point the monolith did not have.** A
+split delivers its saving only if the reference file is actually fetched
+when its episode fires. When it isn't, the agent improvises the episode
+from the lean core, behaviour degrades, and nothing errors — the content
+is all still there, so no check on the content can catch it. So the trial
+criteria for any split must test the LOADING, not just the content split:
+
+1. Every pointer is an instruction carrying its trigger ("load X when Y"),
+ not a description of what X contains.
+2. During the trial, each episode is observed firing in a real session and
+ the reference load confirmed — one criterion per episode, so an episode
+ that never fired is visibly unproven rather than assumed fine.
+3. A missed load is a blocking finding, not a note. The fix is structural
+ enforcement — a checklist step the episode cannot complete without —
+ rather than firmer wording, per this file's own pre-flight principle.
+
+Add a runtime backstop as well: instruct the agent to log an observation
+whenever it notices an episode was handled without its reference loaded.
+Without it the negative case has no recording channel, and the trial
+cannot distinguish "not yet observed" from "not happening" (see Trial
+design below, which governs how such a trial must be instrumented so
+naming the trigger does not become the intervention).
+
## Documenting an external tool surface
Applies to any skill that documents a surface someone else owns — an MCP
@@ -271,6 +294,21 @@ in layers so any one catches what others miss:
citations with a plain description of the analysis they came from.
Test: "can the recipient open or verify every reference in this
document?"
+7. **Cross-skill reference scan (published skills)** — a skill written
+ inside a personal library accumulates pointers into sibling skills
+ ("see {other-skill}'s Hyperlink markers"). Inside the library they
+ help; published, they dangle — the reader cannot resolve them, and
+ they leak the existence and naming of the author's internal tooling.
+ A published skill must either work standalone or declare its
+ dependency on a specific *published* open-source companion. Scan for
+ references to other skills by name; each hit is (a) a declared
+ published companion — keep, ideally with a repo link; (b) inlineable —
+ pull the needed rule into the text; or (c) internal tooling — rephrase
+ to capability language ("whatever presentation tooling the subagent
+ runs"). Make it mechanical in any publishing workflow: grep the
+ content against the list of installed-but-unpublished skill names.
+ Every pointer in a published document must resolve in the reader's
+ world, not the author's.
## Timelessness — shared skills must not capture current state
@@ -288,6 +326,22 @@ present-tense state verbs near infrastructure nouns. (Internal client
dossiers are exempt: they live in a maintenance loop where current-state
capture is the point.)
+**First-party observation dates: prefer verification-based phrasing in
+published skills.** Rule (b) above — dated facts stay — holds for
+third-party-published facts (vendor changelogs, API announcements,
+calendar-date examples). It does NOT extend to dates that reveal when the
+AUTHOR observed, verified or reviewed something ("as of April 2026", "a
+June 2026 re-check"): in a published artefact those are metadata about
+the author's process, leak the internal review cadence, and read as
+staleness markers. Replace them with verification-based phrasing — "at
+last verification", "a later re-check found" — plus an explicit
+instruction for how to re-verify against the live source; readers need to
+know how to re-check a claim, not when the author last did. The same rule
+covers commit messages on published repos. And make the check mechanical:
+this rule was violated during fluent drafting while fully documented, so
+any publishing workflow must grep public artefacts for month-name + year
+patterns before committing — a scan, not a reminder.
+
## Editing skills — always start from the live file
1. The live file is the authoritative source: in Claude Code,
@@ -324,6 +378,15 @@ capture is the point.)
absorbed earlier changes (e.g. the user installed a staged update
mid-session), not that edits vanished. Treat unexpected diff-stat
direction as a baseline-moved signal, not an error in the edits.
+ Recorded measurements obey the same rule: when a handoff records a
+ test-merge result (a conflict count, a diff-stat), record it WITH the
+ base commit or install date it was measured against, and re-run the
+ test merge against the current base before planning around it — treat
+ the old result as a pointer to where conflicts will cluster, not as a
+ count. When a change's whole purpose is to make a class of machinery
+ unnecessary, every conflict hunk in that class resolves the same way
+ (take the change's side), so classification matters more than the
+ count.
5. Stage every update to
`[workspace folder]/skill-updates/[date]/[skill-name]/` — the FULL
skill directory (SKILL.md plus references/, scripts/, assets/ where
@@ -385,6 +448,12 @@ capture is the point.)
`chmod -R u+w` on the staged path. A workaround documented as
equivalent to another must be re-verified per failure surface — an
option that works for single files can still fail for directory trees.
+ Use the exact snippet in `weekly-review.md` Step 5 rather than
+ reconstructing it: strip the live prefix **without** a trailing slash so
+ the top-level directory maps to the staged root, and keep `IFS=` on the
+ read loops for paths containing spaces. Both are easy to get wrong from
+ this description alone, and the resulting phantom directories cannot be
+ deleted on a mount that denies `unlink`.
7. Match process rigour to the change: complex/open-source/uncertain design
→ use the skill-creator if available; internal skills with requirements
already established in conversation → write directly, flagging
@@ -410,6 +479,23 @@ a two-tier check:
across newlines), not real losses.
4. Word-count sanity check per file.
+**Cross-reference-dense monoliths: keep section numbers global, add a
+map.** When the document being split is dense with internal
+cross-references (§13.6, §8.3.3b …) that will span the new file set, do
+NOT renumber per file — renumbering breaks every reference or forces a
+risky rewrite pass. The verified pattern (a ~5k-line skill split into a
+core + 8 reference files with zero content loss): keep the original
+section numbers global across the whole file set; move content by
+verbatim line-range extraction so nothing is retouched; add a "Section
+map" table to the core resolving §N → file; give each reference file a
+one-line header pointing back to the map. The identifier space is an
+interface — keep it stable across the split and add a resolution layer,
+rather than renumbering content to match its new container. Corollaries:
+the map's load triggers must be phrased as mandatory ("read X before
+running Y"), and a core-size overshoot past the ~500-line guideline is
+acceptable when the overage is genuinely per-invocation principle content
+— record that reasoning where the next editor will see it.
+
One tier alone either misses losses (substance-only) or cries wolf
(exact-only). **The checker is code too, and the least-tested code in the
pipeline** — written once, for one run, never exercised against a fixture.
@@ -449,6 +535,45 @@ brief. Determine type early: open-source → strip and generalise; internal →
include specifics freely; uncertain → default open-source and let the user
add internal detail afterwards.
+**First decide whether the skill joins a family, and if it does, read the
+siblings before drafting.** Intent → interview → draft is right for a
+genuinely new skill and wrong for one joining an existing family (the
+registry is `skill-observations/skill-families.md`; see
+`observation-log.md`), because the family already contains most
+of the answer, distributed unevenly across its members. Drafting from the
+current session's experience and consulting the siblings only for the
+tool-agnostic parts you happen to remember produces a third divergent
+member: observed, a new skill carried a category neither sibling had and
+omitted two that one sibling had, taking a family from two inconsistent
+members to three. The cost is asymmetric and front-loaded — reading two
+siblings first is minutes; reconciling three divergent skills afterwards
+means re-reading all of them, deciding per rule whether each divergence is
+intentional, and editing in three places, with the divergences hardest to
+spot precisely because each skill reads as coherent on its own.
+
+Read every sibling in full, draft against them, and produce a short
+**reconciliation note** as part of the deliverable, not as optional
+homework: (a) content taken from the siblings; (b) content the new skill
+adds that the siblings should also get — logged as observations naming
+those siblings, never silently absorbed; (c) sibling content deliberately
+omitted, with the reason. The note is what converts a new family member
+from a source of drift into a correction of it. Then update the registry
+with the new member.
+
+Two corollaries. Where the family's shared material is substantial, the
+pre-draft read is the natural moment to ask whether it should be extracted
+into a core skill the members load (`shared-core`) rather than restated a
+third time — the question is cheapest to answer before the third copy
+exists. And the general form, which reaches well past skills: **a new
+instance is the best available audit of the existing set.** Drafting it
+forces the shared material to be restated from scratch, and every place
+the fresh statement differs from a sibling's is either an improvement or a
+gap. Whenever a new instance joins a set of parallel implementations, read
+the set first — not because the new instance needs their content, but
+because it is the only moment when the differences between all of them are
+being actively thought about by anyone. Skipping the comparison wastes the
+audit and creates the divergence.
+
## Retiring skills — harvest before you retire
An ending engagement is a harvest trigger, not only a cleanup trigger.
diff --git a/references/weekly-review.md b/references/weekly-review.md
index da71bac..045ae37 100644
--- a/references/weekly-review.md
+++ b/references/weekly-review.md
@@ -131,12 +131,12 @@ no `status` field at all.** Concretely:
1. Enumerate every file in `observation-log/` — the directory listing is the
authoritative list of entries.
2. For each file, read the `status` field from its frontmatter. Treat a
- missing, blank, or any status other than `actioned`, `declined` or
- `superseded` as OPEN.
+ missing, blank, or any status other than `actioned`, `declined`,
+ `superseded` or `parked` 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` /
- `superseded`)
- files. A grep on an optional field silently drops every file missing
+ `superseded`) and the `parked` files. A grep on an optional field
+ silently drops every file missing
that field — the review then confidently reports a clean backlog while
untriaged observations are skipped.
@@ -145,6 +145,18 @@ no `status` field at all.** Concretely:
counts differ, the delta is statusless files — surface and triage them (as
OPEN) rather than proceeding as if the backlog were clean.
+**Parked entries: excluded from the queue, not from view.** `status: parked`
+means the observation was judged sound but is blocked on an external
+precondition recorded in `parked_until:` (SKILL.md, How to Log). It is a
+decision, so it must NOT be re-escalated — but it is not resolved, so it also
+never archives and stays in `observation-log/`. Two things happen to it in
+every review, while the frontmatter is already in hand: (a) re-check each
+`parked_until:` condition against the current state of the world, and where it
+has been met, set the entry back to `status: open`, clear `parked_until:`, and
+carry it into this review's queue; (b) list every still-parked entry in the
+Step 8 summary in ONE LINE each — id, title, unpark condition — so a parked
+backlog stays visible without re-entering the work queue.
+
Also read all active cross-cutting principles. If there are no OPEN
observations and no outstanding principles: report "no open observations
or outstanding principles", update the timestamp, and stop.
@@ -188,6 +200,19 @@ observation may appear in both. Then, before anything is presented:
earlier one's mitigation does not work, mark the earlier one
`status: superseded`, `resolution: "by #N"`, and carry only the later
one forward.
+- **Family propagation.** An observation whose `skill:` list carries more
+ than one entry is not actioned until every listed skill has been updated
+ or explicitly dispositioned — partial application is the default failure
+ and it is silent, because the observation gets marked `actioned` on the
+ strength of the first skill it touched. Record the per-skill disposition
+ in `resolution:` and carry it into the Family coherence block of the
+ summary. Also check `siblings_checked:` while the frontmatter is in
+ hand: an entry with the field missing or blank was logged without the
+ check, so before actioning it, do the check now (registry, tests and
+ fallback in `observation-log.md`) and widen `skill:` if it was
+ under-scoped. Count these — "N observations logged without a sibling
+ check" is a health metric of the logging practice, not a per-entry
+ nuisance.
- **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
@@ -218,22 +243,72 @@ pointer exists on BOTH sides — relay it to that session directly, or
surface it to the user as a handoff item. A one-way note leaves the entry
pointing at a decision that may be settled without it.
-**Step 4 — cross-check principles.** Flag every skill that doesn't yet
-comply with each active cross-cutting principle.
+**Step 4 — cross-check principles, and audit the families for drift.**
+Flag every skill that doesn't yet comply with each active cross-cutting
+principle.
+
+Then run the **family drift audit**: for each family in
+`skill-observations/skill-families.md`, grep every member for each rule
+listed as shared and surface the gaps. It is mechanical and takes minutes,
+and it is the only part of the family mechanism that catches drift
+predating the rule or introduced by a skill authored outside the log — a
+registry can go stale, a grep cannot. Two disciplines make the output
+usable: judge each gap against the family's `Member-specific` column
+before calling it drift (absence is sometimes correct), and resolve it
+according to the family's coherence model — `synced-duplicates` means
+editing every member, `shared-core` means editing the core and checking
+the pointers. Where the audit finds a rule missing from members that need
+it, log it as an observation naming all of them rather than fixing it
+silently, so the correction is visible to the next review. If no registry
+exists yet, build one from this pass: the audit's grouping IS the first
+draft of the registry. Cadence is monthly rather than every review unless
+the library has grown or a new family member was authored since the last
+audit — a new member always warrants one (see `skill-authoring.md`, New
+skills).
**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"
+# Stage the FULL skill directory (SKILL.md + references/, scripts/, assets/),
+# not SKILL.md alone. From a read-only mount, mkdir + per-file cp + chmod is
+# the only verified sequence for trees (cp -R and cp --no-preserve=mode both
+# fail creating files inside copied subdirectories — see skill-authoring.md
+# editing rule 6):
+live="<absolute path to the live skill directory, no trailing slash>"
+s="[workspace folder]/skill-updates/[today]/[skill-name]"
+find "$live" -type d | while IFS= read -r d; do mkdir -p "$s/${d#$live}"; done
+find "$live" -type f | while IFS= read -r f; do cp "$f" "$s/${f#$live}"; done
+chmod -R u+w "$s"
+diff -rq "$live" "$s" # must be identical before any edit
# 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. **Presence check before writing anything:** grep
+Two details in that snippet are load-bearing and were both wrong in an
+earlier version. Strip the prefix **without** a trailing slash — `${d#$live}`,
+not `${d#$live/}`. The pattern with the slash strips correctly for every
+subdirectory and fails on the one path that has no trailing slash to match:
+the top-level directory itself. `mkdir -p` then rebuilds the entire absolute
+live path *inside* the staged directory, once per skill. And keep `IFS=` on
+both `read` loops — workspace paths routinely contain spaces, and without it
+the loop mangles them.
+
+**If the `diff` reports anything, do not edit and do not delete.** On a mount
+that denies `unlink`, `rm -rf` and `rmdir` both fail on the unwanted paths, so
+the obvious cleanup is unavailable and the step stalls. Rename them into a
+holding folder instead — the mount permits rename — then re-run the diff:
+
+```bash
+mkdir -p "[workspace folder]/_to_delete/<date>-staging-artefacts"
+mv "<unwanted path>" "[workspace folder]/_to_delete/<date>-staging-artefacts/<name>"
+```
+
+Requesting the delete permission for the workspace folder also works where
+that tool exists, and is worth doing anyway before the prune in Delivery.
+
+The sequence exists 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. **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
@@ -251,8 +326,9 @@ file as base, staging, diff-before-overwrite).
apply-phase spans more than ~3 skills or ~10 observations, delegate Step 5
to parallel subagents clustered by skill rather than applying everything
in the main session. Brief each subagent with: the observation ids (files) to
-read, the live-mount path, the staging path, the
-mkdir/per-file-cp/`chmod -R u+w` seeding sequence, the integration logic
+read, the live-mount path, the staging path, the seeding sequence **as the
+verbatim snippet from the Step 5 block above** (never described in prose —
+its two failure modes are both reconstruction errors), the integration logic
for observation interdependencies (which observation supersedes, refines,
or folds into which — the parent must state this per cluster explicitly,
or subagents applying observations sequentially produce patch-on-patch
@@ -262,6 +338,41 @@ status. Reserve status marking and archival for the parent session. The principl
skills but the bookkeeping must have one owner — split the work along
that seam.
+**The orchestrator owns a merge-time validation pass.** Splitting work
+across parallel workers splits the verification surface with it, and the
+split is not clean: local checks partition neatly, global invariants do
+not partition at all. Any property defined over the whole deliverable
+becomes unverifiable the moment the work is divided, and stays
+unverifiable no matter how rigorous each worker is — every subagent can
+return a provably clean batch and the merged artefact still be wrong.
+Assume that everything the workers could not see is exactly where the
+defects are. So after the returns are in, and before anything is marked
+actioned or delivered, re-verify globally over the combined result. Three
+checks, at minimum:
+
+1. **Cross-slice duplicates and collisions** — two subagents handed the
+ same source signal will independently produce near-identical output,
+ and neither self-check can fire because neither can see the other.
+ Here that includes the same rule landing in two skills' sections with
+ divergent wording, and two staged copies of one skill in the same
+ day's folder.
+2. **Vocabulary and convention consistency across slices** — where the
+ brief was under-specified, each worker resolved it locally,
+ defensibly, and differently. The inconsistency is invisible inside any
+ one slice and obvious across the set.
+3. **Conformance of the combined totals to the plan** — every observation
+ routed, every skill in the plan staged, counts matching, no
+ multi-skill observation applied to only some of its listed skills
+ (Step 3, Family propagation).
+
+Corollary for the brief: require every delegated agent to close with a
+"decisions the brief did not cover" section. That section is how brief
+defects are discovered — an agent that silently resolves an ambiguity
+converts a fixable specification bug into an invisible inconsistency. And
+when two independent agents flag the same ambiguity, the brief is the
+defect, not the agents: fix the brief and re-issue rather than
+adjudicating the two outputs.
+
**Step 6 — mark ACTIONED.** In each applied observation's frontmatter set
`status: actioned`, `resolved: YYYY-MM-DD` (today), and
`resolution: Applied to [skill-name] (weekly review)` — editing only those
@@ -286,6 +397,16 @@ Updated skills ([N] observations, [N] principles applied):
### Observations Actioned
[numbers and titles]
+### Family coherence
+[each multi-skill observation: applied to all listed skills, or partially
+applied with the outstanding skill named — never left implicit]
+[drift audit: gaps found per family, and how each was resolved]
+[N observations logged without a sibling check]
+
+### Parked
+[one line each: #id — title — unparks when: [condition]; plus any entry
+whose condition has been met and was returned to the queue this review]
+
### Skipped (needs manual review)
[items with reasons]
```
@@ -294,8 +415,8 @@ Wait for the user to acknowledge before other work.
## Constraints
-- Don't modify observation files beyond their `status`, `resolved`, and
- `resolution` frontmatter fields.
+- Don't modify observation files beyond their `status`, `parked_until`,
+ `resolved`, and `resolution` frontmatter fields.
- Don't create new skills in a review — note candidates for the user to
action via the skill-creator.
- Unsure how to integrate an observation → skip it and say so in the
@@ -341,9 +462,23 @@ until the user installs it. **Keep-two rule:** for any skill, keep only
the two most recent date directories under `skill-updates/`; delete
older ones.
+**The dated staging folder is multi-writer.** `skill-updates/<date>/` is
+a namespace keyed only by date, so a manual session and a scheduled run
+can both write into the same day's folder (observed minutes apart). Any
+producer should assume it is not the only writer that day: before staging
+a skill, check whether that day's folder already holds a staged copy of
+the same skill — if it does, diff and integrate rather than overwrite,
+and say so in the manifest. Any consumer choosing the "newest staged
+version" (e.g. the publishing pipeline's freshness gate) must resolve it
+by content, not by assuming a single authoritative producer — if two
+same-day copies of one skill diverge, surface the conflict rather than
+letting mtime decide. The manifest entry (below) is the provenance
+marker: who staged it, from which run, applying what.
+
**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
+directory, the producer (which session or scheduled run staged it), 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