# understand-anything-knowledge-graph

Runs a multi-agent pass over your project, builds a graph of files, functions and dependencies, then opens an interactive dashboard for exploring it.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 2400 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/understand-anything-knowledge-graph/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/understand-anything-knowledge-graph

## What it does

Five agents work in order. `project-scanner` finds the files and detects languages and frameworks; `file-analyzer` pulls out functions, classes and imports as graph nodes and edges; `architecture-analyzer` sorts those nodes into API, Service, Data, UI and Utility layers; `tour-builder` writes ordered learning routes; `graph-reviewer` checks that references hold up. The result lands in `.understand-anything/knowledge-graph.json` at the project root.

\`/understand-dashboard` then serves a React and Vite app. The React Flow canvas is colour-coded by layer, any node opens in an inspector with its code and relationships, and search covers the whole graph. Guided tours follow dependency order, and a persona switch changes how much detail you see, for a junior developer, a PM or someone who knows the stack. Each node carries a plain-language summary generated by the model.

Asking questions works through `/understand-chat <question>`. `/understand-explain <path>` goes deep on a single file, and `/understand-diff` lists the nodes hit by uncommitted edits, so the ripple shows up before you push. Building the plugin from source takes `pnpm` and the three `pnpm --filter … build` steps; the Claude plugin marketplace route skips all of that.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill understand-anything-knowledge-graph -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/understand-anything-knowledge-graph/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/understand-anything-knowledge-graph/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill understand-anything-knowledge-graph -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/understand-anything-knowledge-graph/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill understand-anything-knowledge-graph -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/understand-anything-knowledge-graph/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills understand-anything-knowledge-graph
```

2. **Manually: put the files in place**
- File: `.github/skills/understand-anything-knowledge-graph/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill understand-anything-knowledge-graph -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/understand-anything-knowledge-graph
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/understand-anything-knowledge-graph/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill understand-anything-knowledge-graph -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/understand-anything-knowledge-graph/SKILL.md

## When to use it
- map out the files, functions and dependencies of an unfamiliar project
- trace every caller of a given function
- see what uncommitted changes touch before pushing
- hand a newcomer a walkthrough of how the code fits together
- get a step-by-step explanation of one file or function

## Example prompts
- /understand
- /understand-dashboard
- /understand-explain src/auth/login.ts

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 186 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
