← Back to blog
AiAbout 6 min read

A documentary where every frame is a line of Python

Published Nov 29, 2026
A documentary where every frame is a line of Python

Ask a video model for a ninety-second documentary and you get ninety seconds of plausible footage that is wrong in ways you cannot fix. The map is almost the right map. The date on the title card is off by a year. The archive photograph has six fingers.

cinematic-skill goes the other way. Nothing it produces is generated video. Every frame is drawn by code, Skia inside Python, which means the film renders identically every time and a correction is a diff.

What you ask for

The prompt in the README is one line: a 90 second documentary about the Wright brothers.

What comes back has a script with one idea per line and a note on what the camera shows for each line, a recorded narration, public-domain photographs with their licences recorded, and one continuous camera move across a single designed world. Stamps slam down, highlighters swipe, counters roll up on the exact word the narrator says. Sound effects are synthesised, captions are burned in, and there is an SRT.

The shipped example is called "Twelve Seconds". It is the 90-second Wright brothers film, built from seven public-domain photographs, and the final frame is a cork evidence wall with a US map print, a route from Dayton to Kill Devil Hills, portraits, a typeset letter, and the first-flight photo with running counters.

Brass pins and a red thread on an evidence board

Install

npx skills add Moh4696/cinematic-skill

That uses the npx skills CLI, needs Node 22.20 or newer, and installs for Claude Code, Codex, Cursor, Gemini CLI and OpenCode. There are per-agent paths too, including a Claude Code plugin marketplace line and a shell installer that clones to ~/.cinematic-skill and links itself into every coding agent it finds.

Then the Python side:

pip install -r requirements.txt      # skia-python, numpy, pillow, scipy optional

ffmpeg has to be on your PATH. check_setup.py verifies the whole chain and names what is missing, which is the right first thing to run, because a missing Skia build is the kind of failure that produces a confusing traceback four steps later.

Six stages, three of which stop for you

The workflow is documented as six stages, and the approvals are placed deliberately.

Story comes first. The agent researches, fact-checks, writes the script, and produces a beat table with a chronology lint. You approve the beat table before anything renders. That is the cheapest possible place to catch a wrong date.

Voice comes second, and this is the clever part. A free scratch voice, macOS say or espeak-ng, times the film first. The final voice can be any TTS or a human, recorded one section at a time and split into timed lines automatically. Because the timing comes from the audio, a new voice re-times the entire film by itself. No manual keyframe work.

Images come third. Wikimedia Commons search and download, with each licence recorded, and non-free files refused. credits.md is written for you. You can also drop in your own photos or AI stills.

Scene is where the code lives. A short Python file places items on the voice's timing, using calls like doc.W(line, "word") to key an element to a specific word, and keys the camera.

Review is the stage that makes this more than a generator. The agent renders stills and contact strips of every camera move and checks them for known mistakes before showing you a draft. It stops for approval after the look, and again after a 30-second draft.

Sound and finish come last: synthesised effects, mixed with the voice and an optional score, ducked and loudness-normalised, then a memory-aware parallel render and four caption styles.

The looks

KindLookImages
Documentary, history, true crimeCork evidence wall, slateArchive photos, black and white
Product launch, founder storyStudio, charcoalYour own product shots, colour
Science, engineering, how it worksBlueprint, paperDiagrams, archive or AI stills
Tech, space, trailersNightScreenshots, renders

The item vocabulary is where the craft sits: torn newspaper clippings, typeset documents with real quotes, clean cards, big distressed type, rolling counters, stamps, pen circles, highlighter swipes, red string between prints, and maps of any country with filled regions, routes and markers. A spotlight follows the camera so each line has one hero.

That last rule is the difference between a motion graphic and a mess. One hero per line, camera moves one at a time, time only moves forward after the opening.

Why code instead of generation

Three reasons, and the second one is the practical one.

Determinism. The film renders the same every time. If a client asks for the date to change from 1903 to 1905, you change a string and re-render. A generated video model would hand you a different film.

Re-timing. A voice change re-times the whole thing automatically, because every element is keyed to words in the audio rather than to seconds on a timeline.

Licensing. Archive photographs come from Wikimedia Commons with licences recorded and non-free files refused. For documentary work that is not a nice-to-have, it is the difference between publishing and not.

The cost is that you cannot generate a face you do not have, or a scene nobody photographed. The skill is honest about that: it is a motion-graphics system with a documentary's discipline, not a video generator.

The bit that will trip you up

The example project runs as a sequence of scripts rather than one button:

cd skills/cinematic-film/scripts
python3 new_project.py ~/wright --example
python3 fetch_commons.py get --project ~/wright
python3 make_map.py --project ~/wright && python3 prep_assets.py --project ~/wright
python3 tts_say.py --project ~/wright && python3 split_takes.py --project ~/wright && python3 build_narration.py --project ~/wright
python3 render.py --project ~/wright --size 1280

That is on purpose. Each step can fail independently and be fixed independently, and the assets stay on disk between runs. The first time you run it, the failure will be a font, a Commons file that moved, or ffmpeg on a PATH the shell did not pick up. All three are fixable in a minute and all three are invisible until you run it.

Who it is for where the words matter more than the footage. History channels, product launches, engineering breakdowns, internal training. The 90-second example is a fair test: if you can imagine that film working for your subject, this will save you a week in After Effects. If your subject needs live action, it will not.

MIT licensed, one Python dependency list, and a check script that tells you what is broken. The interesting claim underneath is that a lot of what people call AI video is really typography with timing, and typography is better done in code.

Turn ideas into images with ChatPicture

60 free credits every day. Generate, edit, and download — no prompt engineering degree required.

Related articles