# Okf generate

> Okf generate is an open-source agent skill for developer tools. Generates and validates Open Knowledge Format bundles with sourced, traceable facts. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/open-knowledge-format/open-knowledge-format/tree/main/skills/okf-generate
- **Repository:** https://github.com/open-knowledge-format/open-knowledge-format
- **GitHub stars:** 394
- **License:** Apache-2.0
- **Skill name:** okf-generate
- **Collection:** https://github.com/open-knowledge-format/open-knowledge-format
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/open-knowledge-format/open-knowledge-format/tree/HEAD/skills/okf-generate)
- [Network calls found in its scripts](https://github.com/open-knowledge-format/open-knowledge-format/tree/HEAD/skills/okf-generate)
- [License: Apache-2.0](https://github.com/open-knowledge-format/open-knowledge-format/tree/HEAD/skills/okf-generate)

## Features

- **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

## Install

### Claude Code

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

```sh
/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`:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Okf consume](https://ai-powered.com/skills/okf-consume): Okf consume is an open-source agent skill for knowledge and memory.
- [Skill creator](https://ai-powered.com/skills/skill-creator-openai): Skill creator is an open-source agent skill for developer tools.
- [Skill authoring lifecycle](https://ai-powered.com/skills/skill-authoring-lifecycle): Skill authoring lifecycle is an open-source agent skill for developer tools.
- [Ethos write](https://ai-powered.com/skills/ethos-write): Ethos write is an open-source agent skill for developer tools.
- [Openapi spec generator](https://ai-powered.com/skills/openapi-spec-generator): Openapi spec generator is an open-source agent skill for developer tools.
- [Testing handbook generator](https://ai-powered.com/skills/testing-handbook-generator): Testing handbook generator is an open-source agent skill for security.
- [Openapi to application code](https://ai-powered.com/skills/openapi-to-application-code): Openapi to application code is an open-source agent skill for developer tools.
- [Project scaffold](https://ai-powered.com/skills/project-scaffold): Project scaffold is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/okf-generate
