/video-plugin:video-beat-glowfrom video-plugin
Creates beat-synced edge glow effects on videos using beat tracking from a song, with a browser tuner for visual tuning and a render script.
Ships in video-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Make a video's edges glow on a song's beats, in each chapter's colour. Three scripts share one beat tracker and one envelope:
| Script | Does |
|---|---|
beats.py | Tempo and beats of a song; the per-frame pulse envelope |
glow_tuner.py | Writes a browser page that plays the video with the glow drawn live, for tuning by eye |
beat_glow.py | Renders the glow into the video |
Ported from shoreline-recon's work/karaoke/ (beats.py, the glow inside
karaoke.py, glow-tuner.template.html), with the glow made standalone.
| Use this skill when... | Use something else when... |
|---|---|
| A video with a song under it should pulse with the music | Burning in lyrics — video-karaoke; glow first, then karaoke on the glowed video |
| Choosing glow strength, width, decay, and which beats pulse | Checking a finished glow frame by frame — video-frame-review |
Scripts need only numpy, which uv run --with supplies; each step shows the
full command.
Beats. Print the tempo, beat count and gaps:
uv run -q --no-project --with numpy==2.5.4 python -I ${CLAUDE_SKILL_DIR}/scripts/beats.py song.m4a --json beats.json
On the shoreline-recon demo song it found 127.39 BPM, 492 beats over 231 s. Sanity-check the tempo against the song before going on.
Tune by eye. Mux the song under the video first (video-add-music), so
the page plays it, then write the tuner beside that video:
uv run -q --no-project --with numpy==2.5.4 python -I ${CLAUDE_SKILL_DIR}/scripts/glow_tuner.py \
video-music.mp4 --song song.m4a --margin-bottom 80 --accent splat=#14b8a6 --accent mesh=#f59e0b
Pass --song with the original file. Beats taken from the muxed AAC drift
(127.43 BPM, 493 beats on the same song), and the tuner would then disagree
with the render. Hand the user the page path to open in a browser. Its
bottom line is beat_glow.py's options, to paste back.
Render.
uv run -q --no-project --with numpy==2.5.4 python -I ${CLAUDE_SKILL_DIR}/scripts/beat_glow.py \
video.mp4 song.m4a out.mp4 --margin-bottom 80 --accent splat=#14b8a6 --accent mesh=#f59e0b \
--intensity 0.54 --width 31 --decay 0.46 --floor 0.12 --every 2 --phase 2 --kick
Preview a stretch first: --start 45 --duration 20 --preset 10 --with-song.
A preview carries no chapters.
| Option | Default | Effect |
|---|---|---|
--intensity | 0.54 | Peak opacity on the strongest beat |
--width | 31 | px at 1920 wide for the glow to fall to 1/e from the nearest edge |
--decay | 0.46 | s for a pulse to fall to 1/e (30 ms rise into each beat) |
--floor | 0.12 | Steady glow between pulses, as a share of the peak |
--every, --phase | 2, 2 | Pulse on beats where (index - phase) % every == 0 |
--kick / --no-kick | --kick | Scale each pulse by the kick's strength, or pulse at full height |
--margin-bottom | 0 | px at 1920 under the picture kept out of the glow (a timeline bar) |
--accent KEY=COLOUR, --default-colour, --sep | none, #6366f1, " · " | Chapter colours, the same rules as video-timeline-bar |
--with-song | off | Mux the song as AAC; otherwise the input's audio is copied |
The defaults are the values Lauri picked in the tuner for the shoreline-recon demo (2026-10-28): a narrow glow on every second beat that lingers, over a faint floor.
--kick scales each pulse by it.exp(-d / width) of the distance to the nearest edge,
screen-blended towards the chapter colour: 255 - (255 - f) * (1 - a * colour).
The tuner draws the same thing on a canvas with mix-blend-mode: screen.scripts/tests/test_beat_glow.py extracts pulseAt from the shipped
template and holds it to the envelope within exp(-5). That is where the
two cut a pulse's tail.The glow was the costly part of the original karaoke render: about 60 s of
77 s at 1280 wide, from full-frame float maths. beat_glow.py computes only the
edge bands where the glow can change an 8-bit value. Past
1 + width * ln(255 * intensity) px from an edge the change is under one level,
so the output is identical to the full-frame result (the test checks this pixel
for pixel). Measured on the 234 s, 1280x774 demo:
| Glow per frame | Whole render | |
|---|---|---|
| Full frame | 7.44 ms | — |
| Edge bands (103 px) | 2.94 ms | 49.0 s, against 31.0 s with the glow off |
The glow's look cannot be judged from code, so the user drags the sliders
instead of the agent guessing constants. The tuner is an instance of
agent-patterns-plugin:expose-tunable-knob: generate the page, let the user
play the video and adjust, take back the pasted settings line, and render with
exactly those values.
scripts/tests/test-beat-glow.sh (needs uv; the JS check also needs node)
covers the envelope, band-equals-full-frame, accent rules, and the tuner's JS
pulse against the envelope.
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/video-add-musicMux a song under a video with ffmpeg, keeping its chapters and copying the picture. Use when adding music or a soundtrack to an MP4 without re-encoding video./video-chapters-youtubeMP4 chapters to YouTube description chapter lines (0:00 first, 3+ chapters, each 10 s+, short runs merged). Use when writing a video's YouTube description./video-frame-reviewReview a video render frame by frame around an event (beat, lyric change, cut) — full-resolution crops stacked into one image. Use when checking render timing or overlays.npx claudepluginhub laurigates/claude-plugins --plugin video-pluginOther plugins' skills for the same job