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.

Adversarial-review fixes + restructure docs

Eoghan Henn0bb18f4e8768
diff --git a/README.md b/README.md
index db06a92..436f343 100644
--- a/README.md
+++ b/README.md
@@ -2,17 +2,17 @@
## The meta-skill that builds and improves all your skills, including itself.
-In the first three months of using this meta-skill, it **logged and applied over 600 improvements across my 40 skills**, most of which were themselves created based on observations by the meta-skill.
+In the first six months of using this meta-skill, it **logged and applied over 900 improvements across my 50 skills**, most of which were themselves created based on observations by the meta-skill.
This meta-skill, called "task-observer", is a practical application of the [Augmented Expertise](https://www.rebelytics.com/augmented-expertise/) methodology, an AI framework for knowledge workers. However, users have reported successful integrations into their Hermes and Openclaw setups, so it works equally well with autonomous agents.
## Why you should use this meta-skill
-Creating skills is powerful but time-consuming. But the skills that do get built stay frozen: they never learn from how you actually use them.
+Creating skills is powerful but time-consuming. The skills that do get built stay frozen: they never learn from how you actually use them.
Task Observer fixes those problems. It's a meta-skill that runs alongside your work, watches what you do, and does two things:
-1. **Creates new skills for you** — it spots repeating patterns in your work and drafts skill candidates automatically, so you get skills without the upfront effort of writing them from scratch
+1. **Identifies new skills for you** — it spots repeating patterns in your work and flags them as skill candidates, then helps you build them, so you get skills without staring at a blank page
2. **Improves your existing skills** — it notices corrections you make, preferences you express, and gaps in your current skills, then suggests specific updates
You work normally. It watches. Your skill library grows and gets better over time.
@@ -43,11 +43,25 @@ You don't need to be a developer. If you use skills in any capacity and you want
If you're a builder, you can easily integrate this skill, or even just the methodology, into your existing setup. Just point your agent at the repo and let it guide you towards the ideal implementation for your specific setup.
-The task observer is particularly valuable if you've built multiple skills and want a systematic way to maintain and improve them without manually auditing each one. But it's equally useful if you don't have any skills yet: the observer will start identifying and drafting them for you.
+The task observer is particularly valuable if you've built multiple skills and want a systematic way to maintain and improve them without manually auditing each one. It's also useful if you don't have any skills yet: the observer will start identifying skill candidates for you and help you build them.
+
+One honest boundary: the formal observation log and review cycle pay off most as your skill library and usage grow — many skills, parallel sessions, scheduled reviews. If you run a small setup with a handful of skills, your AI system's built-in memory features may cover much of the same ground with less overhead, and editing a skill directly is quick. The observer's value compounds with scale: adopt it early if you expect your library to grow, or come back to it when direct editing stops feeling manageable.
## How it works
-**The best way to get started with this work setup in any environment is probably to grab the skill, readme and user guide, feed them to your AI and let it guide you towards the best setup for your particular environment** - No matter which AI system you use. As long as skills are supported, you should be able to use this approach with some adjustments. And even without skills, the methodology should work with any other type of knowledge base that your AI has access to.
+**The best way to get started with this work setup in any environment is to grab the skill, readme and user guide, feed them to your AI and let it guide you towards the best setup for your particular environment** - No matter which AI system you use. As long as skills are supported, you should be able to use this approach with some adjustments. And even without skills, the methodology should work with any other type of knowledge base that your AI has access to.
+
+## Installation
+
+The skill is a small bundle: `SKILL.md` plus three files in `references/` that are loaded on demand (this keeps the always-loaded part lean). Installing only SKILL.md works, but runs degraded — the skill will tell you which files are missing.
+
+**Get the files:** download the repo as a ZIP (Code → Download ZIP) or clone it, and keep `SKILL.md` and the `references/` folder together.
+
+**Claude (web interface, desktop app, mobile app, Cowork):** put `SKILL.md` and `references/` into one folder, zip that folder, and upload it via Settings → Capabilities. The skill is then available in all chats and in Cowork tasks.
+
+**Claude Code:** place the folder at `.claude/skills/task-observer/` (project-level) or in your user-level skills directory, preserving the `references/` subfolder.
+
+**Other systems:** keep the folder structure intact wherever your platform expects skills, and let your AI guide you (see "How it works" above).
## Claude environment notes
@@ -65,7 +79,7 @@ The task observer is particularly valuable if you've built multiple skills and w
- Claude Code in the desktop app
**Expected to work but untested:**
-- Claude Code without desktop app — the methodology and format should translate directly, but I haven't verified it in practice - users have reported seamless experiences with this.
+- Claude Code without desktop app — the methodology and format translate directly - users have reported seamless experiences with this.
**Versions for other environments created by users:**
- Codex version by AllstarGER: [https://github.com/AllstarGER/one-skill-to-rule-them-all](https://github.com/AllstarGER/one-skill-to-rule-them-all)
@@ -82,7 +96,7 @@ If you try it in another environment, please let me know how it goes. Issues and
1. Read the user guide at [https://github.com/rebelytics/one-skill-to-rule-them-all/blob/main/USER-GUIDE.md](https://github.com/rebelytics/one-skill-to-rule-them-all/blob/main/USER-GUIDE.md)
2. Give the content of this repo (skill, readme and user guide) to the AI system of your choice and let it guide you towards the ideal configuration for your individual setup.
3. Make sure that the skill loads in all sessions where it's needed (I solved this via an instruction in my CLAUDE.md file)
-4. Try to remember to ask "Any observations logged?" when you finish a session (I do this every time I archive a session). Often, the skill then finds additional improvement potential that it didn't log before.
+4. Try to remember to ask "Any observations logged?" when you finish a session (I do this every time I archive a session). Sometimes, the skill then finds additional improvement potential that it didn't log before.
5. Schedule a recurring review session that applies all open observations. Mine runs Monday, Wednesday and Friday morning, but you should adapt this to your needs.
## Contributing
diff --git a/SKILL.md b/SKILL.md
index 9e04a83..c35a23b 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -47,16 +47,39 @@ configuration pins it elsewhere.
behaviour, handoff-doc mode for storage-less environments, user-facing
docs pointers. Load for setup questions or when there's no filesystem.
+These loads are mandatory steps, not suggestions: when an episode fires
+(review triggers → weekly-review; creating/editing a skill →
+skill-authoring; setup/no-filesystem → environments), load the file before
+proceeding — never improvise the episode from this core file. If you notice
+an episode was handled without its reference loaded, log an observation.
+
+**Bundle manifest:** this skill consists of `SKILL.md` plus the three
+reference files listed above. If a referenced file is missing, the install
+is incomplete: proceed using the rules in this file, tell the user which
+files are missing, and point them to the full bundle at the canonical
+source (for the published version, the repository in the attribution
+above).
+
## Session Start Protocol
1. If `skill-observations/log.md` or `cross-cutting-principles.md` don't
exist, create them (templates below / in the principles section of
- `references/skill-authoring.md`).
+ `references/skill-authoring.md`). Also create
+ `skill-observations/last-review-date.txt` containing the literal value
+ `never` if it doesn't exist — never write a date into it at setup; a
+ date means a review actually ran.
2. Scan OPEN observations and active principles; hold them in awareness,
don't surface unprompted.
-3. Read `skill-observations/last-review-date.txt`. Missing or older than 7
- days → load `references/weekly-review.md` and run the review before the
- user's task. Otherwise proceed.
+3. Read `skill-observations/last-review-date.txt`. The value carries the
+ truth: a date = when the last review actually ran; `never` = no review
+ has run yet. A missing file is abnormal (step 1 creates it) — recreate
+ it with `never`, don't invent a date. If the value is `never` or older
+ than 7 days AND there are OPEN observations: in an interactive session,
+ offer the review in one line ("the observation backlog hasn't been
+ reviewed [in N days / yet] — run it now, or carry on with your task?")
+ and proceed with the user's task unless they opt in; never gate their
+ work on the review. Only a scheduled/autonomous run loads
+ `references/weekly-review.md` and runs the review unprompted.
4. Once per session: if no CLAUDE.md (or equivalent) activation instruction
for this skill exists, briefly suggest adding one (see
`references/environments.md`). Skip if already configured.
@@ -166,9 +189,15 @@ act of memory.
3. *Post-write verification:* after appending, count occurrences of the
number; if >1, a parallel writer collided between check and write —
- renumber your entry (the last occurrence) to max+1 via `sed`. Pre-write
- catches stale reads; only a post-write check catches the race. The
- pattern for shared logs written by parallel agents is
+ renumber YOUR entry to max+1. Identify your entry from your own append
+ operation (capture the file's line count immediately before and after
+ your `>>`; your entry starts at the old line count + 1) — do NOT
+ re-grep and take the last occurrence, which may be a colliding writer's
+ entry appended after yours. After any `sed` renumber, re-read the
+ affected line to confirm the substitution actually took effect — a
+ line-addressed `s///` whose target shifted finds no match and still
+ exits 0. Pre-write catches stale reads; only a post-write check catches
+ the race. The pattern for shared logs written by parallel agents is
check-then-act-then-verify.
**Log-write safety — never let a mutation span entry boundaries:** When
@@ -180,7 +209,19 @@ 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
+1. **Re-read and merge immediately before any write-back.** Any full-file
+ rewrite (archival, renumbering, reassembly from chunks) built from a
+ snapshot destroys whatever concurrent sessions appended after that
+ snapshot — the write-back succeeds, the victim gets no error, and the
+ loss is invisible. This has happened in production: a parallel session's
+ write-back erased two entries appended minutes earlier, hours after the
+ exact failure mode had been documented. So: take the snapshot, prepare
+ the mutation, then — immediately before writing — re-read the live log
+ and diff against the snapshot. If new entries appeared, merge them into
+ the write-back (or rebuild from the fresh read). Never write back a
+ stale snapshot.
+
+2. **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.
@@ -188,20 +229,32 @@ bounded entry at a time and verify every mutation.
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. **Assert a structural invariant against the LIVE pre-write file.** Count
+ `### Observation` headers in the live file immediately before writing and
+ again after. For a status-only edit the count MUST be unchanged; for
+ archival or append it must change by exactly the expected number. The
+ baseline must be the live file at write time, NOT your session's earlier
+ snapshot — an invariant computed against a stale snapshot validates that
+ you wrote what you intended while still destroying what others wrote in
+ between. Fail loudly if the count is off.
-3. **Keep the pre-write backup.** Copy `log.md` before any programmatic
+4. **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.
+5. **Verify your entries SURVIVED, not just that they were written.** A
+ successful append proves nothing an hour later — a concurrent session's
+ write-back can silently delete it, and only the destroying session gets
+ any signal (none). Before surfacing observations at session end, grep
+ the log for every entry number this session wrote and confirm each still
+ exists exactly once; re-append any that are missing (with fresh numbers)
+ and log a meta-observation about the collision.
+
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.
+entry at a time; every rewrite must be based on a fresh read, verified by a
+structural invariant against the live pre-write file, and backed up. Writers
+must verify survival, not just successful writes — in a concurrent erase,
+the victim gets no error.
**Format and insertion:** always `### Observation NNN:`, always appended to
the END of the log, never mid-file, never alternative ID formats. One
@@ -275,12 +328,25 @@ requirements (attribution, licensing, structure): `references/skill-authoring.md
## Archival on Write
-On every log write, first move entries that were already ACTIONED or
-DECLINED in a *previous* session to
+On every log write, first move already-resolved entries to
`skill-observations/archive/log-[YYYY-MM-DD].md` (preserving the log header
-in the archive). Entries resolved in the *current* session stay in the
-active log for one more cycle. The active log keeps its header, status key,
-all OPEN entries, and the just-resolved ones.
+in the archive). "Already resolved" is decided by date, read from the file:
+a resolved status MUST record its date — `ACTIONED (YYYY-MM-DD) — [what was
+done]` / `DECLINED (YYYY-MM-DD) — [reason]` — and archival moves only
+entries whose recorded date is before today. Entries resolved today stay in
+the active log until the next day, no matter which session resolved them:
+the grace period lives in the file, never in session memory, so it holds
+across parallel and subsequent sessions. A resolved entry with no readable
+date gets today's date added instead of being archived. The active log
+keeps its header, status key, all OPEN entries, and the same-day-resolved
+ones.
+
+Archival is a read-filter-rewrite — the highest-risk mutation the log
+undergoes, and the one that has destroyed concurrent appends in production.
+It MUST follow the full Log-write safety sequence above: backup, re-read
+the live log immediately before writing back and merge any entries that
+appeared since the snapshot, then verify the post-write header count equals
+the live pre-write count minus exactly the number of archived entries.
## Log Structure
@@ -289,8 +355,9 @@ all OPEN entries, and the just-resolved ones.
Observations captured during task-oriented work.
-**Status key:** OPEN = not yet actioned | ACTIONED = skill updated/created |
-DECLINED = user decided not to pursue
+**Status key:** OPEN = not yet actioned | ACTIONED (YYYY-MM-DD) = skill
+updated/created | DECLINED (YYYY-MM-DD) = user decided not to pursue —
+resolved statuses always carry their resolution date
---
@@ -328,7 +395,10 @@ Issue → Improvement → Principle; each is typed; existing-skill items name
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
+pass, so if any observation lacks one, add it now. Finally, run the
+survival check (Log-write safety rule 5): grep the log for every entry
+number this session wrote and confirm each still exists exactly once — a
+concurrent session's write-back deletes silently. Fix failures before
surfacing.
## Acting on Observations
@@ -358,5 +428,6 @@ same reference).
| 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` |
+| Rewriting the log (archival/renumber/status)? | Backup → re-read live and merge → bounded mutation → verify count against live pre-write file → confirm own entries survived |
| Weekly review? | Trigger check at session start; procedure in `references/weekly-review.md` |
| No filesystem? | Handoff-doc mode — `references/environments.md` |
diff --git a/USER-GUIDE.md b/USER-GUIDE.md
index 329c857..3236470 100644
--- a/USER-GUIDE.md
+++ b/USER-GUIDE.md
@@ -1,24 +1,26 @@
# Getting Started with the task-observer meta-skill (aka "One skill to rule them all")
-This guide includes practical tips for getting value out of the meta-skill. It's based on my own daily usage of the skill across Claude Cowork, the web interface, Claude Code (only via the desktop app) and the mobile app. I've been using this skill for three months now and it has logged and applied more than 600 improvements across my 40 skills, all of which were themselves created based on observations by the meta-skill.
+This guide includes practical tips for getting value out of the meta-skill. It's based on my own daily usage of the skill across Claude Cowork, the web interface, Claude Code (only via the desktop app) and the mobile app. I've been using this skill for six months now and it has logged and applied more than 900 improvements across my 50 skills, all of which were themselves created based on observations by the meta-skill.
-The best way to get started with this new work setup in any environment is probably to grab the skill, the user guide and the readme file from the repo and feed them to the AI of your choice. It should then be able to guide you towards the best equivalent of this setup for your particular environment, no matter which system you use. As long as skills are supported, this approach should work with any AI system, with some adjustments.
+The best way to get started with this new work setup in any environment is to grab the skill, the reference files, the user guide and the readme file from the repo and feed them to the AI of your choice. It should then be able to guide you towards the best equivalent of this setup for your particular environment, no matter which system you use. As long as skills are supported, this approach should work with any AI system, with some adjustments.
-The meta-skill was primarily designed for Cowork, so these tips focus on that environment. If you use the skill in other environments, I expect most of the ideas to still apply. Please just adapt them where needed. And if you could report back to me your experience in other environments, that would be amazing.
+The meta-skill was primarily designed for Claude Cowork, so these tips focus on that environment. If you use the skill in other environments, I expect most of the ideas to still apply. Please just adapt them where needed. And if you could report back to me your experience in other environments, that would be amazing.
The rest of this user guide focusses on Claude and specifically Claude Cowork, but again, most of this should be applicable to other environments.
## Where the skill runs
-Once you've uploaded the skill via Settings → Capabilities in your Claude account, it's available in all chats (web interface, mobile app, desktop app) and also in the Cowork and Code tabs of the desktop app. Its full potential can be exploited in Cowork tasks.
+The skill is a multi-file bundle: `SKILL.md` plus a `references/` folder that is loaded on demand. To install it, put both into one folder, zip that folder, and upload it via Settings → Capabilities in your Claude account. Uploading the bare SKILL.md alone results in a degraded install — the skill still works, but will tell you which files are missing (see the Installation section of the readme for other environments).
+
+Once you've uploaded the skill, it's available in all chats (web interface, mobile app, desktop app) and also in the Cowork and Code tabs of the desktop app. Its full potential can be exploited in Cowork tasks and Code sessions.
## Using the skill in chats
You can use the meta-skill in regular chats, and I sometimes do: for example, when I start a conversation on my phone or via the web interface. The meta-skill will log observations during the conversation, but unlike in a Cowork session, it won't be able to write them to a shared storage.
-You'll need to ask for a handoff doc at the end of the session, or the skill might guide Claude to offer one proactively as the conversation winds down. You can then take that handoff doc to the next session or, even better, to a Cowork task.
+You'll need to ask for a handoff doc at the end of the session, or the skill might guide Claude to offer one proactively as the conversation winds down. You can then take that handoff doc to the next session or, even better, to a Cowork task or Code session.
-I developed the first versions of this skill in the Claude web interface before moving to Cowork, but the need for a shared storage was what pushed me there. If you see value in the meta-skill, it's likely that you'll end up using Cowork too.
+I developed the first versions of this skill in the Claude web interface before moving to Cowork, but the need for a shared storage was what pushed me there. If you see value in the meta-skill, but you're mainly using Chat, it's likely that you'll end up using Cowork too.
## Setting up your shared folder
@@ -79,9 +81,9 @@ It is always your own decision if you want to open-source any of your skills at
## The weekly review (now possible via scheduled tasks)
-The skill has a built-in weekly review cycle. If more than 7 days have passed since the last review and there are open observations waiting, Claude will trigger a comprehensive review at the start of your next task-oriented session.
+The skill has a built-in weekly review cycle. If more than 7 days have passed since the last review and there are open observations waiting, Claude will offer to run a comprehensive review at the start of your next task-oriented session. It's a one-line offer, not an interruption: you can run the review right away or carry on with your task and let a later session (or a scheduled run) handle it.
-What to expect when it triggers: Claude pauses to cross-check all open observations against all your skills, checks whether cross-cutting principles are being followed everywhere, applies the improvements it can, and presents you with a summary of what changed and what needs your attention. It's thorough: the review covers your entire skill library, not just the skills mentioned in individual observations.
+What to expect when the review runs: Claude cross-checks all open observations against all your skills, checks whether cross-cutting principles are being followed everywhere, applies the improvements it can, and presents you with a summary of what changed and what needs your attention. It's thorough: the review covers your entire skill library, not just the skills mentioned in individual observations.
I only ever reached this threshold once, because I normally update skills more regularly than once a week. But it's there as a safety net to make sure observations don't pile up indefinitely.
diff --git a/references/skill-authoring.md b/references/skill-authoring.md
index 6fe2f2d..dd4a94f 100644
--- a/references/skill-authoring.md
+++ b/references/skill-authoring.md
@@ -48,6 +48,17 @@ with credit — recommended default), **MIT** (code-heavy, permissive),
derivatives), **GPL family** (strong copyleft). The author chooses; the
requirement is that there is one.
+**Private client sharing** is a third channel with its own rights framing:
+a client-agnostic skill shared privately with one client is NOT open source
+and NOT internal. Keep the attribution block; replace the licence statement
+with a short usage notice (e.g., "shared privately for internal use; please
+don't redistribute without checking with the author"); no LICENSE file
+needed. All confidentiality sweeps still apply — other-client information
+must not leak even when the recipient is a known client. Do not treat "not
+internal" as "therefore open source": distribution channel determines the
+rights framing, not just the feedback routing (see the distribution-channel
+note below).
+
## Author Attribution Template
```markdown
@@ -118,14 +129,64 @@ in layers so any one catches what others miss:
sections added to the live skill the same day; only a pre-merge diff
caught it.)
4. Stage every update to
- `[workspace folder]/skill-updates/[date]/[skill-name]/SKILL.md` and
- present it for review and installation — nothing goes live until the
- user installs it.
-5. Match process rigour to the change: complex/open-source/uncertain design
+ `[workspace folder]/skill-updates/[date]/[skill-name]/` — the FULL
+ skill directory (SKILL.md plus references/, scripts/, assets/ where
+ present), never SKILL.md alone — and present it for review and
+ installation; nothing goes live until the user installs it. Where no
+ presentation/upload tool exists (e.g. Claude Code CLI), present the
+ staged path and a change summary in chat instead; staging-only applies
+ in every environment — it's the review loop's safety property, not a
+ filesystem constraint. For any
+ skill with supporting files, zip the staged directory into a `.skill`
+ bundle and present the bundle, never the bare SKILL.md: a single-file
+ delivery convention applied to a multi-file skill truncates it
+ silently (the install succeeds, the skill loads, and the missing
+ pieces only surface when a reference load or script call fails
+ mid-task). **Pre-delivery gate — two items, checked at the moment of
+ delivery, not just at drafting time:** (1) every `references/`,
+ `scripts/`, `assets/` path in the staged SKILL.md body has its file in
+ the staged set; (2) if the skill is multi-file, the delivery artefact
+ is the `.skill` bundle — bare file links fail this gate even when all
+ files are staged. (Reading this rule while drafting does not enforce
+ it at delivery; run the gate as the last step before presenting.)
+ Packaging hygiene: before zipping, sweep the staged tree for build
+ artefacts (`__pycache__/`, `*.pyc`, `.DS_Store`, `.~lock.*`) left by
+ in-session checks, and read the archive listing back after zipping —
+ the listing is the cheap verification that catches leaked artefacts.
+5. When seeding a staged copy by copying from the read-only mount, reset
+ write permissions immediately (`chmod -R u+w` on the staged path, or
+ `cp --no-preserve=mode`) — the mount's read-only mode travels with
+ the copy, for directories as well as files, and the follow-up edit
+ otherwise fails with a permission error.
+6. 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
substantial changes for review.
+## Verifying relocations and restructures
+
+When content is relocated verbatim (splits into core + references, merges,
+restructures), "nothing was lost" is checkable mechanically — but only with
+a two-tier check:
+
+1. Enumerate every added/moved line via `diff` of the old base vs the new
+ base.
+2. Exact-match each non-empty line against the restructured file set
+ (`grep -F`).
+3. For misses, substance-check via a distinctive mid-line substring before
+ concluding loss — most misses are container artifacts (heading-level
+ changes, list-to-prose adaptation, re-wrapped lines splitting a phrase
+ across newlines), not real losses.
+4. Word-count sanity check per file.
+
+One tier alone either misses losses (substance-only) or cries wolf
+(exact-only). Additionally, inventory the original's enforcement
+mechanisms (checkpoints, assertions, invariants, mandatory-write rules,
+defaults) as an explicit checklist — compression preferentially destroys
+enforcement machinery because it reads as redundancy — and sweep any "pure
+restructuring" change for net-new behaviour, which hides well in a large
+rewording diff.
+
## New skills
Use the skill-creator when available, passing the observation(s) as the
diff --git a/references/weekly-review.md b/references/weekly-review.md
index dc41411..f9f236b 100644
--- a/references/weekly-review.md
+++ b/references/weekly-review.md
@@ -7,10 +7,14 @@ input. Two modes:
- **Scheduled autonomous review (preferred):** a recurring task (e.g.
Mon/Wed/Fri mornings) via the platform's scheduler. Runs without the user
present and applies non-escalated observations autonomously.
-- **In-session 7-day fallback:** fires at session start when BOTH are true:
- no scheduled review is registered (or none succeeded in 7+ days), AND
- `skill-observations/last-review-date.txt` is missing or >7 days old.
- Inform the user it's running; do Step 0 first.
+- **In-session 7-day fallback:** pending at session start when BOTH are
+ true: no scheduled review is registered (or none succeeded in 7+ days),
+ AND `skill-observations/last-review-date.txt` contains `never` or a date
+ more than 7 days old (a missing file is recreated with `never` — see
+ Session Start steps 1 and 3; the file's value is authoritative, a date
+ means a review actually ran). In an interactive session a pending
+ fallback surfaces as a one-line offer and runs only if the user opts in
+ (SKILL.md, Session Start step 3) — it never gates the user's task.
## Approval policy
@@ -30,7 +34,11 @@ generator.
## Steps
-**Step 0 — recommend scheduled setup (fallback mode only).** Check
+**Step 0 — recommend scheduled setup (fallback mode only).** Ordering
+guard: run Step 1's no-observations short-circuit FIRST — if there are no
+OPEN observations and no outstanding principles, skip Step 0 entirely and
+just update the timestamp. A brand-new install must never get a setup
+prompt before it has done any work. Otherwise: check
`skill-observations/scheduled-review-decline.txt`: if under 30 days old and
the fallback isn't firing repeatedly, skip. Check for a registered
scheduled task (scheduler presence or
@@ -38,8 +46,13 @@ scheduled task (scheduler presence or
offer to set one up. Yes → register via the platform scheduler (Cowork:
`create-shortcut` / `set_scheduled_task`; terminal: cron), name it
`weekly-skill-review`, use the draft prompt at
-`skill-observations/scheduled-task-draft.md` if present, then write today's
-date to `scheduler-registered.txt`. No → write today's date to
+`skill-observations/scheduled-task-draft.md` if present, then verify the
+registration actually succeeded (the scheduler lists the task, or the
+platform confirmed creation) BEFORE writing today's date to
+`scheduler-registered.txt`. If registration fails or can't be verified, do
+NOT write the marker — the marker would permanently suppress the fallback
+while no review ever runs. Tell the user registration failed and leave the
+fallback active. No → write today's date to
`scheduled-review-decline.txt` (suppresses for 30 days; repeated fallback
firings within the window re-surface the offer). No scheduler available in
this environment → skip silently.
@@ -97,8 +110,11 @@ live. Follow the editing rules in `references/skill-authoring.md` (live
file as base, staging, diff-before-overwrite).
**Step 6 — mark ACTIONED.** Update each applied observation's status:
-`ACTIONED — Applied to [skill-name] (weekly review [date])`. Do NOT archive
-same-session — the next log write or next review's Step 1 archives them.
+`ACTIONED (YYYY-MM-DD) — Applied to [skill-name] (weekly review)`. The
+date immediately after the status word is load-bearing: archival is gated
+on it (entries archive only when it's before today), so a dateless mark
+breaks the cross-session grace period. Do NOT archive same-session — the
+next log write on a later day archives them.
**Step 7 — timestamp.** Write today's date to
`skill-observations/last-review-date.txt`.
@@ -133,9 +149,30 @@ Wait for the user to acknowledge before other work.
## Delivering updated skills
-Save each updated file to
-`[workspace folder]/skill-updates/[date]/[skill-name]/SKILL.md` and present
-it for review and installation (in Cowork, via `present_files` and its
-upload button). Do not edit skill files in place — nothing goes live 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.
+Save each updated skill to
+`[workspace folder]/skill-updates/[date]/[skill-name]/` — the FULL skill
+directory (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 write to the live skill directly, even where the skills directory is
+writable — staging-only is a deliberate safety property of the review loop
+(nothing goes live without the user's sign-off), not a filesystem
+constraint. For any skill with
+supporting files, zip the staged directory into a `.skill` bundle and
+present the bundle; a bare SKILL.md install silently truncates a
+multi-file skill. Pre-delivery gate (two items, run as the last step
+before presenting): (1) grep the staged SKILL.md body for `references/`,
+`scripts/`, `assets/` paths and fail the delivery if any referenced file
+is missing from the staged set; (2) for multi-file skills, fail the
+delivery if the artefact being presented is bare file links rather than
+the `.skill` bundle. Sweep build artefacts (`__pycache__/`, `*.pyc`,
+`.DS_Store`, `.~lock.*`) before zipping and read the archive listing back
+after. When seeding staged
+copies from the read-only mount, `chmod -R u+w` the staged path first —
+the mount's read-only mode travels with the copy, for directories as
+well as files. Do not edit skill files in place — nothing goes live
+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.