一键导入
okf
Maintain a project knowledge wiki in Open Knowledge Format with /okf init, open, author, convert, sync, study, retro, extract, validate, lint, and embed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Maintain a project knowledge wiki in Open Knowledge Format with /okf init, open, author, convert, sync, study, retro, extract, validate, lint, and embed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add repositories to the current progressive polyrepo workspace
pan close <id> — close-out ceremony for a completed and merged issue
pan review <subcommand> — manage the code review lifecycle: list pending work, re-request review, heal status drift, reset/abort/restart review cycles
pan start <id> — spawn a work agent for an issue in its own tmux session and workspace
pan flywheel — start, pause, resume, complete, stop, inspect, emit, and report on the singleton Fix-All Flywheel orchestrator
pan orders — create, inspect, edit, and start Flywheel order books
| name | okf |
| description | Maintain a project knowledge wiki in Open Knowledge Format with /okf init, open, author, convert, sync, study, retro, extract, validate, lint, and embed. |
| triggers | ["/okf","okf","Open Knowledge Format","knowledge wiki"] |
| allowed-tools | ["Bash","Read","Write","Edit","Grep","Glob"] |
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 | 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.yml in the code repository; if absent, ask the user to run /okf init.index.md and log.md as reserved files, not concepts./okf lint is advisory only.x_embed: exclude.When answering from a bundle or preparing prompt context:
index.md first./okf study "<focus>" or /okf author "<topic>".For /okf study, /okf retro, /okf sync, and /okf author, honor --model <model> using this ladder:
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>./codex:rescue or /gemini:task.mcp__codex__*, mcp__gemini__*, or ai-cli-mcp when it explicitly supports the requested model.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 initCreate a knowledge bundle and pointer file.
../<project>-knowledge; initialize it as a git repo and create the remote with gh repo create when requested.--dir <path> for any external directory, or --local <subdir> for an in-repo bundle with no companion repo.templates/repo/ into the bundle, including README, CONTRIBUTING, CODEOWNERS, .github/workflows/conformance.yml, index.md, log.md, .gitignore, Overview, and the first Decision concept.templates/okf-embeddings.yaml to the bundle root. The default profile is keyless Ollama: ollama / nomic-embed-text / 768 / share: true..okf.yml at the code repo root with bundle: ../<project>-knowledge and remote: <created remote>; for --local, point bundle: at the local subdirectory and omit companion repo creation.CLAUDE.md or AGENTS.md, preserving it without duplication on repeated init.knowledge_repo, then .okf.yml, then a clear error telling the user to run /okf init./okf open [--no-install] [--no-browser]Open the configured bundle in the local visual knowledge viewer.
.okf.yml; under Overdeck, the canonical resolver also honors the project's knowledge_repo setting.pan is available, delegate to pan knowledge open and pass through --no-install and --no-browser.@inkeep/open-knowledge program. --no-install requires an existing ok binary instead.@inkeep/open-knowledge into the portable OKF scripts or Overdeck packages./okf author "<topic>"Write or update one concept for one idea.
references/taxonomy.md; confirm when the type or path is ambiguous.templates/concept.md and let the skill manage frontmatter. Include type, title, description, tags, and timestamp when available.reindex.py, append a dated log.md entry, then run validate.py --strict before offering the change./okf convert <path>Convert existing docs into OKF without destructive edits.
reindex.py and validate.py --strict./okf sync [--topic "<focus>"]Update the bundle from code or documentation diffs.
log.md entry, PR base, or user-specified diff.search.py results.--topic "<focus>" to restrict the candidate set by matching tags and search results; preserve non-matching concepts byte-identically.log.md entry for the pass, regenerate indexes with reindex.py, and run validate.py --strict.gh pr create; do not push a direct default-branch update./okf study "<focus>"Document what the current codebase does before a feature starts.
overtime-calculations.reindex.py, append one dated log.md entry, run validate.py --strict, and open a knowledge-repo PR rather than mutating protected branches directly./okf retroCapture knowledge after implementation.
pan is on PATH and responds; never import Overdeck code.pan memory search --issue <id> ... --json.git diff plus current transcript/session context as feedstock.reindex.py and validate.py --strict, then open a PR./okf extract "<query>" [--budget <tokens>]Return compact prompt context.
SKILL.md, then run python3 <okf-skill-dir>/scripts/search.py "<query>" --bundle <bundle> --format prompt --budget <tokens>. Never assume the caller's repository contains skills/okf.hybrid, bm25-only, index-guided, or mnemos)./okf validate [--strict]Run deterministic checks.
references/conformance.md for the code vocabulary./okf lintRun advisory semantic patrol.
references/lint-prompt.md as the prompt fixture.max_tokens./okf embed [--profile <name>]Refresh embeddings.
okf-embeddings.yaml from the bundle root.embeddings/..okf-index/ cache, which is derived and gitignored.