К основному содержанию
скилл CX Codex

knowledge-base — скилл для Claude Code: что делает и как установить

Задаёт трёхслойную структуру базы знаний в проекте и правила связывания заметок. Помогает агенту вести каталог источников без потери ссылок.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add inkeep/open-knowledge-skills --skill knowledge-base -a claude-code
Открыть на GitHub

Что делает knowledge-base

Скилл выстраивает структуру базы знаний по трём слоям: external-sources/ для неизменяемых исходников, research/ для промежуточного анализа и articles/ для проверенных решений. Логика опирается на модель Карпатого. Любое утверждение строго ссылается на локальную копию источника, поэтому проект защищён от битых ссылок.

Агент связывает страницы сразу при создании. Для удобной карты графа связанные заметки группируются через параметр cluster в заголовке frontmatter. Вся работа делится на шаги: ingest для исходников, /research-with-sources для черновых заметок и /consolidate-notes для утверждённых статей со статусом stable.

Для запуска нужен настроенный MCP-сервер OpenKnowledge. Скилл дополняет базовый инструмент /open-knowledge, но не заменяет его. Процедурные стоп-гейты требуют подтверждения решений пользователем и не сбрасываются настройками автономности.

Какие задачи решает

  • организовать трёхслойную структуру заметок в репозитории
  • сохранить копии внешних источников против устаревания ссылок
  • связать аналитические черновики с утверждёнными статьями через цепочки supersedes
  • распределить документы по кластерам для графа знаний

Примеры запросов агенту

  • Объясни, как организована структура базы знаний в этом проекте.
  • Помоги настроить связи между заметками в research/ и итоговой статьёй в articles/.
  • Проверь статусы документов и цепочки supersedes для нового решения.

Как установить knowledge-base

1Через Skills CLI (Vercel)

npx skills add inkeep/open-knowledge-skills --skill knowledge-base -a claude-code

2Вручную: положить файлы

~/.claude/skills/knowledge-base/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/knowledge-base/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о knowledge-base

Как установить knowledge-base в Claude Code?

Выполните команду npx skills add inkeep/open-knowledge-skills --skill knowledge-base -a claude-code. Файл навыка сохранится по пути ~/.claude/skills/knowledge-base/SKILL.md.

Зачем нужна трёхслойная структура в базе знаний?

Она разделяет исходные материалы в external-sources/, рабочие черновики в research/ и утверждённые факты в articles/. Это гарантирует, что каждый вывод опирается на сохранённый локальный документ.

Что требуется для работы этого скилла?

Нужен настроенный MCP-сервер OpenKnowledge. В проекте скилл также разворачивается через команду ok seed --pack knowledge-base.

Исходный текст

SKILL.md · MIT
---
name: knowledge-base
description: "How to work in a Knowledge Base project (the `knowledge-base` starter pack). Read when the project has the three-layer source-grounded layout — `external-sources/` → `research/` → `articles/` — or when asked how this project is organized. Carries the layer model, per-folder rules, status flows, and log discipline so this guidance does NOT live inside template bodies or log.md. The three procedures live elsewhere: ingest in the platform `open-knowledge` skill, research and consolidate as their own sibling skills in this pack. Complements the platform `open-knowledge` skill; does not replace it."
compatibility: "Any agent host with the OpenKnowledge MCP server configured. Installed project-local by `ok seed --pack knowledge-base` (`ok-beta` for Beta)."
type: Document
metadata:
  pack: "knowledge-base"
  author: "Inkeep"
  repository: "https://github.com/inkeep/open-knowledge-skills"
---
# Knowledge Base pack — how to work here

This project uses the **source-grounded knowledge-base** layout. The whole point is a closed evidence loop: nothing canonical exists without a traceable chain back to a preserved source. This skill holds the workflow so the templates and `log.md` can stay clean — when you create a doc from a template you get structure, and the *how* lives here.

> This skill is pack guidance. The platform `/open-knowledge` skill (read/write/preview/linking/grounding rules) still governs every markdown operation — this layers the KB workflow on top.

## Link at creation

The user watches your build live — the editor follows the file you're writing, and the knowledge graph assembles on screen as pages get linked. No view management on your part; just author well: every page carries its links from the moment it's written (at minimum the hub/index page and its most related siblings — an unlinked page is invisible in the graph), and related pages share a `cluster:` frontmatter value (e.g. `cluster: architecture`) so the graph's cluster coloring makes the map read at a glance.

