SO

    SVG Optimize + Sprite: Clean Icons, currentColor, Symbols

    1

    Cleans and shrinks SVG icons, switches colours to currentColor and builds a symbol sprite, offline.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more
    SO

    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.

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    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 forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 22 days ago

    • Free with an Agensi account

    Requires

    Python 3.8+
    Python

    Permissions

    File Scopes

    reads
    the
    SVG
    files/folders
    you
    pass;
    prints
    to
    stdout;
    writes
    files
    only
    into
    --out-dir

    Network: none. Runs offline.

    Listed22 days ago

    What's inside

    Frequently Asked Questions

    No; it does safe cleanup and rounding, not path merging.

    No. It prints, or writes to --out-dir.