Icon Generator
VerifiedCreates optimized SVG icons with consistent stroke weights, viewBox sizing, and accessibility attributes. Supports icon sprite sheet generation.
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
- Description parsing — Interprets your icon description (e.g., "shopping cart with badge") into geometric primitives
- Grid alignment — Places elements on a 24x24 pixel grid with 1.5px or 2px stroke weight
- Path optimization — Simplifies SVG paths, removes redundant points, and merges overlapping shapes
- Accessibility — Adds aria-label, role="img", and title elements for screen readers
- 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
Design System Builder
CautionSets up design token systems, component libraries, and style guides with consistent theming, spacing scales, and typography hierarchies.
Figma to Code
CautionConverts Figma design files into production-ready HTML, CSS, and React components with accurate spacing, typography, and responsive behavior.
Stay Updated on Agent Skills
Get weekly curated skills + safety alerts
每周精选 Skills + 安全预警