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

kb-visualize — скилл для Claude Code: граф знаний и установка

Строит интерактивный граф понятий из knowledge bundle и показывает связи между ними. Выручает, когда нужно изучить весь набор или проследить связи вокруг одного понятия.

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

Что делает kb-visualize

Скилл извлекает из knowledge bundle узлы и связи, затем строит граф с цветами по типам понятий. Можно показать весь набор или ограничить вид одним понятием и его соседями. В панели узла доступны его описание, содержимое Markdown и обратные ссылки; предусмотрены поиск и фильтр по типу.

В Claude Code результатом будет отдельный HTML-файл, а в хосте с интерактивным интерфейсом — живое представление графа. HTML не требует бэкенда: модель встраивается в файл, а Cytoscape.js и marked загружаются с CDN. Для извлечения модели нужен Node.js версии 18 или выше. Скилл только читает bundle и не меняет его.

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

  • Показать понятия knowledge bundle на графе
  • Найти связи вокруг выбранного понятия
  • Проверить, какие узлы ссылаются на выбранный
  • Отфильтровать граф по типу и найти узел поиском

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

  • Построй интерактивный граф для knowledge/.
  • Покажи граф понятий вокруг выбранной темы в bundle.
  • Собери HTML-представление графа и проверь узлы и связи.

Как установить kb-visualize

1Через Skills CLI (Vercel)

npx skills add stjbrown/agent-knowledge --skill kb-visualize -a claude-code

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

~/.claude/skills/kb-visualize/SKILL.md

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

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

Вопросы о kb-visualize

Как установить kb-visualize в Claude Code?

Выполните npx skills add stjbrown/agent-knowledge --skill kb-visualize -a claude-code. Файл скилла находится по пути ~/.claude/skills/kb-visualize/SKILL.md.

Что делает kb-visualize?

Извлекает узлы и связи из knowledge bundle и отображает их интерактивным графом. В нём есть поиск, фильтр по типу и панель с данными выбранного понятия.

Какая версия Node.js нужна для kb-visualize?

Для скрипта извлечения модели нужен Node.js версии 18 или выше.

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

SKILL.md · MIT
---
name: kb-visualize
description: Render a knowledge bundle as an interactive graph — native UI where the host supports it, otherwise a self-contained HTML artifact.
disable-model-invocation: true
version: 0.3.2
tags: [knowledge, okf, visualize, graph]
---

# kb-visualize — see the bundle as a graph

Render a [bundle](../kb/SKILL.md) as an interactive **force-directed graph** of its concepts, so a
human can see its shape — hubs, clusters, orphans, and how concepts connect. You author the view from
a deterministic graph model, so it can adapt to the request (a whole-bundle map, or a subgraph around
one concept); it is not a fixed template.

## 1. Extract the graph model

Run the bundled extractor against the target bundle (default `knowledge/`). It is a zero-dependency
Node script (`node >=18`); `<skill-dir>` is this skill's directory — `${CLAUDE_SKILL_DIR}` under
Claude Code, or whatever path your host exposes for the skill:

```
node "<skill-dir>/scripts/graph.mjs" <bundle-dir>
```

It prints JSON: `nodes` (including `id`, display metadata, `status`, `generated`, `verified`, derived
`trust_tier`, `stale_after`, derived `is_stale`, structured `sources`, attestation metadata, `body`,
`links`, and `cited_by`), the distinct `types`, and `edges`. Backlinks (`cited_by`) and
edges are already computed from the cross-links in concept bodies. If the user scoped the request to
one concept/area, filter the model to that node plus its neighbors.

The renderer MUST consume the model produced by **this extractor invocation**. Do not reuse a
previous run's cached graph JSON or a generator hard-coded to another cache filename. If the host
requires scratch files, overwrite one explicit model path, pass that same path to the renderer, and
remove it after verification.

**Completion criterion:** you have the graph model, and (if scoped) filtered it to the requested
subgraph.

## 2. Choose the output form by host capability

- **Host renders interactive UI** (e.g. Claude Desktop, Codex Desktop, an MCP-Apps host): render the
  graph **as native UI** so it's live in the conversation.
- **Host is text/artifact only** (e.g. Claude Code, a terminal): write a **self-contained HTML file**
  (single file, no backend, CDN libs only) next to the bundle or as an artifact, and give the user
  the path.

