---
name: html-svg-diagrams
description: >-
Create SVG-based technical diagrams inside HTML — flowcharts, sequence diagrams, state machines,
data-flow diagrams, dependency graphs, request/response timelines. Use whenever the user wants to
visualize, illustrate, diagram, or sketch a technical concept, system, or process. Strongly prefer
SVG over ASCII art, mermaid blocks, or markdown text for anything spatial or relational. Reach for
this whenever an explanation involves arrows, boxes, layers, or sequencing — even when the user
doesn't say "diagram".
license: MIT
metadata:
version: "1.3.0"
---
# HTML SVG Diagrams & Flowcharts
ASCII diagrams in markdown are a workaround for not having SVG. With SVG inside HTML, you get real shapes, real arrows, real typography, and real positioning — for the same conceptual cost.
Use this skill any time the explanation has arrows, boxes, layers, time, or position. Most technical concepts do.
## Pre-flight — run BEFORE writing the artifact
Invoke `html-skills:html-skills-listen` (Skill tool) first; it is idempotent. If it returns a URL, inject it verbatim as `window.__CLAUDE_SUBMIT_URL__` in the HTML you are about to write, `?t=` query string included (a local, single-session loopback handshake — not a credential). If it reported web/sandbox mode, leave that line out; `submitToClaude` then falls back to clipboard mode.
## When to use this skill
- "Diagram / illustrate / visualize / draw X"
- "Show me how the [request, data, message] flows"
- "Sketch the [architecture, state machine, sequence]"
- "Map the [dependencies, components, boundaries]"
- Any explanation where the prose would lean heavily on words like "first… then… meanwhile… eventually" — those are sequence diagrams begging to be drawn
## When NOT to use this skill
This is the general fallback. When the prompt names a specific subject, hand off to the specialised skill that knows the conventions:
- **System architecture, microservices, deployment topology** → `html-architecture-diagrams` (service maps, ownership boundaries, on-call use)
- **Database schema, ERD, table relationships** → `html-erd-explorer` (PK/FK/cardinality, migrations)
- **Time axis, roadmap, Gantt, incident timeline** → `html-timeline-roadmap` (lanes, dependencies, "today" marker)
Use this skill when the diagram is conceptual or general-purpose (flowchart, state machine, sequence, dependency graph between abstract things). The specialised skills win when the subject is a real system, schema, or schedule.
## Output requirements
SVG inline using real `