Okf

From eltmon/overdeck · View interactive version

Okf is an AI agent skill from the GitHub repository eltmon/overdeck. Maintain a project knowledge wiki in Open Knowledge Format with /okf init, open, author, convert, sync, study, retro, extract, validate, lint, and embed.

How to use this skill

Skill file

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

Reading Rules

When answering from a bundle or preparing prompt context:

  1. read index.md first.
  2. load only relevant concepts.
  3. answer only from loaded concepts.
  4. cite concept IDs for every project-specific claim.
  5. 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:

  1. Use the current harness natively when it can serve the requested model.
  2. Use a vendor CLI already on PATH: after codex login status, invoke codex exec -m <model> --sandbox workspace-write --output-last-message <output-file> "<prompt>"; after ADC or GOOGLE_API_KEY verification, invoke gemini -p "<prompt>" -m <model>.
  3. Use an installed bridge plugin command when available, such as /codex:rescue or /gemini:task.
  4. Use an available MCP bridge tool when available, such as mcp__codex__*, mcp__gemini__*, or ai-cli-mcp when it explicitly supports the requested model.
  5. 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.

`/okf open [--no-install] [--no-browser]`

Open the configured bundle in the local visual knowledge viewer.

`/okf author "<topic>"`

Write or update one concept for one idea.

`/okf convert <path>`

Convert existing docs into OKF without destructive edits.

`/okf sync [--topic "<focus>"]`

Update the bundle from code or documentation diffs.

`/okf study "<focus>"`

Document what the current codebase does before a feature starts.

`/okf retro`

Capture knowledge after implementation.

`/okf extract "<query>" [--budget <tokens>]`

Return compact prompt context.

`/okf validate [--strict]`

Run deterministic checks.

`/okf lint`

Run advisory semantic patrol.

`/okf embed [--profile <name>]`

Refresh embeddings.

`/okf publish --out <dir> [--check]`

Build a public static site from the bundle.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.