Start the Understand Anything dashboard to visualize the knowledge graph for the current project.
Instructions
Determine the project directory:
If $ARGUMENTS contains a path, use that as the project directory
Otherwise, use the current working directory
Check that .understand-anything/knowledge-graph.json exists in the project directory. If not, tell the user:
No knowledge graph found. Run /understand first to analyze this project.
Find the dashboard code. The dashboard is at packages/dashboard/ relative to this plugin's root directory. Check these paths in order and use the first that exists:
Extract the full URL including the ?token= parameter. The token is required to access the knowledge graph data — without it the dashboard will show an "Access Token Required" gate.
Report to the user, including the full tokenized URL:
Dashboard started at http://127.0.0.1:<PORT>?token=<TOKEN>
Viewing: <project-dir>/.understand-anything/knowledge-graph.json
The dashboard is running in the background. Press Ctrl+C in the terminal to stop it.
Important: Always include the ?token= parameter in the URL you share. If you omit it, the user will be blocked by the token gate and have to manually find the token in the terminal output.
Notes
The dashboard auto-opens in the default browser via --open
If port 5173 is already in use, Vite will pick the next available port
The GRAPH_DIR environment variable tells the dashboard where to find the knowledge graph
1---2name: understand-dashboard3description: Launch the interactive web dashboard to visualize a codebase's knowledge graph4---56# /understand-dashboard78Start the Understand Anything dashboard to visualize the knowledge graph for the current project.910## Instructions11121. Determine the project directory:13 - If `$ARGUMENTS` contains a path, use that as the project directory14 - Otherwise, use the current working directory15162. Check that `.understand-anything/knowledge-graph.json` exists in the project directory. If not, tell the user:17 ```18 No knowledge graph found. Run /understand first to analyze this project.19 ```20213. Find the dashboard code. The dashboard is at `packages/dashboard/` relative to this plugin's root directory. Check these paths in order and use the first that exists:22 - `${CLAUDE_PLUGIN_ROOT}/packages/dashboard/` (Claude Code runtime root, highest priority)23 - `~/.understand-anything-plugin/packages/dashboard/` (universal symlink, all installs)24 - Two levels up from `~/.agents/skills/understand-dashboard` real path (self-relative fallback)25 - Two levels up from `~/.copilot/skills/understand-dashboard` real path (Copilot personal skills fallback)26 - Common clone-based install roots:27 - `~/.codex/understand-anything/understand-anything-plugin/packages/dashboard/`28 - `~/.opencode/understand-anything/understand-anything-plugin/packages/dashboard/`29 - `~/.pi/understand-anything/understand-anything-plugin/packages/dashboard/`30 - `~/understand-anything/understand-anything-plugin/packages/dashboard/`3132 Use the Bash tool to resolve:33 ```bash34 SKILL_REAL=$(realpath ~/.agents/skills/understand-dashboard 2>/dev/null || readlink -f ~/.agents/skills/understand-dashboard 2>/dev/null || echo "")35 SELF_RELATIVE=$([ -n "$SKILL_REAL" ] && cd "$SKILL_REAL/../.." 2>/dev/null && pwd || echo "")36 COPILOT_SKILL_REAL=$(realpath ~/.copilot/skills/understand-dashboard 2>/dev/null || readlink -f ~/.copilot/skills/understand-dashboard 2>/dev/null || echo "")37 COPILOT_SELF_RELATIVE=$([ -n "$COPILOT_SKILL_REAL" ] && cd "$COPILOT_SKILL_REAL/../.." 2>/dev/null && pwd || echo "")3839 PLUGIN_ROOT=""40 for candidate in \41 "${CLAUDE_PLUGIN_ROOT}" \42 "$HOME/.understand-anything-plugin" \43 "$SELF_RELATIVE" \44 "$COPILOT_SELF_RELATIVE" \45 "$HOME/.codex/understand-anything/understand-anything-plugin" \46 "$HOME/.opencode/understand-anything/understand-anything-plugin" \47 "$HOME/.pi/understand-anything/understand-anything-plugin" \48 "$HOME/understand-anything/understand-anything-plugin"; do49 if [ -n "$candidate" ] && [ -d "$candidate/packages/dashboard" ]; then50 PLUGIN_ROOT="$candidate"; break51 fi52 done5354 if [ -z "$PLUGIN_ROOT" ]; then55 echo "Error: Cannot find the understand-anything plugin root."56 echo "Checked:"57 echo " - ${CLAUDE_PLUGIN_ROOT:-<unset CLAUDE_PLUGIN_ROOT>}"58 echo " - $HOME/.understand-anything-plugin"59 echo " - ${SELF_RELATIVE:-<unresolved path derived from ~/.agents/skills/understand-dashboard>}"60 echo " - ${COPILOT_SELF_RELATIVE:-<unresolved path derived from ~/.copilot/skills/understand-dashboard>}"61 echo " - $HOME/.codex/understand-anything/understand-anything-plugin"62 echo " - $HOME/.opencode/understand-anything/understand-anything-plugin"63 echo " - $HOME/.pi/understand-anything/understand-anything-plugin"64 echo " - $HOME/understand-anything/understand-anything-plugin"65 echo "Make sure you followed the installation instructions for your platform."66 exit 167 fi68 ```69704. Install dependencies and build if needed:71 ```bash72 cd <dashboard-dir> && pnpm install --frozen-lockfile 2>/dev/null || pnpm install73 ```74 Then ensure the core package is built (the dashboard depends on it):75 ```bash76 cd <plugin-root> && pnpm --filter @understand-anything/core build77 ```78795. Start the Vite dev server pointing at the project's knowledge graph:80 ```bash81 cd <dashboard-dir> && GRAPH_DIR=<project-dir> npx vite --host 127.0.0.182 ```83 Run this in the background so the user can continue working.84856. **Capture the access token URL from the server output.** The Vite server prints a line like:86 ```87 🔑 Dashboard URL: http://127.0.0.1:<PORT>?token=<TOKEN>88 ```89 Extract the full URL including the `?token=` parameter. The token is required to access the knowledge graph data — without it the dashboard will show an "Access Token Required" gate.90917. Report to the user, including the full tokenized URL:92 ```93 Dashboard started at http://127.0.0.1:<PORT>?token=<TOKEN>94 Viewing: <project-dir>/.understand-anything/knowledge-graph.json9596 The dashboard is running in the background. Press Ctrl+C in the terminal to stop it.97 ```98 **Important:** Always include the `?token=` parameter in the URL you share. If you omit it, the user will be blocked by the token gate and have to manually find the token in the terminal output.99100## Notes101102- The dashboard auto-opens in the default browser via `--open`103- If port 5173 is already in use, Vite will pick the next available port104- The `GRAPH_DIR` environment variable tells the dashboard where to find the knowledge graph
Run npx skillmds@latest add zouyangxiaohao111/understand-dashboard in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Launch the interactive web dashboard to visualize a codebase's knowledge graph It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
zouyangxiaohao111 (@zouyangxiaohao111) published this skill. Their other Agent Skills are listed on their SkillMD profile.