Communitygithub.com

tooncast

Make full cartoon story videos for YouTube, the "true story told as a cartoon" style used for heists, hacks, scams, business and money stories. Every character, set and prop is vector art drawn and animated in code with Remotion (no image generator needed), characters act and react, the camera moves through layered sets, and every action lands on a spoken word of a fast news-style voice. Guides the user step by step from an idea to a finished 4K video, thumbnails and upload copy, and waits for their OK at every gate - install the tools, channel profile, a researched story with title, thumbnail direction and hook, the fact-checked script, the voice (ElevenLabs, or any audio the user records or generates), the animated shots, music and sound effects, the 4K render, captions and the upload text. Use it whenever the user asks for a tooncast video, a cartoon explainer, an animated story or documentary, a "heist explained" or "scam explained" cartoon, stick-figure or character animation f...

What is tooncast?

tooncast is a Claude Code agent skill that make full cartoon story videos for YouTube, the "true story told as a cartoon" style used for heists, hacks, scams, business and money stories. Every character, set and prop is vector art drawn and animated in code with Remotion (no image generator needed), characters act and react, the camera moves through layered sets, and every action lands on a spoken word of a fast news-style voice. Guides the user step by step from an idea to a finished 4K video, thumbnails and upload copy, and waits for their OK at every gate - install the tools, channel profile, a researched story with title, thumbnail direction and hook, the fact-checked script, the voice (ElevenLabs, or any audio the user records or generates), the animated shots, music and sound effects, the 4K render, captions and the upload text. Use it whenever the user asks for a tooncast video, a cartoon explainer, an animated story or documentary, a "heist explained" or "scam explained" cartoon, stick-figure or character animation f...

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/rkstory1/tooncast/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

tooncast: cartoon story videos, from idea to upload

tooncast turns a true story into a finished cartoon video: a small cast of characters with real faces who type, gasp, point and run; sets with depth, light and a moving camera; props that obey gravity; big numbers that land the moment they are said. Nothing is generated as an image. Every picture is SVG drawn in code, so it is sharp at 4K, it can be changed in seconds, and every video gets scenes of its own.

Who does what: you (Claude) run the whole pipeline; the user decides. Never skip a gate. At each gate show the result, ask one clear question, and wait. The user can say "do it all" to merge gates; respect that, but still stop before anything that costs money (voice credits) unless they already said yes to the cost.

Talk to the user in plain, friendly language. Explain each step in one or two sentences the first time it comes up, because many users are new to video tools. Say what you are about to install or run before you do it.

The order

0. Setup        install the tools (once per computer)          gate: user OKs the install
1. Channel      channel profile (once per channel)             gate: user confirms the profile
2. Pitch        researched story, 3 titles, thumbnail, hook    gate: user picks / approves
3. Script       facts checked, full narration                  gate: user approves the script
4. Voice        ElevenLabs, or the user's own audio            gate: user picks the route (and the cost)
5. Look         the first 30 to 60 s as stills                 gate: user OKs the look
6. Edit         one shot per beat, every action on a word      (contact sheets, user may review)
7. Sound        music per act, effects on the same words       gate: user provides or OKs the music
8. Render       4K master, 1080p and phone copies, checks
9. Package      captions, 3 thumbnails, upload copy            gate: user picks the thumbnail and uploads

Title, thumbnail and hook come BEFORE the script: the video is designed to be clicked and watched first, and the script is written to pay off that promise.

Paths: SKILL = this skill's folder (where this file is). Video folders live in $TOONCAST_HOME (default ~/tooncast-videos), one per video, NNN-short-story. Every command below runs from the video folder unless it says remotion/. ./py in a video folder is the skill's own Python (with the packages installed by setup).


Step 0. Setup (first time on a computer)

  1. Run bash SKILL/scripts/setup.sh check and show the user the list.
  2. If anything is missing, tell them what will be installed and why:
    • Node.js 20+ runs Remotion, the video engine (React code rendered to video frames).
    • ffmpeg cuts, mixes and encodes audio and video.
    • Python 3.9 to 3.12 with numpy and faster-whisper (finds the exact time of every spoken word, free and offline).
    • Remotion and its headless browser, installed once in ~/.tooncast/kit and shared by every video. Ask "Shall I install these?" and wait. Then run bash SKILL/scripts/setup.sh install. On a Mac without Homebrew the script prints the official Homebrew command; it needs the user's password, so the user runs it in their own terminal. On Linux it prints the apt command. Windows: use WSL and the Linux path.
  3. Prove it works: bash SKILL/scripts/setup.sh demo builds the demo film (The Coffee Machine Heist, a made-up 35 second story in 13 shots, estimated timing, no voice needed) and renders a contact sheet. Show the user remotion/out/demo/sheet-01.jpg from the demo folder. This is also the best way to show what the style looks like.

