ckb/.agents/skills/ckb-feynman/SKILL.md
Michał Kopeć 2589b0ab50 Template 1.27.0: ckb-feynman skill, eval case, runner glob fix
New core skill ckb-feynman (plain-words explanation of one page, Wiki /
Sources / Mine gaps, explain-back, numbered next moves, sessions in
outputs/teaching/feynman/). Registered in AGENTS.md routing and
disambiguation, ckb-init, ckb-teach-me (skips the folder, reserves the
slug), both READMEs, manuals and changelogs. outputs/teaching/ added to
the directory contract. tests/run_evals.py matches deleted files with
glob semantics. Eval case tests/evals/ckb-feynman/session.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-02 21:42:13 +01:00

209 lines
8.8 KiB
Markdown

---
name: ckb-feynman
description: Explain one wiki page in words a twelve-year-old owns, then name every place the explanation went thin - a gap in the page, in its sources, or in the explainer - and ask the user to explain a piece back. Use for "Feynman me on X", "explain X to me properly", "what am I fuzzy on", "what is the wiki hand-waving about", or before teaching or presenting a page.
---
# Feynman skill
## Purpose
Explaining simply is a test: wherever plain words run out, something is
missing. This skill runs that test on one page and reports what it found.
It differs from `ckb-teach-me` (a planned course) and `ckb-quiz` (scored
recall): one concept, one sitting, and the gaps are the product.
Teach in the language the user is writing in.
Read-only towards `wiki/`, `raw/`, `linked/` and `libs/`. The session is
saved to `outputs/teaching/feynman/` (gitignored, personal like the rest of
`outputs/teaching/`), so it needs no `wiki/log.md` entry; name its path in
the Rule D note. The one wiki write is a `wiki/query-gaps.md` entry, only on
the user's yes, in the form `ckb-retrieve` Step 7 gives and logged under
Rule B. Fixing a thin page is `ckb-ingest` or `ckb-lint`, and only when
asked.
## How to run this skill
### Step 1 — Pick the concept
If the user named one, find its page index-first, in cascade order
(`wiki/index.md` and the subdirectory indexes, then `linked/`, then
connector-backed `libs/`); `retrieve_candidates.py "<concept>"` from
`ckb-retrieve` is the quick way when the index does not match by title.
Several plausible pages → list them in one line each and ask.
If they named none, read `wiki/index.md` and the subdirectory indexes and
offer three candidates, numbered, each with its reason:
- a page with `review: draft` or `needs_update` — the agent wrote it and
no person has checked it since
- a page whose `## Sources` has a single bullet — one source's view
standing in for fact
- a page past its `freshness_window_days`, or carrying an open
`> CONTRADICTION:` marker
Let them choose. They know which one they are bluffing about.
A `type: topic` page is a map, not evidence: offer its member pages
instead, or explain the topic only as far as its members do.
### Step 2 — Read it properly
Read the whole page, then the pages it links to that the concept depends
on, then — where the page gets thin — the sources in its `## Sources`.
A `## Crux` quote is source text already; confirm its fingerprint the way
`ckb-retrieve` Step 6 does (`sha256sum <source> | cut -c1-8`) and read the
source itself when the digest differs or the quote does not cover the
point. A `linked/` page is already the source. A connector-index page is
thin by design: re-fetch its `resource:` if the connector is authorised,
otherwise say the explanation rests on the cached index.
You cannot explain simply something you only half read. Paraphrase is how
a gap stays hidden.
Text between `<private>` and `</private>` is never explained, quoted or
paraphrased; say a private passage exists and who to ask.
### Step 3 — Explain it to a twelve-year-old
- **No jargon.** Use the concept's name once, then say what it means in
words a child already owns.
- **Trading one term for another is cheating.** "It is basically a
heuristic" explains nothing to someone who does not know the word.
- **One concrete example, early.** People and objects, not "imagine a
system where".
- **Short sentences.** One that needs a comma to survive is usually two.
- **Why anyone should care, before how it works.**
- **Only what the page and its sources say.** If they explain a
mechanism, explain it. If not, that is a gap for Step 4. Do not supply
the missing reasoning from your own knowledge, not even flagged as a
guess: a flagged guess gets quoted back later as if the wiki said it.
- **Carry the caveats.** A `draft` or `needs_update` page, a stale one, or
a claim under a `> CONTRADICTION:` marker says so in a short clause
where it matters, as `ckb-retrieve` does.
Under each block of explanation, one link line to where it came from, never
inside the sentences:
`→ [[atlas-retry-policy]] · [Atlas retry policy § How retries work](/wiki/entities/atlas-retry-policy.md#how-retries-work)`
Link to the section heading, not the page: a link to the top of a long page
is barely a link. Build the anchor from the heading as written (lower-case,
spaces to hyphens, punctuation dropped) and check the heading exists; a
wrong anchor fails silently. A short page whose claim sits under the
title alone links the title's anchor; the reserved `## Crux` is a fine
target when the quote is what carried the block. `linked/` and `libs/`
pages use their root-relative path, as in Rule C. A block drawn from a
source rather than the page links the source path.
### Step 4 — Name where it went thin
The part that matters. Go back over the explanation and find every place
where you:
- reached for a technical word because no plain one came
- wrote "essentially" or "basically" and then restated the jargon
- said what something does without being able to say why it works
- skipped a step because the page skips it too
Sort each one:
- **Wiki** — the page is thin, asserts without explaining, or compresses
away what its source says. Name what is missing and stop there.
Answering it yourself turns a known hole into an invisible one.
- **Sources** — the page faithfully reflects sources that never explained
it either. That needs a new source, not a better page (Rule F): name the
smallest one that would close it.
- **Mine** — you read it and still cannot make it simple. Say so plainly.
Fluent nonsense is worse than an admission.
Three or four is a good haul. Zero means you did not look hard enough: say
what you would have to be wrong about for zero to be true.
### Step 5 — Flip it
Ask the user to explain one piece back in their own words, then ask one
follow-up a level deeper than their answer. Skip only if they say so.
When you explain, the gaps found are the wiki's. When they explain, the
gaps are theirs, and that is what they came for. Correct gently, from the
page, and keep what they said for the record.
### Step 6 — Save the session
Write `outputs/teaching/feynman/YYYY-MM-DD_<concept-slug>.md` (a repeated
name gets `-2`, `-3`; never overwrite):
```markdown
---
type: feynman-session
concept: Atlas retry policy
date: YYYY-MM-DD
author: Name <email>
pages: wiki/entities/atlas-retry-policy.md, wiki/decisions/0001-three-retries-then-dlq.md
gaps: 4
---
# Feynman: Atlas retry policy
## The explanation
<what you said, as you said it, each block followed by its → link line>
## Where it went thin
- **Wiki:** <one line per gap, or none>
- **Sources:** <one line per gap, or none>
- **Mine:** <one line per gap, or none>
## What would close them
- <one line per gap, phrased as something someone could do>
## What they said back
<their explanation and where the follow-up landed; drop the section when
Step 5 was skipped>
## Next moves
<the numbered moves from Step 7, so a later session can see what was offered>
## Sources
- `wiki/entities/atlas-retry-policy.md` — sha256:1a2b3c4d (checked YYYY-MM-DD)
```
Fingerprint every page and source the explanation rests on, so a later
reread can tell whether the ground moved. `outputs/teaching/feynman/` is
not a curriculum: `ckb-teach-me` ignores it.
### Step 7 — Give them somewhere to go
End with three or four numbered next moves drawn from this session, never a
generic menu, so the user can answer with a digit:
- **Dig into a gap** — go one level down on a gap that is interesting
rather than merely missing.
- **Go to the source** — name the `raw/archive/` file that would settle it.
- **Record it** — put a Sources gap into `wiki/query-gaps.md`.
- **Close it** — `ckb-ingest` a source they bring, or `ckb-lint` for a
page that looked structurally thin.
- **Take it further** — a page this one depends on, or the same page for
another audience: a client, a sceptic, a room.
- **Test them** — re-explain the part they stumbled on in Step 5, harder.
Offer, then wait to be asked.
## Self-check
- Could a twelve-year-old repeat the gist back?
- Did the explanation stay out of the concept's own vocabulary?
- Is there a concrete example with people or objects in it?
- Are the gaps specific, not "this section could be clearer"?
- Does every block carry a link line, and does every anchor exist?
- Is every sentence something the page or its sources say?
- Are the next moves numbered and drawn from this session?
- Is the session saved, with fingerprints and next moves, and named in the
Rule D note?
## Edge cases
Unusual situations — an empty target, a partial run, a conflicting state,
a missing dependency — are catalogued in
[`references/edge-cases.md`](references/edge-cases.md). Read that file when a
run hits something the steps above don't cover; don't load it otherwise.