agentleFS
SanilSharpsheepSanilSharpsheep/sheepsrobotics-video-skills/skills/animated-3d-story-video/SKILL.md

animated-3d-story-video

Skill1 starsChanged 8 days agoMITView on GitHub

Make a 40-60 s vertical 3D-world story Short with 2D cartoon characters (Remotion + three.js), from 5 ideas and a script to a render.bat the user runs on their own PC.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 15 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never ask the user for reference videos, examples or a style.

    line 13
  2. Distinctive:

    Before rendering, check that no objects sit inside each other or float, and that no two surfaces share the same height (z-fighting stripes).

    line 16
  3. Distinctive:

    Do the technical work yourself.

    line 17
  4. Distinctive:

    Keep approved things fixed: script, timing, facts, characters, ink colour #351f22.

    line 18
  5. Distinctive:

    Do not render the full-quality video in the cloud.

    line 20
  6. Distinctive:

    Only after a yes. Get the voice-over (see Default setup).

    line 48
  7. Distinctive:

    Every sentence is illustrated literally on screen and props carry the joke.

    line 65
  8. Distinctive:

    No flat sky or ground strips, no side-on cardboard buildings, no boxy props (build props from their parts).

    line 86
  9. Distinctive:

    Put every location in one scene at different x offsets (for example 0, 40, 80, 120, 200, 300, 400) so the camera can travel and light can …

    line 110
  10. Very specific:

    If a starter project is attached or present in the folder (files such as kit.js, char3.js, world1.js, areas.js, Full.jsx), copy and adapt …

    line 114
  11. Very specific:

    Write camera_plan.md: per shot, the time, location, camera path (start -> end), speed, foreground / midground / background objects and …

    line 117
  12. Distinctive:

    Keep the camera clear of characters and props.

    line 132
  13. Distinctive:

    Every visual reaction lands 0-3 frames before its word, never after.

    line 136
  14. Distinctive:

    No dead holds: when the path is at rest, the camera still creeps in by about 0.15-0.35% per frame (0.6% on punch words).

    line 137
  15. Distinctive:

    Every video gets a detail pass before the stills check.

    line 145
  16. Distinctive:

    Check: the contact sheet review counts the moving secondary elements per shot.

    line 157
  17. Very specific:

    Check with ffmpeg -af ebur128=peak=true on the mix.

    line 166
  18. Very specific:

    Only if asked or if it renders slowly: Node.js must be installed.

    line 175
  19. Distinctive:

    No film grain: it multiplies the file size and turns to mush on YouTube.

    line 210

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Animated 3D story video

This makes a 40-60 s vertical (9:16) story video in one fixed style: every location is a real 3D world (painted flat-colour models with ink outlines), 2D cartoon characters stand inside it, and the camera always moves. It is all code (Remotion + three.js), so no image or model files are needed. It works for history stories, science and engineering explainers and comedy episodes.

The engine lives in kits/story-3d-kit/ of this repo (lights, shadows, ink pass, lens blur, grade, characters, camera glide, intersection check, sound mix). Copy it into videos/<slug>/ for each new video and build a new world and story on top. Measured numbers below come from frame-by-frame analysis of 20 popular 3D story Shorts plus the MIT-licensed claude-animated-shorts toolkit (github.com/mromidev/claude-animated-shorts). Where the two differ, the house style here wins.

Hard rules

  • Never ask the user for reference videos, examples or a style. The style and rulebook are in this file.
  • Captions are off by default (SHOW_CAPTIONS = false in src/Video.jsx): most creators add them in their editor. Deliver sentence_times.json and the voice-over PDF so a caption tool can use them. Turn them on only if the user asks.
  • Never reuse the same setting. Each video gets its own location, palette, lighting and explainer look (not the same workshop/pegboard/CNC bench or the navy blueprint grid every time). Vary the story type within science and engineering: invention history, disasters, nature, physics in everyday life, big structures, space, materials, not only robot parts. Check past videos and avoid repeating a topic or a setting.
  • Before rendering, check that no objects sit inside each other or float, and that no two surfaces share the same height (z-fighting stripes).
  • Do the technical work yourself. Ask the user only the questions in the flow below.
  • Keep approved things fixed: script, timing, facts, characters, ink colour #351f22.
  • Be honest about what was checked (stills versus the full video) and list known problems at the end.
  • Do not render the full-quality video in the cloud; the user renders it on their PC with render.bat (fast on a GPU).
  • Original characters and worlds only. If the user names a franchise, make an original parody instead (own designs, own names, no franchise names, phrases or music in the video, title or hashtags) and say so in one sentence.
  • The toolkit's reference frames, sheets and reports are for measuring the look only. Never copy their scripts, characters or shots, never upload, publish or send them, and never name the reference channel in a video, title or description.

Default setup (change it to fit yours)

  • Workspace: one folder per video, videos/<slug>/ (script.md, audio/, src/, public/, stills/, out/, RESUME.md, PROGRESS.md). Start each one from a copy of kits/story-3d-kit/.
  • Voice-over: Kokoro (free, open-source, Apache-2.0, runs locally). Default narrator bm_george (British male), en-gb, speed 1.05-1.12, generated sentence by sentence so the timing is exact (audio/tts.py; set KOKORO_DIR to the folder with kokoro-v1.0.onnx and voices-v1.0.bin from the kokoro-onnx GitHub release). Any other TTS or your own recorded voice works too: save it as public/voiceover.wav.
  • Pause tightening: pauses longer than 0.45 s become 0.28 s, then loudnorm to -14 LUFS -> voice_only.wav. Stage E3 mixes it with music and SFX into public/voiceover.wav.
  • Timing for a recorded take: pause-anchored alignment (silencedetect + sentence ends mapped to pauses) -> src/sentence_times.json. No timing yet? python audio/estimate_times.py writes estimated times at 3.35 words/s so you can build stills first.
  • Delivery: Shorts at 1080x1920 (render 720x1280, upscale with lanczos in render.bat), plus a title (one emoji max) and 6-8 hashtags starting with #Shorts. The user uploads; never post on their behalf.

Toolkit repo (reuse it, do not reinvent it)

