/media-processing:creating-videofrom media-processing
Directs multi-clip AI video generation from script to finished cut: writes shot lists, generates scenes via Gemini Omni Flash through Cloudflare AI Gateway, reviews results, and assembles the final video.
Ships in media-processing. 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.
Claude cannot render video itself, but it can direct a generator. This skill drives a multi-clip pipeline — script → per-scene generation → review → assembly — with Claude as the editing agent overseeing continuity and cut.
Requires ffmpeg/ffprobe and Cloudflare AI Gateway creds (/mnt/project/proxy.env).
Default model: Gemini Omni Flash (gemini-omni-flash-preview, Interactions
API) — Google's own guidance as of 2026-07. It beats Veo on character
consistency, reference-image control, text rendering, and conversational
editing, and generates faster (~30–90 s/clip vs 1–3 min). Fall back to Veo
3.1 (scripts/veo_generate.py, kept intact) only for scene extension,
first+last-frame interpolation, or legacy pipelines — Omni supports neither.
scripts/omni_generate.py, run detached.parsing-video on each clip and on the assembled cut.scripts/assemble.py, run detached.Auth is CF AI Gateway BYOK: proxy.env supplies CF_ACCOUNT_ID, CF_GATEWAY_ID,
CF_API_TOKEN; the Google key lives inside the gateway. Both the interactions
call and the files/{id}:download retrieval route through it (verified 2026-07-20).
Run detached. The Interactions API is synchronous — the HTTP call holds
open for the whole generation (~30–90 s/clip). bash_tool caps at ~50 s. Launch
and adaptive-wait on the DONE sentinel:
# prompts.json = {"1": "...", "2": {"text": "...", "images": ["ref0.png"]}, ...}
set -a; . /mnt/project/proxy.env; set +a
(setsid python3 scripts/omni_generate.py prompts.json --out omni/ \
--negative "on-screen watermark" &)
# then, in a separate call:
timeout 45 sh -c 'while [ ! -f omni/DONE ]; do sleep 3; done'; cat omni/generate.log
Gotchas (all verified 2026-07-20 — the script already handles them):
input:"" returns 200 and bills a full
generation (~58k video output tokens). Every request costs money; never
"validate" with a throwaway call.negativePrompt parameter (Veo had one; Omni 400s on unsupported
params). --negative folds into the prompt as "Do not include: X."delivery:"uri" → poll files/{id} to ACTIVE → download
via the gateway. The script always uses uri delivery, inline base64 as
fallback.Omni defaults to multi-shot. Left alone it invents its own cuts inside a clip, which fights a shot-list pipeline. Every per-scene prompt should say "single continuous shot" / "no scene cuts" unless the beat wants internal cuts.
Contact-sheet each clip and the assembled cut. Per-clip sheets miss cross-clip continuity; the full-cut sheet is where character drift, prop jumps, and logic breaks show up in one read (Oskar, 2026-07-18: review the whole assembly, not just scenes). Scan every sheet against the continuity checklist:
scripts/assemble.py)Trims each clip to its beat, crossfades, drops audio by default, optionally burns an overlay word, and holds the final frame so the ending lands.
(setsid python3 scripts/assemble.py omni/scene_1.mp4 ... omni/scene_6.mp4 \
--out film.mp4 --tail-hold 1.3 &)
Run detached too — six trims plus a 30 s stitch exceed the bash ceiling on the
single-core container. Diagnosed: abrupt ending → --tail-hold; jarring cuts
between independently generated ambiences → audio dropped by default
(--keep-audio to acrossfade instead).
results.json stores each scene's interaction_id. A failed detail (wrong
color, unwanted object, lighting) is a one-line conversational edit that
preserves everything else:
python3 scripts/omni_generate.py --edit <interaction_id> \
"Make the scarf red. Keep everything else the same." --out omni/scene_3_v2.mp4
Simple edit prompts work best; append "Keep everything else the same." Reserve
full regeneration for scenes whose composition or action is wrong. (Editing
requires store=true, the script's default.)
The failure modes below came from real crits on 2026-07-18 (Veo era). Omni narrows several of them but the disciplines still pay on the first pass.
images list, and
bind it in the prompt: the woman <IMAGE_REF_0> is holding <IMAGE_REF_1>
(refs start at 0; <FIRST_FRAME> pins a starting frame instead).[0-3s] ... [3-6s] ... timecode syntax or natural
language ("after 3 seconds, ...") controls beats inside a clip.assemble.py --overlay-last) remains an option for cross-clip title cards.scripts/veo_generate.py --list to enumerate models; strings drift).What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/animating-with-codeMake a short animated film by writing the drawing code yourself: every frame a pure function of time, rendered headlessly to MP4. Covers storyboarding with a per-shot timing sheet of viewer 'reads', blocking key poses as stills, the contact-sheet / frame-strip / crop review loop, and the hand-painted character kit JohnHeibel/ClaudeAnimationBase (p5.js + p5.brush, the Clawd mascot, 31 emotions). Use for 'animate', 'make a cartoon', 'animated short', 'motion graphic', 'Clawd video', 'p5 animation', or any video request where Claude draws the frames. Not for AI-generated footage (creating-video), transcoding or trimming existing video (processing-video), or a comic from footage (drawing-video)./converting-filesConvert a file from one format to another inside the container — documents, images, audio, video. Routes to the right engine (pandoc, LibreOffice, ImageMagick, ffmpeg) by format pair. Triggers on "convert X to Y", "turn this docx into a pdf", "make a gif from this mp4", "md to docx", "batch-convert these images", or any single-file or batch format change where the source and target extensions differ. NOT for editing content (use docx/pptx/xlsx/pdf skills), creating files from scratch, or reading a file you already have in context.npx claudepluginhub oaustegard/claude-skills --plugin media-processingOther plugins' skills for the same job