Reverse Engineer Video logo

Reverse Engineer Video

Community
dotslashsimran
reverse-engineer-video

Break down a reference or viral video clip so it can be remade. Finds every cut and dissolve, times each shot, measures pacing, works out the camera move in each shot (static, pan, tilt, zoom or push in, roll, handheld shake, with speed), finds beats and loudness jumps and checks whether the cuts land on them, and reads on-screen text and speech when the tools are installed. Makes a contact sheet, a timeline strip, breakdown.md with a beat map and a remake plan, and breakdown.json. Also makes side-by-side or stacked comparison videos of a remake against the reference. Use when the user says "break down this video", "reverse engineer this clip", "how was this edited", "shot list from this video", "why does this go viral", "recreate/remake this video", "what camera moves are in this", "do the cuts hit the beat", or "compare my remake with the original".

Overview

Publisherdotslashsimran
Repositorysimcraft
Skill namereverse-engineer-video
Stars
362
Forks
25
Bundled files
10
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by dotslashsimran on GitHub. Read the source before you install it.

Installation

Install the Reverse Engineer Video AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dotslashsimran/simcraft/tree/main/skills/video/reverse-engineer-video
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dotslashsimran/simcraft.git /tmp/simcraft
mkdir -p .claude/skills
cp -r /tmp/simcraft/skills/video/reverse-engineer-video .claude/skills/reverse-engineer-video
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Reverse Engineer Video in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Reverse Engineer Video on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Reverse Engineer Video is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Reverse engineer a video

Scripts live in scripts/. They run on python3 with numpy. For better tracking of very fast moves, run sh setup.sh once and use .venv/bin/python instead (it adds OpenCV; sh setup.sh --whisper also adds speech-to-text). On-screen text needs tesseract on the PATH. Every optional part is skipped cleanly when its tool is missing, and the report says so.

Steps

  1. Analyse. Write the output somewhere other than the video's own folder:

    python3 scripts/analyze.py <clip> -o <out_dir>

    It writes breakdown.md, breakdown.json, contact_sheet.jpg, shots_detail.jpg and timeline.png.

  2. Check the cuts before trusting anything else. Open timeline.png and contact_sheet.jpg. If two shots in the sheet look like the same shot, a cut was false: run again with --sensitivity 0.7. If a sheet frame shows two shots blended or a shot changes inside one tile, a cut was missed: use --sensitivity 1.4. Fast flashes shorter than --min-shot (0.1 s) are listed as flash frames, not shots.

  3. Look, then fill in the gaps. Read shots_detail.jpg (start, middle and end frame of each shot, with the measured numbers). Then edit breakdown.md:

    • fill the "what happens" column of the beat map, one short line per shot,
    • write the hook read (see below),
    • write the remake plan. Use the measured times and camera numbers; do not round them into guesses.
  4. Remake, then compare at the same timestamps. You cannot watch video, so compare stills first:

    python3 scripts/compare.py <ref> <remake> --stills compare.jpg --breakdown <out_dir>/breakdown.json

    Fix the biggest difference, repeat. When it is close, make a video for the user:

    python3 scripts/compare.py <ref> <remake> -o compare.mp4 --mode side     # or stack for vertical posts
    python3 scripts/compare.py <ref> <remake> -o overlay.mp4 --mode blend    # lines up horizons and edges

    Use --ref-start / --remake-start if one clip has a lead-in. A shorter remake holds its last frame, or repeats with --loop-remake. Output is always re-encoded.

Reading the hook (first 2 seconds)

The "Hook" section lists measured facts: when the first cut comes, how many cuts fall in the first 2 s, whether sound starts at frame one, the first words and text, and how busy the opening is compared to the rest (motion first 2s vs rest, above 1 means busier). Use them to answer three questions in plain words:

  • What is the promise in frame one? A strong first frame shows the payoff or a clear question (a finished result, something odd, a face mid-sentence). An establishing wide shot or a logo is a weak start.
  • What changes before 0.5 s? A cut, a move starting, a sound hit or text appearing. If nothing changes, say so: viewers decide in this window.
  • Why stay to 2 s? Usually an open loop: text or speech that asks a question, or a move that has not finished.

Camera numbers, and rebuilding a shot in 3D

Each shot gets a label (static, pan, truck/arc, tilt, zoom in/out, push in/pull out, roll, handheld). Long shots with several moves are split into phases, such as push in > tilt up. Each label comes with numbers: pan speed in % of frame width per second, tilt in % of frame height per second, total zoom factor, shake in % of frame width, and parallax. Directions describe the camera, not the picture. "Zoom" means the picture scaled with no parallax (a lens zoom, a digital scale, or a very far scene). "Push in" means there was parallax, so the camera really moved. breakdown.json has a camera path per shot (pan, tilt and zoom over time) to use as keyframes.

To rebuild a scene in three.js or a 3D tool, measure the geometry on a sharp frame from shots_detail.jpg:

  • Horizon height (where the vanishing points sit) tells you camera pitch: a horizon on the frame's centre line means a level camera; above centre means it tilts down.
  • Lens: take two vanishing points of lines that are at right angles in the real world. The focal length in pixels is sqrt(-(v1 - c)·(v2 - c)), where c is the frame centre. Vertical field of view is 2·atan(H / 2f).
  • Camera height: if the horizon crosses a person standing on the same floor at their eye line, the camera is at eye height (about 1.6 m). Where it crosses them gives the ratio. The full method, with worked numbers, is in reference.md.

Rules

  • Never write into the reference video's folder, and never change the reference file.
  • Trust measured times over what you think you see. Quote cut times from breakdown.json.
  • Say clearly which parts were skipped (no transcript, no text reading) instead of guessing them.
  • In the beat map, "on beat" means within the tolerance shown (default 1.5 frames, at least 50 ms). Always quote the chance rate next to the hit rate: 60% of cuts on onsets means little if random cuts would score 50%.

How each measurement works, the limits, the test results and all options: reference.md.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Reverse Engineer Video AI skill do?

Break down a reference or viral video clip so it can be remade. Finds every cut and dissolve, times each shot, measures pacing, works out the camera move in each shot (static, pan, tilt, zoom or push in, roll, handheld shake, with speed), finds beats and loudness jumps and checks whether the cuts land on them, and reads on-screen text and speech when the tools are installed. Makes a contact sheet, a timeline strip, breakdown.md with a beat map and a remake plan, and breakdown.json. Also makes side-by-side or stacked comparison videos of a remake against the reference. Use when the user says...

Why use Reverse Engineer Video on TypingMind?

Because you install it once and use it with any model. Reverse Engineer Video is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Reverse Engineer Video in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dotslashsimran/simcraft/tree/main/skills/video/reverse-engineer-video. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Reverse Engineer Video?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Reverse Engineer Video?

As many as you like. As long as a model supports skills, you can use Reverse Engineer Video with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Reverse Engineer Video AI skill free?

Yes. It is published on GitHub by dotslashsimran under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