SVG Optimize + Sprite: Clean Icons, currentColor, Symbols
Cleans and shrinks SVG icons, switches colours to currentColor and builds a symbol sprite, offline.
Free
Works with the AI Agents you already use
SVG Optimize + Sprite: Clean Icons, currentColor, Symbols
Example session with this skill installed
star.svg exported from Inkscape (854 bytes).
- Read your context and instructions
- Compiled the svg optimize
/tmp/star.svg: 854 -> 240 bytes
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g><path fill="currentColor" d="M 12,2 L 15.09,8.26 L 22,9.27 ... Z" /></g></svg>
Connects securely to your tools. The creator never sees your data.
About this skill
Feed it SVG files or a folder. It strips editor metadata, comments, namespaces and empty groups, rounds coordinates, adds a missing viewBox, can switch fills and strokes to currentColor, and can merge everything into one <symbol> sprite for <use href>. Reports bytes saved. Pure Python stdlib, no Node or SVGO install; writes only where you say.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
No path merging, shape-to-path conversion or transform flattening (an SVGO-level optimizer does more). DOCTYPE/entities are stripped before parsing. Non-SVG namespaced elements are dropped, including foreignObject content in other namespaces. Precision rounding can shift tiny details; use --precision 3 for detailed art.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 22 days ago
- Free with an Agensi account
- Software
Python 3.8+
Permissions
File Scopes
Network: none. Runs offline.