agentleFS
CyberGaurav404CyberGaurav404/lyric-video-skill/SKILL.md

lyric-video

Skill3 starsChanged 16 days agoMITView on GitHub

Turn a song, a cover image and (optionally) plain lyrics text into a finished lyric video — no SRT needed, timings are generated automatically with offline speech recognition and fuzzy alignment that tolerates typos in the lyrics. Two looks: Spotify "now playing" and cinematic motivational (Kalam Hindi font, word highlight). Use when the user asks for a lyric video, karaoke video, Spotify-style lyrics edit, or a motivational lyrics reel.

  • Installs packages

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. bitwize-music-studio/claude-ai-music-skills★ 723same name
    2. Rudywizz/rudywizz-motion★ 4same name
    3. flintfromthebasement/skills★ 1same name
    4. boltguo/skills★ 0same name
    5. WEBGRS/skills★ 0same 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.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No cover? One is generated from the title.

    line 37
  2. Distinctive:

    Check: no clipped lines, one active line, no tofu/boxes (font problem), progress time correct, audio in sync, bars/grade consistent.

    line 77

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “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 skill

Input the user gives you: an audio file, a cover image, and the lyrics as plain text (optional). You deliver: one finished .mp4. The user never has to supply an SRT — auto_srt.py builds it from the audio.

Do this

pip install pillow imageio-ffmpeg vosk          # ffmpeg ships with imageio-ffmpeg

python scripts/make_video.py \
    --audio song.mp3 --cover cover.png --lyrics lyrics.txt \
    --title "Song Name" --artist "Artist Name" \
    --style spotify --out lyric_video.mp4

That single command: recognises speech → aligns the user's lyrics to it → writes the SRT → renders the video in chunks → concatenates → writes lyric_video.mp4.

  • --style spotify (default) — blurred cover background, album card, progress bar, smoothly scrolling lyrics.
  • --style cinematic — full-bleed background (pass --bg plate.png, or one is generated), 2.35:1 letterbox, Kalam font, word-by-word highlight.
  • --start 9.6 --duration 20 — teaser clip.
  • No cover? One is generated from the title. No lyrics? ASR text is used.

Inputs, and what to do when they are missing

InputNotesIf missing
Audiomp3 / m4a / wavrequired — ask for it
Coversquare ≥1000×1000generated procedurally; or make one in Figma (generate_image, prompt in PROMPTS.md)
Lyrics textplain text, one line per lyric lineASR text is used, timings still automatic
Title / artisttextinferred from the cover or left generic
Language--lang hi (default) or enpick from the lyrics script

Typos are expected and handled: both sides are normalised (punctuation, nukta, case) and words are matched with a fuzzy ratio, so "कोलम्बस" vs "कोलंबस" or "आईंस्टीन" vs "आइंस्टाइन" still line up. Words that cannot be matched get interpolated between their neighbours.

Pipeline (what the scripts do)

  1. auto_srt.py — decodes audio to 16 kHz PCM, runs Vosk (offline, downloads a ~40–80 MB model once), optionally constrains decoding with the user's lyric lines as a grammar, aligns them with difflib + fuzzy matching, and writes one SRT cue per lyric line.
  2. spotify_lyrics.py / motivational_render.py — render frames with Pillow, pipe raw frames into ffmpeg.
  3. make_video.py — chunks the render (45 s per chunk by default, keeps memory < 2 GB), concatenates with ffmpeg -f concat -c copy.

Quality bar

  • Continuous motion, never stepped: interpolate the camera/scroll per frame.
  • Active line bigger and brighter; neighbours shrink and dim in tiers.
  • Auto-shrink long lines to a safe width; never clip text at the frame edge.
  • Correct font per script: Devanagari lines need a Devanagari font (bundled in assets/fonts/), Latin lines need a Latin font. Never mix them in one string.
  • One idea per frame: either the background moves or the text moves, not both hard.

Verify before delivering

ffmpeg -ss 12 -i out.mp4 -frames:v 1 check.jpg   # 2–3 spots

Check: no clipped lines, one active line, no tofu/boxes (font problem), progress time correct, audio in sync, bars/grade consistent.

Pitfalls

SymptomCauseFix
Boxes instead of textwrong font for the scriptuse font_for(text, …); Devanagari fonts are in assets/fonts/
mkl_malloc: failed to allocate memory2 GB RAM + big model/audioVosk (used here) avoids this; if using whisper, chunk to 8–10 s
ffmpeg Cannot allocate memorytoo many frames in flight--chunk 40, -threads 2, rc-lookahead=4
Lyrics drift over timealignment failed on a long instrumental gappass --lyrics; keep one lyric line per line of text
Background jumpspre-rendered keyframes swapped, not blendedthe bundled renderers blend/interpolate

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.