Nov 7, 2026
rea-video Reverse-Engineers Any Video, Shot by Shot
A 3k-star agent skill that judges every shot of a video — filmed, AI-generated, or built in code — then hands you a remake plan split into what to film, what to generate, and what to code.
Was that ad filmed on a phone, generated by a video model, or built in code? rea-video is a 3k-star agent skill that answers that question shot by shot, then gives you a plan to make one yourself.
Why This Skill Matters
A remake starts with knowing how the original was made, and that is hard to see from the outside. rea-video, inspired by the REA (Reverse Engineer Anything) project, works it out from evidence: it tells you shot by shot how the visuals, styled text, editing, and audio were made. Its own FAQ sums up the use case — to understand how the original was made and remake it cheaply.
The README's table covers seven video types: live footage, AI video, avatar, 3D / animation, code / template (kinetic type, UI demos, charts, slide-style cards), screen recording, and mixed edits. Beyond the picture, every video also gets captions and styled text (exportable to SRT / ASS), stickers and picture-in-picture, editing pace, audio (human or AI voice, AI or library music and its BPM, sound-effect placement), and a list of material you will need to supply yourself.
Installation
rea-video is built for AI agents. In Claude Code, Codex, or any agent that can run commands, say:
Install https://github.com/JuneYaooo/rea-video, then break down this video: /path/to/video.mp4
The agent installs the CLI, learns the workflow, and runs the whole thing. You need ffmpeg and Python 3.10+. To install by hand, the README documents:
brew install ffmpeg # or: sudo apt install ffmpeg
git clone https://github.com/JuneYaooo/rea-video && cd rea-video
bash scripts/install_skill.sh # installs the CLI (pip, or pipx / a local .venv if pip is blocked) and links the skill into ~/.claude, ~/.codex, ~/.agents
rea-video --help
Real Workflow: Break Down a Competitor's Ad
Say a competitor's product promo keeps outperforming yours, and you want to know what it is made of before you commission your own.
- Give your agent the install-and-break-down prompt above, pointing at your downloaded copy of the video.
- The pipeline splits the video into shots and separates the audio into voice, music, and effects.
- It gathers evidence: it measures the frames (frame cadence, sensor noise, whether the whole image is panning as one plane, AIGC tags in metadata), looks at the images (hands, text, physics), and listens (BPM, key, singing vs speech).
- It decides. Hard evidence like AIGC tags and frame cadence outranks "looks like"; conflicts are flagged for the agent to review visually.
- It plans the remake, batching shots by what the target video model can actually do — max clip length, multi-shot support, and how many reference images it takes.
You get a one-line summary (the README's example: "41% AI video + 59% code UI, 8 s of real screen recording, library music at 122 BPM"), a remake plan split into what to film, what to generate, and what to code, and a full report.html with per-shot frames, evidence, prompts, camera and lighting notes, and the audio breakdown.
A video-capable model is optional. Tools-only mode is offline and free, and already accurate on original files. Add Gemini or Doubao by giving the agent the endpoint and key, and live/AI/3D calls get more accurate and every shot gets a reverse-engineered prompt; without one, an agent that can see images checks the uncertain shots itself.
The README's accuracy table, weighted by shot duration: tools alone score 98.3% on the 15-video tuning set, 99.6% / 98.9% on two holdout sets (9 and 7 videos), and 88.6% on ten re-encoded WeChat videos. Adding Gemini brings those re-encoded videos to 99.6%, and agent visual review to 100%. Platform downloads have been recompressed, which wipes out the noise evidence, so it takes a vision check to get back above 99%.
Real Workflow: From Breakdown to Remake
rea-video does not render a video itself. The README's FAQ describes what comes next: with capsule-cinema installed (the README links it to the author's cheap-claude-video repo), AI shots are generated and placed back on the original timeline automatically; live shots you film from the shooting plan; code shots the agent writes as a Remotion project. Automatic video generation does a free dry run first and only calls paid models after you confirm.
If you want a quick lookalike rather than an understanding of the original, the same FAQ points at Hypit, a one-click remake tool: "For a quick lookalike, Hypit is faster." The README adds that the two work fine together.
Tips
- Reproduce with the original platform download. The sample videos in
docs/cases/videos/were re-compressed to keep the repo small, which strips the TikTok / Douyin platform tags, so running them yourself gives different results from the published reports — especially without a vision model. - Reports come out in the language you ask in (Chinese or English; your agent passes
--lang). The detailed docs are in Chinese for now; your agent reads them and answers in your language. - Add a vision model when your source is a platform download: the tools-only score drops to 88.6% on re-encoded videos, and that is where Gemini or agent review recovers accuracy.
- Read
docs/cli.mdfor CLI usage and the capsule-cinema integration, andeval/RESULTS.mdfor how to reproduce the accuracy numbers.
When Not to Use This
rea-video outputs a breakdown and a plan, not a finished video. For a fast lookalike of a reference clip, the README itself says Hypit is faster. And it is not a reposting tool: the README says it is for learning a video's structure, pacing, and techniques, then remaking with material you have the rights to — do not reuse other people's footage, music, characters, or likeness, and follow platform rules and local AI-content labeling requirements when you publish.
See the leaderboard for more skills.