okf-visualize-knowledge
Skill5 starsChanged 34 days agoMITView on GitHub
Use Google's Open Knowledge Format (OKF) to convert any directory of markdown files into a force-directed knowledge graph. Validated on `docs/ml-agent-memory/`: 12 concepts / 35 edges rendered in 5 seconds. Use when: (1) You have a directory of markdown notes with cross-references, (2) You want to visualize how your concepts/skills/lessons connect, (3) You want to add type-driven coloring (Principle vs Skill vs Lesson vs Competition vs Bundle), (4) You want self-contained HTML output that runs offline.
- Installs packages
In this repository63 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adversarial-validation-kaggleSkill
- agent-nurture-frameworkSkill
- agent-session-memory-protocolSkill
- arxiv-paper-searchSkill
- autogluon-firstSkill
- autogluon-preset-strategySkill
- autogluon-timeseries-strategySkill
- catboost-first-tabularSkill
- claudeceptionSkill
- code-competition-artifact-pipelineSkill
- competition-orchestration-multimodelSkill
- context-engineeringSkill
- controlled-submission-experimentSkill
- cross-competition-feature-transferSkill
- cv-lb-gap-acknowledgmentSkill
- domain-knowledge-constraints-trapSkill
- ensemble-model-correlation-trapSkill
- feature-engineering-saturation-detectionSkill
- gpu-readiness-assessmentSkill
- gsd-loop-engineeringSkill
- kaggle-cognitive-cost-optimizationSkill
- kaggle-competition-best-practicesSkill
- kaggle-competition-type-strategySkill
- kaggle-data-format-firstSkill
- kaggle-discussion-searchSkill
- kaggle-experiment-sopSkill
- kaggle-oof-lb-validation-protocolSkill
- kaggle-optimal-blendingSkill
- kaggle-submission-format-by-metricSkill
- kaggle-top-performer-replicationSkill
- knowledge-crystallization-feedback-loopSkill
- ladder-drift-and-meta-aware-regressionSkill
- learned-value-beats-heuristic-augmentationSkill
- llm-competition-pipelineSkill
- mcts-pipeline-searchSkill
- mem0-dynamic-graph-memorySkill
- memory-hierarchy-managementSkill
- ml-sweet-spot-principleSkill
- model-ensemble-negative-weight-effectSkill
- multi-agent-rolesSkill
- multi-level-aggregation-overfittingSkill
- onnx-minimal-network-designSkill
- per-category-modeling-backfireSkill
- progressive-verification-debuggingSkill
- ptcg-2ply-bounded-searchSkill
- ptcg-bc-large-model-submissionSkill
- retail-eda-frameworkSkill
- rmsle-zero-threshold-asymmetrySkill
- runtime-reflexionSkill
- sc-tir-mathematical-reasoningSkill
- self-evolving-skillsSkill
- skill-governance-and-automationSkill
- spatiotemporal-graph-feature-engineeringSkill
- store-sales-darts-chronos-blendSkill
- tabular-polynomial-features-breakthroughSkill
- three-layer-wisdom-extractionSkill
- time-series-walk-forward-validationSkill
- trueskill-simulation-competition-strategySkill
- ts-day-specific-forecastingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Use this skill when:
- Distinctive: line 96
Add a new concept → re-run visualize → see how the graph grew.
- Distinctive: line 120
Use descriptive, self-explanatory type values — consumers (visualize, future readers) handle unknown types gracefully.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
.mdfiles 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 CLIStep 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.htmlOutput: 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.
What OKF Generates
Wrote 12 concept(s), 35 edge(s), 64117 bytes → /tmp/my-graph.html- concept(s): markdown files with at least one frontmatter or body content
- edge(s): markdown links between files (counted as edges)
- bytes: HTML output size (~5 KB per concept)
Type-Driven Coloring
The viewer colors nodes by type: frontmatter field:
| Type | Color |
Bundle / Index / Dashboard | structural nodes (gray/blue) |
Principle / Principle Set | wisdom (mauve) |
Skill / Lesson | actionable (coral) |
Competition / Experiment / Model / Submission | ML domain (green/cyan) |
| Unknown | default |
Use descriptive, self-explanatory type values — consumers (visualize, future readers) handle unknown types gracefully.
Validation
docs/ml-agent-memory/ is the working example:
- 12 concepts / 35 edges / 64 KB HTML
- 4 subdirectories (
competitions/,experiments/,skills/,lessons/) - 8 different type values used
- Renders in < 5 seconds on M-series Mac
cd ~/projects/cultivating-ml-agent/docs/ml-agent-memory
enrichment-agent visualize --bundle . --out /tmp/viz.html
open /tmp/viz.htmlWhy OKF vs Alternatives
| Tool | Pro | Con |
| OKF + visualize | Plain markdown, git-versioned, offline | Manual frontmatter |
| Obsidian | Polished UI, daily use | Tied to Obsidian app, no offline HTML |
| MkDocs | Mature, themes | Static site, no interactive graph |
| Logseq | Block-based, Roam-like | Different mental model |
OKF wins when you want a vendor-neutral format with git-versioned history and a single static-HTML viewer.
Real-World Usage
Validated during S6E2 AutoGluon rerun (2026-06-14):
- Discovered ml-agent-memory had 0 OKF edges before migration
- Added frontmatter + cross-links → jumped to 6/24 in 10 minutes
- Subsequent S6E2 lesson extractions → 12/35 in another 30 minutes
Each new concept added at < 5 minutes total (write frontmatter + cross-link to existing concepts).
Notes
Type values are free but pick descriptive ones. The OKF repo's
issue #60
proposes ML-canonical types (Experiment, Model, Submission, Lesson,
Competition, Bundle). Use those for ML knowledge; pick your own for other domains.
File-relative links only. The OKF viewer rewrites absolute paths to GitHub-friendly relative paths (PR #45 in OKF repo).
Related Skills
kaggle-data-format-first— verify data format BEFORE research (similar "verify first" philosophy)autogluon-first— get a strong baseline in 15 min before iteratingml-sweet-spot— when to stop optimizing
References
- GoogleCloudPlatform/knowledge-catalog — OKF source
- OKF v0.1 SPEC
- PR #6 in
topprismdata/cultivating-ml-agent— OKF migration ofdocs/ml-agent-memory/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

