# Animating with code

> Animating with code is an open-source agent skill for design and media. Guides Claude to write the drawing code for a short animated film rendered to MP4. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/oaustegard/claude-skills/tree/main/animating-with-code
- **Repository:** https://github.com/oaustegard/claude-skills
- **GitHub stars:** 428
- **License:** MIT
- **Skill name:** animating-with-code
- **Collection:** https://github.com/oaustegard/claude-skills
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-04

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/oaustegard/claude-skills/tree/HEAD/animating-with-code)
- [License: MIT](https://github.com/oaustegard/claude-skills/tree/HEAD/animating-with-code)

## Features

- **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

## Install

### Claude Code

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [Screen recording](https://ai-powered.com/skills/screen-recording): Screen recording is an open-source agent skill for design and media.
- [Lead knowledge animation](https://ai-powered.com/skills/lead-knowledge-animation): Lead knowledge animation is an open-source agent skill for design and media.
- [Ascii backdrop](https://ai-powered.com/skills/ascii-backdrop): Ascii backdrop is an open-source agent skill for design and media.
- [Motion2code](https://ai-powered.com/skills/motion2code): Motion2code is an open-source agent skill for design and media.
- [Motion video](https://ai-powered.com/skills/motion-video): Motion video is an open-source agent skill for design and media.
- [Product launch video](https://ai-powered.com/skills/product-launch-video): Product launch video is an open-source agent skill for design and media.
- [Ffmpeg auto assemble](https://ai-powered.com/skills/ffmpeg-auto-assemble): Ffmpeg auto assemble is an open-source agent skill for design and media.
- [Create](https://ai-powered.com/skills/create): Create is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/animating-with-code
