Communitygithub.com

vcut

Data-driven programmatic video production workflow using the local `vcut` CLI (Remotion 4 engine). Use whenever the user asks to turn a script, voiceover MP3/SRT, or topic into a 1080p landscape (16:9) or portrait (9:16) tech/editorial motion-graphics video, or mentions `vcut`.

What is vcut?

vcut is a Gemini CLI agent skill that data-driven programmatic video production workflow using the local `vcut` CLI (Remotion 4 engine). Use whenever the user asks to turn a script, voiceover MP3/SRT, or topic into a 1080p landscape (16:9) or portrait (9:16) tech/editorial motion-graphics video, or mentions `vcut`.

Works with~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/zmotong/vcut/tree/HEAD

Ask in your favorite AI

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

Documentation

vcut — Programmatic Video Production Skill

Use the globally linked vcut CLI (install from package root via npm install && npm link) to generate 1080p MP4 videos directly from declarative episode.json files + voiceover .mp3 + .srt.

Standard Production Workflow

  1. Check inputs:
    • If the user provides an audio .mp3 and .srt, read the .srt timestamps first so every scene startSec/endSec locks to natural sentence boundaries.
    • If the user only provides a text script without audio, run vcut tts script.txt -o ./audio (uses edge-tts if installed, or macOS say for draft timing, or --engine cmd for custom TTS).
  2. Design episode.json:
    • Run vcut catalog if you need to refresh the exact 9 scene block schemas.
    • Pick diverse scene types that match the spoken content (never repeat the same layout for 3 consecutive segments unless doing a deliberate numbered series like Tool 01/02/03).
    • Keep text punchy (short titles, concise card copy); let the voiceover + SRT subtitles carry full sentences.
    • Choose meta.aspect: "9x16" for Douyin/Shorts/Reels (default speed: 1.2 for punchy retention), "16x9" for Bilibili/YouTube.
    • Choose meta.theme: "obsidian-gold" (default tech luxury), "cyber-cyan" (developer/AI), or "editorial-light" (clean white magazine).
    • Populate audio.subtitleHighlights with 15–35 key terms/numbers from the script so subtitles automatically highlight them in gold.
    • Optional Flow / B-roll hybrid: pass clipSrc: "./clips/xxx.mp4" or { src, startFromSec, endAtSec, playbackRate, volume, muted, fit } in any scene's props to layer real video behind motion graphics (playbackRate defaults to global speed).
    • Use meta.durationPolicy ("max" default, "strict" for CI/batch fail-fast, "audio", or "scenes") to avoid silent truncation.
  3. Validate & Visually Inspect:
    • Run vcut validate <episode.json> to verify schema and media paths.
    • Render 1–2 representative stills (vcut render <episode.json> --still 600 -o /tmp/check.png) and inspect with read_file to ensure zero text overflow before rendering the full MP4.
  4. Render Final 1080p MP4:
    • Run vcut render <episode.json> --aspect 9x16 --speed 1.2 -o out/video.mp4 (or 16x9).
    • Note: vcut automatically handles pitch-preserved ffmpeg atempo speed scaling, frame calculation, SRT timestamp scaling, ambient BGM fade, and automatic frame-locked SFX cues.
    • Verify the resulting MP4 with ffprobe and present a clickable file:// link.

9 Built-in Scene Blocks

typeBest Used ForKey props
hero-switchOpening hook: switching from old tool/habit to new onebadge, fromLabel, fromSub, toLabel, toSub, teaseText?, switchAtSec?, teaseAtSec?
checklist-stamp3–4 step setup / checklist + impact stamp revealeyebrow, heading, items[{step,title,detail,checkAtSec}], stampText?, stampSub?, stampAtSec?
myth-busterDebunking 2 common misconceptions with red strike-through + punchlinepriceBadge, heading, cards[2], strikeAtSec, verdictPrefix, verdictHighlight, verdictAtSec
feature-spotlightDeep-dive into a product/tool (chapter slate + 2×2 cards + optional wave/pills)chapterNum, chapterTag, toolName, subtitle, accent?, showChapterSlate?, metaPill?, warningPill?, showAudioWave?, features[]
ecosystem-mapBig-picture 3-floor architecture / multi-perk panoramic mapeyebrow, heading, markerLabel, foundationTitle, foundationSub, floors[{floor,title,sub,en,rooms[{id,name,en,badge,activateAtSec}]}]
rolling-counterGiant italic rolling number (price, revenue, multiplier, quota) + captioneyebrow?, title, startValue?, endValue, decimals?, prefix?, unit?, caption?, captionAtSec?, subStats?, accent?
bar-chartVertical or horizontal data comparison + highlighted bar + source footnoteeyebrow?, title, unit?, orientation?, items[{label,value,displayValue?,highlight?}], highlightAtSec?, calloutText?, footnote?
quote-codemode:"quote" gold manifesto board OR mode:"code" BEFORE vs AFTER terminal diffmode:"quote": lines[], highlightLineIndex?, author?, source? / mode:"code": title, leftTitle, leftCode, rightTitle, rightCode, focusRightAtSec?, verdict?
outro-ctaDouble-line closing manifesto + pinned resource card + next-episode hookline1, line2, ctaAtSec, pinBadge?, pinTitle, pinItems[], nextTitle, nextTopic, nextSub?

Reference Example

See examples/gemini-pro-94s.episode.json in the vcut package for a complete production episode spec.

Related Skills