Blog · December 3, 2026 · 10 min read
cel-story: A Free Claude Code Skill That Makes 3D Cartoon Story Videos in Code
Nobody animated this video. I gave Claude one reference reel and asked for the style as a free skill. It built a 3D cartoon engine in three.js: sled dogs, storms, a town at night, captions that land on every spoken word. Here is how it works, what broke on the way, and what it still can't do.
Nobody animated the video below. There is no 3D artist behind it, no downloaded 3D models and no video AI. Claude wrote every shot as three.js code: the sled dogs, the storm, the town at night, the captions that land on each spoken word. The whole thing exports in about 70 seconds on my laptop and costs nothing. The skill that made it is called cel-story, and this post is about how it was built and where it still falls short.
This is my third content skill. khan-explainer draws blackboard lessons with a pen, and paper-reel cuts flat paper shapes for short reels. Both are flat. cel-story is the first one with a real 3D world in it: characters that walk and run, a camera that moves through a set, light and shadow. It also tells a story instead of explaining a tool.
Where it came from
I sent Claude a reference reel, a 3D cartoon "life of a ..." story, and asked for the style as a free skill I could run on my own machine. Claude studied the frames and wrote the look down as an engine. Here is roughly what that came to:
- 01A look. Every surface uses a toon material with three tone bands (shadow, mid, lit) instead of smooth shading, and three.js's OutlineEffect draws a black ink line around everything. The ground gets a soft painterly texture so snow and grass don't look like plastic.
- 02A cast. People are built from simple shapes (boxes, spheres and cylinders) on a jointed rig, with 16 outfits and 15 actions (walk, run, mush, cheer, shiver and so on). Dogs, wolves, horses and cats come from one jointed four-legged builder with their own body plans and gaits, so a team can trot, run or pull a sled.
- 03A world. Sky palettes from day to storm, snow that falls the same way on every render, night skies with an aurora, towns, a train, sleds, rooms, and a board that draws a map while the narrator talks.
- 04A real story to prove it. The worked example in the repo is the video above: Togo and the 1925 serum run, 12 lines of script, 21 shots.
It does not copy anyone's characters. Toon shading and ink outlines are a decades-old technique, and the skill file tells Claude not to clone a channel's signature characters, logos or fonts. The caption font is Montserrat, under the SIL Open Font License.

One shot per spoken line
The script is 12 lines. Each line gets a shot with a cut just before the voice starts it, and a line can be cut again on a word: split('fame', 'Balto', 1, 'fame_balto') starts a new shot the moment the narrator says "Balto". That is how 12 lines became 21 shots.
A shot is a function. The story file starts with a few helpers for its places and its cast, so most shots are four or five lines:
// alaska() = sky, ground, mountains, trees and snow; team() = a sled, a musher and seven dogs;
// follow() = a camera that rides along with the team
scenes.wind = (S) => { // "The wind chill hits 85 below."
alaska(S, { palette: 'storm', ground: 'ice', fog: [10, 60], snowCount: 3000, wind: [-6, 0, -1], fall: 1.2, trees: false, mountains: false });
const T = team(S, { from: [0, 0, -10], to: [0, 0, 2] });
follow(S, T, [0.85, 0.78, 7.6], [0, 0.62, 5.6], { fov: 34, shake: 0.02 });
S.callout('-85°F', { at: '85', size: 0.16, y: 0.2 });
};That is the shot on the poster at the top of this post: a storm on the sea ice, the team running at the camera, a camera that shakes a little, and "-85°F" popping up on the word "85". The skill file says every shot needs a world, a subject that acts, a camera that moves, a callout when a number or a name is spoken, and a layout that fits both vertical and wide. Claude writes 21 of these because the rules fit in its head.
The voice is the clock
Same idea as paper-reel. Kokoro, a small open voice model, reads each line to a WAV file on your machine. Then whisper.cpp listens to the result and writes down when every word starts and ends. The captions, the callouts and the cuts all hang off those times. S.callout('674 MILES', { at: '674' }) pops the number when the narrator says it. Nobody types a timestamp.
Numbers need one trick. The script keeps digits for the captions and a spelled-out version for the voice, because Kokoro can misread a figure: the caption says "674 miles away" and Kokoro says "six hundred seventy-four miles away". On this video whisper.cpp heard 157 of 159 words, 99%. The skill tells Claude to read that line and reword anything the voice mangled.
Three things that broke
Three problems had to be fixed along the way. Each one is now handled by the engine, so the next story doesn't hit it again:
- 01The last words of a sentence arrived all at once. Timing the whole voice track in one pass squashed the last words of a sentence into a single instant. Now whisper.cpp times one line at a time, which keeps every word in order and inside its own line.
- 02The same frame did not always come out the same. three.js orders its draw calls by material. Depending on which shot was rendered before, the same frame could come out slightly different, and flat surfaces that overlap flickered. Now every shot builds its materials fresh, in the same order every time.
- 03The snow lagged a frame behind. Snow and the sky dome follow the camera. If they update before the camera moves, they are always one frame late. Now anything that follows the camera runs after the camera is placed, in a step called
S.late.
The skill's check step catches that kind of problem. check renders frames twice, each time in a fresh page, and compares them. On this video the largest difference was 0.039 out of 255, so the frames match. It also checks that captions and callouts stay inside the safe zone of a Short, clear of the bottom fifth and the buttons on the right.
The stack, and why it costs nothing
- three.js builds every shot: the sets, the characters, the lights and the camera. Captions and callouts are drawn on a 2D canvas on top, so the text stays sharp.
- Playwright and headless Chromium render it on the GPU. On my Windows laptop with Intel Iris Xe graphics that is about 25 ms a frame, so the video above exports in about 70 seconds.
- Kokoro is the voice. It is a small open model that runs locally and costs nothing.
- whisper.cpp times every word, also locally.
- ffmpeg encodes the MP4 and mixes the audio to about -14 LUFS. This one measured -14.7.
- The music is not a file. A soft score is synthesized by code at render time, with no samples, and ducked under the voice.
There is no API key anywhere in this and nothing to pay. There is also no video model. Every frame is a 3D scene built from code and drawn by your own graphics card. A frame depends only on its time in the video, with seeded randomness and no clock, so it comes out the same every time you render it.
Vertical and wide from the same script
One piece renders as a 1080x1920 Short or a 1920x1080 video. Most shots work in both as they are. When one doesn't, the shot can check S.wide and change its layout: the map in the "261 miles" shot runs up the board in the vertical cut and across it in the wide one. In the Togo story, that was the only shot that needed it.

