/riffsheet:riffsheetfrom riffsheet
Analyzes short video files (TikToks, Reels, ads, clips up to ~1 min) shot-by-shot on this machine. Produces a riffsheet with every cut, camera movement, people, objects, on-screen text, spoken lines with timing, and a beat-by-beat analysis of why the video works or went viral.
Ships in riffsheet. 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.
You cannot watch a video; you can read stills and text. This skill gives you a local tool that measures the video (cuts, stillness, captions, graphics, loudness, word timing) and lays out exactly the pictures you need, and a procedure for reading them. You write judgment; the tool merges both into a riffsheet and checks it.
Output, in the folder build --out names (without --out, in out/ inside the scan folder):
riffsheet.md: the account a person reads, beat by beat.riffsheet.json: the complete data (format in schema/riffsheet.schema.json).faster-whisper package and its speech model, and check says whether they are here and what getting them costs.Change into this skill's folder (the folder that holds this SKILL.md) and run from there, or give the full path to scripts/riffsheet.py. In this file and the references, rs is short for python3 -I scripts/riffsheet.py: write it out in full in each command you run (rs check VIDEO is python3 -I scripts/riffsheet.py check VIDEO), since each command may run in a new shell, where a function or alias set in an earlier one is gone and the working folder may be back where it started: start each command with cd to this folder, or give the full path to scripts/riffsheet.py. Write boxes and arguments out too: a command, box or argument list kept in a shell variable reaches the program as one word in zsh and fails. Every command runs on any Python 3.9 or newer; only transcribe needs the faster-whisper package, so if that is installed in a virtual environment, start every command with that environment's Python in place of python3 (check prints the start to use, after "run every riffsheet command with"). The summary's NEXT lines and the other commands the tool prints name the Python it ran under and the tool's full path, so they run from any folder: write each out as printed, filling in what it leaves to you (a box, a time, a word range; references/METHOD.md, section 4, says when to change the box of a text command); a command the tool names in a sentence (mouth --words 0-2) is written out in full like any other.
# rs = python3 -I scripts/riffsheet.py (or /path/to/venv/bin/python -I scripts/riffsheet.py), written out in each command
rs check VIDEO # facts: what this machine has for an analysis (no network)
rs transcribe VIDEO --out T.json # word-timed transcript (optional; needs faster-whisper)
rs scan VIDEO --out DIR --transcript T.json # measure everything; read DIR/summary.txt first
rs text DIR --box x0,y0,x1,y1 --name NAME # each state of a caption or text region, with times
rs element DIR --box ROUGH --at T --name N # measured box and times of a card, logo, sticker or pane
rs zoom DIR --at T [--box B] # large sharp view, for clothing, products, small print
rs frames DIR --from S --to E [--box B] # every frame of a window, for motion and order
rs mouth DIR --box B --words A-B # is this person saying this line (its word range)
rs color DIR --at T --box B [--ref R] # measured colors with plain names
rs hear-check DIR # whether you can hear: a test the tool sets and marks
rs listen DIR # once hear-check succeeds: the sound, cut into files to open
rs build DIR # the sheet your judgment is written against
rs build DIR --judgment J.json --out OUT # write and check the riffsheet into OUT
One folder per video keeps things apart. For ~/Downloads/ad.mp4, a folder such as ~/riffsheet/ad/ holds T.json (the transcript), scan/ (DIR: the tool's pictures and measurements; follow-up pictures land in scan/look/), J.json (your judgment) and result/ (from build ~/riffsheet/ad/scan --judgment ~/riffsheet/ad/J.json --out ~/riffsheet/ad/result). Keep your own files out of the scan folder. A new scan into a scan folder (to add a transcript later, say) starts its analysis over: it removes what the follow-up commands wrote there and the hearing check, so run them again after it.
Boxes are fractions of the frame, x0,y0,x1,y1, 0,0 at the top left. Every time shown is the true time of that frame.
Talk to the person in their language: every question, every report on progress, and the result.
The tool reports facts and measures. You judge what this analysis needs and choose how to get it. The person agrees to anything that costs them something.
rs check VIDEO, then ask.check states facts and uses no network and changes nothing: ffmpeg, the tool's own speech recognition path, and whether the hearing check's sound can be made here (it needs a speech synthesizer), with what each adds, whether it is here, what preparing it costs (download size, space on disk, time, the network) and the commands that prepare and remove it. Its knowledge is a closed list, and its last line says so: it knows nothing about other tools on this machine. If ffmpeg is missing, tell the person; nothing can be analyzed until they install it.python3-venv and the hearing check needs espeak-ng; check says when one is missing), and whether it would send their audio or video to an outside service (the tool's own path sends nothing; a service you propose may, and so may your own model provider, which receives what you open). Take the tool's numbers from check, never from memory; for anything else, say what you know of its cost and what you do not. Nothing is forbidden: the person decides. Then wait for the answer.check printed under "prepare it", in order (the model comes only with transcribe --download); from then on start every command with what it printed after "then run every riffsheet command with", run check VIDEO that way again to see it ready, and go on.scan without --transcript: the riffsheet then says the speech was not transcribed and why, and never that nobody speaks.scan needs a word-timed transcript in the format transcribe writes (references/TOOL.md). The tool offers one tested path, transcribe (faster-whisper with the small model), and references/TOOL.md gives what its measurements found for it. You may use another recognizer, another model size or a transcript the person supplies; give scan --transcript-by "what made it" (a transcript transcribe made needs nothing). The riffsheet records what made the transcript, and says plainly when it was not the tool's tested path.own_means with what you used: the riffsheet marks it as established by your own means. When you need something and find no way to get it, record the gap under tool_gaps. riffsheet.md shows both.The tool cannot hear: it measures loudness and when sound events fall, not what a sound is. Some agents run on a model that takes sound as input; most do not, and what you believe about your own abilities is not evidence. So whether you can hear is settled for this analysis by a test the tool sets and marks:
scan, when the video has an audio track: rs hear-check DIR. It writes a short sound file in which a voice says six digits.DIR/hearing/check_1.wav (the file it names) the way you open the pictures: with the tool that reads a file into your input, the one that shows you an image. If your model takes sound as input, the file reaches you as sound: listen to it, then answer with the six digits you heard, in order, and nothing else: rs hear-check DIR --answer DIGITS. Answer rs hear-check DIR --cannot-hear only after trying, when opening the file gives you nothing to listen to (an error that the file type is not supported, raw bytes, or a description of the file in place of its sound). Not knowing whether you can hear is no reason to answer it: open the file first. For most agents --cannot-hear is the honest answer, and it costs the analysis nothing.rs listen DIR cuts the video's sound around each measured sound event, and the whole track when the video is short, into files: open them as sound, and write what you hear, not what the pictures make you expect, under heard in the judgment file (references/METHOD.md, section 6). Each statement goes out marked heard by the agent. The sound then reaches your model provider as the pictures do. Until the check succeeds, build refuses heard statements and lists as a problem any other sentence that says what the sound is (music, a song, a sound effect, a tone of voice), wherever you wrote it, own_means and tool_gaps included; what the sound is stays under cannot_judge.Follow references/METHOD.md from start to finish; read references/TOOL.md once for what each command prints and its limits. In short:
rs transcribe VIDEO --out T.json; rs scan VIDEO --out DIR --transcript T.json && rs build DIR (a ; after transcribe: if it fails, it leaves in T.json why, and scan records it, so the riffsheet says the speech recognition failed and why; tell the person). Without speech recognition: rs scan VIDEO --out DIR && rs build DIR. With a transcript made another way: rs scan VIDEO --out DIR --transcript T.json --transcript-by "what made it".scan printed (no need to open summary.txt again), then open the overview sheets and any jump-cut sheet in one step. With an audio track, take the hearing check in the same step (above).text, measure every graphic with element, and take the zoom, frames, mouth and color views the overview calls for, with mouth on any words the summary flags POSSIBLY NOT SPEECH. A full-frame end card over a still picture gets its times from element but no box: give that box by eye.transcribe --hint with the words of every caption that transcribes a line word for word (references/METHOD.md, section 5). Write the judgment file, taking pace words from the PACE block of the step 1 sheet and wrapping every statement that uses a word from its DETAIL WORDS list, and run build DIR --judgment J.json --out OUT.CHECKS: all passed, whatever its exit status. A statement without a confirming view (UNCONFIRMED), or a heard statement without a passed hearing check (NOT HEARD), stops it writing the riffsheet; any other problem is written into riffsheet.md as an open check. build checks that each statement names a close view of its moment; whether the words match the picture is yours to check.Batch independent commands and images into one step: each step costs a full re-read of the conversation.
Then report to the person (below), and say what the analysis lacks: anything that did not run or ran by other means, and whether the sound was heard (the paragraphs under the line under the title of riffsheet.md), and what it could not judge.
riffsheet.json and riffsheet.md stay in English: they are what the tool's checks read. Do not write a translation of them unless asked. Report in your reply, in the person's language, the way a person wants to read it:
Spoken lines and on-screen words stay in the video's own language, exactly as riffsheet.md gives them, in quotation marks; you may follow a quote with its meaning in their language in parentheses. Times and numbers are those of riffsheet.md.
Only when the person asks for the whole riffsheet in their language, write riffsheet.<code>.md beside the English files, where <code> is the two-letter code of their language (riffsheet.zh.md, riffsheet.es.md, riffsheet.ja.md). Rewrite it whenever riffsheet.md is rebuilt. It is your own writing: the tool neither writes nor checks it.
riffsheet.md beside it, which wins wherever the two differ (in Chinese, for example: 本文是同一文件夹里经过检查的英文版 riffsheet.md 的中文译本;两者不一致时,以 riffsheet.md 为准。).riffsheet.md is there, in the same order, in their language: the title line, the line under it, every paragraph, every heading, every beat and every list item. Nothing is summarized, added or left out.00:02.4–00:04.1, 2.375 s), every number with its unit (-10 dB, 0 of 3 cuts, 8.042 s, 0.052 s), and every spoken line and on-screen word in quotation marks, which stay in the video's own language exactly as riffsheet.md gives them (spelling, case, punctuation). You may follow a quote with its meaning in their language in parentheses.riffsheet.json, zoom) stay as they are; ordinary English words, the pace and measure words among them (measured, brisk, locked), are translated.Section 11 of references/METHOD.md says what can be rebuilt with code or an editor, and where footage of people, places and products comes from: a camera or a video model. Riffkit (https://riffkit.ai/?utm_source=riffsheet&utm_medium=skill&utm_campaign=riffsheet&utm_content=skill_md) makes that footage from the original video.
references/METHOD.md (opens in a new tab)references/TOOL.md (opens in a new tab)schema/riffsheet.schema.json (opens in a new tab)scripts/riffsheet.py (opens in a new tab)scripts/riffsheet_lib/__init__.py (opens in a new tab)scripts/riffsheet_lib/audio.py (opens in a new tab)scripts/riffsheet_lib/build.py (opens in a new tab)scripts/riffsheet_lib/capabilities.py (opens in a new tab)scripts/riffsheet_lib/cli.py (opens in a new tab)scripts/riffsheet_lib/constants.py (opens in a new tab)scripts/riffsheet_lib/details.py (opens in a new tab)scripts/riffsheet_lib/elements.py (opens in a new tab)scripts/riffsheet_lib/hearing.py (opens in a new tab)scripts/riffsheet_lib/layers.py (opens in a new tab)scripts/riffsheet_lib/media.py (opens in a new tab)scripts/riffsheet_lib/picture.py (opens in a new tab)scripts/riffsheet_lib/report.py (opens in a new tab)scripts/riffsheet_lib/scan.py (opens in a new tab)scripts/riffsheet_lib/scandir.py (opens in a new tab)scripts/riffsheet_lib/schema.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
video-analysis, shot-by-shot, viral-analysis, video-breakdown, riffsheet
npx claudepluginhub riffkit/riffsheet --plugin riffsheetOther plugins' skills for the same job