versecut

agent
Security Audit
Pass
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 10 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Versecut (词镜) — Deterministic code-cinema MV Agent Skill for Claude Code & Codex. 11 native art styles, 14 physical transitions, real acoustic beat-sync & 4 QA gates.

README.md

Versecut — Turn every lyric into cinema, compiled in code.

简体中文文档  ·  11 Handcrafted Styles  ·  Cross-Style Transitions  ·  Quick Start  ·  Getting Started

Versecut CI Version 3.0.0 MIT License Zero Python / Zero Core npm 16:9 and 9:16 Claude Code and Codex


Versecut (词镜) is an open-source Agent Skill and deterministic code-cinema studio that turns songs with vocals and lyrics into film-grade, frame-addressable music videos — compiled directly from pure Node ESM, Chromium CDP, FFmpeg, and optional Remotion.

Vocal-first, never an instrumental visualizer. Every shot obeys Lyrics → Plain Meaning → Concrete Hero Action → Real Acoustic Beats → Dry-Vocal Master. Mute the subtitles, and an ordinary viewer should still understand what the protagonist is feeling and doing in 1 second.


Generational Leap: v2.0 → v3.0 Versecut

Versecut v2 to v3 Visual & Engineering Evolution

Dimension v2.0 Legacy (archive/v2-legacy-9c2a544) v3.0 Versecut (词镜)
Visual Craft 384×216 software pixel blocks & basic sprites 1920×1080 & 1080×1920 6-layer cinema optical stage + 11 generative art styles
Runtime Stack Python (Pillow/NumPy) + Node dual stack Pure Node.js ESM single stack — zero Python, zero core npm install
Beat Evidence Theoretical BPM grid mixed into sync audit Observed 10ms spectral onsets & dropouts strictly separated from theoretical grids; SHA-256 + offset bound
Audio Hygiene Basic mix without vocal-band isolation Byte-faithful dry-vocal master (±0.01 LU, 0ms measured AAC offset); opt-in 12-semitone harmonic foley ducks 300–3500 Hz
Layout & Safety Heuristic guesses Real Chromium DOM getBoundingClientRect() collision & safe-zone gate (both 16:9 & 9:16 Douyin/Reels)
Review Loop Manual screenshot checks 4 automated gates (Camera, Sync, Layout, Rhythm) + ≤7MB audible 720p proxy + 1:1 native evidence stills

11 Handcrafted Native Art Styles

Zero recycled stick-figure silhouettes. Every style renders bespoke expressive characters, authentic physical media texture, and its own diegetic subtitle container:

Versecut 11 Handcrafted Native Art Styles

# Style ID Aesthetic Direction Authentic Physical Craft Diegetic Lyric Carrier
01 editorial-paper Crayon & Watercolor Book Rough cotton paper, 12fps living line boil, wax-crayon hatching, crimson umbrella rainbow rain Soft watercolor mist hand-lettering
02 pixel-cinema Pixel Game RPG True 320×180 integer upscale, 32-color 4×4 Bayer dithering, 12fps RPG hero, HP/BOSS/COMBO HUD Navy/gold RPG dialogue + hero portrait
03 collage-stopmotion Paper Collage Picture Book Corkboard substrate, 5fps stop-motion, hand-cut paper dolls, washi-taped torn photos, lemon burst Torn lined notebook strip + sticky note
04 ink-vermilion Chinese Ink & Vermilion Five-tone wet Xuan ink, classical maiden silk sleeve, flying-white branches, bled vermilion blossoms Xuan negative-space calligraphy + seal
05 shadow-puppet Chinese Shadow Puppet Warm backlit linen screen, multiply translucent dyed-oxhide overlap, carved buyao beauty, rods Carved dark-wood gold theater plaque
06 papercraft-diorama Pop-Up Paper Book True foreground/background optical bokeh, brass-brad jointed puppets, monumental lotus, vinyl deck Die-cut cream pull-tab bookmark
07 risograph-zine Risograph Indie Zine Indigo / Fluorescent Pink / Yellow 3-ink misregistration, halftone beams, white knockout, fireworks Star-badge zine stamp + tri-ink offset
08 starlight-noir Starlight Twilight Cinema Volumetric twilight clouds, twin-tail comet, rim-lit anime profile, soft luminous city bokeh Translucent starlight glass aura
09 ukiyoe-woodblock Ukiyo-e Woodblock Print Looking-back kimono bijin, Hokusai curling Great Wave claws, snow-capped Fuji, Edo colophon Double-ruled Edo woodblock cartouche
10 rubber-hose-film 1930s Rubber Hose Film Pie-cut eyes, 4-finger white gloves, theater velvet curtains, pulsing brass gramophone, film scratches Silent-era double-border title card
11 one-line-kinetic One-Line & Kinetic Poetry Silky Catmull-Rom continuous single-line portrait, watercolor accents, sculptural breathing Kanji Minimalist exhibition typography

Cross-Style Physical Transitions

Assign shot.styleId per shot and connect different styles with 14 deterministic physical-medium transitions (transitionOut.type) — all composited in pure code with zero stock video overlays:

