| name | svg-diagrams |
| description | Create or edit a precise standalone SVG diagram, architecture visual, process map, annotated schematic, or system illustration. Use only when SVG is explicitly requested or is the existing artifact format; use Mermaid for text-native diagrams and chart tools for quantitative plots. |
SVG diagrams
Build a semantic visual system, not a pile of absolute coordinates.
- Define audience, message, entities, relationships, hierarchy, dimensions, and output context.
- Choose a layout model and establish viewBox, spacing, typography, color, markers, and reusable symbols.
- Group related elements and give meaningful IDs/classes.
- Route connectors clearly, avoid crossings, and preserve label readability.
- Add accessibility title/description when the artifact is user-facing.
- Validate XML, inspect the rendered SVG at target sizes, and check clipping, contrast, font fallback, and responsive scaling.
Prometheus mounts SVG in a transparent inline surface. Leave the root background
transparent, keep the root responsive with a viewBox, and prefer currentColor
or the injected --prom-* tokens for fills, strokes, labels, and markers. Internal
surfaces are allowed when they communicate grouping or state; the host should not
need an extra panel around the visual.
Do not embed untrusted scripts or external assets without need. Prefer semantic edits over full regeneration when modifying an existing SVG.
Read detailed-guide.md for layout recipes, marker/filter patterns, annotation styles, and code templates.