/okf-skills:okf-conceptfrom okf-skills
Author 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`.
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.
One concept is one Markdown file with YAML frontmatter. This skill covers writing a new one or revising an existing one so that every claim in it can be traced to the source that supports it, and so that a reader can tell how long the claim is expected to hold.
stale_afterNot for: re-verifying a corpus on a cycle (okf-verify), or standing up a new bundle
(okf-bundle).
index.mdKeep these apart. Confusing them is how a house style gets defended as conformance, and how a real conformance break gets waved through as taste.
| Required by OKF v0.2 | House convention | |
|---|---|---|
| Parseable YAML frontmatter | yes | |
Non-empty type | yes | |
Footnote label is the join key into sources[].id | yes — §5.1, and okf lint checks it | |
log.md headings are ISO 8601 dates | yes — §9 | |
title, description, resource, tags, status | no — recommended; okf lint warns | used throughout |
verified, stale_after, generated | no — optional families | load-bearing here |
| Every footnote definition is referenced, and every reference defined | no — upstream warns, okf lint | ours as a rule; okf reports it at WARN and exits 0 |
A stale_after tier table | no | ours |
Everything in the right-hand column is a choice a bundle makes. Write it down in the bundle's own
CLAUDE.md so the next author inherits the choice rather than re-deriving it.
Only decompose subjects that carry content. A bundle of one-line stubs is worse than one page of prose: it multiplies files to maintain while adding nothing a reader could not have read in place.
If a subject has nothing but a definition, leave it out until sourcing earns it a file. If it has a definition plus a distinction that changes what a reader would do, it earns one.
type is the one required key. A bundle's type vocabulary is its own; keep it small and keep each
value meaning one thing. The vocabulary in use in the reference corpus:
BOM Type · Format · Identifier · Specification · Data Source · Tool · Practice ·
Organization · Explanation · Attack · Regulation
Note Specification and Regulation are deliberately distinct: a specification describes, a
regulation obliges. Collapsing them loses the distinction that makes the second worth recording.
Order matters. Writing first and sourcing afterwards produces fluent prose that the sources turn out not to support — and the rewrite costs more than the research would have.
Two sourcing rules, both learned by getting them wrong:
bom-1.6.schema.json has four, and the missing one changed what the
concept claimed. Prefer the schema, the RFC, the enacting text, the statute.Occasionally a subject is known to exist — minuted, voted, announced — while its actual text cannot be read. The tempting moves are both wrong: skip it, or quote a superseded draft that is reachable.
A status record is the third option. It documents existence, adoption, force and publication on primary sources about those facts, and explicitly declines to say what the subject contains.
Worked example: an organisation's policy approved by a minuted unanimous vote, effective immediately, and nine months later absent from the page its own minutes said it would appear on — with the agreed text surviving only as a comment on an unreachable ticket. A published draft of it existed, and quoting that would have been the error the corpus exists to prevent.
Three rules, or it becomes the thing it is avoiding:
sources labelled as superseded,
so the next reviewer does not rediscover it and assume it is current.The distinction that keeps this honest: a status record makes different claims, and so needs different sources — not weaker ones.
The footnote label is the join key. A footnote whose label is not a sources[].id attributes
nothing while looking like it does — the reader sees a citation, the consumer resolving attribution
programmatically finds nothing.
---
type: Specification
sources:
- id: slsa-spec
title: 'SLSA v1.2 specification'
resource: https://slsa.dev/spec/v1.2/
---
The Source track grades a revision, not the artifact a consumer fetched.[^slsa-spec]
[^slsa-spec]: [SLSA v1.2 specification](https://slsa.dev/spec/v1.2/)
Three failure modes, all invisible on rendered output:
| Fault | What the reader sees | Caught by |
|---|---|---|
Label is not a sources[].id | a citation that resolves to nothing | okf lint (§5.1) |
| Label referenced, never defined | a dangling marker | okf lint (okf/sources/footnote-undefined) |
| Label defined, never referenced | nothing at all — the source silently vanishes | okf lint (okf/sources/footnote-unreferenced) |
The third is the quiet one. Run the checks in Validation rather than reading for them. okf reports
all three at WARN and exits 0, so a gate that only looks at the exit code passes a concept with a
vanished source — see okf-gate, or read the findings.
An uncited sources[].id is legitimate and should not be flagged: a narrative concept carries a
bibliography rather than per-claim attribution. Only the footnote→source direction is an error.
stale_after by volatility, not importancePick the tier that matches how fast the claims in this concept move. A default applied without thinking is how one corpus ended up with 40 of 61 concepts sharing a single date — a number reached for, not a judgement made.
| Tier | For |
|---|---|
| ~3 months | draft or beta specifications under active revision |
| ~4 months | version and capability claims about actively-shipping software; coverage counts that grow |
| ~6 months | registries and rosters; enums that move with a spec version |
| ~12 months | definitions, ratified specifications, structural mechanisms, attack mechanics |
| ~24 months | durable rationale — arguments rather than facts |
"Ratified" is weaker than it sounds. Two concepts in the reference corpus were filed at 12 months on the reasoning that ratified specifications do not move; the specification then shipped two minor versions and rewrote its threat taxonomy, reassigning letters that other concepts cited by letter. A specification under active development belongs at ~6 months whatever its status field says.
When the source names its own review date, use that instead of a tier. A policy stating "at the
latest this will be reviewed at the start of 2027" has told you when it may change; a tier is a
guess about the same question and a worse one. Set stale_after just after the named date and say in
the re-verification notes that the source supplied it — otherwise the next reviewer reads an unusual
value as a mistake and rounds it back to a tier.
A concept about a decision still being made needs a watch as well as a date. An open pull
request, a draft under discussion, a vote not yet held: the ~3 month tier fits, but expiry notices
nothing that happens before it, and a proposal's state is exactly what moves. Say in the concept
that nothing in it is in force, name the venue whose state decides that, and see okf-verify —
When the source is a decision still being made — for what to read and the check that notices.
Clustering within a tier is fine and intended — concepts that share a volatility class tend to share sources, so re-verifying them in one sitting is cheaper. Clustering across classes, because nobody chose, is the failure this replaces.
verified only if you verifiedverified records an act, not a formatting step. Add an entry only when the claims were checked
against the source in this sitting. Absent is the honest default, and a corpus full of migrated prose
nobody has re-checked should say so.
Moving a stale_after because the volatility class was misjudged is not verification and earns
no verified entry. See okf-verify.
First, okf. The vendor-neutral CLI (okfcli/okf) covers the
spec, including the footnote→sources[].id join and both footnote-definition directions, which
§5.1 makes a conformance matter rather than a style one (measured against v0.5.0, 2026-10-27):
okf validate "$BUNDLE" # §5.2 datetimes, §5.5 expiry, §8 index frontmatter, §9 log headings, links
okf lint "$BUNDLE" # the same findings, warnings only; footnote faults carry okf/sources/footnote-*
Findings carry a stable rule ID (okf/<family>/<check>), and footnote faults, dead links in a
concept body (okf/links/broken) and stale are WARN, so both commands exit 0 on them. Gate on the
findings, not the exit code — okf-quality has the full gate set:
okf validate "$BUNDLE" | yq -p=json -o=json '.findings[] | select(.rule | test("footnote|links/broken|lifecycle/stale$"))'
Entry formats okf enforces (measured 2026-10-27, and each one cost a failed first fixture):
sources[] needs resource (ERROR — url does not substitute); verified[] needs by and at;
by is human:<id>, process:<id> or <producer>/<version> (§7); at is a full ISO 8601
datetime, so 2026-10-01 warns and 2026-10-01T00:00:00Z does not.
Then the one check okf does not make (measured against v0.5.0, 2026-10-27): verified with no
sources to have checked. A concept carrying a complete verified entry and no sources produces
no finding from either command. The script lives in okf-verify's Validation, where it runs over the
whole bundle.
stale_after without re-checking. No gate can tell the difference, which is exactly
why it has to be a rule.verified for a whole tier because a review "covered" it. Then the field means
"someone looked at the tier", not "someone checked this concept".stale_after chosen by importance. Important and fast-moving are unrelated axes./ means this bundle's root and does not
cross a bundle boundary, even when two bundles sit side by side on disk. Cite the other bundle in
prose instead.A concept is YAML frontmatter above prose, with footnote labels that must stay joined to
sources[].id. That is exactly the shape naive editing corrupts, and okf validate runs after the
damage.
yq, never a regex. stale_after, verified, sources[].id
are structured data; treating them as text is how a two-space indent change becomes a parse error.sed -i. Assert the pattern is
present before writing, and prefer failing loudly to writing hopefully.mq queries Markdown structurally, which beats regex for "find every footnote definition" or
"list the headings". Be cautious about using any processor to rewrite a concept: round-trip
fidelity is a real risk, the markdown-fidelity harness exists to measure it, and the ranking
between processors has already reversed once — so check current numbers rather than trusting a
remembered result.The failure mode worth naming: an unasserted replace is a silent no-op. It cannot distinguish "already correct" from "my pattern is wrong", and both return success. Three edits failed this way in one session — a folded YAML scalar where the search string spanned a line break, an indentation mismatch in a bullet continuation, and a link-reference style the file did not use. Each reported success and changed nothing.
old = "stale_after: 2027-02-01"
assert old in text, "pattern not found — check before assuming it applied"
text = text.replace(old, "stale_after: 2027-01-15", 1)
okf validate and okf lint are the gate, not the editor. They catch a corrupted concept; they do
not catch an edit that never happened.
description: is a summary, and it goes stale firstA concept's own description: is the summary closest to the body and the least likely to be
re-read. It is written once, when the concept is created, and the body is then corrected around it
for months.
⚠⚠⚠ Measured on one corpus, 2026-08-26: five of fifty descriptions asserted something the concept's own body denied. The sharpest opened line 4 with "neither European body lists it at all" while line 67 of the same file read "This record said neither European body lists SUSI. That was wrong." Two more repeated a prediction the corpus's overview had struck through four days earlier.
Nothing detects this. okf lint warns when description is absent and never reads it.
description: line finds the candidates cheaply; reading
decides.git log -L form that silently returned nothing for every file. Run it against a file you know
has drifted; a clean result from an unproven check is not a clean result.⚠ And a colon-space ends a YAML scalar. description: A vehicle turned round: the lines swap
stops the file parsing, and okf reports it as a bundle-level I/O error with no filename while
every downstream gate fails with it. Use an em dash, or quote the whole value. It recurs most while
rewriting a description, where the frame already looks correct.
okf-bundle — stand up the bundle a concept lives inokf-verify — the cycle that re-checks these claims before they expirediataxis-create (diataxis-skills) — for prose whose job is teaching rather than reference;
an OKF concept is closest to Diátaxis reference and explanation, and the two frameworks
answer different questions about the same pageWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
okf-skills@jrjsmrtn-skills is listed by jrjsmrtn/jrjsmrtn-skills — review the source before installing
npx claudepluginhub jrjsmrtn/jrjsmrtn-skills --plugin okf-skills4 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-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-verifyRun 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.