Step 1. Channel profile (first video on a channel)

Ask in one message, then write $TOONCAST_HOME/channel.json (format in references/channel.md):

  • Channel name and one-line tagline (shown on the end screen).
  • Niche and audience: which stories (heists, scams, business, history, science), who watches, which country first.
  • Voice route: ElevenLabs (which voice; the voice ID from their Voice Library), or their own voice or another TTS.
  • Pace: fast news style (about 185 words a minute, the default) or calmer (about 165).
  • The disclaimer line for the end screen and description ("For educational purposes only. Not financial advice." for money topics). Every new video folder copies the profile in. The user can change it any time.

Step 2. Pitch: story, titles, thumbnail direction, hook (gate)

Read references/research.md. In short:

  1. bash SKILL/scripts/setup.sh new 001-short-story makes the video folder. Fill brief.md as you go.
  2. Research with ./py ytsearch.py "query" "query 2" (no API key): what wins for the search, how old the winners are, whether small channels break through, and the copycat check (fresh videos on the same angle with tiny views mean the angle is flooded). News stories lose value in days: say so, and move fast or pick an evergreen story.
  3. Pick the angle only this video can give: the one strange true detail the story turns on.
  4. Write in brief.md and show the user: why this story now, 3 titles (each searched for copies), one thumbnail direction, the hook as it will be spoken, the act plan and the target length (8 to 10 minutes). Ask: "Which title, and is the hook right?" Wait.

Step 3. Facts and script (gate)

