From understand-anything
Explains specific files, functions, or modules in depth using knowledge graph nodes, edges, layers, and source code analysis.
How this skill is triggered — by the user, by Claude, or both
Slash command
/understand-anything:understand-explainThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Provide a thorough, in-depth explanation of a specific code component.
Provide a thorough, in-depth explanation of a specific code component.
The knowledge graph JSON has this structure:
project — {name, description, languages, frameworks, analyzedAt, gitCommitHash}nodes[] — each has {id, type, name, filePath, summary, tags[], complexity, languageNotes?}
file:path, function:path:name, class:path:nameedges[] — each has {source, target, type, direction, weight}
layers[] — each has {id, name, description, nodeIds[]}tour[] — each has {order, title, description, nodeIds[]}Check that .understand-anything/knowledge-graph.json exists. If not, tell the user to run /understand first.
Find the target node — use Grep to search the knowledge graph for the component: "$ARGUMENTS"
src/auth/login.ts): search for "filePath" matchessrc/auth/login.ts:verifyToken): search for the function name in "name" fields filtered by the file pathid, type, summary, tags, and complexityFind all connected edges — Grep for the target node's ID in the edges section:
"source" matches → things this node calls/imports/depends on (outgoing)"target" matches → things that call/import/depend on this node (incoming)Read connected nodes — for each connected node ID from step 3, Grep for those IDs in the nodes section to get their name, summary, and type. This builds the component's neighborhood.
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.
Read the actual source file — Read the source file at the node's filePath for the deep-dive analysis.
Explain the component in context:
contains edges)npx claudepluginhub appleoppa/xuanji-understand-anything --plugin understand-anythingExplains complex code, files, or concepts using structural search and mermaid diagrams. Useful for architecture, data flow, and design analysis.
Explains code for project newcomers with structured coverage of purpose, rationale, connections, design decisions, and non-obvious details. Use for 'explain this', 'what does this do', or onboarding.
Traces real code paths and data flow to deeply explain how complex systems work across many files. Use for architectural analysis or understanding multi-file implementations.