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, affaan-m/seo, affaan-m/brand-voice · 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

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community