Documents

Okf Knowledge Format

Try it

Create, read, validate, and manage OKF (Open Knowledge Format) knowledge bundles for AI agents. Google's vendor-neutral markdown+YAML spec.

What it does

OKF (Open Knowledge Format) — Skill for AI Agents

The skill document

OKF (Open Knowledge Format) — Skill for AI Agents

This skill teaches AI agents how to read, traverse, create, and maintain knowledge bases stored in Google's Open Knowledge Format (OKF) using the okf-toolkit CLI.

What is OKF?

The Open Knowledge Format (OKF) is an open, vendor-neutral specification for representing knowledge as a directory tree of markdown files with YAML frontmatter. Announced by Google Cloud on June 12, 2026, it is designed to be both human-readable and AI-agent-friendly.

Key concepts:

  • Bundle: A directory tree of markdown files
  • Concept: A single .md file = one unit of knowledge. Has YAML frontmatter between --- delimiters
  • index.md: Directory listing (no frontmatter)
  • log.md: Update history (no frontmatter)
  • Linking: Standard markdown links between concepts

Frontmatter Fields

Required:

  • type (string) — e.g., "BigQuery Table", "API Endpoint", "Metric", "Playbook", "Reference"

Recommended:

  • title (string)
  • description (string)
  • resource (URI string)
  • tags (YAML list)
  • timestamp (ISO 8601 string)

How Agents Should Use OKF

1. Reading and Traversing a Bundle

Start by reading the bundle's index.md. This file lists all top-level sections with links. Follow those links to discover individual concepts.

2. Understanding a Concept

The type field tells you what kind of knowledge this is:

  • BigQuery Table → Contains schema definitions, partitioning info, usage notes
  • Metric → Contains a business metric definition, SQL query, business rules
  • Playbook → Contains operational procedures, severity levels, step-by-step instructions
  • API Endpoint → Contains request/response formats, authentication, examples

3. Creating New Concepts

Use the okf-toolkit CLI:

okf new  

Or create manually with proper frontmatter (YAML between --- delimiters + markdown body).

4. Validating and Maintaining

Always validate after making changes:

okf validate 

5. CLI Quick Reference

okf list        # List all concepts
okf show    # Display a concept
okf search   # Full-text search
okf index       # Auto-generate index.md
okf graph       # Visualize link graph
okf stats       # Statistics + tag cloud
okf init          # Create new bundle

Best Practices

  1. One concept per file
  2. Use descriptive type values ("BigQuery Table" > "Table")
  3. Link freely to build traversable knowledge graphs
  4. Use tags for discoverability ("core", "pii", "deprecated")
  5. Keep descriptions concise but informative
  6. Set timestamps for freshness tracking
  7. Never modify index.md or log.md directly — use okf index
  8. Validate before committing

Error Tolerance

OKF consumers MUST tolerate unknown frontmatter keys. If you encounter a field you don't recognize, skip it rather than failing.

Resources


Created by akdira.

Related skills

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

More from akdira

Browse all skills

Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces tha...

by akdira9 installs

Autonomous daily self-improvement system for AI agents. Runs nightly self-reflection, self-audit, memory compaction, prompt evolution, and skill gap analysis at 2AM. Agent automatically gets smarter every day through structured introspection and continuous learning loops.

by akdira1 installs

Elite UX/UI & Advanced GSAP Motion Engineer. Enforces Python-driven true randomization for layout variance, strict AIDA page structure, wide editorial typogr...

by akdira3 installs

Premium brand-kit image generation skill for creating high-end brand-guidelines boards, logo systems, identity decks, and visual-world presentations. Trained...

by akdira2 installs

The original v1 taste-skill, preserved for projects depending on its exact behavior. The current default is `design-taste-frontend` (v2 experimental), which...

by akdira2 installs

Advanced browser automation via Camoufox Firefox fork — handles anti-bot protection for authorized automation tasks

by akdira