Command Palette

Search for a command to run...

Назад к скиллам
скилл № 89651

okf

Maintain a project knowledge wiki in Open Knowledge Format with /okf init, open, author, convert, sync, study, retro, extract, validate, lint, and embed.

БесплатноЗапускает вложенные скрипты
eltmonот eltmon★ 36 звёзд на GitHub

Установить okf в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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.yml in 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.md and log.md as reserved files, not concepts.
  • Preserve unknown frontmatter keys when editing concepts.
  • Use deterministic validation for pass/fail decisions. /okf lint is 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:

  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.

  • Default target: a peer directory named ../<project>-knowledge; initialize it as a git repo and create the remote with gh repo create when 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.yaml to the bundle root. The default profile is keyless Ollama: ollama / nomic-embed-text / 768 / share: true.
  • Write .okf.yml at the code repo root with `bundle: ../
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash
  2. 02Read
  3. 03Write
  4. 04Edit
  5. 05Grep
  6. 06Glob

Вложенные файлы

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

Что делает скилл okf?

Maintain a project knowledge wiki in Open Knowledge Format with /okf init, open, author, convert, sync, study, retro, extract, validate, lint, and embed.

Как установить скилл okf?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл okf запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить okf с