Generate interactive HTML dependency graphs for React components. Use when asked to "visualize components", "show component dependencies", "dependency graph", "component map", or "what depends on what".
From hugin-v0npx claudepluginhub michelve/hugin-marketplace --plugin hugin-v0This skill uses the workspace's default tool permissions.
scripts/visualize-components.pyGuides browser automation with Playwright, Puppeteer, Selenium for e2e testing and scraping. Teaches reliable selectors, auto-waits, isolation to fix flaky tests.
Provides checklists to review code for functionality, quality, security, performance, tests, and maintainability. Use for PRs, audits, team standards, and developer training.
Enforces A/B test setup with gates for hypothesis locking, metrics definition, sample size calculation, assumptions checks, and execution readiness before implementation.
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/ — DSAI)| Directory | Category | Purpose |
|---|---|---|
src/client/components/ui/ | UI (DSAI) | DSAI components (installed via dsai add) |
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 feature abstraction layer)React.lazy() pathsindex.ts)@/ are not resolved