reverse-video
Paste a link to any reel (a travel montage, a cinematic B-roll edit, a talking head, a tutorial), get its editing style as numbers, then edit the user's own footage to match. Copy the style, never the content.
Onboarding (first run, and any time context.dev isn't connected)
reverse.py sits next to this file: python3 <skill>/reverse.py ....
- Check the tools. Run
python3 <skill>/reverse.py setup. It checks ffmpeg, the Xcode command line tools, the Python packages and builds the on-device text reader (bin/vision). For each!!line, show the fix it prints and offer to run it. Mac only: the text and face reader is Apple Vision. - Check context.dev. Look at your own tools: context.dev's tools are named
web-scrape,get-usageand so on, under a server calledcontext(or a connector named Context.dev). If they're there, skip to step 4. - Walk them through it, in this order, with these exact links:
- "First, make a free context.dev account: https://link.context.dev/keeran-jagadesan. The free plan gives you 1,000 credits a month, and one video link costs 1 credit."
- "If you ever upgrade, code KEERAN25OFF takes 25% off your first 6 months."
- "That's Keeran's referral link, so he may earn a commission if you sign up or upgrade through it."
- Connect it. In Claude Code, offer to run this for them (ask first):
then tell them to typeclaude mcp add --transport http context https://mcp.context.dev/mcp/mcp, pickcontextand sign in with the account they just made. In the Claude app: Settings > Connectors > Add custom connector, URLhttps://mcp.context.dev/mcp. - A new connector shows up after Claude Code restarts. Tell them to restart and paste their link again. Always use the link above, never the bare context.dev address, and always say it's a referral link.
- Confirm it works. Call context.dev's
get-usage(it costs no credits) and tell them how many credits they have. Then go on to step 1 below with their link.
If they don't want to connect context.dev, they can still use a video file they already have: skip step 1 below.
Every run
1. Get the video
| Link | context.dev call | You get |
|---|---|---|
Instagram reel or post (/reel/, /p/) |
web-scrape formats.parse, parseParams: {type: "prebuilt", parser: "instagram-post"} |
video_url, caption, views, likes, comments, posted date |
| TikTok video | same, parser tiktok-video |
video_url (downloads without cookies), counts, music |
| A creator's page | parser instagram-profile or tiktok-feed, then pick the post |
their latest posts with counts |
| A file the user has | skip this step |
python3 <skill>/reverse.py fetch "<video_url>" study
Save the parser's caption and counts to study/post.json. The video_url expires after a few hours, so fetch
right away.
2. Take it apart
python3 <skill>/reverse.py analyze study/video.mp4 -o study
About 20 seconds for a 30-second reel. It reads every frame and writes:
STYLE.md: rhythm (cuts, shot lengths, opening hold, transitions: hard cut, whip, flash, dip; camera moves: push-in, pull-out, pan; tempo, cuts on the beat, where the drop is and how the cutting speeds up after it, loudness, words per second), text on screen (how much, how big, how far down, caps, weight, colours, word-by-word builds), look (framing: full frame or a 16:9 / 4:3 / 2.39:1 band and where it sits; the grade: black point, contrast, saturation, warmth, shadow and highlight tint; palette, faces), the hook, a shot list with each shot's length, transition in, move and energy, and a text track. Add--no-wordsfor a reel with no talking.shots.jpg(one frame per shot),timeline.png(cuts, text, beats, loudness on one strip),style.json,detail.json,frames.csv(every frame's numbers).
3. Look, then write the read
Open shots.jpg, timeline.png and a strip of the video (ffmpeg -i study/video.mp4 -vf "fps=2,scale=144:-1,tile=11x5" -frames:v 1 study/strip.jpg). The numbers can't tell a phone filming a laptop from a screen recording, or a meme from
B-roll. You can. Fill in "The read" at the bottom of STYLE.md:
- Format: what the video is, shot by shot (talking head, split screen, phone filming a screen, B-roll over voice).
- Hook: what happens in the opening hold, on screen and said.
- What makes it feel like itself: the three or four choices that carry it.
- To copy it on a new clip: a recipe with the measured numbers.
Treat the text readings as hints: OCR picks up words inside screenshots too. Check the caption numbers against the strip.
4. Edit the user's footage the same way
Ask what they're working with, then write an edit plan from the read before you touch anything.
A montage (travel, cinematic, B-roll, music-driven). They give you a folder of clips and a song.
- Shot list: copy the reference's shot count and lengths, scaled to their song's tempo, so cuts land on their beat the way the reference's do (the measured share on the beat). Hold the opening as long as the reference does; if the cutting speeds up after the drop, find their song's drop and do the same.
- Fill each slot with their clip that fits: wides where the reference has wides, people where it has people, the strongest shot on the drop. Pull the best moment of each clip, not its first second.
- Framing: same as the reference (a 16:9 band in a 9:16 frame at the measured height, a 2.39:1 letterbox, or full frame). Never mix framings inside one reel.
- Grade: match the numbers (black point, contrast, saturation, shadow and highlight tint, warmth) with the user's
own colour tools or ffmpeg (
eq,curves,colorbalance). Log or flat footage gets a normal conversion first. - Transitions and moves: the same kinds in the same places (whips where it whips, push-ins where it pushes in).
- Text: their own words, in the reference's position, size and case.
A talking head or tutorial. They give you a take.
- Opening hold, then the measured cut rhythm as punch-ins or B-roll cuts, captions in the measured position, size,
case, weight and colours, the same amount of text on screen, the same end card. For logos and screenshots the
edit needs, use the
b-rollskill.
Then edit with whatever they use: their own Claude editing skill, Remotion, HyperFrames, ffmpeg, or export the plan as a cut list for CapCut, Premiere or Resolve. Show the plan first, then the render next to the reference.
Rules
- Copy the style, not the content. Never reuse the creator's footage, face, voice, words, music file, logo or watermark. Captions are the user's own words.
- The download is for study. Don't repost it or put it in the user's edit.
- Numbers come from the measurement. If something wasn't measured (the font's name, the music track), say so.
- A measurement is one video. Say so before you call something "their style".