- name
SKILL.md
El archivo de la skill permanece en el repositorio del publicador.
Pega el comando copiado en una terminal. Instala este SKILL.md en ese agente.
npx skills add oaustegard/claude-skills --skill animating-with-code -a cursor -yPega el comando copiado en una terminal. Instala este SKILL.md en ese agente.
npx skills add oaustegard/claude-skills --skill animating-with-code -a claude-code -yPega el comando copiado en una terminal. Instala este SKILL.md en ese agente.
npx skills add oaustegard/claude-skills --skill animating-with-code -a codex -yPega el comando copiado en una terminal. Instala este SKILL.md en ese agente.
npx skills add oaustegard/claude-skills --skill animating-with-code -a grok -yEnvía el mensaje copiado en un chat de Grok Bot. El Bot obtiene este SKILL.md de GitHub y lo añade a las skills que comparten todos tus Bots.
Install this skill: https://github.com/oaustegard/claude-skills/tree/HEAD/animating-with-codeDel publicador
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.
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.ffprobe that duration and frame count
match the config.You cannot see motion by reading code. Render images and open them with Read.
Count frames per read (24 = 1 s). A read that gets a few frames, or shares its frames with another read, will be missed. Budget: one sheet per shot, one strip per key motion and per transition, one crop per face that carries the story.
Defaults, overridden by whatever the person asks for.
!, ?, sweat, hearts, a bulb). A sign that restates the story
is the classic failure.https://github.com/JohnHeibel/ClaudeAnimationBase, MIT, verified at commit
0ac8bf2 (2026-09-24). Its ANIMATION_GUIDE.md (36 KB) is the full API: read it
whole before drawing. render.mjs provides the review views as flags
(--sheet=, --strip=a:b, --crop=x,y,w,h, --crop-at=, --stills=, --clip,
--frames --workers=N + --encode).
Recipe for a CCotw container, verified 2026-10-25 (4 CPUs, no GPU, Chromium at
/opt/pw-browsers/chromium-*/chrome-linux64/chrome):
SCRATCH=/path/outside/the/checkout # the session scratchpad
CHROME=$(ls -d /opt/pw-browsers/chromium-*/chrome-linux64/chrome | tail -1)
git clone --depth 1 https://github.com/JohnHeibel/ClaudeAnimationBase /tmp/jail/cab
# deps from the registry, outside the checkout, no install scripts; versions from package-lock.json
mkdir -p "$SCRATCH/cabdeps" && cd "$SCRATCH/cabdeps" && npm init -y >/dev/null \
&& npm install --ignore-scripts [email protected] [email protected] [email protected]
cp -r "$SCRATCH/cabdeps/node_modules" /tmp/jail/cab/
sed -i '/fonts.googleapis.com/d' /tmp/jail/cab/studio.html # only letter() uses it
sed -i "s/{ waitUntil: 'networkidle0' }/{ waitUntil: 'networkidle0', timeout: 0 }/; s/{ timeout: 60000 }/{ timeout: 0 }/" /tmp/jail/cab/render.mjs
chown -R nobody:nogroup /tmp/jail/cab
sh scripts/jail.sh -C /tmp/jail/cab -- node render.mjs --soft-gl \
--chrome="$CHROME" \
--sheet=0.5,2,4,6,8,10 --cols=3 --w=480 --out=out/sheet.jpg
In claude-workspace, run the kit only inside scripts/jail.sh (hub rule for
code nobody here wrote). Elsewhere, drop the jail prefix.
Cost. Under SwiftShader the demo's six-frame sheet took 0.3, 0.2, 36, 47, 40
and 42 s per frame. At ~40 s, the 11 s demo (264 frames) is about 3 hours on one
worker. Before a full render, either ask the scene to avoid p5.brush watercolour
fill (the kit's README suggests this for machines without a GPU), split across
--frames --workers=N and run it as a background job, or render on a GPU host
(--gpu-angle=gl-egl|vulkan). The review loop stays cheap: sheets and strips
render a handful of frames.
Open every sheet and strip with Read and look before calling a shot done. For the final file, this must match the config's duration and fps:
ffprobe -v error -show_entries format=duration:stream=nb_frames,r_frame_rate -of default=nw=1 out/video.mp4
Report the route used, the render time per frame, and anything the review loop found that you did not fix.
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', b
---name: animating-with-codedescription: Make a short animated film by writing the drawing code yourself: every frame a pure function of time, rendered…---# animating-with-code/SKILL.mdResumen general
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).
Preguntas frecuentes
Descarga animating-with-code/SKILL.md desde el publicador, o copia la ruta y abre el repositorio. PlugMCP lista la skill y no aloja el archivo.
El publicador lo mantiene en https://github.com/oaustegard/claude-skills.
Claude, Cursor, Codex y Grok Build pueden leer un SKILL.md que añadas desde el repositorio del publicador. Grok Bot lo instala cuando envías en un chat el enlace a la carpeta de la skill en GitHub.