Svg Cleaner
por claudeskills
Clean, optimize, and batch-process SVG files with support for sprite generation.
design frontend optimization-tools
Publicada: 29 de noviembre de 2025 Actualizada: 2 de diciembre de 2025 Licencia: MIT License
Para instalar la Skill
En Claude Cloud (claude.ai)
- Descarga el archivo
.skill - Abre Claude.ai y ve a la sección Settings
- Carga el archivo
.skill
En Claude Code (CLI y Extensión VSCode )
- Cambia la extensión del archivo
.skilla.zip - Extrae el contenido
- Muévelo a
~/.claude/skills/
Documentación
SVG Cleaner Skill
A Claude skill for cleaning, optimizing, and batch-processing SVG files with support for sprite generation.
Features
- 🧹 Clean SVG files: Merge paths, remove backgrounds, convert to currentColor
- ⚡ Optimize: SVGO integration with fallback for manual optimization
- 📦 Batch processing: Process entire folders of SVGs at once
- 🎨 Sprite generation: Automatically create SVG sprites from folders
- 🎯 Element extraction: Extract specific portions (e.g., single letters from logos)
What It Does
Single File Processing
- Merges multiple paths into one
- Removes backgrounds and clipPaths
- Applies
currentColorfor flexible theming - Optimizes with SVGO (25-35% size reduction)
Batch Folder Processing
- Finds all
.svgfiles in a folder - Cleans each SVG individually
- Saves as
filename-cc.svg - Creates combined sprite as
foldername-sprite-cc.svg
Installation
A. Claude AI (Claude in the cloud )
- Download
svg-cleaner.skill - Open Claude.ai
- Go to Settings → Skills
- Upload the
.skillfile
B. Claude Code or CLI (local installation)
- Download
image-to-webp.skill - Change the file extension to zip
svg-cleaner.skill→svg-cleaner.zip - De compress the .zip in the
.claude/sillks/folder - remove the zip file
Usage Examples
Clean a single SVG:
Clean this logo SVG and apply currentColor
Process a folder:
Clean all SVGs in /path/to/icons/ and create a sprite
Extract specific element:
Extract just the "g" letter from this logo
Output Files
Single file mode:
filename-clean.svg- Merged paths, no backgroundfilename-currentcolor.svg- With currentColor appliedfilename-optimized.svg- SVGO processed
Batch folder mode:
filename-cc.svg- Each cleaned SVGfoldername-sprite-cc.svg- Combined sprite with all icons
Sprite Usage
Use the generated sprites in HTML:
<svg>
<use href="icons-sprite-cc.svg#logo"/>
</svg>
Requirements
- Claude Desktop or Claude.ai with Skills enabled
- Optional: Node.js (for SVGO optimization)
License
MIT License - See LICENSE file for details
Contributing
Issues and pull requests welcome!
Author
Created by Daniel Serrano for Claude Skills