OKF Knowledge Base
Create and maintain structured knowledge bundles using Open Knowledge Format specifications.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/okf-knowledge-base-inkeep/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Open Knowledge Format (OKF) v0.2 guidance. Use when creating, reading, reviewing, or maintaining an OKF bundle; responding to OpenKnowledge `okf` plugin warnings; or choosing types, provenance, links, indexes, or logs.
What this skill does
Open Knowledge Format (OKF)
OKF v0.2 is a portable format for agent-readable knowledge: Markdown files, YAML frontmatter, and standard links. The /open-knowledge skill governs tool use; this skill covers OKF semantics.
Core rules
- A bundle is a directory tree of
.mdfiles. Each non-reserved file is one concept; its path without.mdis its ID. - Every concept needs parseable frontmatter with a non-empty string
type. No other field is always required. - Types are an open vocabulary. Consumers must accept unfamiliar types and metadata.
- Use standard Markdown links for portable relationships. Broken links and a missing index are allowed.
index.mdandlog.mdare reserved at every level. Use lowercase filenames.- An
index.mdnormally has no frontmatter; only the root index may declareokf_version: "0.2". - A
log.mdis newest-first; entry headings begin with an ISO date —## YYYY-MM-DD: Summary(the summary after the date is optional; a bare## YYYY-MM-DDis equally conformant). - OKF consumers read
.md, not.mdx.
Authoring judgment
- Make each concept the smallest useful link or citation target. Choose a stable, descriptive type;
Documentis only a generic fallback. - Do not invent facts, relationships, resources, sources, verification, or history. Missing knowledge is better than false structure.
- Use
title,description,resource, andtagsonly when they add real information. - Record provenance in
sources. Join claim-level citations with matchingsources[].idand Markdown footnotes. - Keep authorship and verification separate:
generatedsays who produced content;verifiedsays who confirmed it. Use exact lowercasehuman:andprocess:prefixes when applicable. - Write every provenance timestamp as an ISO 8601 datetime with an explicit UTC offset (
stale_after: 2026-12-31T00:00:00Z), never a bare date and never an offsetless time. This coversgenerated.at,verified[].at,stale_after,sources[].last_modified, and bothusage_windowbounds. Alog.mdentry heading is different: it stays a plainYYYY-MM-DDdate. - Treat
status: deprecatedand expiredstale_aftervalues as trust signals, not validation errors. - For
type: Attested Computation, follow the declared runtime and parameters. Do not rewrite the sanctioned computation.
Read and maintain a bundle
- Start with the nearest
index.md, inspect frontmatter, then follow only relevant links. - Prefer current, verified sources, but tolerate unknown types and incomplete links.
- If the bundle conflicts with an assumption, trust the bundle; if it is missing or inconsistent, say so.
- Write durable discoveries back to the relevant concept and authored enumerations.
- Add a truthful dated
log.mdentry after durable changes when the bundle uses a log. - Read legacy
timestampand body citations, but prefer v0.2generated.atandsourceswhen updating a concept. Never invent provenance while migrating.
OpenKnowledge's okf plugin
The optional project plugin provides continuous portability feedback without blocking writes:
- Write-time warnings and project audits check structure, frontmatter, reserved files, links, and
.mdxuse. .ok/okf/*.schema.jsoncontains the precise field contracts. Read these generated files instead of guessing; do not edit them.- Deterministic lint findings establish conformance. Agent judgment still establishes whether metadata is true and useful.
- Optional index generation maintains
index.mdfiles. Generated indexes are machine-owned: never edit them, because OpenKnowledge replaces their contents. log.mdremains authored, not generated.
The plugin is off by default and each rule can be disabled. Its value is early warning when OpenKnowledge-native content would be misread by another OKF consumer.
Related skills
Art History Movements
Tibsfox
Learn 12 major art movements from Renaissance to contemporary, their key artists, and historical context.
Color Theory
Tibsfox
Learn color properties, mixing systems, and schemes for art and design.
Creative Process
Tibsfox
Guide artists through idea development, critique, and portfolio creation.
Lecture to Notes
ysyecust
Convert YouTube, Bilibili, or Twitter lectures into structured LaTeX notes and PDF.