Animating with Code
A complete workflow for making short animated films where Claude writes the drawing code itself and renders frames headlessly to MP4.
Image & VideoAdvanced★ 418⑂ 18AI score 9/10Last updated: Nov 22, 2026
What it does
- Enforces the frames-as-pure-functions-of-t contract: same
t, same pixels — so frames render out of order, in parallel, and resume after a crash. Includes per-element reseeding to stop background jitter. - Requires a written storyboard before any scene code: logline, colour arc, motif, and per shot the time span, transition, event, reaction, camera, and the viewer "reads" with start/end times.
- Blocks key poses as stills first, then layers motion in a fixed order: anticipation, slow in/out, arcs, overlapping action, no twinning, exaggeration.
- Supplies a cheap review loop — contact sheet, fixed-step sheet (0.1–0.15 s), frame strip, and full-res crops — with a budget for how many of each per shot.
- Documents the hand-painted ClaudeAnimationBase kit (p5.js + p5.brush, the Clawd mascot, 31 emotions) with install/render commands, CPU-render cost estimates, and a failure-signal table.
- Verifies the final file with
ffprobeagainst the configured duration and fps.
Who it's for
- Anyone making animation where the frames are drawn by code, not generated footage.
- Developers comfortable with p5.js/canvas who want a headless render pipeline.
- Creators who keep hitting the classic AI-animation timing failure: everything at one brisk speed, beats gone before they land.
Examples
- "Make a 10-second animated short with the Clawd mascot" → writes a per-shot timing sheet, blocks still key poses for approval, then adds motion and encodes MP4.
- "This shot feels muddled" → renders a 0.1 s fixed-step sheet and points out which read is starved of frames.
- "The background flickers every frame" → diagnoses a shared random stream behind a moving element and applies
boilSeed(key)per element.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/oaustegard/claude-skills/HEAD/animating-with-code/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the animating-with-code folder from the GitHub repo oaustegard/claude-skills into my ~/.claude/skills/animating-with-code/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone --depth 1 https://github.com/oaustegard/claude-skills.git /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/animating-with-code ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the skills repo:
git clone --depth 1 https://github.com/oaustegard/claude-skills.git /tmp/claude-skills - Create the skills directory:
mkdir -p ~/.claude/skills - Copy just this skill:
cp -r /tmp/claude-skills/animating-with-code ~/.claude/skills/ - Restart Claude Code and ask for "an animated short" to confirm the skill triggers.
- (Optional) For the hand-painted kit you need Node.js and Chromium:
git clone --depth 1 https://github.com/JohnHeibel/ClaudeAnimationBase, thennpm install --ignore-scripts p5 p5.brush puppeteer-core, plusffmpeg/ffprobeon your PATH. - On a CPU-only machine a full render can take hours — start with a few frames via
--sheet=to measure per-frame cost before committing.
View source on GitHub ↗License: MIT