/bbn-video-studio:short-ex-3dfrom bbn-video-studio
Creates vertical 9:16 3D explainer shorts (45-90s) using Blender EEVEE and three.js overlays. Handles scriptwriting, voice narration, music, SFX, and captioning. Thai by default. Useful for TikTok/Reels/Shorts explainer videos.
Ships in bbn-video-studio. 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.
Use this skill for short vertical 3D videos. For chaptered explanations or longer lessons, use the sibling
long-ex skill; its timing and output contract are separate from this short-form engine.
Proven on three Thai shorts (~45 s each): a neutral ChatGPT/Claude/Gemini product film, a mascot adventure
("where does your message go?") and a privacy explainer. examples/ holds the first two (scripts, briefs, worker
specs, Blender scripts, stills) — read them for the quality bar before writing your own.
topic ─► script (hook-first, length by content) ─► narrator voice ─► VO lines ─► whisper check ─► assemble ─► cues
└─► logos/props (Blender) ─► brief + worker specs ─► parallel subagents (EEVEE plates + three.js)
music bed + SFX mix ─► render ─► contact-sheet check ─► ~/Downloads (.mp4 + .txt caption)
ref/facts.md); hedge what the sources hedge.BBN_VOICE_KIT is set, else open-source TTS with a
designed voice. Never clone a real person's voice without their written consent.VO_TEMPO 1.0 and the assembler's natural pauses. Line 1 speaks the hook at t≈0.1 s: no intro, no logo sting. Last line = next-episode teaser +
"กดติดตาม" (or the language's follow CTA).blender/bridge.py): one
headless Blender per machine, never the Blender app, never one Blender per worker (parallel launches crash GPU
kernel compiles).pgrep -fl "music.py|render.mjs|vo.py|design.py" and wait for anything already running.login popup (macOS Keychain / Windows DPAPI) or env vars; never in project files or chat. Reply in the user's language, short. No commits unless asked.$SKILL = this skill's folder (the base directory shown when the skill loads); every other command runs from the
project folder.
"$SKILL"/scripts/setup.sh # uv venv with voxcpm, mlx-whisper, soundfile, librosa → prints `export PY=...`
"$SKILL"/scripts/doctor.sh # Blender 5+, Chrome, node 22.12+, ffmpeg, the Python env, ACE-Step (optional)
Tested on Apple Silicon macOS with Blender 5.2 (seq_lib needs 5.x) (mlx-whisper is Apple-only). $BLENDER / $CHROME override the
default app paths. First voice run downloads VoxCPM2 (~5 GB) from Hugging Face.
"$SKILL"/scripts/new_story.sh <dir> && cd <dir> # copies template/, npm install
Layout: song/ (lyrics.txt, scenes.json, voice/design.py + narrator.wav, myvoice/vo.py, vo/assemble.py), blender/
(bridge.py, run.py, seq_lib.py, logos.py, mascot.py), music/ (caption.txt), sfx/ (synthesised wavs, mix.py),
video/ (Vite + three.js 1080×1920 engine: captions, film pass, bloom, seq.ts, render.mjs, cues.mjs), brief.md
(worker brief to fill in), ref/logos/*.svg.
song/lyrics.txt5 sections × 2 lines ([hook] [a] [b] [c] [outro]; unique lowercase a–z0–9 names, they become the line ids
hook-1, hook-2, … in vo.py, assemble.py, cues.mjs, scenes.json and mix.py). *word* = yellow caption keyword.
* and
newlines): ~750 characters ≈ 80 s. Write full, easy sentences (sections may have 2–3 lines); measure after
assemble. Too thin → add substance (a sourced number, a comparison, what it means for the viewer). Never speed the
voice up to fit a length.word_timestamps=True on song/vo.wav).
song/scenes.json maps each scene id to its first line. Loanwords get a spoken spelling in
SAY (vo.py): ChatGPT→แชตจีพีที, Claude→คล็อด, AI→เอไอ; digits are spelled out by spoken().song/voice/narrator.wav is a ready designed narrator (young Thai male tech creator) with its PROMPT_TEXT in vo.py.
For a new narrator: edit DESC in design.py, $PY song/voice/design.py → cand_*.wav; listen, and whisper them
($PY -c "import mlx_whisper,sys;[print(f,mlx_whisper.transcribe(f,path_or_hf_repo='mlx-community/whisper-large-v3-turbo',language='th')['text']) for f in sys.argv[1:]]" song/voice/cand_*.wav);
pick clear words, lively pitch, ~5 syl/s; copy it to narrator.wav and set PROMPT_TEXT to the words it says.
$PY song/myvoice/vo.py a # one wav per line: song/vo/<id>_a.wav (vo.py a --print: the spoken text)
$PY "$SKILL"/scripts/vocheck.py . # whisper ratio per line; Latin words lower it, read the transcript
The seed is fixed, so a retake needs changed wording and a new take letter: vo.py b hook-2 outro-1. Read the
whisper text of every keyword the viewer must repeat (the comment-gate word): a short word glued to the next one can
slur ("แกะแอป" came out "แก่แอป"; "แกะดูแอป" fixed it).
Owner's voice: export BBN_VOICE_KIT=~/agent-tools/bbn-voice-clone-kit before vo.py; every line is read by the kit
(OmniVoice) instead of the designed narrator.
Other languages: rewrite SAY/spoken() (Thai number words) and the DESC texts; VO_LANG=en for vocheck.
song/vo/assemble.py uses each line's latest take at natural pace (VO_TEMPO default 1.0; atempo, pitch kept).
Change it only when the user asks for a speed (VO_TEMPO=1.1). LEAD, SEC_GAP, LINE_GAP, TAIL = 0.1, 0.45, 0.25, 1.5;
inner pauses over 0.45 s shrink to 0.28 s. Tighter values (0.28→0.16 pauses, 1.30 tempo) sounded clipped and
rushed to the owner.
$PY song/vo/assemble.py && cd video && node tools/cues.mjs --align ../song/vo.timing.json --endcard 0
Write ref/lines.txt (per scene: start/end, frame count = ceil(duration × 30) + 1, line local starts) for the
workers. Captions wrap past ~24 Thai chars per phrase: add a space in lyrics.txt at a phrase break and re-run cues
(audio unchanged).
"${BLENDER:-/Applications/Blender.app/Contents/MacOS/Blender}" --background --factory-startup \
--python blender/bridge.py > blender/bridge.log 2>&1 & # wait for "bridge ready" in the log
python3 blender/run.py blender/logos.py -- $PWD preview # ref/logos/*.svg → video/public/logos/*.glb
Logos are not shipped: download each official SVG into ref/logos/ first (names in LOGOS, logos.py). Look at
video/out/logos_preview.jpg before anything else. The brands are listed twice: LOGOS in logos.py and
BRAND in props.ts (the page loads every GLB in it) — edit both together; a story without logos drops
await loadLogos() from main.ts. run.py loads seq_lib.py first (eevee, portrait_camera,
key, smooth_keys, render_range, cam_track, pbr, emission, world_fog; colours are 3-tuples), passes CLI args as
ARGS, and saves JSON printed between @@JSON/@@END to --json-out. Tracebacks show real file:line. Calls run
one at a time; keep each ≤ ~150 frames. BLENDER_BRIDGE_PORT changes the port (default 9878).
Shared three.js props live in video/src/props.ts (logo(), BRAND, mascot() from blender/mascot.py); add
the story's hero props there before launching workers.
Thai text only in three.js/DOM; Blender can't shape Thai.
Fill in brief.md (story, look, shared set grammar) and one spec per worker in workers/aN.md (1–2 scenes each:
set, hero beats at local times, camera moves, what to avoid). Launch every worker in ONE message with the Agent
tool (run_in_background: true), prompt: "Read
video/public/<scene>/seq/f_####.jpg + cam.json from cam_track(), three.js overlays
through Sequence / applyCam / bl() (seq.ts). Engine contract in video/src/types.ts: update() is a pure
function of the frame (rng(), not Math.random). Scenes without a file render as a "TODO" placeholder.
Review: tile their stills (ffmpeg -i a.png -i b.png -i c.png -filter_complex hstack=3 sheet.png), look, and send
concrete notes with SendMessage to that agent. Small fixes after a worker finishes: edit blender/<scene>_seq.py,
re-render only the affected frames, check with render.mjs --still.
Keep the bridge alive while workers render (it blocks everyone if it dies):
while true; do pgrep -f blender/bridge.py >/dev/null || { "${BLENDER:-/Applications/Blender.app/Contents/MacOS/Blender}" --background --factory-startup --python blender/bridge.py >> blender/bridge.log 2>&1 & sleep 40; }; sleep 15; done &
Review checklist (each caught a real problem): clipped white blobs (emissive panels, hot lights near the floor; the
stage bloom threshold is 0.72 and applies to the Blender plate too — keep white logos, brushed metal and mirror-like
clearcoats under ~0.65 luminance, measure plate frames with numpy, and cap additive opacity spikes),
unreadable text inside glowing rings, beams crossing labels, mirror-like cores reflecting area lights as "eyes",
one brand's mark alone on a neutral end card, badges clipped by the frame edge, frame 0 of a scene not composed.
Music bed: ask the user once and let them pick (never pick for them). Write music/caption.txt first (both use it):
"$SKILL"/../music-video/scripts/phaya_music.sh login once (popup asks for the key, saves it; no env).
music/lyrics.txt = [Instrumental] sends an instrumental request (prompt = caption, style = its first ≤100 chars).music/bed.wav (skip the generate line)."${ACESTEP_HOME:-$HOME/ACE-Step-1.5}"/.venv/bin/python "$SKILL"/scripts/music.py music --bpm 118 --key "D minor" --duration 48 --lang en --seeds 1,2 # 1
PHAYA_SONG_DIR=music "$SKILL"/../music-video/scripts/phaya_music.sh generate . "<slug> bed" # 2
ffmpeg -i music/take0.wav -af loudnorm=I=-18:TP=-2 music/bed.wav
python3 sfx/mix.py # VO + ducked bed + SFX → video/public/song.mp3
cd video && node tools/render.mjs --jobs 4 --out out/<slug>.mp4
Write music/caption.txt per story (mood, instruments, "no vocals"). Rewrite the SFX events in mix.py per story:
at(id, k) = k-fraction through a line, hits(scene, (sfx, t, gain), …) for the workers' scene-local hit times.
Check: frame 0 composed, a contact sheet of the MP4 (ffmpeg -i x.mp4 -vf fps=1/3,scale=270:-1,tile=6x3 sheet.png),
loudness ≈ -15 LUFS, no pageerror in the render log.
Film grain makes the master huge; ship a capped copy:
ffmpeg -i video/out/<slug>.mp4 -c:v libx264 -crf 18 -maxrate 16M -bufsize 32M -preset slow -c:a copy -movflags +faststart ~/Downloads/<slug>_<date>.mp4 + ~/Downloads/<slug>_<date>.txt (title, description, comment-gate ask, hashtags, sources, credits:
VoxCPM2 Voice Design TTS, Blender + three.js, the music source (ACE-Step / phaya / the track's licence), trademarks note). Stop the bridge:
pkill -f blender/bridge.py.
agents/openai.yaml (opens in a new tab)examples/ai-pick/a1.md (opens in a new tab)examples/ai-pick/a2.md (opens in a new tab)examples/ai-pick/a3.md (opens in a new tab)examples/ai-pick/blender/chatgpt_seq.py (opens in a new tab)examples/ai-pick/blender/claude_seq.py (opens in a new tab)examples/ai-pick/blender/gemini_seq.py (opens in a new tab)examples/ai-pick/blender/hook_seq.py (opens in a new tab)examples/ai-pick/blender/outro_seq.py (opens in a new tab)examples/ai-pick/lines.txt (opens in a new tab)examples/ai-pick/lyrics.txt (opens in a new tab)examples/ai-pick/scenes/a1/ui.ts (opens in a new tab)examples/ai-pick/scenes/a2/kit.ts (opens in a new tab)examples/ai-pick/scenes/a2/voice.ts (opens in a new tab)examples/ai-pick/scenes/chatgpt.ts (opens in a new tab)examples/ai-pick/scenes/claude.ts (opens in a new tab)examples/ai-pick/scenes/gemini.ts (opens in a new tab)examples/ai-pick/scenes/hook.ts (opens in a new tab)examples/ai-pick/scenes/outro.ts (opens in a new tab)examples/ai-pick/stills/chatgpt_2.jpg (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3d-animation, blender, explainer-video, short-video, tts, video-production
3 skills in this plugin
/long-exCreate chaptered explanatory videos and longer narrated lessons: research, script, shared visual direction, narration and caption timing, scene production and final MP4 assembly. Coordinate HyperFrames, onetake, gbro-collage-broll, Claude Animation Base and Lemo-Opuscar as distinct optional external workflows, with availability, license and cost checks. Thai by default; default 1–5 minutes, 16:9, 1920×1080 at 24 fps. Use for long explainers, educational videos, ทำวิดีโออธิบายยาว and บทเรียนหลายบท. For vertical 3D shorts up to 45 seconds, use short-ex-3d instead./music-videoMake an original AI music video end to end: write a song (Thai by default, any language works), generate it with the engine the user picks (open-source ACE-Step 1.5 locally, free; or the phaya API, paid, phaya.io), build a three.js + TypeScript kinetic-typography MV synced to the vocal, render a 1080p MP4 and save it to ~/Downloads. It can study a reference music video (YouTube link) and create a "sister" piece that copies its craft and structure but never its lyrics, melody, imagery or palette. Use this whenever the user wants to make a song, MV, music video, lyric video, satirical/office song, "ทำเพลง", "แต่งเพลง", "ทำ MV", "มิวสิกวิดีโอ", "เพลงล้อเลียน", pastes a music-video link and says recreate / mimic / "ทำแบบนี้แต่ไม่เหมือน" / "extract and recreate", or asks for another song like รับทราบครับ (Noted) or LGTM. Also use it to re-time, edit scenes of, or re-render an existing music-video project (folders song/ + video/ with tools/render.mjs).npx claudepluginhub boom-vitt/bbn-video-studio --plugin bbn-video-studioOther plugins' skills for the same job