Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aradotso avatar

Understand Anything Knowledge Graph

  • 2.3k installs
  • 66 repo stars
  • Updated July 9, 2026
  • aradotso/trending-skills

understand-anything builds an interactive codebase knowledge graph via multi-agent analysis and a React dashboard.

About

The understand-anything-knowledge-graph skill installs and runs the Understand Anything Claude Code plugin that maps files, functions, classes, and dependencies into knowledge-graph.json with plain-English summaries. Commands include /understand for the five-agent pipeline, /understand-dashboard for a React Flow browser UI, /understand-chat for NL queries, /understand-diff for uncommitted change impact, /understand-explain for file deep dives, and /understand-onboard for team guides. The pipeline runs project-scanner, up to three concurrent file-analyzers, architecture-analyzer layer grouping, tour-generator, and graph-reviewer integrity checks. Output persists under .understand-anything/knowledge-graph.json with incremental re-runs on changed files only. The dashboard uses React Flow, Zustand, Fuse.js search, and persona modes for junior dev, PM, or power user detail levels. Core package APIs support loadKnowledgeGraph, searchGraph, and buildTour programmatically. Install via Claude plugin marketplace or pnpm monorepo build from source. Troubleshoot timeouts on very large repos, stale graphs after refactors by deleting the cache, and dashboard build prerequisites.

  • /understand runs five-agent pipeline to knowledge-graph.json with LLM summaries.
  • Dashboard: React Flow graph, search, tours, persona modes, node inspector.
  • /understand-chat, /understand-diff, /understand-explain, /understand-onboard commands.
  • Incremental updates re-analyze only changed files by mtime and content hash.
  • Core package: loadKnowledgeGraph, searchGraph, buildTour for programmatic use.

Understand Anything Knowledge Graph by the numbers

  • 2,327 all-time installs (skills.sh)
  • +59 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #364 of 16,659 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

understand-anything-knowledge-graph capabilities & compatibility

Capabilities
multi agent file and architecture analysis · interactive react flow dashboard with search · natural language codebase chat queries · git diff to affected node impact analysis · programmatic graph load search and tour apis
Use cases
research · documentation · code review
npx skills add https://github.com/aradotso/trending-skills --skill understand-anything-knowledge-graph

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2.3k
repo stars66
Security audit3 / 3 scanners passed
Last updatedJuly 9, 2026
Repositoryaradotso/trending-skills

How do I visually explore and ask questions about an unfamiliar codebase structure and dependencies?

Analyze a codebase into an interactive knowledge graph with multi-agent pipeline, React dashboard, natural-language chat, diff impact, and onboarding guides.

Who is it for?

Claude Code users onboarding to repos, reviewing diffs, or researching feature areas visually.

Skip if: Skip for tiny scripts or when deep static analysis without the plugin install is sufficient.

When should I use this skill?

User asks to analyze codebase, build knowledge graph, /understand, or explore project visually.

What you get

Persisted knowledge graph, optional dashboard, NL answers, diff impact list, or onboarding guide.

  • Interactive knowledge graph
  • Node summary index
  • Onboarding guide

By the numbers

  • Skill readme lists 8 documented trigger phrases

Files

SKILL.mdMarkdownGitHub ↗

Understand Anything — Codebase Knowledge Graph

Skill by ara.so — Daily 2026 Skills collection.

Understand Anything is a Claude Code plugin that runs a multi-agent pipeline over your project, builds a knowledge graph of every file, function, class, and dependency, and opens an interactive React dashboard for visual exploration. It produces plain-English summaries of every node so anyone — developer, PM, or designer — can understand the codebase.

---

Installation

Via Claude Code plugin marketplace

/plugin marketplace add Lum1104/Understand-Anything
/plugin install understand-anything

From source (development)

git clone https://github.com/Lum1104/Understand-Anything
cd Understand-Anything
pnpm install
pnpm --filter @understand-anything/core build
pnpm --filter @understand-anything/skill build
pnpm --filter @understand-anything/dashboard build

---

Core Skills / Commands

