CommunityRédaction et éditiongithub.com

auto-medica-labs/okf-cli

Converts plain markdown into OKF-conformant knowledge bundles

Qu'est-ce que okf-cli ?

okf-cli is a Claude Code agent skill that converts plain markdown into OKF-conformant knowledge bundles.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add auto-medica-labs/okf-cli

Installed? Explore more Rédaction et édition skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

okf-cli Manual

Install and use okf-cli for working with Open Knowledge Format (OKF)

Install

uv tool install okf-cli
okf --version

Upgrade:

uv tool upgrade okf-cli

Commands

okf bundle — convert plain markdown to OKF bundle

okf bundle <input-dir> [output-dir] [--default-type <type>] [--force] [--strict-links]
ArgumentDescription
input-dirDirectory of plain .md files
output-dirTarget directory (default: bundled)
--default-typeType for root-level files — skip root files if omitted
--force, -fOverwrite output directory if it exists
--strict-linksFail if local markdown links point outside bundle or to missing .md target
okf bundle my-docs bundled --default-type reference
okf bundle my-docs bundled --default-type reference --force
okf bundle my-docs bundled --default-type reference --strict-links

.okfignore — place in input-dir root, one bundle-relative path per line:

# skip these files
smoke-ignore.md
tables/orders.md

okf list — list concept IDs in a bundle

okf list <directory>

Prints concept IDs (path with .md stripped). Reserved files (index.md, log.md) excluded.

okf list bundled/
# datasets/sales
# tables/orders
# tables/customers

okf show — print a concept by ID

okf show <directory> <concept-id>
okf show bundled/ tables/orders

okf validate — check OKF conformance

okf validate <directory>

Validates per OKF §9: frontmatter present, type non-empty, reserved filenames follow structure.

okf validate bundled/

Input format for bundle

Each .md file should follow this structure:

# Clear Concept Title

> One-sentence summary of this concept.

Body content with useful context, structure, examples, or schema.

Rules:

  • First line: # Title
  • Second block: > description (concise, factual)
  • Directory name becomes the concept type: tables/orders.md → type tables
  • Root-level files require --default-type
  • Do not add frontmatter to source files — okf bundle generates it
  • Avoid creating index.md, log.md, or README.md as source concepts (reserved by spec)

Skills associés