svg-precision-skill — Claude Code skill: generate SVG from spec
svg-precision-skill — a skill for Claude Code, Codex, Cursor, Copilot and others: builds SVG from explicit coordinates and dimensions, validates output before delivery. Used for icons, diagrams, charts, UI mockups and technical drawings.
no license 306 installs ★ 136 updated 2026-04-08
npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a claude-codeWhat svg-precision-skill does
Request is translated into a spec with fixed dimensions, scripts/svg_cli.py build assembles the file, validate checks correctness, PNG rendering is generated on request. Uses templates from references/spec.md and stable layout patterns from references/recipes.md.
Installed via npx skills add with platform adapter specified. For Claude Code, skill file goes to ~/.claude/skills/svg-precision-skill/SKILL.md, for Codex to .agents/skills/, for Cursor to .cursor/skills/. GitHub Copilot uses gh skill install, Gemini CLI supports installation via npx or direct URL.
Sets viewBox, width and height explicitly, prefers absolute coordinates and simple shapes. Text is treated as risky where exact rendering matters. Filters are applied only when necessary and testable.
What it helps with
- build an SVG icon from precise coordinates
- generate a chart with fixed dimensions
- validate SVG correctness before output
- create a vector UI mockup with deterministic layout
- render a technical drawing with explicit geometry
Example prompts for the agent
- Build a 64×64 gear icon SVG with six teeth
- Generate a 400×300 bar chart with three columns and validate the output
- Create a 120×40 button mockup with rounded corners and text, output a PNG preview
How to install svg-precision-skill
1Skills CLI (Vercel)
npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a claude-code2Manually: put the files in place
~/.claude/skills/svg-precision-skill/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/svg-precision-skill/
1Skills CLI (Vercel)
npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a codex2Manually: put the files in place
.agents/skills/svg-precision-skill/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a cursor2Manually: put the files in place
.cursor/skills/svg-precision-skill/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install dkyazzentwatwa/chatgpt-skills svg-precision-skill2Manually: put the files in place
.github/skills/svg-precision-skill/SKILL.md1Skills CLI (Vercel)
npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a gemini-cli2Platform CLI
gemini skills install https://github.com/dkyazzentwatwa/chatgpt-skills --path svg-precision-skillManually: put the files in place
.devin/skills/svg-precision-skill/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about svg-precision-skill
How do I install svg-precision-skill in Claude Code?
Run npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a claude-code, the skill file will land in ~/.claude/skills/svg-precision-skill/SKILL.md.
What does svg-precision-skill do?
The skill builds SVG files from explicit specifications with defined coordinates and dimensions, validates correctness before delivery, and can generate PNG previews. Used for icons, diagrams, UI mockups and drawings.
Why are templates and layout patterns needed?
Templates from references/spec.md and patterns from references/recipes.md provide stable solutions for common elements. This speeds up assembly and reduces geometry errors.