/clipper:clipperfrom clipper
Downloads long-form video/audio (YouTube, X, local files), transcribes with on-device Whisper, identifies top clip moments, cuts clean clips on word boundaries, and packages them with a Google Doc and Drive upload.
Ships in clipper. 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.
Long video in, post-ready clip pack out. Built for the Eli Ben-Sasson clip packs (The Block, Oct 2026, and "What If Bitcoin Can't Survive Quantum?", Nov 2026) and works on any long-form talk: video podcasts, interviews, panels and X broadcasts.
source (url or file)
-> fetch.py download to <work>/source.mp4
-> transcribe.py full.wav, segments.json, transcript.txt
-> YOU read the transcript, write plan.json (clips + captions)
-> cut.py clips/*.mp4 (and full_episode.mp4)
-> check.py head/tail transcripts, first/last frames, contact sheet
-> words.py word-level timing to fix any bad boundary, then re-cut
-> package.py ~/Desktop/<slug>/ + ~/Desktop/<slug>.zip
-> drive_upload.py Drive folder, every video shared "anyone with link"
-> make_doc.py Google Doc with captions + links, shared, link printed
S below means this skill's scripts/ directory. Every script takes the work dir as its first argument. Work dirs live in ~/liveclip/<slug>/.
PY=$(python3 S/setup.py) # prints a python with the whisper backend; reuses ~/liveclip/.venv if present
Needs ffmpeg, yt-dlp, and gcloud for Drive. The whisper backend depends on the machine:
mlx-community/whisper-large-v3-turbo.large-v3-turbo. It uses an NVIDIA GPU when one is available (on Windows, setup.py installs the CUDA 12 cuBLAS and cuDNN 9 wheels), otherwise the CPU (int8, slower but fine for a single episode).CLIPPER_BACKEND=mlx|faster-whisper, CLIPPER_DEVICE=cpu|cuda, CLIPPER_MODEL=<faster-whisper model>.The model downloads on first run (about 1.6 GB).
On Windows, run the same steps from PowerShell: $PY = python S/setup.py, then & $PY -I S/transcribe.py <work> and so on. Use python wherever this file says python3.
python3 -I S/fetch.py "<url or path>" ~/liveclip/<slug>
source.<ext>, nothing copied. Where symlinks are not allowed (Windows without Developer Mode) it is hard-linked, or used in place from source_ref.txt if it sits on another drive.CLIPPER_COOKIES=chrome.x.com/i/broadcasts/...) works once the stream ends. For a stream that is still live (macOS only for now), use S/live/liveclip <url> (rolling 20 min buffer into ~/liveclip/buf) and S/live/clip <seconds> to grab the last N seconds.$PY -I S/transcribe.py ~/liveclip/<slug>
Writes segments.json and transcript.txt with lines like [12:34 754.2-760.9] text. A 50 min episode takes a few minutes.
Read all of transcript.txt. Then write <work>/plan.json:
{
"slug": "eli-theblock-oct26",
"title": "eli ben-sasson on the starting block (the block), oct 26",
"source_url": "https://x.com/TheBlockCo/status/...",
"speaker": "eli ben-sasson",
"handles": "w/ @elibensasson @theblockco",
"pad": [0.3, 0.8],
"episode": {
"trim_start": 29.0,
"trim_end": null,
"caption": "eli ben-sasson joins ... \n\n\"verbatim quote\"\n\nfull interview below, timestamps in the replies\n\nw/ @elibensasson",
"timestamps": [["0:00", "intro"], ["5:26", "why starknet is researching its own l1"]]
},
"clips": [
{
"name": "01_l1_vote_93pct",
"title": "the 93% l1 vote",
"start": 379.04,
"end": 433.85,
"hook": "one line on what the clip is about",
"caption": "x-ready post. context line\n\n\"verbatim quote from the clip\"\n\nw/ @elibensasson @theblockco"
}
]
}
How to pick clips:
name is NN_snake_case_topic. Order by how strong the clip is, or by episode order if the user prefers.start / end are seconds in the source. pad adds pre-roll and tail at cut time (default 0.3 s and 0.8 s), so put the times on the words themselves.episode is optional. Set it to cut a trimmed full episode (drops pre-show dead air via trim_start). Timestamps are relative to the trimmed episode. Set "episode": null to skip it.Caption rules (default house style; if the user gives their own voice or style guide, follow theirs instead, but the verbatim-quote and no-dash rules always hold):
w/ @handle @show). Look up the show's real X handle if unsure.$PY -I S/cut.py ~/liveclip/<slug> # all clips + full episode
$PY -I S/cut.py ~/liveclip/<slug> --only 03_x # re-cut one clip after fixing plan.json
H.264 CRF 18, AAC 160k, +faststart, short audio fades so cuts never click. Runs 3 encodes in parallel.
$PY -I S/check.py ~/liveclip/<slug>
Prints every clip's duration plus what is said in its first and last 5 s, and writes first/last frames and check/contact.jpg. Read the output and open the contact sheet. A clip passes when the head starts on a clean first word, and the tail ends on a finished sentence with no next speaker sneaking in.
To fix a boundary, get word timings around it:
$PY -I S/words.py ~/liveclip/<slug> 2604 10 # words between 2604 s and 2614 s, absolute times
Update start/end in plan.json, cut.py --only <name>, then check.py --only <name>. Repeat until every clip passes.
$PY -I S/package.py ~/liveclip/<slug> # -> ~/Desktop/<slug>/ and ~/Desktop/<slug>.zip
$PY -I S/package.py ~/liveclip/<slug> --dest ~/Downloads
The folder holds every clip, the full episode, transcript.txt and clips.txt (source times, lengths, hooks, captions). Use the folder name the user asks for (--name "some folder").
Drive needs a gcloud login with Drive scope. The script checks first and stops with the fix if the token is missing or lacks Drive. Tell the user to run:
! gcloud auth login --enable-gdrive-access
Uploading makes the files public ("anyone with the link"). Confirm with the user before the first upload of a new pack.
python3 -I S/drive_upload.py ~/liveclip/<slug>
Creates a Drive folder named after title, uploads the full episode and every clip (resumable, 32 MB chunks), shares each publicly and records links in <work>/links.json. Safe to rerun: files already in links.json are skipped.
python3 -I S/make_doc.py ~/liveclip/<slug> --no-upload # writes doc.html only, read it first
python3 -I S/make_doc.py ~/liveclip/<slug> # creates the Google Doc in the folder, shares it, prints the link
The doc has: title, Drive folder link, original source link, the full episode (link, length, caption, timestamps), then one section per clip (title, length, where it sits in the episode, caption, link).
Before handing over the link, verify what a reader gets: export the doc as text (https://docs.google.com/document/d/<id>/export?format=txt) without auth and check that the links work anonymously and that no markup leaked through.
Reply with: the Desktop folder path, the zip path, the Doc link, the Drive folder link, and the clip list (name, length, one-line hook). Note anything the user should check (profanity, third-party footage rights).
Built from real clip packs of Eli Ben-Sasson (StarkWare) interviews: The Block (8 clips plus full episode) and "What If Bitcoin Can't Survive Quantum?" (13 clips). Work dirs for past runs live under ~/liveclip/<slug>/ on the machine that made them.
scripts/check.py (opens in a new tab)scripts/common.py (opens in a new tab)scripts/cut.py (opens in a new tab)scripts/drive_upload.py (opens in a new tab)scripts/fetch.py (opens in a new tab)scripts/fetch.sh (opens in a new tab)scripts/gdrive.py (opens in a new tab)scripts/live/clip (opens in a new tab)scripts/live/liveclip (opens in a new tab)scripts/make_doc.py (opens in a new tab)scripts/package.py (opens in a new tab)scripts/setup.py (opens in a new tab)scripts/setup.sh (opens in a new tab)scripts/transcribe.py (opens in a new tab)scripts/words.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub realadii/clipper-skill --plugin clipperOther plugins' skills for the same job