A Claude Code plugin for designing animated SVGs that look deliberate and render everywhere they are shown: self-contained files for any web page, app, docs site or GitHub README, poster PNGs for slides, email and link previews, and React + Motion scenes for web apps. The header above was made with it; open this page on a phone and it swaps to a layout drawn for that width.
It packages what actually worked (and what broke) while building animated README cards, project cover scenes and diagrams: the rules, the gotchas with their fixes, a generator, and a validator that catches the mistakes that make an SVG silently stop animating.
Install
/plugin marketplace add Sagargupta16/svg-forge
/plugin install svg-forge@svg-forge
The generator and validator are plain Python 3.12+ scripts with no dependencies, so they also work without Claude Code.
What's inside
| Part | Use it for |
|---|
animated-svg skill | Standalone .svg files for pages, apps, docs and READMEs: headers, banners and section headings, stats, streak and project cards, diagrams, loaders, badges, marquees. Covers what GitHub's image proxy allows, a SMIL and CSS cookbook, timing, design, isometric line figures, safe optimization, gotchas and accessibility. |
motion-scene skill | Animated illustrations inside a React app with Motion: cover art, card scenes, mechanism diagrams. Research, build and verify modes, plus a copy-in TypeScript kit. |
svg-audit skill | Ranked findings for an existing SVG or scene: render-target safety, accessibility, motion quality, weight. Reports first, fixes on request. |
svg-designer agent | End to end: studies the subject, storyboards, builds, validates and iterates until it reads at the size it is shown. |
forge.py | Generator: 23 kinds (the list) at any size, in 15 theme presets or a theme built from one brand color, with 5 timing presets and 11 loaders. Text kinds also draw a 320 px phone layout (--device both). Every color is tuned to WCAG contrast; output is deterministic and escaped. |
pack.py | One JSON file in, a whole README's cards out: every card in one theme and accent, plus snippet.md with the markup in order. Starter packs for a profile and a project. |
themes.py and sizes.py | GitHub, Nord, Dracula, Catppuccin, Tokyo Night, Gruvbox, Solarized, One Dark, high-contrast and transparent themes, auto:<hex> brand themes and palette files; 15 size presets from favicon-32 to youtube-banner. |
validate_svg.py | Validator: rules SV001 to SV024 for GitHub safety, accessibility (including WCAG contrast on both GitHub themes), ids, size and animation sanity. |
frames.py | Renders an animation's timeline as a PNG contact sheet (headless Chrome, Edge or Chromium), so an agent can see the timing, overlaps and loop seam. --poster writes one clean PNG of the finished frame for slides, email and link previews. |
optimize_svg.py | An animation-safe minifier that checks its output before writing, plus an SVGO config that keeps animations intact. |
Ask Claude for "an animated header for my README" or "a cover scene that shows how this tool works", or run the scripts directly: