Skip to content
Skill

Okf generate

Generates and validates Open Knowledge Format bundles with sourced, traceable facts

Okf generate is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
Python
Platforms
Claude Code, Codex, Cursor
GitHub stars
394
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Okf generate

This skill guides an agent through creating, updating, migrating and repairing an Open Knowledge Format v0.3 bundle, a folder of Markdown files with YAML frontmatter describing data assets, metrics, policies and procedures. It walks the agent through scoping the sources it can read, planning the directory tree, writing each concept with its frontmatter and body, and linking concepts and paths in the form the spec expects.

The skill puts a strong emphasis on provenance. Each concept lists its sources with identifiers, claims are tied to those sources with footnotes, and the agent records its own actor when it writes content. It refuses to add a human verification unless a person confirms it and supplies their own id, and it only stores a computation that comes from a sanctioned source. Index and log files are updated alongside the concepts.

The bundled Python validator checks conformance and reports errors and warnings, and it needs Python 3.9 or later with PyYAML. A reference guide to the frontmatter fields, templates for each document type, attested computation details and a migration guide for older bundles are included alongside the instructions.

When your agent uses it

Create, update, migrate, repair, or validate an Open Knowledge Format (OKF) v0.3 bundle, including recording a verification. An OKF bundle is a directory of Markdown files with YAML frontmatter that documents data assets, metrics, policies, and procedures for people and agents. Use this skill when the user asks to write, generate, bootstrap, enrich, or migrate OKF documents or a knowledge bundle; to document tables, datasets, metrics, APIs, or playbooks in OKF; to add provenance, trust, lifecycle, or attested-computation fields; or to check a bundle for OKF conformance. Use this skill, not okf-consume, to repair a bundle or to record a verification.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 6 files (52 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the okf plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add open-knowledge-format/open-knowledge-format
/plugin install okf@open-knowledge-format

Or copy only this skill to ~/.claude/skills/okf-generate:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/open-knowledge-format/open-knowledge-format.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/okf-generate &&
cp -R "$tmp/skills/okf-generate" ~/.claude/skills/okf-generate &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/okf-generate inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/okf-generate to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/open-knowledge-format/open-knowledge-format.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/okf-generate &&
cp -R "$tmp/skills/okf-generate" ~/.agents/skills/okf-generate &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/okf-generate inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/okf-generate to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/open-knowledge-format/open-knowledge-format.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/okf-generate &&
cp -R "$tmp/skills/okf-generate" ~/.cursor/skills/okf-generate &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/okf-generate inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/open-knowledge-format/open-knowledge-format.git --path skills/okf-generate

Or copy the folder to ~/.gemini/skills/okf-generate yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/okf-generate:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/open-knowledge-format/open-knowledge-format.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/okf-generate &&
cp -R "$tmp/skills/okf-generate" ~/.copilot/skills/okf-generate &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/okf-generate inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/open-knowledge-format/open-knowledge-format.git

Then copy open-knowledge-format/skills/okf-generate into your agent's skills folder as okf-generate. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Bundle scaffolding
Plans a directory tree with one concept per file and reusable folder names by kind.
Provenance tracking
Lists sources per concept and ties specific claims to them with footnotes.
Frontmatter templates
Provides templates for each document type, such as tables, metrics, playbooks and references.
Conformance validation
Runs a Python validator that reports errors and warnings for OKF rules.
Verification rules
Adds human verifications only when a named person confirms the content.
Bundle migration
Explains how to move a v0.1 or v0.2 bundle to the v0.3 format.
Index and log upkeep
Keeps index.md and log.md entries in step with concept changes.

Good for

  • Document a BigQuery table and its columns in an OKF bundle
  • Write metric definitions with links to their sources
  • Check an existing knowledge bundle for OKF conformance
  • Migrate an older v0.2 bundle to the v0.3 format
  • Repair broken links and path fields in a bundle

Okf generate FAQ

What does the skill need to run the validator?

The validator needs Python 3.9 or later and PyYAML, installed with pip install pyyaml.

Can the skill mark content as human verified?

Only when the person confirms the content, asks for it to be recorded and gives their own id. The skill never infers an id from the machine.

Does the skill store SQL queries as metric computations?

Only sanctioned computations from an approved file, model or owner are stored as attested computations. Unreviewed queries are kept only as drafts when the user asks.

Which tool does Okf generate use to answer questions from a bundle?

Answering questions from a bundle is handled by a separate okf-consume skill, not this one.

How do I install Okf generate in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/okf-generate to use it in all your projects, or to .claude/skills/okf-generate in one project. Or install the okf plugin, which includes it: /plugin marketplace add open-knowledge-format/open-knowledge-format, then /plugin install okf@open-knowledge-format.

Does Okf generate run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Okf generate?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Okf generate?

The closest alternatives to Okf generate are Okf consume, Skill creator, Skill authoring lifecycle, Ethos write and Openapi spec generator.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from open-knowledge-format/open-knowledge-format

  1. Answers questions from an Open Knowledge Format bundle and reports trust and freshness

    • Open source
    • 394 GitHub stars
    • Knowledge and memory