lib-extender

lib-extender is an agent for Claude Code from ChanMeng666/svg-animation-studio. It costs 79 tokens per session (1,368 once invoked), scanned A, original, MIT.

A specialized coding agent for adding one reusable SVG animation, shape, or filter building block to a library.

In plain words
What is it for?
Use it for the isolated implementation phase of adding one primitive to the library, including a consuming preset, snapshot tests, and documentation updates.
Why use it?
It keeps the extension work focused and checks that the new building block is documented, used, tested, and indexed.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Install

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.

agentmods
npx agentmods add agents/chanmeng666/svg-animation-studio/lib-extender
Clone the repo
git clone --depth 1 https://github.com/ChanMeng666/svg-animation-studio

Made for: Claude Code.

Wrote 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.

agentmods badge for lib-extender

README.md
[![agentmods](https://agentmods.dev/badge/agents/chanmeng666/svg-animation-studio/lib-extender.svg)](https://agentmods.dev/agents/chanmeng666/svg-animation-studio/lib-extender)
Your own site
<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>
Per session 79 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,368 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 6d ago against content hash 332bbeff8fd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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.

.claude/agents/lib-extender.md · 157 lines

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 element string
    • filters.*<filter> element string
  • Opts pattern: a single opts = {} object; destructure with defaults at the top; never positional args.
  • ID generation: motion.* uses uniqueId(prefix) and embeds the className in the keyframe name. shapes.* and filters.* accept id from the caller.
  • Counter reset: not your concern — presets call motion.resetIdCounter() at the start of compose().

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 @param lines — 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:

Read the full file on GitHub · 157 lines

Changes

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.

  1. 6d ago First seen · 157 lines · 79 tokens per session scan A 332bbeff8fd7

Subscribe to this mod's changes

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.

Related

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…

jeremylongshore/tons-of-skills-marketplace · 67 tokens

motion-designer

Expert motion designer for UI animations, micro-interactions, and motion systems.

travisjneuman/.claude · 18 tokens

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…

HermeticOrmus/LibreUIUX-Claude-Code · 59 tokens

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.

Varalix-Digitech-Solutions/clone-team · 74 tokens

ui-reviewer

UI/UX review — accessibility, semantic HTML, z-index, animations, responsive, design tokens.

RaNDoM6913/claude-code-superkit · 23 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).

RaNDoM6913/claude-code-superkit · 43 tokens