If unsure whether the host renders UI, default to the HTML file — it works everywhere.

**Completion criterion:** the output form matches the host's capability.

## 3. Render the view

Whichever form, the view must show (mirroring a conformant OKF viewer):

- A **force-directed graph**: one node per concept, **colored by `type`**, directed **edges** from
  each cross-link. A layout the user can switch (e.g. cose / concentric / breadth-first / grid) is a
  plus.
- A **detail panel** for the selected node: its frontmatter (`description`, `resource` as a link,
  `tags`, lifecycle/freshness, provenance, trust tier, and Attested Computation contract when
  present) and its rendered markdown `body`, with internal concept links rewired to **navigate within
  the view** (select that node) rather than following a file path.
- A **"Cited by"** list per node, from `cited_by` (the reverse link graph).
- A **search box** (matches title, id, tags) and a **type filter**.

For the HTML form, a proven stack is Cytoscape.js (graph) + marked (markdown) from a CDN, with the
graph model inlined as a JSON literal so the file is self-contained and nothing leaves the page. All
node data is already in the model from step 1 — do not re-read the bundle.

Verify the output against the fresh model: node and edge counts match, and every concept added or
superseded in the current run appears by ID. A rendered file that merely exists is not sufficient.

**Completion criterion:** the rendered view shows the graph (colored by type), a working detail panel
with in-view link navigation, backlinks, search, and type filter; its node/edge counts and changed
concept IDs match the freshly extracted model.

## 4. Deliver

Hand over the result: for UI, the live view; for HTML, the file path (and note it can be committed
next to the bundle, shared as an artifact, or hosted on any static file server). This is a read-only
consumer — it never modifies the bundle, so no log entry.

**Completion criterion:** the user has the view or its path.

© stjbrown · MIT · stjbrown/agent-knowledge

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

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. 1 052 851установок ask-matt Matt Pocock Помогает выбрать подходящий скилл или рабочий поток из набора Matt Pocock. Пригодится, когда непонятно, с чего начать задачу: от идеи до разбора бага. 766 587установок to-tickets Matt Pocock Разбивает план, спецификацию или переписку на небольшие сквозные задачи и отмечает, какие из них блокируют остальные. Пригодится, когда нужно согласовать порядок работы до публикации задач в трекере. 711 230установок writing-plans Jesse Vincent Скилл превращает требования к многошаговой задаче в подробный план реализации до начала работы с кодом. Пригодится, когда исполнителю нужно зафиксировать файлы, интерфейсы и проверки. CX Codex 282 859установок caveman-review JuliusBrussee Пишет замечания к коду одной строкой: место, проблема, исправление. Пригодится, когда ревью диффа или PR надо пройти быстро и без воды. CX Codex +1 411 800установок caveman-compress JuliusBrussee Сжимает CLAUDE.md, списки задач и другие текстовые файлы в краткий формат, сохраняя читаемую резервную копию. CX Codex +1 411 500установок

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

kb Скилл-хаб для организации памяти ассистента в формате OKF. Помогает структурировать базу знаний репозитория и направляет запросы к специализированным скиллам семейства kb. CX Codex +1 ★ 41звёзд репо kb-query Скилл отвечает на вопросы по уже собранной базе knowledge/, а не ищет всё заново. Пригодится, когда в репозитории лежит готовый набор концепций. CX Codex +1 ★ 41звёзд репо kb-lint Проверяет базу знаний агента на соответствие спецификации и накопленные расхождения. Безопасные ошибки скилл исправляет сам. CX Codex +1 ★ 41звёзд репо kb-init Скилл создаёт в проекте каркас базы знаний OKF v0.2 и настраивает её схему под конкретную область. Пригодится, когда вы начинаете вики или добавляете набор в knowledge/. CX Codex +1 ★ 41звёзд репо kb-ingest Читает заметку, письмо, PDF или веб-страницу один раз и раскладывает извлечённые сущности и связи по базе knowledge/, чтобы знания не выводились заново на каждый запрос. CX Codex +1 ★ 41звёзд репо kb-document Создаёт и обновляет документацию репозитория внутри базы знаний OKF. Помогает зафиксировать архитектуру и связи в коде, не изменяя исходные файлы проекта. CX Codex +1 ★ 41звёзд репо

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

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