CommandWhat it does
/understandRun the full multi-agent analysis pipeline on the current project
/understand-dashboardOpen the interactive knowledge graph dashboard
/understand-chat <question>Ask anything about the codebase in natural language
/understand-diffAnalyze impact of current uncommitted changes
/understand-explain <path>Deep-dive explanation of a specific file or function
/understand-onboardGenerate an onboarding guide for new team members

---

Typical Workflow

1. Analyze a project

# Inside any project directory, in Claude Code:
/understand

This orchestrates 5 agents in sequence (with file-analyzers running up to 3 concurrent):

1. project-scanner — discovers files, detects languages/frameworks 2. file-analyzer — extracts functions, classes, imports; builds graph nodes and edges 3. architecture-analyzer — groups nodes into architectural layers (API, Service, Data, UI, Utility) 4. tour-builder — generates ordered learning tours 5. graph-reviewer — validates referential integrity

Output is saved to .understand-anything/knowledge-graph.json in your project root.

2. Open the dashboard

/understand-dashboard

The React + Vite dashboard opens in your browser. Features:

  • Graph view — React Flow canvas, color-coded by layer, zoom/pan
  • Node inspector — click any node for code, relationships, LLM summary
  • Search — fuzzy + semantic search across all nodes
  • Tours — guided walkthroughs ordered by dependency
  • Persona mode — toggle detail level (Junior Dev / PM / Power User)

3. Ask questions

/understand-chat How does authentication work in this project?
/understand-chat What calls the payment service?
/understand-chat Which files are most depended on?

4. Review diff impact before committing

# After making changes:
/understand-diff

Returns a list of affected nodes in the knowledge graph — shows ripple effects before you push.

5. Explain a specific file

/understand-explain src/auth/login.ts
/understand-explain src/services/PaymentService.ts

---

Knowledge Graph Schema

The graph is stored at .understand-anything/knowledge-graph.json. Key types (from packages/core):

// packages/core/src/types.ts

interface GraphNode {
  id: string;                    // unique: "file:src/auth/login.ts"
  type: "file" | "function" | "class" | "module";
  name: string;
  filePath: string;
  layer: ArchitectureLayer;      // "api" | "service" | "data" | "ui" | "utility"
  summary: string;               // LLM-generated plain-English description
  code?: string;                 // raw source snippet
  language?: string;
  concepts?: LanguageConcept[];  // e.g. "generics", "closures", "decorators"
  metadata?: Record<string, unknown>;
}

interface GraphEdge {
  id: string;
  source: string;                // node id
  target: string;                // node id
  type: "imports" | "calls" | "extends" | "implements" | "uses";
  label?: string;
}

interface KnowledgeGraph {
  version: string;
  generatedAt: string;
  projectRoot: string;
  nodes: GraphNode[];
  edges: GraphEdge[];
  tours: GuidedTour[];
}

type ArchitectureLayer = "api" | "service" | "data" | "ui" | "utility" | "unknown";

type LanguageConcept =
  | "generics"
  | "closures"
  | "decorators"
  | "async-await"
  | "interfaces"
  | "higher-order-functions"
  | "dependency-injection"
  | "observers"
  | "iterators"
  | "pattern-matching"
  | "monads"
  | "currying";

---

Working with the Core Package Programmatically

import { loadKnowledgeGraph, searchGraph, buildTour } from "@understand-anything/core";

// Load the persisted graph
const graph = await loadKnowledgeGraph(".understand-anything/knowledge-graph.json");

// Fuzzy search across all nodes
const results = searchGraph(graph, "payment processing");
console.log(results.map(r => `${r.type}:${r.name} (${r.filePath})`));

// Find all callers of a function
const paymentNode = graph.nodes.find(n => n.name === "processPayment");
const callers = graph.edges
  .filter(e => e.target === paymentNode?.id && e.type === "calls")
  .map(e => graph.nodes.find(n => n.id === e.source));

// Get all nodes in the service layer
const serviceNodes = graph.nodes.filter(n => n.layer === "service");

// Build a guided tour starting from a specific node
const tour = buildTour(graph, { startNodeId: "file:src/index.ts" });
tour.steps.forEach((step, i) => {
  console.log(`Step ${i + 1}: ${step.node.name} — ${step.node.summary}`);
});

---

Dashboard Development

