agentleFS
SanilSharpsheepSanilSharpsheep/sheepsrobotics-video-skills/skills/rea-video/SKILL.md

rea-video

Skill1 starsChanged 8 days agoMITView on GitHub

Use when the user shares a reference video and asks how it was made, whether it's AI, what footage/music/SFX it uses, how to remake it, or how a magic trick works. Runs the rea-video CLI.

  • Reads credentials
  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 8 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    You can see images, so you are the VLM: Do the "visual review and merge" below.

    line 41
  2. Very specific:

    Read instructions in review_tasks.json, then look at each shot's images (priority=high is required).

    line 71
  3. Very specific:

    Look at storyboard.jpg and audio.png for the overall picture.

    line 90
  4. Very specific:

    Cast: check whether one character got split into several (inconsistent naming across shots is common).

    line 92
  5. Very specific:

    If you edited review_answers.json in steps 3, 5, 6 or 7, re-run apply-review, or the edits won't reach the report.

    line 100
  6. Very specific:

    If the user says a shot is wrong: rea-video correct out/ref --shots 3,5 --label stop_motion --note "<user's words>".

    line 107
  7. Distinctive:

    When there are AI shots, add a note: report prompts are generic structure, so tune them to the target model's prompt guide before …

    line 128
  8. Very specific:

    When the user wants to remake, re-create or do "the same one", list the remake options at the end, one line each (details in …

    line 130
  9. Very specific:

    Pick the model: Use the one the user named, else prefs engine, else default to MiniMax H3 without stopping to ask.

    line 142
  10. Very specific:

    Write final per-unit prompts in the model's prompt style to out/ref/remake/prompts.json ({"G1": "..."}).

    line 155
  11. Distinctive:

    If the user wants to make it themselves, give the "do it like this" steps from report part 2 first, before model rules.

    line 158
  12. Distinctive:

    Don't judge by art style alone.

    line 170
  13. Distinctive:

    Don't count text inside a code-rendered frame as an overlay.

    line 171
  14. Distinctive:

    Don't call the user's real material "AI-generatable".

    line 172
  15. Distinctive:

    Don't treat missing metadata as evidence of "not AI".

    line 173
  16. Distinctive:

    Don't call paid generation before the user confirms.

    line 174

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

rea-video: reverse-engineer how a video was made

Adapted from https://github.com/JuneYaooo/rea-video (Apache-2.0, Copyright 2026 JuneYaooo; see LICENSE-APACHE-2.0.txt and NOTICE.txt in this folder). Changes: the original skill is in Chinese; this is a shortened English port of its workflow with setup notes for cloud workspaces. The CLI itself prints help in Chinese, but --lang en makes every report and summary English.

You are a video-production reverse engineer. Given a video, answer:

  1. How was each shot's base image made? Pick one of 11 classes: live action / film-TV clip / AI video / digital human (avatar) / 3D render / 2D animation / stop motion / code-template render / screen recording-screenshot / still image with pan-zoom / static frame. 2D animation, stop motion and film/TV clips can't be detected by the tool, so judge them by looking. For live action, also check for AI edits (face swap, lip sync, stylization, outfit or background swap) and record them in ai_edits.
  2. What's layered on top (packaging)? Per-line subtitles (timing, color, stroke, keyword highlights, entrance), decorative text, titles, chapter cards, tracking labels, memes/GIFs/stickers/picture-in-picture, layout templates, and which SFX are synced to text pops or stickers.
  3. What is the creator's real material? Two kinds: (a) real pixels embedded in the frame (footage, photos, screenshots, screen recordings, clips playing inside a layout). A remake needs the original files. (b) Products, logos or people appearing inside AI/3D shots. These are reference images to prepare, not embedded material.
  4. How was the sound made? Voice (TTS or human), BGM (style / BPM / key / sections), SFX (timestamp, type, which visual event), and whether cuts land on beats. Focus on the source: AI-generated or stock. A full AI music video is probably an AI song. Ordinary background music is probably stock, but AI-workflow videos often use Suno. Mark it "unconfirmed" and say how to confirm.
  5. For live action: how was it shot, lit, graded and cut? Shot size, camera position, selfie vs tripod, normal speed / slow-mo / timelapse; key-light direction, softness, ratio, color temp, fill and rim; the lighting setup (front soft, key+fill, side, backlight, night ambient, low-key, high-key, colored mood, product tabletop, outdoor sun/overcast/backlit; write "outdoor" in lighting.location when it applies); grade (natural, teal-orange, Japanese airy, film, B&W, dark); jump cuts, punch-ins, B-roll rhythm.
  6. How to remake it? Give a route and tools for every shot. Live action gets a shooting plan (lighting + gear list), not just "approximate with AI".

Core rule: every conclusion needs evidence. If you can't be sure, write "unconfirmed" and say what's missing. "Live vs AI unconfirmed (leaning AI 70%)" beats a made-up certainty.

0. Setup (first run in a session)

Needs ffmpeg/ffprobe and Python 3.10–3.14.

# CLI (in this cloud workspace a venv avoids the system-python restriction)
python3 -m venv ~/rv-venv && ~/rv-venv/bin/pip install -q "rea-video[ocr] @ git+https://github.com/JuneYaooo/rea-video"
export PATH="$HOME/rv-venv/bin:$PATH"; rea-video --help
# Optional local speech recognition (zh/en/ja/ko/yue) + speaker split, for videos with no burned-in subtitles:
#   ~/rv-venv/bin/pip install sherpa-onnx
# Reference docs used below (taxonomy, review rules, output template, remake guides):
git clone --depth 1 https://github.com/JuneYaooo/rea-video ~/rea-video-repo
REF=~/rea-video-repo/skills/rea-video/references

On the user's own machine, use pipx install "rea-video[ocr] @ git+https://github.com/JuneYaooo/rea-video" if pip reports externally-managed-environment. On Windows use py -3.12 -m pip install ".[ocr]" from a clone and run it as py -3.12 -m rea_video if the command isn't on PATH. Full troubleshooting is in $REF/setup.md.

The reference docs are in Chinese. Read them for the details, but write everything for the user in their language.

VLM (optional, recommended). This is a multimodal model the tool sends clips and keyframes to. Configure it with GEMINI_API_KEY (Gemini; it also hears audio) or REA_VLM_BASE_URL / REA_VLM_API_KEY / REA_VLM_MODEL in a .env, then pass it with --env-file. Never open the .env or paste keys into chat. Without a VLM the tool still runs on pixel stats, frame rate, OCR and metadata, but separating live, AI and 3D gets weaker.

  • You can see images, so you are the VLM. Do the "visual review and merge" below. Say "no VLM; agent visual review" in the result.
  • The repo's eval found that agent review + merge beats Gemini alone. Gemini tends to call cartoon-3D AI video "3D render" and drawn game UIs "screen recording". So always do the visual review, even with a VLM on, and judge independently instead of copying the VLM.
  • What a real VLM adds that you can't: it watches motion in the clips and hears the audio. With stills only, voice and SFX sources stay "unconfirmed".
  • Whether the VLM actually worked is shown by the VLM: line of rea-video summary. failed or not_configured means it was off, and the report must say so.

1. Standard flow

Working copy: put the user's video in the working directory (staged uploads are originals; don't modify them).

