---
name: reverse-engineer-a-reference-video
description: Break down a reference video (a commercial, a competitor ad, a social clip) into clips, keyframes, scenes, characters, text, music and sound, with a prompting guide for each, then plan and prompt a recreation. Use when someone uploads a video and wants to make a similar version.
---

# Skill: Reverse-Engineer a Reference Video

**Use when:** someone uploads a video they've seen, like a commercial, a competitor ad or a social clip, and wants to understand exactly how it was built so they can make a similar version.

**Result:** a set of breakdown documents on the canvas: the transcript, every clip with an extracted keyframe, scenes, characters and objects, text overlays, and music and sound. Each breakdown document ends with a **Prompting guide** that turns what was observed into reusable prompt language for that style, sound, location, film styling, character movement and so on. After the user picks a recreation goal, the Director adds a recreation plan and shot prompts. No video is generated automatically.

---

## Ground rules

- **Ask one question at a time, with 2–4 options.**
- **Separate observed from inferred.** What is visible or audible goes under *Observed*. Guesses about lenses, rigs, lighting setups or editing software go under *Inferred*. Never claim to recover original prompts, exact lenses or hidden settings.
- **Don't identify real people.** Describe the people on screen (age range, look, wardrobe, role in the ad). Don't name them, even if they look like someone famous.
- **Don't copy protected material.** Logos, brand names, trademarked characters, jingles and footage are recorded as *what is there*. They're never carried into the recreation unless they belong to the user.
- **Spend no credits before approval.** Analysis, frame extraction and documents are free. Image or video generation needs a scoped test, a cost quote and the user's yes.
- **Be honest about precision.** Use MM:SS.s timestamps. Mark a cut as *approximate* unless it was confirmed frame by frame. If only stills or audio are available, label the result **Partial analysis** and don't invent motion, cuts or sound.
- **Turn every breakdown into a prompting guide.** Observations alone are not enough. Each breakdown document ends with a guide that says how to ask for what was seen and heard, in subject-neutral wording that works for a different story. See *Prompting guides* below.
- **Generate clips as a waterfall.** When the recreation is animation or video, generate the clips one after the other, never in parallel. Each clip starts from the last frame of the clip before it, so the transition between them is smooth. See *Waterfall generation* in Step 7.
- **Score the music separately, after the edit.** Don't ask the video model to generate music. Generate the clips without a music track, piece them together on the Timeline first, then create the music as its own audio track for the finished cut. See *Music is scored last* in Step 7.
- **Sound design is part of the score.** A finished cut needs music, a sound-effects layer and, if the reference has them, short voice moments. Plan all three in the audio plan, put each on its own Timeline track, and check the result against the reference's density. See *Sound effects and voices layer* in Step 7.

---

## Documents

Every run saves its results as canvas documents. Nothing lives only in chat.

| # | Title | Created in |
|---|---|---|
| 1 | `Video Overview` | Step 1 |
| 2 | `Transcript` | Step 2 |
| 3 | `Shot Breakdown` | Step 3 |
| 4 | `Scenes & Locations` | Step 4 |
| 5 | `Characters & Objects` | Step 4 |
| 6 | `Text Overlays & Graphics` | Step 4 |
| 7 | `Music & Sound` | Step 4 |
| 8 | `Recreation Plan` | Step 6 |
| 9 | `Shot Prompts` | Step 6 |

- Create each document **as soon as its step finishes**. Don't wait for the end.
- Use these exact titles, with no video name added. Start each document with an H1 identical to its title, then a line linking the source video.
- Use markdown documents, placed next to the source video on the canvas, in the order above.
- Only create documents for steps that actually ran. A breakdown-only request stops at document 7.
- When the skill is re-run on the same video, **update** the document with that title that links to that video. Never duplicate it.
- Each breakdown document (Video Overview, Transcript when there is speech, Shot Breakdown, Scenes & Locations, Characters & Objects, Text Overlays & Graphics, Music & Sound) ends with a **Prompting guide** section, then a **Confidence & limits** section. Create the guide together with its document, not later.

---

## Prompting guides

The breakdown says what is there. The prompting guide says how to ask for it. Each guide takes the Observed section of its document and turns it into instructions that can be pasted into an image, video or audio prompt to get the same look, sound, place or movement with a new subject. Writing a guide is free: no generation, no credits.

