Communitygithub.com

Azure12355/weilanx-claude-videos

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

weilanx-claude-videos 是什么?

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

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Azure12355/weilanx-claude-videos/tree/HEAD/.claude/skills/weilanx-creator-gilded-video

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

One Knowledge Point → One Dark-Gold Manuscript Vibe Knowledge Short

Reference sample: ep23-wheat-chessboard (Wheat on a Chessboard, 33.5 seconds). This is the episode the user approved: A glowing visual anchor in the first second; the anchor word "一点点" (a tiny bit) lands on the music's downbeat at 17.45 seconds; subtitle cards with measure lines, in Chinese and English; the end redefines the anchor word and throws out a question.

The methodology comes from a "Vibe Knowledge Video" account growth post-mortem (same prompt chain for three videos, data differed by an order of magnitude). Success comes down to four things: hooking the viewer in the opening, aligning the climax of music/visuals/text on the same frame, posing a question everyone has an answer to, and making transitions feel like one continuous long take. Every step below serves these four goals.

Finish steps 0-7 in one go; do not wait for user confirmation between steps. Sync progress with one or two sentences after each step. Do not export or commit to git unless the user specifically asks. Before starting, read the project root CLAUDE.md and src/library/README.md section on "Dark Gold Manuscript Style gilded/". Prepend export NODE_OPTIONS=--max-old-space-size=4096 to all npm/npx/node commands.

Specifications

ItemDefault
VisualsLandscape 16:9 (1920×1080, 30fps), Dark Gold Manuscript Style (src/library/gilded/), independent components, not via Show
Duration30~60 seconds, following the music's phrasing; use user-given duration if provided
VoiceoverNone. Subtitles are the narration: one line of Chinese + one line of English italic per screen
MusicUse music library public/music/ (cutMusic in audio/music.mjs), start at second 0, loudness −16 LUFS
Sound EffectsOne layer of very light noise + 5~8 spots: downbeat impact, key transitions, key conclusions, ending

0. Determine Episode Number and Directories

  • Episode number: take the largest number in src/episodes/ and increment by one. Work ID: epNN-EnglishShortName. Denote below as <ep>.
  • Code: src/episodes/<ep>/ (timeline.ts + Ep*.tsx), audio public/audio/<ep>/ (not in git), music script audio/episodes/<ep>.mjs, tests tests/episodes/<ep>.test.ts.

1. Select Music, Measure Beat Points

Music first, because the entire video's time structure grows from the music.

  • Default: use a track from the music library (see public/music/README.md for track list). If the user specifies a new track, first put it in public/music/, then add one line to TRACKS in audio/music.mjs and one line to the README.
  • Run the beat detection script to get the attack time, bar length, and first "take a breath + downbeat":
    uv run --with numpy python .claude/skills/weilanx-creator-gilded-video/scripts/beats.py public/music/<track>.mp3 --to 40
    
    If the BPM is clearly off by half or 1.5x, use --bpm LO HI to narrow the range and re-run. The script uses "attack to downbeat is an integer number of bars" to reverse-engineer the precise bar length. Use the refined bar length, not the raw autocorrelation BPM (2% error drifts 0.3 seconds in 8 bars).
  • Write the result into the note in TRACKS. we-never's data: attack 0.36s, one bar 2.136s, first downbeat 17.45s (measure 8).
  • See references/配乐与卡点.md for details.

2. Find the Anchor Word, Write Subtitles

See references/叙事与字幕.md for details. Core:

  • Find the anchor word before writing any subtitles. 2~4 Chinese characters that capture how this knowledge point feels in an ordinary person's life—not a term itself (exponential growth → "一点点 / a tiny bit", sunk cost → "舍不得 / reluctant to let go", survivor bias → "看不见的人 / invisible people"). A good anchor word makes the viewer think "that's me", can encapsulate the entire principle with one word, and can be redefined at the end.
  • Hook segment (from attack to before the downbeat): First sentence uses second person to describe the paradox the viewer is experiencing. Middle sentences let the phenomenon unfold gradually. The sentence right before the downbeat only says half of it, ending with "—", leaving the anchor word to complete it.
  • Downbeat: The anchor word itself is the subtitle at that moment; no separate subtitle overlay. After 0.6 seconds, float up "Term · English" in a smaller font below.
  • After the climax: Explain the principle, people, numbers. You can use one more smaller-scale explosion point (max two per video), again using the "half-sentence → large word completes it" pattern.
  • Ending: One sentence redefining the anchor word; the final sentence poses a question that relates to the viewer and everyone has their own answer (ending with "?").
  • Each Chinese subtitle ≤ 18 characters. English is a paraphrase, not a word-for-word translation. Each line starts at a measure line and lasts 1~2 measures.
  • Verify every year, name, number, and quotation in the video. For estimated numbers, write the estimation scope in small text on screen (ep23: "Estimate: each wheat grain ≈ 0.05g...").

3. Write timeline.ts (The Single Timeline for the Whole Video)

