About svg-precision-skill
svg-precision-skill guides agents through building SVGs from explicit scene specifications and validating them before delivery. It is suited to tasks requiring controlled dimensions, coordinates, and a visual preview.
Key features
- 01Specification-led SVG construction
- 02Reference templates and layout recipes
- 03SVG build and validation commands
- 04Optional PNG preview rendering
Use cases
- 01Creating SVGs with fixed dimensions and coordinates
- 02Validating SVG output before handoff
- 03Reviewing a quick PNG preview
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ dkyazzentwatwa/ chatgpt-skills --skill svg-precision-skillAfter installing, type/svg-precision-skillin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
agents/openai.yamlreferences/recipes.mdspec.mdscripts/requirements.txtself_test.pysvg_cli.pyscripts/examples/bar_chart.jsondiagram.jsonicon_check.jsontechnical_dim.jsonui_card.jsonscripts/svg_skill/__init__.pycore.pyrender.pyvalidate.pyDetails
From the project READMESVG Precision Skill
Build SVGs from explicit scene specifications, then validate before handing them off.
Workflow
- Translate the request into a concrete spec with fixed dimensions and coordinates.
- Use
references/spec.mdfor templates andreferences/recipes.mdfor stable layout patterns. - Build the SVG with
scripts/svg_cli.py build. - Validate with
scripts/svg_cli.py validate. - Render a PNG preview when the user needs a quick visual check.
Rules
- Set
viewBox, width, and height explicitly. - Prefer absolute coordinates and simple shapes.
- Treat text as risky when exact rendering matters.
- Avoid exotic filters unless they are necessary and testable.
Comments
Markdown supported