animate-svg
Skill4 starsChanged 2 months agoMITView on GitHub
Generate looping animated SVGs (CSS keyframes / SMIL) with Gemini Pro via OpenRouter. Use for self-contained animated vector graphics — motion graphics, hero animations, loaders, halftone/ASCII motion, animated icons, draw-on line diagrams.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- rajnandan1/such-skillstheir own version, first seen Mar 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- rajnandan1/such-skills★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- ai-writing-detectorSkill
- browserbaseSkill
- clickhouseSkill
- commitSkill
- geist-designSkill
- generate-faviconSkill
- generate-imageSkill
- google-indexingSkill
- google-search-consoleSkill
- google-searchSkill
- humanizerSkill
- keyword-researchSkill
- parallelSkill
- remove-backgroundSkill
- reviewSkill
- web-uiSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 47
Keep --reasoning low for halftone/ascii: high-effort thinking eats the token budget and truncates the SVG mid-element.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
animate-svg
Generate one self-contained, infinitely-looping animated SVG from a text description.
Output is SVG markup (drop into HTML/JSX or save as .svg), not a raster image — for
raster use generate-image.
Routes to google/gemini-3.1-pro-preview over OpenRouter chat-completions; Gemini Pro
is unusually good at hand-authoring SVG geometry plus CSS @keyframes / SMIL motion.
Requirements
OPENROUTER_API_KEY— https://openrouter.ai/keys
Command
./scripts/animate_svg "a web browser window rendering a page" -o browser.svgProgress goes to stderr, the .svg to --output.
Options
| Flag | Default | Notes |
-o, --output | animation.svg | Output path |
-st, --style | halftone | halftone (dot grid + shimmer), ascii (.:-=+*#%@ glyph grid), line (stroke-dashoffset draw-on), glyph (one bold mark, micro-animation), or free text passed through |
-c, --colors | currentColor + accent | e.g. "green #4a7c3f, orange #c8743a" |
-b, --bg | transparent | A color, or transparent/none (no bg rect) |
--size | 400x300 | viewBox WxH; no width/height attrs emitted (CSS sizes it) |
-m, --model | google/gemini-3.1-pro-preview | Any OpenRouter model id |
-t, --max-tokens | 40000 | Halftone/ascii grids are token-heavy — keep high |
--temp, --temperature | 0.8 | |
-r, --reasoning | low | minimal|low|medium|high |
-x, --extra | – | Extra instructions appended to the prompt |
-i, --input | – | Existing .svg to refine/restyle |
--retries | 2 | Re-asks if output isn't valid SVG |
Gotchas
- Keep
--reasoning lowfor halftone/ascii: high-effort thinking eats the token budget and truncates the SVG mid-element. - Output is validated: one
<svg>root withxmlns+viewBoxand no width/height, no<script>/<image>/<foreignObject>/external URLs, parsed with defusedxml. A@media (prefers-reduced-motion: reduce)guard is baked into the prompt. - Halftone/ascii output runs to hundreds of elements — expected, and still cheap because motion is transform/opacity only.
- For a family of graphics, hold
--colors,--bg,--sizeand style constant and vary only the subject.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