Read references/script.md.

  1. Check every claim at its primary source (the company's own report, court records, official statements, trusted reporting). Log a table in brief.md: part, claim, status, source. Fix the script to the source.
  2. Write script.md: one ### NN Title heading and one fenced block per part, 8 to 25 s each, a direction tag first, numbers written as spoken, short sentences, no questions. Hook (3 or 4 short parts), then five or six acts that each end on a turn, then what it means for the viewer, then the disclaimer.
  3. ./py script2tts.py writes voice/voice-tts.json and prints words, length and the credit estimate. Show the script and the numbers. Ask for the user's edits; YouTube wants a human pass on every script. Wait.
  4. You can start the edit now, before any voice exists: ./py est-timeline.py builds an estimated timeline.

Step 4. Voice (gate)

Ask which route (unless the profile says), and give the cost first:

  • A. ElevenLabs. ./py tts.py --estimate prints the characters (about 1 credit each). Ask "This costs about N credits, go ahead?" Then use the ElevenLabs connector if this Claude has it (one generation per part, the text exactly from voice-tts.json, saved as voice/orig/NN.mp3), or the API: the user runs export ELEVENLABS_API_KEY=... in their terminal (never paste it in chat, never write it in a file), then ./py tts.py and move the files to voice/orig/.
  • B. Own audio. One file per part in voice/orig/, or ONE file of the whole script (./py split-voice.py voice/full.mp3 cuts it into parts at the pauses; move the parts to voice/orig/). Then, for both routes:
bash pace.sh            # voice/orig -> voice: pauses over 0.3 s cut, 3% faster; prints words a minute per part
                        # (calm pace: `bash pace.sh 1.0`, or copy the files to voice/ untouched)
cp voice/[0-9]*.mp3 voice/raw/ && ./py transcribe.py voice/raw/[0-9]*.mp3   # word timings (free, offline)
./py align.py           # puts the timings on the script's own words; prints anything misread
./py timeline.py        # remotion/src/timeline.json and the real video length
./py checkcues.py       # every cue in the edit still finds its word

If align.py shows a part with many unmatched words, the voice misread it: regenerate or re-record that part. Set longer pauses in project.json breaths (about 0.9 s where a new act starts, 2 s after the hook if a title card follows). To hear the voice in the preview, copy voice/NN.mp3 into remotion/public/voice/.

Step 5 and 6. The look, then the edit

Read references/shots.md (how a shot is written) and references/kit.md (every component and its props).

  • The film is remotion/src/Video.tsx: one list of [Shot, start in seconds]. A shot runs until the next starts. Starts come from the voice: ps(n) (part n begins) or cue(n, 'word') (that word is spoken).
  • Each shot is one function, in remotion/src/shots1.tsx and shots2.tsx (one file per act for a long film). The demo's 13 shots are the worked example (a crane down, a tilt up a tower, a whip pan, a designed inbox, a building cutaway, a code reveal): study them, then replace them with the story's own.
  • A new shot every 3 to 7 seconds, and something new inside every shot about every 2 seconds, on its word.
  • Look gate: build the hook first (the first 30 to 60 s), render stills, show them, ask "Is this the look?" Then build the rest.
  • Real people are never drawn. They appear as a name, or as their real public statement quoted on a card (Post). Wrongdoers are generic masked cartoon burglars, never a national or ethnic caricature. No real logos.
  • When the story needs a prop or set the kit does not have, draw it in the same manner (ink outline, flat fill, one darker shade) right in the shot file. That is normal: every film adds a few. Checks after every act:
./py checkcues.py
cd remotion && node stills.mjs Video 0.5 out/s2 $(seq 0 2 600) && cd .. && bash sheet.sh remotion/out/s2

Read every contact sheet at full size. Fix: text off the frame or over a face, a subject drawn too small, an empty frame, a label that shows before its picture. Live preview: cd remotion && npx remotion studio.

Step 7. Sound (gate)

Read references/sound.md. One music track per act works best for stories (sneaky, playful, tense, then hopeful). Ask the user for tracks and sound effects they have the rights to (YouTube Audio Library is free; Epidemic Sound, Artlist and similar need a subscription). No audio ships with this skill. Save music in music/, effects in sfx/.

./py voiceband.py music/*     # under about 2% in the voice band = the voice stays clear over it
./py mix.py                   # voice + music from project.json "music", ducked, -14 LUFS
./py gap.py                   # target: the voice about 18 dB above the music while talking
./py sfx.py                   # effects from project.json "sfx", on the same cue words as the animation

Cartoons live on sound effects: a pop when a label appears, a whoosh on a cut, coins, a stamp, an alarm.

Step 8. Render

cd remotion && CONC=2 node render.mjs 2      # 4K master in 30 s segments, each flash-checked; re-run to resume
cd .. && bash finish.sh                       # out/<slug>-4k.mp4, -1080p.mp4, -phone.mp4 with the mix

Run the render in the background and tell the user roughly how long (about 1 to 2 minutes per 30 s of video on a recent laptop). Then 2 s stills from the final 1080p and read them once more.

Step 9. Package (gate)

./py srt.py                          # out/captions.srt (add the video's numbers and names to numbers.txt first)
cd remotion && node thumbs.mjs       # out/thumbs/thumbnail-a/b/c.jpg and small-sheet.jpg (phone size)

Edit remotion/src/Thumb.tsx first: three concepts, each with one character or prop, two or three huge words and one number. Fill upload.md. Show the user the phone copy, the thumbnail sheet and upload.md. The user watches, picks the thumbnail and uploads it themselves. Set "not made for kids": cartoons get flagged as kids' content easily.


Rules that protect the channel (YouTube, 2026)

  • YouTube demonetises "inauthentic" mass-produced content: near-identical template videos, and AI presenters on money, health or legal topics. So every video has its own story, script, sets and shots; the script gets the user's own human pass; never an AI avatar; disclose an AI voice with the "altered or synthetic" setting.
  • Never copy another channel's script, scenes, characters, title or thumbnail. Study what works; make everything new.
  • Facts from primary sources, logged in brief.md. If a fact cannot be confirmed, cut it. Never invent a detail to make a scene work: draw the unknown as a symbol and say it is not known.
  • Real people are never drawn or voiced. Stories about crimes name only what the sources name.
  • Never store API keys or passwords in any file. Never sign in or upload for the user.

Files

FileDoes
scripts/setup.shcheck, install, new NNN-story, demo
scripts/ytsearch.pyYouTube search results with views, age and length (no API key)
scripts/script2tts.pyscript.md to voice/voice-tts.json, with words, length and credits
scripts/tts.py, split-voice.pyElevenLabs voice by API (key from the environment only); one long recording cut into parts
scripts/pace.shthe fast news pace: pauses cut, slightly faster, words a minute per part
scripts/transcribe.py, align.py, timeline.pyword timings (Whisper), on the script's words, into timeline.json
scripts/est-timeline.pyan estimated timeline from the script, to edit before the voice exists
scripts/checkcues.py, sheet.shevery cue is a spoken word and shots are in order; contact sheets of stills
scripts/voiceband.py, mix.py, gap.py, sfx.pymusic check; the -14 LUFS ducked mix; voice-to-music gap; effects on cue words
scripts/srt.py, flicker.py, finish.shcaptions; one-frame flash check; final files
templates/remotion/src/toon/the engine: core.ts (keyframes, easing, palette), time.ts (cue, ps, pe), Figure.tsx (the character rig and cast), stage.tsx (scene, camera planes, light, text), props.tsx
templates/remotion/src/kit.tsxtext that always fits, money, machines, sets (office, hideout, night city), the end screen
templates/remotion/src/shots1.tsx, shots2.tsx, Video.tsx, Thumb.tsxthe demo film's 13 shots, the shot list, the thumbnails: replace with the story's own
templates/project/per-video files: script.md (demo), brief.md, project.json, numbers.txt, upload.md
references/research, script, shots, kit, sound (and demo-sound.json, the demo's music and 63 effects on cue words), channel profile, lessons

Read references/lessons.md before the first render: every mistake already made with this pipeline.

Related Skills