Communitygithub.com

Vox Collage Science Shorts

A workflow that transforms a popular science topic into a Vox-style collage video: research authoritative sources, write a conversational voiceover script with strong hooks and a deep ending, generate voiceover with expressive TTS, then assemble a 16:9 horizontal video with black-card A-roll and pinned real-material B-roll.

What is Vox Collage Science Shorts?

This AI agent skill automates the creation of Vox-style science explainer videos from a single topic prompt. It starts by fetching authoritative sources (NASA, Wikimedia Commons, official press releases) using web search, then writes a conversational voiceover script with strong hooks, rhetorical questions, and a reflective ending—strictly 400–430 characters. The agent generates expressive TTS audio via Doubao with mood cues, adjusts pacing, and produces SRT subtitles. It then builds the full video in Remotion Studio using a `VoxShow` template: A-roll is black cards with large yellow text and red underlines; B-roll is real footage pinned onto a paper desktop with labels, stamps, and annotations. The workflow adds a 124 BPM electronic soundtrack with sidechain breathing, snap transitions, and impact hits at key moments. The entire process runs hands‑off until the final preview, where the user can confirm before export. It supports platforms like Claude Code and Cursor, and is ideal for developers and creators who want to produce polished, fact‑based science videos with minimal manual editing.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Azure12355/weilanx-claude-videos/tree/HEAD/.claude/skills/weilanx-creator-vox-video

Ask in your favorite AI

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

Documentation

A Science Topic → One Vox-Style Collage Science Video

Reference episode: ep21-nobel-physics (2026 Nobel Prize in Physics: Trapping Neutrinos Under Antarctic Ice). The effect the user liked in that episode: the voiceover sounds like a conversation, has a strong hook at the beginning and a lingering ending; black-card text and real footage alternate with hard cuts; the music has rhythm and follows the editing.

Work through steps 0–8 in one go, without waiting for user confirmation in between. After each step, give a one‑sentence progress update. Do not export or commit to git unless the user explicitly asks. Before you start, read CLAUDE.md and src/library/README.md in the project root. Prefix all npm / npx / node commands with export NODE_OPTIONS=--max-old-space-size=4096.

Dependencies (open‑source notes)

The voiceover and subtitle steps use the author's private tools, which are not included in the repository:

  • Voiceover: scripts/tts_expressive.py requires a Doubao speech synthesis wrapper module. Use environment variable DOUBAO_VOICE_PY to point to it and DOUBAO_TTS_SPEAKER_ID to specify the cloned voice (see script header). If you don't use Doubao, replace it with any TTS that can output MP3, or use a real recording.
  • Subtitles: The weilanx-doubao-voice-srt mentioned in Step 5 is the author's private skill. Replace it with any speech‑to‑text tool that can output SRT.
  • All other steps (research, media search via commons.py, rendering, music) are in the repository.

Specifications

ItemDefault
Aspect ratioWidescreen 16:9 (1920×1080), VoxShow skeleton, no host
Duration~1 minute (script 400–430 characters, voiceover 58–63 seconds); use user's duration if specified
A-rollBlack card with large text (BlackCard)
B-rollReal footage pinned on a desktop (VoxFootage): videos, photos, official illustrations
VoiceoverDoubao cloned voice + mood cues + speaking rate +30; no post‑1.2× speed‑up
Music124 BPM electronic rhythm, sidechain pumping, heavy hits on cuts, level 0.071 (sits under the voice)
Cover16:9 first frame + 3:4 vertical version

0. Determine episode number and directories

  • Episode number: take the next number after the largest in src/episodes/. Work ID: epNN-shortEnglishName, hereafter <ep>.
  • Code in src/episodes/<ep>/, footage in public/footage/<ep>/ (not committed to git), audio in public/audio/<ep>/, raw materials and script in materials/<ep>/.
  • Add one row to the "Done" table in materials/topicCandidatePool.md with status 🎬.

