← NimCONTENT HISTORY

Update to Nim

Snapshot Nov 18, 2026 · 18:12 UTC · version 1.0.2

Collection source: downloaded plugin package.

WHAT CHANGED

Instructions updated for nim-replace-character

Skill instructions — Now says: > **Before any generation call:** tell the user the chosen model, resolution or mode (e.g. draft 480p), aspect ratio and duration or batch size, plus the...

Observed in instructions or declared skills. Runtime behavior has not been tested.

Save Nim and check future changes in Following.

Up to 3 plugins free · no card required.

All fields and original values.

Skill instructions

Before

Nov 17, 2026 · 12:11 UTC

No removed lines (ordering may have changed)

After

Nov 18, 2026 · 18:12 UTC

> **Before any generation call:** tell the user the chosen model, resolution or mode (e.g. draft 480p), aspect ratio and duration or batch size, plus the credit estimate when known, and start only after they confirm. See `nim-defaults` →...

Compare saved observations

Download comparison JSON

SKILL.md text changes

− removed · + added

--- before
+++ after
@@ -6,6 +6,8 @@
 
 # Replace people in a video with characters (Nim)
 
+> **Before any generation call:** tell the user the chosen model, resolution or mode (e.g. draft 480p), aspect ratio and duration or batch size, plus the credit estimate when known, and start only after they confirm. See `nim-defaults` → Confirm before generating.
+
 The user gives a **video** and **one or more character images** and says "replace me with this
 character" (or several people with several characters). The user does not write prompts or
 pick settings — the agent does.
Full technical diff · 1 changed fields

changed /skill_md_contents

BEFORE
"---\nname: nim-replace-character\ndescription: Replace the user (or the people) in their video with characters from their images — through Nim. The agent prepares the video, splits it into shots, groups similar shots so each generation replaces as few people as possible (a dialogue that alternates between two people becomes two clips), sends every group plus the character images to the Replacing Character Pipeline, puts the shots back in their original order frame for frame, lays the original sound on top and hands the finished video file to the user in the chat. Takes the user's own video and swaps the people in it (unlike motion transfer, which moves a performance onto a new character). Use this skill whenever the user uploads a video and one or more character images and asks to \"replace me with this character\", \"swap me in this video\", \"put this character in my place\", \"turn us into these characters\", or mentions the Replacing Character Pipeline — even if they phrase it loosely or do not describe the steps.\ncompatibility: Requires the Nim MCP connector (media_upload, models_explore, generate_video, get_generation_status), ffmpeg/ffprobe (libx264), Pillow and OpenCV (cv2).\n---\n\n# Replace people in a video with characters (Nim)\n\nThe user gives a **video** and **one or more character images** and says \"replace me with this\ncharacter\" (or several people with several characters). The user does not write prompts or\npick settings — the agent does.\n\nSeedance handles several people in one clip badly (often only one is replaced). So the video is\ncut into **shots**, the shots are **grouped** by who is in them, and each group is stitched into\nits own clip — ideally with one replaced person. Shots with no replaced person are not sent.\nEach clip goes through its own generation; when the results are back, every shot returns to\nits original frames, the source audio goes on top, and the finished file goes to the user.\n\n```\nvideo ─► prepare_video.py ─► split_shots.py (sheets: who is in which shot)\ncharacter images ─► prep_images.py ─► shot plan (groups)\n   build_groups.py ─► g_A.mp4, g_B.mp4 …  (one clip per group)\n   media_upload ─► generate_video ×N in parallel (clip + only its characters)\n                ─► assemble.py (shots back in original order, frame-exact)\n                ─► finalize.py (source audio) ─► result.mp4 to the user as a file\n```\n\nInvoking this skill counts as the user choosing Nim; Nim tools may be called directly.\nPass `skills: [\"nim-replace-character\"]` on every Nim call that accepts it.\nWork in one scratch folder (called `WORK` below — e.g. `/home/claude/rcp` or the session\nscratchpad).\n\n## Usage tracking\n\nOnce per new user request that you handle with this skill, call the Nim tool `track_skill_activation` with `skill_name: \"nim-replace-character\"`. Do not call it again while polling, retrying, or continuing the same request. If the tool is unavailable or fails, continue without retrying and without mentioning it to the user.\n\n## Model\n\nSeedance 2.0 Advanced Mode, reference-video mode. This is the only model and the only prompt\n(`references/video_prompt.md`).\n\n| Parameter | Value |\n|---|---|\n| `model_id` / `model_name` | `advanced:seedance:v2fal:standard` / `Seedance 2 Advanced Mode` |\n| `referenceVideos` | `[group clip URL]` — a new video that follows the clip (no edit mode) |\n| `fileInputs` | the character image URLs of that group, up to 9 |\n| `mediaLength` | the clip length in ms, whole seconds 4000–15000 (`groups.json` → `media_length_ms`) |\n| `requestedAspectRatio` | the nearest of `16:9 9:16 1:1 4:3 3:4 21:9` to the clip |\n| `resolution` | from the option (480p / 720p) |\n| `generateAudio` | `false` |\n| `batchSize` | `1` |\n\nDo not pass `fps`, `keepSound`, `sourceVideo`. Read the model's `generationContract`\n(`models_explore action=get`) before the first call.\n\n## What the user sees\n\nThe user is buying a finished video, not following the pipeline. So:\n\n- **Deliver the file, not a link.** The deliverable is `result.mp4` with the source audio,\n  attached in the chat with the host's file tool (`present_files`, `SendUserFile`, or copying it\n  to the outputs folder the host shows). Raw `mediaUrl`s, `file_url`s, storage/bucket links and\n  `nim.video/explore` pages are internal plumbing — they carry the silent raw renders or the\n  uploads, so never paste them into the chat.\n- **No verdicts.** Do not grade the result (\"both swaps worked\", \"one defect: …\", model A vs\n  model B). The user judges the video themselves; an opinion from the agent is noise at best and\n  wrong at worst.\n- **The setting stays as it is in the video** unless the user asked to change it: the prompts\n  say so explicitly (`{SETTING}`); only a user's wish for another place replaces that line.\n- **No pipeline narration.** No moderation refusals, face blurring, model or vendor names. In\n  user-facing text the stage is the **Replacing Character Pipeline** («пайплайн замены\n  персонажа»). The only thing said about the split is the one line in the question (\"N parts\").\n- **One question per paid step** — the choice of the run (Stage 0, step 6) and, after a 5 s\n  check, whether to make the full video (Stage 2, step 4). Nothing else is asked, whatever the\n  character image shows (drawn, photo, animal, object). One hard limit: a recognizable public\n  figure is never put into a video.\n\n## Inputs\n\n| Input | Required | Source |\n|---|---|---|\n| Video | yes | user |\n| Character image(s) | yes | user; 1–4 per character, several angles or a character sheet help |\n| Who becomes whom | if >1 person or >1 character | asked inside the Stage 0 question |\n| Extra wishes | no | user |\n\nIf the video or the character images are missing, show \"Короткая памятка\" from\n`references/user_guide.md` (in the user's language) and wait.\n\n## Stage 0 — Prepare, split, plan, confirm (free)\n\n1. **Prepare the video.** Everything after this uses the prepared file.\n   ```bash\n   python scripts/prepare_video.py <video> WORK/driving.mp4\n   ```\n   - 4–30 s. Under 4 s → exit 2 `rejected`: ask for a longer video (no looping or slowing).\n     Over 30 s → exit 2 `needs_trim`: ask which part to keep (suggest the first 30 s), rerun\n     with `--start S --end E`. The length is kept exactly; `result.media_length_ms` is it.\n   - Fixes small frames (provider minimum 409 600 px and 854×480), converts to 24 fps H.264\n     with even sides, fits the 20 MB upload cap. Exit 3 `too_large` → ask for a shorter segment.\n   - Heavy sources can take minutes: run with a timeout or in the background.\n2. **Prepare the character images** — Seedance accepts aspect ratios 2:5…5:2 only; wider or\n   taller images are padded, never cropped:\n   ```bash\n   python scripts/prep_images.py WORK/refs <image1> <image2> …\n   ```\n   Use the `out` PNGs from here on.\n3. **Split into shots and read the video to 0.1 s.**\n   ```bash\n   python scripts/split_shots.py WORK/driving.mp4 WORK/sp\n   ```\n   Writes `shots.json` and the sheets in `WORK/sp/`: `timeline_N.png` (one frame every 0.1 s\n   with its time, 5 s per sheet), `sheet_N.png` (first / middle / last frame of every shot),\n   `cuts.png` (every cut and candidate as a frame-before | frame-after pair). Look at **all**\n   of them and at every character image. **Read the video yourself first**: go through the\n   timeline sheets frame by frame (0.1 s apart) and write down, before looking at the detected\n   list, (a) the exact time and frame of every cut — the last frame of the old shot and the\n   first frame of the new one — and (b) for every person the exact times (to 0.1 s) when they\n   are on screen, in which position and at what angle. A smooth movement (a head turning, a hand\n   sweeping through the frame) is not a cut; a jump of composition, person or background is.\n   Then compare with `cuts` and `candidates`: every candidate is settled by looking at its\n   before | after pair (and, if needed, single frames around it). Where your list and the\n   detector disagree, go with what the frames show and rerun with `--cuts F1,F2,…` (frame\n   numbers where a new shot starts: the accepted cuts). A missed cut between shots of different\n   people is the costly mistake; a false cut inside one group is harmless. Also work out: what\n   tells the people apart (viewer-side position, clothes, headgear), the style of each character\n   image (photo / anime / cartoon / 3D / painting / object), and the type of every person and\n   every character — exactly one of man / woman / boy / girl / character (the only nouns the\n   prompts use).\n4. **Shot plan** — for every shot write down its **subject** (the replaced person whose face is\n   on screen, the largest if several) and **every other replaced person visible in any way**:\n   from behind, in profile, at the frame edge, half hidden. Then group:\n   - Group by subject, put every visible replaced person into that group's generation, treat\n     camera moves between people as two-person wide shots, glue short shots to neighbours, keep\n     each clip ≤ ~8 s and ≤ 3 runs: **read `references/shot_planning.md` and follow it.**\n   - Write `WORK/plan.json` — `{\"groups\": {\"A\": [1, 3, 5], \"B\": [2, 4]}}` (shot numbers) —\n     and build the clips:\n     ```bash\n     python scripts/build_groups.py WORK/driving.mp4 WORK/sp/shots.json WORK/plan.json WORK/grp --max-s 15 --audio [--mute A,B]\n     ```\n     **Sound goes into the clips by default (`--audio`)**: the model's\n     subtitles and mouth movements follow the source better with it, and it changes nothing else. Groups whose people do not speak are built silent with\n     `--mute A,B` (group ids). With no sound in the source the clips are silent anyway. Clips are `WORK/grp/g_<id>.mp4`: the group's shots, with 6 solid\n     magenta frames between shots that were not neighbours (they keep near-identical shots apart\n     and mark the exact cut for `assemble.py`), and, up to whole seconds, the source frames right before and after the group's shots (`head`/`tail` in groups.json; thrown away at assembly, billed).\n     **Never fill a clip with copies of itself**, the model then just repeats the reference (the result comes back unchanged). A group under 4 s → exit 2: glue its shots\n     to the group they touch in the video (contiguous shots become one run), or else to the\n     group closest in length that has a person to replace. Short shots (pans, 0.5 s inserts)\n     go with the neighbouring shots that show the same people; a pan shows both people, so\n     put it with the shots on either side of it.\n     `groups.json` lists per group the length (`media_length_ms` → `mediaLength`), the shots and\n     their times **on the group's own clip** (use those for `{WHEN}`).\n   - Per group: the people to replace (with what marks them in that group) and the people who\n     stay. More than two replaced people in one group: say in the question that some may stay\n     unchanged.\n5. **Prices from Nim** — never from memory. Per group, then add up:\n   `models_explore action=get model_id=advanced:seedance:v2fal:standard` with\n   `referenceVideoCount=1`, `referenceImageCount=<that group's character images>`,\n   `aspectRatio`, `resolution`, `minDurationMs=<group media_length_ms>` →\n   `priceEstimate.credits`. The reference video adds a duration-based charge on top; the\n   final charge can be well above the estimate — say \"can be higher\".\n\n   | Option | Length | Resolution |\n   |---|---|---|\n   | A. Check | first 5 s (skip if the clip is ≤ 5 s) | 480p |\n   | B. Full | whole prepared length | 480p |\n   | C. Full | whole prepared length | 720p |\n\n   Option A is planned again on its own 5 s (steps 3–4 on `driving_5s.mp4`).\n6. **The one question** (host choice UI if there is one, else a numbered list): what was done\n   to the video (one line), that it will be generated in N parts (one line: which people in\n   which part, if N > 1), who becomes which character, options A / B / C with one total price\n   each, and **D. Change something** (segment, resolution, mapping, wishes). Ask an\n   unclear mapping in the same message. **When the video has speech and more than one person,\n   ask in the same message, plainly, whether each character speaks in all scenes** («говорят ли\n   персонажи во всех сценах, и где кто молчит — это улучшит результат»): the frames alone do\n   not tell who owns the voice (a listener's mouth moves too). Groups of people the user says do not speak are built with `--mute` and get the\n   silent `{PERFORMANCE}` line; groups of speakers keep the sound. The answer approves one\n   generation per group and,\n   after an intake refusal, one retry of that group without sound. After that run Stages 1–2\n   without further questions. Anything else paid needs a new yes.\n   - Option A: `prepare_video.py <video> WORK/driving_5s.mp4 --start 0 --end 5`, then steps 3–4\n     on that file and use it from here on.\n\n## Stage 1 — Generate\n\n1. **Upload** every group clip and the character PNGs: `media_upload` → run its `curl_example`\n   with the real path (one upload URL serves several files while valid) → keep each `file_url`.\n2. **Prompt per group** from `references/video_prompt.md`: that\n   group's people (subject and extras) and their images; `@Image` numbers follow that group's\n   `fileInputs`. Fill `{PERFORMANCE}` per person (speaks / does not speak), `{MARKERS}` whenever\n   the clip has separators (several runs), `{SETTING}` (keep the environment).\n3. **Call `generate_video` once per group, all in one message** (they run in parallel), with\n   the parameters of the Model table.\n4. **Poll** `get_generation_status` for every group every 1–2 min until `finished | failed |\n   cancelled | removed` (typically 4–8 min).\n5. **On failure find the real cause** — `errorCause` is often null; do not guess:\n   - `素材处理失败` / `Failed to register input media with the provider` — the clip is outside\n     the pixel limits; check it went through `prepare_video.py`.\n   - Error text names moderation / safety / sensitive / copyright content, or `failed` within\n     ~20 s with `errorCause` null (the clip was refused at intake, e.g. film footage of\n     recognizable actors, or the error `InputVideoSensitiveContentDetected`) → **one**\n     retry of that group with the clip built without sound (`build_groups.py … --mute <id>`).\n     **Never blur** anything to get past a refusal, neither the source nor the character images:\n     a blurred source passes intake but the blur stays in the result and nothing is swapped.\n     Refused again → try the shots without the recognizable person on their own and leave that\n     person original (a clip without him was accepted), or tell the user the clip cannot be used\n     and ask for another one (see the guide).\n   - Anything else → tell the user that part of the video failed, with the `promptId`; no blind\n     retry (a rerun of one group is a new paid step and needs a new yes). Keep the finished\n     groups' results.\n   Refused and failed generations are not charged.\n\n## Stage 2 — Finish and deliver\n\n1. Download every `mediaUrl` to `WORK/raw_<id>.mp4`. With several groups put the shots back:\n   ```bash\n   python scripts/assemble.py WORK/driving.mp4 WORK/grp/groups.json WORK/assembled.mp4 A=WORK/raw_A.mp4 B=WORK/raw_B.mp4\n   ```\n   Exit 0 = the output has exactly the original's frame count. (Exit 3 or an error: do not\n   deliver; tell the user the video could not be assembled, with the `promptId`s.) This runs\n   for a single group too: it cuts off the extra frames and matches the length.\n2. Put the source audio back (`driving_5s.mp4` for option A):\n   ```bash\n   python scripts/finalize.py WORK/assembled.mp4 WORK/driving.mp4 WORK/result.mp4\n   ```\n3. Hand `WORK/result.mp4` to the user as a file in the chat (see \"What the user sees\").\n4. Reply in 1–2 lines: that the video is ready, and the credits spent (all groups). Nothing else\n   — no links, no assessment, no process details.\n5. **After option A, ask whether to make the full video** — one question (host choice UI if\n   there is one): full @480p / full @720p with their prices, or not now. Get the prices the\n   same way as in Stage 0, step 5.\n\n## Stage 3 — Full run after the check\n\nWhen the user picks a full run after option A: the 5 s check covered only the start, so run\nStage 0 steps 3–4 again on the full `driving.mp4` (split, plan, `build_groups.py`), with the\nsame character images and mapping. The user's choice is the yes for one generation per group\n(plus the moderation retry). Then Stage 1 and Stage 2.\n\n## Failure handling\n\nLimits and error meanings: `references/pipeline_limits.md`. Explain errors to the user with the\nguide's \"Частые причины отказа\".\n"
AFTER
"---\nname: nim-replace-character\ndescription: Replace the user (or the people) in their video with characters from their images — through Nim. The agent prepares the video, splits it into shots, groups similar shots so each generation replaces as few people as possible (a dialogue that alternates between two people becomes two clips), sends every group plus the character images to the Replacing Character Pipeline, puts the shots back in their original order frame for frame, lays the original sound on top and hands the finished video file to the user in the chat. Takes the user's own video and swaps the people in it (unlike motion transfer, which moves a performance onto a new character). Use this skill whenever the user uploads a video and one or more character images and asks to \"replace me with this character\", \"swap me in this video\", \"put this character in my place\", \"turn us into these characters\", or mentions the Replacing Character Pipeline — even if they phrase it loosely or do not describe the steps.\ncompatibility: Requires the Nim MCP connector (media_upload, models_explore, generate_video, get_generation_status), ffmpeg/ffprobe (libx264), Pillow and OpenCV (cv2).\n---\n\n# Replace people in a video with characters (Nim)\n\n> **Before any generation call:** tell the user the chosen model, resolution or mode (e.g. draft 480p), aspect ratio and duration or batch size, plus the credit estimate when known, and start only after they confirm. See `nim-defaults` → Confirm before generating.\n\nThe user gives a **video** and **one or more character images** and says \"replace me with this\ncharacter\" (or several people with several characters). The user does not write prompts or\npick settings — the agent does.\n\nSeedance handles several people in one clip badly (often only one is replaced). So the video is\ncut into **shots**, the shots are **grouped** by who is in them, and each group is stitched into\nits own clip — ideally with one replaced person. Shots with no replaced person are not sent.\nEach clip goes through its own generation; when the results are back, every shot returns to\nits original frames, the source audio goes on top, and the finished file goes to the user.\n\n```\nvideo ─► prepare_video.py ─► split_shots.py (sheets: who is in which shot)\ncharacter images ─► prep_images.py ─► shot plan (groups)\n   build_groups.py ─► g_A.mp4, g_B.mp4 …  (one clip per group)\n   media_upload ─► generate_video ×N in parallel (clip + only its characters)\n                ─► assemble.py (shots back in original order, frame-exact)\n                ─► finalize.py (source audio) ─► result.mp4 to the user as a file\n```\n\nInvoking this skill counts as the user choosing Nim; Nim tools may be called directly.\nPass `skills: [\"nim-replace-character\"]` on every Nim call that accepts it.\nWork in one scratch folder (called `WORK` below — e.g. `/home/claude/rcp` or the session\nscratchpad).\n\n## Usage tracking\n\nOnce per new user request that you handle with this skill, call the Nim tool `track_skill_activation` with `skill_name: \"nim-replace-character\"`. Do not call it again while polling, retrying, or continuing the same request. If the tool is unavailable or fails, continue without retrying and without mentioning it to the user.\n\n## Model\n\nSeedance 2.0 Advanced Mode, reference-video mode. This is the only model and the only prompt\n(`references/video_prompt.md`).\n\n| Parameter | Value |\n|---|---|\n| `model_id` / `model_name` | `advanced:seedance:v2fal:standard` / `Seedance 2 Advanced Mode` |\n| `referenceVideos` | `[group clip URL]` — a new video that follows the clip (no edit mode) |\n| `fileInputs` | the character image URLs of that group, up to 9 |\n| `mediaLength` | the clip length in ms, whole seconds 4000–15000 (`groups.json` → `media_length_ms`) |\n| `requestedAspectRatio` | the nearest of `16:9 9:16 1:1 4:3 3:4 21:9` to the clip |\n| `resolution` | from the option (480p / 720p) |\n| `generateAudio` | `false` |\n| `batchSize` | `1` |\n\nDo not pass `fps`, `keepSound`, `sourceVideo`. Read the model's `generationContract`\n(`models_explore action=get`) before the first call.\n\n## What the user sees\n\nThe user is buying a finished video, not following the pipeline. So:\n\n- **Deliver the file, not a link.** The deliverable is `result.mp4` with the source audio,\n  attached in the chat with the host's file tool (`present_files`, `SendUserFile`, or copying it\n  to the outputs folder the host shows). Raw `mediaUrl`s, `file_url`s, storage/bucket links and\n  `nim.video/explore` pages are internal plumbing — they carry the silent raw renders or the\n  uploads, so never paste them into the chat.\n- **No verdicts.** Do not grade the result (\"both swaps worked\", \"one defect: …\", model A vs\n  model B). The user judges the video themselves; an opinion from the agent is noise at best and\n  wrong at worst.\n- **The setting stays as it is in the video** unless the user asked to change it: the prompts\n  say so explicitly (`{SETTING}`); only a user's wish for another place replaces that line.\n- **No pipeline narration.** No moderation refusals, face blurring, model or vendor names. In\n  user-facing text the stage is the **Replacing Character Pipeline** («пайплайн замены\n  персонажа»). The only thing said about the split is the one line in the question (\"N parts\").\n- **One question per paid step** — the choice of the run (Stage 0, step 6) and, after a 5 s\n  check, whether to make the full video (Stage 2, step 4). Nothing else is asked, whatever the\n  character image shows (drawn, photo, animal, object). One hard limit: a recognizable public\n  figure is never put into a video.\n\n## Inputs\n\n| Input | Required | Source |\n|---|---|---|\n| Video | yes | user |\n| Character image(s) | yes | user; 1–4 per character, several angles or a character sheet help |\n| Who becomes whom | if >1 person or >1 character | asked inside the Stage 0 question |\n| Extra wishes | no | user |\n\nIf the video or the character images are missing, show \"Короткая памятка\" from\n`references/user_guide.md` (in the user's language) and wait.\n\n## Stage 0 — Prepare, split, plan, confirm (free)\n\n1. **Prepare the video.** Everything after this uses the prepared file.\n   ```bash\n   python scripts/prepare_video.py <video> WORK/driving.mp4\n   ```\n   - 4–30 s. Under 4 s → exit 2 `rejected`: ask for a longer video (no looping or slowing).\n     Over 30 s → exit 2 `needs_trim`: ask which part to keep (suggest the first 30 s), rerun\n     with `--start S --end E`. The length is kept exactly; `result.media_length_ms` is it.\n   - Fixes small frames (provider minimum 409 600 px and 854×480), converts to 24 fps H.264\n     with even sides, fits the 20 MB upload cap. Exit 3 `too_large` → ask for a shorter segment.\n   - Heavy sources can take minutes: run with a timeout or in the background.\n2. **Prepare the character images** — Seedance accepts aspect ratios 2:5…5:2 only; wider or\n   taller images are padded, never cropped:\n   ```bash\n   python scripts/prep_images.py WORK/refs <image1> <image2> …\n   ```\n   Use the `out` PNGs from here on.\n3. **Split into shots and read the video to 0.1 s.**\n   ```bash\n   python scripts/split_shots.py WORK/driving.mp4 WORK/sp\n   ```\n   Writes `shots.json` and the sheets in `WORK/sp/`: `timeline_N.png` (one frame every 0.1 s\n   with its time, 5 s per sheet), `sheet_N.png` (first / middle / last frame of every shot),\n   `cuts.png` (every cut and candidate as a frame-before | frame-after pair). Look at **all**\n   of them and at every character image. **Read the video yourself first**: go through the\n   timeline sheets frame by frame (0.1 s apart) and write down, before looking at the detected\n   list, (a) the exact time and frame of every cut — the last frame of the old shot and the\n   first frame of the new one — and (b) for every person the exact times (to 0.1 s) when they\n   are on screen, in which position and at what angle. A smooth movement (a head turning, a hand\n   sweeping through the frame) is not a cut; a jump of composition, person or background is.\n   Then compare with `cuts` and `candidates`: every candidate is settled by looking at its\n   before | after pair (and, if needed, single frames around it). Where your list and the\n   detector disagree, go with what the frames show and rerun with `--cuts F1,F2,…` (frame\n   numbers where a new shot starts: the accepted cuts). A missed cut between shots of different\n   people is the costly mistake; a false cut inside one group is harmless. Also work out: what\n   tells the people apart (viewer-side position, clothes, headgear), the style of each character\n   image (photo / anime / cartoon / 3D / painting / object), and the type of every person and\n   every character — exactly one of man / woman / boy / girl / character (the only nouns the\n   prompts use).\n4. **Shot plan** — for every shot write down its **subject** (the replaced person whose face is\n   on screen, the largest if several) and **every other replaced person visible in any way**:\n   from behind, in profile, at the frame edge, half hidden. Then group:\n   - Group by subject, put every visible replaced person into that group's generation, treat\n     camera moves between people as two-person wide shots, glue short shots to neighbours, keep\n     each clip ≤ ~8 s and ≤ 3 runs: **read `references/shot_planning.md` and follow it.**\n   - Write `WORK/plan.json` — `{\"groups\": {\"A\": [1, 3, 5], \"B\": [2, 4]}}` (shot numbers) —\n     and build the clips:\n     ```bash\n     python scripts/build_groups.py WORK/driving.mp4 WORK/sp/shots.json WORK/plan.json WORK/grp --max-s 15 --audio [--mute A,B]\n     ```\n     **Sound goes into the clips by default (`--audio`)**: the model's\n     subtitles and mouth movements follow the source better with it, and it changes nothing else. Groups whose people do not speak are built silent with\n     `--mute A,B` (group ids). With no sound in the source the clips are silent anyway. Clips are `WORK/grp/g_<id>.mp4`: the group's shots, with 6 solid\n     magenta frames between shots that were not neighbours (they keep near-identical shots apart\n     and mark the exact cut for `assemble.py`), and, up to whole seconds, the source frames right before and after the group's shots (`head`/`tail` in groups.json; thrown away at assembly, billed).\n     **Never fill a clip with copies of itself**, the model then just repeats the reference (the result comes back unchanged). A group under 4 s → exit 2: glue its shots\n     to the group they touch in the video (contiguous shots become one run), or else to the\n     group closest in length that has a person to replace. Short shots (pans, 0.5 s inserts)\n     go with the neighbouring shots that show the same people; a pan shows both people, so\n     put it with the shots on either side of it.\n     `groups.json` lists per group the length (`media_length_ms` → `mediaLength`), the shots and\n     their times **on the group's own clip** (use those for `{WHEN}`).\n   - Per group: the people to replace (with what marks them in that group) and the people who\n     stay. More than two replaced people in one group: say in the question that some may stay\n     unchanged.\n5. **Prices from Nim** — never from memory. Per group, then add up:\n   `models_explore action=get model_id=advanced:seedance:v2fal:standard` with\n   `referenceVideoCount=1`, `referenceImageCount=<that group's character images>`,\n   `aspectRatio`, `resolution`, `minDurationMs=<group media_length_ms>` →\n   `priceEstimate.credits`. The reference video adds a duration-based charge on top; the\n   final charge can be well above the estimate — say \"can be higher\".\n\n   | Option | Length | Resolution |\n   |---|---|---|\n   | A. Check | first 5 s (skip if the clip is ≤ 5 s) | 480p |\n   | B. Full | whole prepared length | 480p |\n   | C. Full | whole prepared length | 720p |\n\n   Option A is planned again on its own 5 s (steps 3–4 on `driving_5s.mp4`).\n6. **The one question** (host choice UI if there is one, else a numbered list): what was done\n   to the video (one line), that it will be generated in N parts (one line: which people in\n   which part, if N > 1), who becomes which character, options A / B / C with one total price\n   each, and **D. Change something** (segment, resolution, mapping, wishes). Ask an\n   unclear mapping in the same message. **When the video has speech and more than one person,\n   ask in the same message, plainly, whether each character speaks in all scenes** («говорят ли\n   персонажи во всех сценах, и где кто молчит — это улучшит результат»): the frames alone do\n   not tell who owns the voice (a listener's mouth moves too). Groups of people the user says do not speak are built with `--mute` and get the\n   silent `{PERFORMANCE}` line; groups of speakers keep the sound. The answer approves one\n   generation per group and,\n   after an intake refusal, one retry of that group without sound. After that run Stages 1–2\n   without further questions. Anything else paid needs a new yes.\n   - Option A: `prepare_video.py <video> WORK/driving_5s.mp4 --start 0 --end 5`, then steps 3–4\n     on that file and use it from here on.\n\n## Stage 1 — Generate\n\n1. **Upload** every group clip and the character PNGs: `media_upload` → run its `curl_example`\n   with the real path (one upload URL serves several files while valid) → keep each `file_url`.\n2. **Prompt per group** from `references/video_prompt.md`: that\n   group's people (subject and extras) and their images; `@Image` numbers follow that group's\n   `fileInputs`. Fill `{PERFORMANCE}` per person (speaks / does not speak), `{MARKERS}` whenever\n   the clip has separators (several runs), `{SETTING}` (keep the environment).\n3. **Call `generate_video` once per group, all in one message** (they run in parallel), with\n   the parameters of the Model table.\n4. **Poll** `get_generation_status` for every group every 1–2 min until `finished | failed |\n   cancelled | removed` (typically 4–8 min).\n5. **On failure find the real cause** — `errorCause` is often null; do not guess:\n   - `素材处理失败` / `Failed to register input media with the provider` — the clip is outside\n     the pixel limits; check it went through `prepare_video.py`.\n   - Error text names moderation / safety / sensitive / copyright content, or `failed` within\n     ~20 s with `errorCause` null (the clip was refused at intake, e.g. film footage of\n     recognizable actors, or the error `InputVideoSensitiveContentDetected`) → **one**\n     retry of that group with the clip built without sound (`build_groups.py … --mute <id>`).\n     **Never blur** anything to get past a refusal, neither the source nor the character images:\n     a blurred source passes intake but the blur stays in the result and nothing is swapped.\n     Refused again → try the shots without the recognizable person on their own and leave that\n     person original (a clip without him was accepted), or tell the user the clip cannot be used\n     and ask for another one (see the guide).\n   - Anything else → tell the user that part of the video failed, with the `promptId`; no blind\n     retry (a rerun of one group is a new paid step and needs a new yes). Keep the finished\n     groups' results.\n   Refused and failed generations are not charged.\n\n## Stage 2 — Finish and deliver\n\n1. Download every `mediaUrl` to `WORK/raw_<id>.mp4`. With several groups put the shots back:\n   ```bash\n   python scripts/assemble.py WORK/driving.mp4 WORK/grp/groups.json WORK/assembled.mp4 A=WORK/raw_A.mp4 B=WORK/raw_B.mp4\n   ```\n   Exit 0 = the output has exactly the original's frame count. (Exit 3 or an error: do not\n   deliver; tell the user the video could not be assembled, with the `promptId`s.) This runs\n   for a single group too: it cuts off the extra frames and matches the length.\n2. Put the source audio back (`driving_5s.mp4` for option A):\n   ```bash\n   python scripts/finalize.py WORK/assembled.mp4 WORK/driving.mp4 WORK/result.mp4\n   ```\n3. Hand `WORK/result.mp4` to the user as a file in the chat (see \"What the user sees\").\n4. Reply in 1–2 lines: that the video is ready, and the credits spent (all groups). Nothing else\n   — no links, no assessment, no process details.\n5. **After option A, ask whether to make the full video** — one question (host choice UI if\n   there is one): full @480p / full @720p with their prices, or not now. Get the prices the\n   same way as in Stage 0, step 5.\n\n## Stage 3 — Full run after the check\n\nWhen the user picks a full run after option A: the 5 s check covered only the start, so run\nStage 0 steps 3–4 again on the full `driving.mp4` (split, plan, `build_groups.py`), with the\nsame character images and mapping. The user's choice is the yes for one generation per group\n(plus the moderation retry). Then Stage 1 and Stage 2.\n\n## Failure handling\n\nLimits and error meanings: `references/pipeline_limits.md`. Explain errors to the user with the\nguide's \"Частые причины отказа\".\n"
Full snapshot data
{
  "description": "Replace the user (or the people) in their video with characters from their images — through Nim. The agent prepares the video, splits it into shots, groups similar shots so each generation replaces as few people as possible (a dialogue that alternates between two people becomes two clips), sends every group plus the character images to the Replacing Character Pipeline, puts the shots back in their original order frame for frame, lays the original sound on top and hands the finished video file to the user in the chat. Takes the user's own video and swaps the people in it (unlike motion transfer, which moves a performance onto a new character). Use this skill whenever the user uploads a video and one or more character images and asks to \"replace me with this character\", \"swap me in this video\", \"put this character in my place\", \"turn us into these characters\", or mentions the Replacing Character Pipeline — even if they phrase it loosely or do not describe the steps.",
  "included_files": [
    {
      "relative_path": "references/pipeline_limits.md",
      "size_in_bytes": 3834
    },
    {
      "relative_path": "references/shot_planning.md",
      "size_in_bytes": 3324
    },
    {
      "relative_path": "references/user_guide.md",
      "size_in_bytes": 6866
    },
    {
      "relative_path": "references/video_prompt.md",
      "size_in_bytes": 11648
    },
    {
      "relative_path": "scripts/assemble.py",
      "size_in_bytes": 11777
    },
    {
      "relative_path": "scripts/build_groups.py",
      "size_in_bytes": 8916
    },
    {
      "relative_path": "scripts/finalize.py",
      "size_in_bytes": 1739
    },
    {
      "relative_path": "scripts/prep_images.py",
      "size_in_bytes": 1125
    },
    {
      "relative_path": "scripts/prepare_video.py",
      "size_in_bytes": 10435
    },
    {
      "relative_path": "scripts/split_shots.py",
      "size_in_bytes": 9588
    }
  ],
  "name": "nim-replace-character",
  "skill_md_contents": "---\nname: nim-replace-character\ndescription: Replace the user (or the people) in their video with characters from their images — through Nim. The agent prepares the video, splits it into shots, groups similar shots so each generation replaces as few people as possible (a dialogue that alternates between two people becomes two clips), sends every group plus the character images to the Replacing Character Pipeline, puts the shots back in their original order frame for frame, lays the original sound on top and hands the finished video file to the user in the chat. Takes the user's own video and swaps the people in it (unlike motion transfer, which moves a performance onto a new character). Use this skill whenever the user uploads a video and one or more character images and asks to \"replace me with this character\", \"swap me in this video\", \"put this character in my place\", \"turn us into these characters\", or mentions the Replacing Character Pipeline — even if they phrase it loosely or do not describe the steps.\ncompatibility: Requires the Nim MCP connector (media_upload, models_explore, generate_video, get_generation_status), ffmpeg/ffprobe (libx264), Pillow and OpenCV (cv2).\n---\n\n# Replace people in a video with characters (Nim)\n\n> **Before any generation call:** tell the user the chosen model, resolution or mode (e.g. draft 480p), aspect ratio and duration or batch size, plus the credit estimate when known, and start only after they confirm. See `nim-defaults` → Confirm before generating.\n\nThe user gives a **video** and **one or more character images** and says \"replace me with this\ncharacter\" (or several people with several characters). The user does not write prompts or\npick settings — the agent does.\n\nSeedance handles several people in one clip badly (often only one is replaced). So the video is\ncut into **shots**, the shots are **grouped** by who is in them, and each group is stitched into\nits own clip — ideally with one replaced person. Shots with no replaced person are not sent.\nEach clip goes through its own generation; when the results are back, every shot returns to\nits original frames, the source audio goes on top, and the finished file goes to the user.\n\n```\nvideo ─► prepare_video.py ─► split_shots.py (sheets: who is in which shot)\ncharacter images ─► prep_images.py ─► shot plan (groups)\n   build_groups.py ─► g_A.mp4, g_B.mp4 …  (one clip per group)\n   media_upload ─► generate_video ×N in parallel (clip + only its characters)\n                ─► assemble.py (shots back in original order, frame-exact)\n                ─► finalize.py (source audio) ─► result.mp4 to the user as a file\n```\n\nInvoking this skill counts as the user choosing Nim; Nim tools may be called directly.\nPass `skills: [\"nim-replace-character\"]` on every Nim call that accepts it.\nWork in one scratch folder (called `WORK` below — e.g. `/home/claude/rcp` or the session\nscratchpad).\n\n## Usage tracking\n\nOnce per new user request that you handle with this skill, call the Nim tool `track_skill_activation` with `skill_name: \"nim-replace-character\"`. Do not call it again while polling, retrying, or continuing the same request. If the tool is unavailable or fails, continue without retrying and without mentioning it to the user.\n\n## Model\n\nSeedance 2.0 Advanced Mode, reference-video mode. This is the only model and the only prompt\n(`references/video_prompt.md`).\n\n| Parameter | Value |\n|---|---|\n| `model_id` / `model_name` | `advanced:seedance:v2fal:standard` / `Seedance 2 Advanced Mode` |\n| `referenceVideos` | `[group clip URL]` — a new video that follows the clip (no edit mode) |\n| `fileInputs` | the character image URLs of that group, up to 9 |\n| `mediaLength` | the clip length in ms, whole seconds 4000–15000 (`groups.json` → `media_length_ms`) |\n| `requestedAspectRatio` | the nearest of `16:9 9:16 1:1 4:3 3:4 21:9` to the clip |\n| `resolution` | from the option (480p / 720p) |\n| `generateAudio` | `false` |\n| `batchSize` | `1` |\n\nDo not pass `fps`, `keepSound`, `sourceVideo`. Read the model's `generationContract`\n(`models_explore action=get`) before the first call.\n\n## What the user sees\n\nThe user is buying a finished video, not following the pipeline. So:\n\n- **Deliver the file, not a link.** The deliverable is `result.mp4` with the source audio,\n  attached in the chat with the host's file tool (`present_files`, `SendUserFile`, or copying it\n  to the outputs folder the host shows). Raw `mediaUrl`s, `file_url`s, storage/bucket links and\n  `nim.video/explore` pages are internal plumbing — they carry the silent raw renders or the\n  uploads, so never paste them into the chat.\n- **No verdicts.** Do not grade the result (\"both swaps worked\", \"one defect: …\", model A vs\n  model B). The user judges the video themselves; an opinion from the agent is noise at best and\n  wrong at worst.\n- **The setting stays as it is in the video** unless the user asked to change it: the prompts\n  say so explicitly (`{SETTING}`); only a user's wish for another place replaces that line.\n- **No pipeline narration.** No moderation refusals, face blurring, model or vendor names. In\n  user-facing text the stage is the **Replacing Character Pipeline** («пайплайн замены\n  персонажа»). The only thing said about the split is the one line in the question (\"N parts\").\n- **One question per paid step** — the choice of the run (Stage 0, step 6) and, after a 5 s\n  check, whether to make the full video (Stage 2, step 4). Nothing else is asked, whatever the\n  character image shows (drawn, photo, animal, object). One hard limit: a recognizable public\n  figure is never put into a video.\n\n## Inputs\n\n| Input | Required | Source |\n|---|---|---|\n| Video | yes | user |\n| Character image(s) | yes | user; 1–4 per character, several angles or a character sheet help |\n| Who becomes whom | if >1 person or >1 character | asked inside the Stage 0 question |\n| Extra wishes | no | user |\n\nIf the video or the character images are missing, show \"Короткая памятка\" from\n`references/user_guide.md` (in the user's language) and wait.\n\n## Stage 0 — Prepare, split, plan, confirm (free)\n\n1. **Prepare the video.** Everything after this uses the prepared file.\n   ```bash\n   python scripts/prepare_video.py <video> WORK/driving.mp4\n   ```\n   - 4–30 s. Under 4 s → exit 2 `rejected`: ask for a longer video (no looping or slowing).\n     Over 30 s → exit 2 `needs_trim`: ask which part to keep (suggest the first 30 s), rerun\n     with `--start S --end E`. The length is kept exactly; `result.media_length_ms` is it.\n   - Fixes small frames (provider minimum 409 600 px and 854×480), converts to 24 fps H.264\n     with even sides, fits the 20 MB upload cap. Exit 3 `too_large` → ask for a shorter segment.\n   - Heavy sources can take minutes: run with a timeout or in the background.\n2. **Prepare the character images** — Seedance accepts aspect ratios 2:5…5:2 only; wider or\n   taller images are padded, never cropped:\n   ```bash\n   python scripts/prep_images.py WORK/refs <image1> <image2> …\n   ```\n   Use the `out` PNGs from here on.\n3. **Split into shots and read the video to 0.1 s.**\n   ```bash\n   python scripts/split_shots.py WORK/driving.mp4 WORK/sp\n   ```\n   Writes `shots.json` and the sheets in `WORK/sp/`: `timeline_N.png` (one frame every 0.1 s\n   with its time, 5 s per sheet), `sheet_N.png` (first / middle / last frame of every shot),\n   `cuts.png` (every cut and candidate as a frame-before | frame-after pair). Look at **all**\n   of them and at every character image. **Read the video yourself first**: go through the\n   timeline sheets frame by frame (0.1 s apart) and write down, before looking at the detected\n   list, (a) the exact time and frame of every cut — the last frame of the old shot and the\n   first frame of the new one — and (b) for every person the exact times (to 0.1 s) when they\n   are on screen, in which position and at what angle. A smooth movement (a head turning, a hand\n   sweeping through the frame) is not a cut; a jump of composition, person or background is.\n   Then compare with `cuts` and `candidates`: every candidate is settled by looking at its\n   before | after pair (and, if needed, single frames around it). Where your list and the\n   detector disagree, go with what the frames show and rerun with `--cuts F1,F2,…` (frame\n   numbers where a new shot starts: the accepted cuts). A missed cut between shots of different\n   people is the costly mistake; a false cut inside one group is harmless. Also work out: what\n   tells the people apart (viewer-side position, clothes, headgear), the style of each character\n   image (photo / anime / cartoon / 3D / painting / object), and the type of every person and\n   every character — exactly one of man / woman / boy / girl / character (the only nouns the\n   prompts use).\n4. **Shot plan** — for every shot write down its **subject** (the replaced person whose face is\n   on screen, the largest if several) and **every other replaced person visible in any way**:\n   from behind, in profile, at the frame edge, half hidden. Then group:\n   - Group by subject, put every visible replaced person into that group's generation, treat\n     camera moves between people as two-person wide shots, glue short shots to neighbours, keep\n     each clip ≤ ~8 s and ≤ 3 runs: **read `references/shot_planning.md` and follow it.**\n   - Write `WORK/plan.json` — `{\"groups\": {\"A\": [1, 3, 5], \"B\": [2, 4]}}` (shot numbers) —\n     and build the clips:\n     ```bash\n     python scripts/build_groups.py WORK/driving.mp4 WORK/sp/shots.json WORK/plan.json WORK/grp --max-s 15 --audio [--mute A,B]\n     ```\n     **Sound goes into the clips by default (`--audio`)**: the model's\n     subtitles and mouth movements follow the source better with it, and it changes nothing else. Groups whose people do not speak are built silent with\n     `--mute A,B` (group ids). With no sound in the source the clips are silent anyway. Clips are `WORK/grp/g_<id>.mp4`: the group's shots, with 6 solid\n     magenta frames between shots that were not neighbours (they keep near-identical shots apart\n     and mark the exact cut for `assemble.py`), and, up to whole seconds, the source frames right before and after the group's shots (`head`/`tail` in groups.json; thrown away at assembly, billed).\n     **Never fill a clip with copies of itself**, the model then just repeats the reference (the result comes back unchanged). A group under 4 s → exit 2: glue its shots\n     to the group they touch in the video (contiguous shots become one run), or else to the\n     group closest in length that has a person to replace. Short shots (pans, 0.5 s inserts)\n     go with the neighbouring shots that show the same people; a pan shows both people, so\n     put it with the shots on either side of it.\n     `groups.json` lists per group the length (`media_length_ms` → `mediaLength`), the shots and\n     their times **on the group's own clip** (use those for `{WHEN}`).\n   - Per group: the people to replace (with what marks them in that group) and the people who\n     stay. More than two replaced people in one group: say in the question that some may stay\n     unchanged.\n5. **Prices from Nim** — never from memory. Per group, then add up:\n   `models_explore action=get model_id=advanced:seedance:v2fal:standard` with\n   `referenceVideoCount=1`, `referenceImageCount=<that group's character images>`,\n   `aspectRatio`, `resolution`, `minDurationMs=<group media_length_ms>` →\n   `priceEstimate.credits`. The reference video adds a duration-based charge on top; the\n   final charge can be well above the estimate — say \"can be higher\".\n\n   | Option | Length | Resolution |\n   |---|---|---|\n   | A. Check | first 5 s (skip if the clip is ≤ 5 s) | 480p |\n   | B. Full | whole prepared length | 480p |\n   | C. Full | whole prepared length | 720p |\n\n   Option A is planned again on its own 5 s (steps 3–4 on `driving_5s.mp4`).\n6. **The one question** (host choice UI if there is one, else a numbered list): what was done\n   to the video (one line), that it will be generated in N parts (one line: which people in\n   which part, if N > 1), who becomes which character, options A / B / C with one total price\n   each, and **D. Change something** (segment, resolution, mapping, wishes). Ask an\n   unclear mapping in the same message. **When the video has speech and more than one person,\n   ask in the same message, plainly, whether each character speaks in all scenes** («говорят ли\n   персонажи во всех сценах, и где кто молчит — это улучшит результат»): the frames alone do\n   not tell who owns the voice (a listener's mouth moves too). Groups of people the user says do not speak are built with `--mute` and get the\n   silent `{PERFORMANCE}` line; groups of speakers keep the sound. The answer approves one\n   generation per group and,\n   after an intake refusal, one retry of that group without sound. After that run Stages 1–2\n   without further questions. Anything else paid needs a new yes.\n   - Option A: `prepare_video.py <video> WORK/driving_5s.mp4 --start 0 --end 5`, then steps 3–4\n     on that file and use it from here on.\n\n## Stage 1 — Generate\n\n1. **Upload** every group clip and the character PNGs: `media_upload` → run its `curl_example`\n   with the real path (one upload URL serves several files while valid) → keep each `file_url`.\n2. **Prompt per group** from `references/video_prompt.md`: that\n   group's people (subject and extras) and their images; `@Image` numbers follow that group's\n   `fileInputs`. Fill `{PERFORMANCE}` per person (speaks / does not speak), `{MARKERS}` whenever\n   the clip has separators (several runs), `{SETTING}` (keep the environment).\n3. **Call `generate_video` once per group, all in one message** (they run in parallel), with\n   the parameters of the Model table.\n4. **Poll** `get_generation_status` for every group every 1–2 min until `finished | failed |\n   cancelled | removed` (typically 4–8 min).\n5. **On failure find the real cause** — `errorCause` is often null; do not guess:\n   - `素材处理失败` / `Failed to register input media with the provider` — the clip is outside\n     the pixel limits; check it went through `prepare_video.py`.\n   - Error text names moderation / safety / sensitive / copyright content, or `failed` within\n     ~20 s with `errorCause` null (the clip was refused at intake, e.g. film footage of\n     recognizable actors, or the error `InputVideoSensitiveContentDetected`) → **one**\n     retry of that group with the clip built without sound (`build_groups.py … --mute <id>`).\n     **Never blur** anything to get past a refusal, neither the source nor the character images:\n     a blurred source passes intake but the blur stays in the result and nothing is swapped.\n     Refused again → try the shots without the recognizable person on their own and leave that\n     person original (a clip without him was accepted), or tell the user the clip cannot be used\n     and ask for another one (see the guide).\n   - Anything else → tell the user that part of the video failed, with the `promptId`; no blind\n     retry (a rerun of one group is a new paid step and needs a new yes). Keep the finished\n     groups' results.\n   Refused and failed generations are not charged.\n\n## Stage 2 — Finish and deliver\n\n1. Download every `mediaUrl` to `WORK/raw_<id>.mp4`. With several groups put the shots back:\n   ```bash\n   python scripts/assemble.py WORK/driving.mp4 WORK/grp/groups.json WORK/assembled.mp4 A=WORK/raw_A.mp4 B=WORK/raw_B.mp4\n   ```\n   Exit 0 = the output has exactly the original's frame count. (Exit 3 or an error: do not\n   deliver; tell the user the video could not be assembled, with the `promptId`s.) This runs\n   for a single group too: it cuts off the extra frames and matches the length.\n2. Put the source audio back (`driving_5s.mp4` for option A):\n   ```bash\n   python scripts/finalize.py WORK/assembled.mp4 WORK/driving.mp4 WORK/result.mp4\n   ```\n3. Hand `WORK/result.mp4` to the user as a file in the chat (see \"What the user sees\").\n4. Reply in 1–2 lines: that the video is ready, and the credits spent (all groups). Nothing else\n   — no links, no assessment, no process details.\n5. **After option A, ask whether to make the full video** — one question (host choice UI if\n   there is one): full @480p / full @720p with their prices, or not now. Get the prices the\n   same way as in Stage 0, step 5.\n\n## Stage 3 — Full run after the check\n\nWhen the user picks a full run after option A: the 5 s check covered only the start, so run\nStage 0 steps 3–4 again on the full `driving.mp4` (split, plan, `build_groups.py`), with the\nsame character images and mapping. The user's choice is the yes for one generation per group\n(plus the moderation retry). Then Stage 1 and Stage 2.\n\n## Failure handling\n\nLimits and error meanings: `references/pipeline_limits.md`. Explain errors to the user with the\nguide's \"Частые причины отказа\".\n"
}

SHA-256 of public snapshot: 690b0c2e90ae6c7f4a8ffcf699c43ff6b88db21a6a8e5ce5e86bcba45c8aa5f3