svg-craft
Skill4 starsChanged 38 days agoMITView on GitHub
Use when creating, redesigning, or polishing SVG art — scenes, abstract backdrops, illustrations, animated SVG. Handles depth layering, lighting, placement, and smooth seamless CSS motion. Not for charts (→ `dataviz` when installed) or icons-only tweaks.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- weiweimhy/agent-skillstheir own version, first seen Nov 29, 2026
- riquelmechile/Skills-Chiletheir own version, first seen Nov 15, 2026
- Zacklinkk/svg-foundry-skilltheir own version, first seen Nov 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
- Zacklinkk/svg-foundry-skill★ 8same name
- riquelmechile/Skills-Chile★ 4same name
- weiweimhy/agent-skills★ 0same 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 repository20 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ask-firstSkill
- claude-project-rulesSkill
- compact-markdownSkill
- humanizeSkill
- pr-reviewSkill
- empty-commitSkill
- fuckingwebsiteSkill
- github-issue-creatorSkill
- git-mergeSkill
- git-worktreeSkill
- handoff-sessionSkill
- html-landing-pageSkill
- offload-taskSkill
- orchestrateSkill
- readme-craftSkill
- skill-auditSkill
- study-notesSkill
- visualize-itSkill
- zoom-outSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
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 30
Read the project's constraints before designing: size cap, banned elements (<script>, <image>, external url(), data:), reduced-motion rule, …
- Distinctive: line 35
Never judge SVG from source.
- Distinctive: line 94
Every element obeys the scene's own logic.
- Very specific: line 108
Write clear(x, y, pad): false inside the focal object's full extent (glow, halo, any tilted band — transform the point into the band's …
- Distinctive: line 126
No more than three flashes in any one second (WCAG 2.3.1): no cycle under 1/3s.
- Distinctive: line 142
Check output size against any cap.
- Distinctive: line 143
Update mirrors of the art (alt text, captions, previews) when the description changes.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
SVG Craft
Turn flat or empty SVG into art with depth and fluid motion. Process: source → baseline render → classify kind (polish keeps it) → diagnose → layer → sanity-check plausibility → place → animate → verify by render.
Kind — scene or abstract
Classify from the baseline render, not the file or theme name:
- Scene: depicts a subject — sky, landscape, keyboard, map, objects.
- Abstract: gradients, glows, shapes, patterns; no subject.
New art → the brief sets the kind; render the first draft as the baseline.
Polish keeps the kind. Abstract never gains subjects (coals, sparks, horizons, objects) — a name like "Ember" is not a brief. Unclear → ask.
Creative freedom
The brief sets the goal, not every detail. Go beyond the literal ask when it serves the scene: add elements, effects, or motion that make it richer (e.g. lensed starlight round a black hole, glints on a few bright stars), as long as they stay within the art's kind and pass §5.
Several strong directions and the choice changes the result (concept, mood, composition, palette shift, what gets added) → ask the user before building: 2–4 concrete suggestions, each a short description of what they'd see, recommended one first with why. Abstract → options vary colour, light, texture, composition; never subject. Small choices inside an agreed direction → decide, mention in the final reply.
1. Find the real source
- Generated SVG (built by a script/TS function) → edit the generator, re-run it. Never hand-edit output; drift checks or the next regen wipe it.
- Read the project's constraints before designing: size cap, banned elements (
<script>,<image>, externalurl(),data:), reduced-motion rule, min animation cycle, light/dark handling, tests that parse the SVG. - Procedural content → seeded RNG, so output is identical every build (changed source can force re-renders/flashes in hosts).
2. Baseline render — look before changing
Never judge SVG from source. Screenshot it and Read the PNG:
# Windows (Git Bash): screenshot path in Windows form
"/c/Program Files/Google/Chrome/Application/chrome.exe" --headless=new --disable-gpu --hide-scrollbars \
--window-size=1600,1000 --screenshot="<scratchpad-win-path>\\before.png" "file:///C:/path/to/art.svg"
# macOS
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new --hide-scrollbars \
--window-size=1600,1000 --screenshot="<scratchpad>/before.png" "file:///path/to/art.svg"
# Linux: google-chrome, google-chrome-stable, chromium or chromium-browser (whichever exists)
google-chrome --headless=new --disable-gpu --hide-scrollbars \
--window-size=1600,1000 --screenshot="<scratchpad>/before.png" "file:///path/to/art.svg"
# later frame of the animation: add --virtual-time-budget=25000Window size = the viewBox aspect; also try narrow/wide sizes when preserveAspectRatio is slice.
3. Diagnose
| Symptom | Usual cause | Fix |
| Flat | one layer, uniform opacity, no light falloff | back→front layers, glow under crisp edges, rim light |
| Empty | big dead areas | background tiers (faint dust → stars → accents → small hero objects) |
| Grey / washed out | low-saturation colour (cream/white) at partial opacity over black | warmer/more saturated stops; check what each gradient stop lands on |
| Wrong colour on a squashed shape | userSpaceOnUse radial gradient stays round on a flattened ellipse | default objectBoundingBox already follows the shape; userSpaceOnUse → gradientTransform="translate(<cx> <cy>) scale(1 <ry/rx>) translate(<-cx> <-cy>)" so stops follow the shape's own radius and the centre stays fixed |
| Hard edges / "scratches" | thin strokes with no falloff, too long, too opaque | shorter, fainter, round caps, fade by distance |
4. Depth layering — scenes (back → front)
Space scene shown. Other subjects → same tiers, filled with elements that fit the brief.
- Background fill/gradient.
- Far sky: many tiny faint dots, varied opacity; mix tints (mostly warm/neutral white, few cool
#e6ecff, few warm#ffdcae). - Mid objects: small hero shapes (galaxies, clouds) — radial-gradient halo + bright core + detail (spiral arms = log-spiral polyline, wide faint stroke + thin brighter stroke + dots along it).
- Focal object back half (hidden where the front/halo covers it via a soft radial mask).
- Focal glow/halo — large blurred stroke or radial gradient; asymmetric brightness (one side lit) reads as 3D.
- Focal solid shape — crisp edge, faint rim gradient just inside the edge.
- Edge definition — thin crisp line + same line wider and blurred beneath (glow) + faint outer echo line.
- Focal front half / foreground — drawn last so it passes over the solid shape.
Few bright accents only (e.g. 4 glint stars with a 4-point cross) — everything bright = nothing bright.
Abstract polish
Rework what's there; add no new kinds of shape.
- Colour: richer gradient stops, deeper darks to brighter highlights, slight hue shift across the field.
- Light falloff: soft edges (blur, radial masks), one brighter zone, the rest quieter.
- Texture: faint grain via
feTurbulence, low opacity. - Rhythm: vary size, spacing, opacity of existing shapes.
- Balance: highlights where nothing covers them.
5. Plausibility — the scene must make sense
Abstract → coherence only: one palette, one light direction, consistent rhythm. The rest of this section is for scenes.
Every element obeys the scene's own logic; one wrong element breaks the illusion more than a missing one. Ask per element: where is it, how far, what lights it, what covers it?
- Depth order: far things never draw over near or opaque things. A glowing star on top of black-hole rings reads as a speck on the glass, not space behind it → keep it off, or behind and hidden.
- Brightness follows distance: background stays fainter than the focal object; nothing in the far layer outshines the hero.
- Scale follows distance: distant galaxies small; nothing in the background rivals the hero's size.
- One light logic: glows, rims, and lit sides agree on where light comes from (the hot source, or one direction).
- Motion follows physics/story: orbiting parts turn the same way, inner faster than outer; background drifts slower than foreground (parallax); nothing jitters or reverses without reason.
- Palette cohesive: accents come from the scene's palette; a foreign hue needs a reason (e.g. faint cool star tints for contrast against a warm hero).
- Effects belong to their source: lensing arcs, glare, halos sit around the object causing them, not floating free.
6. Placement — far items stay off the focal object
Scenes with a focal object only. Enforces the depth rule above in code: far and mid items (tiers 2–3) stay outside the focal object; foreground drawn in front of it on purpose is exempt.
- Write
clear(x, y, pad): false inside the focal object's full extent (glow, halo, any tilted band — transform the point into the band's local frame to test it). - Random items → rejection sampling with
pad= item radius + its drift amplitude; cap tries,throwwhen no spot found. - Hand-placed items → assert
clear()at build time andthrowwith the coordinates. Fail fast beats a silently overlapping object. - With
slicecropping, keep important items away from the cropped edges.
7. Motion — fluid, seamless
| Motion | Timing | Why |
| Rotation, flowing dashes | linear infinite | constant speed; any easing visibly pulses each loop |
| Pulse, twinkle, breathe, sway | cubic-bezier(.37,0,.63,1) infinite alternate, keyframes from/to only | sine-like swing, zero velocity only at ends, no snap back to start |
| Drift / float | nested <g>: outer X, inner Y, each alternate + sine, different periods (Y ≈ 0.7–0.95 × X) | Lissajous path that never stops or repeats visibly |
- Dash flow seamless: animate
stroke-dashoffsetby an exact multiple of the dash period (--p:-<period*4>px,@keyframes flow{to{stroke-dashoffset:var(--p)}}). - Per-item amplitude via custom property:
@keyframes dx{from{transform:translateX(calc(var(--a) * -1))}to{transform:translateX(var(--a))}},style="--a:14px". - Desync with negative
animation-delay(-rnd*period), so it starts mid-motion with no visible start. - Slow is calm: drifts 40–70s, galaxy spin 260–460s, halo spin 60–150s, twinkle 2.5–6.5s.
- Base (non-animated) state must look right — reduced motion (
@media (prefers-reduced-motion: reduce){*{animation:none!important}}) shows it. - No more than three flashes in any one second (WCAG 2.3.1): no cycle under 1/3s.
8. Gotchas
- CSS
transformanimation replaces the element'stransformattribute → put static translate/rotate/scale on a parent<g>, animate a child. transform-origin: root-space spin →transform-origin:<cx>px <cy>px; inside a translated group →transform-origin:0 0.- Shorthand per class:
.dx,.dy{animation:dx 50s … }.dy{animation-name:dy}— a lone.dy{animation-name:dy}has no duration. - Filter region defaults to bbox ±10% of geometry (stroke excluded) → thin wide shapes (flat arcs) get blur clipped. Give that filter a tall region (
y="-300%" height="700%"). - Masks/gradients with
userSpaceOnUseresolve in the referencing element's local coords; group transforms apply to geometry and gradient alike → centre on the geometry's local centre (0,0only when it's drawn around the origin of atranslate(...) rotate(...)group). - Half-ellipse arcs: front
M rx 0 A rx ry 0 0 1 -rx 0, backM -rx 0 A rx ry 0 0 1 rx 0(y-down, sweep 1 = clockwise). - Performance: animated elements under filters re-blur every frame. Small moving things → radial gradients, not blur. Keep blurred animated areas few and slow.
- Light theme: hide night-sky layers (
display:noneon one wrapping group) rather than recolouring each.
9. Verify
- Re-render, Read the PNG, compare to baseline; also a later frame (
--virtual-time-budget). Check: kind unchanged, no overlaps, no clipped glows, no grey bands, focal object reads first, every element passes §5 (depth, brightness, scale, light, motion make sense). - Check output size against any cap.
- Update mirrors of the art (alt text, captions, previews) when the description changes.
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.

