当用户提到「OKF」「OKF Wiki」「Open Knowledge Format」「OKF 知识库」「新建 OKF」「创建 OKF bundle」「OKF 摄入」「OKF 查询」「OKF 一致性检查」「OKF 导出」「OKF 归档」「okf-wiki-init」「okf-wiki-ingest」「okf-wi...
Documents
Okf Knowledge Format
Try itCreate, 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
.mdfile = 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 notesMetric→ Contains a business metric definition, SQL query, business rulesPlaybook→ Contains operational procedures, severity levels, step-by-step instructionsAPI 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
- One concept per file
- Use descriptive type values ("BigQuery Table" > "Table")
- Link freely to build traversable knowledge graphs
- Use tags for discoverability ("core", "pii", "deprecated")
- Keep descriptions concise but informative
- Set timestamps for freshness tracking
- Never modify index.md or log.md directly — use
okf index - 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
- OKF Spec: https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md
- okf-toolkit: https://github.com/akdira/okf-toolkit
- Project home: akdira
- Install:
pip install git+https://github.com/akdira/okf-toolkit.git
Created by akdira.
Related skills
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.
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...
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...