svg
Skill4 starsChanged 2 months agoMITView on GitHub
Make small SVG icons - CSS-animated and looping by default, a single still with --still, or a frame-by-frame sequence with --frames N. Square 16x16, 32x32, 64x64 or 128x128, transparent or on a solid background, loops up to 3 seconds. Asks a delegate text model for the source (plan allowance, free), then sanitizes, resizes and re-times it locally. Use when the user asks for an SVG, a vector icon, a spinner or loader, an animated logo mark, a favicon, or wants an icon they can restyle in code afterwards.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- gridaco/gridatheir own version, first seen Oct 8, 2026
- mgifford/accessibility-skillstheir own version, first seen Jul 27, 2026
- miovrag/claude-skillstheir own version, first seen Jun 12, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- gridaco/grida★ 2.7ksame name
- mgifford/accessibility-skills★ 48same name
- miovrag/claude-skills★ 1same 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.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 53
Never trusted as-is. svg.sh extracts the SVG from the prose or fences around it, refuses a DOCTYPE outright, and strips <script>, …
- Very specific: line 74
When a result is close but wrong, --keep-raw keeps the model's reply so you can edit it and re-run svg.sh build instead of regenerating.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SVG
An SVG is code, so it comes from a delegate text tier rather than an image model: it costs plan
allowance instead of the small daily image quota, and the result is reviewable, diffable and
editable. svg.sh then does the part a model cannot be trusted with — stripping anything executable,
fixing the size, and making the loop last exactly as long as you asked.
Quick start
svg.sh make "a ringing notification bell" bell.svg # 32px, transparent, CSS, 1s, forever
svg.sh still "a bell" bell.svg # one static image, no animation
svg.sh make "a walking robot" walk.svg --frames 6 # frame-by-frame: 6 drawings, timed here
svg.sh make "a loading spinner" spin.svg --size 64 --duration 1.5
svg.sh build out.svg reply.txt --still # normalize SVG you already have (or -)
svg.sh probe out.svg # what the file contains; exits 1 if unsafe
svg.sh preview out.svg out.png --width 512 # rasterize frame 0 so you can look at it
svg.sh check # dependenciesDefaults: 32x32, transparent, CSS-animated, 1.0s cycle, loops forever. Sizes are restricted to 16 / 32 / 64 / 128 and duration to 3s.
Three ways to animate — pick by where the file is going
| Use when | ||
| CSS (default) | the icon lands in a web page | restyleable from the host page, respects prefers-reduced-motion, what a front-end dev would hand-write |
--frames N | motion that interpolation cannot express, or you want the frames | the model draws N moments, this script writes the timing; also emits each frame as a still with --keep-frames |
--smil | the SVG must animate with no chance of a host stylesheet touching it | self-contained and seekable via setCurrentTime, but cannot express reduced-motion |
--still (or the still verb) drops animation entirely. All three animated modes are normalized to
exactly --duration per loop.
| Flag | Default | |
--still / --frames N / --smil | CSS | see above; --still and --frames are mutually exclusive |
--size 16|32|64|128 | 32 | sets width/height; the art is drawn in a 0 0 100 100 viewBox |
--duration SEC | 1 | max 3; every animation time is scaled so one cycle is exactly this |
--loop N | 0 | 0 = forever |
--bg COLOR / --opaque | transparent | a full-canvas rect; without it, one the model drew is removed |
--tier cheap|read|code|hard|or|codex | code | which delegate tier writes it |
--style "..." | flat vector | replaces the style sentence in the prompt |
--keep-frames DIR, --no-reduced-motion, --keep-raw FILE, --retries N, --round N, --title, --allow-raster | see REFERENCE.md |
What happens to the model's answer
Never trusted as-is. svg.sh extracts the SVG from the prose or fences around it, refuses a DOCTYPE
outright, and strips <script>, <foreignObject>, every on* handler, javascript: URLs, external
and data: hrefs, and CSS @import — then normalizes size and viewBox, applies or removes the
background, scales every animation time so one loop is exactly --duration (preserving each
element's phase rather than flattening the stagger), forces the iteration count so the loop actually
loops, and adds a prefers-reduced-motion rule. A reply with no animation and no --still or
--frames is rejected rather than quietly shipped.
In --frames mode the model only draws: it is asked for N sibling <g> groups and forbidden to
animate them, and the script writes the step-end keyframes and the per-frame negative delays itself.
Models get that arithmetic wrong; they do not get "draw the same robot mid-stride" wrong.
Rejections are re-asked, once by default, with the error handed back to the model and the tier
escalated (code → hard). Retries cost plan allowance, not your context.
Working with it
Look at the result before reporting it done. svg.sh probe tells you what is in the file; it
does not tell you whether the drawing is any good. svg.sh preview out.svg out.png rasterizes frame
0 so you can actually read the image — do that. The animation itself only plays in a browser.
When a result is close but wrong, --keep-raw keeps the model's reply so you can edit it and re-run
svg.sh build instead of regenerating. Editing the SVG by hand is fine too — it is just code — but
run it back through svg.sh build afterwards so size, timing and safety are re-enforced.
For a subject that does not animate naturally (a static logo, a flat glyph), use --still rather
than accepting a token wobble.
Detail on the sanitizer, the retiming maths and every failure mode is in
REFERENCE.md. Needs python3 only (stdlib — no Pillow, no ImageMagick), plus
delegate.sh on PATH for generation.
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.

