/okf-skills:visualize <bundle-dir> [-o viz.html]from okf-skills
Renders an Open Knowledge Format (OKF) bundle as a self-contained interactive HTML graph with colored nodes, edges, wiki-style detail panel, backlinks, layout switching, and per-type filtering.
Ships in okf-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate a self-contained HTML graph of the target bundle. The bundle directory
is required, so pass .okf explicitly when no path is given. No backend, no
install, no bundle content leaves the page. The viewer does need network
access: cytoscape, marked and dompurify load from cdn.jsdelivr.net.
uv run "${CLAUDE_SKILL_DIR}/scripts/okf_visualize.py" $ARGUMENTS
If uv is unavailable:
python3 -m pip install --quiet pyyaml && \
python3 "${CLAUDE_SKILL_DIR}/scripts/okf_visualize.py" $ARGUMENTS
The detail panel shows each concept's type, description, tags, status,
generated, verified, stale_after, sources (with their credibility
signals, a usage_count alongside the usage_window that frames it), and
rendered body; a sources entry pointing at another concept in the bundle also
becomes a graph edge. A v0.1 timestamp is read as generated.at, so legacy
bundles still render fully.
Two badges are derived, not read: the §5.3 trust tier
(unverified / machine-confirmed / human-reviewed, keyed off the human:
prefix in verified[].by) and staleness (now >= stale_after, evaluated in the browser when the page is viewed,
not when it is rendered, so an old viz.html never shows a frozen "fresh"). They are
advisory signals — when reporting on a bundle, say which tier a concept is in
rather than treating any of them as a gate.
| Flag | Effect |
|---|---|
-o <path> | Output file (default <bundle>/viz.html). |
-t, --title | Graph title (default parent/bundle dir name). |
-l, --link | Source URL shown in the header. |
--layout | cose, concentric, breadthfirst, circle, grid. |
--max-nodes N | Exit 1 above N concepts (useful in CI). |
--og-image URL | Absolute URL for the social preview image. |
Above 1,000 concepts the default switches to concentric (force freezes the
page; --layout cose overrides, and the in-page picker asks first). Above
5,000 it warns that the page loads slowly and reads as a hairball, and
suggests rendering a subdirectory.
Open it in any browser; ${CLAUDE_SKILL_DIR} resolves whether this runs as part
of the okf plugin or as a standalone skills.sh skill. The page is
deep-linkable: ?select=<concept-id> or #<concept-id> opens that concept,
?layout=<name> presets the layout.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ekar-is/okf-skills --plugin okf-skills4 skills in this plugin
/backfillReconstruct an OKF bundle by event-sourcing a repository's history (git log and Claude session transcripts). Use when creating an `.okf/` bundle for an existing repository that predates this skill, or when resuming an interrupted backfill session. Triggers on: "reconstruct the OKF bundle", "backfill the knowledge bundle", "event-source the history"./okfAuthor, maintain, and consume Open Knowledge Format (OKF) knowledge bundles — portable markdown + YAML frontmatter that both humans and agents read. Use when capturing knowledge into an OKF bundle, whether software assets (services, APIs, schemas, runbooks, decisions) or data and business knowledge (tables, datasets, metrics, policies, processes, glossaries), when updating one after its source changes, or when a project contains an `.okf/` (or other OKF) bundle that should inform the task. Triggers on: "document this in OKF", "update the knowledge bundle", "capture this as a concept", or any work in a project that has an OKF bundle./validateCheck that an Open Knowledge Format (OKF) bundle is conformant with the v0.3 spec (§11). Use when asked to validate, lint, or check an OKF bundle, or before committing changes to one. Runs a deterministic Python checker — not an eyeball pass. Also migrates a v0.1 or v0.2 bundle to v0.3 in place with `--migrate`.Other plugins' skills for the same job