### Rules for every guide

- **Built from Observed.** Anything that comes from Inferred is marked *(inferred)*.
- **Subject-neutral.** Use slots such as `[SUBJECT]`, `[PRODUCT]`, `[LOCATION]` and `[ACTION]`, so the guide works for a different story or brand.
- **No protected material.** No real names, brand names, logos, trademarked characters, slogans, or artist and director names. Describe the quality instead (for example "flat-colour 2D cartoon figures with thick, even outlines" rather than a studio or show name).
- **Plain, positive wording.** Describe what to show, in visual and audible language, not keyword stacks or model jargon. Keep a short *Avoid* line only for source brand elements and known drift.
- **Traceable.** Every key descriptor cites the clip IDs or timestamps it came from.
- **Honest.** Never claim to recover the original prompt, lens, settings or track. The guide is an approximation of the look, not a copy.

### Standard layout

Use the same headings in every guide:

1. **Essence:** one or two sentences that capture the look, sound, place or behaviour.
2. **Key descriptors:** 6–10 short phrases ready to drop into a prompt, each with clip IDs.
3. **Prompt template:** a fill-in-the-blank prompt with `[SLOTS]`, for image, video or audio as relevant.
4. **Worked example:** one filled-in prompt using a neutral, generic subject.
5. **Keep consistent:** what must stay the same in every shot or clip for the style to hold.
6. **Common drift and fixes:** what models tend to get wrong, and the wording that corrects it.
7. **Avoid:** source brand elements and details not to carry over.

### What each guide covers

| Document | Guide | Covers |
|---|---|---|
| `Video Overview` | Overall style & pacing guide | The look and tone in one line, the story shape (hook, setup, turn, payoff, CTA) as a concept prompt, pacing instructions (cuts per 10 s, where it speeds up or holds), and how to describe the format and aspect ratio. |
| `Transcript` | Voice & dialogue guide | Voice type by role (age range, register, energy), pace, emphasis and delivery, on-camera versus voiceover, script-writing rules (line length, tone, structure), and a prompt for generating the voice or dialogue. |
| `Shot Breakdown` | Camera, framing & film styling guide | Shot size and angle words, lens feel and depth of field, camera-movement words with direction and speed, composition layers, lighting, colour grade, texture and grain, transitions and edit rhythm, shot-length guidance, and one template per recurring shot type, including how to write a multi-shot clip. |
| `Scenes & Locations` | Location prompting guide | Per location: layout, materials, palette, time of day, light, atmosphere and set dressing, plus what makes it read as "premium" or "everyday", a location-reference prompt, and the camera positions that work in it. |
| `Characters & Objects` | Character, movement & object guide | Character design (proportions, face, wardrobe, expression range), how they move (gesture, speed, weight, timing, acting beats), how they handle and react to objects, how the hero object is revealed, and a character-reference prompt. Roles only, never names. |
| `Text Overlays & Graphics` | Typography & motion-graphics guide | Font feel, size, colour, position, animation in and out, timing and legibility, a template for describing an overlay, and the rule that exact text is added in the edit, not in the generation. |
| `Music & Sound` | Music, SFX & mix guide | A paste-ready music prompt (genre, tempo, mood, instrumentation, structure; never a track or artist), prompts for each recurring sound effect and the ambience, and mix notes: ducking, silences and where hits land on cuts. If there is no music, say so and write the ambience and SFX prompts only. |

---

## Step 0: Check the source

1. Confirm the video is attached and that the user is allowed to use it as a reference.
2. Check which tools are available: frame extraction, cut detection, speech-to-text, audio analysis and OCR. If a tool is missing, say which part of the analysis will be partial.
3. Read the basic facts: duration, aspect ratio, resolution and frame rate.
4. Ask: **"What do you want out of this?"**
   - Full breakdown only
   - Breakdown, then a recreation plan
   - Breakdown, plan and shot prompts ready to generate

---

## Step 1: Video Overview

Watch the whole video once before breaking it down. Save it as `Video Overview` with these sections:

