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

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

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

当用户提到「OKF」「OKF Wiki」「Open Knowledge Format」「OKF 知识库」「新建 OKF」「创建 OKF bundle」「OKF 摄入」「OKF 查询」「OKF 一致性检查」「OKF 导出」「OKF 归档」「okf-wiki-init」「okf-wiki-ingest」「okf-wi...

1 installs

Organize, format, and publish knowledge-base articles and documentation. Use when you need to convert raw notes, meeting transcripts, or scattered content into structured, publication-ready knowledge base entries with proper metadata, cross-references, and version tracking.

1 installs

Agent Knowledge Format — stamp trust metadata into every file AI touches. Trust scores, provenance, and compliance that embed natively into DOCX, PDF, images...

Build, maintain, validate, and publish an evidence-backed asset graph or OKF-style resource map for operations, ops, DevOps, SRE, platform engineering, infra...

1 installs

Convert articles or Markdown/TXT files into 5-8 structured knowledge cards for review and self-testing.

Import documents and retrieve knowledge through the Keystone REST API. Use for uploading files, URLs, or Markdown to a knowledge base; hybrid search within a...

1 installs