/okf-skills:okf-verifyfrom okf-skills
Run the re-verification cycle over an OKF bundle — triage by expiry, re-check claims against upstream, run a version-currency sweep, prune what no longer earns its place, and stamp the release. Use when concepts are approaching `stale_after`, after a scheduled gate reports expiry, or before cutting a bundle release.
Ships in okf-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A corpus with per-claim sources and expiry dates makes a promise: someone will come back and check. This skill is that visit. It is the only routine in the set that is driven by the calendar rather than by a change.
stale_afterNot for: writing a new concept (okf-concept) or structural work (okf-bundle).
CLAUDE.mdNever bump a stale_after without re-checking the claim.
No gate can tell the difference between a date moved because the claim was verified and a date moved because the warning was annoying. The second is worse than letting it expire: it converts a real signal into a decorative one, permanently, and nothing downstream can detect it.
Corollary: verified is an act, not a formatting step. Absent is the honest default.
BUNDLE=knowledge
python3 - "$BUNDLE" <<'PY'
import sys, yaml, pathlib, datetime
root = pathlib.Path(sys.argv[1]); today = datetime.date.today(); rows = []
for p in sorted(root.rglob('*.md')):
if p.name in ('index.md', 'log.md'):
continue
meta = yaml.safe_load(p.read_text().split('---')[1]) or {}
d = meta.get('stale_after')
if isinstance(d, str):
d = datetime.date.fromisoformat(d)
rows.append(((d - today).days if d else 10**6, str(p.relative_to(root)), d,
bool(meta.get('verified'))))
for days, rel, d, v in sorted(rows):
if days < 90:
flag = "EXPIRED" if days < 0 else f"{days:>4}d"
print(f" {d} {flag} verified={'yes' if v else 'NO '} {rel}")
print(f" — {len(rows)} concepts, {sum(1 for r in rows if not r[3])} never verified")
PY
Work the list in date order. Concepts sharing a tier usually share sources, so they re-verify together cheaply — that clustering is intended, not an accident to spread out.
For each concept in the pass, open the actual source and compare it to the claim. Not a search summary of the source: the source.
Search summaries are wrong often enough to be treated as a lead rather than a finding. In one review cycle they produced four separate errors that reading the primary document caught — a superseded document cited as current, a contribution attributed to a paper that does not claim it, a pipeline described with the wrong number of stages, and a figure that did not appear in the report it was attributed to.
This is the step where a cycle quietly fails, because the fallback is so easy: the document does not come back, a search result does, and the re-verification becomes the thing it exists to replace.
Treat an unreachable primary source as a blocked check, not a downgraded one. Either find another route to the same document, or record in the concept that the claim rests on secondary sourcing — never silently substitute.
The failure is rarely a clean error. Two shapes to recognise:
| Symptom | Why it is dangerous |
|---|---|
| Success with no content — HTTP 200/202, empty body | Nothing raises. A script reports "fetched", a reader assumes checked |
| The wrong representation — metadata, a landing page, an SPA shell | Large, plausible, and answers none of the questions you asked |
| A bot challenge — HTTP 200, a full HTML page, no document | Passes every check except "is this the thing I asked for" |
A challenge page also destroys the existence signal. Hosts running proof-of-work interstitials
return the same 200 for any path, including ones that do not exist — so on those hosts a status
code distinguishes neither retrieval nor existence, and "source located, retrieval blocked" and
"the URL is wrong" look identical. Two sources were once logged as blocked on that reasoning; both
URLs were simply wrong. Confirm a URL from a page that actually resolves before recording a source
as unreachable.
Everything above treats unreachability as something you discover. It is also something you record — and the record ages exactly like the claims the rest of this skill exists to re-check.
Re-test the blocked list on every verification cycle. Not once, and not only when someone asks. Hosts change, mirrors appear, a paywall lifts, a challenge is retired — or the original finding was wrong and nothing has re-examined it since.
Measured: a bundle carried three standards as in scope and unsourced. On re-test, all three
retrieved on the first attempt — one with a bare curl against the very URL recorded as blocked.
The classification had hardened into a fact because it was written down, and writing it down was the
last time anyone looked.
Two consequences for how a block is recorded:
A specification that became a standard usually has an earlier, freely readable form — an RFC, a working draft, a vendor submission — and the body's own edition may be the one you cannot get.
The trap is that the authoritative-looking URL resolves and returns something, so it reads as retrieved. One document was recorded unsourceable on the strength of a seven-page table of contents served under the standards body's title; the full original submission was mirrored openly by that same body, under a different path.
Before recording a specification as unavailable, ask who published it first — the successor edition is not always the readable one.
They are not interchangeable, and collapsing them into "could not get it" hides the ones that need someone else to act:
| Kind | Looks like | Who resolves it |
|---|---|---|
| Sold | a purchase page | a budget decision |
| Bot-blocked | a challenge page, HTTP 200 | a tooling problem — and the kind most likely to decay |
| Registration-walled | free of charge, download disabled pending an account | a person — the terms are visible only after registering |
| Encumbered | non-disclosure terms inside the document itself | a person, and it is a legal question |
Do not register an account, accept terms, or agree to a licence on the bundle owner's behalf. For the last two rows the redistribution terms are often not visible until after you have agreed to something — so whether the text may be quoted under the bundle's licence is itself unknown, and settling that by proceeding is the wrong order.
Record those as blocked pending a human decision, which is a different status from unsourced: the missing ingredient is not effort, and no amount of retrying changes it.
The previous section covers a source you cannot read. This one is more dangerous, because everything succeeds: the document arrives, it is the right document, and it does not say what the concept says it says.
The pull is to treat opening the source as the verification. Resist it. A source that loads and
supports nothing leaves the claim exactly where it was, and stamping verified because a fetch
returned 200 converts unchecked into checked without changing what is known.
Record "checked and unsupported" as its own outcome. Absent verified conflates two very
different states:
| State | What it means | What it needs next |
|---|---|---|
| never checked | nobody has looked | someone looks |
| checked, unsupported | someone looked; this source does not carry the claim | a different kind of evidence |
Only the second tells the next person not to repeat the same lookup. Write it into the concept — what was read, which single sentence it did support, and what it was silent on.
Three routes out, in the order worth trying:
One heuristic, from doing this to three concepts at once. Project documentation describes purpose, not failure modes. A tool's own page will tell you precisely what a mechanism is for and be nearly silent on what goes wrong with it — including the failure everyone actually discusses. One concept asserted a well-known failure mode and cited the vendor page for it; the page never mentions it. A tool's documentation is evidence about its documentation. Failure modes have to come from specifications, incident writeups, or measurement.
Removing a citation is a legitimate outcome of this step. A source retained because it looks supporting, when it is not, is worse than no source: it is what a reader checks least.
An open pull request, a draft policy, a proposal awaiting a vote. The document loads and says what the concept says — and the claim that matters is about its state, which the document's text does not carry.
Read the whole state, not the headline. Open and merged are the two values everyone checks and the least informative. Measured: a record verified a proposal as "still open and unmerged"; it was, and it had already carried two approving reviews for over three weeks, which the record never mentioned. For a pull request, read every one of:
| Read | Because |
|---|---|
| reviews and their verdicts | an approved proposal is one merge from being in force |
| the current diff, not the one first quoted | the text can change under the same number |
| comments since the last verification | objections, counter-proposals, a replacement text |
| commits | a force-push rewrites what was proposed |
Then watch the venue, because stale_after cannot. Expiry is a date; a proposal moves on events.
The same record, still inside its expiry window, had thirteen comments land after its last
verified stamp — one proposing to replace the section the record was about. Nothing reported it.
The check below asks the forge whether anything happened to a cited pull request since the concept
was last verified. It reads GitHub pull request URLs from sources[].resource; set GITHUB_TOKEN
for anything more than a handful of concepts.
python3 - knowledge/path/to/concept.md <<'PY'
# Exit 1 if a cited pull request has a review, comment, commit, merge or close newer than the
# latest `verified[].at`; exit 2 if the forge could not be read. Never let a failed fetch exit 1:
# it would read as movement.
import json, os, re, sys, urllib.error, urllib.request, yaml
from datetime import datetime
PR = re.compile(r'https://github\.com/([\w.-]+)/([\w.-]+)/pull/(\d+)')
def api(path):
items, page = [], 1
while True:
req = urllib.request.Request(
f'https://api.github.com/{path}?per_page=100&page={page}',
headers={'Accept': 'application/vnd.github+json',
**({'Authorization': f'Bearer {os.environ["GITHUB_TOKEN"]}'}
if os.environ.get('GITHUB_TOKEN') else {})})
try:
data = json.load(urllib.request.urlopen(req, timeout=30))
except (urllib.error.URLError, OSError) as e:
print(f'ERROR cannot read {path}: {e} — nothing was checked', file=sys.stderr)
sys.exit(2)
if isinstance(data, dict):
return data
items += data
if len(data) < 100:
return items
page += 1
def when(s):
return datetime.fromisoformat(str(s).replace('Z', '+00:00'))
moved = False
for path in sys.argv[1:]:
meta = yaml.safe_load(open(path).read().split('---')[1]) or {}
stamps = [when(v['at']) for v in meta.get('verified') or [] if v.get('at')]
since = max(stamps) if stamps else None
prs = sorted({m.groups() for s in meta.get('sources') or []
for m in [PR.search(str(s.get('resource', '')))] if m})
if not prs:
print(f'-- {path}: cites no pull request, nothing to watch')
continue
for owner, repo, n in prs:
base = f'repos/{owner}/{repo}'
pull = api(f'{base}/pulls/{n}')
events = [('review', r['user']['login'], r['submitted_at']) for r in api(f'{base}/pulls/{n}/reviews') if r.get('submitted_at')]
events += [('comment', c['user']['login'], c['created_at']) for c in api(f'{base}/issues/{n}/comments')]
events += [('review comment', c['user']['login'], c['created_at']) for c in api(f'{base}/pulls/{n}/comments')]
events += [('commit', (c.get('author') or {}).get('login', '?'), c['commit']['committer']['date']) for c in api(f'{base}/pulls/{n}/commits')]
events += [(k, '', pull[f'{k}_at']) for k in ('merged', 'closed') if pull.get(f'{k}_at')]
state = 'merged' if pull.get('merged_at') else pull['state']
newer = sorted((e for e in events if since is None or when(e[2]) > since), key=lambda e: e[2])
if newer:
moved = True
print(f'MOVED {path}: {owner}/{repo}#{n} is {state}; {len(newer)} event(s) since '
f'{since.isoformat() if since else "never verified"}')
for kind, who, at in newer:
print(f' {at[:10]} {kind:<14} {who}')
else:
print(f'ok {path}: {owner}/{repo}#{n} is {state}; nothing since {since.isoformat()}')
sys.exit(1 if moved else 0)
PY
Run against the record above, it reported 13 events, exit 1; against the same record re-verified, exit 0; against a concept citing no pull request, it said so and exited 0. Its first draft exited 1 on a network failure — an interpreter whose sockets were blocked produced a traceback that would have read as moved. Hence exit 2.
What it cannot see, so do not let a pass stand in for the reading above:
Wire it into the scheduled sweep, not the commit hook: it answers a question about the world, which a commit does not change.
A PDF with no text layer is not unreachable — it is unread. pdftotext and similar return exit 0
and an empty file, which a script reports as success. Check the word count, never the status.
Where a text layer is absent, OCR is the route (xberg and similar run it automatically). Two rules
make the difference between a usable source and a corrupted record:
extraction_method is native
for a text layer, ocr for recognition. Note it in the re-verification notes; the next reviewer
needs to know how much to trust the transcription.This is the sharpest form of the corpus's central risk. A concept whose claim is merely stale is visibly stale; a concept whose quotation is an OCR artefact reads as perfectly sourced and is wrong in the one place the format promises accuracy.
The section above is the sharpest case; the general one is that a quotation is the only part of a concept that cannot be judged by reading it. A stale claim looks stale. A misquotation looks perfect, in every reading, forever.
So check them by machine. Download the source, extract every quoted span from the concept, and test each as a substring:
# every quoted span must appear verbatim in ONE OF the concept's sources
python3 - <<'CHECK'
import re, pathlib, glob
srcs = [re.sub(r'\s+', ' ', pathlib.Path(f).read_text(errors='replace'))
for f in glob.glob('sources/*')] # ALL of them, not one
doc = re.sub(r'^> ?', '', pathlib.Path('concept.md').read_text(), flags=re.M) # blockquote markers
for q in re.findall(r'\*"(.+?)"\*', re.sub(r'\s+', ' ', doc)):
q = q.strip().rstrip('.')
print(('ok ' if any(q in s for s in srcs) else '** UNMATCHED ** ') + q[:70])
CHECK
Check against the union of the concept's sources, not one file. A concept citing three documents will report two-thirds of its quotations as faults if the check sees only the first — which is what happened the first time this snippet was run, and is the same class of error as the normalisation list below: the check was wrong, not the text.
Normalise the format before judging the text, or the check reports faults that are not there. Every one of these produced a false negative in practice:
| Normalise | Or you get |
|---|---|
RFC page furniture (… Standards Track [Page 4]) | a sentence split by pagination |
hyphenation across a line break (multi-\ndomain) | a word the source "does not contain" |
| markdown blockquote markers | resources but do not define > standard methods |
| emphasis inside the quoted span | a mismatch on **bold** the reader never sees |
| rendered vs raw link text | a quote that matches what a reader sees, not the file |
The last one is a real fault, not a false negative: if the quoted span crosses a markdown link, the source contains markup the quotation silently dropped. Trim the quote to the verbatim run.
The trap specific to this skill: a re-verification note invites quoting your own claim. You are writing about a sentence you just revised, and the natural way to refer to it is in quotation marks — which, in a document where those marks mean the source wrote this, silently promotes your own wording to sourced. Observed three times in one day's work, every one caught by the check above and none by reading the file.
Reserve the quotation styling for a source's words. Use plain emphasis for your own, including when quoting an earlier version of the same concept.
Mistrims run in one direction, and that is the diagnostic. Across one corpus, every mistrimmed
quotation but none of the false negatives shared a property: the quotation ended where the
surrounding argument wanted the sentence to end. A terminal period supplied before the source's
[RFC6020]; a stop before "and tell us about it"; a clause cut before the sentence turned. This
is not transcription noise — it is the argument leaking into the evidence, which is why re-reading
does not catch it and why the writer is the last person able to. If a check reports a mistrim, look
for what the full sentence would have cost the paragraph.
Do not quote a figure from a page that recomputes. Some sources render per-viewer or per-week:
one platform's statistics page recomputed every payday and rendered amounts in the viewer's
currency, so the same payday read twice gave $26,249.32 and 22.486,21 €. A quotation of either
is true in one locale for one week. Report such figures with a read-on date instead of quoting
them, and say in the concept that the source recomputes — the reader needs to know the number has
a shelf life, not just a source.
One process note worth more than the check: draft from the downloaded source, not from a summary of it. A tranche written from fetch summaries needed four quotation repairs; the next tranche, written from local copies, needed one — a straight apostrophe where the source had a typographic one. Paraphrase enters at the point of summarising, and no amount of care at writing time removes it.
A specification, policy or standard often exists as HTML and PDF, or as a rendered page and a repository. They can disagree, and then the comparison is the verification — reading either alone returns a confident wrong answer.
Observed: a vendor's open-source policy prohibits a practice in its dated PDF and says nothing about it on the live web page. Which is current was not establishable, and the widely-repeated claim about that vendor traces to the PDF alone.
Two techniques:
When the two disagree and nothing settles which governs, record the disagreement as the finding and cite both. Picking one silently is the failure.
Worked example, found on 2026-08-03 re-verifying an EU regulation. eur-lex.europa.eu returns
HTTP 202 with a zero-byte body to every non-browser client — agent fetch tools and curl alike,
on the ELI, HTML and PDF endpoints. The working route was content negotiation on a different host:
curl -sL -H "Accept: application/xhtml+xml" -H "Accept-Language: eng" \
"https://publications.europa.eu/resource/celex/32024R2847" -o doc.xhtml
Both headers are load-bearing — Accept alone returns 400, and with no Accept at all the same URL
serves RDF metadata that answers no legal question.
Record the route when it is non-obvious, in the project's conventions rather than in the concept: a concept carries the claim, not the retrieval recipe. The next reviewer should not have to rediscover it, and "the source was unreachable" should appear in the log rather than being papered over.
Verify the recipe before you write it down. The command above was first recorded from memory,
minus Accept-Language, and returned 400 for every document tried. A retrieval method is a control;
an unrun one is a claim.
When a claim changes:
verified entry.A verified entry is by (human:<id>, process:<id> or <producer>/<version>), at (a full ISO 8601
datetime — a bare date warns) and sources, naming the sources[].id values actually re-read.
When a claim holds: add the verified entry, extend stale_after by its tier, and say so in the
log. A negative result is a result — record it, dated, so the next cycle does not redo it blind.
This is a different question from "is this claim accurate", and asking only the first is how a corpus goes stale while every concept reads as verified.
For every concept citing a versioned specification: is the cited version still the current one?
The distinction is not academic. In the reference corpus a full verification pass checked claims against a specification's v1.1 pages and confirmed them correct — while v1.1 had been retired. Every individual claim was accurate about a superseded document. The error was found six months later, by accident, on unrelated work.
Run the sweep as its own pass, and record the negative result with the list of what was confirmed current.
If a concept expired faster than its tier predicted, the tier was wrong. Move it, and record why the volatility class was misjudged.
Moving a date for this reason is not verification and earns no verified entry. Keeping those
two acts distinct is what lets the field mean something.
A tracking corpus needs a deletion criterion or it only grows. A workable one:
Past
stale_afterfor two consecutive review cycles → delete, don't carry.
This requires countable cycles, which is why the bundle's releases are tagged and its log.md
preamble carries a release map. Deletion is a legitimate outcome of a review, and a concept nobody re-verified
twice is telling you it was not worth the file.
knowledge/log.md**v0.6.0** 2026-08-14 · **v0.5.0** …CHANGELOG.mdStep 4 exists because a verification pass is precisely when a summary goes stale. You edit
concepts; the summaries describe concepts; nothing links the two. An index has been observed carrying
"Nothing here is verified" through two tagged releases after a pass verified three of its concepts,
and a landscape.md describing a concept as "the concept that failed its verification" after that
concept had been verified. Neither is detectable by any gate — see okf-bundle for why an index that
characterises a corpus holds a second copy of it.
⚠⚠ Naming two files is not enough, measured. A corpus whose conventions said re-read the index accumulated nineteen false or superseded summary claims before anyone read the rest. Re-read all six:
description:index.md entry, and that file's proseindex.mddescription:⚠ And the shortcut that finds the class quickly: when a concept records that it was wrong about something, search the corpus for the thing it was wrong about. In that audit, nineteen of nineteen corrections had reached the body and stopped there.
Do not rename a heading to the release. ## v0.6.0 — 2026-08-14 violates OKF §9, which requires
date headings in ISO 8601 YYYY-MM-DD form. The log is date-grouped by design; the release map in
the preamble is the conformant place a version lives, and okf validate will fail the other form.
Lead the changelog entry with what was learned, not what was touched. A file list is recoverable from git; the synthesis is not. If three corrections in a release converge on one structural point, say the point.
Everything below must pass before the tag.
BUNDLE=knowledge
# 1. Spec conformance, including expiry (§5.5) and log headings (§9)
okf validate "$BUNDLE" # exit 1 on any ERROR; stale concepts appear as WARN findings
okf lint "$BUNDLE"
# 2-3. Nothing claims verification it cannot have had, and the release is named inside the
# bundle: both are gates in okf-quality's .lefthook.yml. --force because lefthook skips every
# command when nothing is staged, and exits 0 having checked nothing.
lefthook run pre-commit --force
# 4. No heading violates §9 (a release heading is the way this goes wrong)
grep -nE '^## ' "$BUNDLE/log.md" | grep -vE '^[0-9]+:## [0-9]{4}-[0-9]{2}-[0-9]{2}$' \
&& echo "FAIL: non-ISO date heading above (OKF §9)" \
|| echo "all log.md headings are ISO dates"
To triage expiry before it fails, use Step 1's listing — okf validate tells you what is already
stale, not what is about to be.
verified entry looks identical afterwards. Say the source was unreachable, or find another route.okf-concept — how a claim gets sourced and tiered in the first placeokf-bundle — the scheduled gate wiring that makes expiry visible at allrelease-prep (project-maintenance-skills) — the surrounding release mechanicsWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/okf-bundleScaffold or restructure an Open Knowledge Format bundle — the directory layout, the reserved files and their constraints, link conventions, versioning, and gate wiring. Use when creating a new OKF bundle, extracting one from a parent repository, or auditing an existing bundle's structure.
/okf-conceptAuthor or revise a single concept in an Open Knowledge Format bundle. Use when adding a concept to an OKF bundle, correcting one, deciding whether a subject earns a file at all, choosing its `stale_after`, or wiring per-claim attribution between footnotes and `sources`.
/okf-qualityWire the quality gates for an OKF bundle repository — which checks run on every commit, which run on a schedule, and how to make the `okf` CLI fail a build, because it exits 0 on warnings. Use when creating a bundle repository, adding hooks or CI to an existing one, after a gate passed something it should have failed, or when scheduling the expiry sweep. Complements setup-git-hooks with the checks only a bundle needs.
okf-skills@jrjsmrtn-skills is listed by jrjsmrtn/jrjsmrtn-skills — review the source before installing
npx claudepluginhub jrjsmrtn/jrjsmrtn-skills --plugin okf-skills