understand-knowledge
Skill1 starsChanged 5 months agoMITView on GitHub
Analyze a Karpathy-pattern LLM wiki knowledge base and generate an interactive knowledge graph with entity extraction, implicit relationships, and topic clustering.
- Deletes or force-pushes
5 other projects use a version of this, 5 of them edited.
Adopted by
Most recently taken up by
- DevKazonovic/claude-dashboardedited, first seen Nov 29, 2026
- pwizzang/claude-skillsedited, first seen Nov 16, 2026
- Pdbjork/hermosskills-siteedited, first seen Jul 8, 2026
- MovGP0/Skillsedited, first seen Jun 30, 2026
- karanmrn/claude-skillsedited, first seen Jun 28, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- DevKazonovic/claude-dashboard★ 125% same
- MovGP0/Skills★ 1100% same
- karanmrn/claude-skills★ 0100% same
- Pdbjork/hermosskills-site★ 0100% same
- pwizzang/claude-skills★ 0100% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository146 other files it gives its agents.
- AGENTS.mdAGENTS.md
- humanizer/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- academy-guideSkill
- agent-browserSkill
- agent-evalSkill
- agent-introspection-debuggingSkill
- agent-reachSkill
- algorithmic-artSkill
- api-and-interface-designSkill
- ask-mattSkill
- audit-context-buildingSkill
- autoresearchSkill
- backend-patternsSkill
- brainstormingSkill
- brand-guidelinesSkill
- brandkitSkill
- browser-testing-with-devtoolsSkill
- industrial-brutalist-uiSkill
- canvas-designSkill
- capability-evolverSkill
- ci-cd-and-automationSkill
- cinematic-filmSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-budgetSkill
- context-engineeringSkill
- continuous-learningSkill
- coross-platform-vim-nvim-deploySkill
- councilSkill
- cpp-testingSkill
- csharp-testingSkill
- debugging-and-error-recoverySkill
- deep-researchSkill
- deployment-patternsSkill
- deprecation-and-migrationSkill
- diagram-designSkill
- dispatching-parallel-agentsSkill
- distillySkill
- django-securitySkill
- django-tddSkill
- dmux-workflowsSkill
- doc-coauthoringSkill
- documentation-and-adrsSkill
- docxSkill
- domain-modelingSkill
- doubt-driven-developmentSkill
- drawio-skillSkill
- ecc-harnessSkill
- entry-point-analyzerSkill
- executing-plansSkill
- figgenie-paper-diagramSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- frontend-ui-engineeringSkill
- fsharp-testingSkill
- git-workflow-and-versioningSkill
- golang-testingSkill
- gpt-tasteSkill
- graphifySkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 11 are common, 0 are distinctive, and 4 are very specific to this project.
11
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 27
If the user provided a path argument, use that
- Common: line 30
Run the format detection script bundled with this skill:
- Common: line 34
If the script exits with an error, tell the user this doesn't appear to be a Karpathy-pattern wiki and explain what was expected
- Very specific: line 35
If successful, proceed. The script writes scan-manifest.json to <TARGET_DIR>/.understand-anything/intermediate/
- Very specific: line 37
Read the scan-manifest.json and announce the results:
- Common: line 50
No additional scanning is needed.
- Very specific: line 56
Read the scan-manifest.json to get the article list
- Common: line 68
Run up to 3 batches concurrently.
- Common: line 70
If any batch fails, log a warning but continue — the scan-manifest provides a solid base graph even without LLM analysis.
- Common: line 74
Run the merge script bundled with this skill:
- Common: line 87
Read the merge report from stderr and announce:
- Common: line 96
Every edge source/target must reference an existing node
- Common: line 97
Every node must have: id, type, name, summary, tags, complexity
- Common: line 98
Remove any edges with dangling references
- Very specific: line 102
Write metadata to <TARGET_DIR>/.understand-anything/meta.json:
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/understand-knowledge
Analyzes a Karpathy-pattern LLM wiki — a three-layer knowledge base with raw sources, wiki markdown, and a schema file — and produces an interactive knowledge graph dashboard.
What It Detects
The Karpathy LLM wiki pattern (see https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f):
- Raw sources — immutable source documents (articles, papers, data files)
- Wiki — LLM-generated markdown files with wikilinks (
[[target]]syntax) - Schema — CLAUDE.md, AGENTS.md, or similar configuration file
- index.md — content catalog organized by categories
- log.md — chronological operation log
Detection signals: has index.md + multiple .md files with wikilinks. May have raw/ directory and schema file.
Instructions
Phase 1: DETECT
- Determine the target directory:
- If the user provided a path argument, use that
- Otherwise, use the current working directory
- Run the format detection script bundled with this skill:
python3 <SKILL_DIR>/parse-knowledge-base.py <TARGET_DIR>- If the script exits with an error, tell the user this doesn't appear to be a Karpathy-pattern wiki and explain what was expected
- If successful, proceed. The script writes
scan-manifest.jsonto<TARGET_DIR>/.understand-anything/intermediate/
- Read the scan-manifest.json and announce the results:
- "Detected Karpathy wiki: N articles, N sources, N topics, N wikilinks (N unresolved)"
- List the categories found from index.md
Phase 2: SCAN (already done)
The parse script in Phase 1 already performed the deterministic scan. The scan-manifest.json contains:
- Article nodes (one per wiki .md file) with extracted wikilinks, headings, frontmatter
- Source nodes (one per raw/ file)
- Topic nodes (from index.md section headings)
relatededges (from wikilinks)categorized_underedges (from index.md sections)
No additional scanning is needed. Proceed to Phase 3.
Phase 3: ANALYZE
Dispatch article-analyzer subagents to extract implicit knowledge:
- Read the scan-manifest.json to get the article list
- Prepare batches of 10-15 articles each, grouped by category when possible (articles in the same category are more likely to have implicit cross-references)
For each batch, dispatch an
article-analyzersubagent with:- The batch of articles (id, name, summary, wikilinks, category, content from knowledgeMeta)
- The full list of existing node IDs (so the agent can reference them)
- The batch number for output file naming
- The intermediate directory path:
$INTERMEDIATE_DIR = <TARGET_DIR>/.understand-anything/intermediate
The agent will write
analysis-batch-{N}.jsonto the intermediate directory.- Run up to 3 batches concurrently. Wait for all batches to complete.
- If any batch fails, log a warning but continue — the scan-manifest provides a solid base graph even without LLM analysis.
Phase 4: MERGE
- Run the merge script bundled with this skill:
python3 <SKILL_DIR>/merge-knowledge-graph.py <TARGET_DIR> - The script:
- Combines scan-manifest.json + all analysis-batch-*.json files
- Deduplicates entities (case-insensitive name matching)
- Normalizes node/edge types via alias maps
- Builds layers from index.md categories
- Builds a tour from index.md section ordering
- Writes
assembled-graph.jsonto the intermediate directory
- Read the merge report from stderr and announce:
- Total nodes, edges, layers, tour steps
- How many entities/claims the LLM analysis added
Phase 5: SAVE
- Read the assembled-graph.json
- Run basic validation:
- Every edge source/target must reference an existing node
- Every node must have: id, type, name, summary, tags, complexity
- Remove any edges with dangling references
- Copy the validated graph to
<TARGET_DIR>/.understand-anything/knowledge-graph.json - Write metadata to
<TARGET_DIR>/.understand-anything/meta.json:{ "lastAnalyzedAt": "<ISO timestamp>", "gitCommitHash": "<from git rev-parse HEAD or empty>", "version": "1.0.0", "analyzedFiles": <number of wiki articles> } - Clean up intermediate files:
rm -rf <TARGET_DIR>/.understand-anything/intermediate - Report summary to the user:
- "Knowledge graph saved: N articles, N entities, N topics, N claims, N sources"
- "N edges (N wikilink, N categorized, N implicit)"
- "N layers, N tour steps"
- Auto-trigger the dashboard:
/understand-dashboard <TARGET_DIR>
Notes
- The parse script handles ALL deterministic extraction (wikilinks, headings, frontmatter, categories from index.md). The LLM agents only add implicit knowledge that requires inference.
- Categories and taxonomy come from index.md section headings, NOT from filename prefixes. The Karpathy spec is intentionally abstract about naming conventions.
- The graph uses
kind: "knowledge"to signal the dashboard to use force-directed layout instead of hierarchical dagre. - Source nodes from raw/ are lightweight (filename + size only) — we don't parse PDFs or binary files.
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.