1. Research: only authoritative sources

  • Use WebSearch to look up the topic; prioritize primary sources: official press releases (e.g., nobelprize.org's press‑release / popular‑information), NASA, institutional websites, top journals; news media only for cross‑checking.
  • If WebFetch returns 403 on an official website, use curl -A "Mozilla/5.0 ..." to fetch the page, then use Python to strip tags and extract the body.
  • Record every number, year, claim, and its source in materials/<ep>/research.md. Do not include uncertain claims (e.g., absolute statements like "the first time…" must be verified).

2. Find real footage (B‑roll foundation)

See references/media.md for details. Key points:

  • Source priority: NASA / U.S. government agencies (public domain) > Wikimedia Commons (CC0 / CC BY / CC BY‑SA) > official press release illustrations (check terms, usually "free for non‑commercial, needs attribution"). Do not use images from unknown sources; do not rip YouTube videos.
  • Use scripts/commons.py search / info / get to search, check licensing and the real author (Artist field, not the uploader's username), and download originals.
  • For videos, first extract one frame every 5 seconds to build a contact sheet, select segments to use, then extract one frame per second around the target to confirm the exact content, then cut to 720p H.264 clips (-an -vf scale=1280:720,fps=30 -c:v libx264 -crf 20 -pix_fmt yuv420p -movflags +faststart).
  • Shrink large images with sips -Z 1800; place everything in public/footage/<ep>/.
  • Write each footage item's filename, content, author, and license into materials/<ep>/sourceList.md; on screen, each footage item has a note in the bottom‑left corner with "Author / License".

3. Write the voiceover script: like talking to a friend

See references/toneAndScript.md. Hard rules:

  • Strong hook: The first sentence pulls the viewer into the scene—use contrasts directly relevant to the viewer, like "Right now, as you hear these words…" or "You feel nothing at all, right?"
  • Add tone: Every 1–2 paragraphs include a conversational trigger—a question ("So how do you catch a ghost?"), a twist ("Sounds crazy, but they actually did it."), or a guide ("Think about it…").
  • Deep ending, no "OK that's it for this video": The last 2–3 sentences elevate from fact to meaning ("This Nobel Prize rewards not just an instrument, but a new way for humanity to see the universe—with eyes that don't need light."). The final sentence must be short and standalone.
  • 400–430 characters; numbers in Arabic digits (TTS reads them accurately), but rough numbers like "两千米" use Chinese characters; avoid colons, parentheses, and dashes.
  • Save the script as materials/<ep>/voiceoverScript.txt and display the full text and character count in your reply.

4. Voiceover: mood cues + model speaking rate

python3 .claude/skills/weilanx-creator-vox-video/scripts/tts_expressive.py \
  --text-file materials/<ep>/voiceoverScript.txt --output materials/<ep>/<ep>-voiceover-natural.mp3
  • Default mood cue: "Natural, relaxed, like a science communicator chatting with a friend, with variation in emphasis and pace; questions carry curiosity and tease; surprising moments carry awe; slower and reflective at the end; no announcer tone." Default rate: +30.
  • Do not use atempo=1.2: forced speed‑up makes the voice sound stiff; to make it faster, increase --rate or remove words.
  • Duration target: 58–63 seconds. If it's too long, first remove modifiers, then increase --rate to 35–40; if too short, do the opposite.
  • Measure with scripts/voice_stats.py (uv run --with numpy python ...): pitch range ≥15 semitones, about 40 pauses = acceptable. When comparing two versions, report the numbers to the user.
  • The user can only hear the audio themselves: keep the test audio and tell the user the file location.

5. Generate subtitles, process voice

  • Use the three scripts of weilanx-doubao-voice-srt to transcribe this mp3 (convert to 16kHz mono first), proofread against the script, each line 6–16 characters with one complete meaning, output materials/<ep>/subtitles.srt and subtitleScript.md. Record any discrepancies for the user to hear.
  • Voice processing: ebur128 measure loudness → volume=<gain>dB,alimiter=limit=0.8:level=false adjust to −16 LUFS (±0.5) → 48kHz stereo 16‑bit → public/audio/<ep>/voice.wav.
  • Leave room for the ending fade‑out: set VOICE_SECONDS in cues.ts to the end time of the last subtitle + ~2 seconds, and use apad=whole_dur=<VOICE_SECONDS> to pad voice.wav to the same length, so the music can fill the fade‑out.
  • Run npm run cues -- materials/<ep>/subtitles.srt src/episodes/<ep>/cues.json, then print the start and end frames for each subtitle (used later for shot layout).

6. Visuals: A‑roll black cards + B‑roll real footage, hard cuts on subtitles

See references/visuals.md, and copy the skeleton from src/episodes/ep21-nobel-physics/film.tsx. Core:

  • The whole video is a shot table SHOTS: {from, kind: 'A' | 'B', C}[]. Film renders only the current shot. All shots use hard cuts, with the cut point at the subtitle start (cf(n), up to 2–6 frames early).
  • A‑roll black cards hold the voiceover's "hook numbers, reveal nouns, questions, twists, conclusions": one card per sentence, font size 150–330, key words in yellow text + red hand‑drawn underline (do not use Highlight on black cards—it's invisible on a black background).
  • B‑roll is VoxFootage pinned to an old paper desktop (white border, two tape strips, attribution in the bottom‑left corner). The whole shot slowly zooms in 5%, accompanied by Vox annotations: Label black background label, IndexCard index card, PostIt sticky note, Stamp stamp, RedCircle red circle, HandLine hand‑drawn arrow / checkmark, handwritten red text.
  • Rhythm: cut every 2–4 seconds; alternate black cards and real footage—no more than three consecutive shots of the same type. For video clips, you must provide start (the global frame at which playback begins).
  • Abstract concepts get a hand‑drawn diagram (e.g., light blocked by dust, neutrinos passing straight through), with elements appearing step‑by‑step as the voiceover progresses.
  • Each shot gets a sound effect (paper for real footage, stamp for black card, ding for a number landing, magic for a reveal, question for a question).

7. Music: rhythmic, follows the editing

See references/music.md, and copy the code from audio/episodes/ep21-nobel-physics.mjs (using instruments from audio/score.mjs). Only run node audio/episodes/<ep>.mjs. Core:

  • Single 124 BPM beat grid from start to finish. Section transitions snap to the nearest bar line ( snapBar ) relative to the subtitle.
  • Four‑on‑floor kick, snare on beats 2 and 4, sixteenth‑note hi‑hat. Pads and square‑wave arpeggio do sidechain-style pumping (compress on each beat, release).
  • During explanatory sections, switch to half‑time. Leave a gap before the ending (e.g., when a turn phrase like "Think about it…" plays, use only pads), then build back up to a heavy hit on the last sentence, and let the music fade over the tail.
  • Before every cut to a black card, ramp up a 0.9‑second crescendo, and land a low‑frequency hit exactly on the cut. Pick 3–4 climax words (reveal, shocking number, conclusion) and add a crash cymbal + heavy hit.
  • level 0.071, depth 0.7; the whole track is about −32 to −34 LUFS. Only adjust globally if the user wants the rhythm more prominent.

8. Cover, copy, preview

  • Write src/episodes/<ep>/Cover.tsx: a 16:9 first‑frame cover (black‑card title on the left + two real footage items on the right + one sticker) and a 3:4 vertical cover. Register <ep>-cover-tall as a Still in Root.tsx. Render and save as materials/<ep>/cover-16x9.png and cover-3x4.png (the export script will do this automatically).
  • Ep*.tsx uses VoxShow, with cover: {C, frames: start frame of first sentence − 5}, subY: 965, and keywords for the episode's highlight words. Mimic tests/episodes/ep21-nobel-physics.test.ts to add tests. npm run typecheck and npm test must pass.
  • Frame‑by‑frame check: render at least one frame per shot ( --scale=0.25, one frame at a time in order, wrap in bash -c loop). Assemble into a composite: check if videos are black, if text overlaps footage or subtitles, if elements attached to the last word of a sentence flash by, if the black‑card underline overlaps text.
  • Use dbs-xhs-title to generate 1 main title and 2 alternatives (note the formula number, ≤20 characters). The first sentence of the description is the hook, then a bullet list of key points, then sources and licenses, and finally a topic hashtag. Save as materials/<ep>/publishCopy.md.
  • Run lsof -i :3000 -sTCP:LISTEN to check if Studio is running. If not, start it in the background with npm run studio. Give the user the URL http://localhost:3000/<ep>, and report: full script text and character count, duration, voice loudness, tone stats, number of subtitle lines, shot table, music structure, footage licenses (especially any non‑commercial clauses), and factual/pronunciation items needing user confirmation. Remind the user that they can only judge the audio by listening.
  • After user confirmation, run npm run export -- <ep>. Check duration, 1920×1080, −16 LUFS, peak < −1 dBFS. Copy the final render to materials/<ep>/ and update the candidate pool status to ✅.

Pitfalls we've hit

  • In long NASA videos, the scene can change multiple times. After locating the approximate time with a 5‑second contact sheet, extract one frame per second around the target to confirm; otherwise the clip might be a black frame or a different scene.
  • Use Artist from Commons (the real author), not the uploader's username.
  • Elements attached via cw(n, 'word') at the end of a sentence can flash by invisibly: attach them to the beginning of the sentence with cf(n) + k, or delay the next cut by a few frames.
  • The start of a shot must match its from, otherwise the video will start playing mid‑clip.
  • The music length follows voice.wav, so you must pad voice.wav with silence to VOICE_SECONDS; otherwise the ending fade‑out will have no music.
  • For sentences like "Not just X, but Y", do not draw a strikethrough on X (it would be read as "not X"); simply dim X.

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

Azure12355/weilanx-claude-videos

「参考视频 → 新风格素材包」蒸馏工作流:把用户给的一支或多支参考视频逐镜头拆解(硬切、镜头表、关键帧、联系表、主色板与强调色、运动强度、动效切片、配乐卡点),提炼出配色、字体、版式、入场 / 转场 / 镜头运动、节奏和招牌画面这些「画面语法」,再在 weilanx-claude-videos 工程里从零写成一套可复用的 Remotion 风格素材包:src/library 下一个以风格 ID 命名的组件目录、一个 library- 开头的预览作品、styles/我的风格 下的风格配方卡,并登记进素材库目录和风格总表。用户说「蒸馏这个视频的风格」「把这几个视频的风格整理成一套素材」「一比一复刻这个视频的样式」「拆解这个视频的动效和画面」「照这个视频做一套新风格」,或者丢来参考视频(template/、Downloads 里的 mp4)想学它的样子时都用这个 skill;只想复刻单个动画片段、不需要进素材库的,也先用它做拆解。

Azure12355/weilanx-claude-videos

「暗金文献风纯音乐知识短片」工作流:给一个知识点(数学、经济、心理、科学、历史上的某个规律或冷知识),不配音、不找素材,只用代码画面 + 中英双语字幕 + 一首配乐,在 weilanx-claude-videos 工程里做成横屏 16:9 的 30~60 秒短片:近黑底、金色细线、衬线字,先找一个「锚词」,开头用第二人称写观众的处境,第一个高潮踩在配乐的「换气 + 重拍」上让锚词砸出来,结尾重新定义锚词并抛一个问题。最后打开 Remotion Studio 给用户预览,确认后再导出。用户说「做一期暗金风的」「像棋盘麦粒那期一样做一期」「用金色风格讲讲 XX」「做一条纯音乐的知识视频」「Vibe 知识视频」「不要口播,只要字幕和音乐」时都用这个 skill,即使没提「暗金」两个字,只要是无口播、靠画面和字幕讲一个知识点的短片也用它。

Azure12355/weilanx-claude-videos

“一个关键词出一期像素风口播动画”工作流。用户只给一个主题或关键词(比如“上下文是什么”“MCP”),就依次写口播稿、用复刻音色配音并加速 1.2 倍、转 SRT、在 weilanx-claude-videos 工程里新建一期(竖屏 3:4、首帧带封面)并剪好、写好发布文案(标题和描述),最后打开 Remotion Studio 给用户预览;用户确认后再导出,成片目录里同时带字幕稿和发布文案。用户说“做一期 XX”“用这个关键词出一期视频”“按工作流来”时使用。

Related Skills