- **Specs:** runtime, aspect ratio, resolution, frame rate.
- **Clip count:** total number of clips, plus average and shortest/longest clip length. This is preliminary and gets updated after Step 3.
- **One-line summary:** what happens, in plain language.
- **Structure:** hook (first ~3 s), setup, turn or proof, payoff, CTA, each with timestamps.
- **Who it's for:** the apparent audience, offer and call to action.
- **Pacing:** cuts per 10 seconds, and where it speeds up or slows down.

---

## Step 2: Transcript

Transcribe all speech. Save it as `Transcript`.

- Use a timestamped table: `Time | Speaker | Line | Delivery`.
- Label speakers by role (VO, Woman 1, Customer), not by name.
- Delivery covers tone, pace, emphasis and whether the speaker is on or off camera.
- Note lip-sync: is the speaker on screen and speaking, or is it voiceover?
- Mark unclear words as `[unclear]`. Never guess them as fact.
- If there is no speech, say so and skip to Step 3.

On-screen text belongs in `Text Overlays & Graphics`, not here.

---

## Step 3: Shot Breakdown (clips + keyframes)

This is the core of the skill.

### 3a. Count the clips

- Run cut detection across the whole video. Look for hard cuts, dissolves, wipes, whip-pans and match cuts.
- Do a second pass by sampling frames around each candidate cut to confirm or reject it.
- If the passes disagree (a missed cut, a false cut, or a fast camera move mistaken for a cut), **record the conflict and your confidence**. Don't silently pick one.
- Number the clips `C01`, `C02` and so on. Update the clip count in `Video Overview` if it changed.

### 3b. Review frames and choose the keyframe

For each clip, sample frames at the start, middle and end, plus one frame per extra second for clips longer than 3 s. Then pick the **keyframe**: the single frame that best represents the clip. Choose it this way:

1. **Sharp.** No motion blur and no mid-transition frame.
2. **Complete.** Main subjects fully in frame and any text fully on screen.
3. **Representative.** The composition the clip spends the most time in, or its "hero" moment, such as the product reveal or the reaction.
4. **Useful for recreation.** It works as a starting image for image-to-video.

If the clip has a large camera move or a big change (push-in from wide to close, or the product appearing), also extract a **start frame** and an **end frame**. Those become first-frame and last-frame references later.

Save each extracted frame to the canvas as an image named `C03 · 00:07.4`, placed beside the `Shot Breakdown` document.

### 3c. Write the clip entries

`Shot Breakdown` opens with a summary table:

`Clip | In | Out | Duration | Keyframe | Shot size | Camera move | One-line action`

Then add one section per clip. Embed the keyframe at the top, or reference it by name if the document can't embed images. Below it:

**Observed**

- **Timing:** in, out and duration, plus the keyframe timestamp and why that frame was chosen.
- **Location:** interior or exterior, type of place, time of day, set dressing.
- **Characters:** who is on screen (by role), appearance, wardrobe, expression, and position in frame.
- **Objects and product:** what's visible and what the hero object is.
- **Movement in frame:** what the subjects do, from start to finish.
- **Camera:** shot size, height and tilt, lens feel (wide, standard or tele), depth of field, and movement (static, push, pull, pan, tilt, track, orbit, handheld, gimbal) with direction and speed. Write *unconfirmed* if unsure.
- **Composition:** subject placement and foreground, midground and background layers.
- **Lighting and colour:** key direction, hard or soft, palette, grade.
- **Text on screen:** yes or no, with a pointer to the overlay entry.
- **Audio in this clip:** the dialogue line, music moment, or SFX.
- **Transition out:** cut, dissolve, whip, match cut, and so on.

**Inferred**

- The likely production technique (real footage, CGI, stock, AI-generated, screen recording) and how it was probably shot.
- The clip's story purpose (hook, proof, emotion, CTA).

**Recreation notes**

- **Recommended clip length:** the source duration, plus the nearest length the video model supports (for example 5 s or 10 s) and where to trim.
- **Hard to recreate:** anything that will be difficult, like fast cuts within a single generation, readable text, real product physics or lip-sync.

Close the document with the **camera pattern** across the whole video: the recurring shot sizes, movement habits and rhythm. Then add the **Prompting guide** (see *Prompting guides*), built from the camera pattern and the per-clip Observed notes.

---

