okf-wiki
БесплатноЗапускает вложенные скриптыНе проверенBuilds an Open Knowledge Format (OKF) knowledge base from existing docs, notes, or a repo. Use to scaffold an OKF wiki.
от jamditis★ 470 звёзд на GitHubОб этом скилле
okf-wiki: scaffold an Open Knowledge Format knowledge base
OKF (Open Knowledge Format) stores knowledge as small markdown files: one concept per
file, each carrying its own provenance in YAML frontmatter, with directory index.md
files for navigation and a validator that enforces the contract. It is built for
knowledge bases that both people and agents read and edit, newsroom institutional
memory, a research atlas, a team's decision log, an infrastructure map.
This skill scaffolds a conforming OKF project and validates it. The format contract is
in spec/SPEC.md (in this skill's directory), read it before changing structure.
When to use
- The user wants to start an OKF knowledge base, atlas, or wiki.
- They want docs structured as one-concept-per-file with provenance, not prose pages.
- They want to "initialize OKF" in a repo, optionally publishing into its GitHub wiki.
Start here: scope the wiki with the user
Before you scaffold anything, settle four things with the user. They shape what gets created and how it is published, and they are awkward to retrofit once concepts exist. Ask the user and wait for an explicit answer. Use the client's structured question tool when it has one. Ask in two steps: the first three questions together, then the publish question only if the audience is public or both (it does not apply to an internal-only wiki, and its relevant options depend on that answer, so it cannot share the first batch). Infer the title from the repo or project and confirm it. Skip any question the user already answered in their request, do not re-ask what they have told you.
- Audience, who reads this wiki? This answer sets the others:
- Internal (agents and teammates): the orientation hooks earn their keep, so keep them on.
The bundle may hold infrastructure detail, so it usually lives in a private repo. The in-repo
bundle/is the source of truth. - Public (people browsing): readability and secret-scrubbing come first; the hooks matter less, since people read it and agents do not. Plan a published view (see Publish below).
- Both: the in-repo
bundle/is the source of truth with hooks on for agents, plus a published view for people. Default here when the user is unsure.
- Internal (agents and teammates): the orientation hooks earn their keep, so keep them on.
The bundle may hold infrastructure detail, so it usually lives in a private repo. The in-repo
- Title and sections, the knowledge-base title (infer it, then confirm) and the starting
sections. Offer sections as a use-case preset, not a blank prompt:
- Newsroom institutional memory:
people, orgs, sources, decisions, beats - Research atlas:
concepts, sources, methods, findings - Infrastructure or fleet map:
machines, services, networks, credentials, processes - Decision log:
decisions, context, eventsThe chosen title and list feed--titleand--sectionsbelow; the user can edit the list.
- Newsroom institutional memory:
- Populate now or later, author concepts now from existing material (a repo, docs, notes, or a URL: gather it and enter the authoring loop after scaffolding), or scaffold an empty tree the user fills in later.
- Publish target, a follow-up question made only after the audience comes back
public or both (skip it entirely for an internal-only wiki):
- In-repo bundle only (default): the validator and relative links work directly, with no extra surface to maintain. Right for most wikis.
- GitHub wiki: an optional reading surface. Advanced and manual, see "Optional: publish into
a GitHub wiki" below, bootstrapped with
scripts/gh-wiki-bootstrap.py. - GitHub Pages: a browsable site rendered from the bundle. Not built yet, treat it as a goal and keep the in-repo bundle as the source of truth.
Carry the answers into the scaffold command (the title and sections, plus --no-hooks if the user
opts out of the hooks for a public-only wiki) and into the populate step. The audience answer is
also the visibility decision the "Before finishing" section asks you to make deliberately, you are
making it here, up front, where it can steer the rest of the setup.
What gets created
scripts/scaffold.py writes a project that passes its own validator by construction:
<target>/
SPEC.md the OKF format contract
README.md how to use and validate the bundle
scripts/validate.py the validator
.claude/ optional Claude Code adapter: session-orientation hooks
settings.json registers the hooks (Claude Code approves them once)
hooks/okf-anchor.py SessionStart: load the index into context
hooks/okf-orient.py PreToolUse: gate the first action on orientation
bundle/ the OKF bundle (the validated tree)
index.md carries okf_version: "0.3" by default; "0.4" with --trust-signals
<section>/
index.md
example-concept.md a starter concept with full frontmatter
Docs and tooling sit at the project root; only bundle/ is validated. Keep them
separate, the validator treats every non-reserved `
Установить okf-wiki в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл okf-wiki?
Builds an Open Knowledge Format (OKF) knowledge base from existing docs, notes, or a repo. Use to scaffold an OKF wiki.
Как установить скилл okf-wiki?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл okf-wiki запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic