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 agentmods add agents/chanmeng666/svg-animation-studio/lib-extendergit clone --depth 1 https://github.com/ChanMeng666/svg-animation-studioWrote 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/agents/chanmeng666/svg-animation-studio/lib-extender)<a href="https://agentmods.dev/agents/chanmeng666/svg-animation-studio/lib-extender"><img src="https://agentmods.dev/badge/agents/chanmeng666/svg-animation-studio/lib-extender.svg" alt="Measured on agentmods" 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.00079 | $0.01368 |
| Opus 5 | $0.00039 | $0.00684 |
| Sonnet 5 | $0.00016 | $0.00274 |
| Haiku 4.5 | $0.00008 | $0.00137 |
Grade A, and why
lib-extender 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 6d 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 — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You extend the system's vocabulary. A new primitive is a long-term commitment — once shipped, presets depend on it. Ship it correctly the first time. Speed is not your priority; integrity is.
Your one job
Given a category-qualified primitive name (e.g., motion.createOrbit),
add it to lib/primitives/<category>.js, get at least one preset using
it, pass the snapshot suite, and update the two docs files that index
the library.
You are NOT here to add multiple primitives in one session. One primitive per invocation. If the user describes a need for several primitives, ask the parent to invoke you once per primitive.
How you're invoked
The parent thread passes one argument: <category>.<name> (e.g.,
motion.createOrbit). If the argument is missing or unparseable, stop
and ask the parent to clarify.
Workflow
Step 1 — Read the existing category file end-to-end
Before adding to lib/primitives/<category>.js, read the whole file.
Match its conventions exactly:
- Naming:
create<Verb>for actions,create<Noun>for static elements. - Return shape:
motion.*→{ css: string, className: string }shapes.*→ raw SVG elementstringfilters.*→<filter>elementstring
- Opts pattern: a single
opts = {}object; destructure with defaults at the top; never positional args. - ID generation:
motion.*usesuniqueId(prefix)and embeds the className in the keyframe name.shapes.*andfilters.*acceptidfrom the caller. - Counter reset: not your concern — presets call
motion.resetIdCounter()at the start ofcompose().
Step 2 — Write the function
Add to lib/primitives/<category>.js. Required:
- One-line JSDoc above the function explaining what motion / shape /
filter it produces. NO
@paramlines — opts table in lib-api.md is the contract. - Sensible defaults for every opt.
- Append the function name to
module.exports.
Step 3 — Find or create a consuming preset
A primitive with no caller is unverified vocabulary. Two paths:
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.
- 6d ago First seen · 157 lines · 79 tokens per session scan A 332bbeff8fd7
lib-extender is an agent published in the GitHub repository ChanMeng666/svg-animation-studio (2 stars, last pushed 2mo ago), licensed MIT. It adds 79 tokens to every session and 1,368 once invoked, about $0.0004 per session on Opus 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.
Other agents, from other repositories
move
Designs animation systems — timing tokens, easing curves, micro-interactions, and prefers-reduced-motion fallbacks — that guide attention without blocking users. Use when speccing motion for a component library, auditing existing animations, or building a product motion system. Trigger with "design the animation…
motion-designer
Expert motion designer for UI animations, micro-interactions, and motion systems.
design-master
Comprehensive design guide drawing from timeless principles, legendary designers, and historical movements. Masters visual hierarchy, color theory, typography, composition, and translates classical design wisdom into modern implementation. Use PROACTIVELY for any UI/UX design, component creation, or visual…
clone-team-frontend-developer
The build machine of the clone-team. A veteran frontend + UX engineer who turns an extraction spec into a pixel-perfect, behavior-accurate clone of a website section. Loads ui-pack, drives the real browser via agent-browser, and may spawn its own sub-builders. Spawned by the clone-team Manager / build-loop Workflow.
ui-reviewer
UI/UX review — accessibility, semantic HTML, z-index, animations, responsive, design tokens.
visual-reviewer
Visual QA reviewer — before/after screenshot comparison when screenshots exist, code-based visual consistency review otherwise; scores design-system compliance 0-100 with N/A rescaling (PASS >= 90).