Skip to content
Skill

Animating with code

Guides Claude to write the drawing code for a short animated film rendered to MP4

Animating with code is an open-source agent skill for design and media. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
428
Last commit
License
MIT
Listing updated

Similar skills

About Animating with code

This skill walks the agent through making a short animated film where every frame is drawn by code and rendered headlessly. It starts with a written storyboard: a logline, a palette, and per-shot timing that assigns the viewer a clear window for each important read. Key poses are blocked as still images before any motion is added, and each shot is then checked with contact sheets, fixed-step sheets, frame strips and full-resolution crops.

The method is renderer-neutral, so it works with a headless browser, PIL, cairo or ffmpeg. The skill also documents the ClaudeAnimationBase kit, a hand-painted character toolkit built on p5.js and p5.brush that includes the Clawd mascot and 31 emotions, with a render script that exposes the review views as flags. The guide notes that rendering under software GL is slow, about 40 seconds per frame for the demo scene, and suggests splitting work across workers or using a GPU host.

Expect Node.js with a Chromium install and a sandbox script for running the kit's code, plus ffprobe for checking the final duration and frame count. The rules favour flat 2D art, no on-screen text, and idle motion for every character.

When your agent uses it

Make a short animated film by writing the drawing code yourself: every frame a pure function of time, rendered headlessly to MP4. Covers storyboarding with a per-shot timing sheet of viewer 'reads', blocking key poses as stills, the contact-sheet / frame-strip / crop review loop, and the hand-painted character kit JohnHeibel/ClaudeAnimationBase (p5.js + p5.brush, the Clawd mascot, 31 emotions). Use for 'animate', 'make a cartoon', 'animated short', 'motion graphic', 'Clawd video', 'p5 animation', or any video request where Claude draws the frames. Not for AI-generated footage (creating-video), transcoding or trimming existing video (processing-video), or a comic from footage (drawing-video).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (9 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/animating-with-code to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/oaustegard/claude-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/animating-with-code &&
cp -R "$tmp/animating-with-code" ~/.claude/skills/animating-with-code &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/animating-with-code inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/animating-with-code to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/oaustegard/claude-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/animating-with-code &&
cp -R "$tmp/animating-with-code" ~/.agents/skills/animating-with-code &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/animating-with-code inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/animating-with-code to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/oaustegard/claude-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/animating-with-code &&
cp -R "$tmp/animating-with-code" ~/.cursor/skills/animating-with-code &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/animating-with-code inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/oaustegard/claude-skills.git --path animating-with-code

Or copy the folder to ~/.gemini/skills/animating-with-code yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/animating-with-code:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/oaustegard/claude-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/animating-with-code &&
cp -R "$tmp/animating-with-code" ~/.copilot/skills/animating-with-code &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/animating-with-code inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/oaustegard/claude-skills.git

Then copy claude-skills/animating-with-code into your agent's skills folder as animating-with-code. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Frames as pure functions
Covers the rule that each frame depends only on time, so frames can render in any order or in parallel.
Storyboard and timing sheet
Explains writing shot-by-shot plans with reads, the moments a viewer must understand, and their timing.
Pose-first animation process
Describes blocking key poses as stills and then adding anticipation, easing, arcs and overlapping action.
Visual review loop
Lists contact sheets, frame strips and crops used to inspect each shot before the final render.
Clawd character kit
Documents the ClaudeAnimationBase p5.js toolkit with the Clawd mascot and 31 emotions.
Headless render workflow
Gives the setup and cost notes for rendering the kit with Chromium and checking output with ffprobe.

Good for

  • Make a short animated film of a character from scratch
  • Create a cartoon-style motion graphic drawn in code
  • Animate the Clawd mascot in a short video
  • Build a p5.js animation rendered to MP4
  • Plan and time the shots of an animated short before drawing

Animating with code FAQ

When should Animating with code be used instead of creating-video or processing-video?

It is for videos where Claude draws every frame. AI-generated footage belongs to creating-video, and transcoding or trimming existing video belongs to processing-video.

What does the ClaudeAnimationBase route need to run?

The recipe uses Node packages p5, p5.brush and puppeteer-core, a Chromium binary, and a jail script when run in claude-workspace. It notes that the demo takes about 40 seconds per frame under SwiftShader.

How is the final video checked?

The skill says to run ffprobe on the output and confirm that duration, frame count and frame rate match the config.

Does the skill allow text in the animation?

Its default rules say no captions, labels or words on screen; reactions are shown as painted marks instead.

How do I install Animating with code in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/animating-with-code to use it in all your projects, or to .claude/skills/animating-with-code in one project.

Does Animating with code run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Animating with code?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Animating with code?

The closest alternatives to Animating with code are Screen recording, Lead knowledge animation, Ascii backdrop, Motion2code and Motion video.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from oaustegard/claude-skills

  1. Loads stored API keys for Claude, Gemini and GitHub so other skills can call those

    • Open source
    • 428 GitHub stars
    • Security
  2. Guides an AI agent to ask focused clarifying questions before building

    • Open source
    • 428 GitHub stars
    • Developer tools