okf
Skill458 starsChanged 6 days agoMITView on GitHub
Author, maintain, and consume Open Knowledge Format (OKF) knowledge bundles — portable markdown + YAML frontmatter that both humans and agents read. Use when capturing knowledge into an OKF bundle, whether software assets (services, APIs, schemas, runbooks, decisions) or data and business knowledge (tables, datasets, metrics, policies, processes, glossaries), when updating one after its source changes, or when a project contains an `.okf/` (or other OKF) bundle that should inform the task. Triggers on: "document this in OKF", "update the knowledge bundle", "capture this as a concept", or any work in a project that has an OKF bundle.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- serradura/okftheir own version, first seen Nov 29, 2026
- cofin/flowtheir own version, first seen Nov 28, 2026
- scaccogatto/okf-skillsword for word, first seen Nov 26, 2026
- Soli0222/skillstheir own version, first seen Nov 22, 2026
- superwebpros/claude-skillstheir own version, first seen Nov 16, 2026
- narr07/skillstheir own version, first seen Nov 15, 2026
Other versions20 projects use a version of this.
Word for word · 1
- scaccogatto/okf-skills★ 458100% same
Edited · 0
None found.
Wrote their own version · 19
- serradura/okf★ 193same name
- gannonh/kata★ 67same name
- sniperunder123/okf-knowledge★ 65same name
- gannonh/kata-symphony★ 63same name
- saschb2b/skills★ 22same name
- cofin/flow★ 19same name
- k3ybladewielder/skills★ 7same name
- eloybar/okf-skills★ 5same name
- EwenSellitto/skills★ 4same name
- 18studio/simple_okf★ 3same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 3 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Body: prefer structural markdown (headings, tables, lists, fenced code).
- Very specific: line 92
Never write a verified event for content you generated.
- Very specific: line 94
Never invent or infer a human:<id>, not from git config and not from the OS user.
- Very specific: line 143
Starting a brand-new bundle?: Use the init fast-path instead of hand-writing the first files — it scaffolds a conformant index.md, log.md, …
- Very specific: line 162
Write each concept from templates/concept.md: set a descriptive type, fill recommended fields, record generated with your own actor and the …
- Very specific: line 165
Do not add verified (see the honesty rules above).
- Very specific: line 166
Add/refresh index.md per directory (and okf_version: "0.3", title, description in the root index frontmatter, which you keep intact when …
- Very specific: line 176
Update the body and generated.at (with your own actor in generated.by, never a verified event for your own edit).
- Very specific: line 183
Update the relevant index.md files.
- Very specific: line 188
Read the bundle-root index.md first for progressive disclosure (its description says when the bundle applies), then follow links only into …
- Distinctive: line 195
Treat broken links as not-yet-written knowledge, not errors.
- Distinctive: line 198
If you learn something durable while working, switch to maintain and write it back.
- Distinctive: line 203
Never eyeball conformance — run the deterministic checker.
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Open Knowledge Format (OKF) skill
OKF represents knowledge as a directory of markdown files with YAML frontmatter. It is minimal by design: no schema registry, no runtime, no SDK. Your job is to produce, maintain, and consume OKF bundles conformant with the spec, not your memory of it.
Always read the canonical spec before non-trivial work: reference/SPEC.md. It is the verbatim OKF v0.3 specification and the source of truth for every rule below.
The hard rules
A bundle is conformant (§11.1) when every frontmatter block parses as a YAML
mapping (no duplicate keys, no custom tags) and the reserved files follow §8
and §9. A concept is a non-reserved .md file with a non-empty type
(§3.2). A .md without frontmatter or type (a README.md, a SKILL.md) is
not a concept: consumers skip it and the validator warns. Files and directories
starting with . are not part of the bundle. Everything else is soft guidance.
Consumers MUST tolerate missing optional fields, unknown types, unknown keys and
broken links, never reject a bundle over them.
Conventions to apply
- One concept = one file. The file path (minus
.md) is the concept ID. - Frontmatter:
typeis required. Addtitle,description,tagswhen they aid consumption; addresource(a canonical URI) only for concepts bound to a real asset — omit it for abstract concepts. - Body: prefer structural markdown (headings, tables, lists, fenced code).
Conventional headings:
# Schema,# Examples,# Computation. - Cross-links and path fields (§6): a value starting with
/resolves from the bundle root, any other value from the directory of its file. Both are valid, and the spec recommends neither (§13.2). This plugin's convention for path fields (computation,executor.resource,attester.resource,superseded_by, an in-bundleresourceorsources[].resource) is the/form: it survives moving the file, and a bare value that a v0.2 bundle meant from the root changes meaning under v0.3. Percent-encode spaces. A link asserts an untyped relationship, its kind lives in the surrounding prose. - Extension keys (§4.1): allowed at any level. Name your own
x-<producer>-<name>(that prefix is reserved for extensions), and keep keys you do not know when you edit a file. - Reserved files:
index.md(directory listing, no frontmatter, except the bundle-root index, which carries the bundle metadata of §8.1:okf_version(quoted),title,description(when an agent should pick this bundle),license, and this plugin's extension keys (§4.1):x-okf-skills-upkeep: enforcedto arm the Stop hook, plusx-okf-skills-recursive: true(or a depthn: levels below the root,trueis 6) to make the hook watch nested git repos. The older unprefixedupkeep/recursivestill work but are deprecated, and/okf-skills:validate --migraterenames them) andlog.md(ISO-dated history, newest first, no frontmatter). Never use these names for concepts. - What goes in
log.md(an okf-skills convention): §9 only says a log records the history of changes. This plugin keeps it to lifecycle events, written in the bundle-rootlog.md: a bundle created, a concept deprecated or retired, one concept superseding another, concepts regenerated after their source changed, a verification pass. Routine edits to a concept do not get an entry: itsgeneratedand git already record them. A log is append-only, so never rewrite or drop an existing entry.
The families (all optional, all worth filling)
- Trust (§5.2):
generated: { by, at }— who produced the current content and when.verified: [{ by, at }]— who confirmed it since (a bare mapping is one entry, and bothbyandatare required). Writebyin the actor convention (§7):<producer>/<version>for an agent,human:<id>for a person,team:<id>for a group,process:<id>for an automated job. Consumers key trust tiers off thehuman:prefix (ateam:sign-off is only machine-confirmed), so it must be true. A verification counts only when itsatis at or aftergenerated.at(§5.3): when you rewrite content, bumpgenerated.atand leave olderverifiedentries as history. The concept is no longer human-reviewed until a human confirms the new text. - Honesty rules for producers. These protect the one thing trust tiers are
for:
- Never write a
verifiedevent for content you generated. Verification is someone else confirming it. - Never invent or infer a
human:<id>, not from git config and not from the OS user. Usehuman:only when a named person actually wrote or confirmed the content and you were told who. If you are unsure, ask. - Record yourself in
generated.byas<producer>/<version>.
- Never write a
- Timestamps (§5): a date-time with an offset (
"2026-06-30T14:00:00Z") or a date only ("2026-06-30", start of that day UTC). Quote them. A date-time without an offset is invalid. Use the date-time form forgenerated.atandverified[].at. - Lifecycle (§5.4–5.5):
status: draft|stable|deprecated(absent means stable, any other value means not current),superseded_by: /path/to/new.mdon a deprecated concept that has a replacement, andstale_after, an absolute instant, not a TTL. Stale means "check again", not "false". Omitstale_afterwhen no review date is known. To move or rename a concept, leave a short deprecated concept at the old path withsuperseded_byset to the new one, so old links keep working. - Provenance (§5.1):
sources: [{ id, resource, title, author, usage_count, last_modified }]plus ausage_window: { from, to }sibling ofsourcesframing everyusage_count(an entry may carry its own to override it); ausage_countwithout a window warns.resourceis required per entry and may be a URL, a bundle path, or a scope descriptor. Attribute a specific claim with a markdown footnote whose label is the source'sid:…sharded daily.[^ga4-schema]plus a[^ga4-schema]: …definition. The label is the join key, it must match asources[].id. - Attestation (§10): a sanctioned computation is its own concept,
type: Attested Computation, carryingruntime(required),parameters,executor,attester, and the computation itself under# Computation(or acomputation:path). Concepts that need the value link to it. Never inline a number's SQL into the concept that narrates it.
Reading an older bundle? v0.1 superseded two constructs (Appendix B):
timestamp is now generated.at, and a body # Citations list is now
sources. A v0.2 bundle (or one declaring no version) may hold bare path
fields written from the bundle root: if one does not resolve from its file's
directory, try the root (§12.1). Read all of these, write v0.3, and when you
touch a legacy concept in maintain mode, fix it as part of the edit. The
validator warns on each, and --migrate rewrites a whole bundle.
Templates to copy: concept, index, log.
Default bundle location
By okf-skills convention (not spec), use .okf/ at the repository root unless the project already uses another
location. Commit it alongside the code it describes — knowledge as code.
Modes
produce — create or extend a bundle
Starting a brand-new bundle? Use the init fast-path instead of hand-writing
the first files — it scaffolds a conformant index.md, log.md, and a
getting-started.md concept with full recommended frontmatter in one shot:
uv run "${CLAUDE_SKILL_DIR}/scripts/okf_init.py" <target-dir> [--title "..."]It refuses to touch a directory that already has .md files unless --force
is given. Then extend it:
- Read reference/SPEC.md.
- Pick the source(s): code (derive concepts from source, READMEs,
docstrings, config), data catalogs and warehouses (tables, datasets,
metric definitions), docs/wiki (distill pages, policies and process
descriptions into concepts, record the originals in
sources), manual (decisions, playbooks, glossary terms). - Choose a directory layout by domain (e.g.
services/,datasets/,decisions/). One concept per file. - Write each concept from templates/concept.md: set a
descriptive
type, fill recommended fields, recordgeneratedwith your own actor and thesourcesyou actually read, cross-link related concepts. Do not addverified(see the honesty rules above). - Add/refresh
index.mdper directory (andokf_version: "0.3",title,descriptionin the root index frontmatter, which you keep intact when you regenerate the listing). A new bundle gets a dated Creation entry inlog.md. Extending an existing one does not. - Validate (see below). Fix every error before finishing.
maintain — keep a bundle in sync with reality
- Identify which concepts the change affects (search by
resource, path, or topic). This bookkeeping is exactly what agents are good at — touch every affected file in one pass. - Update the body and
generated.at(with your own actor ingenerated.by, never averifiedevent for your own edit); fix or add cross-links; create new concepts for new assets; mark removed assetsstatus: deprecated(withsuperseded_bywhen something replaces them) and note the deprecation inlog.mdrather than silently deleting context. Facing a whole v0.1 or v0.2 bundle rather than a stray field? Do not hand-edit it, run the validator's--migrateonce. - Update the relevant
index.mdfiles. Append a datedlog.mdentry only if the change is a lifecycle event (see What goes inlog.md). - Validate.
consume — use a bundle as context
- Read the bundle-root
index.mdfirst for progressive disclosure (itsdescriptionsays when the bundle applies), then follow links only into the concepts relevant to the task. - Weigh what you read:
status: draft/deprecatedor an unknown status, astale_afteralready past or unparseable, or no currentverifiedevent (one at or aftergenerated.at) all mean "check before relying on this". A deprecated concept withsuperseded_by: follow it and use the replacement. Treat broken links as not-yet-written knowledge, not errors. - Need a number an
Attested Computationcovers? Run its computation with values bound to the declaredparameters— never write your own query. - If you learn something durable while working, switch to maintain and write it back.
Validation (do this before declaring done)
Never eyeball conformance — run the deterministic checker. Invoke the companion
validate skill (/okf-skills:validate <bundle-dir> --strict), which ships the
checker. If that skill is not installed, run it directly:
uv run "${CLAUDE_SKILL_DIR}/../validate/scripts/okf_validate.py" <bundle-dir> --strictResolve every ERROR (hard §11.1 failures). Under --strict warnings also fail
the run (exit 1), so clear them too; drop --strict (or use --max-warnings N)
if you only want §11 conformance gated. A concept with only type passes
--strict. Add --lint if the project wants the okf-skills house style too
(warnings for a missing title, description, tags or generated): it is
optional and not spec.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

