okf-visualize-knowledge

okf-visualize-knowledge is a skill for Claude Code, Codex from topprismdata/cultivating-ml-agent. It costs 128 tokens per session (1,501 once invoked), scanned A, original, MIT.

A tool workflow that turns linked Markdown notes into an interactive force-directed knowledge graph. The graph shows concepts as connected points, making relationships and isolated notes easier to see.

In plain words
What is it for?
Use it for directories of Markdown notes with cross-links when you want to inspect, audit, or share the structure of a knowledge base.
Why use it?
It helps reveal orphaned notes, heavily connected concepts, and the overall structure of a growing documentation set. It can also produce an offline HTML view that is easier to share than a folder of files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for directories of Markdown notes with cross-links when you want to inspect, audit, or share the structure of a knowledge base.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/topprismdata/cultivating-ml-agent/okf-visualize-knowledge
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add topprismdata/cultivating-ml-agent --skill okf-visualize-knowledge
Clone the repo
git clone --depth 1 https://github.com/topprismdata/cultivating-ml-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for okf-visualize-knowledge

README.md
[![agentmods](https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/okf-visualize-knowledge.svg)](https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/okf-visualize-knowledge)
Your own site
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/okf-visualize-knowledge"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/okf-visualize-knowledge.svg" alt="Measured on agentmods" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,501 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00128 $0.01501
Opus 5 $0.00064 $0.00750
Sonnet 5 $0.00026 $0.00300
Haiku 4.5 $0.00013 $0.00150

Measured 7d ago against content hash b44bc721b4c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

okf-visualize-knowledge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/examples/okf-visualize-knowledge/SKILL.md · 176 lines

How it starts

The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OKF Visualize Knowledge

Problem

Knowledge bases grow organically as folders of markdown files with cross-references. Without visualization:

  • Hard to spot which concepts are isolated (zero cross-refs)
  • Hard to see which skills have the most evidence
  • Hard to communicate "here's what I know" to teammates
  • Manual diagrams are stale the moment you write them

Reality: A 5-second command turns your notes into an interactive graph.

Context / Trigger Conditions

Use this skill when:

  • You have a directory of .md files with at least one cross-link ([text](other.md))
  • The files have a consistent organization (subdirectories, or flat)
  • You want to audit which concepts are orphans
  • You want a shareable, offline HTML view

Don't use:

  • Single-file notes (no cross-refs → no graph)
  • Confidential knowledge (the HTML has all content embedded)

Solution: 5-Minute Pipeline

Step 1: Install OKF tools

git clone https://github.com/GoogleCloudPlatform/knowledge-catalog.git
cd knowledge-catalog/okf
pip install -e .        # installs enrichment-agent CLI

Step 2: Add YAML frontmatter (optional but recommended)

Without frontmatter, OKF treats every file as a "Document" with no type. Add minimal frontmatter:

---
type: Skill
title: My Skill Name
description: One-line summary.
tags: [skill, kaggle]
timestamp: 2026-06-17T00:00:00Z
---

# My Skill

Body text with [cross-links](other-file.md)...

Step 3: Add index.md to each subdirectory (optional)

Each subdirectory gets a hub page:

---
type: Index
title: Subdir Name
description: What lives here.
---

# Subdir Name

* [file-one](file-one.md)
* [file-two](file-two.md)

Step 4: Run visualize

enrichment-agent visualize \
  --bundle /path/to/your/notes \
  --out /tmp/my-graph.html

Output: a self-contained HTML file (~50 KB) you can open or share.

Step 5: Iterate

Add a new concept → re-run visualize → see how the graph grew. Orphan concepts (no cross-refs) become obvious in the graph — fix them by adding links.

Read the full file on GitHub · 176 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 176 lines · 128 tokens per session scan A b44bc721b4c4

Subscribe to this mod's changes

okf-visualize-knowledge is a skill published in the GitHub repository topprismdata/cultivating-ml-agent (5 stars, last pushed 10d ago), licensed MIT. It adds 128 tokens to every session and 1,501 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.