/vibe-editing:caption-clipsfrom Vibe Editing
Burns a single locked 'spice' caption style onto short-form video clips using a Python-based rendering engine. Use when the user asks to caption, subtitle, or add burnt-in word-by-word captions to footage.
Ships in Vibe Editing. 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.
The current model reads the caption references and the normalized words, then authors the style
stream itself. No Anthropic/OpenAI key or separate Claude CLI is required. Before rendering:
run spice_format.py --words <pinned-words.json> <spice_norm.json>, read that indexed word list,
and write director_stream.json as {"words_sha256":"<SHA-256 of spice_norm.json>","words":{"0":{"w":"strong","c":"speaker"}},"voice_spans":[]}.
Use the preset's weight/size names and source-supported per-word voice colors (c:"guest" for a
different speaker). Compute words_sha256 from the exact normalized JSON file. Indices refer to those normalized words
after token merges; changed ASR words invalidate the stream rather than shifting styles silently. Apply voice colors
per word; keep voice_spans empty. Pass --words <pinned-words.json> --director <director_stream.json>
to spice_caption.py, or set stages.captions.words and stages.captions.director in the manifest.
Q&A/multicam wrappers (qa_assembly.py, qa_build.py, multifinish.py) and listicle builds also
accept --director; author it against the normalized words each wrapper writes. Historical
scripted model directors/selectors are optional legacy utilities, not the default.
Caption-text errors are INVISIBLE to audio QC (the audio is fine; the wrong word is only on screen). They must be caught by scanning the
.ass/subs.asstext or OCR'ing frames — never assumed clean.
spice_format.py
numeralizes to "1" ONLY via positive signals: money, an adjacent number, or listicle "number/step/day
one" → "#1" (handled downstream on the WORD form, so keeping the word never breaks "#1"). Defaulting to
"1" shipped "no 1 will care" AND "judgment is 1" in one batch. If you touch number rules, re-run the
probe set (pronoun forms: "no one", "the one", "one of"; listicle: "number one", "step one"; money:
"one hundred million").ffmpeg -ss X -t 0.5 -af volume=12dB) and
transcribe it ALONE — context-free boosted audio can't be pattern-completed. To FIX: pin a hand-corrected
word list and pass --words (skips per-render ASR → deterministic captions across re-renders too).--corrections {"heard":"burned"} for reviewer-flagged single-word mis-hears (e.g. "quadruple"→
"quadrupled") without re-cutting. Applied to the transcription before formatting.captions stage content-hashes these scripts (spice_format / spice_caption /
generate_spice / caption_director) into its cache VERSION (render/stages/captions.py). So editing ANY of
them auto-invalidates every caption cache — a script fix re-renders instead of silently serving a stale
burn (which it used to: the "no 1"→"no one" fix appeared to do nothing until this was added).There is exactly one caption style: spice (the locked the reference editor look). Same fonts, shadow, weights,
sizes, italics for EVERY clip and footage type. The only things that change are automatic
decision-tree branches inside that one style (below). All older styles (pro, pro_locked,
speaker_canon, ugc, glow) and their generators (generate_ass.py, batch_pro.py) were deleted
2026-06-11 — do not look for them. caption-clips is the SINGLE source of truth; the edit
orchestrator, the render skill, the caption-app, /glow, transcript-edit, listicles, and multicam
all route through this one engine. Never duplicate its rules; never hand-roll a caption burn.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/caption-clips/scripts/spice_caption.py <input.mp4> <output.mp4> [--context "<hint>"]
This is video-in → spice-captioned-video-out. It runs the locked chain:
transcribe (AssemblyAI primary; Groq fallback) → spice_format → active-agent style stream → generate_spice --burn → caption_qc.
The output has the two-layer gblur Premiere shadow, resolution-adaptive scaling, and per-word color.
Text normalization = spice_format.py (The reference editor's company.com spec, locked 2026-06-11). This single
deterministic engine (154/154 tests) applies all 9 of the reference editor's caption-text rules — lowercase-except
(I-forms/proper/acronyms), number-words→digits + compounds, "one" vs "1" trigger logic, listicle/sequence
labels (#N / day N), money formatting (threshold table + grand + rate phrases + counting-noun/year guards +
triggers), $/%/X symbols, thousands separators, punctuation cleanup, and the locked dictionary — and it
preserves per-word timestamps through token merges (fifty thousand dollars→one $50K token spanning its
source words). It REPLACED the old normalize_simple + spice_normalize two-step. Full rules:
references/spice_caption_formatting_spec.md. Standalone: spice_format.py --words <in.json> <out.json>
(word-mode) or pipe text on stdin.
--context (optional): a director hint, e.g. for a Q&A say "guest asks the question, Speaker answers" so
the guest's lines render yellow. Omit it for a monologue (all white).GROQ_API_KEY (transcription). ANTHROPIC_API_KEY drives the director's color/emphasis; without
it the chain still produces spice, just with deterministic (no LLM-chosen) color.If you ALREADY have a spice transcript + style stream (e.g. inside /edit's render or transcript-edit),
call the renderer directly with the one preset:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/caption-clips/scripts/generate_spice.py <spice_words.json> \
--preset ${CLAUDE_PLUGIN_ROOT}/skills/caption-clips/presets/spice.json \
--style <director.json> --out subs.ass --burn <clip.mp4> --burn-out <final.mp4>
ONE preset: presets/spice.json. It is resolution-adaptive — generate_spice --burn probes the real
frame and rescales font/shadow/animation, so the same preset renders correctly at 1080, 4K, anything.
There is no spice_1080 (deleted) — never branch on resolution yourself.
NEVER do a plain ffmpeg subtitles= burn of a static .ass (no gblur → the wrong "horrendous" look),
and never reach for a deleted preset/generator. The caption_qc.py guard (run automatically by
spice_caption) fails the render if the output isn't the spice gblur path — if you hit a caption_qc
error, you used a wrong/deleted path; switch to spice_caption.py.
The style is identical everywhere; these are decided automatically per clip:
| Branch | Behavior |
|---|---|
| 2 speakers (guest asks / Speaker answers) | guest = yellow + italic, Speaker/host = white. Driven by the director (--context hint) or, in the app, the local diarizer. Monologue → all white. |
| Split-screen vs single cam | caption sits in the seam on split-screen; below the chin (~50%) on a single cam. Driven by the layout track when present. |
| Resolution | auto-scaled (resolution-adaptive). |
Fonts, the two-layer gblur shadow, the weight ladder, size tiers, italics, and the drop-in animation are the same for all of the above.
Text SOP (auto via normalize_simple → spice_normalize → the generate_spice chunker):
I, I'm, I'd, I've, I'll).$ and uses symbols/abbreviations: $2.5K, $600K, $46.2M, $1M, % not "percent",
≥$100K abbreviated. Numbers/money are white (emphasis via weight/size) — never yellow.The 5 styling axes (the per-word "director" logic — what makes it the reference editor):
#FECB00 = a different voice (Q&A guest, or Speaker
role-playing/quoting someone — a reported-speech span is all-or-nothing: every word first→last is
yellow+italic+quoted, including function words).\fax shear, not synthetic \i1.Shadow (LOCKED 2026-06-11): two-layer gblur Premiere drop shadow, tightened — sigma 48/20, border 13/6,
intensity 0.70/1.0, down-right offset, all font-relative (spice.json shadow block). Only generate_spice --burn composites it; a plain subtitles= burn cannot.
Animation: subtle Premiere "Text Down Small" drop-in — font-relative (8px @1080 / 16px @4K) + a quick fade.
For a numbered listicle, after generate_spice.py (before the burn) add the persistent "N. CATEGORY" pill:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/caption-clips/scripts/spice_tabs.py <captions.ass> --clip-end <dur> --style glass --y 1140 \
--point "3.38:#1:OFFER" --point "8.02:#2:MARKETING" ... # item_start:#N:CATEGORY (hook gets no pill)
# then re-burn. The listicle-short skill (build_short.py) wires this automatically.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/sf-audit/scripts/audit.py --clip <captioned.mp4> --subtitles <captions.ass> --client <slug>
python3 ${CLAUDE_PLUGIN_ROOT}/skills/scorecard-audit/scripts/scorecard.py --transcript <transcript.json> --clip <captioned.mp4> --client <slug> --exit-on-fail
Plus the always-on caption_qc.py guard (structural: confirms the spice gblur path) and caption_lint.py
(text rules on the .ass).
| Need | File |
|---|---|
| Caption a clip (THE entry point) | scripts/spice_caption.py |
| The renderer | scripts/generate_spice.py |
| The director (per-word style stream) | scripts/caption_director.py |
| The one preset | presets/spice.json |
| Guard: is-this-the-spice-render | scripts/caption_qc.py |
| Lint: text rules on the .ass | scripts/caption_lint.py |
| Listicle category pills | scripts/spice_tabs.py |
| Full style spec / evidence | references/spice_caption_spec.md, references/caption_style_corpus.md, references/spice_qa_locked_recipe.md |
| Fonts (full Montserrat family) | fonts/free_font/ (Adobe-licensed; never web-download) |
--out (opens in a new tab)README.md (opens in a new tab)assets/spice_base_text.mogrt (opens in a new tab)fonts/AlfaSlabOne.ttf (opens in a new tab)fonts/Anton.ttf (opens in a new tab)fonts/ArchivoBlack.ttf (opens in a new tab)fonts/Bangers.ttf (opens in a new tab)fonts/Barlow-Bold.ttf (opens in a new tab)fonts/Barlow-ExtraBold.ttf (opens in a new tab)fonts/BarlowCondensed-Bold.ttf (opens in a new tab)fonts/BebasNeue.ttf (opens in a new tab)fonts/Bitter.ttf (opens in a new tab)fonts/BlackOpsOne.ttf (opens in a new tab)fonts/BowlbyOneSC.ttf (opens in a new tab)fonts/Caveat.ttf (opens in a new tab)fonts/Chivo.ttf (opens in a new tab)fonts/Comfortaa.ttf (opens in a new tab)fonts/DMSans.ttf (opens in a new tab)fonts/DMSerifDisplay.ttf (opens in a new tab)fonts/DancingScript.ttf (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub maddexritter-rgb/vibe-editing --plugin vibe-editing19 skills in this plugin
/audit-audioDedicated audio auditor. Receives a rendered clip and checks ONLY audio quality: word clipping, pops/clicks at splice points, level consistency, buzz/hum, music bed balance, clean open/close. Runs in fresh context — audio only, no video. Returns structured pass/fail per check with timestamps for failures. Part of the post-render audit fan-out at edit step 9.
/audit-captionsDedicated caption auditor. Receives a rendered clip and checks ONLY caption quality: accuracy vs spoken audio, speaker color attribution, timing sync, formatting, emphasis, and positioning. Runs in fresh context with NO knowledge of how the clip was made. Returns structured pass/fail per check with specific timestamps for failures. Part of the post-render audit fan-out at edit step 9.
/Other plugins' skills for the same job