animating-with-code

animating-with-code is a skill for Claude Code, Codex from oaustegard/claude-skills. It costs 162 tokens per session (2,392 once invoked), scanned A, original, MIT.

A method for creating short animated films by writing drawing code that renders each video frame. Each frame is calculated from its time position, so frames can be reviewed or rendered independently.

In plain words
What is it for?
Use it to storyboard scenes, define shot timing, draw characters and backgrounds with code, render stills or frame reviews, and export a headless-rendered MP4.
Why use it?
It provides a structured way to plan shots, test key poses, and find visual problems before rendering the complete film. Reproducible frames also make interrupted or parallel rendering easier to resume.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is sh scripts/jail.sh -C /tmp/jail/cab -- node render.mjs --soft-gl \.

Good fit Use it to storyboard scenes, define shot timing, draw characters and backgrounds with code, render stills or frame reviews, and export a headless-rendered MP4.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/oaustegard/claude-skills
agentmods
npx agentmods add skills/oaustegard/claude-skills/animating-with-code

Made for: Claude Code, Codex.

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 animating-with-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/oaustegard/claude-skills/animating-with-code/github.svg)](https://agentmods.dev/skills/oaustegard/claude-skills/animating-with-code)
Your own site
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/animating-with-code"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/animating-with-code/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.

agentmods 80×15 button for animating-with-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/animating-with-code"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/animating-with-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 162 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,392 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00162 $0.02392
Opus 5.5 $0.00065 $0.00957
Sonnet 5.5 $0.00032 $0.00478
Haiku 4.5 $0.00016 $0.00239

Measured 12d ago against content hash e4d5fa681bcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

animating-with-code 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 12d 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.

animating-with-code/SKILL.md · 150 lines

How it starts

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

Animating with code

You write the drawing; a headless browser (or PIL, cairo, ffmpeg) renders it. The method below comes from the ClaudeAnimationBase kit's guide and holds for any renderer. The kit itself is the fastest route to a hand-painted character short.

Before building, name the route and why (Oskar's standing steer, memory 06886186): the kit, a CSS/HTML page captured frame by frame, a pure ffmpeg filtergraph, or PIL/cairo frames.

The contract: frames are pure functions of t

  • A shot is fn(t). Same t, same pixels. No counters, no state carried between frames, no integrated physics, no unseeded random. Then frames can render out of order, split across parallel workers, and resume after a crash.
  • Stable per-object values come from a hash of an index. Deliberate wobble ("boil") comes from a seed that changes on a fixed clock (the kit uses 12 Hz, each drawing held two frames).
  • Reseed per element. A moving element consumes a variable amount of randomness; without its own seed it shifts the stream for everything drawn after it and the still parts jitter every frame.

Procedure

  1. Storyboard in writing, before any scene code. One logline (wants ___, but ___, so ___), a small palette with a colour arc, a motif that pays off, and the emotion keys across the whole film. Then per shot: time span, transition in, the event, the reaction, the camera, and the reads.
  2. Write the reads. A read is one thing the viewer must understand, with a start and end time. Each needs time for the eye to find it, to understand it, and to register before the next starts. No two important reads overlap. If they do not fit the shot, lengthen the shot or cut a read. Timing is where generated animation fails most: everything at one brisk speed, events stacked, moments gone before they land.
  3. Check the storyboard: an event in every shot, a transition at every seam (including in and out of the film), no text, the ending rhymes with the opening. If a person is waiting, show them the storyboard before building.
  4. Block key poses as stills at each shot's storytelling moments. If the poses do not read as stills, motion will not save them.
  5. Add motion between poses, one shot at a time, in order: anticipation before big moves, slow in/out instead of raw lerp, arcs, overlapping action (eyes lead, body follows, appendages settle last), no twinning (offset left and right, offset characters' phases), exaggeration.
  6. Review loop (below) on every shot. Fix, look again.
  7. Render the full film; verify with ffprobe that duration and frame count match the config.

Read the full file on GitHub · 150 lines

Files

What ships with it

1 file 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. 12d ago First seen · 150 lines · 162 tokens per session scan A e4d5fa681bcf

Subscribe to this mod's changes

animating-with-code is a skill published in the GitHub repository oaustegard/claude-skills (158 stars, last pushed 4d ago), licensed MIT. It adds 162 tokens to every session and 2,392 once invoked, about $0.0006 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-10-26.

Related

animating-with-code compared with skills from other repositories

animating-with-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
animating-with-codeoaustegard/claude-skillsSkill1584d agoMITA162Claude Code, Codex
superdesignsuperdesigndev/superdesign-skillSkill9492mo agoMITA115Claude Code, Codex
figma-to-codescoobynko/claude-code-design-skillsSkill401mo agoMITA0Claude Code, Codex
Linearwrsmith108/linear-claude-skillSkill1403mo agoMITA32Claude Code
smb-sales-boostTomsonx232/smb-sales-boost-skillSkill523d agoMITA200Claude Code, Codex
bpmn-xml-generatorstateway-io/bpmn-xml-generatorSkill411d agoApache-2.0A177Claude Code
free-public-rest-apisaisenseapi/aisense-free-public-rest-apisSkill1yesterdayMITA366Claude Code, Codex