The story in the demo
The demo covers a lot of the kit at once: dogs, people, weather, a town, a train, a map and a statue. In January 1925, kids in Nome, Alaska were catching diphtheria, and the medicine was at a train station 674 miles away. Twenty mushers carried it in a relay. Togo was a 12-year-old lead dog, and his team ran 261 miles, the longest leg. Balto ran the last leg, and Balto got the statue in Central Park in December 1925. Togo got almost none of the fame.
The skill file asks Claude to check every claim against two reliable sources and keep the list. This one used Wikipedia, the National Park Service, Smithsonian Magazine, Britannica, NYC Parks and History.com.
Install
git clone https://github.com/haiderfarooq3/cel-story ~/.claude/skills/cel-story
cd ~/.claude/skills/cel-story && npm install && npx playwright install chromium
pip install kokoro-onnx soundfile
node ~/.claude/skills/cel-story/bin/cel-story.mjs doctorYou also need ffmpeg, whisper.cpp with its base English model, and the two Kokoro model files. The README has the links. doctor checks every piece, prints the fix for anything missing, and tells you whether WebGL is running on your GPU or in software. Then ask Claude Code for a video: "make a cel-story short about the first dog in space". It writes and checks the script, makes the voice, writes the shots, looks at the stills, runs the check and exports. Claude can't hear the mix, so the skill tells it to say so and ask you to listen once.
Where it falls short
- The characters are simple shapes. People and animals are built from boxes, spheres and cylinders, not rigged models, and the faces are basic. It reads as a cartoon, not a film.
- A long video means a lot of shots. Every shot is code. Claude writes them, but a 3 to 4 minute story is 30 to 45 lines, so at least that many shots to write and check.
- It needs a GPU to be fast. Software WebGL works and the frames come out right, but it is about 10 times slower.
- It is tested on Windows. On a Mac, headless Chrome may fall back to software rendering.
doctortells you which one you got. - The voice is a free model. Kokoro is clear, but it is not a human narrator.
Why I keep building these
Three skills in, the pattern holds. Give the model a reference, let it measure instead of guess, put the look into code, and write every fix down where the model will read it next time. paper-reel taught me the voice has to go first. This one taught me that a 3D engine has to give the same frame every time, or you can't trust anything you check.
If you want to see the other formats I make this way, the content catalogue has one finished example of each, and this story is in it now. If you want a pipeline like this built for your product, start at the contact page. The vertical cut is on YouTube as a Short. And if you just want the skill, it is on GitHub, MIT licensed. Go tell a story.
Questions people asked
- Is cel-story really free?
- Yes. three.js builds the scenes, headless Chromium renders them, Kokoro speaks the script, whisper.cpp times the words and ffmpeg encodes the video. All of it is open source and runs on your own computer. There are no API keys, no accounts and no usage limits. Even the music is generated by code at render time.
- How long does a render take?
- About 25 ms a frame on a Windows laptop with Intel Iris Xe graphics, so the demo in this post, just under a minute long, exports in about 70 seconds. Without a GPU, software WebGL still renders correct frames, about 10 times slower. Making the voice and timing the words is a separate step you only run when the script changes.
- Does it work on Windows and Mac?
- It is tested on Windows 11, where Chromium renders on the GPU through Direct3D. On macOS, Chromium uses Metal, but headless WebGL may fall back to software rendering, which gives the right frames more slowly. Run the doctor command and it tells you which one you got.
- Can I use it from Codex, Gemini CLI or another agent instead of Claude Code?
- Yes. The skill is one markdown file plus a small Node command-line tool. Any coding agent that can read a markdown file and run a shell command can follow it. Claude Code picks it up automatically from ~/.claude/skills; for other agents, point them at SKILL.md.
- Why do the captions land on the word?
- Because the voice is made first and whisper.cpp gives every word a start and end time, one line at a time. Captions show one to three words and change when the next words are spoken. A callout asks for the time of a word, for example at: '674', so the number pops up when the narrator says it. Nobody types a timestamp, so nothing drifts from the voice.
- Is it affiliated with Anthropic?
- No. It is an independent MIT-licensed project. Claude is a trademark of Anthropic. cel-story uses three.js, Playwright, Kokoro, whisper.cpp and ffmpeg, all open source, and bundles the Montserrat font under the SIL Open Font License. The credits are in NOTICE.md.
Haider Farooq is an AI engineer and data scientist based in Lahore, Pakistan — core engineer on TryCook.ai, developer at Aligno, and creator of MarkSafe.net. He builds agentic AI systems, RAG pipelines, and automation for teams worldwide. Work with him.