kb-visualize
Render a knowledge bundle as an interactive graph — native UI where the host supports it, otherwise a self-contained HTML artifact.
Skill by stjbrown
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/stjbrown-kb-visualize
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/kb-visualize
What's inside
- Skill 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.
- License
- MIT
- Instructions
- 77 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- graph.mjs · scripts/
SKILL.md (first lines)
# 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.From stjbrown/agent-knowledge, MIT.
More from stjbrown/agent-knowledge
- 0.621score
kb
stjbrown
Portable OKF knowledge bundle for coding-agent memory and LLM wikis.
SkillBFreshness: B★ 41Claude Code +9 - 0.616score
kb-ingest
stjbrown
Ingest a source into the knowledge bundle.
SkillBFreshness: B★ 41Claude Code +9 - 0.616score
kb-query
stjbrown
Answer from the knowledge bundle.
SkillBFreshness: B★ 41Claude Code +9 - 0.616score
kb-document
stjbrown
Document and refresh a software repository in an OKF knowledge bundle.
SkillBFreshness: B★ 41Claude Code +9 - 0.615score
kb-lint
stjbrown
Health-check a knowledge bundle for conformance and drift; optionally auto-fix safe issues.
SkillBFreshness: B★ 41Claude Code +9 - 0.610score
kb-init
stjbrown
Scaffold a new OKF knowledge bundle in this project — run when starting a wiki or adding a bundle under knowledge/.
SkillBFreshness: B★ 41Claude Code +9
Signals
- Stars
- 41
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 1, 2026 (2 months ago)
- Last release
- Jul 29, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/stjbrown/agent-knowledge
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from stjbrown
- 0.621score
kb
stjbrown
Portable OKF knowledge bundle for coding-agent memory and LLM wikis.
SkillBFreshness: B★ 41Claude Code +9 - 0.616score
kb-ingest
stjbrown
Ingest a source into the knowledge bundle.
SkillBFreshness: B★ 41Claude Code +9 - 0.616score
kb-query
stjbrown
Answer from the knowledge bundle.
SkillBFreshness: B★ 41Claude Code +9 - 0.616score
kb-document
stjbrown
Document and refresh a software repository in an OKF knowledge bundle.
SkillBFreshness: B★ 41Claude Code +9 - 0.615score
kb-lint
stjbrown
Health-check a knowledge bundle for conformance and drift; optionally auto-fix safe issues.
SkillBFreshness: B★ 41Claude Code +9 - 0.610score
kb-init
stjbrown
Scaffold a new OKF knowledge bundle in this project — run when starting a wiki or adding a bundle under knowledge/.
SkillBFreshness: B★ 41Claude Code +9
Cite this page
kb-visualize skill. Agent Mart. https://agentmart.dev/skills/stjbrown-kb-visualize (last updated 2026-10-24)