## The three layers

```
external-sources/   raw sources, saved verbatim     (produced by `ingest`)
      ↓ cite
research/           provisional analysis            (produced by `research`)
      ↓ promote
articles/           canonical, decided knowledge     (produced by `consolidate`)
```

The loop is **ingest → research → consolidate**, mapped to [Karpathy's three-layer knowledge-base pattern](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f). Every downstream claim traces upstream to a preserved source. Cite local paths in `external-sources/`, never bare web URLs — the KB must survive link rot.

Karpathy's insight: "The tedious part of maintaining a knowledge base is not the reading or the thinking — it's the bookkeeping." Humans abandon wikis because maintenance costs exceed perceived value. These procedures exist so an agent can do the bookkeeping (fetching, summarizing, cross-linking, superseding) without fatigue. Skipping the cross-linking, supersedes chains, or raw-source preservation is what turns a useful wiki back into an abandoned one.

## The three procedures

Each layer has a full, STOP-gated procedure, and each ships as its own skill so it loads only when the work calls for it. Execute the procedure yourself with the OK verbs — these are your **default move over a bare `write`** when the work fits a layer.

| Procedure | Where it lives | When |
| --- | --- | --- |
| ingest | Platform `/open-knowledge` skill (`references/ingest-and-sources.md`) — its Grounding rule depends on it everywhere, so it ships with every project, not just this pack. | Preserve a shared URL / PDF / file verbatim, OR you fetched a URL to ground a KB claim (binary sources preserved, not scraped). |
| research | Sibling skill `/research-with-sources` | Investigate / compare / synthesize multiple sources → provisional article with `status: draft` + `sources:`. |
| consolidate | Sibling skill `/consolidate-notes` | A decision was actually made → commit canonical source-of-truth with `status: stable` + a `supersedes:` chain. |

Typical day-2 flow: user shares a URL → **ingest** (preserve) → user asks "now research this" → **research** (provisional article, ingesting more sources as needed) → decision lands → **consolidate** (canonical article, supersedes the research).

**Don't chain silently.** After ingest, ask whether to proceed to research. After research, let the user decide whether the findings are ready to consolidate. Each procedure completes on its own terms — the user drives the transitions.

**Autonomy gates vs session-level autonomy.** A procedure's STOP gates (research's scoping gate, consolidate's decision-confirmation gate) are NOT overridden by session-level "work without stopping for clarifying questions" hints. Those hints cover trivial back-and-forth ("which file did you mean?"); the gates exist for one-way-door decisions. When in doubt, the gate is authoritative.

## Per-folder rules

**`external-sources/`** — Raw sources saved verbatim, not just cited: the actual fetched text of URLs, extracted text of PDFs, copies of referenced files. Each file's frontmatter carries the original URL, access date, and any author/publisher metadata. Produced by the ingest procedure (applies whether the user shared the URL or you fetched it yourself to ground a claim). Immutable after capture — update only to refresh a stale fetch. **No analysis here**; that belongs in `research/`.

**`research/`** — Provisional analysis synthesizing external sources, stored as OKF `status: draft`. Produced by the `/research-with-sources` skill. Every factual claim cites a specific doc in `external-sources/` (or an inline URL if ingest was skipped); no unsourced assertions. Keep the `sources:` frontmatter list aligned with the docs actually linked in the body. Promote to `articles/` via the `/consolidate-notes` skill once the team decides the findings are stable.

**`articles/`** — Canonical knowledge, committed after a team decision and stored as OKF `status: stable`. Produced by the `/consolidate-notes` skill. Carries a `supersedes:` chain tying back to the `research/` docs it replaces (which in turn cite `external-sources/`) so the full evidence chain is traceable without leaving the repo. Source-of-truth for the domain; update only when a new decision supersedes it.

## Status flow

| Layer | `status` | Set when |
|---|---|---|
| `research/` | `draft` | created |
| `articles/` | `stable` | promoted by consolidate after a decision |

When a new article supersedes research, set that research to `status: deprecated`, add its path to the article's `supersedes:` list, and point it back with `superseded_by:`.

## Legacy compatibility

Older projects may use `status: provisional` / `canonical` and string entries under `sources:`. Read those forms as draft / stable and source resources. Do not rewrite untouched documents; use the OKF forms above for new writes and files you are already updating.

## Log discipline (MUST)

There is a `log.md` at the project root. **Append one dated entry after any turn that creates, edits, or restructures content** — one entry per turn, not per file. Silent edits break the audit trail.

Log: `ingest` runs (new sources), `research` / `consolidate` runs (provisional or canonical articles), direct `write` / `edit` / `move` / `delete` outside the three procedures, project-onboarding runs, folder restructures, and `.ok/config.yml` changes.

**Reference docs as markdown links, not bare paths** — `[path/to/doc](./path/to/doc.md)`, so the entry shows up in `links({ kind: "backlinks" })` for those docs. A bare path string does not register in the graph.

Because this append-only `log.md` is a reserved log, its broken links may be withheld from `audit`. When a clean result carries `brokenLinkSuppression`, it is filtered rather than proof that every raw link resolves; do not rewrite log history to clear those links.

Entry shape:

```markdown
## YYYY-MM-DD: <short title>

- <what was done>
- Files touched: [doc-a](./path/doc-a.md), [doc-b](./path/doc-b.md)
- Sources ingested: [source-slug](./external-sources/source-slug.md)
- Open follow-ups: <topic-1>, <topic-2>
```

## Templates

Each folder has a starter template (`clip`, `research-log`, `article`). Create with `write({ document: { path, template: "<name>" } })`. Templates carry only structure (headings + frontmatter scaffold) — the meaning of each field and section is described above, not repeated inside the document body.

© Inkeep · MIT · inkeep/open-knowledge-skills

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

Все скиллы по теме «Заметки, задачи и проекты» →
find-skills vercel-labs Ищет и устанавливает готовые скиллы для ИИ-агентов через каталог skills.sh. Пригодится, когда для рабочей задачи нужен специализированный воркфлоу. CX Codex +1 4 000 000установок grill-me Matt Pocock Скилл проводит жёсткое интервью по плану или дизайну, чтобы найти пробелы и уточнить решения. Подойдёт перед началом разработки. 1 424 476установок grill-with-docs Matt Pocock Скилл проводит жёсткое интервью по плану или дизайну и по ходу создаёт ADR и глоссарий. Подойдёт перед началом сложной разработки. 1 219 756установок handoff Matt Pocock Собирает текущий диалог в документ передачи, чтобы другой агент продолжил работу с нужным контекстом. Нужен при смене сессии или исполнителя. 1 038 491установок grilling Matt Pocock Стресс-тестирует план, решение или идею сериями уточняющих вопросов. Подходит, когда нужно вскрыть допущения до начала работы. 979 543установок teach Matt Pocock Ведёт обучение по выбранной теме прямо в текущем каталоге и сохраняет прогресс между сессиями. Подойдёт, если хотите собрать личный курс вокруг рабочей цели. 862 247установок

Из того же набора8

open-knowledge-discovery Скилл подсказывает агенту, как устроен OpenKnowledge, как инициализировать проект и как открывать отдельные Markdown-файлы во временном предпросмотре без создания служебных папок. CX Codex +1 15 100установок okf-knowledge-base Подсказывает агенту, как создавать и поддерживать базы знаний в формате Open Knowledge Format v0.2: фроntmatter, ссылки, индексы, логи. CX Codex +1 9 300установок open-knowledge-write-skill Скилл помогает агенту составить новый SKILL.md: выбрать область действия, оформить frontmatter и проверить, что скилл срабатывает в нужный момент. CX Codex +1 6 900установок open-knowledge Задаёт агенту правила работы внутри проекта OpenKnowledge: чтение, поиск, правка и линтинг markdown через MCP-инструменты. CX Codex +1 4 600установок research-with-sources Скилл ведёт агента по процедуре исследования: сохраняет каждый источник дословно, пишет черновик статьи в research/ и ссылается на каждое утверждение. CX Codex +1 826установок consolidate-notes Превращает уже принятое решение и черновые исследования в одну каноническую статью. Пригодится, когда команда договорилась и хочет зафиксировать источник истины. CX Codex +1 823установок codebase-wiki Скилл, по которому агент пишет вики вашего репозитория в markdown: архитектура, модули, потоки, глоссарий. Пригодится, когда кодовая база разрослась и её надо объяснить людям или агенту. CX Codex +1 437установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой