Communitygithub.com

storyworld-shorts

StoryWorld Shorts v2 - turn one true story into a finished 45-60 s vertical cartoon Short. Flat 2D bean-head characters live inside a complete, detailed 3D world (streets, interiors, weather, practical lights) built in three.js + Remotion, with an action-first hook, ElevenLabs narration timed by whisper, 1-3 word captions plus hook text, Freesound CC0 + synthesized sound design, the user's music at -14 LUFS, a resumable 1080x1920 render, QA and YouTube scheduling. Proven on Citicorp, the Exploding Whale, Ford, Alaska and Pisa. Use for any new history/science/engineering story short "like the last ones", or when the user names "storyworld-shorts", "claude-animated-shorts", "скилл с гитхаба" or "скилл из архива". The old v1 bridge rules live in SKILL_v1_bridge.md; for full-Blender EEVEE shorts or a friend render pack use cartoon-3d-short.

What is storyworld-shorts?

storyworld-shorts is a Claude Code agent skill that storyWorld Shorts v2 - turn one true story into a finished 45-60 s vertical cartoon Short. Flat 2D bean-head characters live inside a complete, detailed 3D world (streets, interiors, weather, practical lights) built in three.js + Remotion, with an action-first hook, ElevenLabs narration timed by whisper, 1-3 word captions plus hook text, Freesound CC0 + synthesized sound design, the user's music at -14 LUFS, a resumable 1080x1920 render, QA and YouTube scheduling. Proven on Citicorp, the Exploding Whale, Ford, Alaska and Pisa. Use for any new history/science/engineering story short "like the last ones", or when the user names "storyworld-shorts", "claude-animated-shorts", "скилл с гитхаба" or "скилл из архива". The old v1 bridge rules live in SKILL_v1_bridge.md; for full-Blender EEVEE shorts or a friend render pack use cartoon-3d-short.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/kayvox/storyworld-shorts/tree/HEAD

Ask in your favorite AI

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

Documentation

StoryWorld Shorts v2: flat characters, a full world

v2 is how the last five shorts were made (Pisa → Alaska → Ford → Whale → Citicorp, 2026-11-27/28). Where v2 and v1 disagree, v2 wins.

  • v1 (The Bridge That Fell for a Song) is in SKILL_v1_bridge.md. Its look values, look-match loop and readability traps still apply.
  • references/ (style bible, 7 measured reports, 38 frames, 20 contact sheets) is unchanged: use it to compare looks. Never delete those images.
  • templates/bridge/ is the v1 source. templates/v2/ is the full Citicorp source: start every new short from it.
  • What changed and why: CHANGELOG.md.

User rules (v2)

  • Reply in Russian, short status lines. Finish without questions once the topic is chosen. The user often says "сам выбери": pick the best option yourself and go.
  • Topic and format:
    • One true, researched story with a visual cause and effect. The user likes "mystery first, then You see… explains it" (Citicorp) and "everyone laughed, later X was right" (Alaska).
    • The user rejects generic lists and dull topics (Emu War). Offer at most one or two ideas, or choose.
    • Stranger test: someone who knows nothing understands within 2 s why to keep watching. Something new every 3-5 s. Mid-twist. End right on the payoff: no moral, no "subscribe".
  • Hook (the biggest retention lever):
    • Frame 0 is physical action already going wrong (storm and tower swaying, a blast mid-rise, a crash). Never a calm establishing shot, a still pose or a slow reveal.
    • A big hook text at the top for 0-2.7 s ("THIS TOWER / ALMOST FELL"), separate from the captions.
    • Line 1 is read calm and matter-of-fact (stability 0.6+, style ≤0.15), and states the stakes in under 2 s.
    • SFX on frame 0 (thunder crack, blast, crash).
  • Length: 45-60 s, about 3.6 words/s, 12-16 narration lines.
  • Captions ON: blocks of 1-3 words, white Arial Black 108, black outline plus shadow, centred at y=1350. Numbers as digits (1978, 200, 16). No box, no pop animation.
  • Look:
    • Detailed world behind flat cards, with 3 depth layers.
    • In-world signs on key words ("NO PAPERS", "TELEPHONE", "CITICORP CENTER").
    • "Cartoon night": blue and readable, with bright practicals.
    • Camera moves in every shot. No grain.
  • Audio:
    • The user's music only: Hide and Sneak, D:\NewBro\pigwar\assets\music\hide_and_sneak.mp3. Never download music.
    • An SFX on every event. -14 LUFS, TP -1.7 dBTP.
  • Export: 1080x1920, 30 fps, h264 yuv420p TV range, bt709, 14M (max 16M), AAC 256k 48 kHz, faststart. 1K, not 2K: the user wants speed.
  • Permissions:
    • Downloads (Freesound packs, models) need the user's OK.
    • Publishing needs an explicit request ("выложи").
    • Never print the ElevenLabs key. Use it only inline from its key file.
    • The user's email is private.

Build a full world, not a backdrop (the core of the style)

Simple flat characters inside an almost-real, fully furnished world: that contrast is what makes the style. A thin or empty set is the main giveaway of a cheap short. Hold every location to this bar:

  • Three depth layers in every frame.
    • Near: a prop, kerb, plant or railing close to the lens.
    • Middle: the characters and the story object.
    • Far: a skyline, hills or sea fading into light blue haze. Never a black void or a grey fog wall.
  • No bare surfaces.
    • Walls, roads and floors get texture, seams, grime, worn edges and colour variation (canvas textures in paint.ts/atex.ts).
    • Copies of the same object get a random tint.
  • A lived-in place: 20+ kinds of props per location, tied to the story.
    • A city street: lamps, hydrants, mailboxes, bins, traffic lights, trees, taxis, a newsstand, a phone booth.
    • An office: desks, papers, a phone, a lamp, shelves, a TV.
    • Key story words appear as in-world text: signs, maps, headlines, placards.
  • The world reacts to every event. Rain, lightning, sparks, dust, splashes, wind arrows, ringing lines: an effect card or a set change on every beat.
  • Light with a source.
    • Day: one sun with crisp shadows and a blue sky fill.
    • Night: blue but readable, with unlit glowing windows and up to 12 warm point lamps (street lamps, desk lamps, weld glow).
    • Lightning flashes lift the whole scene.
  • One world, many places. Every set lives in the same scene, far apart (places.ts: the city at the origin, the office at x=900, the engineer's office at x=-900). Shots cut between them by toggling groups, so there are no separate scenes to load.
  • Characters belong to the place. Cards stand on kerbs and floors, cast a contact shadow, take on the scene light, and wear period outfits (1970s suits, hard hats, uniforms).
  • Detail where the lens is. Model what is near each camera. Far blocks are boxes with facade textures, and the horizon is a skyline image ring, so a weak PC still renders ~5 s per frame.

Project layout (copy of templates/v2/)

New project = copy the last project folder, e.g. D:\ProjectZ\<name>-short. Then:

  • node_modules → a junction to D:\ProjectZ\pisa-short\node_modules.
  • In src/Root.tsx, import ./videos/<name>/Bridge.
  • Rename the video folder.
FileRole
src/videos/<n>/places.tsWorld constants: coordinates of every set and zone (OFFICE, ENG, LEX…), H() ground height, at()
src/videos/<n>/story.tswords.json lookups T(w, n). E events. B = shot cuts from word times (cut("word", n) = 3 f before onset). DEF = light/place/flags per shot → SHOTS. KEYS = Hermite camera keys per shot. KICKS = impact shakes. DV = lens blur per shot. Story curves such as tiltAt, stormTrack, flashAt
src/videos/<n>/sets.tsProcedural sets via the Batch merge (box, textQuad, textBoard, ctex canvas textures). basic() unlit materials for night windows and signs. Lamp lists (≤12 point lamps used per frame). Returns SetRefs groups (day/night/place/etc.)
src/videos/<n>/cast.tsHead (Pool/Actor/Fx/person/stand/walk) stays. Tail per video: outfits, fx canvas drawings (bubble, label, sparks, clock, map, placard…), stage(id, t, cam, sun, extra) = everything on screen per shot
src/videos/<n>/world.tsLoads the GLBs from public/<n>/. model() re-pivots parts named <prefix>_<mat> (wheels spin). dress() = visibility and animation per shot. Picks the 12 nearest lamps. Fog per place (off indoors). Lightning boosts hemi/sun. Sky, clouds, sun frozen per shot
src/videos/<n>/toon.tsCard drawing. Expr: neutral, stern, grin, laugh, whistle, nervous, shock, relief, relief_open, dazed, pained, smile, smile_closed, lick. Outfit fields. FrontOpts: mode (march/stroll/stand/sit/fall), expr, prop (paper/phone/box/cup…), wave, facing, look, headTilt. fxBurst
lights.ts, shade.ts, ink.ts, lensblur.ts, grade.ts, Bridge.tsxLook and post (v1 values). Light presets: day, golden, indoor, night, lamp, dusk
tools/lines.pyLINES = [(text, emotion 0.55-1, cfg, pause), …] with fact comments on top
tools/tts_eleven.pyElevenLabs per line (voice nPczCjzI2devNBz1zQrb, multilingual_v2, speed 1.08, previous/next_text) → voice/lines_el/lXX.wav. python tools/tts_eleven.py 3 7 redoes lines 3 and 7
tools/assemble_voice.pyJoins the lines with their pauses, runs a faster-whisper check per line, writes word timings → voice/words.json + src/videos/<n>/words.json + public/voice.wav. NUM map spells digits that whisper writes as numbers
tools/captions.pyASS captions (JOIN word pairs → digits, DIG map, the Hook line) → out/<n>/captions.ass
audio/<n>_sound.py + <n>_cues.pyMix: voice + music (ducked, -10 LU) + SFX (-9 LU). ev(t, "file_id", dB, dur=…) places a Freesound clip from audio/dl/. evx(t, numpy, dB, pan, name) places a synth. Writes out/<n>/mix.wav, stems and cues.md
scripts/render_<n>.ps1Resumable 200-frame chunks (.done markers), --timeout=300000, then concat → out/<n>/video.mp4
scripts/finish_<n>.shBurns the ASS, muxes mix.wav, encodes 14M, runs short_qa
scripts/bridge-stills.mjs, sheet.py, short_qa.pyStills, contact sheets, final QA
blender/mb.py, whale_props.py, preview_glb.pyGLB props (cars, trucks, whale…) in Blender 5, headless

Pipeline v2

  1. Topic + facts. Check every fact (the year, the numbers, the names). Write the fact list as comments at the top of tools/lines.py.
  2. Script. 12-16 lines. The hook line is the shocking fact. Then the mystery beats, the "You see…" explanation, escalation, a mid-twist and the payoff. Plan the hook text and the frame-0 action now.
  3. Voice.
    • ELEVENLABS_API_KEY="$(cat <key file>)" python tools/tts_eleven.py, then VOICE_LINES=lines_el python tools/assemble_voice.py.
    • Check that the whisper words match the text. Fix spellings in NUM and in the captions afterwards (e.g. sed Lemissurier→LeMessurier on the .ass).
    • TOTAL = (last word end + 1.3 s) × 30.
  4. places.ts → story.ts → sets.ts → cast.ts → world.ts. 15-22 shots. 3-4 fast cuts in the first 4 s, then holds of 2-4 s, every hold creeping.
  5. Typecheck. npx tsc --noEmit -p .. The 6 Bridge.tsx "Element | null" errors are pre-existing; ignore them.
  6. Stills for every shot.
    • REMOTION_TMP=D:/ProjectZ/.tmp node scripts/bridge-stills.mjs out/st/s <mid frames> 0.4 (~13 s per still).
    • python scripts/sheet.py out/st/sheet.jpg 5 <files>.
    • Look at every tile: subject in frame? camera not inside a building? signs readable? Fix, then re-render only the failing shots. Usually 2-4 rounds.
  7. Sound. python audio/<n>_sound.py, which loops the gain to -14.0 LUFS / TP -1.7. Lock picture timing before this step.
  8. Captions. python tools/captions.py.
  9. Render.
    • Start-Process powershell -WindowStyle Minimized -ArgumentList '-ExecutionPolicy','Bypass','-File','<proj>\scripts\render_<n>.ps1'. About 4-5 min per 200 frames, ~35 min for 52 s.
    • Wait with a background until grep -qE "ALL DONE|FAILED" out/<n>/chunks.log; do sleep 30; done.
  10. Finish + QA.
    • sh scripts/finish_<n>.sh.
    • Pops in the QA report are normal at cuts, lightning and weld flicker. Black, white or frozen frames must be empty.
    • Grab ~15 frames from the final with ffmpeg and look at a sheet.
  11. Deliver.
    • SendUserFile the final.mp4.
    • Write D:\NewBro\videos_info\<name>.md: title, description, hashtags, facts.
    • Write a memory file plus a MEMORY.md line.
  12. Upload (only after "выложи"). See the next section.

YouTube upload via Claude in Chrome

  • If the extension is "not connected", run list_connected_browsers. An empty list means the user must sign in to the extension; after that, select_browser the deviceId.
  • Open studio.youtube.com and click the upload (arrow-up) icon. The file is ~90 MB, over the 10 MB tool limit, so the user picks the file in the dialog.
  • Title and description go in with JS: document.querySelectorAll('ytcp-uploads-dialog #textbox') → el.focus(); execCommand('selectAll'); execCommand('insertText', false, text). Keep the channel's standard first line of the description, if it has one.
  • "Not made for kids": find the radio, scroll_to, then click it.
  • Click Next (Далее) ×3, then go to Visibility → "Запланировать публикацию" (expand it).
    • Date: open the date trigger and click the day in the calendar. Typing does not commit, and the first visible "2" may belong to the previous month, so check the value after clicking.
    • Time: click the field, then End + Backspace ×6, type 05:00, Return, and click outside.
    • Check the values with JS on ytcp-datetime-picker.
  • Usual cadence: one short per day, 05:00 GMT+5 (≈ US evening peak). Confirm the schedule dialog and note the shorts URL in memory.

v2 gotchas (each cost a round)

  • The portrait frame is only about ±13° wide at fov 46-50.
    • Wide signs and banners need the camera 15+ m away.
    • Fx such as wind arrows must sit near the look axis, otherwise they end up at the frame edge.
    • Characters more than ~14° off axis are out of frame.
  • Cameras inside buildings.
    • Every city wide shot needs a clear sight line. Cap the heights of the blocks between the camera and the subject (Citicorp: the south-west "brownstone district" h ≤ 52), or put the camera over a street.
    • A black or purple still almost always means the camera is inside a box.
  • A foreground prop near the lens (phone booth, mailbox, parked car) becomes a huge blob. Move the camera or the walkers, not the prop.
  • Word lookups use the first occurrence.
    • "secret" (secret welders) appeared before "the secret stayed hidden", so use T("secret", 1).
    • Ford: "by" needed cut("by", 1).
    • Apply the same index in story.ts and <n>_sound.py.
  • Whisper writes digits ("1978"), but norm() strips non-letters. Spell numbers out in assemble_voice's NUM, and turn them back into digits only in the captions.
  • Bash heredocs eat \N in ASS strings and python code (unicodeescape errors). Write patch scripts to the scratchpad with Write, then run them.
  • Writing a file you haven't Read fails silently in a chain, so the old text gets used (whale lines were re-voiced once). Read before Write, or use heredoc/python.
  • Plane fx with a negative width (mirror) plus a yaw can vanish. Use positive w/h and compute yaw = atan2(dz, -dx) of the motion.
  • TaskStop on a bash task does not kill a node stills render. Check Win32_Process for stale bridge-stills, or two runs will overwrite each other's jpgs.
  • Point lamps: at most 12 per frame (TONE.uLampP/C/R). Sort by distance to the camera. Street lamps count only at night or dusk.
  • Night windows must use basic() (unlit) with a canvas texture, or they go grey.
  • The first frames of heavy shots can exceed 30 s, so keep --timeout=300000 in the render script.
  • Freesound search now returns 403. Reuse the 100 CC0 previews in D:\ProjectZ\*\audio\dl (credits.tsv). Otherwise synthesize: thunder, rain, groan, weld, bell, static, traffic, gulls, blast, surf and diesel helpers are in the cues files.
  • Upload: the YouTube datepicker ignores input.value/JS; only real clicks or typing commit. The Chrome extension can disconnect mid-flow; re-select the browser and continue.

Still valid from v1 (details in SKILL_v1_bridge.md)

  • Look values: light presets, albedos, lens table, the post chain (ink → lens → bloom → neutral tone map → grade, MSAA 4), character proportions.
  • Camera rules: smootherstep glides, a creeping push in every hold, flip kicks over 7 f.
  • Readability traps: two-rope swings; no cut-off foreground blobs; correct period flags; unlit sign faces; inner rim light only; rails cross legs, not torsos.
  • Disk: keep REMOTION_TMP/TEMP on D:. Every bundle copies public/. Clean old bundle folders only when nothing is rendering.
  • Mux: Remotion writes a silent track, so map the video and audio explicitly.

Related Skills