understand-knowledge

Analyze Karpathy-pattern LLM wikis and generate interactive knowledge graphs with entity extraction.

Updated Jun 28, 2026
One-click install
npx skills add https://github.com/AO-HyS/aohys.com --skill understand-knowledge-ao-hys
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: understand-knowledge
Source: https://github.com/AO-HyS/aohys.com/tree/main/.agents/skills/understand-knowledge
Command: npx skills add https://github.com/AO-HyS/aohys.com --skill understand-knowledge-ao-hys

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Karpathy-pattern LLM wikis accumulate raw sources, markdown articles, and wikilinks over time, but their implicit structure and cross-references remain hard to explore. This Skill parses the wiki deterministically, enriches it with LLM-extracted entities and claims, and produces an interactive knowledge graph dashboard. ## Core Features & Use Cases - Deterministic Wiki Parsing: Detects the Karpathy three-layer pattern (raw sources, wiki markdown, schema file), extracts wikilinks, headings, frontmatter, and categories from index.md into a scan manifest. - LLM-Enriched Analysis: Dispatches batched article-analyzer subagents to extract implicit entities, claims, and relationships that wikilinks alone do not capture. - Graph Assembly and Dashboard: Merges scan and analysis results with entity deduplication, edge normalization, layer building, and tour generation, then saves a validated knowledge-graph.json and triggers the dashboard. - Use Case: Point the Skill at a research wiki containing hundreds of markdown notes with wikilinks; it produces a force-directed knowledge graph showing articles, topics, entities, and claims organized by category. ## Quick Start Run the understand-knowledge skill on my wiki directory to build an interactive knowledge graph of all articles and their relationships.

Frequently Asked Questions about understand-knowledge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a knowledge graph from a markdown wiki?▼

Run the skill against the wiki directory; the bundled parse-knowledge-base.py script extracts articles, wikilinks, and categories into a scan manifest, then LLM analysis batches add implicit entities and claims before the merge script assembles the final graph.

What is the Karpathy LLM wiki pattern?▼

It is a three-layer knowledge base with immutable raw sources, LLM-generated markdown files using [[wikilink]] syntax, and a schema file like CLAUDE.md or AGENTS.md. Detection requires an index.md plus at least three markdown files.

Does the knowledge graph work without LLM analysis?▼

Yes. If analysis batches fail, the skill logs a warning and continues, because the deterministic scan manifest already provides a solid base graph of articles, topics, sources, and wikilink edges.

How are duplicate entities handled when merging analysis batches?▼

The merge script deduplicates entities using case-insensitive normalized name matching, remaps edges from duplicate IDs to the canonical entity ID, and drops edges with dangling source or target references.

What are the limitations of wiki knowledge graph extraction?▼

Raw source files are represented as lightweight nodes with filename and size only; PDFs and binaries are not parsed. Unresolved wikilinks are reported as warnings, and ambiguous duplicate basenames are excluded from link resolution.