Generates 3D-animation-style videos (product turntables, logo reveals, motion graphics, cinematic scenes) by writing Three.js scenes, rendering frames in headless Chrome, and encoding with ffmpeg. Also supports a headless Blender path for photoreal work.
Ships in cinematic-3d-video. 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.
None: SKILL.md is the whole skill.
Claude cannot generate video pixels directly, but it can write a 3D scene as code, render it one frame at a time and encode the frames. This skill is that pipeline.
scene (HTML + Three.js) -- window.seek(t) --> scripts/render.mjs --> headless Chrome screenshots --> ffmpeg --> MP4
render.mjs steps a virtual clock instead of recording in real time. The result is the same on every machine,
and a heavy scene cannot stutter; it just renders more slowly. That is why a scene must be a pure function of time
(see "Scene rules").
node <skill-dir>/scripts/render.mjs --doctor # Node 22+, ffmpeg/ffprobe/libx264, Chrome/Edge (CHROME_PATH overrides); non-zero exit if one is missing
If a tool is missing, tell the user exactly what to install and stop guessing at workarounds. MISSING (optional)
lines only switch off the feature they name (VP9/ProRes for --alpha, drawtext for --sheet labels). Three.js is vendored in
the starter, so no internet is needed. Blender is only needed for the photoreal path.
Run the dependency-free smoke test once when a machine is new. It proves Chrome, WebGL and ffmpeg all work, so any later problem is in the scene and not the setup:
node <skill-dir>/scripts/render.mjs <skill-dir>/templates/smoke-test.html --out smoke.mp4 --duration 2 --width 640 --height 360
templates/starter/ into the working directory (cp -r) and edit index.html.
It already has the renderer, tone mapping, studio reflections, bloom, shadows, seeded particles, a camera path,
an HTML title overlay and the timeline hook. Replace the hero object, palette, camera path and text; keep the plumbing.--check first to confirm WebGL,
window.__ready, window.seek(t), and zero console/network errors without encoding, then render a handful of
frames at the busiest moments as one contact sheet:
node <skill-dir>/scripts/render.mjs my-video/index.html --check
node <skill-dir>/scripts/render.mjs my-video/index.html --stills 0,2,4,6,7.5 --sheet --out my-video/stills
Read only sheet.png (all stills in one image, labelled with their times): it costs far fewer tokens than five
full-size PNGs. Open a single full-size still from the same folder only to judge fine detail such as small text.
Fix composition, exposure, colour and text legibility here. A still takes a second or two; a full render takes minutes.node <skill-dir>/scripts/render.mjs my-video/index.html --out my-video/video.mp4 --width 1920 --height 1080 --fps 30 --scale 2
--scale 2 renders at 2x and downsamples, which removes shimmering edges (worth it for the final render only).
Final-render extras: --blur 8 for motion blur on fast moves (multiplies render time by 8), --workers 4 to split the
frames over parallel Chrome instances (use about as many as CPU cores, mainly helps without a GPU).
Long renders belong in the background with progress polled, so the user is never left staring at a silent terminal.ffprobe for duration, size and fps; pull two or three frames out of the MP4
(ffmpeg -ss 3 -i video.mp4 -frames:v 1 check.png) and look at them. Then hand over the MP4 plus the scene
folder so the user can tweak it.--start/--end to re-render only a range while iterating on one moment.t seconds, set inside update(t). No Math.random() (use the
seeded rng()), no Date.now(), no clock.getDelta(), no accumulating state between frames. The renderer may
call seek with any time in any order, and a preview in the browser must match the video exactly.window.seek(t) (draw synchronously), window.__duration (seconds) and
window.__ready = true once assets are loaded. installTimeline() in lib/stage.js does all three. Details in
references/contract.md.new THREE.Color(hex).multiplyScalar(3..6); ordinary surfaces stay below the threshold.update(t).await before setting __ready (GLTF models, textures, fonts). A frame rendered before an
asset arrives is a permanent glitch in the video.references/cinematography.md has the recipes for camera moves, pacing, easing, lighting and colour.Multi-scene videos, soundtracks and music-reactive scenes (--audio, audio(t)), transparent video (--alpha) and
GIF/WebM copies: read references/formats.md. Never re-render for a format change; re-encode the finished MP4.
Only when the brief needs what a real-time engine cannot fake: path-traced glass and caustics, volumetric light,
subsurface skin, fluid/cloth/smoke simulation, fully photoreal product shots. Much slower per frame; see references/blender.md.
| File | Read it when |
|---|---|
references/contract.md | writing a scene from scratch, loading models/textures, or debugging "never set __ready" |
references/cinematography.md | making the result look good: camera, light, materials, easing, pacing, colour, text, particles |
references/formats.md | several scenes in one video, audio or music-reactive scenes, transparent video, GIF/WebM copies |
references/troubleshooting.md | black frames, slow renders, CDN/offline setup, Windows/macOS/Linux quirks, odd sizes |
references/blender.md | photoreal or simulation work |
examples/title-reveal/index.html | logo or title reveals, intros and outros: emblem turn-in, sparks, title fade |
examples/product-turntable/index.html | product showcases: turntable spin, studio light, reflective floor, side title |
examples/fly-through/index.html | camera fly-throughs, tunnels and travel shots along a path |
examples/audio-reactive/index.html | music videos and anything that pulses with --audio |
scripts/render.mjs | all options: node scripts/render.mjs --help |
The examples load the starter's lib/ and Three.js from ../../templates/starter/, so in place they render from the
skill folder with --root .. To use one outside this repository, copy templates/starter/, replace its index.html with the example's and change every ../../templates/starter/ in it to ./.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
three-js, 3d-animation, motion-graphics, video-generation, ffmpeg, blender
/cinematic-3d-video:cinematic-3d-videofrom cinematic-3d-video
npx claudepluginhub cumalibilgic/cinematic-3d-video --plugin cinematic-3d-videoOther plugins' skills for the same job