An Agent Skills–compatible skill for working with OKF (Open Knowledge Format) v0.1 bundles — directories of markdown files with YAML frontmatter that capture knowledge (metadata, context, and curated insight around data and systems) in a form that is both human- and agent-friendly.
Compatible with: Claude Code, the Claude API Skills API, OpenClaw, and any other Agent Skills–compatible runtime.
📖 OKF spec: GoogleCloudPlatform/knowledge-catalog —
okf/SPEC.md
okf-builder is a procedural playbook for an AI agent. It guides authoring, reading, indexing, logging, and validating OKF bundles without imposing a new schema, registry, or toolchain. Concretely it covers:
- Authoring concepts — picking a
type, choosing a path, writing frontmatter, adding cross-links - Reading & traversal — using
index.mdfor progressive disclosure, tolerating unknown types and broken links - Index generation — synthesizing
index.mdfrom directory contents + frontmatter - Update logging — appending chronological entries to
log.md - Validation — checking the small set of hard conformance requirements from OKF §10
.
├── SKILL.md # The skill procedure (loaded by Agent Skills runtimes)
├── README.md # This file
├── LICENSE # MIT
├── scripts/ # Level 3 resources — deterministic, run via bash
│ ├── validate.sh # Hard conformance check against OKF §10
│ ├── regenerate-index.sh # Synthesize index.md from frontmatter
│ └── check-links.sh # Find broken bundle-relative links
└── examples/
└── example-bundle/ # A minimal valid OKF bundle produced by following the skill
├── index.md
├── log.md
├── services/
│ ├── index.md
│ └── inventory.md
└── metrics/
├── index.md
└── daily-active-users.md
Drop the repo (or just the SKILL.md + scripts/) into ~/.claude/skills/okf-builder/. Claude Code discovers it automatically.
git clone https://github.com/eli-l/okf-builder.git ~/.claude/skills/okf-builderUpload via the Skills API (/v1/skills endpoints). The skill ships in the standard Agent Skills directory format.
# from your openclaw workspace
mkdir -p skills
cp -R /path/to/this/repo skills/okf-builderThe description frontmatter field lists the phrases that activate the skill. Key triggers:
- "create an OKF bundle" / "add a concept to "
- "validate this OKF bundle" / "is this conformant?"
- "regenerate index.md" / "synthesize an index from frontmatter"
- "log this change to log.md"
- "knowledge catalog", "knowledge base", "agent-readable wiki"
An OKF bundle is just a directory of .md files. The minimum viable concept:
---
type: Service
title: Inventory Service
description: Tracks stock levels and reservations for the warehouse.
resource: https://example.com/services/inventory
tags: [inventory, warehouse]
timestamp: 2026-06-14T06:00:00Z
---
# API
| Method | Path | Purpose |
|--------|------------------|--------------------|
| `GET` | `/stock/{sku}` | Current quantity. |
| `POST` | `/reservations` | Reserve N units. |Key rules:
typeis the only required frontmatter fieldindex.mdandlog.mdare reserved filenames at any directory level- Prefer bundle-relative links (
/services/inventory.md) for move-stability - Consumers must tolerate unknown types, broken links, and missing optional fields
See SKILL.md for the full procedure, or examples/example-bundle/ for a working bundle.
examples/example-bundle/ contains a tiny but conformant OKF bundle — two concepts in two subdirectories, a root index.md (with okf_version: "0.1"), and a log.md with a couple of entries. You can copy it as a starting point for your own bundle.
okf-builder targets OKF v0.1. The validation workflow (scripts/validate.sh) enforces only the hard requirements from spec §10:
- Every non-reserved
.mdfile has parseable YAML frontmatter - Every frontmatter has a non-empty
typefield index.mdandlog.md, when present, follow §6 / §7- No concept uses a reserved filename
Everything else (missing optional fields, unknown types, broken links, etc.) is treated as soft guidance.
This skill conforms to the Agent Skills format:
- ✅
nameanddescriptionin YAML frontmatter, third-person, with trigger phrases - ✅ Body under 500 lines
- ✅ Concise — assumes the agent is already capable
- ✅ Progressive disclosure:
SKILL.mdis the overview;scripts/are Level 3 resources that run without entering the context window - ✅ Consistent terminology throughout
- ✅ No time-sensitive information
- ✅ Concrete examples and copy-paste-runnable scripts
See Authoring best practices for the full standard.
OKF is intentionally close to several established patterns — Obsidian vaults, Hugo/Jekyll sites, LLM "wiki" repos, "metadata as code" catalogs. By using widely-supported, diff-friendly, tooling-free formats, OKF bundles stay:
- Readable by humans without tooling
- Parseable by agents without bespoke SDKs
- Diffable in version control
- Portable across tools, organizations, and time
MIT — see LICENSE.