--- 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-`` 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](references/behavior.md) before changing any of these: - conversion order, SVGO plugin filtering, or `idPolicy` - `id`, `href`, `url(#...)`, SMIL, ARIA, or `