# Start the dashboard dev server (hot reload)
pnpm dev:dashboard

# Build for production
pnpm --filter @understand-anything/dashboard build

The dashboard is a Vite + React 18 app using:

  • React Flow — graph canvas rendering
  • Zustand — graph state management
  • TailwindCSS v4 — styling
  • Fuse.js — fuzzy search
  • web-tree-sitter — in-browser AST parsing
  • Dagre — automatic graph layout

---

Project Structure

understand-anything-plugin/
├── .claude-plugin/          # Plugin manifest (read by Claude Code)
├── agents/                  # Agent definitions (project-scanner, file-analyzer, etc.)
├── skills/                  # Skill definitions (/understand, /understand-chat, etc.)
├── src/                     # Plugin TypeScript source
│   ├── context-builder.ts   # Builds LLM context from the graph
│   └── diff-analyzer.ts     # Git diff → affected nodes
├── packages/
│   ├── core/                # Analysis engine
│   │   ├── src/
│   │   │   ├── types.ts     # GraphNode, GraphEdge, KnowledgeGraph
│   │   │   ├── persistence.ts
│   │   │   ├── search.ts    # Fuzzy + semantic search
│   │   │   ├── tours.ts     # Tour generation
│   │   │   ├── schema.ts    # Zod validation schemas
│   │   │   └── tree-sitter.ts
│   │   └── tests/
│   └── dashboard/           # React dashboard app
│       └── src/

---

Incremental Updates

Re-running /understand only re-analyzes files that changed since the last run (based on mtime and content hash stored in the graph metadata). For large monorepos this makes subsequent runs fast.

To force a full re-analysis:

rm -rf .understand-anything/
/understand

---

Development Commands

pnpm install                                        # Install all dependencies
pnpm --filter @understand-anything/core build       # Build core package
pnpm --filter @understand-anything/core test        # Run core tests
pnpm --filter @understand-anything/skill build      # Build plugin package
pnpm --filter @understand-anything/skill test       # Run plugin tests
pnpm --filter @understand-anything/dashboard build  # Build dashboard
pnpm dev:dashboard                                  # Dashboard dev server with HMR

---

Common Patterns

Before a code review

# See what your diff actually touches in the architecture
/understand-diff

Onboarding a new engineer

# Generate a structured onboarding doc grounded in the real code
/understand-onboard

Researching a feature area

/understand-chat What are all the entry points for the GraphQL API?
/understand-explain src/graphql/resolvers/

Understanding an unfamiliar module

/understand-explain src/workers/queue-processor.ts
# Returns: summary, key functions, what calls it, what it calls, concepts used

---

Troubleshooting

`/understand` times out on large repos

  • The file-analyzer runs up to 3 workers concurrently. Very large repos (>50k files) may need patience. Delete .understand-anything/ and re-run if a previous run was interrupted.

Dashboard doesn't open

  • Run pnpm --filter @understand-anything/dashboard build first if working from source, then retry /understand-dashboard.

Stale graph after major refactor

  • Delete .understand-anything/knowledge-graph.json to force full re-analysis: rm .understand-anything/knowledge-graph.json && /understand

`pnpm install` fails with workspace errors

  • Ensure you are using pnpm v8+: pnpm --version. The project uses pnpm workspaces defined in pnpm-workspace.yaml.

Search returns no results

  • Confirm the graph was generated: cat .understand-anything/knowledge-graph.json | head -5. If empty or missing, run /understand first.

---

Contributing

# Fork, then:
git checkout -b feature/my-feature
pnpm --filter @understand-anything/core test   # must pass
# open a PR — file an issue first for major changes

License: MIT © Lum1104

Related skills

How it compares

Use understand-anything-knowledge-graph for visual onboarding maps; use inline code search when you already know exact file paths.

FAQ

Where is the graph stored?

At .understand-anything/knowledge-graph.json in the project root after /understand completes.

How do incremental runs work?

Re-runs only re-analyze files changed since last run by mtime and hash; delete the folder to force full rebuild.

What if the dashboard will not open?

Build the dashboard package from source with pnpm then retry /understand-dashboard.

Is Understand Anything Knowledge Graph safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

AI & Agent Buildingintegrationsdocs

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.