/world-swap-capcut: One Real Take → the Same Take with Swaps
Overview
Turns ONE real take into a Seedance 2.5 video-to-video prompt that keeps the footage exactly as filmed — camera path, person, speech, timing, duration — and changes ONLY a list of agreed swaps: a placeholder object becomes a creature or a prop, a surface or background becomes a location. Consistency across takes comes from sheets: a frozen text block plus a GPT Image 2 reference image per new element, reused verbatim in every prompt.
Core principle: the take is preserved, the swaps are written, and nothing else exists. Seedance receives the video, the sheet images and the text; whatever is not written is left to chance, so the prompt names what to keep (from the frames) and what to change (from the swap list), and the fixed rules stop the model from doing anything else.
Sweet spot: takes of 4–10s, one continuous shot, one light source, placeholders that never move.
TEMPLATE STATUS: v0, built from one production (a dining-table arena reel: four takes, two creatures, one location, one prop). Every rule in the countermeasure table is a defect that actually happened. When a generation misbehaves, record the creator's report verbatim; those reports are the next version.
Who does what
- The creator films, answers questions, approves the swap list, each sheet and the prompt, and reviews the result.
- The agent (you) runs the scripts, reads the frames and the words, asks, writes the sheets and the prompt, verifies, and — only after the creator confirms — uploads the video with the sheet images and sends the validated prompt to Seedance 2.5. The creator never pastes anything anywhere.
PROMPT IMMUTABILITY — read this before anything else
The validated prompt is a payload, not a draft. Everything after validation is transport, not authorship.
- Send it to Seedance 2.5 exactly as validated: no summary, paraphrase, translation, reordering, condensing, reformatting or reconstruction. Section headers, fixed sentences, sheet blocks, punctuation and block order all travel unchanged.
- Never build "a shorter version for the model". The text shown to the creator, the text in the saved
.txt and the text sent to the generator are ONE text.
- Where the generation tool accepts a file path, pass the saved
.txt path instead of pasting content.
- If the tool refuses the full prompt (length cap, field limit), STOP and tell the creator. Never silently shorten it.
- If anything must change after validation, re-run the verifier and ask for approval again.
- Full fidelity starts at the first draft: the prompt is authored directly into the saved
.txt, and every time it appears in the conversation it is the file's verbatim content, in full. A "preview version" must never exist. Split across messages if limits force it; never condense.
Why: a sectioned, rule-carrying prompt is read as a technical script and obeyed; a paragraph is read as mood and improvised over. The baseline without this skill produced one paragraph with an approximate duration, frozen "sitting" creatures, an invented arena and exposed table edges — every failure the sections below exist to prevent.
Input
- The creator's local video (one continuous take). If more than one file could be "the take", ask — never guess.
- The swaps, in the creator's words ("replace the left cup with a dragon", "turn the table into an arena"). Ask for them if they were not given.
- Optionally: existing sheets from a previous take (see Step 10). Never require the creator to produce reference images or crops; the sheets are made here.
Step 0 — Preflight (first run, or on any missing-tool error)
python "<this skill's base directory>/scripts/check_env.py"
Relay anything missing with its install command; never install without permission. Only Python and ffmpeg are needed. This variant installs no transcription tool: the words and their timings come from the host's own transcription of the uploaded video, which you run yourself in Step 1. Never try to install a transcriber, never ask the creator whether to install one, never spend a turn on it.
Step 1 — Ingest
python "<this skill's base directory>/scripts/ingest.py" "<video path>"
It prints DURATION, DECLARE (the one-decimal value the prompt must declare), SIZE, FPS, HAS_AUDIO, the 1 fps FRAMES_DIR and the upload-safe copy UPLOAD_FILE (lossless remux with the index moved to the front — a real upload failed with "moov atom not found" without it). Flags: --force, --no-remux, --fps.
Then TRANSCRIBE the video with the host's own transcription tool. This is a required step, not an option, and it happens right after ingest, without asking the creator. Run the platform's transcription on the uploaded take (the same one used for captions), and write the result down as a WORDS list, one line per phrase with its start and end time, before reading the frames. If the take has no speech, write WORDS: none (no speech) and move on. Say plainly that the timings are the host's and may be coarser than word level. If the take visibly has speech and the host transcription shows multi-second holes in the middle of visible talking, treat it as suspect, show the creator the gaps, and confirm before designing. Never anchor a reaction to a word you cannot verify; when a word time is uncertain, anchor the reaction to the gesture in the frames instead.
Step 2 — Read the take (eyes + ears)
Read ALL the 1 fps frames (frame k covers second k−1) alongside WORDS. Never work from audio alone: it cannot see the objects, the gesture or the light. Open the breakdown with two lines copied from the ingest output, DURATION: <value> and DECLARE: <value>, then the honesty header Frames analyzed: N of M. The word "approximately" (or "about", "roughly", "~") never appears next to a duration or a time anywhere in the conversation: every number comes from ingest or from a frame timestamp.
Gestures hide between 1 fps frames. A half-second glance or a point can fall entirely between two frames. Whenever the creator says a gesture exists and the 1 fps frames do not show it, or whenever a swap must react to a gesture, sample the relevant stretch at 4 fps before deciding — and when the creator does not say where it is, sample the whole last third of the take, where closing gestures live:
ffmpeg -y -loglevel error -ss <T0> -to <T1> -i "<video>" -vf fps=4 "<FRAMES_DIR>/dense_%04d.jpg"
Report what you found with its time ("glance toward the table from 3.6s to 4.0s, back on camera at 4.1s"). Never report "no gesture" from 1 fps alone.
Produce three things:
- Breakdown table: time → spoken phrase → visual event (gesture, gaze, object interaction, camera move).
- Inventory: every object in frame with its position (left/right, near/far, centre), its size relative to the others, and whether it moves at any point. Every object is either a placeholder (will be swapped) or untouched (must be written into PRESERVE).
- Preserve notes: camera position, height, angle, framing, movement over time; the light source and its direction; the person (clothing, what they do second by second); the background.
Zoom on anything ambiguous with one extra frame:
ffmpeg -y -ss <T> -i "<video>" -frames:v 1 -q:v 2 "<FRAMES_DIR>/zoom_<T>s.jpg"
Checkpoint 1 — confirm the reading. Show the creator the breakdown, the inventory and the preserve notes. Ask: is anything wrong or missing? Objects the agent did not see will not be preserved, so this is where the creator adds them.
Step 3 — Agree the swaps
Turn the creator's words into a closed SWAP LIST, one entry per swap:
| field |
what to settle |
placeholder |
the exact object or area from the inventory, with its position |
replacement |
what it becomes, in one or two words |
kind |
creature (alive, moves) · object (inert, never moves) · location (a surface or background becomes a place) |
scale |
always asked, never assumed: size relative to the placeholder AND to the person ("colossal: a human would reach its knee" / "cat-sized on the shoulder" / "same footprint as the mouse" / "covers the entire tabletop edge to edge") |
behaviour |
creatures: what it does at rest and how it reacts to each gesture or word in the take; objects: nothing, ever |
sheet |
an existing approved sheet, or "new" |
Questions to ask when the answer is not in the creator's words: scale (always), which side is which when two placeholders look alike, whether a swapped object may react when touched (default: no), what the person's gestures point at, and whether a location covers everything or only a named area.
Rules the swap list must respect (write them down, do not negotiate them away later):
- A placeholder that moves in the take will pass its motion to whatever replaces it. Say so, and let the creator choose: keep the take and add the "discard object motion" rule (works for small motion), or reshoot.
- Everything not in the swap list is preserved. There is no "and tidy up the rest".
- One location per take at most.
- Positions are screen positions. A replacement occupies its placeholder's exact position in the frame. "Left" and "right" in the swap list and in the prompt always mean the viewer's left and right of the frame, never the person's. When the creator says "over my left shoulder", translate it to the frame ("the cup at centre-right of frame, above his left shoulder") and confirm once.
- "The background", "the room", "the wall and the window", "everything behind me" is ONE location placeholder covering every room element visible behind the person — wall, window, curtains, sofa, side tables, doorway, floor if visible. When the creator asks for that, list what LEAVES, not what stays; the only things that stay are the person and any object the creator names. Do not keep the sofa in a rainforest. The verifier rejects a PRESERVE that still lists room elements when the whole background is a location placeholder.
Checkpoint 2 — approve the swap list. Show it as a table. Wait for a yes. Then write <video stem>_world.json from templates/world.example.json (fields: video, upload_file, duration, declare, person, swaps[], prompt). This file is the frozen source of truth for the verifier.
Step 4 — Sheets (text first, then the image)
For every swap whose sheet is "new", build a sheet from the template — templates/character-sheet.md for creatures and objects, templates/location-sheet.md for locations — and save it as sheets/<name>.md next to the video. Worked examples that shipped: examples/sheets/ (a colossal furry dragon, a fingernail-sized rabbit, a black button, a tabletop arena).
The PROMPT BLOCK is the contract. One paragraph, 100–200 words, written once and never edited after approval, because the verifier checks it appears in every prompt verbatim. It carries what the thing IS (silhouette, body, face, eyes, colours, materials with realism cues, distinctive features) and ends with the realism sentence. It carries NO scale (scale is per swap) and NO behaviour (behaviour lives in the sheet's repertoire and is assembled per take).
Wording rules that decide whether the result is an animal or a toy: open creature blocks with "A photorealistic living animal:", name real materials ("real fur with individual hairs catching the light", "wet reflective eyes with catchlights"), and never use toy vocabulary anywhere in a sheet (the verifier rejects diorama, figurine, chibi, cute, playful, cartoon in authored sections).
Locations must carry a COVERAGE RULE in absolute terms. "Covers the entire tabletop edge to edge, about two metres across, its outer tier sitting on the table edges so no bare wood is visible" — not "sits on the table". Under-sized locations were the single most repeated defect in production.
Then the image. Generate the sheet image with GPT Image 2 from the sheet's IMAGE PROMPT: three panels (front, side, scale panel) on white for characters; for locations, attach the take's first frame so the place is rendered on the real surface from the real angle. Save it as sheets/<name>.png and write the path into the sheet and into world.json. Objects rarely need an image; creatures and locations always do.
Checkpoint 3 — approve each sheet. Show the PROMPT BLOCK and the image together. Regenerate the image until it matches the text; never edit the text to match a wrong image. Mark the sheet status: approved. From here the block is frozen.
If image generation is unavailable, write image: pending in the sheet and "image": "pending" in world.json, and say so to the creator. A creature or location sheet that is still pending blocks generation (Step 8): the text alone does not hold a character steady across takes.
Step 5 — Write the prompt
Author it directly into <video stem>_world_swap_prompt.txt from templates/prompt-skeleton.txt. Mutate ONLY the bracketed zones; every unbracketed sentence is load-bearing and must be reproduced exactly.
[DURATION] — DECLARE from ingest, in both places of the CRITICAL line.
[PERSON LINE] — pick by what the take contains:
- With dialogue:
The [man/woman] must CONTINUE SPEAKING exactly as in the BASE VIDEO. Preserve [his/her] exact dialogue, voice, timing, lip sync, face, expressions, gestures and body movement, frame for frame. [His/Her] facial identity comes entirely from the BASE VIDEO. Do not re-animate the face, do not change the duration.
- Person, no dialogue:
Preserve the [man's/woman's] exact face, expressions, gestures, actions, body movement and timing, frame for frame. Do not introduce dialogue. [His/Her] facial identity comes entirely from the BASE VIDEO.
- No people:
There are no people in the frame at any point. Preserve the exact original movement of the camera, the object positions and the timing.
PRESERVE — from Step 2, in concrete words. Every untouched object with its position. If the person stands in front of the table, say so and say what is NOT between the camera and the person — the model otherwise resolves ambiguous depth by putting the table in the foreground. When the whole background is a location placeholder, the Background: line reads replaced by the location below and the Untouched objects: line lists only what the creator named to keep.
SWAP n blocks — one per creature/object swap, in world.json order, header SWAP n — <placeholder, position> → <replacement> (@sheet_<name>), then the sheet's PROMPT BLOCK verbatim, then Position and scale: (same spot as the placeholder, the agreed scale, what it must never exceed), then Behaviour:, then Audio:.
- Creature behaviour: 2–4 idle actions that run all the time, then each reaction anchored to a time and a word or gesture ("at 2.6s, as he says 'guy' and the finger points at it, it lifts its head, glances up at the camera, blinks, then keeps moving"), and the last thing described is a continuing motion: "and is still shifting and breathing as the shot ends". A pose described last becomes a frozen final frame.
- Object behaviour: the immobility sentence. If the take presses or touches it, add "even when pressed" and "the fingertip rests on its top surface and never passes through it".
- When a creature replaces something the person points at or touches, write the finger's timing from
WORDS/frames so the reaction lands on the gesture.
LOCATION block — only if a location swap exists: header LOCATION — <area> → <location> (@sheet_<name>), the PROMPT BLOCK verbatim, then Coverage: copied from the sheet's COVERAGE RULE and adapted to this framing ("when the camera is close, the tiers run off the left and right edges of the frame"), then Audio: for sounds the location itself makes (banners, water) or none.
LIGHT — the single source and its direction from the frames.
STYLE — keep the phone-look list; adjust only the white balance words if the take is visibly warm or cool (a take shot under warm lamps: replace "neutral slightly cool white balance" with "warm slightly yellow white balance" and nothing else). Never add "cinematic", "graded", "filmic".
AUDIO — keep the original; add sounds the swaps make (a heavy creature's shuffle, banners), remove sounds of removed things. No music.
FINAL FEEL first line — with a person in the take: Same scene. Same camera. Same person. Same performance. Same dialogue. Same voice. Same timing. ONLY THE LISTED SWAPS CHANGE.; no people: Same scene. Same camera. Same object positions. Same timing. ONLY THE LISTED SWAPS CHANGE. The negatives line below it never changes.
examples/ holds one complete worked take (world.json + prompt) as a reference for tone and density. Never copy it for another take: every PRESERVE line, every position and every reaction time must come from the frames and words of the take in front of you.
Attachment names: the video is BASE VIDEO; each sheet image is referenced as @sheet_<name> in its header and attached under that name.
Step 6 — Verify
python "<this skill's base directory>/scripts/verify_prompt.py" "<saved .txt>" --world "<video stem>_world.json"
It must print PASS: sections in order, duration declared twice and equal to declare, every swap has its block and names its replacement, every sheet PROMPT BLOCK present verbatim, creature blocks run first-to-last frame, object blocks say motionless, location has a Coverage line, no toy or approximation vocabulary in the authored sections, negatives intact. Then it prints the fingerprint (payload: <N> characters, sha256:<hash>): record both, they are the transport check. Fix and re-run on FAIL; take WARNINGs to the creator.
Step 7 — Present, then MANDATORY checkpoint
Show, in this order: two lines on how it works (the video is preserved, the listed swaps are written, everything else is locked), the swap table, and the prompt IN FULL as a fenced block (the file's verbatim content). Then ask: approve, or change something? Never generate in the same turn you validate. "The creator is in a hurry" does not waive this.
Step 8 — Generate
Only after the yes. Upload UPLOAD_FILE (the faststart remux) as the base video, attach every sheet image listed in world.json under its @sheet_<name>, and send the saved .txt exactly as validated. Immediately before the call, state these four facts out loud, read from the file:
- the declared duration, and that it equals the real duration from ingest;
- the number of swap blocks, and that it equals the number of swaps in
world.json;
- the sheets attached, by name, that none of them is pending, and that each PROMPT BLOCK is in the prompt verbatim;
- the character count and sha256 of the payload you are about to send, and that both equal what the verifier printed.
Fact 4 is the one that cannot be faked by intent. Settings: the same duration as the take, the take's aspect ratio, Seedance 2.5.
Step 9 — QC (honest, in this order)
Read frames of the result at 1 fps and check, most severe first — the first failure decides the verdict:
- Face and lip sync (takes with a person): not the creator → the take is unusable, regenerate.
- Position of the person relative to the surface: in front stays in front.
- Every swap in its placeholder's spot, at the agreed scale; a location at its coverage (no bare surface where none was allowed).
- Creatures moving in the last second; objects that never moved.
- Shadows in the take's light direction; nothing glowing.
- Phone look: no grade, no haze, no bloom, no shallow focus.
Report what passed and what failed, per swap. Never present drift as success. Regenerate rules: fix the prompt only when the defect maps to a missing or weak sentence (then re-verify and re-approve); otherwise regenerate as is — the same prompt varies between runs. Log the defect and the fix in the countermeasure table.
Step 10 — Next takes: reuse the world
The next take of the same project reuses world.json's sheets untouched: same PROMPT BLOCKs, same images, new placeholders and positions, new scale per take if the framing demands it. This is what keeps a creature identical from a wide shot to a shoulder close-up. Never rewrite an approved sheet for a new take; if the creature must look different, that is a new sheet with a new name.
After generation, the creator finishes in Edit More: trim, split-screen with the original, captions, music, export.
Do NOT (observed failure modes this skill exists to prevent)
- Do NOT write an approximate duration ("~7s", "about five seconds"). Ingest measures it; the prompt declares it twice; the verifier checks it.
- Do NOT describe a creature at rest as a pose ("sitting upright", "stands facing the camera"). Poses freeze. Every creature runs on idle actions from the first frame to the last, and the last described action is a continuing motion.
- Do NOT use toy or diorama vocabulary (diorama, figurine, chibi, cute, playful, cartoon, "miniature toy") anywhere in authored text. It renders plastic. Say "a photorealistic living animal filmed by the same phone". The word "miniature" on its own is fine — a miniature arena is a real object.
- Do NOT invent looks on the fly (a "white-and-cream rabbit" because the colour was unspecified). Ask, write the sheet, freeze it.
- Do NOT let a location keep "exposed surface at the edges" or "confine it to the visible area". Coverage is absolute and stated in the sheet.
- Do NOT forget the immobility sentence for objects, and do NOT forget "DISCARD any object motion present in the BASE VIDEO" when a placeholder wobbles in the take — the replacement inherits it otherwise.
- Do NOT leave the person's depth ambiguous. "In front of the table, nothing between the camera and the person" or the table jumps to the foreground.
- Do NOT assume scale. A "big" creature was rendered toy-sized when the prompt only said big. Relative to a human, in the prompt.
- Do NOT write the prompt as a paragraph, and do NOT condense, paraphrase or reassemble it after validation. Stop and report if the tool refuses the full text.
- Do NOT generate in the same turn you validate, and do NOT skip a checkpoint because the creator seems in a hurry.
- Do NOT re-open an approved decision (a scale, a sheet, a swap) on your own; if the creator changes it, update
world.json, re-verify, re-approve.
- Do NOT edit an approved PROMPT BLOCK to match a wrong image. Regenerate the image.
- Do NOT add "cinematic", "graded", "filmic", "haze", "light shafts" or "bloom" in positive form. The take is phone footage and the output must stay phone footage.
- Do NOT tell the creator to paste, upload or attach anything. You generate.
- Do NOT invent Seedance 2.5 limits. If a generation truncates or refuses, record the facts instead of guessing workarounds into the prompt.
Countermeasure table (defects from live generations)
Each row is a defect that happened, plus the fix now baked in. Never delete a row; add one every time a generation misbehaves.
| Reported defect |
Date |
Countermeasure |
| Arena rendered small on the table, bare wood all around, floor visible; the prompt had said "sits on the table" and "the whole arena in frame". |
2026-09-04 |
COVERAGE RULE in absolute terms in the location sheet ("entire tabletop edge to edge, two metres, no bare wood visible"), copied into the LOCATION block; when the camera is close, say the location runs off the frame edges. Verifier requires a Coverage: line. |
| Both creatures froze into a pose in the last second (they "looked up at the camera" and held). |
2026-09-04 |
MOTION RULES fixed block; every creature block must say first frame → last frame; the last described action is a continuing motion, never a pose. |
| A red cup that replaced a wobbling crate inherited the crate's wobble and dust. |
2026-09-04 |
"DISCARD any object motion present in the BASE VIDEO" fixed sentence + the object immobility sentence with every verb named (rock, wobble, tip, roll, slide, spin…). |
| The man, standing in front of the table in the source, was rendered behind it, and the framing widened to fit the table. |
2026-09-04 |
PRESERVE must state the person's depth and "nothing between the camera and the person"; CRITICAL locks the framing; a wooden edge at the bottom of the source that belongs to a swapped location is named and removed with it. |
| Output came back colour-graded and hazy (warm grade, light shafts, bloom) from a flat phone take. |
2026-09-04 |
STYLE fixed block lists the phone look positively and forbids regrading; negatives list carries "No colour grading. No cinematic look. No haze, no light shafts, no bloom…". |
| A creature that was supposed to be colossal came out toy-sized because the prompt only said "big". |
2026-09-04 |
scale is a mandatory swap field, always asked, always relative to a human and to the placeholder, written in Position and scale:. |
| The pointing finger appeared only in the last second because the shot description mentioned it late. |
2026-09-04 |
Anything that must be present from the start is written as "in frame from the very first frame to the last"; reactions are anchored to times from WORDS/frames. |
| Same dragon rendered visibly different between two takes written from memory. |
2026-09-04 |
Sheets: the PROMPT BLOCK is frozen and verified verbatim in every prompt; the GPT Image 2 sheet image is attached to every generation. |
| Baseline agent without this skill: one-paragraph prompt, "~7s", "sitting upright" creatures, invented arena with rope and toothpick banners, "keep exposed wood at the edges", no negatives, no verification. |
2026-09-04 |
This skill. |
| Live in Video Studio: Whisper could not be installed; the agent spent the turn on the install ladder before falling back. |
2026-09-04 |
Step 0 tries ONE install, then falls back to the host transcription at once and says so. Gestures come from frames; words are secondary for swaps. |
| v3 variant: the install still cost a turn and a question. |
2026-09-10 |
No transcription dependency at all. check_env.py checks only Python and ffmpeg; ingest.py produces duration, frames and the remux; words come from the host's own transcription, written into a WORDS list before the reading. |
| v3 live: told to "take the host's transcription", the agent did not transcribe at all until asked. |
2026-09-10 |
Step 1 now says TRANSCRIBE, as a required action right after ingest, without asking; a silent take is recorded as WORDS: none. |
| Live: the agent wrote "approximately 5.1 seconds" in its reading before running ingest. |
2026-09-04 |
Step 2 opens with DURATION and DECLARE copied from ingest; "approximately / about / roughly / ~" banned next to any time. |
| Live: asked for "the wall and the window" to become a rainforest, the agent swapped only the window and kept the sofa, side table and doorway as "preserve". |
2026-09-04 |
Step 3 rule: the background is ONE location placeholder covering every room element behind the person; list what leaves. Verifier rejects PRESERVE lines that still list room elements when a location placeholder names the background. |
| Live: the creator's glance toward the cup (3.6–4.0s) fell between 1 fps frames; the agent searched only the 4.0–4.8s window it was given and reported "no glance". |
2026-09-04 |
Step 2 dense-sampling rule: 4 fps over the stretch in question, or the whole last third of the take, before reporting a gesture absent; never "no gesture" from 1 fps alone. |
| Live: "over my left shoulder" versus "right-middle of frame" caused a side question. |
2026-09-04 |
Positions are screen positions; left/right always mean the viewer's frame; the agent translates body-relative wording to frame wording once and confirms. |
Files
scripts/check_env.py — preflight, reports only.
scripts/ingest.py — duration, frames, faststart remux. No transcription: words come from the host.
scripts/verify_prompt.py — structure + contracts + fingerprint.
templates/prompt-skeleton.txt — the prompt with its fixed sentences.
templates/character-sheet.md, templates/location-sheet.md — sheet templates with the GPT Image 2 prompts.
templates/world.example.json — the frozen swap list format.
templates/filming-checklist.md — for creators who ask before shooting.
examples/sheets/ — four approved sheets from production (dragon, rabbit, black-button, arena).
1---2name: world-swap-capcut3description: 'Use when a creator uploads a real take and wants Seedance 2.5 to replace things inside it while the footage stays as filmed — an object turned into a creature or a prop, a table or wall turned into a location, the background changed — with the same camera, the same person, the same speech and the exact same duration. Triggers on /world-swap-capcut, "replace X with Y in my video", "turn my table into…", "put a creature where the cup is", "AI on top of my own footage", "before and after from one take", or a dropped clip plus a swap request. Built for the CapCut Video Studio agent: the agent analyses the take, agrees the swaps with the creator, builds character and location sheets (text + GPT Image 2 image), writes and verifies the prompt, shows it in full, and generates only after the creator confirms. NOT for multi-camera re-edits (cine-multicam-capcut), on-screen text (cine-supers-capcut) or film looks (cine-grade).'4metadata:5 source: https://skillmd.com/skills/aipauloshimas/world-swap-capcut6---78# /world-swap-capcut: One Real Take → the Same Take with Swaps910## Overview1112Turns ONE real take into a Seedance 2.5 video-to-video prompt that keeps the footage exactly as filmed — camera path, person, speech, timing, duration — and changes ONLY a list of agreed swaps: a placeholder object becomes a creature or a prop, a surface or background becomes a location. Consistency across takes comes from **sheets**: a frozen text block plus a GPT Image 2 reference image per new element, reused verbatim in every prompt.1314Core principle: **the take is preserved, the swaps are written, and nothing else exists.** Seedance receives the video, the sheet images and the text; whatever is not written is left to chance, so the prompt names what to keep (from the frames) and what to change (from the swap list), and the fixed rules stop the model from doing anything else.1516Sweet spot: takes of 4–10s, one continuous shot, one light source, placeholders that never move.1718**TEMPLATE STATUS: v0, built from one production (a dining-table arena reel: four takes, two creatures, one location, one prop). Every rule in the countermeasure table is a defect that actually happened. When a generation misbehaves, record the creator's report verbatim; those reports are the next version.**1920## Who does what2122- **The creator** films, answers questions, approves the swap list, each sheet and the prompt, and reviews the result.23- **The agent (you)** runs the scripts, reads the frames and the words, asks, writes the sheets and the prompt, verifies, and — only after the creator confirms — uploads the video with the sheet images and sends the validated prompt to Seedance 2.5. The creator never pastes anything anywhere.2425## PROMPT IMMUTABILITY — read this before anything else2627**The validated prompt is a payload, not a draft.** Everything after validation is transport, not authorship.2829- Send it to Seedance 2.5 **exactly as validated**: no summary, paraphrase, translation, reordering, condensing, reformatting or reconstruction. Section headers, fixed sentences, sheet blocks, punctuation and block order all travel unchanged.30- Never build "a shorter version for the model". The text shown to the creator, the text in the saved `.txt` and the text sent to the generator are ONE text.31- Where the generation tool accepts a file path, pass the saved `.txt` path instead of pasting content.32- If the tool refuses the full prompt (length cap, field limit), **STOP and tell the creator.** Never silently shorten it.33- If anything must change after validation, re-run the verifier and ask for approval again.34- Full fidelity starts at the first draft: the prompt is authored directly into the saved `.txt`, and every time it appears in the conversation it is the file's verbatim content, in full. A "preview version" must never exist. Split across messages if limits force it; never condense.3536Why: **a sectioned, rule-carrying prompt is read as a technical script and obeyed; a paragraph is read as mood and improvised over.** The baseline without this skill produced one paragraph with an approximate duration, frozen "sitting" creatures, an invented arena and exposed table edges — every failure the sections below exist to prevent.3738## Input3940- The creator's local video (one continuous take). If more than one file could be "the take", ask — never guess.41- The swaps, in the creator's words ("replace the left cup with a dragon", "turn the table into an arena"). Ask for them if they were not given.42- Optionally: existing sheets from a previous take (see Step 10). Never require the creator to produce reference images or crops; the sheets are made here.4344## Step 0 — Preflight (first run, or on any missing-tool error)4546```bash47python "<this skill's base directory>/scripts/check_env.py"48```4950Relay anything missing with its install command; never install without permission. Only Python and ffmpeg are needed. **This variant installs no transcription tool**: the words and their timings come from the host's own transcription of the uploaded video, which you run yourself in Step 1. Never try to install a transcriber, never ask the creator whether to install one, never spend a turn on it.5152## Step 1 — Ingest5354```bash55python "<this skill's base directory>/scripts/ingest.py" "<video path>"56```5758It prints `DURATION`, `DECLARE` (the one-decimal value the prompt must declare), `SIZE`, `FPS`, `HAS_AUDIO`, the 1 fps `FRAMES_DIR` and the upload-safe copy `UPLOAD_FILE` (lossless remux with the index moved to the front — a real upload failed with "moov atom not found" without it). Flags: `--force`, `--no-remux`, `--fps`.5960**Then TRANSCRIBE the video with the host's own transcription tool. This is a required step, not an option, and it happens right after ingest, without asking the creator.** Run the platform's transcription on the uploaded take (the same one used for captions), and write the result down as a `WORDS` list, one line per phrase with its start and end time, before reading the frames. If the take has no speech, write `WORDS: none (no speech)` and move on. Say plainly that the timings are the host's and may be coarser than word level. If the take visibly has speech and the host transcription shows multi-second holes in the middle of visible talking, treat it as suspect, show the creator the gaps, and confirm before designing. Never anchor a reaction to a word you cannot verify; when a word time is uncertain, anchor the reaction to the gesture in the frames instead.6162## Step 2 — Read the take (eyes + ears)6364Read ALL the 1 fps frames (frame `k` covers second `k−1`) alongside `WORDS`. Never work from audio alone: it cannot see the objects, the gesture or the light. Open the breakdown with two lines copied from the ingest output, `DURATION: <value>` and `DECLARE: <value>`, then the honesty header `Frames analyzed: N of M`. The word "approximately" (or "about", "roughly", "~") never appears next to a duration or a time anywhere in the conversation: every number comes from ingest or from a frame timestamp.6566**Gestures hide between 1 fps frames.** A half-second glance or a point can fall entirely between two frames. Whenever the creator says a gesture exists and the 1 fps frames do not show it, or whenever a swap must react to a gesture, sample the relevant stretch at 4 fps before deciding — and when the creator does not say where it is, sample the whole last third of the take, where closing gestures live:6768```bash69ffmpeg -y -loglevel error -ss <T0> -to <T1> -i "<video>" -vf fps=4 "<FRAMES_DIR>/dense_%04d.jpg"70```7172Report what you found with its time ("glance toward the table from 3.6s to 4.0s, back on camera at 4.1s"). Never report "no gesture" from 1 fps alone.7374Produce three things:75761. **Breakdown table**: time → spoken phrase → visual event (gesture, gaze, object interaction, camera move).772. **Inventory**: every object in frame with its position (left/right, near/far, centre), its size relative to the others, and whether it moves at any point. Every object is either a placeholder (will be swapped) or untouched (must be written into PRESERVE).783. **Preserve notes**: camera position, height, angle, framing, movement over time; the light source and its direction; the person (clothing, what they do second by second); the background.7980Zoom on anything ambiguous with one extra frame:8182```bash83ffmpeg -y -ss <T> -i "<video>" -frames:v 1 -q:v 2 "<FRAMES_DIR>/zoom_<T>s.jpg"84```8586**Checkpoint 1 — confirm the reading.** Show the creator the breakdown, the inventory and the preserve notes. Ask: is anything wrong or missing? Objects the agent did not see will not be preserved, so this is where the creator adds them.8788## Step 3 — Agree the swaps8990Turn the creator's words into a closed **SWAP LIST**, one entry per swap:9192| field | what to settle |93|---|---|94| `placeholder` | the exact object or area from the inventory, with its position |95| `replacement` | what it becomes, in one or two words |96| `kind` | `creature` (alive, moves) · `object` (inert, never moves) · `location` (a surface or background becomes a place) |97| `scale` | **always asked, never assumed**: size relative to the placeholder AND to the person ("colossal: a human would reach its knee" / "cat-sized on the shoulder" / "same footprint as the mouse" / "covers the entire tabletop edge to edge") |98| `behaviour` | creatures: what it does at rest and how it reacts to each gesture or word in the take; objects: nothing, ever |99| `sheet` | an existing approved sheet, or "new" |100101Questions to ask when the answer is not in the creator's words: scale (always), which side is which when two placeholders look alike, whether a swapped object may react when touched (default: no), what the person's gestures point at, and whether a location covers everything or only a named area.102103Rules the swap list must respect (write them down, do not negotiate them away later):104- A placeholder that moves in the take will pass its motion to whatever replaces it. Say so, and let the creator choose: keep the take and add the "discard object motion" rule (works for small motion), or reshoot.105- Everything not in the swap list is preserved. There is no "and tidy up the rest".106- One location per take at most.107- **Positions are screen positions.** A replacement occupies its placeholder's exact position in the frame. "Left" and "right" in the swap list and in the prompt always mean the viewer's left and right of the frame, never the person's. When the creator says "over my left shoulder", translate it to the frame ("the cup at centre-right of frame, above his left shoulder") and confirm once.108- **"The background", "the room", "the wall and the window", "everything behind me" is ONE location placeholder covering every room element visible behind the person** — wall, window, curtains, sofa, side tables, doorway, floor if visible. When the creator asks for that, list what LEAVES, not what stays; the only things that stay are the person and any object the creator names. Do not keep the sofa in a rainforest. The verifier rejects a PRESERVE that still lists room elements when the whole background is a location placeholder.109110**Checkpoint 2 — approve the swap list.** Show it as a table. Wait for a yes. Then write `<video stem>_world.json` from `templates/world.example.json` (fields: `video`, `upload_file`, `duration`, `declare`, `person`, `swaps[]`, `prompt`). This file is the frozen source of truth for the verifier.111112## Step 4 — Sheets (text first, then the image)113114For every swap whose `sheet` is "new", build a sheet from the template — `templates/character-sheet.md` for creatures and objects, `templates/location-sheet.md` for locations — and save it as `sheets/<name>.md` next to the video. Worked examples that shipped: `examples/sheets/` (a colossal furry dragon, a fingernail-sized rabbit, a black button, a tabletop arena).115116**The PROMPT BLOCK is the contract.** One paragraph, 100–200 words, written once and never edited after approval, because the verifier checks it appears in every prompt verbatim. It carries what the thing IS (silhouette, body, face, eyes, colours, materials with realism cues, distinctive features) and ends with the realism sentence. It carries NO scale (scale is per swap) and NO behaviour (behaviour lives in the sheet's repertoire and is assembled per take).117118Wording rules that decide whether the result is an animal or a toy: open creature blocks with "A photorealistic living animal:", name real materials ("real fur with individual hairs catching the light", "wet reflective eyes with catchlights"), and never use toy vocabulary anywhere in a sheet (the verifier rejects diorama, figurine, chibi, cute, playful, cartoon in authored sections).119120**Locations must carry a COVERAGE RULE in absolute terms.** "Covers the entire tabletop edge to edge, about two metres across, its outer tier sitting on the table edges so no bare wood is visible" — not "sits on the table". Under-sized locations were the single most repeated defect in production.121122**Then the image.** Generate the sheet image with GPT Image 2 from the sheet's IMAGE PROMPT: three panels (front, side, scale panel) on white for characters; for locations, attach the take's first frame so the place is rendered on the real surface from the real angle. Save it as `sheets/<name>.png` and write the path into the sheet and into `world.json`. Objects rarely need an image; creatures and locations always do.123124**Checkpoint 3 — approve each sheet.** Show the PROMPT BLOCK and the image together. Regenerate the image until it matches the text; never edit the text to match a wrong image. Mark the sheet `status: approved`. From here the block is frozen.125126If image generation is unavailable, write `image: pending` in the sheet and `"image": "pending"` in `world.json`, and say so to the creator. A creature or location sheet that is still pending blocks generation (Step 8): the text alone does not hold a character steady across takes.127128## Step 5 — Write the prompt129130Author it directly into `<video stem>_world_swap_prompt.txt` from `templates/prompt-skeleton.txt`. Mutate ONLY the bracketed zones; every unbracketed sentence is load-bearing and must be reproduced exactly.131132- `[DURATION]` — `DECLARE` from ingest, in both places of the CRITICAL line.133- `[PERSON LINE]` — pick by what the take contains:134 - **With dialogue**: `The [man/woman] must CONTINUE SPEAKING exactly as in the BASE VIDEO. Preserve [his/her] exact dialogue, voice, timing, lip sync, face, expressions, gestures and body movement, frame for frame. [His/Her] facial identity comes entirely from the BASE VIDEO. Do not re-animate the face, do not change the duration.`135 - **Person, no dialogue**: `Preserve the [man's/woman's] exact face, expressions, gestures, actions, body movement and timing, frame for frame. Do not introduce dialogue. [His/Her] facial identity comes entirely from the BASE VIDEO.`136 - **No people**: `There are no people in the frame at any point. Preserve the exact original movement of the camera, the object positions and the timing.`137- `PRESERVE` — from Step 2, in concrete words. Every untouched object with its position. **If the person stands in front of the table, say so and say what is NOT between the camera and the person** — the model otherwise resolves ambiguous depth by putting the table in the foreground. When the whole background is a location placeholder, the `Background:` line reads `replaced by the location below` and the `Untouched objects:` line lists only what the creator named to keep.138- `SWAP n` blocks — one per creature/object swap, in `world.json` order, header `SWAP n — <placeholder, position> → <replacement> (@sheet_<name>)`, then the sheet's PROMPT BLOCK verbatim, then `Position and scale:` (same spot as the placeholder, the agreed scale, what it must never exceed), then `Behaviour:`, then `Audio:`.139 - Creature behaviour: 2–4 idle actions that run all the time, then each reaction anchored to a time and a word or gesture ("at 2.6s, as he says 'guy' and the finger points at it, it lifts its head, glances up at the camera, blinks, then keeps moving"), and **the last thing described is a continuing motion**: "and is still shifting and breathing as the shot ends". A pose described last becomes a frozen final frame.140 - Object behaviour: the immobility sentence. If the take presses or touches it, add "even when pressed" and "the fingertip rests on its top surface and never passes through it".141 - When a creature replaces something the person points at or touches, write the finger's timing from `WORDS`/frames so the reaction lands on the gesture.142- `LOCATION` block — only if a location swap exists: header `LOCATION — <area> → <location> (@sheet_<name>)`, the PROMPT BLOCK verbatim, then `Coverage:` copied from the sheet's COVERAGE RULE and adapted to this framing ("when the camera is close, the tiers run off the left and right edges of the frame"), then `Audio:` for sounds the location itself makes (banners, water) or `none`.143- `LIGHT` — the single source and its direction from the frames.144- `STYLE` — keep the phone-look list; adjust only the white balance words if the take is visibly warm or cool (a take shot under warm lamps: replace "neutral slightly cool white balance" with "warm slightly yellow white balance" and nothing else). Never add "cinematic", "graded", "filmic".145- `AUDIO` — keep the original; add sounds the swaps make (a heavy creature's shuffle, banners), remove sounds of removed things. No music.146- `FINAL FEEL` first line — with a person in the take: `Same scene. Same camera. Same person. Same performance. Same dialogue. Same voice. Same timing. ONLY THE LISTED SWAPS CHANGE.`; no people: `Same scene. Same camera. Same object positions. Same timing. ONLY THE LISTED SWAPS CHANGE.` The negatives line below it never changes.147148`examples/` holds one complete worked take (world.json + prompt) as a reference for tone and density. Never copy it for another take: every PRESERVE line, every position and every reaction time must come from the frames and words of the take in front of you.149150Attachment names: the video is `BASE VIDEO`; each sheet image is referenced as `@sheet_<name>` in its header and attached under that name.151152## Step 6 — Verify153154```bash155python "<this skill's base directory>/scripts/verify_prompt.py" "<saved .txt>" --world "<video stem>_world.json"156```157158It must print `PASS`: sections in order, duration declared twice and equal to `declare`, every swap has its block and names its replacement, every sheet PROMPT BLOCK present verbatim, creature blocks run first-to-last frame, object blocks say motionless, location has a Coverage line, no toy or approximation vocabulary in the authored sections, negatives intact. Then it prints the fingerprint (`payload: <N> characters, sha256:<hash>`): record both, they are the transport check. Fix and re-run on `FAIL`; take `WARNING`s to the creator.159160## Step 7 — Present, then MANDATORY checkpoint161162Show, in this order: two lines on how it works (the video is preserved, the listed swaps are written, everything else is locked), the swap table, and the prompt IN FULL as a fenced block (the file's verbatim content). Then ask: approve, or change something? Never generate in the same turn you validate. "The creator is in a hurry" does not waive this.163164## Step 8 — Generate165166Only after the yes. Upload `UPLOAD_FILE` (the faststart remux) as the base video, attach every sheet image listed in `world.json` under its `@sheet_<name>`, and send the saved `.txt` **exactly as validated**. Immediately before the call, state these four facts out loud, read from the file:1671681. the declared duration, and that it equals the real duration from ingest;1692. the number of swap blocks, and that it equals the number of swaps in `world.json`;1703. the sheets attached, by name, that none of them is pending, and that each PROMPT BLOCK is in the prompt verbatim;1714. **the character count and sha256 of the payload you are about to send, and that both equal what the verifier printed.**172173Fact 4 is the one that cannot be faked by intent. Settings: the same duration as the take, the take's aspect ratio, Seedance 2.5.174175## Step 9 — QC (honest, in this order)176177Read frames of the result at 1 fps and check, most severe first — the first failure decides the verdict:1781791. **Face and lip sync** (takes with a person): not the creator → the take is unusable, regenerate.1802. **Position of the person relative to the surface**: in front stays in front.1813. **Every swap in its placeholder's spot**, at the agreed scale; a location at its coverage (no bare surface where none was allowed).1824. **Creatures moving in the last second**; objects that never moved.1835. **Shadows** in the take's light direction; nothing glowing.1846. **Phone look**: no grade, no haze, no bloom, no shallow focus.185186Report what passed and what failed, per swap. Never present drift as success. Regenerate rules: fix the prompt only when the defect maps to a missing or weak sentence (then re-verify and re-approve); otherwise regenerate as is — the same prompt varies between runs. Log the defect and the fix in the countermeasure table.187188## Step 10 — Next takes: reuse the world189190The next take of the same project reuses `world.json`'s sheets untouched: same PROMPT BLOCKs, same images, new placeholders and positions, new scale per take if the framing demands it. This is what keeps a creature identical from a wide shot to a shoulder close-up. Never rewrite an approved sheet for a new take; if the creature must look different, that is a new sheet with a new name.191192After generation, the creator finishes in Edit More: trim, split-screen with the original, captions, music, export.193194## Do NOT (observed failure modes this skill exists to prevent)195196- Do NOT write an approximate duration ("~7s", "about five seconds"). Ingest measures it; the prompt declares it twice; the verifier checks it.197- Do NOT describe a creature at rest as a pose ("sitting upright", "stands facing the camera"). Poses freeze. Every creature runs on idle actions from the first frame to the last, and the last described action is a continuing motion.198- Do NOT use toy or diorama vocabulary (diorama, figurine, chibi, cute, playful, cartoon, "miniature toy") anywhere in authored text. It renders plastic. Say "a photorealistic living animal filmed by the same phone". The word "miniature" on its own is fine — a miniature arena is a real object.199- Do NOT invent looks on the fly (a "white-and-cream rabbit" because the colour was unspecified). Ask, write the sheet, freeze it.200- Do NOT let a location keep "exposed surface at the edges" or "confine it to the visible area". Coverage is absolute and stated in the sheet.201- Do NOT forget the immobility sentence for objects, and do NOT forget "DISCARD any object motion present in the BASE VIDEO" when a placeholder wobbles in the take — the replacement inherits it otherwise.202- Do NOT leave the person's depth ambiguous. "In front of the table, nothing between the camera and the person" or the table jumps to the foreground.203- Do NOT assume scale. A "big" creature was rendered toy-sized when the prompt only said big. Relative to a human, in the prompt.204- Do NOT write the prompt as a paragraph, and do NOT condense, paraphrase or reassemble it after validation. Stop and report if the tool refuses the full text.205- Do NOT generate in the same turn you validate, and do NOT skip a checkpoint because the creator seems in a hurry.206- Do NOT re-open an approved decision (a scale, a sheet, a swap) on your own; if the creator changes it, update `world.json`, re-verify, re-approve.207- Do NOT edit an approved PROMPT BLOCK to match a wrong image. Regenerate the image.208- Do NOT add "cinematic", "graded", "filmic", "haze", "light shafts" or "bloom" in positive form. The take is phone footage and the output must stay phone footage.209- Do NOT tell the creator to paste, upload or attach anything. You generate.210- Do NOT invent Seedance 2.5 limits. If a generation truncates or refuses, record the facts instead of guessing workarounds into the prompt.211212## Countermeasure table (defects from live generations)213214Each row is a defect that happened, plus the fix now baked in. Never delete a row; add one every time a generation misbehaves.215216| Reported defect | Date | Countermeasure |217|---|---|---|218| Arena rendered small on the table, bare wood all around, floor visible; the prompt had said "sits on the table" and "the whole arena in frame". | 2026-09-04 | COVERAGE RULE in absolute terms in the location sheet ("entire tabletop edge to edge, two metres, no bare wood visible"), copied into the LOCATION block; when the camera is close, say the location runs off the frame edges. Verifier requires a `Coverage:` line. |219| Both creatures froze into a pose in the last second (they "looked up at the camera" and held). | 2026-09-04 | MOTION RULES fixed block; every creature block must say first frame → last frame; the last described action is a continuing motion, never a pose. |220| A red cup that replaced a wobbling crate inherited the crate's wobble and dust. | 2026-09-04 | "DISCARD any object motion present in the BASE VIDEO" fixed sentence + the object immobility sentence with every verb named (rock, wobble, tip, roll, slide, spin…). |221| The man, standing in front of the table in the source, was rendered behind it, and the framing widened to fit the table. | 2026-09-04 | PRESERVE must state the person's depth and "nothing between the camera and the person"; CRITICAL locks the framing; a wooden edge at the bottom of the source that belongs to a swapped location is named and removed with it. |222| Output came back colour-graded and hazy (warm grade, light shafts, bloom) from a flat phone take. | 2026-09-04 | STYLE fixed block lists the phone look positively and forbids regrading; negatives list carries "No colour grading. No cinematic look. No haze, no light shafts, no bloom…". |223| A creature that was supposed to be colossal came out toy-sized because the prompt only said "big". | 2026-09-04 | `scale` is a mandatory swap field, always asked, always relative to a human and to the placeholder, written in `Position and scale:`. |224| The pointing finger appeared only in the last second because the shot description mentioned it late. | 2026-09-04 | Anything that must be present from the start is written as "in frame from the very first frame to the last"; reactions are anchored to times from `WORDS`/frames. |225| Same dragon rendered visibly different between two takes written from memory. | 2026-09-04 | Sheets: the PROMPT BLOCK is frozen and verified verbatim in every prompt; the GPT Image 2 sheet image is attached to every generation. |226| Baseline agent without this skill: one-paragraph prompt, "~7s", "sitting upright" creatures, invented arena with rope and toothpick banners, "keep exposed wood at the edges", no negatives, no verification. | 2026-09-04 | This skill. |227| Live in Video Studio: Whisper could not be installed; the agent spent the turn on the install ladder before falling back. | 2026-09-04 | Step 0 tries ONE install, then falls back to the host transcription at once and says so. Gestures come from frames; words are secondary for swaps. |228| v3 variant: the install still cost a turn and a question. | 2026-09-10 | No transcription dependency at all. `check_env.py` checks only Python and ffmpeg; `ingest.py` produces duration, frames and the remux; words come from the host's own transcription, written into a WORDS list before the reading. |229| v3 live: told to "take the host's transcription", the agent did not transcribe at all until asked. | 2026-09-10 | Step 1 now says TRANSCRIBE, as a required action right after ingest, without asking; a silent take is recorded as `WORDS: none`. |230| Live: the agent wrote "approximately 5.1 seconds" in its reading before running ingest. | 2026-09-04 | Step 2 opens with DURATION and DECLARE copied from ingest; "approximately / about / roughly / ~" banned next to any time. |231| Live: asked for "the wall and the window" to become a rainforest, the agent swapped only the window and kept the sofa, side table and doorway as "preserve". | 2026-09-04 | Step 3 rule: the background is ONE location placeholder covering every room element behind the person; list what leaves. Verifier rejects PRESERVE lines that still list room elements when a location placeholder names the background. |232| Live: the creator's glance toward the cup (3.6–4.0s) fell between 1 fps frames; the agent searched only the 4.0–4.8s window it was given and reported "no glance". | 2026-09-04 | Step 2 dense-sampling rule: 4 fps over the stretch in question, or the whole last third of the take, before reporting a gesture absent; never "no gesture" from 1 fps alone. |233| Live: "over my left shoulder" versus "right-middle of frame" caused a side question. | 2026-09-04 | Positions are screen positions; left/right always mean the viewer's frame; the agent translates body-relative wording to frame wording once and confirms. |234235## Files236237- `scripts/check_env.py` — preflight, reports only.238- `scripts/ingest.py` — duration, frames, faststart remux. No transcription: words come from the host.239- `scripts/verify_prompt.py` — structure + contracts + fingerprint.240- `templates/prompt-skeleton.txt` — the prompt with its fixed sentences.241- `templates/character-sheet.md`, `templates/location-sheet.md` — sheet templates with the GPT Image 2 prompts.242- `templates/world.example.json` — the frozen swap list format.243- `templates/filming-checklist.md` — for creators who ask before shooting.244- `examples/sheets/` — four approved sheets from production (dragon, rabbit, black-button, arena).