rea-video memory                     # ⓪ saved prefs (default engine, VLM on/off, lang) and past correction types
rea-video survey ref.mp4 -o out/ref  # ① look first: contact sheets fix cut points & transitions, then zoomed frames, then per-shot keyframes
#   Look at the images it lists, write answers into the file named under "waiting", re-run the same command until status is done.
#   Answer one round's images together. Answers use JEV format: options + probabilities only; skip gaps that are "same";
#   for zoomed sheets write `scenes` first (what appears in each tile, in order); for keyframe sheets write one `look` per image, skip unchanged shots.
#   (With --vlm, decompose does this step automatically.)
rea-video --env-file <.env> decompose ref.mp4 -o out/ref --vlm --lang en   # ② drop --env-file/--vlm if no VLM
#   --lang en|zh  (use en for any non-Chinese user); --ocr-lang ja / ko for Japanese/Korean on-screen text; --asr-lang bn for Bengali speech
rea-video summary out/ref/breakdown.json   # ③ compact summary; low-confidence shots flagged; check the VLM: line

Outputs in out/ref/: VIDEO.md + video/ (agent-readable breakdown pack), report.html / report.md (for the user), breakdown.json, storyboard.jpg, audio.png, shots/, stems/, packaging/.

Read the pack layer by layer to save tokens. Start with out/ref/VIDEO.md (card + overview + a map listing path | ~tokens | contents, about 2k tokens), which answers most questions. Use video/timeline.md for per-shot answers (one line per shot; keys with ~ are inferred, keys without it are visible on screen). Use video/shots/<id>.md plus its frames to verify a shot. Other video/*.md files cover audio, packaging, remake, look, cast, content and moments, and video/rhythm.md has rhythm, transitions and keyframes. Never read breakdown.json (hundreds of thousands of characters) or report.md (it's for humans). For review, the shots/shot_XXX.jpg contact sheet is enough. _first / _last frames are references for generation models.

Visual review and merge (mandatory if you can see images)

rea-video review out/ref     # writes review_tasks.json (images per shot, tool verdict, priority) + review_answers.json (template)

Read instructions in review_tasks.json, then look at each shot's images (priority=high is required). In review_answers.json, fill:

  • label_probs, evidence, description, embedded_assets for each shot. Leave label_probs as {} for shots you didn't look at; they're skipped.
  • narrative: role (hook / context / extra info / proof / turn / conclusion / call to action / mood) and point (one sentence). The report chains these into a "narrative line".
  • split_suggestion (cuts seconds + labels + note) if a shot is really several cuts merged. This happens when dark graphics alternate with dark talking-head footage.
  • performance for acted shots: main emotion, intensity, visible expression and action, change within the shot, vocal tone. Fill performance.move / movers / full_body / backdrop only when big full-body motion is the point (dance, fights, fitness). That switches the remake to motion-driven. Skip it for talking heads and product demos.
  • Top-level cast: characters, sets and props across the film. Identify the same character across shots as one, and describe looks well enough to recreate. Add one line on visual style.
  • Top-level story: summary (one line), hook (how the first seconds grab attention), highlights (2–4 techniques, each with a timestamp and why it works).
  • overlay_text per shot when the frame contains text that belongs to the scene (phone screens, packaging, signs). List only the post-added subtitles and decorative text here; the rest is treated as scene content.
  • same_clip_as on the shorter copy when the same clip appears twice (a teaser up front and the full clip later), so it's generated once.
  • Missing prompts (no VLM): fill replication.image_prompt / video_prompt / video_prompt_en.
rea-video apply-review out/ref --by Claude   # merge: rewrites breakdown.json + reports, prints which shots changed
rea-video summary out/ref/breakdown.json

Your answers are fused with deterministic evidence (frame rate, AIGC watermarks still count), not overwritten. If the merged verdict differs from your view, explain why in the reply. Fusion rules, rules for agents that can't see images, and original-vs-transcoded rules are in $REF/review.md.

Then check it yourself; don't just relay tool output

  1. Look at storyboard.jpg and audio.png for the overall picture.
  2. For shots flagged low-confidence or with a close runner-up: open shots/shot_XXX.jpg. If needed, pull frames with rea-video tiles ref.mp4 --start 12.3 --end 13.1 --every 0.1 -o out/ref/check.jpg, then go through the confusion table in $REF/taxonomy.md.
  3. Cast: check whether one character got split into several (inconsistent naming across shots is common). A remake fixes one reference image per character across all generation units. Fix it in top-level cast.
  4. Audio ($REF/audio.md): listen via stems/vocals.wav and stems/music.wav, then read the "sound source" line in summary. Signal-detected SFX are low-confidence candidates; without a VLM, say "light SFX may be missed". Fallback SFX matched to visuals (deterministic_anchored) are real only about 40% of the time, so write "possibly".
  5. Live action: the end of summary (video/look.md) lists framing / camera / lighting / editing / format plus a shooting plan and gear. Add what pixels can't measure in each shot's aspects and the top-level aspects: camera angle, selfie vs rig, key-light source, catchlights, rim/background lights, practicals in frame, likely device, video format. Platform transcoding crushes shadows, so measured softness and fill read conservative. Lighting notes on AI/3D shots are labelled "not a shooting plan" and are for prompts only.
  6. Real material ($REF/materials.md): the detector finds most screenshots and photos embedded in code templates, but misses dark or semi-transparent background photos.
  7. Packaging (video/packaging.md, files in packaging/):
    • Subtitle timing and style are measured and usually reliable. Identify the font by eye.
    • For stickers marked "needs visual check", look at packaging/sticker_XX.jpg and fill packaging.stickers → is_overlay, what. Add anything missed to packaging.missed.
    • Fix misclassified decorative text or labels via packaging.text → kind.
  8. If you edited review_answers.json in steps 3, 5, 6 or 7, re-run apply-review, or the edits won't reach the report.
  9. Where you disagree with the tool, your review wins. Give the reason.

Special moments (magic reveals, twists, climaxes, bloopers, highlights)

With a VLM, decompose already finds these. Otherwise, for magic videos (summary will hint) or when the user asks for highlights, run rea-video moments out/ref and answer/re-run until it finishes. Read the dialogue and overview first to set segments, then zoom per segment to fix keyframes (initial state, the move, the instant of change, the reaction). Write a 3–6 step explanation. The change often happens before the camera shows it or anyone gasps. Draw red circles only when sure. Tool candidates are hints and mostly wrong. Results go to video/moments.md and moments/.

Memory

  • If the user says a shot is wrong: rea-video correct out/ref --shots 3,5 --label stop_motion --note "<user's words>". Use --start/--end for a time range, --shots all for the whole video, --real yes|no for real material. Label names are in $REF/taxonomy.md.
  • Standing prefs: rea-video prefs engine <id>, prefs vlm on, prefs env_file <path>, prefs lang en, or prefs --note "..." for anything else.
  • Record only what the user explicitly said.

2. Deliver to the user

Reply in the user's language. Language priority: language the user asks for > language of the question > lang pref > Chinese. The tool supports --lang en|zh. For other languages, run en, write the reply in the user's language, and if they want a report file in their language, translate report.md to report_<lang>.md. If you forgot --lang at decompose, apply-review out/ref --lang en regenerates the report text.

Structure (full template in $REF/output-template.md):

  1. One-line verdict, e.g. "Mixed: base image 62% AI video, 30% code template, 8% live; all subtitles code-overlaid; 2 real screenshots; female TTS + 110 BPM pop BGM, cuts on beat."
  2. Content & cast: what the video is about; main characters, sets and products.
  3. Narrative line (video/content.md): what each beat does. Suggest keeping the line and swapping in the user's own case and material, not just a new lead.
  4. Remake plan, organized the way it would be produced:
    • AI shots → generation units: consecutive shots generated in one call, which model, references (product/person images, original clip), merged multi-shot prompt, how units join.
    • Live shots → shooting setups: shots sharing a set and camera position, lighting per setup, wide before close.
    • Acted shots → how to recreate emotion and performance.
    • Code renders → per-shot element and motion timeline.
  5. Shot table: # | time | visible in frame | overlays | method (inferred, confidence) | evidence | material source | remake route. "Visible" holds only what the screenshot shows; tool measurements go under evidence.
  6. Packaging, Audio, Real material you must supply, Open questions.
  7. The path to report.html. Send it plus storyboard.jpg with SendUserFile. For code-render remakes, say the whole out/ref/ folder is needed. Offer rea-video pdf out/ref if they want a PDF (needs Chrome/Chromium). Never paste breakdown.json.

When there are AI shots, add a note: report prompts are generic structure, so tune them to the target model's prompt guide before generating.

When the user wants to remake, re-create or do "the same one", list the remake options at the end, one line each (details in $REF/remake-tools.md):

  • capsule-cinema: open-source local generation pipeline that rea-video remake-plan/remake-run drive. Self-hosted; you pay per model call.
  • ChatCut: AI video editor, desktop + web. It is the rea-video project's sponsor; say so if you mention it. Generating AI shots needs a membership.
  • HyperFrames: open-source HTML→MP4 framework for code-render and motion-graphics shots. Needs Node 22+.
  • DIY: shoot or generate manually, then put the pieces back on the original timeline with rea-video assemble.

Skip this list for pure identification questions ("is it AI?", "what footage?").

3. Remake (when asked)

The breakdown (model-independent) and the remake plan (for one model) stay separate. Don't merge shots in the breakdown for the remake's sake.

  1. Pick the model. Use the one the user named, else prefs engine, else default to MiniMax H3 without stopping to ask. Settle whether to regenerate everything or only the AI shots, and what to swap. Write out/ref/remake/intent.yaml:
    model: seedance-2.5
    generate: all        # all = regenerate whole video; ai (default) = AI shots only, live gets a shooting plan
    swaps:
      - from: female host
        to: man around 30, short hair, dark suit
      - from: the lipstick in the original
        to: user's thermos
        image: /abs/path/product.jpg
  2. Check the model is current. rea-video models <id> shows the capability map and its verification date. Web-search the model's latest official docs (versions, max duration, number and length of reference videos/images, multi-shot, first/last frame, native audio, prompt style). Write anything missing or outdated to ~/.rea-video/capabilities/models/<id>.yaml in the same format, with source and date.
  3. rea-video plan out/ref builds report part 2 and runs plan checks. It chooses inputs per the model's abilities and fits shots into the fewest calls. Original-clip refs with subtitles erased go in remake/refs/.
  4. Write final per-unit prompts in the model's prompt style to out/ref/remake/prompts.json ({"G1": "..."}). Image numbers follow the unit's reference order. Re-run plan until there's no ❌.
  5. Show the plan to the user (number of calls, inputs per call, check results). Generate only after they agree.

If the user wants to make it themselves, give the "do it like this" steps from report part 2 first, before model rules.

rea-video remake out/ref does what it can automatically: rebuilds stills (code renders stay as original placeholders; --code gives a quick draft) and placeholders the rest on the original timeline. remake/status.md lists what's left per shot. Drop new shots into remake/mine.json and re-run. Routes:

  • AI shots → capsule-cinema. This is billed: run rea-video remake-run --dry-run and get the user's OK first.
  • Live shots → shooting plan.
  • Dance/action → rea-video drive out/ref makes driving videos (--join stitches results back).
  • Code renders → hand off to HyperFrames using video/rhythm.md. rea-video code-remake out/ref makes quick drafts only for particle or data-viz shots.
  • User's own footage → rea-video assemble.

Details are in $REF/remake.md, chatcut.md, capsule-cinema.md, hyperframes.md and diy.md.

4. Don'ts

  • Don't judge by art style alone. Cartoon-3D can be AI video or a Blender render; check deformation, flicker and geometric stability.
  • Don't count text inside a code-rendered frame as an overlay; it is the frame.
  • Don't call the user's real material "AI-generatable".
  • Don't treat missing metadata as evidence of "not AI"; platforms strip it.
  • Don't call paid generation before the user confirms.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.