Agent skill

Vite Plugin SVG Icons Ng

by yangxu52 in 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.

MITAuto-check passedFrontend & Design

Install Vite Plugin SVG Icons Ng

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

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

GitHub CLI
$ gh skill install yangxu52/vite-plugin-svg-icons-ng vite-plugin-svg-icons-ng --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/vite-plugin-svg-icons-ng .claude/skills/vite-plugin-svg-icons-ng && 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
vite-plugin-svg-icons-ng
GitHub stars
117
Token cost
~808 tokens
SKILL.md length
329 words
Files
3 (incl. references)
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

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.

  • Works in 5 steps: src/index.ts, src/types.ts, and… → src/core/, src/cache/, and src/plugin/ → test/unit/ and test/browser/ → …
  • Packages/vite-plugin-svg-icons-ng implementation work: icon scanning
  • SKILL.md covers Scope, Sources of Truth, Reference Map and Immediate Invariants, plus 4 more sections
  • Calls pnpm

What it does

Vite Plugin SVG Icons Ng is an agent skill from yangxu52/vite-plugin-svg-icons-ng. Use for packages/vite-plugin-svg-icons-ng implementation work: icon scanning, compilation and caching, symbolId generation, HTML injection, Vite virtual modules, SSR, and HMR. Trigger for changes under src/core, src/plugin, src/cache, src/types, or their tests; use the other skills for workspace release boundaries or svg-icon-baker conversion internals.

