# svg-precision-skill

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 306 installs · ★ 136 repo stars
- Author: dkyazzentwatwa
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dkyazzentwatwa/chatgpt-skills/tree/HEAD/svg-precision-skill/SKILL.md
- Updated: 2026-04-08
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/svg-precision-skill

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/svg-precision-skill/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/svg-precision-skill/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/svg-precision-skill/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/svg-precision-skill/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dkyazzentwatwa/chatgpt-skills svg-precision-skill
```

2. **Manually: put the files in place**
- File: `.github/skills/svg-precision-skill/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dkyazzentwatwa/chatgpt-skills --path svg-precision-skill
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/svg-precision-skill/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dkyazzentwatwa/chatgpt-skills --skill svg-precision-skill -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dkyazzentwatwa/chatgpt-skills/tree/HEAD/svg-precision-skill/SKILL.md

## When to use it
- 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
- 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

## Similar
- [svg-icon-generator](https://affpapa.org/en/nevibecode/skills/svg-icon-generator.md) — skill · 1400 installs
- [rendering-svg-precision](https://affpapa.org/en/nevibecode/rules/rendering-svg-precision.md) — rule · ★ 1064 repo stars
- [svg-art](https://affpapa.org/en/nevibecode/skills/svg-art.md) — skill · 548 installs
- [Svg/icons MCP](https://affpapa.org/en/nevibecode/mcp/svgicons-mcp.md) — MCP server · ★ 1 repo stars
- [SVG Logo Designer](https://affpapa.org/en/nevibecode/skills/svg-logo-designer.md) — skill · 9200 installs
- [svg-diagram](https://affpapa.org/en/nevibecode/skills/svg-diagram.md) — skill · 554 installs

From the same set: [dkyazzentwatwa/chatgpt-skills](https://affpapa.org/en/nevibecode/by/dkyazzentwatwa/chatgpt-skills.md) — 12 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
