Back to UI/UX Design

SVG Precision Skill

svggraphicsautomationui-designvalidation
4.5 (121)64🕒 2026-04-08Source ↗

Install this skill

npx skills add dkyazzentwatwa/chatgpt-skills

Works across Claude Code, Cursor, Codex, Copilot & Antigravity

What this skill does

  • Generates SVGs from structured coordinate specifications
  • Validates markup integrity via integrated CLI tools
  • Provides template-based layout generation for standard patterns
  • Renders PNG previews for rapid visual verification
  • Enforces strict viewBox and dimension configurations

When to use it

  • Creating UI mockups that require specific alignment and scaling
  • Generating technical documentation diagrams with consistent dimensions
  • Building custom icon sets from rigid design requirements
  • Producing charts and infographics based on accurate data coordinates

When not to use it

  • Generating artistic or complex photorealistic imagery
  • Complex layout work requiring non-standard text rendering engines
  • Situations where SVG markup size is constrained by extreme optimization limits

How to invoke it

Example prompts that trigger this skill:

  • Create a technical diagram for the architecture overview using a fixed 800x600 viewBox.
  • Build an SVG icon for a button based on the standard layout recipe.
  • Generate a schematic with absolute coordinates for these three nodes.
  • Validate the current SVG file for compatibility and syntax errors.
  • Render a PNG preview of the current SVG workspace.

Example workflow

  1. Define the scene requirements including dimensions and shapes.
  2. Consult the recipes reference for the preferred layout pattern.
  3. Execute the build command to generate the raw SVG file.
  4. Run the validation script to check for syntax and structure errors.
  5. Generate a PNG preview to verify visual output before final export.

Prerequisites

  • Python 3.x
  • Basic knowledge of SVG coordinate systems

Pitfalls & limitations

  • !Text rendering may behave differently across viewers if exact font alignment is required
  • !Exotic SVG filters often fail validation and reduce cross-platform compatibility
  • !High complexity diagrams require significant time to specify absolute coordinates

FAQ

Why use this instead of an AI image generator?
AI image generators are non-deterministic. This skill uses a Python-based CLI to output code-based, precise SVGs that are fully editable and predictable.
Can I use external libraries with this tool?
The tool is designed for standard SVG syntax. Customizing beyond the provided templates might require manual modification of the output XML.
Is this skill suitable for responsive web design?
Yes, by enforcing explicit viewBox settings, the SVGs generated are inherently scalable and well-suited for responsive web interfaces.

How it compares

Generic prompts often hallucinate syntax errors in SVGs; this skill enforces deterministic validation through a dedicated CLI to ensure clean, compliant, and accurate code.

Source & trust

64 stars🕒 Updated 2026-04-08🛡 no risky patterns found

From the source: “# SVG Precision Skill Build SVGs from explicit scene specifications, then validate before handing them off. ## Workflow 1. Translate the request into a concrete spec with fixed dimensions and coordinates. 2. Use `references/spec.md` for templates and `references/recipes.md` for stable layout pattern…”

View the full SKILL.md source

# SVG Precision Skill

Build SVGs from explicit scene specifications, then validate before handing them off.

## Workflow

1. Translate the request into a concrete spec with fixed dimensions and coordinates.
2. Use `references/spec.md` for templates and `references/recipes.md` for stable layout patterns.
3. Build the SVG with `scripts/svg_cli.py build`.
4. Validate with `scripts/svg_cli.py validate`.
5. 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.

Quoted from dkyazzentwatwa/chatgpt-skills for reference — see the original for the authoritative, latest version.

📄 Full skill instructions — original source: dkyazzentwatwa/chatgpt-skills
The SVG Precision Skill provides a deterministic workflow for generating scalable vector graphics. Instead of relying on non-deterministic AI image generation, this tool translates structural requirements into precise coordinate-based specifications. It is intended for developers who require consistent, reproducible vector assets like UI mockups, technical diagrams, or custom icons. By utilizing a Python-based CLI for both generation and validation, the skill ensures that output files conform to defined layout patterns and dimensions. It is particularly useful for projects where visual accuracy and clean, readable markup are non-negotiable, moving away from pixel-based generation to vector logic. The tool integrates references and templates to standardize drawing tasks, allowing for iterative refinement through machine-readable specifications rather than subjective interpretation. It fills the gap for technical visual output in automated agent workflows.

How to Use This Skill Unit

Option A: Project-Specific (Recommended)

  1. Click "Download" above
  2. In your project, create the directory: .agent/skills/svg-precision-skill/
  3. Save the file as SKILL.md
  4. The agent will automatically discover the skill based on its description.

Option B: Global Installation (All Agents)

Save the file to these locations to make it available across all projects:

  • Claude Code: ~/.claude/skills/dkyazzentwatwa/chatgpt-skills/svg-precision-skill/SKILL.md
  • Cursor: ~/.cursor/skills/dkyazzentwatwa/chatgpt-skills/svg-precision-skill/SKILL.md
  • Antigravity: ~/.gemini/antigravity/skills/dkyazzentwatwa/chatgpt-skills/svg-precision-skill/SKILL.md

🚀 Install with CLI:
npx skills add dkyazzentwatwa/chatgpt-skills

Read the Master Guide: Mastering Agent Skills

Recommended Rules

View more rules

Recommended Workflows

View more workflows

Recommended MCP Servers

View more MCP servers

Take It Further

Maximize your productivity with these powerful resources

📋

Define Your Standards

Set up coding standards to ensure this workflow produces consistent, high-quality results.

Browse Rules Library
📖

Master Workflows

Learn how to create custom workflows, use Turbo Mode, and build your automation library.

Complete Guide

How to use this Skill in Claude Code & Cursor

For Claude Code (CLI)

To use this skill in Claude Code, copy the rule content into your project's custom instructions or follow our Add-Skill CLI guide. This ensures Claude follows your standards during every code generation.

For Cursor & Windsurf

For Cursor or Windsurf, individual skills are best used in the "Rules for AI" section. This specific unit helps the agent avoid ui/ux design issues, leading to cleaner, more efficient code.

Why the skill format matters: the standardized Agent Skills format lets your AI agent load detailed instructions only when they are relevant, keeping your prompt clean while improving results.

Source & attribution

This skill is categorized under UI/UX Design and is published by dkyazzentwatwa, maintained in dkyazzentwatwa/chatgpt-skills.

← Browse All Agent Skills
Sponsored AI assistant. Recommendations may be paid.