understand-chat
Use when you need to ask questions about a codebase or understand code using a knowledge graph
Analyze a Karpathy-pattern LLM wiki knowledge base and generate an interactive knowledge graph with entity extraction, implicit relationships, and topic clustering.
$ npx -y skills add Egonex-AI/Understand-Anything --skill understand-knowledge --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/understand-knowledgeContext preview
The summary Claude sees to decide when to auto-load this skill.
Analyze a Karpathy-pattern LLM wiki knowledge base and generate an interactive knowledge graph with entity extraction, implicit relationships, and topic clustering.
name: understand-knowledge description: Analyze a Karpathy-pattern LLM wiki knowledge base and generate an interactive knowledge graph with entity extraction, implicit relationships, and topic clustering. argument-hint: "[wiki-directory]"
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.
The **Karpathy LLM wiki pattern** (see https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f):
Detection signals: has `index.md` + multiple `.md` files with wikilinks. May have `raw/` directory and schema file.
1. Determine the target directory:
2. Run the format detection script bundled with this skill:
python3 "<SKILL_DIR>/parse-knowledge-base.py" "<TARGET_DIR>"
3. Read the scan-manifest.json and announce the results:
The parse script in Phase 1 already performed the deterministic scan. The scan-manifest.json contains:
No additional scanning is needed. Proceed to Phase 3.
Dispatch `article-analyzer` subagents to extract implicit knowledge:
1. Read the scan-manifest.json to get the article list
2. 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)
3. For each batch, dispatch an `article-analyzer` subagent with:
The agent will write `analysis-batch-{N}.json` to the intermediate directory.
4. Run up to 3 batches concurrently. Wait for all batches to complete.
5. If any batch fails, log a warning but continue — the scan-manifest provides a solid base graph even without LLM analysis.
1. Run the merge script bundled with this skill:
python3 "<SKILL_DIR>/merge-knowledge-graph.py" "<TARGET_DIR>"
2. The script:
3. Read the merge report from stderr and announce:
1. Read the assembled-graph.json
2. Run basic validation:
3. Copy the validated graph to `$UA_DIR/knowledge-graph.json`
4. Write metadata to `$UA_DIR/meta.json`:
{
"lastAnalyzedAt": "<ISO timestamp>",
"gitCommitHash": "<from git rev-parse HEAD or empty>",
"version": "1.0.0",
"analyzedFiles": <number of wiki articles>
}5. Clean up intermediate files. Resolve `$UA_DIR` into a shell variable and guard it so an empty or unresolved path can never expand to `rm -rf /intermediate` (deleting from the filesystem root):
TARGET_DIR="<TARGET_DIR>"
UA_DIR="$TARGET_DIR/$([ -d "$TARGET_DIR/.understand-anything" ] && echo .understand-anything || echo .ua)"
if [ -n "$TARGET_DIR" ] && [ -d "$UA_DIR/intermediate" ]; then
rm -rf "$UA_DIR/intermediate"
fi6. Report summary to the user:
7. Auto-trigger the dashboard:
/understand-dashboard <TARGET_DIR>
Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
Repo: Egonex-AI/Understand-Anything
Use when you need to ask questions about a codebase or understand code using a knowledge graph
Launch the interactive web dashboard to visualize a codebase's knowledge graph
Use when you need to analyze git diffs or pull requests to understand what changed, affected components, and risks
Extract business domain knowledge from a codebase and generate an interactive domain flow graph. Works standalone (lightweight scan) or derives from an…
Use when you need a deep-dive explanation of a specific file, function, or module in the codebase
Analyze a Figma file via the Figma REST API and generate an interactive design knowledge graph (pages, screens, components, component sets, instances, design…