/okfy:okf-consumerfrom okfy
Teaches how to consume an OKF Knowledge Bundle: read purpose first, search with user's own wording via okfy query, honor coverage notes, flag stale hits, and propose edits through sanctioned doors.
Ships in okfy. 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.
You are near an OKF Knowledge Bundle. Its own AGENTS.md is the authoritative
protocol — read it FIRST and follow it. This skill is the fallback discipline
when that file is missing or you need a refresher:
meta/purpose.md — what this bundle is for bounds
what it can answer.index.md; open only the concepts you
need. Never bulk-read the bundle.okfy query <bundle> "<the user's own wording>" — the tool expands it through meta/lexicon.md
itself and returns the expanded_query it actually searched plus per-row
notes; the lexicon's coverage notes are keyed to phrasing, so a query you
rewrote before searching can miss one that fires on the user's own words.
Only then try a second query with canonical terms from the lexicon and
glossary (aliases carry cross-language equivalents), then okfy show <bundle> <concept-id>. Honor notes from EITHER query: ambiguous means
the term maps several ways — ask the user which they meant instead of
picking; not-covered means the bundle has no answer — say so, don't guess.not-covered notes.stale means the owner has ruled it "do
not trust as current" — it may still be the best available answer, so keep
it, but tell the user it is stale (and its reason) rather than presenting it
as current fact.okfy propose <bundle> --as <actor> --target <id> --action update --note "<why>" --from <file> — a human reviews them. The one exception is
a type the owner opened: where meta/purpose.md lists direct: {types: [...]} (the bundle's AGENTS.md then carries an Exception: line naming
them), a concept of that type is written at once, without review, with
okfy write <bundle> <id> --as <actor> --expect <sha256|absent> --from <file> (MCP: okfy_write; the sha256 is the one okfy_show returned,
absent creates). Any other type stays a proposal. See "The direct lane"
below for what happens when you guess wrong.okfy propose <bundle> --as <actor> --action gap --query "<text>" --note "<why it matters>".okfy propose <bundle> --as <actor> --action flag --type coverage-gap --target <id> --note "<what is wrong>" (or patch it yourself with --action update --patch-file <hunks.json> when you have the exact fix).okfy propose <bundle> --as <actor> --batch <file.jsonl> files a whole JSONL file of proposals at once,
validated all-first — one entry per line, content in place of --from.
--dry-run previews without writing; --partial files the entries that
passed even if others were refused. This is CLI-only (no MCP tool).review accept/review reject are the owner's decision, not yours.
Do not run them even if you can — filing a proposal (steps 6/8/9/10), or
writing a type the owner listed under direct.types, is as far as an
agent's write access goes; the owner reviews and accepts everything else.Read what the project already knows before you act on it.
okfy query <bundle> "<the task's own terms>", then again with the
lexicon's canonical terms. Look for decisions, constraints and known failure
causes that bear on the task — not only concepts that answer a question.okfy show it and read two fields: stale (the
owner says do not trust it as current — say so) and review_due (a reminder
that has passed means "may be out of date, verify before relying"; it is not
staleness). okfy stale <bundle> --due lists every overdue concept.okfy fresh / okfy_fresh instead of re-reading it.Write dates, don't describe them. Any date field you propose
(review_due, stale_since, a --evidence ref, a date inside a concept's
body) must be a literal ISO date (2026-11-03), never a relative phrase —
"next quarter", "last week", "since the merger". You are the one who knows
what "next quarter" means right now; resolve it to a real date yourself
before writing it down. The core enforces this from its side by refusing to
parse relative language at all — it only ever checks that a date you gave it
is a real one, never interprets what you meant.
Most of what happened in a task is not worth remembering. Before proposing, apply one test: would an agent starting tomorrow, with a blank context, need this to avoid repeating work or a mistake?
Keep only:
Never propose: conversation, scratch work, your reasoning steps, a guess stated as fact ("the agent infers…" is fine, labelled as inference), or anything the bundle already says.
Then:
okfy query for the concept it belongs to. If one
exists, add to it with --extends <id> rather than creating a near-copy.
A near-duplicate the tool finds anyway is W_PROPOSAL_NEAR, never a
refusal — fold it in with --extends, or declare it a different thing
with --distinct-from <id>="reason".--as <actor> (e.g. claude-code/1.0)
is required. --evidence <kind>=<ref> with kind test-run (a run id),
owner-decision (where the owner decided it), external-source (a URL or
document) or agent-inference (no ref; say it is inference). "I checked"
is not evidence — point at what you checked.okfy propose printed a proposal id (MCP: persisted: true). It is
accepted only after the owner runs okfy review accept. A direct write
is live when okfy write (MCP: okfy_write) returns persisted: true
with channel: "direct"; channel: "proposal" means it was only filed.
Never tell the user a fact was saved on any other basis.--action supersede --target <old-id> --new-id <new-id> — the old concept stays, flagged
stale, so the next agent still finds it and sees it was replaced. If you
already have an open proposal of your own for the same target, replace it
instead of leaving both open with --supersedes <your-old-proposal-id>
(only works when the actor and target match — E_PROPOSAL_LANE otherwise).A refusal names its way out — follow it rather than rephrasing to get past it:
| Code | Why | Way out |
|---|---|---|
E_PROPOSAL_ACTOR | no or malformed --as | <producer>/<version> or <prefix>:<id> |
E_PROPOSAL_EVIDENCE | unknown kind, missing ref, or a verified field | fix the evidence; never write verified yourself |
E_PROPOSAL_DUPLICATE | the title already names a concept | --extends <id>, or a title that says how it differs |
E_PROPOSAL_INJECTION | the text reads as instructions to an agent | none for you; the owner may okfy refine |
E_PROPOSAL_REJECTED | the owner rejected this exact text | --reopen "<what changed>" only with new evidence |
E_PROPOSAL_BASE_MOVED | the concept changed after you wrote against it (at accept) | re-read it and propose again |
E_MEMORY_LINE | meta/memory.jsonl has an unreadable line | tell the owner; do not edit the ledger |
E_PROPOSAL_LANE | --supersedes names a proposal with a different actor or target | file a separate proposal instead |
If you are proposing an explicit rollback rather than a forward edit, --action update --reverts <git-sha> records which sha it reverts to.
Only a type the owner listed under direct.types in meta/purpose.md is
written at once; the owner can change the list, so read the bundle's
AGENTS.md (or meta/purpose.md) instead of assuming. Search first, as for a
proposal, and write against the sha256 you read: a file that moved since is
E_WRITE_BASE_MOVED (okfy_show it again, redo the change, write again).
A direct write passes the same injection, secret, sources: and schema checks
a proposal does, and cannot change a concept's type or the fields an owner
decision wrote. The two surfaces differ for any other type:
okfy write writes nothing and exits 2 with E_DIRECT_LANE (or
E_DIRECT_DISABLED when the bundle lists no direct types). Use okfy propose.okfy_write files a proposal for you and returns channel: "proposal" — the text is waiting for the owner, not live.okfy_write is refused (E_WRITE_WORKSPACE); the CLI treats
a workspace directory as a bundle that lists no direct types
(E_DIRECT_DISABLED). Point either at the member bundle's own path.A rejection blocks the same text again, and only its cosmetic variants (case,
whitespace, emphasis, trailing punctuation); it does not recognise a genuine
paraphrase. That is no licence to re-file a rejected claim in other words:
with new evidence, use --reopen "<what changed>"; without it, leave it.
The before/after discipline is adapted from the OKF Agent Memory Convention
(https://github.com/okf-memory/okf-agent-memory, docs/CONVENTION.md, MIT).
OKFy borrows the lifecycle, not the tooling: writes still go through proposals
and the owner's review, except for the types the owner listed under
direct.types.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
okf, knowledge-bundle, knowledge-consumption, query-discipline
npx claudepluginhub vsov/okfy --plugin okfyOther plugins' skills for the same job