sprite-anim

sprite-anim is a skill for Claude Code from Lengros/bennu. It costs 102 tokens per session (1,451 once invoked), scanned A, original, MIT.

A toolset for making sprite animations consistent and checking them in a real web browser. Sprites are sequences of images used to animate a character or interface element.

In plain words
What is it for?
Use it to normalize animation frames, align characters, and verify CSS or JavaScript sprite animations through browser inspection.
Why use it?
It finds size changes, vertical bobbing, alignment problems, and browser behavior that may not be visible from reading the code alone.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

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 skills/lengros/bennu/sprite-anim
Any agent
npx skills add Lengros/bennu --skill sprite-anim
Clone the repo
git clone --depth 1 https://github.com/Lengros/bennu

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 sprite-anim

README.md
[![agentmods](https://agentmods.dev/badge/skills/lengros/bennu/sprite-anim.svg)](https://agentmods.dev/skills/lengros/bennu/sprite-anim)
Your own site
<a href="https://agentmods.dev/skills/lengros/bennu/sprite-anim"><img src="https://agentmods.dev/badge/skills/lengros/bennu/sprite-anim.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,451 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.00102 $0.01451
Opus 5 $0.00051 $0.00726
Sonnet 5 $0.00020 $0.00290
Haiku 4.5 $0.00010 $0.00145

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

Security

Grade A, and why

sprite-anim 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.

The scan reads SKILL.md. This mod also ships 2 executable files (normalize_frames.py, verify-anim.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/skills/sprite-anim/SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/sprite-anim — sprite frames & browser-verified animation

Two capabilities that recur together when polishing a sprite-driven UI animation: (A) make a set of frames look like one consistent character, and (B) prove the animation actually behaves on screen — not just in the code. Both ship as runnable scripts beside this file; the gotchas that make them non-obvious live in two lessons.

The cardinal rule for both: a code read is not evidence about pixels. Re-measure the output, and verify motion in a real browser. The session that produced this skill burned an iteration dismissing real drift as a "measurement artifact" — don't.


A — Normalize sprite frames to a uniform character size

When: frames of the same character render at visibly different sizes or bob vertically as the animation cycles (sitting frame bigger than running frame; feet at different heights).

Two choices, each with a wrong-looking default:

  1. Size by silhouette AREA, not bbox height/width. Area is pose-robust — a crouched or stretched pose holds the same "amount of character" as a tall one. Scale each frame by sqrt(medianArea / frameArea). Height-normalizing inflates low/wide poses into giants. Clamp the factor (default [0.70, 1.45]) so a folded pose (curled sleeper = little area) doesn't blow up, and re-clamp to the canvas.
  2. Align the bbox BOTTOM to a baseline, not center. Centering puts feet at different heights → the character bobs frame-to-frame. Seat every bbox bottom on one baseline. Pick the baseline to match the render's transform-origin (e.g. 50% 85% → feet near bottom → baseline low on the canvas).

Run:

python3 .claude/skills/sprite-anim/normalize_frames.py SRC_DIR DST_DIR \
    [--clamp LO HI] [--baseline auto|N] [--align-x center|N] [--pad N]

Canvas size is preserved per frame, so the render's object-fit math is untouched. Write to a scratch DST first, verify, then copy into the repo's frames dir (in a worktree, per the code-changes-go-to-worktree rule).

Read the full file on GitHub · 104 lines

Files

What ships with it

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

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 · 104 lines · 102 tokens per session scan A e402fe85970f

Subscribe to this mod's changes

sprite-anim is a skill published in the GitHub repository Lengros/bennu (2 stars, last pushed 1mo ago), licensed MIT. It adds 102 tokens to every session and 1,451 once invoked, about $0.0005 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.