understand-chat
Use when you need to ask questions about a codebase or understand code using a knowledge graph
Use when you need a deep-dive explanation of a specific file, function, or module in the codebase
$ npx -y skills add Egonex-AI/Understand-Anything --skill understand-explain --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/understand-explainContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when you need a deep-dive explanation of a specific file, function, or module in the codebase
name: understand-explain description: Use when you need a deep-dive explanation of a specific file, function, or module in the codebase argument-hint: "[file-path]"
Provide a thorough, in-depth explanation of a specific code component.
The knowledge graph JSON has this structure:
1. Use Grep to search within the JSON for relevant entries BEFORE reading the full file 2. Only read sections you need — don't dump the entire graph into context 3. Node names and summaries are the most useful fields for understanding 4. Edges tell you how components connect — follow imports and calls for dependency chains
1. **Resolve the data directory `$UA_DIR`.** Run `UA_DIR=$([ -d .understand-anything ] && echo .understand-anything || echo .ua)` — this is the legacy `.understand-anything/` when it already exists, otherwise the new `.ua/`. Check that `$UA_DIR/knowledge-graph.json` exists. If not, tell the user to run `/understand` first.
2. **Check graph freshness before using graph-derived context**:
GRAPH_COMMIT=$(git rev-parse --verify --end-of-options "${GRAPH_COMMIT_RAW}^{commit}" 2>/dev/null)
git rev-parse HEAD
git diff --name-only "$GRAPH_COMMIT" HEAD -- .
git diff --cached --name-only -- .
git diff --name-only -- .
git ls-files --others --exclude-standard -- .3. **Find the target node** — use Grep to search the knowledge graph for the component: "$ARGUMENTS"
4. **Find all connected edges** — Grep for the target node's ID in the edges section:
5. **Read connected nodes** — for each connected node ID from step 4, Grep for those IDs in the nodes section to get their `name`, `summary`, and `type`. This builds the component's neighborhood.
6. **Identify the layer** — Grep for the target node's ID in the `"layers"` section to find which architectural layer it belongs to and that layer's description.
7. **Read the actual source file** — Read the source file at the node's `filePath` for the deep-dive analysis.
8. **Explain the component in context**:
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…
Analyze a Figma file via the Figma REST API and generate an interactive design knowledge graph (pages, screens, components, component sets, instances, design…
Analyze a Karpathy-pattern LLM wiki knowledge base and generate an interactive knowledge graph with entity extraction, implicit relationships, and topic…