/promo-video:promo-videofrom promo-video
Creates narrated promo/reel videos for Telegram or Instagram from a single prompt. Captures real UI with Playwright, generates ElevenLabs voice-over with word-level timing, cuts scenes on narration, adds captions, and renders platform-safe MP4s.
Ships in promo-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.
Read when SKILL.md points to them; scripts run unread.
One prompt → a narrated vertical video about a feature, built from the real UI, voiced by
ElevenLabs and cut on the narration. The engine is scripts/promo.py; you write one JSON spec.
subject (PR, page, app) spec video.json (scenes: what is said + what is shown)
│ read, pick 4–6 features │
▼ ▼
captures (Playwright) ──▶ build/<stem>/captures/*.png
voice (ElevenLabs, 1 take/model) ──▶ takes/*.mp3 + word timing ──analyze──▶ best take → vo.mp3
render (PIL frames → ffmpeg) ──▶ <stem>-<platform>-<format>.mp4 + contact sheets
Paths below are relative to this skill's directory (${CLAUDE_PLUGIN_ROOT}/skills/promo-video).
Infer first, ask once (one AskUserQuestion call) only for what you cannot infer:
| Decision | Default when unstated |
|---|---|
| Language | Language of the user's prompt (ru / en) |
| Platforms → targets | Telegram 9:16 and Instagram 9:16 (Reels). Feed post → 4:5; square → 1:1 |
| Length | 40–55 s (≈ 90–110 words; see the word budget) |
| Voice | The owner's voice ids from the project's .claude/promo-video.local.md when it exists (never substitute a stock voice then); otherwise a stock voice, for ru one whose voices --lang ru row lists ru |
| Footage | Real UI of the subject. Never mock a UI, never use third-party logos (tool names as text are fine) |
| Presenter | None. A talking-head PiP tutorial follows references/presenter-reel.md instead of steps 4–8 |
python3 scripts/promo.py doctor SPEC — ffmpeg + libx264, Pillow, numpy, Playwright + Chromium,
fonts (IBM Plex Sans/Mono by default, Cyrillic checked), the ElevenLabs key (never printed).
Key: ELEVENLABS_API_KEY in the environment, or voice.env_file in the spec / --env-file.
Never copy the key into the spec, the repo or any output.
Read the PR / README / page. List what it does for a user, pick 4–6 things worth seeing, and find where each is visible in the real UI (live URL, local HTML, an exported artifact, a running app). Each feature becomes one scene with one line of narration and one visual.
eleven_v4 (EN 118 words → 53 s,
RU 38 words → 18.8 s). Target seconds × 2 = words."Jira... or Linear, or GitHub"),
not staccato fragments ("Or Linear. Or GitHub." reads robotic). No speed-up.analyze shows they are heard correctly. Rephrase rather than respell —
phonetic spellings tested worse.at word a scene uses must appear in that scene's say.references/spec.md → captures. Rules of thumb (1080-wide output):
screen scenes: viewport 540×960, scale 2 (→ 1080×1920);spotlight / cards images: element selector, viewport ~520–720 wide, scale 3 (crisp when panned);sequence (eval with {i}) → @name frames; coordinates for a tap
ripple via measure;theme: "dark" in the capture and the spec).Start from examples/epic-observation/video.json (EN, 9 scenes, 2 targets) or
examples/minimal-ru/video.json (RU, 4 scenes, Instagram 9:16 + Telegram 1:1). Put it next to
the material, e.g. promo/<topic>/video.json. Then promo.py check SPEC.
python3 scripts/promo.py capture SPEC
python3 scripts/promo.py voice SPEC # one take per model in voice.models
python3 scripts/promo.py analyze SPEC --pick # Scribe STT error rate + pitch range
analyze transcribes each take (ElevenLabs Scribe) and prints the word error rate, every phrase
heard differently (bershadsky → bachinski), the pitch range in semitones (a flat contour is what
sounds robotic) and pauses. --pick takes the fewest errors, then the livelier contour. If a
brand word is misheard in every take, rephrase that line and re-voice — don't ship it.
Compare voices with voice SPEC --voice NAME (takes are named <model>__<voice>).
Defaults: models eleven_v4 (most expressive) and eleven_multilingual_v2 (fallback).
Cost ≈ script characters × takes (+ the same for Scribe); report it.
promo.py stills SPEC writes scenes-<target>.png (mid-point of every scene) and
cuts-<target>.png (frames around every cut), and prints the overlap check at the cuts
(0.00 = no two shots on screen). Read both PNGs and fix before rendering:
text cut off, captions covering the key number, an image too small to read, Instagram content
in the bottom 35 %, the top 14 % or under the right-hand button rail. Then measure the render:
python3 scripts/pv_safezone.py OUT.mp4 exits 1 on any frame whose content leaves x 65–960,
y 270–1248 — the safe zone is checked on every vertical delivery, never assumed.
stills also prints the reading-time check: every piece of on-screen text (heading, reveal
item, punch, code block, footer, mapping row) must stay up for 0.8 s, or 0.3 s per word for a
phrase, from the moment it appears until its shot fades (a reveal item only until the punch dims
it). Captions are exempt. render refuses while any line fails; fix by shortening the text,
anchoring it to an earlier word, or raising tail for the last scene. --force is for a
deliberate flash.
promo.py render SPEC → one MP4 per target (H.264 + AAC, +faststart, 30 fps) plus
<name>.cover.jpg. After drawing, the render does three things:
<name>.rejected.mp4 and exits non-zero. Never post it.cover: {"scene": id, "at": word} or {"t": s}; cover: false turns it off.
The same frame is saved as cover.jpg for the platform's cover upload. "embed": true also
stores it as cover art inside the MP4 (an attached_pic stream). How each platform treats that
stream is not verified, so it is off by default.build/<stem>/chunks/, each with
a fingerprint of everything it depends on (its scenes, word timing, theme, captures, renderer
source). A re-render redraws only chunks whose fingerprint changed, so a late text fix costs
its own scene, not the whole film. A new take retimes everything and redraws every chunk.
--full ignores the cache.The render prints loudness, peak and how many chunks it redrew. Send the files, then give post text in the video's language: Telegram caption ≤ 1024 characters with the install command / link; Instagram caption + 3–5 hashtags. Say what you could not verify (you cannot hear the voice — ask the user to listen).
promo.py all SPEC runs capture → voice → analyze/pick → stills → render in one go; use it
after the spec is stable.
screen / spotlight / cards / mapping (muted autoplay), off for
reveal / title where the big text already says the line.pmset -g when it crawls and say so instead of waiting silently.music: {file, volume} loops under the voice and ducks while it speaks. Use
only tracks the user owns or that are licensed for this use.A tutorial with the owner's AI talking head (corner PiP over animated terminal slides) uses a
different pipeline — identity-approved keyframes on green, per-second-billed clips, chroma keying,
whole-track speech-to-speech with a seed loop and silence gate, SFX, limiter + two-pass loudnorm,
a repeat-until-clean QA loop, SRT captions aligned on the final master, a cost ledger from the
provider's transaction log, and a storyboard artifact republished after every change. Read
references/presenter-reel.md before starting one; owner-specific ids live in the consuming
project's .claude/promo-video.local.md (template at the end of that reference), never in the skill.
scripts/promo.py — CLI. pv_spec.py spec, layouts, cut points, reading-time check,
pv_capture.py Playwright, pv_voice.py ElevenLabs takes + analysis, pv_render.py scenes,
captions, transitions, cover, chunked encode, pv_master.py loudness mastering + acceptance.references/spec.md — every spec field and scene type.references/presenter-reel.md — presenter-PiP tutorial pipeline, sizing, voice/STS, SFX, QA, canvas, costs.scripts/pv_safezone.py — measures a render against the Reels safe box; exit 1 on violation.examples/ — two working specs. tests/ — python3 -m unittest discover -s tests.examples/epic-observation/README.md (opens in a new tab)examples/epic-observation/video.json (opens in a new tab)examples/minimal-ru/demo.html (opens in a new tab)examples/minimal-ru/video.json (opens in a new tab)references/presenter-reel.md (opens in a new tab)references/spec.md (opens in a new tab)scripts/promo.py (opens in a new tab)scripts/pv_capture.py (opens in a new tab)scripts/pv_master.py (opens in a new tab)scripts/pv_render.py (opens in a new tab)scripts/pv_safezone.py (opens in a new tab)scripts/pv_spec.py (opens in a new tab)scripts/pv_voice.py (opens in a new tab)tests/test_promo.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
video-generation, promo-video, social-media, voiceover, playwright, elevenlabs
npx claudepluginhub sergio-bershadsky/ai --plugin promo-videoOther plugins' skills for the same job