/2bft-code-drawn-anime:anime-episodesfrom 2BFT Code-Drawn Anime
Make vertical (1080x1920) anime Reels of about a minute that are drawn entirely in code - a Canvas 2D character rig, sets, UI screens and anime transitions, no AI images and no Blender - starring the 2BFT cast (Navratan, Sujal, Selvi akka), where each episode teaches one real AI skill with an AIDA script. Voiced with Sarvam AI text-to-speech (Tamil, Hindi, English and other Indian languages), lip-synced from the audio, scored with music and sound effects synthesised in code, and rendered through headless Chrome on the GPU. Use whenever someone wants a new episode, "the next episode", an anime explainer or ad made in code, an episode about some AI topic, a dub of an episode into another language, a new character, or changes to how these episodes look, sound or are edited.
Ships in 2BFT Code-Drawn Anime. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Each episode is data plus code: a JSON file holds the lines, captions and a shot list; a Canvas 2D engine draws every frame (three-quarter anime character rig, sets, UI screens, transitions); Sarvam AI voices the lines; a node script synthesises the music and sound effects from the same shot list; a headless-Chrome render harness turns it into an MP4. Making a new episode is mostly writing a good script and shot list, then running five tools and checking their output.
This skill drives the code in the code-drawn-anime repository (https://github.com/2boysfromtown/code-drawn-anime).
Clone it once and run every tool from the repository folder.
app/anime/rig34.js (see references/characters.md).site2bft scene: the call to action names the website out loud. Change its words in the episode's ui
block if you make episodes for your own brand.deliver/ files.Needs: Node 20+, ffmpeg on PATH (with h264_nvenc for GPU encoding, or set VIDEO_CODEC=libx264 to encode on the CPU),
Google Chrome or Microsoft Edge, Python 3 with pip install sarvamai, and your own Sarvam API key in the environment variable
SARVAM_API_KEY (Sarvam is a paid API; only voice.mjs calls it). Never write the key into a file in the repository.
git clone https://github.com/2boysfromtown/code-drawn-anime
cd code-drawn-anime
node tools/build.mjs ep7_en --silent # renders a bundled example (picture only), no key needed
The finished Ep2-Ep8 scripts in Tamil, Hindi and English live in app/anime/eps/ to copy from. On Windows keep the clone on
a short path (PowerShell 5.1 cannot open paths over 260 characters, and render frames and logs nest deep).
references/script-writing.md (AIDA timing, how
to write lines that the voices read correctly, episode ideas).app/anime/eps/epN.json. Start from the closest example (ep5 business story, ep6 framework explainer, ep7
automation, ep8 build-something) and keep "editing": "v2". Every scene and its fields: references/scenes.md.
Characters, expressions, adding a new one: references/characters.md.node tools/voice.mjs epN - voices all lines in parallel and prints what speech-to-text heard back. Compare
every "heard" with "said"; reword lines that came back wrong and redo just those (node tools/voice.mjs epN:3,7).node tools/timeline.mjs epN - places the lines, writes caption times and lip-sync, prints each line's pauses
next to its caption chunks. Check that each chunk starts where its words are spoken and fix the wrong ones
(node tools/timeline.mjs epN L5.2=p3). Shots are timed to caption chunks, so a bad split makes a cut late.node tools/review.mjs epN (one frame per shot), then --at=end and --at=cut. Open the printed PNG and look
for overflowing text, wrong scene, a character covering text, empty screens. references/qa.md lists what usually goes
wrong and how to fix it.node tools/build.mjs epN - soundtrack, full render (about 80-100 s per episode on an RTX-class GPU), phone copy
in deliver/, loudness report (aim -14 LUFS). Then node tools/review.mjs epN --video for a last look at the real video.tools/i18n/<lang>.mjs, node tools/make_lang.mjs hi epN, then steps 3-6 for
epN_hi. Same caption-chunk count per line as the source. Details and voices: references/dubbing.md.deliver/ files (about 15 MB each). build.mjs --drive also makes copies under 10 MB for
upload limits. See references/delivery.md.Several episodes at once: write all the scripts, then voice.mjs ep9 ep10 ep11 (parallel), timeline.mjs ep9 ep10 ep11,
review each, build.mjs ep9 ep10 ep11 (renders run one after another - run it in the background).
{ "id": "ep9", "ep": 9, "title": "LEAD BOT", "editing": "v2", "deliver": "2BFT_anime_tamil_ep9_lead_bot",
"voices": { "N": { "model": "bulbul:v4-flash", "speaker": "aravind_ta_ads", "pace": 1.25 },
"S": { "model": "bulbul:v3", "speaker": "tarun", "pace": 1.25 },
"A": { "model": "bulbul:v3", "speaker": "kavitha", "pace": 1.2 } },
"lead": 0.8, "gap": 0.28, "tail": 4.2,
"lines": [ { "id": 1, "who": "S", "tts": "spoken text, native script", "gapBefore": 0.6,
"caps": [ { "text": "shown text, ENGLISH words in caps", "hi": ["ENGLISH"] }, { "text": "second chunk", "hi": [] } ] } ],
"shots": [ { "at": "0", "scene": "hook", "who": "S", "big": ["LINE ONE", "LINE TWO?!"], "mood": "hype" },
{ "at": "L1.1", "scene": "close", "who": "S", "bg": "shop", "expr": "worried", "mood": "calm" } ],
"ui": { } }
Shot times: "0", "L3" (line 3 starts), "L3.1" (its second caption chunk), "L3e" (line 3 ended), plus offsets such as
"L3.1+0.5". A shot lasts until the next one starts. mood drives the music (hype, learn, calm, cta, end). The timeline
tool fills in t0, t1, pauses, caption times and duration - never write those by hand.
app/anime/engine.js: scenes are S.<name> = (s, t, u) => {...} (s = shot, t = time, u = time since the shot started);
sets in BG; icons in ICON; caption heights per scene in CAPY; on-screen words via UI(key, tamilDefault); the v2
compositor (renderShot, camOf, composite, overlays) does camera moves, transitions, stamps and the step tracker.app/anime/panels.js: UI panels (phones, chats, code editors, cards). app/anime/world.js: skies and the town.app/anime/edit_rules.js: which transition each cut gets, and time-reference parsing (shared with the sound tool).tools/sound_ep.mjs: music per mood, one case per scene for its sound effects, transition whooshes.app/anime/rig34.js: the characters.render/: the headless-Chrome render harness, contact sheets and the audio-to-mouth-shape lip-sync.
A new scene needs its S. function, a sound case, a CAPY entry if captions would cover it, and a review pass.
Older episodes (no "editing": "v2") keep the original, simpler editing so they re-render unchanged.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub 2boysfromtown/code-drawn-anime --plugin 2bft-code-drawn-animeOther plugins' skills for the same job