by ekar-is
The OKF toolkit for Claude Code — author, maintain, validate & visualize Open Knowledge Format bundles. Plugin, agent skills, and a GitHub Action.
# Add to your Claude Code skills
git clone https://github.com/ekar-is/okf-skillsokf-skills is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ekar-is. The OKF toolkit for Claude Code — author, maintain, validate & visualize Open Knowledge Format bundles. Plugin, agent skills, and a GitHub Action. It has 460 GitHub stars.
okf-skills's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/ekar-is/okf-skills" and add it to your Claude Code skills directory (see the Installation section above).
okf-skills is primarily written in Python. It is open-source under ekar-is on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh okf-skills against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Skills and scripts to author, maintain, validate and visualize Open Knowledge Format bundles: markdown your team and your agents both read.
Open the live demo: an example bundle (a fictional storefront) as an interactive graph. Click a node for the rendered concept, its derived trust tier and staleness, its sources and backlinks. Nothing leaves the page.
Documentation: what OKF is, how to start, and what each tool does.
OKF (the spec) is, in its own
words, "an open format for knowledge: the metadata, context, and curated
insight about data and systems". A bundle is a directory of Markdown files with
YAML frontmatter. OKF has no schema registry, no central authority and no
required tools: if you can cat a file you can read it, if you can git clone
a repository you can ship it. The frontmatter can carry provenance, trust,
freshness, lifecycle and attestation signals, so a reader can tell a confirmed
fact from a stale guess. The spec was first published by Google Cloud's Data
Cloud team (announced June 2026)
and is now developed in the open-knowledge-format organization.
okf-skills is an independent, community toolkit for OKF. It helps an agent produce, maintain, consume, validate, visualize and backfill bundles, driven by the vendored spec and a deterministic conformance checker. It ships four ways: a Claude Code plugin, agent skills via skills.sh, a GitHub Action that needs no agent, and a read-only MCP server.
Not the official project. okf-skills is not maintained by or affiliated
with the OKF authors. The OKF project ships its own agent skills,
okf-generate and okf-consume, and okf-skills
complements them rather than replacing them. You do not need okf-skills to use
OKF: a bundle is plain Markdown, and any editor writes it.
This repo documents itself in OKF: its architecture and decisions live in
.okf/, rendered as a live self-graph
and validated on every push.
| Channel | Command | Notes |
|---|---|---|
| Claude Code plugin | /plugin marketplace add ekar-is/okf-skills then /plugin install okf-skills@ekar-is |
Skills, subagents, Stop hook and MCP server. The full toolchain. |
| Agent skills (skills.sh) | npx skills add ekar-is/okf-skills |
Tested in Claude Code. Other hosts that support the Agent Skills format may load them, but that is untested. Installs the okf, validate, visualize and backfill skills. Backfill needs the plugin's subagents, see below. |
| GitHub Action | uses: ekar-is/okf-skills@v1 |
Validates a bundle in CI, no agent needed. |
| MCP server | uv run servers/okf_mcp.py .okf |
Any MCP host. Bundled with the plugin, nothing to configure there. |
| Local development | claude --plugin-dir /path/to/okf-skills |
No marketplace. |
The scripts need uv (or python3 with pyyaml).
One repo serves both layouts: .claude-plugin/ makes it a marketplace,
skills/<name>/SKILL.md makes it skills.sh-discoverable, and scripts resolve
through ${CLAUDE_SKILL_DIR} so they run from either path. The backfill skill
dispatches the two subagents in agents/, which live outside skills/, so
backfill works from the plugin install only.
| Part | Works on | Needs |
|---|---|---|
| validate, visualize | Any OKF bundle, any domain | Python 3.11+ with uv (or pip install pyyaml) |
| okf skill (author, maintain, consume) | Any domain | A coding agent, written for Claude Code first |
| backfill | A git repository | Claude Code session history and the plugin's subagents. Claude Code only |
| Stop hook (enforced upkeep) | A git repository | Claude Code, opt-in via x-okf-skills-upkeep: enforced in the root index.md |
| MCP server | Any OKF bundle (the project's .okf/ by default, or $OKF_BUNDLE) |
Any MCP host over stdio. Claude Code wires it automatically |
The .okf/ location is an okf-skills convention, not part of the spec. The
validator, visualizer, MCP server, Action and okf skill accept any bundle path.
The Stop hook and the backfill skill only use .okf/.
Capture knowledge. Ask Claude to "document the auth service in OKF", or:
/okf-skills:okf produce .okf
Backfill a repo that predates the bundle. Event-sources git history and Claude session transcripts into concepts, with a deterministic extractor and an auditable map/reduce over subagents:
/okf-skills:backfill .
Validate before committing. The checker is deterministic, §11 of the spec,
not an eyeball pass. --strict fails on any spec warning, and a concept with
only type passes it. --lint adds the okf-skills house style (warnings for a
missing title, description, tags or generated), which is optional and
not spec. --migrate upgrades v0.1 and v0.2 bundles to v0.3 in place:
/okf-skills:validate .okf --strict
uv run skills/validate/scripts/okf_validate.py .okf --strict # zero-config
uv run skills/validate/scripts/okf_validate.py .okf --strict --lint # plus house style
uv run skills/validate/scripts/okf_validate.py .okf --max-warnings 5
Gate it in CI with the composite action. @v1 tracks the latest release
while the repo is pre-1.0. Pin @okf--v<version> to freeze it. The step exposes
the validator's JSON as the report output.
- uses: ekar-is/okf-skills@v1
with:
bundle: .okf
strict: "true" # or: max-warnings: "5"
Visualize the graph as a self-contained viz.html
(live example). Every concept gets
a deep link (viz.html#services/auth-api), and each panel shows two derived
badges: the §5.3 trust tier and staleness once stale_after has passed. OKF
stores neither, so both are computed at render time. Above 1000 concepts the
layout falls back to concentric. --layout cose overrides, and --max-nodes N refuses.
/okf-skills:visualize .okf
uv run skills/visualize/scripts/okf_visualize.py .okf -o viz.html \
--title "My project" --link "https://github.com/me/project"
Read a bundle over MCP. Three read-only tools: nothing writes and no id
resolves outside the bundle root. Inside Claude Code the server starts with the
plugin on ./.okf and appears as mcp__plugin_okf-skills_bundle__*. For Claude Code
it duplicates Read and Grep, and the decision record
says so. It ships for the hosts that have nothing else.
| Tool | Returns |
|---|---|
search_concepts(query, limit) |
Concept cards (id, type, title, description, status, current, superseded_by, tier, stale_after, stale). Metadata hits rank above body hits. |
read_concept(concept_id) |
One concept verbatim, frontmatter included. The id is the bundle path without .md. |
get_neighbors(concept_id) |
outgoing and incoming cards from markdown links and bundle-internal sources. |
Any other host: run uv run servers/okf_mcp.py <bundle> as a stdio server
(a bundle path, else $OKF_BUNDLE, else ./.okf).
Keep it up to date. Two opt-in modes. Soft: paste
templates/CLAUDE-okf.md into your CLAUDE.md so
Claude consults .okf/ before a task and writes back after. Enforced: add
x-okf-skills-upkeep: enforced to .okf/index.md's frontmatter to arm the plugin's dormant
Stop hook, which blocks finishing when tracked files changed but nothing under
.okf/ did. If the bundle documents git repos checked out inside the project,
add x-okf-skills-recursive: true (or a depth, x-okf-skills-recursive: 3) so the hook finds them and
counts their uncommitted changes too. Depth is how many directory levels below
the project root a repo's directory may sit (repos/app is 2), and true means 6. The older unprefixed upkeep / recursive keys still work as
deprecated aliases. OKF_HOOK=off overrides any bundle. Details:
stop-hook concept.
| Component | What it does |
|---|---|
skills/okf/ |
Produce / maintain / consume bundles from the spec and templates. Auto-triggers in repos that have one. scripts/okf_init.py scaffolds a starter bundle. |
skills/validate/ |
scripts/okf_validate.py: standalone §11 conformance checker, --strict, --max-warnings, --lint, --json, --migrate. |
skills/visualize/ |
scripts/okf_visualize.py: bundle to viz.html. |
skills/backfill/ |
Reconstruct a bundle from history. scripts/okf_backfill_events.py extracts events and emits capped diffs deterministically. |
agents/ |
event-analyzer (map, cheap tier) and bundle-weaver (reduce, the only writer) for the backfill. |
servers/okf_mcp.py |
The read-only |