description: Create, repair, validate, render, and compare deterministic SVG files from explicit geometry or a structured JSON scene spec. Use for editable icons, logos, diagrams, flowcharts, charts, UI wireframes, technical drawings, SVG cleanup, viewBox or clipping bugs, inaccessible SVGs, and pixel-diff verification. Prefer this over image generation when the user needs exact coordinates, reusable vector markup, reproducible output, or validation.
---
# SVG Precision
Produce exact, editable SVG rather than a visually plausible raster approximation.
## Choose the workflow
-**Structured build:** translate the request into the JSON schema in `references/spec.md`, then use `scripts/svg_cli.py check` and `build`.
-**Repair existing SVG:** inspect the source, make the smallest markup change, then run `validate` and render a preview.
-**Regression comparison:** render both files at the same scale and use `diff`.
-**Loose artistic image:** this skill is the wrong tool when exact SVG structure is not required.
## Standard workflow
1. Fix the canvas dimensions and `viewBox` before placing elements.
2. Use absolute coordinates and reusable groups, defs, gradients, markers, and clip paths.
3. Add a meaningful title and description for non-decorative graphics.
4. Keep external dependencies out of the SVG. Embed required raster images as data URIs unless the user explicitly accepts external loading.