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.

Targets check: a skill that resolves but cannot run is not installed

Eoghan Hennb7a0122c9d04
diff --git a/SKILL.md b/SKILL.md
index 489069f..ead443b 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -232,28 +232,29 @@ was handled without its reference loaded, log an observation.
so it verifies a working setup and structurally cannot detect the
missing one — it is not the safety net for a never-activated install.
That case is caught only from outside the runtime: the install-time
- verification and the external diagnostic in `references/environments.md`
- (no observation-log directory after sessions of real work), and the
- review's regression check for a tier that was present and is gone.
+ verification and external diagnostic in `references/environments.md` (no
+ observation-log directory after sessions of real work), and the review's
+ regression check for a tier now gone.
5. **Concurrency.** There is no shared log file to guard: each observation
is its own file, so creating one never collides with another session's
entry. Before changing an existing observation's *status*, re-read that
one file first — a parallel review may have resolved it.
6. **Targets and staged work.** Resolve each distinct `skill:` value in
the scanned frontmatter against the installed skill set and mention, in
- one line, any that no longer resolve — a deleted skill can accumulate
- dozens of observations before a review notices. Say what you resolved
- against (this checkout, this install): an unresolved target is a fact
- about where you looked, not about the world.
+ one line, any that no longer resolve — and any that resolve but cannot
+ run, because presence in a listing is not capability (`references/skill-
+ authoring.md`, "Runtime prerequisites"). A deleted skill accumulates
+ observations unnoticed; a dead one more so. Say what you resolved against
+ (this checkout, this install): an unresolved target is a fact about where
+ you looked, not about the world.
If `skill-updates/PENDING.md` lists staged updates, reconcile the list
before announcing it — installation happens outside any session, so no
- session observes the install itself, and the session that reads the
- ledger owns its cleanup. `diff -rq` each staged copy against live and
- classify it; a bare "differs" is not a verdict, because live moves on
- legitimately. The classification and its cases are in
- `references/weekly-review.md` ("Staged-work reconciliation gate") —
- load it before judging any entry. Then say "N staged updates awaiting
- review" in one line.
+ session observes it, and the session that reads the ledger owns its
+ cleanup. `diff -rq` each staged copy against live and classify it; a
+ bare "differs" is not a verdict, because live moves on legitimately. The
+ classification and its cases are in `references/weekly-review.md`
+ ("Staged-work reconciliation gate") — load it before judging any entry.
+ Then say "N staged updates awaiting review" in one line.
7. **First run.** If the log is empty and the project has history (handover
or decision docs, commit history, test scripts, an existing CLAUDE.md —
largely a record of corrections nobody logged), offer a one-off backfill
diff --git a/references/skill-authoring.md b/references/skill-authoring.md
index 7a92470..41ccb1d 100644
--- a/references/skill-authoring.md
+++ b/references/skill-authoring.md
@@ -20,6 +20,7 @@ Load this before creating any skill or making substantial changes to one.
- Verifying relocations and restructures
- Trial design — measuring whether a behaviour fires unprompted
- New skills
+- Runtime prerequisites — declare what the skill needs to be able to run
- Retiring skills — harvest before you retire
- Principle Propagation
@@ -979,6 +980,57 @@ reviews. Two independent movers flagging the same ambiguity means the
brief is the defect: fix the brief and re-issue rather than adjudicating
the outputs.
+## Runtime prerequisites — declare what the skill needs to be able to run
+
+A skill that drives something outside itself — a CLI binary, a daemon, an
+API key, a container runtime — is only as installed as the thing it drives.
+Presence in the skill listing says the files are there. It says nothing
+about whether invoking them can work.
+
+The failure this produces is specific and expensive: the agent reads a
+full, confident description, selects the skill for the task it names, and
+discovers the missing prerequisite only partway through the work. It reads
+as the agent's error rather than the inventory's, and the task it was
+chosen for is already half-done. In one reported estate, nine skills for a
+single security tool sat in the listing indistinguishable from working
+ones; the tool needed Docker, which was absent, and a paid API key outside
+the user's subscription. The adopter's only defence was a hand-written
+prohibition in `CLAUDE.md` naming all nine — a rule that has to be read and
+obeyed, rather than a fact the system knows.
+
+The same estate showed why this has to be a required element rather than
+good practice: an audit found 2 of the 9 members declared the prerequisite
+in their own `SKILL.md` and 7 did not. Left optional, a family drifts.
+
+**Required for any skill that drives an external tool.** Declare the
+prerequisites as *checkable facts*, so that something other than a human
+reader can evaluate them:
+
+```yaml
+requires:
+ - binary: docker # on PATH
+ - env: OPENAI_API_KEY # set and non-empty
+ - service: http://localhost:11434 # reachable
+```
+
+Three forms cover nearly everything: a binary on `PATH`, an environment
+variable that is set, and an endpoint that answers. Each is one cheap
+command. Anything that cannot be reduced to one of those is a prose note in
+the skill body, not a declaration — a check nobody can run is worse than an
+honest sentence, because it looks like a guarantee.
+
+**What consumes it.** Session Start step 6 resolves `skill:` targets and
+reports the ones that do not resolve; with this block it can also report the
+ones that resolve *and cannot run*. A dead target and a deleted target both
+mean "observations are accumulating against something that will never act on
+them", and for any skill driving an external tool the dead one is the
+commoner case.
+
+**The general principle.** Presence in a registry is not capability. Any
+inventory an agent selects from needs a liveness dimension, because the
+failure it otherwise produces — confidently choosing a listed thing that
+cannot run — is invisible at selection time and expensive at use time.
+
## Retiring skills — harvest before you retire
An ending engagement is a harvest trigger, not only a cleanup trigger.