Skip to content

Icon Generator

Verified

Creates optimized SVG icons with consistent stroke weights, viewBox sizing, and accessibility attributes. Supports icon sprite sheet generation.

By Anthropic 2,800 v1.0.0 Updated 2026-03-10

Install

Claude Code

Copy the SKILL.md file to your project's .claude/skills/ directory

About This Skill

Icon Generator creates clean, optimized SVG icons from text descriptions or by refining existing SVG files. Every icon follows a consistent grid system with uniform stroke weights, proper viewBox dimensions, and built-in accessibility attributes.

How It Works

  1. Description parsing — Interprets your icon description (e.g., "shopping cart with badge") into geometric primitives
  2. Grid alignment — Places elements on a 24x24 pixel grid with 1.5px or 2px stroke weight
  3. Path optimization — Simplifies SVG paths, removes redundant points, and merges overlapping shapes
  4. Accessibility — Adds aria-label, role="img", and title elements for screen readers
  5. Component wrapping — Exports as React/Vue component with configurable size, color, and className props

Best For

  • Teams building custom icon sets instead of using icon libraries
  • Projects requiring consistent icon style across the interface
  • Optimizing bloated SVG exports from design tools
  • Generating icon sprites for HTTP/1.1 performance optimization

Optimization

SVG output is optimized using SVGO-equivalent rules: removes metadata, editor artifacts, empty groups, and unnecessary transforms. Typical size reduction is 40-60% from raw Figma/Illustrator exports.

Use Cases

  • Creating custom SVG icons for web applications
  • Building icon sprite sheets for performance optimization
  • Generating React/Vue icon components with size and color props
  • Optimizing existing SVG icons to reduce file size

Pros & Cons

Pros

  • + Consistent grid-aligned icon output
  • + Built-in accessibility attributes
  • + Significant file size optimization

Cons

  • - Complex illustrations are beyond scope — best for simple UI icons
  • - Cannot render previews — needs browser or SVG viewer to verify

Related AI Tools

Related Skills

Stay Updated on Agent Skills

Get weekly curated skills + safety alerts

每周精选 Skills + 安全预警