/agent-knowledge:kb-visualizefrom agent-knowledge
Renders a knowledge bundle as an interactive force-directed graph, showing concept hubs, clusters, and connections. Outputs native UI or self-contained HTML.
Ships in agent-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Render a bundle 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.
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.
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.
Whichever form, the view must show (mirroring a conformant OKF viewer):
type, directed edges from
each cross-link. A layout the user can switch (e.g. cose / concentric / breadth-first / grid) is a
plus.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.cited_by (the reverse link graph).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.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
knowledge-graph, visualization, force-directed-graph, okf, bundle
Generated from the plugin's indexed repository (stjbrown/agent-knowledge) — no native marketplace selected
npx claudepluginhub p/stjbrown-agent-knowledge7 skills in this plugin
/kbPortable OKF knowledge bundle for coding-agent memory and LLM wikis. Use when the user wants to start a wiki, ingest a source, document a repository, query project knowledge with citations, lint for drift, or visualize connections; whenever a repo has a knowledge/ bundle that should inform the task; and when another kb-* skill needs the shared spec, glossary, templates, or trust model./kb-documentDocument and refresh a software repository in an OKF knowledge bundle. Use when the user asks to document this repo, codebase, architecture, developer workflows, or operational behavior; create repository knowledge; or bring existing repository documentation up to date after code changes. Treats the repository as live, read-only evidence rather than source material to copy or retire./kb-ingestIngest a source into the knowledge bundle. Use when the user wants to capture, ingest, file, process, or "add this" — a note, transcript, email, PDF, image, web page, or any raw source — into a knowledge/ bundle, or drops content for processing. Reads the source once, extracts its signal, and integrates it across the bundle under the trust model so knowledge compounds instead of being re-derived per query./kb-initScaffold a new OKF knowledge bundle in this project — run when starting a wiki or adding a bundle under knowledge/./kb-lintHealth-check a knowledge bundle for conformance and drift; optionally auto-fix safe issues./kb-queryAnswer from the knowledge bundle. Use when the user asks what they/the project know about something, wants to look something up, explore connections, or compare things that live in a knowledge/ bundle — and when any task would be informed by an existing bundle, consult it here before answering from scratch. Navigates by progressive disclosure and files valuable answers back so the bundle compounds.Other plugins' skills for the same job