Video breakdown for coding agents: your agent analyzes a short video shot by shot on your own machine, with cut, caption, loudness and word times measured, and says why it holds a viewer, beat by beat.
Video breakdown for coding agents: your agent analyzes a short video shot by shot, on your own machine.
Cut times, caption on and off times, loudness and word times are measured; the agent reads laid-out pictures for the rest.
You get a riffsheet: what happens, why it holds a viewer, and what your own version has to keep.
Free, MIT, runs offline with Python and ffmpeg. An agent skill for Claude Code, Codex and other agents that can run commands and read images. Made by Riffkit. riffsheet needs no account and sends nothing to us.
A video of ours, broken down by riffsheet. Full result in examples/red-carpet.
Install
You need ffmpeg 7 or newer and Python 3.9 or newer. Spoken words need a speech recognizer: the tool's own is the optional faster-whisper package and its speech model. When your agent judges that a video's speech matters and the recognizer is not set up, it tells you what it would add and what it costs (download, disk space, time, network), and sets it up only if you say yes (see Requirements).
The skill is the folder skills/riffsheet (SKILL.md, scripts/, references/, schema/); each way below puts that folder alone in your agent's skills folder, without the examples, their pictures and the tests.
1. Tell your agent (Claude Code, Codex, or any agent that runs commands):
Install the riffsheet skill from https://github.com/riffkit/riffsheet, then break down ~/Downloads/clip.mp4
2. Or with the skills command line tool (needs Node): npx skills add riffkit/riffsheet
3. Or in Claude Code, as a plugin:claude plugin marketplace add riffkit/riffsheet, then claude plugin install riffsheet@riffsheet.
4. Or with git: keep the repository anywhere and link its skill folder into your agent's skills folder:
git -C ~/src/riffsheet pull updates it. Other agents: keep the repository anywhere and say "Read skills/riffsheet/SKILL.md in the riffsheet folder and follow it."
If you put the whole repository in ~/.claude/skills/riffsheet with git before, move it out and link the skill folder in its place:
For Codex, the same with ~/.agents/skills. If you had it in both, move one as above; the other is then not needed: set it aside and link the skill folder in its place with mv ~/.agents/skills/riffsheet ~/riffsheet-old && ln -s ~/src/riffsheet/skills/riffsheet ~/.agents/skills/riffsheet, and remove ~/riffsheet-old once the skill works.
Try it
Give your agent a video file and ask in your own words:
Break down this video shot by shot: ~/Downloads/ad.mp4
Why does this TikTok work? I want to make my own version.
Analyze this Reel and list every caption with its timing.
About 4 to 8 minutes later you have riffsheet.md to read and riffsheet.json with every value, and your agent tells you in your own language what it found: one plain line per shot, why the video holds a viewer and what your version has to keep. Here is part of one riffsheet from the examples, an 8-second video spoken in Spanish, with “…” where words are left out. Read the whole riffsheet.md and its riffsheet.json.