Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

okf-wiki

БесплатноЗапускает вложенные скриптыНе проверен

Builds an Open Knowledge Format (OKF) knowledge base from existing docs, notes, or a repo. Use to scaffold an OKF wiki.

jamditisот 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.

  1. 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.
  2. 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, events The chosen title and list feed --title and --sections below; the user can edit the list.
  3. 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.
  4. 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 `

Полный SKILL.md на GitHub

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

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

.claude-plugin/icon.png.claude-plugin/plugin.jsonagents/openai.yamlexample/.claude/hooks/okf-anchor.pyexample/.claude/hooks/okf-orient.pyexample/.claude/settings.jsonexample/README.mdexample/SPEC.mdexample/bundle/hooks/accessibility-check.mdexample/bundle/hooks/ai-slop-detector.mdexample/bundle/hooks/ap-style-check.mdexample/bundle/hooks/archive-reminder.mdexample/bundle/hooks/bug-report-detector.mdexample/bundle/hooks/copywriting-preflight.mdexample/bundle/hooks/data-methodology-check.mdexample/bundle/hooks/deadline-tracker.mdexample/bundle/hooks/index.mdexample/bundle/hooks/legal-review-flag.mdexample/bundle/hooks/no-ai-attribution.mdexample/bundle/hooks/one-way-door-check.mdexample/bundle/hooks/pre-commit-review.mdexample/bundle/hooks/pre-publish-checklist.mdexample/bundle/hooks/prose-question-guard.mdexample/bundle/hooks/source-attribution-check.mdexample/bundle/hooks/source-diversity-check.mdexample/bundle/hooks/verification-reminder.mdexample/bundle/index.mdexample/bundle/plugins/autocontext.mdexample/bundle/plugins/dev-toolkit.mdexample/bundle/plugins/index.mdexample/bundle/plugins/journalism-core.mdexample/bundle/plugins/newsroom-agent-ops.mdexample/bundle/plugins/okf-wiki.mdexample/bundle/plugins/pdf-design.mdexample/bundle/plugins/pdf-playground.mdexample/bundle/plugins/project-templates-toolkit.mdexample/bundle/plugins/research-toolkit.mdexample/bundle/plugins/security-toolkit.mdexample/bundle/plugins/superjawn.mdexample/bundle/plugins/video-toolkit.md

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 запускает скрипты?

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

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

Сравнить okf-wiki с