Its SKILL.md is about 810 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/compiler-contract.md` and `references/runtime-contract.md`).

It sits in Frontend & Design, covering Icons and illustration. It works with Vite and pnpm. 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/vite-plugin-svg-icons-ng implementation work: icon scanning
  • Compilation and caching
  • SymbolId generation
  • Vite virtual modules

Example prompts

  • “/vite-plugin-svg-icons-ng”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. src/index.ts, src/types.ts, and src/constants.ts
  2. src/core/, src/cache/, and src/plugin/
  3. test/unit/ and test/browser/
  4. The package package.json, vitest.config.ts, and README.md
  5. docs/, CHANGELOG files, and Git history

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

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

  • Network

    No URLs in SKILL.md. Its commands use pnpm, 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

Vite Plugin SVG Icons Ng loads about 808 tokens when it runs, and up to ~1.8k if it reads all its reference files. Until then it costs about 95 tokens; SKILL.md has 329 words of instructions outside code blocks.

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

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). 329 words, ~808 tokens.

Download SKILL.mdSave it as .claude/skills/vite-plugin-svg-icons-ng/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
vite-plugin-svg-icons-ng
description
Use for packages/vite-plugin-svg-icons-ng implementation work: icon scanning, compilation and caching, symbolId generation, HTML injection, Vite virtual modules, SSR, and HMR. Trigger for changes under src/core, src/plugin, src/cache, src/types, or their tests; use the other skills for workspace release boundaries or svg-icon-baker conversion internals.
metadata
author: yangxu52 version: '2026.7.22'

vite-plugin-svg-icons-ng

Scope

Use this skill only for the Vite integration and icon compilation behavior in packages/vite-plugin-svg-icons-ng/:

  • iconDirs scanning, symbolId generation, compilation cache, and error policy
  • HTML injection, runtime mounting, and virtual module rendering
  • dev-server watching, module invalidation, and sprite HMR
  • package types, unit tests, and browser tests

Use svg-icon-baker for SVG conversion and ID rewriting. Use vite-plugin-svg-icons-ng-workspace for workspace, release, or cross-package work.

Sources of Truth

Confirm behavior in this order:

  1. src/index.ts, src/types.ts, and src/constants.ts
  2. src/core/, src/cache/, and src/plugin/
  3. test/unit/ and test/browser/
  4. The package package.json, vitest.config.ts, and README.md
  5. docs/, CHANGELOG files, and Git history

Documentation describes the consumer contract; source and tests define execution semantics. Historical src/**/__tests__ locations moved to test/unit/; do not reintroduce the old paths.

Reference Map

  • Read Compiler Contract before changing src/core/, src/cache/, option resolution, symbol ids, error policy, compile ordering, or BakeIssue reporting.
  • Read Runtime Contract before changing src/plugin/, virtual modules, htmlMode, SSR loading, sprite mounting, watcher behavior, or HMR.

Immediate Invariants

  • Dev, build, and SSR must use the same IconCompiler.getResult() result model.
  • Keep preferred virtual ids and both deprecated aliases until an explicit breaking change.
  • An icon change must invalidate compiler state and virtual modules, recompile, then broadcast the latest sprite.

Validation

  • Types and implementation: pnpm --filter vite-plugin-svg-icons-ng run typecheck
  • Unit tests: pnpm --filter vite-plugin-svg-icons-ng run test:unit
  • Browser mounting, HMR, and SSR behavior: pnpm --filter vite-plugin-svg-icons-ng run test:browser
  • Package build: pnpm --filter vite-plugin-svg-icons-ng run build
  • Integration boundaries: pnpm run build:playground

Should Trigger

  • "Why do ids not refresh after adding an SVG?"
  • "Change HTML injection or SSR behavior for htmlMode."
  • "Add a compatible virtual module alias."
  • "Fix icon caching or HMR on Windows paths."

Should Not Trigger

  • "Change the SVGO safe plugin list."
  • "Change url(#id), SMIL, or <style> ID rewriting."
  • "Confirm workspace commands or release tags."

Gotchas

  • Do not change virtual module ids or deprecated aliases without updating types, documentation, and compatibility tests.
  • Do not use automatic htmlMode injection and manual register mounting as the default for the same sprite.

© 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 2 other files (references) in .agents/skills/vite-plugin-svg-icons-ng of yangxu52/vite-plugin-svg-icons-ng.

  • SKILL.md
  • references/compiler-contract.md
  • references/runtime-contract.md

Open the folder on GitHubat commit ca598a8

Compare with similar skills

Vite Plugin SVG Icons Ng 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.

Vite Plugin SVG Icons Ng compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Vite Plugin SVG Icons Ng this skillyangxu52/vite-plugin-svg-icons-ng117—~808Automated safety check: PassMIT
Vuetify Playgroundvuetifyjs/vuetify41k—~730Automated safety check: PassCustom licence
Panel App React Vite CreatorPeiiii/nextclaw260—~1.1kAutomated safety check: PassMIT
Panel App CreatorPeiiii/nextclaw260—~4.2kAutomated safety check: PassMIT
Creative Tim UI Blockscreativetimofficial/ui12k—~2.1kAutomated safety check: NotesMIT
Create Docsvictorgarciaesgi/nuxt-typed-router4132 repos~2.8kAutomated safety check: PassMIT

Similar skills

  • Vuetify Playground

    vuetifyjs/vuetify

    Maintains the Vuetify repo's local Playground.vue so contributors get a realistic reproduction and a short demo they can paste into a pull request description.

    41k GitHub stars~730 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Create or update an engineering-style NextClaw Panel component with pnpm, Vite, React, TypeScript, and Tailwind CSS, then build it into a static .panel directory inside a schema v2 package or an…

    260 GitHub stars~1.1k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Panel App Creator

    Peiiii/nextclaw

    Create or update the Panel UI component of a complete schema v2 NextClaw Mini App or an explicitly loose local Panel.

    260 GitHub stars~4.2k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • 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
  • Create Docs

    victorgarciaesgi/nuxt-typed-router

    Create complete documentation sites for projects. An agent skill from victorgarciaesgi/nuxt-typed-router.

    413 GitHub starsUsed in 2 repos~2.8k tokens
    Frontend & DesignAuto-check passed
  • 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

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

  • SVG Icon Baker

    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…

    117 GitHub stars~901 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 Vite Plugin SVG Icons Ng

What does Vite Plugin SVG Icons Ng do?

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. Vite Plugin SVG Icons Ng is an agent skill from yangxu52/vite-plugin-svg-icons-ng. Use for packages/vite-plugin-svg-icons-ng implementation work: icon scanning, compilation and caching, symbolId generation, HTML injection, Vite virtual modules, SSR, and HMR.

When should I use Vite Plugin SVG Icons Ng?

Vite Plugin SVG Icons Ng fits situations like: packages/vite-plugin-svg-icons-ng implementation work: icon scanning; compilation and caching; symbolId generation; vite virtual modules.

How do I install Vite Plugin SVG Icons Ng in Claude Code?

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

How do I install Vite Plugin SVG Icons Ng in Codex?

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

Can I use Vite Plugin SVG Icons Ng 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 vite-plugin-svg-icons-ng -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vite-plugin-svg-icons-ng, .gemini/skills/vite-plugin-svg-icons-ng, .github/skills/vite-plugin-svg-icons-ng and .opencode/skills/vite-plugin-svg-icons-ng in your project.

What does Vite Plugin SVG Icons Ng need to run?

Going by SKILL.md and its folder, Vite Plugin SVG Icons Ng needs the command-line tools its instructions call (pnpm).

Does Vite Plugin SVG Icons Ng access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Vite Plugin SVG Icons Ng 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 Vite Plugin SVG Icons Ng use?

Vite Plugin SVG Icons Ng 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 Vite Plugin SVG Icons Ng use?

About 808 tokens (SKILL.md is roughly 3.2k 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 956 tokens, read only when the agent opens those files.

What are the alternatives to Vite Plugin SVG Icons Ng?

Skills that share tags, products or a category with Vite Plugin SVG Icons Ng: Vuetify Playground (vuetifyjs/vuetify, 41k stars), Panel App React Vite Creator (Peiiii/nextclaw, 260 stars), Panel App Creator (Peiiii/nextclaw, 260 stars) and Creative Tim UI Blocks (creativetimofficial/ui, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Vite Plugin SVG Icons Ng?

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.