Versecut Cross-Style Physical Transitions Showcase

  • pixel-mosaic (diagonal Bayer pixel tile flip) · paper-tear (deckled white-pulp rip & peel) · ink-sweep (curved dry-brush wet ink sweep) · shadow-curtain (lamp flare & expanding puppet shadow) · popup-fold (3D cardstock page fold) · riso-roller (staggered Indigo/Pink/Yellow drum wipe) · watercolor-bloom (wet pigment burst) · baren-wipe (woodblock baren sweep) · iris-wipe (1930s circular iris) · light-leak (warm film exposure burn) · snow-gust (diagonal blizzard sweep) · dissolve · mist · cut.

Before rendering a full song, Versecut auditions 3 real stills and locks an explicit adopt / adapt / bypass style decision with the user.


Native 9:16 Portrait (Douyin / Reels Safe-Zone Verified)

Built-in mobile-first layout geometry (x: 108..972, y: 288..1540) guarantees effective lyric text height ≥ 96px (5% of 1920px frame height) with zero collision against protagonist faces, platform UI overlays, or camera zoom peaks:

Versecut 9:16 Portrait Douyin Safe-Zone Showcase


Architecture & Automated QA Gates

Versecut 6-Layer Optical Stage and Pipeline Architecture

  1. Camera Gate (camera-lint): Enforces C1 velocity continuity, hard bans Dutch-angle rotZ, caps PUNCH (≤ 3 total, ≥ 4s apart, amp ≤ 0.06), and rejects > 8s dead-locked cameras.
  2. Sync & Sound Gate (sync-lint + loudness-offset): Checks vocal entry actions before beat accents, rejects unobserved beatAnchorSec or mismatched SHA-256 / offsets, and measures real AAC cross-correlation lag (0ms compensated) and loudness delta (±0.01 LU).
  3. Real DOM Layout Gate (layout-lint): Launches real headless Chromium/Edge on both 16:9 and 9:16, measuring getBoundingClientRect() on live lyrics and heroBounds to block overlap, clipping, or undersized fonts.
  4. Rhythm & Three-Eye Review (rhythm-lint + review-prep): Decodes actual rendered frames at native fps to catch accidental black frames and > 1.5s frozen stalls, then exports a ≤ 7MB audible 720p review proxy, contact sheets, and 1:1 native 1080p stills.

Quick Start

1. Install the Skill (Claude Code / Codex)

Runtime vs. Installer Node versions:

  • Versecut core runtime & CLI: Node.js >= 18 (zero npm install, zero Python; requires ffmpeg/ffprobe and Chrome/Edge/Chromium).
  • npx skills CLI installer ([email protected]+): upstream CLI requires Node.js >= 22.20.0. On Node 18–20, copy skills/versecut/ directly into ~/.claude/skills/versecut or ~/.codex/skills/versecut.
# Install into Codex / Claude Code via skills CLI (Node >= 22.20)
npx skills add suozi44/versecut --skill versecut -g -a codex
npx skills add suozi44/versecut --skill versecut -g -a claude-code

Then invoke it in your agent chat:

Use $versecut to direct a code MV for my song.
Audio & lyrics: [path/to/song.mp3 + path/to/lyrics.lrc]
Clip range: [00:15–00:45 or full song] | Aspect: [16:9 or 9:16] | Style: [editorial-paper / ink-vermilion / let's audition 3 styles first]
Show me 3 audition stills and beat-click audio to confirm before full render.

2. Run the Built-In Original Showcase in 2 Commands

This repository ships with a 100% original, copyright-free 46-second Chinese vocal showcase at skills/versecut/showcase/rainy-window-song/ (original MIT/CC0 lyrics sung with piano via Apache-2.0 open-source model DiffRhythm 2, plus multi-style 16:9 & 9:16 storyboards showcasing cross-style physical transitions):

# 1. Verify environment (Node, FFmpeg, Chromium/Edge, CJK fonts)
node skills/versecut/core/cli.mjs doctor

# 2. Analyze real acoustic beats, render 1080p master, run all 4 QA gates, and open 11-style gallery
node skills/versecut/core/cli.mjs analyze --project skills/versecut/showcase/rainy-window-song
node skills/versecut/core/cli.mjs render  --project skills/versecut/showcase/rainy-window-song --workers 2 --out work/versecut-demo.mp4
node skills/versecut/core/cli.mjs lint    --project skills/versecut/showcase/rainy-window-song --video work/versecut-demo.mp4
node skills/versecut/core/cli.mjs gallery --project skills/versecut/showcase/rainy-window-song --frame 78 --out-dir work/gallery

3. Optional Editable Remotion Export

Prefer editing the timeline in Remotion Studio? Export a self-contained React/Remotion project sharing the exact same 6-layer stage and 11 native styles — without forcing npm dependencies on the core runtime:

node skills/versecut/core/cli.mjs render --project skills/versecut/showcase/rainy-window-song --engine remotion --export-only --out-dir work/remotion-studio

Verification & Documentation


License & Acknowledgments

Released under the MIT License (also bundled inside skills/versecut/LICENSE for standalone skill installs).

Computational art craft draws mathematical inspiration from public generative-art literature including Tyler Hobbs' recursive polygon watercolor method, LingDong's {Shan, Shui}* procedural landscape concepts, and Anthropic's editorial design principles — all re-implemented from scratch as clean, zero-dependency ESM modules.

Reviews (0)

No results found