## Step 4: Element documents

Build these from the clip entries, with each item pointing back to its clip IDs.

**`Scenes & Locations`**: each distinct location, the clips that use it, its look and lighting, and what makes it read as "premium", "everyday" and so on.

**`Characters & Objects`**:

- **Characters:** role, appearance, wardrobe, the clips they appear in, and how they're shot. Describe them; never name them.
- **Objects:** the hero product, props and recurring items, with the clips they appear in and how each is revealed.
- **Brand assets:** logos, packaging and brand colours, flagged as *source brand: do not reuse*.

**`Text Overlays & Graphics`**: a table with `Time | Clip | Exact text | Position | Font feel | Animation in/out | Duration on screen`. Include supers, captions, lower thirds, end cards, legal lines and UI or screen graphics. OCR the text exactly and mark unreadable text.

**`Music & Sound`**:

- **Music:** genre, tempo or BPM (approximate), mood, instrumentation, and structure (intro, build, drop, outro) with timestamps. Note whether cuts land on the beat. Never claim to identify a track unless the video itself credits it.
- **SFX:** a timestamped list (whooshes, clicks, ambience).
- **Voices & ad-libs:** every spoken word, shout, "hey" or crowd cheer, with timestamps, including ones that sit inside the music. Label them as voice, not music.
- **Sound density:** roughly how many effect or voice events land per 10 seconds, and which actions get one (portal jumps, landings, impacts, the final launch). This is the target the recreation's sound layer is checked against.
- **Mix:** where music ducks under the voiceover, and moments of silence.

Each of these four documents ends with its own **Prompting guide**. The guides are part of the breakdown, so a breakdown-only request still includes them.

After Step 4, stop if the user asked for a breakdown only. Hand off as described in Step 8.

---

## Step 5: Set the recreation goal

Ask: **"What's the goal for your version?"**

- **Rebrand it:** same structure and style, with your product, logo and colours.
- **Swap the people:** same ad with different characters, or your own talent or avatar.
- **Replace specific parts:** keep most of it and change chosen elements.
- **Same formula, new story:** keep the pacing, camera language and structure, with a new concept.

Then, using the element documents, go through a **Keep / Change / Remove** decision for each category: story, pacing, camera, locations, characters, product, text, music and voiceover. Ask about one category at a time, and only for the ones that matter for the chosen goal. Pre-fill sensible defaults, and always default source brand assets to **Change**.

Also confirm the output aspect ratio and runtime, and what brand assets the user has (logo, product shots, colours, fonts, talent references).

Then ask, as separate questions with 2–4 options each:

**"How should the shots become clips?"**

- **One clip per shot:** each shot is generated on its own and the clips are cut together in the Timeline. Most control over every cut, and any single shot can be retaken. A clip may have to be longer than its shot (the model has a shortest duration), so it is trimmed later. More clips to generate.
- **Grouped clips:** neighbouring shots share one generation. Fewer clips and steadier look and sound inside a group, but less control over each cut.
- **One clip for the whole video:** one multishot generation, only if the full runtime fits the model's longest duration.

Whichever grouping the user picks, the clips are generated in order, as a waterfall (Step 7), and the music is scored separately once the clips are on the Timeline.

**"Do you want opening keyframes first?"**

- **Keyframes first:** generate one opening image per clip, review them, and only then quote and generate video.
- **Straight to video:** skip keyframes and use the references only.

---

## Step 6: Recreation Plan and Shot Prompts

**`Recreation Plan`**:

