Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add veelenga/preview-skills --skill preview-svggit clone --depth 1 https://github.com/veelenga/preview-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/veelenga/preview-skills/preview-svg)<a href="https://agentmods.dev/skills/veelenga/preview-skills/preview-svg"><img src="https://agentmods.dev/badge/skills/veelenga/preview-skills/preview-svg/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/veelenga/preview-skills/preview-svg"><img src="https://agentmods.dev/badge/skills/veelenga/preview-skills/preview-svg.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00107 | $0.03260 |
| Opus 5.5 | $0.00043 | $0.01304 |
| Sonnet 5.5 | $0.00021 | $0.00652 |
| Haiku 4.5 | $0.00011 | $0.00326 |
Grade A, and why
preview-svg scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 330 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Preview SVG Animation Skill
Render any animated SVG in a controllable browser preview — built for explaining
hard concepts visually. Supports SMIL (<animate>, <animateTransform>,
<animateMotion>), CSS keyframes/transitions inside <style>, and inline JS.
Agent Usage
When the user asks to visualize or explain something with an animated SVG, write the SVG content and pipe it to the script. The renderer parses the SVG, wires up animation controls, and automatically opens the result in the browser — do NOT open the file manually.
# Pipe SVG content
cat heartbeat.svg | ./run.sh
# Or from a file
./run.sh diagram.svg
# Skip browser, just emit path (useful for batch generation)
./run.sh diagram.svg --no-browser
Usage
# Preview an SVG file
/preview-svg heartbeat.svg
# Pipe SVG content (preferred for temporary explainers)
cat animation.svg | /preview-svg
echo '<svg ...>...</svg>' | /preview-svg
Built-in Controls
- Play / Pause — pauses all SMIL via
pauseAnimations()and CSS viaanimation-play-state. - Restart —
setCurrentTime(0)for SMIL + reapplies CSS animations. - Timeline scrub — drag the slider to seek; live updates while playing (SMIL only; CSS-only animations don't expose seeking).
- Zoom & Pan — mouse wheel to zoom (0.2x–20x), drag to pan via viewBox manipulation. Reset button restores original framing.
- Code view — toggle to inspect the source SVG.
- Export SVG — download the current SVG (preserves any runtime changes).
When to Use
Activate when the user wants to:
- Explain a concept visually (gradient descent, request flow, data structures)
- Animate an icon or logo (path-draw, morph, hamburger↔X)
- Show motion along a path (
<animateMotion>+<mpath>) - Prototype loading spinners, progress rings, ambient backgrounds
- Build a self-contained, script-free interactive SVG (SMIL
begin="el.click")
For interactive D3 / JS-driven visualizations, prefer preview-d3. For
3D / WebGL scenes, use preview-threejs. For flowcharts / sequence
diagrams, use preview-mermaid.
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- config.sh 1.3 KB runs code
- lib/browser-utils.sh 9.5 KB runs code
- lib/content-utils.sh 6.7 KB runs code
- lib/html-generator.sh 14 KB runs code
- run.sh 7.5 KB runs code
- templates/scripts/common-ui.js 5.1 KB runs code
- templates/scripts/svg-renderer.js 11 KB runs code
- templates/scripts/utils.js 1.8 KB runs code
- templates/styles/common.css 1.6 KB
- templates/styles/layout.css 14 KB
- templates/styles/svg.css 3.5 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 330 lines · 107 tokens per session scan A 11317ff86f96
preview-svg is a skill published in the GitHub repository veelenga/preview-skills (9 stars, last pushed 18d ago), licensed MIT. It adds 107 tokens to every session and 3,260 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
preview-svg compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| preview-svgveelenga/preview-skills | Skill | 9 | 18d ago | MIT | A | 107 | Claude Code |
| apply-commentscafe3310/public-agent-skills | Skill | 256 | yesterday | Apache-2.0 | A | 52 | Claude Code, Codex |
| icns-makercafe3310/public-agent-skills | Skill | 256 | yesterday | Apache-2.0 | A | 41 | Claude Code, Codex |
| llm-demo-websitecafe3310/public-agent-skills | Skill | 256 | yesterday | Apache-2.0 | A | 37 | Claude Code, Codex |
| blender-product-polishcafe3310/public-agent-skills | Skill | 256 | yesterday | Apache-2.0 | A | 69 | Claude Code, Codex |
| polyhaven-material-swapcafe3310/public-agent-skills | Skill | 256 | yesterday | Apache-2.0 | A | 55 | Claude Code, Codex |
| polyhaven-scene-buildercafe3310/public-agent-skills | Skill | 256 | yesterday | Apache-2.0 | A | 61 | Claude Code, Codex |