/schematic:visualizefrom schematic
Map a codebase into one self-contained interactive HTML page showing its components, how they connect, where data flows, and which external services it calls. Also lists real gaps such as orphaned files and dead endpoints. Use when the user wants to see how an unfamiliar project fits together, asks for an architecture or component map, or wants to find unused or unprotected code.
Ships in schematic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read a project's source and produce component-map.html: a dark, interactive force-directed graph you open in a browser. The map is derived from the code, so regenerate it when the code changes instead of keeping an old copy.
Use the path the user gave. If they gave none, ask for one. Confirm it is a source tree. If it has no source code (only notes or documents), say so and suggest the diagram skill instead.
Detect the framework from its signals:
| Signal | Framework |
|---|---|
astro.config.* | Astro |
next.config.* | Next.js |
express or fastify in package.json | Node server |
Package.swift or *.xcodeproj | Swift or SwiftUI |
| MCP SDK imports and tool registrations | MCP server |
docker-compose.yml only | Docker or infrastructure |
Read the README if there is one. It tells you what the project is for, which helps you judge what is intended and what is dead code.
Use Glob and Grep. Record every discrete unit with a type, a short label (the file name, not the full path), and its file path.
| Type | What to look for |
|---|---|
| Page or route | pages/, app/ route files, route definitions |
| API endpoint | api/ handlers, @Get/@Post decorators, app.get( calls |
| UI component | components/, .vue, .svelte, React components |
| Layout | layouts/, wrapper components |
| Middleware | middleware.*, auth guards, request interceptors |
| Service | Service classes, API clients, integrations |
| Model | Data types, schemas, ORM models |
| Database | Migrations, schema files, query code |
| Worker | Cron jobs, queue consumers, background tasks |
| Config | Environment loading, feature flags |
| MCP tool, resource, prompt | server.tool(, server.resource(, server.prompt( registrations |
| Swift view or view model | struct X: View, @Observable classes |
Record each one as a directed edge: A depends on B, not "A and B are related".
Mark an edge as an external call when it goes outside the project: a third-party API, an identity provider, another service's URL. Name the external service and the component that calls it.
Report only gaps that exist in this code. A false positive costs more trust than a missed minor gap.
| Gap | How to check |
|---|---|
| Orphaned file | Nothing imports or references it, and it is not an entry point |
| Dead endpoint | An API route with no caller in the project |
| Unprotected route | A route that skips the auth middleware the other routes use |
| Missing validation | An endpoint that reads input with no schema or check |
| Circular dependency | A imports B and B imports A, directly or through a short chain |
| Undocumented external | An outbound call to a host that no config or env var mentions |
| Unhandled async path | An await or promise chain with no catch and no caller that handles errors |
Give each gap a severity: high (security or data loss), medium (broken behavior), low (cleanup).
Write one self-contained component-map.html: inline CSS, the data as an inline JSON object, and D3 v7 loaded from cdnjs:
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.9.0/d3.min.js"></script>
Write it to the path the user gave, or to component-map.html in the current directory. Do not write into any other folder, and do not store the map anywhere else.
Node colors:
| Type | Color | Shape |
|---|---|---|
| Page or route | #60a5fa | Rectangle |
| API endpoint, MCP tool | #34d399 | Rectangle |
| UI component | #a78bfa | Rectangle |
| Layout | #818cf8 | Rectangle |
| Middleware | #fbbf24 | Diamond |
| Service | #f472b6 | Rectangle |
| Model | #94a3b8 | Rounded rectangle |
| Database | #38bdf8 | Cylinder |
| External service | #fb923c | Dashed border |
| Config | #d4d4d8 | Small rectangle |
| Worker | #c084fc | Hexagon |
Edges: imports solid, API calls dashed, data flow thick, middleware dotted, external calls orange dashed.
Behavior:
Force settings: forceLink distance by edge type, forceManyBody with negative charge, forceCenter, forceCollide to stop overlaps, and forceX/forceY to cluster nodes by type. For more than 100 components, group by directory first and let the user expand a group.
Keep the page readable on a dark background: text contrast of at least 4.5:1.
Open the page in a browser if you have a browser tool, and confirm the console shows no errors. Check that the JSON data parses. Report:
component-map.html.env files and anything that looks like a secret store. Never print a secret's value; mention that the file exists if it matters.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
schematic@seayniclabs is listed by seayniclabs/plugins — review the source before installing
npx claudepluginhub seayniclabs/plugins --plugin schematic6 skills in this plugin
/architecture-diagramCreate polished dark-themed architecture diagrams as self-contained HTML+SVG files. Use when the user asks for system, infrastructure, cloud, security, or network topology diagrams./dashmotionCreate dark-themed, animated technical diagrams as self-contained HTML+SVG files — flowcharts whose connectors visibly flow, and architecture diagrams where requests travel as light dots through the system (Diagrid/Temporal landing-page style). Use this skill whenever the user asks for a flowchart, workflow, pipeline, process diagram, state machine, system architecture, infrastructure, cloud, microservices, or network topology diagram — and especially when they mention "animated", "flowing", "dynamic", "alive", "GIF-like", or want a diagram for a landing page, README, docs, or product demo. Also use it to convert Mermaid source (a mermaid code block or .mmd file) into an animated diagram — "animate this mermaid", "make this flowchart move". Prefer this over static diagram output whenever the diagram represents anything that moves: requests, events, data, jobs, messages, or control flow./diagramCreate an editable draw.io diagram from a plain description. Writes a .drawio file, or a .drawio.svg when the diagram belongs in a repo next to its docs. Covers flowcharts, architecture, sequence, swimlane, ER and org diagrams. Use when the user asks for a diagram they can edit in draw.io or diagrams.net, or for a diagram to commit with a README. For an animated diagram use the dashmotion skill./getting-startedOrient a new user of the Schematic skills. Explains what they do, how to install them in Claude Code as a plugin or by copying the skills folder into another app, which skill fits which request, and how to open the files they produce. Use when the user asks what Schematic is, how to install or start with these skills, or which diagram skill to use./network-diagramDraw a network topology diagram (L1 physical, L2 VLAN, or L3 IP subnets) as an editable draw.io file from a device inventory the user supplies. Groups devices into subnets and zones, and adds a device table. Use when the user asks for a network map, topology, rack or subnet layout, or a diagram of their home or office network.