Agent skill

SVG Icon Baker

by yangxu52 in yangxu52/vite-plugin-svg-icons-ng

A skill your agent uses for packages/svg-icon-baker SVG-to-symbol work: public API, synchronous error model, safe SVGO configuration, local ID and reference rewriting, viewBox handling, and output…

MITAuto-check passedFrontend & Design

Install SVG Icon Baker

skills CLI
$ npx skills add yangxu52/vite-plugin-svg-icons-ng --skill svg-icon-baker -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yangxu52/vite-plugin-svg-icons-ng svg-icon-baker --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yangxu52/vite-plugin-svg-icons-ng.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/svg-icon-baker .claude/skills/svg-icon-baker && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
svg-icon-baker
GitHub stars
117
Token cost
~901 tokens
SKILL.md length
399 words
Files
2 (incl. references)
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses for packages/svg-icon-baker SVG-to-symbol work: public API, synchronous error model, safe SVGO configuration, local ID and reference rewriting, viewBox handling, and output…

  • Packages/svg-icon-baker SVG-to-symbol work: public API
  • SKILL.md covers Scope, Workflow, Invariants and Validation, plus 3 more sections
  • Calls pnpm and npm
  • Synchronous error model

What it does

SVG Icon Baker is an agent skill from yangxu52/vite-plugin-svg-icons-ng. Use for packages/svg-icon-baker SVG-to-symbol work: public API, synchronous error model, safe SVGO configuration, local ID and reference rewriting, viewBox handling, and output invariants. Trigger for baker, options, oven, package tests, or README changes; do not use for Vite scanning, virtual modules, HMR, workspace, or release work.

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/behavior.md`).

It sits in Frontend & Design, covering Icons and illustration. It works with Vite. The repository describes itself as: A high-performance SVG icon plugin for Vite that automatically generates SVG sprites from files and injects them at runtime, making icon usage simpler and more efficient ✈️. The licence is MIT.

When your agent uses it

  • Packages/svg-icon-baker SVG-to-symbol work: public API
  • Synchronous error model
  • Safe SVGO configuration
  • Local ID and reference rewriting

Example prompts

  • “/svg-icon-baker”

What it can do on your machine

Read from SKILL.md and the folder at commit ca598a8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm and npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

SVG Icon Baker loads about 901 tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 88 tokens; SKILL.md has 399 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~88
When it runs · the whole SKILL.md, loaded when a task matches
~901
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from yangxu52/vite-plugin-svg-icons-ng at commit ca598a8, republished under its MIT licence (© yangxu52). 399 words, ~901 tokens.

Download SKILL.mdSave it as .claude/skills/svg-icon-baker/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
svg-icon-baker
description
Use for packages/svg-icon-baker SVG-to-symbol work: public API, synchronous error model, safe SVGO configuration, local ID and reference rewriting, viewBox handling, and output invariants. Trigger for baker, options, oven, package tests, or README changes; do not use for Vite scanning, virtual modules, HMR, workspace, or release work.
metadata
author: yangxu52 version: '2026.7.22'

svg-icon-baker

Scope

Use this skill only for packages/svg-icon-baker/:

  • public API, types, synchronous exceptions, and diagnostic contracts
  • SVG-to-<symbol> conversion order and root-element rules
  • SVGO configuration, safe plugin filtering, and ID rewrite policy
  • definition, reference, and style-carrier rewriting in oven/
  • package tests and README consistency

Use vite-plugin-svg-icons-ng for the Vite caller's scanning, cache, virtual modules, and HMR. Use vite-plugin-svg-icons-ng-workspace for workspace, release, or cross-package work.

Workflow

Inspect src/baker.ts, src/options.ts, src/types.ts, and the target oven/ module, then confirm boundaries in test/unit/. Read Behavior Reference before changing any of these:

  • conversion order, SVGO plugin filtering, or idPolicy
  • id, href, url(#...), SMIL, ARIA, or <style> reference rewriting
  • BakeError, BakeIssue, public exports, or output markup
  • viewBox, root attributes, or dimension handling

README and CHANGELOG files describe consumer expectations and evolution. When they diverge from source or tests, source and tests win.

Invariants

  • Keep the public API synchronous. Current exports include bakeIcon, bakeIcons, createBaker, BakeError, and the public types in src/types.ts.
  • BakeResult must retain name, content, and non-fatal diagnostic issues. Fatal validation, optimization, parsing, and viewBox failures must be BakeErrors.
  • Successful output must be <symbol>...</symbol> with root id === source.name and a viewBox; old root id, width, and height must not remain.
  • Optimization precedes internal ID rewriting. Do not restore the old rewrite-then-optimize order or make SVGO prefixIds or cleanupIds the naming authority.
  • When rewriting is enabled, build one stable map for local definitions before rewriting references. Unresolved references must follow idPolicy.unresolved and report an issue.
  • idPolicy.rewrite: false must skip the internal rewrite layer.
Show full SKILL.md (153 more words)Show less

Validation

  • Unit tests: pnpm --filter svg-icon-baker run test
  • Typecheck: pnpm --filter svg-icon-baker run typecheck
  • Package build: pnpm --filter svg-icon-baker run build
  • Publication entry changes: npm pack --dry-run --json

Should Trigger

  • "Why do optimized SVG references not share one namespace?"
  • "Change idPolicy, BakeIssue, or BakeError."
  • "Why is my custom SVGO plugin filtered?"
  • "Fix local IDs in SMIL, ARIA, or style content."

Should Not Trigger

  • "Why does adding an icon not hot-update the browser?"
  • "Change the SSR output of virtual:svg-icons/sprite."
  • "Change the pnpm workspace or release tag."

Gotchas

  • Do not use README prose as the sole conversion source of truth. Dimension stripping is guaranteed by root rewriting, not by an explicit removeDimensions plugin in current options.ts.
  • Do not omit createBaker or make the synchronous API asynchronous.
  • Do not preserve or rewrite unresolved local references silently; emit a BakeIssue.
  • Do not decide whether a local definition enters the ID map based on whether it is referenced.

© yangxu52, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in .agents/skills/svg-icon-baker of yangxu52/vite-plugin-svg-icons-ng.

  • SKILL.md
  • references/behavior.md

Open the folder on GitHubat commit ca598a8

Compare with similar skills

SVG Icon Baker next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

SVG Icon Baker compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
SVG Icon Baker this skillyangxu52/vite-plugin-svg-icons-ng117—~901Automated safety check: PassMIT
Creative Tim UI Blockscreativetimofficial/ui12k—~2.1kAutomated safety check: NotesMIT
Kill AI Slopyetone/kill-ai-slop1.3k—~1.4kAutomated safety check: PassApache-2.0
Better Iconsdtsola/xiaoyaosearch1k2 repos~895Automated safety check: PassCustom licence
Design To CodeMigoXLab/coderio1142 repos~1.2kAutomated safety check: PassApache-2.0
Nuxt UImegaarmos/vue-spring-bottom-sheet1411 repos~2.5kAutomated safety check: PassMIT

Similar skills

  • Creative Tim UI Blocks

    creativetimofficial/ui

    Helps install, generate and review Creative Tim UI blocks: shadcn/ui-based React and Tailwind sections that follow a restrained, production-minded design philosophy.

    12k GitHub stars~2.1k tokensUpdated 7 mo ago
    Frontend & DesignAuto-check: notes
  • Kill AI Slop

    yetone/kill-ai-slop

    Find and remove AI slop — the generic, machine-default visual and copy tics of vibe-coded products — from a web project.

    1.3k GitHub stars~1.4k tokensUpdated 26 days ago
    Frontend & DesignAuto-check passed
  • Better Icons

    dtsola/xiaoyaosearch

    Searches more than 200 Iconify icon libraries and fetches icons as SVG from a command line tool or an MCP server.

    1k GitHub starsUsed in 2 repos~895 tokens
    Frontend & DesignAuto-check passed
  • Design To Code

    MigoXLab/coderio

    Pixel-perfect Figma to React conversion using coderio. An agent skill from MigoXLab/coderio.

    114 GitHub starsUsed in 2 repos~1.2k tokens
    Frontend & DesignAuto-check passed
  • Nuxt UI

    megaarmos/vue-spring-bottom-sheet

    Build UIs with @nuxt/ui v4 — 125+ accessible Vue components with Tailwind CSS theming.

    141 GitHub starsUsed in 1 repo~2.5k tokens
    Frontend & DesignAuto-check passed
  • Cross-platform UI styling for MarkerOn Tauri app (macOS WKWebView vs Windows WebView2).

    1.2k GitHub stars~2k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed

More from yangxu52/vite-plugin-svg-icons-ng

  • Vite Plugin SVG Icons Ng

    yangxu52/vite-plugin-svg-icons-ng

    A skill your agent uses for packages/vite-plugin-svg-icons-ng implementation work: icon scanning, compilation and caching, symbolId generation, HTML injection, Vite virtual modules, SSR, and HMR.

    117 GitHub stars~808 tokensUpdated 13 days ago
    Auto-check passed
  • Vite Plugin SVG Icons Ng Workspace

    yangxu52/vite-plugin-svg-icons-ng

    A skill your agent uses for repository-level work in the vite-plugin-svg-icons-ng pnpm workspace: package boundaries, root scripts, docs and playground ownership, release tags, CI, and cross-package…

    117 GitHub stars~742 tokensUpdated 13 days ago
    Auto-check passed
  • Vite Plugin SVG Icons Ng

    yangxu52/vite-plugin-svg-icons-ng

    Consumer setup and integration for vite-plugin-svg-icons-ng: installation, createSvgIconsPlugin configuration, direct SVG usage, Vue 3 and React components, htmlMode, virtual modules, TypeScript…

    117 GitHub stars~919 tokensUpdated 13 days ago
    Auto-check passed

Works with

Questions about SVG Icon Baker

What does SVG Icon Baker do?

A skill your agent uses for packages/svg-icon-baker SVG-to-symbol work: public API, synchronous error model, safe SVGO configuration, local ID and reference rewriting, viewBox handling, and output…. SVG Icon Baker is an agent skill from yangxu52/vite-plugin-svg-icons-ng. Use for packages/svg-icon-baker SVG-to-symbol work: public API, synchronous error model, safe SVGO configuration, local ID and reference rewriting, viewBox handling, and output invariants.

When should I use SVG Icon Baker?

SVG Icon Baker fits situations like: packages/svg-icon-baker SVG-to-symbol work: public API; synchronous error model; safe SVGO configuration; local ID and reference rewriting.

How do I install SVG Icon Baker in Claude Code?

Run `npx skills add yangxu52/vite-plugin-svg-icons-ng --skill svg-icon-baker -a claude-code`. Or copy the skill folder (.agents/skills/svg-icon-baker in yangxu52/vite-plugin-svg-icons-ng) into .claude/skills/svg-icon-baker in your project. Claude Code loads it when a task matches its description.

How do I install SVG Icon Baker in Codex?

Run `npx skills add yangxu52/vite-plugin-svg-icons-ng --skill svg-icon-baker -a codex`. Or copy the skill folder (.agents/skills/svg-icon-baker in yangxu52/vite-plugin-svg-icons-ng) into .agents/skills/svg-icon-baker in your project. Codex loads it when a task matches its description.

Can I use SVG Icon Baker in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yangxu52/vite-plugin-svg-icons-ng --skill svg-icon-baker -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/svg-icon-baker, .gemini/skills/svg-icon-baker, .github/skills/svg-icon-baker and .opencode/skills/svg-icon-baker in your project.

What does SVG Icon Baker need to run?

Going by SKILL.md and its folder, SVG Icon Baker needs the command-line tools its instructions call (pnpm and npm).

Does SVG Icon Baker access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is SVG Icon Baker safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does SVG Icon Baker use?

SVG Icon Baker is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does SVG Icon Baker use?

About 901 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to SVG Icon Baker?

Skills that share tags, products or a category with SVG Icon Baker: Creative Tim UI Blocks (creativetimofficial/ui, 12k stars), Kill AI Slop (yetone/kill-ai-slop, 1.3k stars), Better Icons (dtsola/xiaoyaosearch, 1k stars) and Design To Code (MigoXLab/coderio, 114 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains SVG Icon Baker?

yangxu52 (a GitHub user) maintains it in yangxu52/vite-plugin-svg-icons-ng, which has 117 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 28, 2026.

Source: yangxu52/vite-plugin-svg-icons-ng on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.