/media-processing:making-kinescript-videosfrom media-processing
Renders MP4 videos from JSON scene files using the Kinescript CLI (kine). Supports text, shapes, charts, SVG, images, video clips, particles, 3D models with cue-based timing, plus narration via Kokoro TTS with word-level captions. Includes a linter for layout, contrast, reading time, and sound mix.
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.
Kinescript renders a JSON scene to video with Skia and ffmpeg. Layers start
and end on cues ("at": "title.out+0.2") rather than on hand-summed seconds,
and every frame is a pure function of the scene and the frame number. The
kine CLI also lints the scene (check), draws labelled contact sheets
(look) and speaks narration (voice). Its author is Dimitri (GitHub
drknowhow). Oskar Austegard, who maintains this skill collection, contributes
as a collaborator. Muninn is the name of the Claude agent that works for him.
This file was last checked against Kinescript 1.6.1 (2026-11-01), and
upstream releases often. kine docs is the authoritative reference for the installed
version. Read it before writing a scene, and don't rely on feature lists
remembered from earlier sessions, this file included.
| Situation | Use instead |
|---|---|
| Real web UI in a phone frame, arbitrary DOM/CSS layout | making-remotion-videos |
| AI-generated footage (Veo, Gemini video) | creating-video |
| Trim, transcode or caption existing footage | processing-video |
| Hand-drawn or p5.js character animation | animating-with-code |
sudo apt-get install -y ffmpeg libegl1 libgl1 libfontconfig1 # skia needs EGL even on the CPU backend
pip install kinescript "skia-python>=144"
kine doctor
pyproject.toml allows ≥ 87, but 138.0 crashes.canvas.poster (step 6) is merged upstream (drknowhow/kinescript#124) but
not on PyPI in 1.7.1. Until a later release, install with
pip install git+https://github.com/drknowhow/kinescript; kine docs
mentions poster when the installed version has it.KINE_BACKEND=cpu is used. Expect 3–7 fps at 1080p. A 55 s,
1650-frame promo (the games promo in oaustegard/experiments/games-promo,
cited below) took 231 s at -j 4.oaustegard/claude-workspace sessions, that repo's rules require
third-party code to run inside its sandbox, scripts/jail.sh (no network,
no secrets). Install from PyPI outside it and run kine through it.kine voicekine voice needs a voice plugin. Kokoro's (kinescript-kokoro) needs
Python 3.10–3.12. If the system Python is newer, install the plugin only in
its own venv (here with uv) and point KINE_VOICE_CMD at it; kine stays
in the system Python:
uv venv -p 3.12 ~/kokoro-env
VIRTUAL_ENV=~/kokoro-env uv pip install --index-strategy unsafe-best-match \
--extra-index-url https://download.pytorch.org/whl/cpu torch kinescript-kokoro
export KINE_VOICE_CMD="$HOME/kokoro-env/bin/python -m kinescript_kokoro"
# misaki downloads spaCy's en_core_web_sm through uv on first use; if that fails with
# "No virtual environment found", run it once with VIRTUAL_ENV=~/kokoro-env set
The CPU torch index avoids a multi-GB CUDA download. The first kine voice run downloads the model
(327 MB) and spaCy's small English model.
kine docs for layer types, cue syntax, motions and the sound rules.
kine new writes a starter scene.kine/build_scene.py is an example). Don't hand-edit
500 lines of JSON.audio list, give each voice sound a text, a speaker and a rate, then
kine voice scene.json. It re-speaks only sounds whose text, speaker or rate
changed. It writes the audio and a words file of word timings. Mark a word with
[[go]] before it to cue a layer from it ("at": "vo1:go").
Before speaking anything, read
references/kokoro-speech.md, which covers
names, numbers, stress, pauses, pace and blends.kine check scene.json: fix every error, read every warning, run it
again. The warnings for tiny text and reading time are worth acting on:
they pushed the games promo's type to ≥ 44 px and its sublines to five
words or fewer.kine look scene.json --boxes (and --audio once there is sound):
read the contact sheet image before rendering. kine still renders one
frame. kine probe --at T gives every layer's resolved box.canvas.poster to a moment that shows the title,
e.g. "poster": "title.in+0.5" (seconds, a marker, a cue or a word). Feeds,
players and a <video> without a poster show frame 0 before play, and a
scene that fades in from its background shows up there as a blank rectangle.
With poster set, the render draws that frame as frame 0 (one frame,
1/fps s, before the opening; audio unchanged). kine check warns
blank-first-frame when frame 0 is empty and no poster is set. For a page,
kine still scene.json --at poster -o poster.jpg gives the <video poster>
image. --no-poster keeps the real frame 0 for a master.kine render scene.json -o out.mp4 -q high -j 4. Long renders
belong in a background job. The result's "poster" names the frame used.ffprobe for size, fps and duration, a frame strip
(ffmpeg -vf "select='not(mod(n\,90))',scale=270:-1,tile=8x2") whose first
tile is the poster, and a listen to the voice track."rate": 0.95, measure words ÷ speaking time from
the words files after kine voice, and scale the rate.role and Kinescript levels them: voice at −18
LUFS, music at −16 and ducked 14 dB under a voice, with no manual mixing.[laughs]. For a
line that needs either, set that sound's backend to elevenlabs or
chatterbox (see kine docs, SOUND)."speaker": "bm_fable,bm_fable,bm_lewis", a 2:1
blend of fable's rasp and lewis's low register.The version in brackets is the one where each was seen. Check it against
kine docs and the CHANGELOG before working around it.
(-w/2, -h/2)
to fill it. kine check reports a misplaced child as off-screen.loop: true does not lengthen a video layer (1.4.0). Give the layer
a dur.x is
given (1.3.1, by design). Set anchor explicitly.page.clock.install(), reload, then pause the clock and step
it. Installing it after load stalls most games. WebGPU pages also need the
GPU queue drained before each screenshot. The games promo's
capture/lib.cjs does both.CLAUDE.md mandates the maintainer's c3_* MCP
tools. Where they are not installed, its first line says to use the usual
tools.Work on a branch of drknowhow/kinescript and open a PR. Dimitri merges his
own work as PRs too, so never commit to its main. Run python -m pytest first. A visual change
also needs kine check and kine look --boxes.
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./creating-videoCreate video from prompts by overseeing multi-clip AI generation end to end: write a shot list, generate each scene with Gemini Omni Flash (via the Cloudflare AI Gateway), review the results, and assemble them into a finished cut. Use when the user asks to make/generate a video, a short film, an animatic, or a multi-scene clip from a script or idea; when they mention Omni, Veo, text-to-video, or image-to-video; or when acting as the editing/director agent over generated footage. Triggers on 'make a video', 'generate a clip', 'short film', 'video from this script', 'turn this into a video', 'omni', 'veo', 'text to video', 'storyboard to video'. For transcoding/trimming/merging/GIF/subtitles use processing-video; for reading or summarizing existing video content use parsing-video./detecting-tips-zonesText-prompted image zone detection using TIPSv2 B/14 on CPU. Produces `focus_targets` / `focus_edges` bbox lists from natural-language labels, ready to feed into `svg-portrait-mode`. Use when you want automatic foreground/background separation from prompts like "dog face" + "wooden floor" instead of hand-annotating bboxes./drawing-videoTurn a short video into a narrated comic strip. Use when the user uploads a video (.mov/.mp4/etc.) and asks to make a comic from it, narrate it, draw it, Attenborough it, storyboard the clip, or otherwise wants a stills-plus-narration comic strip derived from footage. Covers probing and extracting frames, GROUNDING the actual storyline (native Gemini video parse or frame reading), composing narration in a chosen voice, generating comic panels with Gemini image models anchored to the real stills, QA-ing the panels, and compositing a titled strip. Do NOT use for plain video transcoding or trimming (that is processing-video) or for original illustration from a text prompt (that is invoking-gemini)./drawing-with-pycairoDraws images, PDF/SVG vector files and animation frames with pycairo, and supplies what cairo lacks: shaped text for Arabic, Indic and other scripts, text along curves, blur/glow/drop shadows, path booleans, stroke-to-outline, and Gouraud-shaded 3D. Use when writing pycairo or cairo drawing code, generative art, custom diagrams or posters rendered in Python, or when cairo output needs non-Latin text, soft effects, merged shapes or shaded surfaces.npx claudepluginhub oaustegard/claude-skills --plugin media-processingOther plugins' skills for the same job