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.
TypeScript antigravity-skillsbusiness-knowledgeclaude-codeclaude-skillscodebase-analysiscodexcodex-skillsdeveloper-tools-ai-agentgemini-cli-skillskarpathy-llm-wikiknowledge-baseknowledge-graphmemoryopencode-skillspi-agentunderstandcodevibe-coding
fix(dashboard): auto-detect knowledge graph from .understand-anything/
Lum1104f69ad5887e3e
diff --git a/README.md b/README.mdindex d31a9487..9ff62b71 100644--- a/README.md+++ b/README.md@@ -41,43 +41,35 @@ An open-source tool that combines LLM intelligence with static analysis to help## Quick Start-```bash-# Install dependencies-pnpm install--# Build the core package-pnpm --filter @understand-anything/core build+### 1. Analyze any codebase (via Claude Code)-# Build the skill package-pnpm --filter @understand-anything/skill build+```bash+# Install the plugin+claude --plugin-dir /path/to/Understand-Anything/packages/skill-# Start the dashboard dev server-pnpm dev:dashboard+# In any project, run:+/understand```-## Commands+This produces `.understand-anything/knowledge-graph.json` in your project.-| Command | Description |-|---------|-------------|-| `pnpm install` | Install all dependencies |-| `pnpm --filter @understand-anything/core build` | Build the core package |-| `pnpm --filter @understand-anything/core test` | Run core tests |-| `pnpm --filter @understand-anything/skill build` | Build the skill package |-| `pnpm --filter @understand-anything/skill test` | Run skill tests |-| `pnpm --filter @understand-anything/dashboard build` | Build the dashboard |-| `pnpm dev:dashboard` | Start dashboard dev server |+### 2. View the dashboard-### Claude Code Skills+```bash+# Clone this repo and install+git clone https://github.com/Lum1104/Understand-Anything.git+cd Understand-Anything+pnpm install-Install as a Claude Code plugin, then use these commands:+# Start the dashboard (auto-detects .understand-anything/ from your project)+pnpm dev:dashboard+```-```bash-# Analyze a codebase (produces .understand-anything/knowledge-graph.json)-/understand+The dashboard dev server automatically looks for `.understand-anything/knowledge-graph.json` in the project root — no manual copying needed.-# Force a full rebuild-/understand --full+### 3. Use other skill commands+```bash# Ask questions about the codebase/understand-chat How does authentication work in this project?@@ -91,13 +83,19 @@ Install as a Claude Code plugin, then use these commands:/understand-onboard```-#### Plugin Installation+## Plugin Installation++The skill commands work in any project via Claude Code:```bash# Option 1: Load for current session-claude --plugin-dir ./packages/skill+claude --plugin-dir /path/to/Understand-Anything/packages/skill# Option 2: Add to .claude/settings.json for persistent use+# (in the project where you cloned Understand-Anything)+```++```json{"enabledPlugins": {"understand-anything": {}@@ -105,7 +103,19 @@ claude --plugin-dir ./packages/skill}```-#### Multi-Agent Architecture+## Commands++| Command | Description |+|---------|-------------|+| `pnpm install` | Install all dependencies |+| `pnpm --filter @understand-anything/core build` | Build the core package |+| `pnpm --filter @understand-anything/core test` | Run core tests |+| `pnpm --filter @understand-anything/skill build` | Build the skill package |+| `pnpm --filter @understand-anything/skill test` | Run skill tests |+| `pnpm --filter @understand-anything/dashboard build` | Build the dashboard |+| `pnpm dev:dashboard` | Start dashboard dev server |++## Multi-Agent ArchitectureThe `/understand` command orchestrates 5 specialized agents in a 7-phase pipeline:diff --git a/packages/dashboard/vite.config.ts b/packages/dashboard/vite.config.tsindex 0ce1839d..7e1f9125 100644--- a/packages/dashboard/vite.config.ts+++ b/packages/dashboard/vite.config.ts@@ -1,7 +1,34 @@import { defineConfig } from "vite";import react from "@vitejs/plugin-react";import tailwindcss from "@tailwindcss/vite";+import path from "path";+import fs from "fs";export default defineConfig({- plugins: [react(), tailwindcss()],+ plugins: [+ react(),+ tailwindcss(),+ {+ name: "serve-knowledge-graph",+ configureServer(server) {+ server.middlewares.use((req, res, next) => {+ if (req.url === "/knowledge-graph.json") {+ // Look for .understand-anything/knowledge-graph.json up from cwd+ const candidates = [+ path.resolve(process.cwd(), ".understand-anything/knowledge-graph.json"),+ path.resolve(process.cwd(), "../../.understand-anything/knowledge-graph.json"),+ ];+ for (const candidate of candidates) {+ if (fs.existsSync(candidate)) {+ res.setHeader("Content-Type", "application/json");+ fs.createReadStream(candidate).pipe(res);+ return;+ }+ }+ }+ next();+ });+ },+ },+ ],});diff --git a/packages/skill/skills/understand/SKILL.md b/packages/skill/skills/understand/SKILL.mdindex 46ea5450..17f836bc 100644--- a/packages/skill/skills/understand/SKILL.md+++ b/packages/skill/skills/understand/SKILL.md@@ -183,6 +183,12 @@ If the reviewer reports `approved: false`:- Tour steps generated- Any warnings from the reviewer- Path to the output file+4. Tell the user how to view the dashboard:+ ```+ To view your codebase dashboard, clone the Understand Anything repo and run:+ pnpm install && pnpm dev:dashboard+ The dashboard auto-detects .understand-anything/knowledge-graph.json from the project root.+ ```## Error Handling