Following the structure of src/episodes/ep23-wheat-chessboard/timeline.ts:

  • BAR, BAR0, barSec(k), fr(sec): bar grid.
  • HIT (first downbeat frame), HIT2 (optional second explosion point, take measure line), DARK_FROM (start dimming approximately 0.7s before the downbeat), FREEZE = 3 (freeze 3 frames before downbeat).
  • ANCHOR, TERM, CUES: [measureNumber, chinese, english][], SHOTS (shot segments, connecting end-to-end), SFX: [file, frame, volume][].
  • Calculate numbers in the video using functions (BigInt for large numbers), verify in tests.

4. Create Visuals

See references/画面与转场.md for details. Key points:

  • The first second must have a visual anchor: a small glowing object (a grain of wheat, a coin, a red dot), eyes land on it immediately. Don't start from an empty screen or a slowly drawn line.
  • Transitions preferentially use the same element to connect before and after: zoom from a grain of wheat to the whole chessboard, shrink the chessboard to one side to make room for drawing a curve, shrink large text back to a grain of wheat. Use fade in/out only as backup.
  • That downbeat frame: before it, the overall screen dims to about 94% black; the last 3 frames freeze. On the downbeat frame, the glow suddenly brightens + the anchor word (occupying about 1/3 of the screen width) shrinks from 1.12x to 1x size + a halo expands outward from behind the word (Smash, already implemented in ep23).
  • Gentle rhythm: slow camera push/pull, elements fade in/out softly. No bounce, no rotation, no fast cuts.
  • Library components: GildedBg, Dust, Grain, GCaption (en parameter outputs English line, 【word】 turns gold), goldText, RedStamp, GoldTree, BellBars, GaltonBoard, RatioChart, DotField, GoldWheel, etc. Components specific to this episode are created in its own directory; components that can be reused go into src/library/gilded/ with a README update.

5. Music and Sound Effects

  • audio/episodes/<ep>.mjs: cutMusic({track, start: 0, duration, ep, fadeIn: 0.02, fadeOut: 2}), then generate episode-specific impact SFX and noise (copy ep23's script, cap impact peak at about −6 dBFS, otherwise they will clip when layered on music). Run node audio/episodes/<ep>.mjs.
  • Shared SFX in public/audio/sfx/ (paper, whoosh, magic, ding, etc.), volume 0.15~0.25, do not compete with music.
  • If you cannot hear the sound, report honestly: only report the loudness and peak numbers; ask the user to confirm the subjective feel.

6. Register, Test, Frame-Sniff Self-Check

  • In src/Root.tsx, register <Composition id="<ep>" …>.
  • Tests follow tests/episodes/ep23-wheat-chessboard.test.ts: climax within 2 frames of the measured downbeat; subtitles increase by measure, within video length, Chinese ≤ 18 characters, each with English translation; anchor word appears at beginning and end; sentence before downbeat ends with "——"; last sentence ends with "?"; shot segments connect end-to-end; numbers verified.
  • npm run typecheck && npm test.
  • Frame sniff: check the 6 frames around the downbeat (at downbeat −1.15, −0.65, −0.45, −0.35, +0.05, +0.55 seconds), confirm "dim → freeze → burst". Then take one frame from each shot segment, check for overlapping text, going off-screen, unclear visibility. Render only one frame at a time (parallel rendering causes memory overflow):
    npx remotion still src/index.ts <ep> /tmp/<ep>/f.jpg --frame=N --scale=0.5 --timeout=120000
    

7. Preview, Wait for Confirmation Before Exporting

  • Open Studio (if already open, just give the link): http://localhost:3000/<ep>.
  • In the reply, provide: anchor word and all its positions; storyboard table (time | visual | transition | Chinese subtitle | English subtitle | SFX); music beat data; all numbers and claims that need verification; music license status.
  • After user confirms: npm run export -- <ep> → out/<ep>/<ep>.mp4. Report resolution, duration, overall loudness and peak.
  • Wrap up: add one line to the episode table in styles/我的风格/暗金文献风/README.md. Record which segment of music was used in public/music/README.md.

Release Reminder

  • If the music license hasn't been confirmed (e.g., we-never), this is a local demo only. Before public release, replace with a licensed track. After replacing, re-run step 1, adjust the grid and HIT in timeline.ts; the visuals will realign automatically.
  • When posting on Douyin (TikTok China), include hashtags like #Vibe知识大赏.

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

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

Azure12355/weilanx-claude-videos

「Vox 拼贴风科普短视频」工作流:给一个科普主题(新闻、诺奖、科学发现、科技事件),先上网查权威资料和可用的真实素材(NASA、Wikimedia Commons、官方新闻稿插图),写一份像聊天一样有语气、有强钩子和深度结尾的口播稿,用带语气提示的豆包复刻音色配音,再在 weilanx-claude-videos 工程里做成横屏 16:9 的 Vox 拼贴片:A-roll 是黑卡大字,B-roll 是钉在旧纸桌面上的真实视频和照片,按字幕硬切,配一条有律动的电子配乐。最后打开 Remotion Studio 给用户预览,确认后再导出。用户说「做一期 Vox 风格的科普」「用 Vox 风格讲讲 XX」「做一期 XX 的科普,要真实素材」「像诺奖那期一样做一期」时使用。

相关技能