运行时依赖
安装命令
点击复制技能文档
/understand-仪表盘
启动 the Understand Anything 仪表盘 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
检查 that .understand-anything/knowledge-graph.json exists in the project directory. If not, tell the user:
No knowledge graph found. 运行 /understand first to analyze this project.
Find the 仪表盘 code. The 仪表盘 is at packages/仪表盘/ relative to this 插件's root directory. Use the Bash 工具 to resolve the path:
插件_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
Or locate it by 检查ing these paths in order:
${CLAUDE_插件_ROOT}/packages/仪表盘/ The parent directory of this 技能 file, then ../../packages/仪表盘/
安装 dependencies if needed:
cd <仪表盘-dir> && pnpm 安装 --frozen-lockfile 2>/dev/null || pnpm 安装
启动 the Vite dev server pointing at the project's knowledge graph:
cd <仪表盘-dir> && GRAPH_DIR= npx vite --open
运行 this in the background so the user can continue working.
报告 to the user:
仪表盘 启动ed at http://localhost:5173 Viewing: /.understand-anything/knowledge-graph.json
The 仪表盘 is 运行ning in the background. Press Ctrl+C in the terminal to 停止 it.
Notes The 仪表盘 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 环境 variable tells the 仪表盘 where to find the knowledge graph