- name
SKILL.md
技能文件保留在发布者的仓库中。
在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add oaustegard/claude-skills --skill animating-with-code -a cursor -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add oaustegard/claude-skills --skill animating-with-code -a claude-code -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add oaustegard/claude-skills --skill animating-with-code -a codex -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add oaustegard/claude-skills --skill animating-with-code -a grok -y在 Grok Bot 聊天中发送复制的消息。Bot 会从 GitHub 获取这个 SKILL.md,并添加到你所有 Bot 共享的技能中。
Install this skill: https://github.com/oaustegard/claude-skills/tree/HEAD/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.
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.md概览
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).
常见问题
从发布者处下载 animating-with-code/SKILL.md,或复制路径后打开仓库。PlugMCP 只收录该技能,不托管文件。
发布者将它存放在 https://github.com/oaustegard/claude-skills。
Claude、Cursor、Codex 和 Grok Build 可以读取你从发布者仓库添加的 SKILL.md。在聊天中发送技能的 GitHub 文件夹链接,Grok Bot 就会安装它。