- The goal and the Keep / Change / Remove table.
- A new shot table: `Shot | Source clip | Duration | Action | Framing / camera | Characters | Location | Assets needed | Text overlay | Audio | Transition`.
- A **staging map** that fixes exact positions before any keyframe is made: which vehicle, building or set piece each character is on, in or beside; where each character stands within it; which set piece is the same one in every shot; where the camera is and which side of the action it is on; which side of frame each character sits; where the hero object is at the start and end of each shot; and the time of day and light, which must be identical across shots unless the story changes it. Record it as a rules list plus a per-shot table, and call out any character who must never appear in a given place (for example "never on the dock").
- An asset checklist: what the user must supply and what will be generated.
- Risks, such as readable text, lip-sync or product accuracy, with the workaround for each (for example, add text in the edit rather than in the generation).
- The chosen clip grouping: which shots form each generated clip, the model, and each clip's supported duration. Where a clip is generated longer than its planned shot, record both lengths and say it will be trimmed.
- The **generation order** (waterfall): clip 1, then clip 2 from clip 1's last frame, and so on. For each clip after the first, write its opening so it continues the end view of the previous clip, and record that end view in the staging map.
- The **audio plan**: clips are generated without music. Dialogue that belongs to the shot stays in the clip. Music is scored after assembly, then a sound-effects layer and any extra voice lines are added on their own tracks (see Step 7). Write down which spoken word the clip keeps, so later layers leave it clear. If a clip is generated with native audio on, it may already contain music and ad-libs: decide with the user whether to keep that audio and add effects and voices on top, or to turn it off and score separately. Never lay a second score over native music.

**`Shot Prompts`**: for each shot, write one keyframe prompt and one motion prompt. Build them from the Prompting guides: take the descriptors and templates for camera, film styling, location, character movement, sound and text, fill the slots with the new subject, and keep the guide's wording consistent from shot to shot. Reference the source keyframe as a composition guide only. Write each keyframe prompt as the literal opening frame of its clip, not an end state. Every keyframe prompt must state, in words, where each character is standing and on what, where the camera is, which set piece or vehicle appears (referencing the same location images every time), and the light from the staging map. A character who belongs in a shot must be named in it, even if small in the background.

```
Shot [ID] · [DURATION] · [ASPECT RATIO] · based on [SOURCE CLIP]
Keyframe: Subject: [NEW SUBJECT]. Setting: [LOCATION]. Framing: [SIZE, ANGLE, COMPOSITION]. Lighting/style: [APPROVED LOOK]. References: [ASSETS].
Motion: Action: [START → MOVEMENT → END]. Camera: [MOVE, DIRECTION, SPEED]. Pacing/mood: [PRINCIPLES TO KEEP].
Audio: [APPROVED VO / SOUND].
Avoid: [SOURCE BRAND ELEMENTS, UNWANTED DETAILS].
```

---

## Step 7: Stop for approval

Summarise the plan, list the open uncertainties, and propose **one test shot**: the clip most representative of the style, or the riskiest one.

If the user chose **Keyframes first**: once they approve, generate one opening keyframe per clip as a single image set from the character, location and product references. Before showing the set, check every keyframe against the staging map and the references: each character is in the assigned place, nobody who belongs is missing, nobody is in the wrong place, the vehicle or set piece is the same one as in the location references, and the light and time of day match across all keyframes. Fix any mismatch first, and report anything you could not fix. Then pause for review. Quote and generate video only after the user approves the keyframes, and use each approved keyframe as the start frame of its clip.

Before generating video, confirm the tool supports it and quote the cost of the exact clip set. Never generate the full sequence automatically.

**Waterfall generation.** Animation and video clips are generated one after the other, like a cascade, so each transition is smooth:

1. Generate clip 1 and wait until it is complete.
2. Extract clip 1's last frame and use it as the **start frame** of clip 2. Keep the character, location and product references alongside it so identity doesn't drift.
3. Write clip 2's prompt as a continuation: it opens on that frame and carries the same characters, light, screen direction and camera position, then moves on.
4. Repeat for every following clip. Don't start clip N+1 until clip N has finished and its last frame is extracted.
5. If a clip needs a hard cut into a new world, still open it from the previous last frame (for example with a match cut or a portal-style move) rather than from nothing, unless the user asks for an unconnected cut.

**Music is scored last.** Don't ask the video model for music. Generate each clip with no music track; keep only dialogue or effects that belong to the shot. Then:

1. Assemble all clips on the Timeline in order, with text and end cards.
2. Read the final Timeline length.
3. Generate the music as a separate instrumental track timed to that length, using the `Music & Sound` document and its Prompting guide as the brief (genre, tempo, structure, where it builds and drops).
4. Add it to its own audio track under the video, line the drops and risers up with the cuts, fade it out at the end, and duck it under any speech.

If the user wants music changed later, replace only that audio track. The clips don't need regenerating.

### Scoring rules (learned from use)

