agentleFS
boltguoboltguo/skills/lyric-video/SKILL.md

lyric-video

Skill1 starsChanged 26 days agoMITView on GitHub

Turn lyrics (plus an optional song) into an animated lyric motion video (文字PV / lyric video / kinetic typography) and export MP4, alpha MOV or PNG frames, using the JIZURA engine in headless Chromium. Use when the user asks to make a lyric video, 歌词视频, 歌词动画, 文字PV, リリックビデオ, kinetic typography from lyrics, or to export lyrics as a video with beat sync.

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. flintfromthebasement/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read references/lyrics-syntax.md and add markup without changing the words:

    line 85
  2. Very specific:

    Call AskUserQuestion with these questions in a single call (first option = default, Recommended):

    line 96
  3. Very specific:

    Read and show preview.jpg.

    line 109
  4. Very specific:

    Ask (with AskUserQuestion) whether to render this look, roll another seed, switch theme / style, or adjust effects (--fx).

    line 111
  5. Distinctive:

    Run long renders in the background and wait for them to finish.

    line 123

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Lyric Video

node <skill-path>/scripts/render.mjs lyrics.txt --audio song.mp3

Output: lyric-videos/{timestamp}-{slug}/ containing video.mp4, project.json (the full look, reusable), cuts.json (every cut's text, time and techniques). A JSON summary is printed on stdout; progress on stderr.

The engine lays out every cut from ~860 small parts (layouts, enter / hold / exit motion, decor, text treatments, backgrounds, camera, screen effects, transitions) and 27 styles. A seed picks the combination, so each seed is a different video.

Requirements

  • Node.js 18.3+ and ffmpeg on PATH
  • Playwright with Chromium, installed once next to the script:
npm install --prefix <skill-path>/scripts && npx --prefix <skill-path>/scripts playwright install chromium

(An existing global Playwright is found too. A system Chrome works with --chrome PATH or CHROME_PATH.)

  • Network for Google Fonts on first use (offline, the system's CJK fonts are used instead).

First-time permission setup:

claude config add permissions.allow "Bash(node */lyric-video/scripts/render.mjs*)"

Lyrics come from the user

Use only lyrics the user provides (pasted text, a .txt or an .lrc file). If the user names a published song without giving its lyrics, ask them to paste the lyrics or give the file; do not write out an existing song's lyrics from memory. Rights to the lyrics and the song stay with their owners; rights to the output video belong to the user who made it.

Options

FlagValuesDefault
--audio FILEany format ffmpeg readsnone: timing estimated from line length
--previewcontact sheet only (preview.jpg, one frame per cut)off
--formatmp4 (H.264 + AAC) · mov (ProRes 4444) · png (frame sequence + audio.wav)mp4
--transparentno background (mov / png only)off
--key-bggreen · black (white text and effects only, for compositing)off
--aspect16:9 9:16 4:3 3:4 1:1 4:5 21:916:9
--resshort side: 720 1080 1440 21601080
--fps24 30 6024
--themelyricpv kinetic wa horror pop balladany
--stylestyle key, see references/styles.mdfrom the roll
--seed Nthe look and the cut planrandom (reported)
--plainskip the random look; JIZURA defaults (noir)off
--partsextra,wa,typo,kinetic,horror subsetsextra,wa,typo,kinetic
--fx k=v,…motion glitch chroma decor density texture bgSwitch (0–1)from the roll
--project FILEreuse a project.json (same look); other flags still override—
--title --artistshown in long interludesfrom [ti:] [ar:]
--start S --end Srender only this time rangewhole song
--crf NH.264 quality18
--workers Nparallel renderersup to 4
--sharealso write video_share.mp4 (CRF 26, ≤ 8 Mbps; ~5× smaller)off
--out-dir DIRoutput folderauto

Lyrics markup (/ cut split, *emphasis*, ! flash, [間奏 8] interlude, LRC tags): references/lyrics-syntax.md.

Workflow

IMPORTANT:

  • You MUST use AskUserQuestion tool (not plain text) to collect user input. Plain text does NOT pause execution.
  • Match the user's language for all UI text (questions, labels, descriptions).

Step 1: Lyrics and song

  • Get the lyrics from the user (see above). Save them as lyrics.txt (or use their .lrc as is).
  • Note the song file path if they have one.
  • Song but no LRC timestamps → tell the user that cuts will snap to the beat but line starts are estimated, so lines may not land on the vocals. Offer: an LRC file, or [mm:ss.xx] tags on a few key lines (untagged lines are spread between them).
  • LRC from another source (a music platform, another edit of the song) → check it fits this audio: preview a few seconds around the first line with --start / --end, or compare the first tag with where the intro ends. An LRC made for another version shifts every line.

Step 2: Mark up

Read references/lyrics-syntax.md and add markup without changing the words:

  • / in lines longer than ~14 CJK characters / 6 words, at a phrase break
  • *…* on 1–2 key words per section; ! on the hook or climax line
  • [間奏 N] for instrumental sections when the song has them (from LRC gaps or the user). With LRC, put it untagged right after the line before a long gap (> ~8 s) with N ≈ the gap minus that line's length, and one after the last line to cover the outro up to the end of the song; otherwise those stretches show nothing
  • [ti:…] [ar:…] if the user gave title / artist

Show the marked-up lyrics briefly so the user can correct them.

Step 3: Settings

Call AskUserQuestion with these questions in a single call (first option = default, Recommended):

  1. Ratio — header: "Ratio", options: "16:9 (Recommended)" / "9:16 vertical" / "1:1" / "4:5"
  2. Look — header: "Look", options: the theme that fits the song best (see the table at the end of references/styles.md) marked Recommended / "Random" / one or two other themes. For a short-video platform (抖音, TikTok, Reels, Shorts), recommend 9:16 in the Ratio question
  3. Quality — header: "Quality", options: "1080p 24fps (Recommended)" / "720p 24fps (faster)" / "1080p 30fps" / "4K 24fps (slow)"
  4. Format — header: "Format", options: "MP4 with song (Recommended)" / "Green screen MP4" / "Transparent MOV (ProRes 4444)" / "PNG sequence"

Step 4: Preview

node <skill-path>/scripts/render.mjs lyrics.txt [--audio song.mp3] --preview --theme T --aspect A [--seed N]

Read and show preview.jpg. Report the seed, style and mood from the summary. A thumbnail taken mid-transition can look nearly empty; that is normal.

Ask (with AskUserQuestion) whether to render this look, roll another seed, switch theme / style, or adjust effects (--fx). Repeat previews until the user picks one. A preview takes seconds; a full render takes minutes.

Step 5: Render

Reuse the chosen preview's look exactly:

node <skill-path>/scripts/render.mjs lyrics.txt [--audio song.mp3] --project <preview-dir>/project.json --res R --fps F [--format …] [--key-bg …]

Speed is roughly 15 frames/s at 1080p on 4 cores (a 4-minute song at 24 fps ≈ 6–7 minutes; 4K ≈ 4× slower). For long songs, tell the user the estimate first; to check something quickly, render a slice with --start / --end.

Run long renders in the background and wait for them to finish.

Step 6: Results

  1. Report the video path, duration, resolution, seed and style. A full song at CRF 18 can be 200 MB+; render with --share when the user will send or upload it
  2. Mention project.json: pass it back with --project to re-render the same look — another resolution or format gives the identical video; another ratio keeps style, timing and cuts while layouts adapt to the new frame
  3. On success: false, read error and see below

Error Handling

ErrorCauseFix
playwright not foundPlaywright not installedrun the install command in Requirements
could not start Chromiumbrowser not downloadednpx playwright install chromium, or --chrome PATH
ffmpeg not foundffmpeg missinginstall ffmpeg
unknown styletypo in --styleuse a key from references/styles.md
--transparent needs --format mov or pngMP4 has no alphause --format mov or --key-bg green
fonts look genericGoogle Fonts unreachablecheck network; install Noto CJK fonts for offline

Credits

Engine: JIZURA 字面 by hakoniwa, MIT License (vendor/LICENSE.JIZURA). The bundle in vendor/ is the engine without the editor UI; rebuild it from a newer checkout with python3 scripts/build_engine.py /path/to/JIZURA.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.