okf
Maintain a project knowledge wiki in Open Knowledge Format with /okf init, open, author, convert, sync, study, retro, extract, validate, lint, and embed.
by eltmon★ 36 GitHub stars
Install okf in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
OKF Knowledge Wiki
Use this skill when the user asks to create, maintain, validate, search, or update a project knowledge bundle in Open Knowledge Format (OKF).
The bundle is the source of truth. Keep changes small, cited, and PR-gated. Deterministic scripts validate conformance; LLM passes may suggest or draft knowledge, but they never replace the gate.
Command Table
| Command | Purpose | Primary references |
|---|---|---|
/okf init |
Create or connect a project knowledge bundle. | references/workflow.md, references/spec.md |
/okf open [--no-install] [--no-browser] |
Open the configured bundle in the local visual knowledge viewer. | references/overdeck.md |
/okf author "<topic>" |
Write or refresh one focused concept. | templates/concept.md, references/taxonomy.md, references/model-bridges.md |
/okf convert <path> |
Convert existing docs into OKF concepts without deleting originals. | references/conversion.md |
/okf sync [--topic "<focus>"] |
Update concepts from code or documentation changes. | references/workflow.md, references/model-bridges.md |
/okf study "<focus>" |
Pre-feature pass that documents current behavior for a topic. | references/workflow.md, references/taxonomy.md, references/model-bridges.md |
/okf retro |
Post-implementation pass that captures what would have helped. | references/workflow.md, references/model-bridges.md |
/okf extract "<query>" [--budget <tokens>] |
Return ranked, token-budgeted, cited concepts for prompt use. | references/spec.md |
/okf validate [--strict] |
Run the deterministic conformance gate. | references/conformance.md |
/okf lint |
Run advisory semantic patrol for stale or weak knowledge. | references/lint-prompt.md, references/conformance.md |
/okf embed [--profile <name>] |
Update shareable embedding shards and rebuild the local index. | references/workflow.md |
/okf publish --out <dir> [--check] |
Build a public static site from public concepts, with redaction. | references/publish.md |
Guardrails
- Resolve the bundle first. Prefer
.okf.ymlin the code repository; if absent, ask the user to run/okf init. - Keep the skill portable: require only git, gh, Python 3, PyYAML, and optional embedding providers. Do not require Overdeck.
- Never import or call Overdeck code from scripts under this skill. Documentation may describe Overdeck integration, but the portable core has no Overdeck dependency.
- Treat
index.mdandlog.mdas reserved files, not concepts. - Preserve unknown frontmatter keys when editing concepts.
- Use deterministic validation for pass/fail decisions.
/okf lintis advisory only. - Never put vectors in Markdown frontmatter. The only embedding frontmatter key is optional
x_embed: exclude.
Reading Rules
When answering from a bundle or preparing prompt context:
- read
index.mdfirst. - load only relevant concepts.
- answer only from loaded concepts.
- cite concept IDs for every project-specific claim.
- never invent missing knowledge. If the bundle does not contain the answer, say what is missing and suggest
/okf study "<focus>"or/okf author "<topic>".
Model Selection
For /okf study, /okf retro, /okf sync, and /okf author, honor --model <model> using this ladder:
- Use the current harness natively when it can serve the requested model.
- Use a vendor CLI already on
PATH: aftercodex login status, invokecodex exec -m <model> --sandbox workspace-write --output-last-message <output-file> "<prompt>"; after ADC orGOOGLE_API_KEYverification, invokegemini -p "<prompt>" -m <model>. - Use an installed bridge plugin command when available, such as
/codex:rescueor/gemini:task. - Use an available MCP bridge tool when available, such as
mcp__codex__*,mcp__gemini__*, orai-cli-mcpwhen it explicitly supports the requested model. - If none can serve the model, stop with the hard error template in
references/model-bridges.md, naming the requested model, bridge, install command, and auth step. Never silently substitute another model.
Under Overdeck, pan knowledge --model <model> bypasses this portable ladder and uses Overdeck model routing.
/okf init
Create a knowledge bundle and pointer file.
- Default target: a peer directory named
../<project>-knowledge; initialize it as a git repo and create the remote withgh repo createwhen requested. - Overrides:
--dir <path>for any external directory, or--local <subdir>for an in-repo bundle with no companion repo. - Copy
templates/repo/into the bundle, including README, CONTRIBUTING, CODEOWNERS,.github/workflows/conformance.yml,index.md,log.md,.gitignore, Overview, and the first Decision concept. - Copy
templates/okf-embeddings.yamlto the bundle root. The default profile is keyless Ollama:ollama/nomic-embed-text/768/share: true. - Write
.okf.ymlat the code repo root with `bundle: ../
Allowed tools
Tools this skill is permitted to call.
- 01
Bash - 02
Read - 03
Write - 04
Edit - 05
Grep - 06
Glob
Bundled files
- .okf-skill-version
- LICENSE
- NOTICE
- README.md
- docs/USAGE.md
- references/conformance.md
- references/conversion.md
- references/lint-prompt.md
- references/model-bridges.md
- references/okf-embeddings.md
- references/overdeck.md
- references/publish.md
- references/spec.md
- references/taxonomy.md
- references/workflow.md
- scripts/build_index.py
- scripts/diff_lint.py
- scripts/embed.py
- scripts/okf_common.py
- scripts/publish.py
- scripts/publish_assets/search.js
- scripts/publish_assets/style.css
- scripts/publish_markdown.py
- scripts/publish_model.py
- scripts/publish_redact.py
- scripts/publish_render.py
- scripts/publish_search.py
- scripts/reindex.py
- scripts/search.py
- scripts/selftest.sh
- scripts/validate.py
- templates/concept.md
- templates/okf-embeddings.yaml
- templates/okf-publish.yaml
- templates/repo/.github/workflows/conformance.yml
- templates/repo/.gitignore
- templates/repo/.okf/README
- templates/repo/.okf/scripts/diff_lint.py
- templates/repo/.okf/scripts/okf_common.py
- templates/repo/.okf/scripts/reindex.py
FAQ
What does the okf skill do?
Maintain a project knowledge wiki in Open Knowledge Format with /okf init, open, author, convert, sync, study, retro, extract, validate, lint, and embed.
How do I install the okf skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the okf skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
patterns
AnthropicFind patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
copilot-cli-quickstart
GitHubUse this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
vardoger-analyze
GitHubUse when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
policy-lookup
AnthropicFind and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…