- **Match the energy of the picture, not the reference's quietest moment.** Only the first 1 to 2 seconds around a spoken hook word may be quiet. Start the full groove right after it. A score that is soft while a mascot hops through portals or a calm scene plays will be read as "not epic". If the user says the opening feels quiet, remove the quiet intro rather than raising the volume.
- **Describe the genre by what is in it and what is not.** Say "fully synthesized, drum machine and synths only, no guitar, no piano, no live instruments, no vocals". Without exclusions the model can drift into a different genre (a guitar-led dance-pop track instead of synth-pop).
- **Keep structure cues few and simple.** Ask for: a constant groove, one section lift, one riser, one big hit, a beat cut-out, a closing chime, a fade. Long lists of exact timestamps and "near silence" or "breakdown" wording make the model add a breakdown or move the hits. Models do not reliably hit exact times.
- **Generate to the Timeline length** (plus a short tail) and read the measured length of the result. It can be a frame or two off.
- **Check before you say it matches.** Run `inspect_audio` on the result and compare it to the requested structure. Report any drift as a short table (asked for / found), say what that does to the picture (for example the cast launch landing on a breakdown), and offer: regenerate with simpler cues, re-time with Timeline edits, or generate from the exported picture with a video-reference soundtrack model (matches mood, does not time hits to cuts). Do not claim a match you have not checked.
- **Replace music cleanly.** Swapping a Timeline clip's source fails when the new file is shorter than the old one. Delete the old music clip and add the new one on the same Music track at frame 0, then restore the volume (about 0.8) and re-set the fade (hold to the end card, fade to 0 on the last frame). Keep the old score on the canvas.
- **Save the user's audio feedback in the production plan's audio plan** (for example "no quiet intro"), so the next take starts from it.

### Sound effects and voices layer

Use this when the cut feels thin, or when the reference's `Music & Sound` shows dense effects and ad-libs.

1. **Effects:** run `generate_sound_effects_from_video` once per clip (preserveSpeech off). Write the prompt from that clip's shot list: the actions that should make a sound, in order, plus the mood ("punchy cartoon effects, playful, crisp"). Add a negative prompt: `music, singing, vocals, speech, background melody` (drop `speech` for a clip where crowd cheers are wanted). Effects cover up to 60 s of a video from its start. Clips with native audio keep their spoken word, since the effects are a separate track.
2. **Voices:** only when wanted or when the reference has them. Use short lines of 1 to 3 words (a hype shout early in the montage, a group shout on the final launch). Pick voices by role from `list_voices` (young energetic for a hype line, broadcast or announcer for a group shout), use the speech model's default, and keep the hook word clear: never put a voice line over it.
3. **Tracks:** create an `SFX` track and a `Voices` track above `Music`. Place each effects file at its clip's start frame and set `durationFrames` to the clip's exact length. Generated audio comes back a frame or two longer than the clip, and a longer file collides with the next one on the same track.
4. **Mix:** effects about 0.9, voices 1.0, music about 0.8. Music ducks only under speech.
5. **Verify:** read the Timeline back. To judge the balance, export the Timeline and run `inspect_audio` on the export. Until then say the mix is unchecked.
6. **Record it** in the production plan's audio plan: which tracks were added and what each contains.

---

## Step 8: Hand-off

In chat:

- The clip count, runtime and a one-line read on why the video works.
- The titles of every document saved this run, noting that each breakdown ends with a prompting guide.
- What was partial or unconfirmed.
- The next suggested step: set the goal, approve a test, or upload brand assets.

---

## Defaults

- One video per run. Best results with clips under 90 s.
- Analyse at the source aspect ratio. Ask before choosing the output format.
- Timestamps are approximate unless verified.
- Clips are generated in order as a waterfall, each starting from the previous clip's last frame.
- Music is generated last, as a separate track, after the clips are on the Timeline. Sound effects and voices come after the music, on their own tracks.
- Credits: music costs about 9 credits per second, effects from video about 15 per second, a short voice line about 9. Quote when the balance is low.
- One keyframe per clip, plus start and end frames when the camera or subject changes a lot.
- Never imply that a tool which isn't available analysed the video.
- Every breakdown document ends with a Prompting guide in the standard layout, written subject-neutral and free of brand names.
