Help us improve
Share bugs, ideas, or general feedback.
From hugin-cowork
This skill should be used when the user asks to visualize components, show component dependencies, dependency graph, component map, or what depends on what. It generates interactive HTML dependency graphs for React components.
npx claudepluginhub michelve/hugin-marketplace --plugin hugin-coworkHow this skill is triggered — by the user, by Claude, or both
Slash command
/hugin-cowork:component-visualizerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate an interactive force-directed dependency graph of React components
Generates YAML index files (.ai/index/) for design system codebases: component inventory, relationship graph, summary stats. Enables fast AI agent queries on components and dependencies.
Generates Mermaid flowcharts visualizing import dependencies between modules/packages/plugins. Detects circular dependencies, analyzes coupling, and assesses refactoring impacts.
Automatically analyzes codebases to generate zero-config architecture diagrams by detecting project type, tech stack, and structure. For repo overviews without custom specs.
Share bugs, ideas, or general feedback.
Generate an interactive force-directed dependency graph of React components
as a standalone HTML file. Scans src/client/components/ and src/client/routes/
for import relationships and produces a browser-ready visualization.
Run the visualization script from the project root:
python3 "${CLAUDE_SKILL_DIR}/scripts/visualize-components.py"
This outputs component-graph.html in the project root. Open it in a browser.
To specify a custom output path:
python3 "${CLAUDE_SKILL_DIR}/scripts/visualize-components.py" /tmp/graph.html
src/client/routes/)src/client/components/)src/client/components/ui/ — shadcn)| Directory | Category | Purpose |
|---|---|---|
src/client/components/ui/ | UI (shadcn) | Installed shadcn primitives |
src/client/components/ | Component | Project feature components |
src/client/routes/ | Route | TanStack Router page files |
The script resolves these import patterns:
@/components/ui/button → src/client/components/ui/button.tsx@/components/app-sidebar → src/client/components/app-sidebar.tsx../components/header → relative path resolution./sub-component → same-directory resolutionNode module imports (e.g., react, @tanstack/router) are excluded.
Healthy patterns:
Warning signs:
ui/ (skipping abstraction layer)React.lazy() pathsindex.ts)@/ are not resolved