/bbn-video-studio:music-videofrom bbn-video-studio
Creates an original AI music video end-to-end: writes a song (Thai by default), generates audio via ACE-Step or phaya API, builds a three.js + TypeScript kinetic-typography video synced to vocals, and renders a 1080p MP4. Can study a reference YouTube video to create a structurally similar but original sister piece.
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.
Pipeline proven on "รับทราบครับ (Noted)" (Thai nu-disco, 3:45, 21 scenes); see examples/noted/cover.jpg and
overview.jpg for the quality bar.
reference URL ─► analyze ─► concept + lyrics ─► song: ACE-Step or phaya, user's pick (2 takes) ─► align + verify timing
└─► scaffold engine ─► first scene (you) ─► other scenes (workers) ─► render ─► ~/Downloads
Lyrics/scenes are keyed to line ids, not seconds, so the video can be built on a 120 BPM placeholder grid while the song is generating (or blocked) and re-timed afterwards with no scene edits.
yt-dlp, ffmpeg, node, Google Chrome, Apple-silicon Python (mlx-whisper). $SKILL = this skill's folder (the
base directory shown when it loads).
Song engine: the user's choice. Before step 3, ask once (in the user's language) and let them pick; never pick for them:
[ -d "${ACESTEP_HOME:-$HOME/ACE-Step-1.5}/.venv" ]."$SKILL"/scripts/phaya_music.sh login yourself (Bash timeout 330000 ms). A popup (macOS dialog / Windows
credential box) asks for the key with hidden input, checks it with phaya and saves it for this user (macOS
Keychain / DPAPI-encrypted in %APPDATA% on Windows): asked once, never in the chat or a project file. Never ask
them to paste the key in chat. Alternatives: the phaya connector in Claude (MCP), or PHAYA_API_KEY (overrides
the saved key). Check: scripts/phaya_music.sh balance or mcp__claude_ai_phaya__get_balance; forget:
scripts/phaya_music.sh logout. Details in references/phaya.md.
If neither is ready yet, tell them what each needs and keep building on the 120 BPM grid; swap the song in later.scripts/analyze_reference.sh <url> <scratch>/ref [lang]
Read metadata.txt, transcript.txt and every sheets/sheet_*.jpg. Write down the section skeleton (function of
each part, its device, timings) and the visual craft (type treatment, UI mockups, 3D props, palette, cutting rhythm).
Tell the user in a few words what you found.
references/songwriting.mdNew story, new local hook, same skeleton. Write song/lyrics.txt (≤ 2000 chars, section tags) and song/style.txt
(≤ 100 chars). Get one sign-off (concept line + chorus preview), then go.
Generate 2 takes as early as possible; keep building while it renders. Takes land in song/take{0,1}.wav.
Local (free, one heavy job at a time): "${ACESTEP_HOME:-$HOME/ACE-Step-1.5}"/.venv/bin/python "$SKILL"/../short-ex-3d/scripts/music.py song --bpm <bpm> --key "<key>" --duration <s> --lang th --seeds 1,2
(reads song/lyrics.txt + song/style.txt). phaya (references/phaya.md): MCP generate_music, or REST
scripts/phaya_music.sh generate <project> "<title>" f V5; 3 credits for 2 takes, key from login (or PHAYA_API_KEY).
references/engine.md"$SKILL"/scripts/new_project.sh <project-dir> # copies template/, npm install, shared whisper venv
cd <project-dir>/video && node tools/cues.mjs # grid timing until the song is aligned
Re-theme for this song: C.accent + ink/paper tones in kit.ts (scenes reference C.accent, never a named hue),
mascot pixel map in mascot.ts (# body, o eyes, * glowing sparkle pixels), loanwords in type.ts KEEP.
Write song/scenes.json (→ references/scenes.md).
references/scenes.mdWrite the first scene yourself (title card with the mascot at frame 0, then a fast dive into the song). Fan the rest
out to Claude Code subagents (Agent tool, all launched in one message, run_in_background: true) with the brief and spec templates; ask for a draft of every scene first, 2 stills per scene/variant, report in ~15 min; review their stills as tiled
images and send concrete feedback. examples/noted/scenes/*.ts show what a finished set looks like — read one or two
for the bar, don't copy their imagery into a new song.
references/timing.mdAlign both takes, pick the better one, verify every line start with clip transcriptions, lock
song/<take>.timing.json, node tools/cues.mjs --align …. Whisper alone is not good enough on sung Thai.
ffmpeg -v error -y -i ../song/<take>.wav -b:a 320k public/song.mp3
node tools/render.mjs --jobs 4 --out out/<slug>-mv_$(date +%F).mp4
scripts/contact_sheet.sh out/<slug>-mv_*.mp4 <scratch>/review # read every sheet
Check: frame 0 fully composed; ~12 frames at known sung moments show the matching line; no pageerror; audio present
(ffmpeg -i … -af volumedetect -f null -). Copy to ~/Downloads/ and open it. Give the user the title + a short
description in their language (format in songwriting.md §6). Don't commit unless asked.
examples/noted/cover.jpg (opens in a new tab)examples/noted/overview.jpg (opens in a new tab)examples/noted/scenes/bot-reply.ts (opens in a new tab)examples/noted/scenes/chorus-bubbles.ts (opens in a new tab)examples/noted/scenes/chorus-forward.ts (opens in a new tab)examples/noted/scenes/evidence.ts (opens in a new tab)examples/noted/scenes/intro-chat.ts (opens in a new tab)examples/noted/scenes/legal.ts (opens in a new tab)examples/noted/scenes/letter.ts (opens in a new tab)examples/noted/scenes/lights-out.ts (opens in a new tab)examples/noted/scenes/meeting.ts (opens in a new tab)examples/noted/scenes/night-bot.ts (opens in a new tab)examples/noted/scenes/outro.ts (opens in a new tab)examples/noted/scenes/page47.ts (opens in a new tab)examples/noted/scenes/pages.ts (opens in a new tab)examples/noted/scenes/recursion.ts (opens in a new tab)examples/noted/scenes/seen.ts (opens in a new tab)examples/noted/scenes/seminar.ts (opens in a new tab)examples/noted/scenes/shrink.ts (opens in a new tab)examples/noted/scenes/thumb.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./short-ex-3dMake a vertical (9:16, 1080×1920) 3D explainer short (≈45–90 s, length by content) end to end from Claude Code: hook-first narrated script, narrated at natural pace (the owner's consented voice-clone kit when BBN_VOICE_KIT is set, else an open-source designed TTS narrator, VoxCPM2 Voice Design), photoreal Blender EEVEE scenes rendered through one shared headless Blender bridge, three.js overlays locked to the Blender camera, real 3D brand logos from their SVGs, burned-in captions, music bed (user's pick: open-source ACE-Step or phaya API) + SFX, MP4 + post caption in ~/Downloads. Scenes are built in parallel by Claude Code subagents. Thai by default. Use for "ทำคลิปสั้นอธิบาย", "ทำวิดีโอ 3D", "explainer video", "Blender animation", TikTok/Reels/Shorts explainers.npx claudepluginhub boom-vitt/bbn-video-studio --plugin bbn-video-studioOther plugins' skills for the same job