/avp-music-video:create-templatefrom avp-music-video
Create or modify a music-video template for avp — the JSON layer spec (background, waveform/spectrum/bars, logo, title text, lyric placement) that render-music-video turns into a video. Use when the user says "make a new template", "change the layout", "move the logo", "different visualizer", "a template for Instagram/square", or wants a house style saved for reuse.
Ships in avp-music-video. 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.
None: SKILL.md is the whole skill.
A template is a JSON file listing avp layers bottom → top, with placeholders filled per render. render.py compiles it to an avp project every run, so templates stay readable and diffable; nothing is stored in avp's GUI.
Script location: see install-avp ("Script location"). Full field reference: $ROOT/docs/template-format.md. Start by copying the closest built-in from $ROOT/templates/:
| Template | Size | Look |
|---|---|---|
waveform-center | 1920×1080 | scrolling waveform across the middle, logo top-left, title/artist bottom-left |
spectrum-bars | 1920×1080 | frequency bars rising from the bottom in brand primary, title top-left, logo top-right |
logo-pulse | 1920×1080 | logo centre pulsing to the beat inside mirrored bars, title centred low |
vertical-short | 1080×1920 | 9:16 for Shorts/Reels/TikTok/status, logo top, waveform middle, title lower third |
<project>/avp-templates/<name>.json, rendered with -t avp-templates/<name>.json.$ROOT/templates/<name>.json (then commit to the plugin repo).output size, % for scale/opacity, combo boxes by their label. Numbers can be expressions in W and H ("H*0.86", "W/2", "W-40"), so a template stays correct under --size.--dry-run to see the resolved spec (placeholders filled, images converted and placed):
python3 "$ROOT/scripts/render.py" song.mp3 -t my.json --dry-run
python3 "$ROOT/scripts/render.py" song.mp3 -t my.json --preview 8 -p compat -o /tmp/p.mp4
ffmpeg -v error -ss 4 -i /tmp/p.mp4 -frames:v 1 /tmp/p.png # then view it
With lyrics, add --subs … --karaoke and check they clear the title and logo; tune the template's "lyrics" block.scale below 100 crashes the render (ValueError: images do not match), and x/y offsets wrap the waveform around the frame instead of moving it. Position other layers around a full-frame waveform; for a bottom-anchored look use mode: "Frequency Bar", which grows up from the bottom edge.Classic centred mirrored, Split, Bottom, Top) plus scale (bar height) and y. It's the way to get a bars strip at a chosen height."blur" (px) and "darken" (0–1), which render.py applies with ffmpeg before avp sees the image, and "cover": true to fill and crop to the frame."fit": [w, h] (a pixel box) and "anchor" (top-left, top-right, bottom-left, bottom-right, top-center, bottom-center, center) + "margin". avp's own image scale is relative to the source image's pixel size, which differs per logo file, so don't rely on it."alignment": "Left" is safe to use."if": "<var>" / "if": "!<var>" skips a layer when a variable is empty — templates use it for logo/background/artist fallbacks.image, video, color, text, waveform, spectrum, classic, sound, life. The builder rejects an unknown setting and lists the valid ones, so a typo fails loudly. Combo labels:
mode: Frequency Line, Frequency Bar, Cline, Line; amplitude: Logarithmic, Square root, Cubic root, Linear; also color, opacity, mono, mirror, compress, speed (blend smoothing, 100 = none).filterType: Spectrum, Histogram, Vector Scope, Musical Scale, Phase; color: Channel, Intensity, Rainbow, Moreland, Nebulae, Fire, Fiery, Fruit, Cool.layout: Classic, Split, Bottom, Top; visColor, scale, y, bars.title, font (family or font file), fontSize, fontStyle (Normal, Semi-Bold, Bold, Italic, Bold Italic, Faux Italic, Small Caps), textColor, alignment (Left, Middle, Right), xPosition, yPosition, shadow, stroke, strokeColor.image, scale, x, y, rotate, mirror, respondToAudio (pulse), sensitivity, color (saturation %).color1, color2, fillType (Solid, Linear Gradient, Radial Gradient), width, height, x, y.video, loop, scale, x, y, useAudio.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/brand-kitDiscover a project's brand assets — logo, background art, brand colours, brand font — in a repository and save them as an avp-brand.json manifest that the music-video templates read. Use when the user says "use our brand assets", "find the logo in this repo", "set up branding for the music videos", "make a brand kit", or before the first render-music-video in a project that has no avp-brand.json yet./install-avpInstall and verify audio-visualizer-python (avp), the CLI this plugin renders music videos with, plus ffmpeg and the Qt runtime libraries it needs to run headless. Use when the user says "install avp", "set up the audio visualizer", "get the music video tool working", or when any other avp-music-video skill finds `avp` missing or failing./avp-music-video@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin avp-music-video