At the start of Step 3, fetch it once: git clone --depth 1 https://github.com/mromidev/claude-animated-shorts ~/cas (GitHub is reachable from the workspace). It is MIT-licensed TypeScript for one example short (a bridge story). Port techniques into this channel's JSX kit; do not switch projects.

  • templates/scripts/short_qa.py: frame-by-frame QA of any rendered mp4 (specs, LUFS, silences, black / white / frozen / pop frames, per-shot colour, 2 s contact sheets). Needs numpy, Pillow and ffmpeg.
  • templates/scripts/sbs_sheet.py: side-by-side sheet, our stills on top, reference frames below.
  • templates/bridge/ink.ts, lensblur.ts, grade.ts, cardshade.ts, Bridge.tsx: working post chain (ink pass, lens blur, bloom, tone map, grade) and lit character cards. Port the technique; keep our ink colour and characters.
  • templates/audio/ (sfx_gen.py, instruments.py, sfx.py, music.py, timeline.py, mix.py, dsp.py): synthesized SFX, an original score, ducking keyed from word times, a true-peak limiter and a cue sheet. Adapt the event table and score per story.
  • references/reports/*.md (motion, depth, textures, characters, lighting, outlines, grade) and references/STYLE_BIBLE.md: measured numbers. Read the report for an area before changing that area. references/frames/: 38 reference frames (540x960) for side-by-side checks of light, colour, ink weight and depth (not character design).

The flow (three steps for the user, everything else automatic)

Step 1. Ideas (start here, do not ask questions first)

Immediately generate 5 story ideas. If the user gave a topic, use it; otherwise pick true, surprising stories where something physically big changes (a city rises, a river is moved, a ship is carried over land). For each: one-line title, the visual hook (what moves or changes on screen), the escalation (but / then / so), and 2-3 hard numbers or names. Search the web to confirm facts and drop anything single-source or unclear. Ask: "Which one should I write?" (or let them give their own). If the user already gave a specific story, skip to Step 2.

Step 2. Script

Write the script for the chosen idea using the script rules below. Show a short shot table (shot, start time, words, line, on screen) and the voice-over text. Then ask: "Do you want me to make the video from this script?" Make small edits if asked, then ask again.

Step 3. Make the video, then say it is ready to render

Only after a yes. Get the voice-over (see Default setup). Then build everything without stopping (stages A-F). When done, tell the user the video is ready to render (see Handover).

Script rules (built-in rulebook)

  • First word at t=0, no intro, premise in the first sentence (a paradox or surprising fact). Hook 5-23 words (aim 16), ends at about 4-5 s.
  • 9-12 shots, one location per shot, about 140-150 words for about 43-48 s (3.35 words per second, range 3.05-3.65). Total 39-65 s.
  • Beats: But (shot 4), Then (shot 5), the complaint or conflict (shot 6), a pivot "You see" at 53-87% of the runtime (shot 7), "So..." consequence at 80-93% (shot 9), closing line 5-19 words (about 9). No outro, no call to action.
  • Simple words, human tone, no generic AI phrases, one idea per sentence, concrete numbers and names. Every claim has a source; leave out single-source or unverifiable details.
  • Formula measured on 20 reference shorts (all 20 follow it), fitted to the beats above: the hook states a paradox as fact; the setting takes 1-2 lines with a named everyman and numbers; in the escalation others doubt or mock (short in-character lines) and the stakes climb each beat; one mystery beat (a question, or "Wait...?"); the "You see" pivot explains the mechanism through an everyday analogy ("Ever...?", "Picture..."); an ironic payoff in the last 1-2 sentences, and the video ends on the last word.
  • Script study of 20 popular 3D story Shorts (transcripts with timing), for craft only, never for content:
    • Hook: 15 of 20 open on a third-person, past-tense, absurd action ("He [did something that sounds dumb]..."), median 13-14 words. Others: "If you...", "There's a [thing] nobody's allowed to...", "Look at these two...", "It's impossible to..., but...". After the hook the story switches to the present tense ("his buddy just watches...").
    • "You see," has two slots (16 of 20 use it): right after the hook, at 3-14% of the runtime, to rewind into the setup (8 of 20), and at 64-91% for the reveal or mechanism (10 of 20). Our rulebook's pivot slot is the second one; the first is allowed too.
    • Mystery beat, then the answer: a short question ("But why?", "How is that possible?", "Wait, ...?") answered with "Well, ..." and often a named term ("it's called [name]").
    • Rhythm: median sentence 14 words; about a third of sentences start with So / And / But / Then / Yet / Well. "So," is the most common sentence opener.
    • 18 of 20 give side characters 1-3 short spoken lines (mockery, disbelief, a deadpan reply). Jokes are exaggeration similes and claim-versus-reality.
    • The explanation uses a named term or a one-line everyday analogy, never a lecture. The twist lands as an on-screen image in the last sentence; no outro.
    • Reference pace (for comparison; house values above stay unless the user changes them): 3.6 words/s (3.2-3.9), 55-78 s (median 63), 200-295 words.
  • 1-2 jokes per video, built from real researched facts (claim versus reality, or a deadpan "Luckily... / Unluckily..." pair).
  • Every sentence is illustrated literally on screen and props carry the joke. Never narrate what the viewer can already see.
  • Flag any shot shorter than 1.5 s.
  • Output: script.md (shot table, rulebook check, fact map, left out on purpose, wording to watch) and a voice-over script PDF: "Chapter N - Title (start time)" followed by one paragraph, 2-3 chapters for a short video.

Build stages (automatic)

Log every finished step and every problem in PROGRESS.md. Order is always: one still -> stills for every shot -> (5 s motion test of the hardest shot if anything is new) -> handover. Never skip ahead.

A. Timing

Transcribe or align the voice-over into sentence_times.json (starts and ends per sentence). Shot cuts come from real sentence ends, collected in one CUTS array; if a shot holds two sentences keep both times.

B. Art style (fixed)

  • One ink colour for every outline: #351f22.
  • Models built in code with real depth: extruded walls with window reveals and sills, door panels, awnings, cornices, chimneys, threaded jackscrews, timber crib stacks, brick vaults. Textures are painted flat colours with wear (stains, chips, scratches) drawn on a canvas. Outline = inverted hull plus edge lines.
  • Toon shading with a 3-band gradient; keep it subtle (about 10-12% lightness shift between highlight and shadow, same hue). One warm key light from the upper left with shadows, a hemisphere fill, a light vignette, fog colour per location. No grain, gloss, bevels or reflections.
  • Lighting follows the story: warm and bright in the setup, deeper and bluer at the pivot (typical arc: noon, then golden, then night-blue for the explanation).
  • Measured on 20 popular 3D story Shorts (every frame at 30 fps): median luma .45 (range .31-.60), contrast (luma std) .20, 2nd percentile .10 (shadows stay lifted, never crushed), 98th percentile .92, saturation .42. Shadows lean blue-violet in 15 of 20 while highlights stay warm in 13 of 20 (split tone); warm-orange sets (mine, canyon) are the exception. Light changes a lot within each video (5 s windows swing about .3 in luma): the darkest stretch (night, storm, rain, dusk) lands 40-85% through in 14 of 20, at the turn, and the ending often brightens (dawn, sunshine). Night scenes = deep blue ambient plus warm practical lights (lanterns, windows, fire) that tint whoever stands near them. Bloom and light shafts on every emissive (lanterns, fire, sparks, neon, moon).
  • Measured light and colour targets: warm key with violet-blue shadows (never brown or grey); the cool tint goes only in the shade. Day frames: median luma about .5-.57, no crushed blacks outside the ink (5th percentile about .2), saturated lit colours; sky horizon about 1.3x brighter than the top; fog colour = horizon colour, starting around 25 m. Golden hour: peach horizon, low backlit sun with a glow disc, violet-blue facades, never lavender faces. Window light pools tint the characters standing in them.
  • Post-processing order: ink pass, then lens blur, then bloom (threshold 1.0, only on emissives such as lanterns, fire and the sun), then a neutral tone map, then the grade. The ink must be its own pass before the blur, or the blur wipes it out. Every pixel-sized parameter (ink width, blur radius) scales with output height / 1920, so half-scale stills match the final.
  • Lens blur size (blur radius at infinity, px at 1080 wide): extreme close-ups 15-16, close-ups 12-14, medium shots 10-12, wides and aerials 0. Blur on about a third of the screen time, focused on the eyes of the front character; establishing shots stay sharp.
  • Depth: blurred foreground object near the lens, sharp midground with characters, softly blurred background (depth-of-field pass focused at the look-at distance).
  • Labels live inside the world (painted signs, a banner on two poles, names on crates, a map title, a desk nameplate). Never floating pills or captions.
  • No flat sky or ground strips, no side-on cardboard buildings, no boxy props (build props from their parts).
  • Cuts: a 0.4 s dip to cream at location changes; continuous camera moves where one shot flows into the next. At most one hard cut in the whole video.
  • Measured transitions (latest 20 reference shorts): 16 of 20 have at most one hard cut. Place changes use a direct crossfade (about 8 frames, 0.27 s, in the one measured frame by frame) with both shots still moving through it, a foreground object wiping across the lens, a flash or lens-flare wipe, a whip pan, or an iris through a round shape (an eye, a porthole, a telescope). Use the direct 8-frame crossfade for in-story place changes and keep the cream dip for big time jumps. When the reference does hard-cut, the cut lands on a beat word ("You see", "So").

C. Characters (2D flat people in the 3D world)

  • Built in code from flat shapes: large round pale head, calm half-lidded eyes, tiny smile, hair fringe, white collar, tie, small pear-shaped two-tone torso with a pocket patch, thin tapered stick limbs, dark disc hands. Hand-drawn ink band with varying, slightly wobbly thickness around every shape.
  • Variants by palette, hat (top hat, bowler, cap, crown, helmet, none) and glasses only. Never redesign the base character. Robots for robotics topics are props built from parts, not new character bases.
  • Flat shading. Idle bob and nod, arm sway, 3-5 expressions that match the script. Blinks every 0.5-2.3 s, 4 frames each (half, shut, shut, half), plus one on every expression change. Acting is on ones: no line boil and no idle loops that repeat visibly. Turn toward the camera with limited yaw (clamp about 0.7 rad) so they are never edge-on. Soft contact-shadow blob on the ground; both feet on the floor.
  • Size: body 40-60% of frame height in medium shots, 70%+ in close shots. Three people side by side need the camera about 4 m away.
  • Staging rules (learned the hard way, after characters lost their arms and sank into a chair):
    • Draw the arms AFTER the torso (in front of it). A hand held in front of the chest otherwise disappears behind the body and the character looks armless.
    • Held props are placed from the card's hand point, and the hands hold the prop's edges: one hand at the bottom of a phone; for a tablet, hands on its two sides with the arms running down the outside edges. Never both hands at the centre hidden behind the prop.
    • Size held props to the character: a tablet no wider than the torso (about 0.15 x 0.2 m for a child card at scale 0.72), held at belly height, so both arms stay visible beside it. A prop that covers the whole torso hides the arms.
    • Seated characters use a sit pose and stand their card just in front of the seat's front edge (about 2 cm ahead), never inside the seat box.
    • Each card gets its own turn limit: 0.7 rad in the open, 0.2-0.35 rad next to a wall, desk, table or chair, so the turning card never swings into the furniture.
    • People standing on a roof need a parapet made of four thin rim walls, never a solid slab.
    • Someone working at a table stands beside it, fully visible, not behind it (the table hides everything but the head).
    • A character acting on something (drawing a mark, pressing a button) stands on the side that lets the hand reach it, and in-world labels stay clear of every head.
    • Effect sprites (hearts, Z's, sparks) start beside the prop and drift outward and up, leaving the face clear.
    • Props that belong to one shot stay visible until its crossfade has finished (hide them at the next cut + 5 frames, not before), or the outgoing shot shows empty hands.
  • Keep the flat fills, but light the cards with the scene light (no emissive glow) so they sit in the world: darker in shade, warmer in sun, a tight contact shadow under the feet plus a short shadow tail in the sun direction by day. Golden-hour rim light goes only on the inner edge of head and torso, never as an offset outer copy (that frames every hat).
  • Walks: body bob 3-7% of height, forward lean swinging 1-7 degrees, a step every 9-12 frames, stride about 0.8 m, and the standing foot stays planted (no sliding).

D. 3D worlds

  • Put every location in one scene at different x offsets (for example 0, 40, 80, 120, 200, 300, 400) so the camera can travel and light can switch per location.
  • Build shared helpers once: facade (extruded wall with window and door openings and an interior backdrop), liftable building (facade + needle beams + jackscrews + timber stacks + a brick foundation under it), lamp post, barrel, plank sidewalk, mud ground, brick tunnel, room.
  • Procedural models only (the cloud workspace cannot download assets). Instance repeated objects; canvas textures 2048 px or smaller.
  • A door opening must be a notch in the outline, not a hole touching the bottom edge, or triangulation breaks.
  • If a starter project is attached or present in the folder (files such as kit.js, char3.js, world1.js, areas.js, Full.jsx), copy and adapt it. Otherwise build the kit from this spec and keep it in videos/_kit/ for reuse.

E. Camera plan and animation

  • Write camera_plan.md: per shot, the time, location, camera path (start -> end), speed, foreground / midground / background objects and in-world labels.
  • Rules: net travel in every shot; about 10% of frame width per second on average (25-40% travel or push per shot); mix of push (about half), crane (a third), sideways track (a fifth); carry the camera from one subject to the next inside a location; dissolve between locations.
  • Geometry for an 80 degree vertical field of view at 9:16: frame width at the subject = 0.93 x distance, frame height = 1.68 x distance.
  • Sync to the words: for each camera key set a beat time from the sentence timing (word positions by proportion) so the camera reaches each subject as it is named. Smooth with a monotone cubic time warp, zero speed at first and last key (ease in, ease out), no straight-line blending, almost no wobble:
function warpU(T, t) { // T = beat times per path key; returns path position 0..1
  const n = T.length; if (t <= T[0]) return 0; if (t >= T[n-1]) return 1;
  const sec = []; for (let i = 0; i < n-1; i++) sec.push((1/(n-1)) / (T[i+1]-T[i]));
  const m = [0]; for (let i = 1; i < n-1; i++) m.push(2*sec[i-1]*sec[i]/(sec[i-1]+sec[i])); m.push(0);
  let i = 0; while (t > T[i+1]) i++;
  const h = T[i+1]-T[i], x = (t-T[i])/h, x2 = x*x, x3 = x2*x;
  return (2*x3-3*x2+1)*(i/(n-1)) + (x3-2*x2+x)*h*m[i] + (-2*x3+3*x2)*((i+1)/(n-1)) + (x3-x2)*h*m[i+1];
}
  • Tie on-screen events to words: a label appears on its number word, a street rises on "raised", water pools on "couldn't drain", an arrow is drawn on "go up". Show the main event step by step with cause and effect (small steps, a shudder, dust and debris). Secondary motion: cloth, ropes, water ripples, dust in light, background people who react.
  • Keep the camera clear of characters and props; end every move at rest.
  • Measured camera rhythm (latest 20 reference shorts, every frame at 30 fps): a new camera move about every 1.8 s (24-50 per minute); a move lasts about 18 frames (10-34) with its peak speed in the middle (symmetric ease) at about 15 px per frame at 720p; about a quarter of frames are near-still, a quarter slow creep, half clear movement; 3-4 short impact shakes per video. Camera habits: low and wide-angle, close to the characters, big blurred foreground objects; crane-up reveals for scale (an army, a city); dutch tilts for unease.
  • Explainer shots (pick 1-3 per video for the "You see" section): a cutaway cross-section (ground cut open to show a tunnel, a grave, pipes), an x-ray or inside view of a mechanism, a glowing overlay on the object itself (heat on rails, a highlighted pattern on a ticket), a macro insert of the key prop, a top-down plan, an aerial map shot for "all over the country", an in-world chart built from props, a point-of-view shot (through a windshield, a telescope or porthole circle, "your" hands for "Imagine you're..."), or a picture-in-picture daydream. All of them live inside the 3D world.
  • Measured glide shape: symmetric ease-in-out of about 10 frames in and 10 out (about 23 frames total), peak about 14-16 px per frame at 720p. Never 3-frame snaps.
  • Every visual reaction lands 0-3 frames before its word, never after.
  • No dead holds: when the path is at rest, the camera still creeps in by about 0.15-0.35% per frame (0.6% on punch words). 12 or more static frames read as a freeze in QA.
  • Impacts: a kick that flips sign every frame and decays over about 7 frames; a 4-5 degree roll for drama and falls. No hand-held float.
  • Transitions between subjects ride on something moving (follow the ball, the water, the stream), a fly-through (window, porthole) or a whip pan with motion blur. A 4-frame white flash right after the hook is allowed.
  • Foreground framing props in about a third of the shots, never closer than about 2 m to the lens (they become cut-off blobs) and always recognisable.
  • Drive all animation from the frame number (useCurrentFrame), never wall-clock time. Render the 3D scene in a ThreeCanvas, with the post-processing composer in a useFrame at priority 1.
  • Music and SFX: see E3. The final mix is written to public/voiceover.wav, so render.bat only muxes one track.

E2. Detail pass

Every video gets a detail pass before the stills check. Minimum per shot:

  • At least 3 secondary things moving on screen at all times (never a still frame apart from the camera).
  • Particles: dust puffs on every footstep, landing and impact; water spray, foam rings and wake trails behind anything moving in water; smoke or steam where there is fire, cooking or engines; dust motes floating in light shafts (20-40 per shot).
  • Living background: 3-6 birds flapping across the sky; layered flat-toon clouds drifting with their shadows sweeping the ground; 4-10 background people doing small loops (working, pointing, reacting to the main event); animals where they fit.
  • Set dressing: 15 or more props per location (crates, barrels, rope coils, nets, baskets, lanterns, carts, tools, sacks, flags), plus 100 or more instanced grass tufts, flowers and rocks on open ground; walls get cracks, moss, shutters and windows with a warm interior glow; cloth awnings and washing lines.
  • Water: foam lines at the shore, ripple rings around hulls and posts, sparkles on the light side.
  • Rigging and cloth: shrouds and ropes on masts, every flag, sail and banner flutters, ropes sag and sway.
  • Light effects: soft light shafts through gaps, glow halos on lanterns and fires, a sun glow on the horizon, gentle time-of-day shift across the video.
  • Flat 2D effect sprites composited into the 3D scene and inked like the characters: sparkles and stars on impacts, speed lines, dust puffs, splash crowns, glow bursts, music notes.
  • Emotion accents on characters (measured in the reference, flat 2D, no redesign of the base character): sweat drops, a face tinted purple or red with anger plus steam puffs, a flame aura for a burst of effort, a radiating speed-line burst behind a rage moment, crack decals on walls, flying money or confetti.
  • Impact moments (the main event and every "hit" word): a short camera shake (2% of frame, 0.3 s), squash and stretch on the object, dust plus debris chunks, and a splash crown in water.
  • Characters: a different gesture or expression on every line they are on screen for; small secondary motion (hair tuft, tie, cloth).
  • Check: the contact sheet review counts the moving secondary elements per shot; fewer than 3 is a fix.
  • Reuse the kit in kits/story-3d-kit/src: kit.js, char.js, cardshade.js, lights.js, shadows.js, ink.js, lensblur.js, grade.js, camfx.js, paint.js, props.js, sets.js.

E3. Sound (adapted from the toolkit's templates/audio/)

  • Real CC0 sound effects: see kits/sfx/ (sfx.find(), sfx.place() puts each sound's sync point on its event frame).
  • Lock the picture timing (CUTS, beat times) before making sound. Any later timing change means re-running the sound.
  • Build an event table from the camera plan and word times: every footstep, impact, splash, creak, crowd reaction and on-screen effect gets a synthesized SFX (numpy/scipy, sfx_gen.py and sfx.py), panned to its side of the screen.
  • Score: original and synthesized (instruments.py, music.py), one style that fits the story (march, pizzicato, shanty feel), with a hit on the main event and a drop-out before the pivot. Never a known melody.
  • Mix (mix.py): voice gain only; music ducked about 3 dB under speech (keyed from the word times), sitting about 8-10 LU under the voice; SFX a little below the music on average but allowed to poke through on impacts. Master to -14 LUFS integrated, true peak -1 dBTP with a look-ahead limiter, 48 kHz. Save the stems, a cues.md sheet and the final mix as public/voiceover.wav.
  • Check with ffmpeg -af ebur128=peak=true on the mix. The voice must stay on top in every section (median speech margin over the bed about 6 LU or more).

F. Check it (stills)

  • Frame-by-frame intersection check (mandatory before every preview or render): a Check composition builds the world, steps through EVERY frame with the real cameras and poses, samples each visible card's drawn silhouette (canvas alpha above 128, every 12 px) in world space, and tests those points against the bounding boxes of the solid meshes within 2.5 m of the card (boxes, cylinders, extrusions; skip ink hulls, flat planes and the props the character holds). It prints frame ranges with the mesh and the body part (head, body/arms, legs). Run it with npx remotion still src/index.jsx Check check.png --gl=swangle; it takes about 30 s for 1,600 frames and the result must be empty. Reference implementation: kits/story-3d-kit/src/Check.jsx.
  • Then review the rendered preview frame by frame: contact sheets of every 3rd frame (ffmpeg -i preview.mp4 -vf "select='not(mod(n,3))',scale=120:213,tile=10x6" -fps_mode vfr r_%02d.jpg; without -fps_mode vfr ffmpeg repeats the first sheet). Look for what the check cannot see: arms present and connected, hands on held props, props present through each crossfade, nothing covering a face or a label, nobody held half out of frame. Render single frames at the beat times at half scale (npx remotion still ... --scale=0.5 --gl=swangle --browser-executable=<preinstalled chromium>; about 90 s each in the cloud, one at a time, never edit source while one renders). Tile into a contact sheet and look for: objects hiding a name, face or label; characters cropped at the frame edge; props behind heads; poles or lamps crossing the subject; anything passing through the lens; black polygons or empty openings; camera inside a wall; floating or intersecting objects; wrong fact, date or spelling on screen. Fix by moving objects out of the camera's line of sight; repeat until clean. Also check the readability traps under Gotchas. For a new look element (new light setup, effect or location type), make a side-by-side sheet with python ~/cas/templates/scripts/sbs_sheet.py sheet.jpg --ours <stills> --ref <reference frames> and compare light, colour, ink weight and depth (not characters). For a new look, a fresh subagent that has not seen the work scores each area out of 10 (colour, lighting, ink, textures, characters, depth, composition) with a numbered fix list and frame numbers. Run short_qa.py on the preview mp4 before sending it. Then ALWAYS render a cloud preview video so the user gets a playable mp4, not just pictures: --scale=0.75 --props=preview.json --gl=swangle --concurrency=2 --image-format=jpeg, in chunks of up to 500 frames per command (about 2.5 min per 300 frames), join with ffmpeg, add voiceover.wav, upscale to 1080x1920, check it, send it and save it to out/<slug>_PREVIEW.mp4. The full-quality render (depth blur, sharp shadows, 720 native) stays on the PC via render.bat. In a cloud workspace, pass a preinstalled Chromium with --browser-executable (the kit's stills.sh finds one automatically or uses CHROME_PATH).

Handover (what to tell the user)

Send the cloud preview mp4 first (the user expects a video, never only a contact sheet). Then, short and plain: "The video is ready to render. Open the folder and double-click render.bat. It uses your computer's graphics card and takes a few minutes. When it finishes, tell me and I'll check it and send it with the voice-over script PDF." Only if asked or if it renders slowly: Node.js must be installed; the first run downloads packages and a browser; on a laptop set the Remotion browser and the Claude app to High performance in Windows Settings > System > Display > Graphics, then restart the app. The folder contains render.bat, test_render.bat (30-frame test) and preview.bat (540x960, JPEG, no post-processing). render.bat: call npm install, then call npx remotion render src/index.jsx <Id> out\full_silent.mp4 --gl=angle --concurrency=4 --image-format=jpeg --jpeg-quality=92 --crf=17, then call npx remotion ffmpeg -y -i out\full_silent.mp4 -i public\voiceover.wav -map 0:v -map 1:a -vf scale=1080:1920:flags=lanczos -c:v libx264 -crf 17 -preset medium -c:a aac -b:a 192k -shortest out\final.mp4. Write .bat files with CRLF line endings and pause at the end. Every npm/npx line needs call, or Windows ends the .bat after the first one and nothing renders.

After they render

Stage out\final.mp4 and check the real video with python ~/cas/templates/scripts/short_qa.py final.mp4 qa/ shots.json (size 1080x1920, fps, duration, loudness, silences, black / white / frozen / pop frames that were not planned, per-shot colour, a contact sheet every 2 s), then write a numbered mistakes list (timestamp, shot, problem, severity) in mistakes_round_N.md. Fix high severity first, one shot at a time, with a before/after still; only re-render changed shots. Deliver the mp4, the voice-over script PDF, a title and hashtags. Say what was checked, what is still wrong, and offer one next step (usually: upload it to Shorts).

Common mistakes

ProblemFix
Everything is made of boxesRebuild props from their parts; match one still before any motion
Character looks armlessArms drawn behind the torso, or a held prop covers them: draw arms after the torso, shrink the prop, hold it lower
Character sinks into a chair, desk or wallCard inside the furniture box or turning into it: move the card in front, lower its turn limit, run the Check composition
Hands float away from a phone or tabletPlace the prop from the hand point and put the hands on its edges
Hands go empty during a crossfadeHide the prop only after the crossfade ends
Looks like a realistic 3D renderRemove grain, gloss, reflections; flat fills, subtle 3-band toon
Character looks pasted onContact shadow, ink band per body part, hair and clothing detail
Video came out flat 2DRe-read B, D and E: real 3D world, camera travels through it
Objects float or black gaps showContact-sheet every 2 s, list every void with timestamp
Animation feels stiffMain event first: steps, shudder, dust; then walks, blinks, reactions
Render takes foreverpreview.bat for tests; one file per shot in build/shots/, join with ffmpeg
Ink lines vanish in blurred areasInk is its own pass before the lens blur
Stills and the final look differentScale every pixel-sized post parameter with output height / 1920
Shadows look brown or muddyViolet-blue shade, cool tint only in shadow, no crushed blacks
A shot looks frozenCreeping push-in on every hold; QA flags 12+ static frames
Camera moves feel jerkySymmetric ~10 f ease in and out, peak ~15 px/f at 720p
Voice buried under the musicDuck music ~3 dB on speech, keep it ~8-10 LU under the voice

Known limits

Models are procedural, not imported. Native resolution 720x1280 (upscaled to 1080x1920). Ground-floor openings of lifted facades once rendered as black patches (cause not found); report it if it appears. Remotion is free for individuals and companies of up to 3 people; larger teams need a company licence.

Gotchas (from the toolkit's production notes)

  • Windows paths inside JS strings: always use forward slashes (a backslash before r, n or t becomes a control character).
  • Remotion copies public/ into a temp bundle folder on every render and never deletes it, which can fill the system drive. In render.bat set TEMP and TMP to a tmp folder next to the project, and ask before deleting old remotion-webpack-bundle-* folders.
  • Remotion writes a silent audio track: when muxing, map the video from the render and the audio from the mix explicitly (-map 0:v:0 -map 1:a:0).
  • R3F clamps the pixel ratio to at least 1, so --scale=0.5 stills still render a full-size buffer; judge line widths at the final scale.
  • No film grain: it multiplies the file size and turns to mush on YouTube.
  • Painted signs lit by a side sun go grey-blue and unreadable: give sign faces an unlit material.
  • Readability traps: a swing needs two ropes to a wide seat (one rope reads as a hanging); a foreground bush cut by the frame edge reads as a green ball; flags must be correct for the period and country (a red flag with a yellow star reads as Vietnam's); railings at chest height cut through characters, so raise the lens to about 2.5 m; whenever a camera moves, re-check every prop near its new position.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.