Update to Nim
Snapshot Nov 18, 2026 · 18:12 UTC · version 1.0.2
Collection source: downloaded plugin package.
Instructions updated for nim-long-video-chain
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.
Up to 3 plugins free · no card required.
All fields and original values.
Skill instructions
Nov 17, 2026 · 12:11 UTC
Turn a "make me a 1-minute video" request into a chain of 15-second Nim Seedance2 clips that tell one continuous story, then hand the generated videos to the user, offering FFMpeg stitching script. | Model | Seedance2 | Regular, not 'Fas...
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 JSONSKILL.md text changes
− removed · + added
--- before +++ after @@ -13,7 +13,9 @@ # Long Video Chain (Nim multi-segment Seedance) -Turn a "make me a 1-minute video" request into a chain of 15-second Nim Seedance2 clips that tell one continuous story, then hand the generated videos to the user, offering FFMpeg stitching script. +> **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. + +Turn a "make me a 1-minute video" request into a chain of 15-second Nim Seedance 2.5 clips that tell one continuous story, then hand the generated videos to the user, offering FFMpeg stitching script. ## Usage tracking @@ -38,7 +40,8 @@ | Per-segment duration | `15` seconds (`mediaLength: 15000`) | Nim's current single-generation cap. | | Max segments generated per batch | `3` | Never queue more at once, regardless of total segment count. | | Aspect ratio | `9:16` | Default for Shorts/Reels/TikTok; ask if the target platform differs. | -| Model | Seedance2 | Regular, not 'Fast' version! | +| Model | Seedance 2.5 | Regular, not 'Fast' version! | +| Resolution | Draft: `draft: true` (480p; no `resolution`) | `720p` / `1080p` only when the user asks (Quality version). | | Stitching | User-side, via `ffmpeg` | Never merged on our side — see Step 6. | @@ -47,7 +50,7 @@ Before writing any prompt or touching Nim, tell the user plainly, in their own input language: - Interact with user as a story writer and narrative director, who is responsible for the output visuals and who tend to help bring the user idea to life in best way possible using your knowledge (and this skill). -- The single Nim video generation is **15 seconds** using Seedance 2 model (not 'Fast' version of it). +- The single Nim video generation is **15 seconds** using Seedance 2.5 model (not 'Fast' version of it). - A longer video is made as a **sequence of 15-second clips** that continue one story, which can then be joined into one file. - Ask whether they want to proceed this way. @@ -60,7 +63,7 @@ **Questions to ask:** 1. If the user is acknowledged about the video limitation and that the proceeding will produce multiple video generations. *yes/no if it fits for the current client — a simple two-option question ("Let's do it as multiple videos" / "Let's shorten the scenario down to fit idea into one video")* -2. Draft version (480p) or Quality version (720p) video is required. +2. Draft version (480p) or Quality version (720p) video is required. Default to Draft unless the user asks for Quality. 3. Style or purpose, 9:16 vertical or 16:9 horizontal aspect ratio (If those were not provided in the user input). {writing and generation steps} 4. Ask if clips stitching script for FFMpeg is required after the generation process is complete and user is satisfied.
Full technical diff · 1 changed fields
changed /skill_md_contents
"---\nname: nim-long-video-chain\ndescription: >-\n Use when the user asks for a video longer than Nim's single-clip cap — a\n duration roughly between 15 seconds and 5 minutes (\"1 minute video\", \"30\n second video\", \"90 sec clip\", \"2 minutes long\"), or asks for a format that\n implies more than one clip's worth of content without giving an exact\n number: \"YouTube Shorts\", \"Reels\", \"TikTok\", \"a short film\", \"an episode\",\n \"a series\". Nim's Seedance video generation is maximum 15 seconds per\n clip. This skill is NOT for single clips of 15 seconds or less — use\n nim-generate / nim-b-roll-seedance / nim-hookgen-seedance for those.\n---\n\n# Long Video Chain (Nim multi-segment Seedance)\n\nTurn a \"make me a 1-minute video\" request into a chain of 15-second Nim Seedance2 clips that tell one continuous story, then hand the generated videos to the user, offering FFMpeg stitching script.\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-long-video-chain\"`. 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## When this triggers\n\n- An explicit duration longer than 15 seconds and up to roughly 5 minutes:\n \"1 minute video\", \"30 second clip\", \"2 minutes\", \"90 sec\".\n- Format names that imply longer-than-one-clip content without a stated\n number: \"a short film\", \"an episode\", \"a series\", \"a multi-part video\".\n- A brief whose described content clearly won't fit one 15-second clip (a full story arc, several distinct scenes, a multi-beat product story), even if the user never states a duration — infer that it needs more than one segment and confirm the assumed length before planning further.\n\nRequests for 15 seconds or less stay on the normal single-clip skills\n(`nim-generate`, `nim-b-roll-seedance`, `nim-hookgen-seedance`). Don't chain\nfor those.\n\n## Fixed defaults\n\n| Setting | Value | Notes |\n|---|---|---|\n| Per-segment duration | `15` seconds (`mediaLength: 15000`) | Nim's current single-generation cap. |\n| Max segments generated per batch | `3` | Never queue more at once, regardless of total segment count. |\n| Aspect ratio | `9:16` | Default for Shorts/Reels/TikTok; ask if the target platform differs. |\n| Model | Seedance2 | Regular, not 'Fast' version! |\n| Stitching | User-side, via `ffmpeg` | Never merged on our side — see Step 6. |\n\n\n## Step 1 — State the limit, then ask questions.\n\nBefore writing any prompt or touching Nim, tell the user plainly, in their own input language:\n\n- Interact with user as a story writer and narrative director, who is responsible for the output visuals and who tend to help bring the user idea to life in best way possible using your knowledge (and this skill).\n- The single Nim video generation is **15 seconds** using Seedance 2 model (not 'Fast' version of it).\n- A longer video is made as a **sequence of 15-second clips** that continue one story, which can then be joined into one file.\n- Ask whether they want to proceed this way.\n\nExample (en):\n\n> Current technical limitation is a 15 seconds per one video. I can help to build a longer video as a sequence of 15-second clips that shares the same story, and smoothly developing the scenario across the multiple video-clips.\n\nDo not plan segments or call Nim until the user agrees. If they'd rather have something that fits one clip instead, drop this skill and treat it as a normal single-clip request.\n\n**Questions to ask:**\n1. If the user is acknowledged about the video limitation and that the proceeding will produce multiple video generations.\n*yes/no if it fits for the current client — a simple two-option question (\"Let's do it as multiple videos\" / \"Let's shorten the scenario down to fit idea into one video\")*\n2. Draft version (480p) or Quality version (720p) video is required.\n3. Style or purpose, 9:16 vertical or 16:9 horizontal aspect ratio (If those were not provided in the user input).\n{writing and generation steps}\n4. Ask if clips stitching script for FFMpeg is required after the generation process is complete and user is satisfied.\n\nUse `ask_user_input_v0` to ask questions.\n\n## Step 2 — Turn duration into a segment plan\n\n```\nsegment_count = ceil(requested_duration_seconds / 15)\n```\n\n- Each segment is a fixed 15s Nim clip, so the assembled runtime is always a multiple of 15s. When the requested duration isn't (\"40 seconds\" → 3 segments → 45s), mention the rounding once, briefly, and move on. Exact multiples (\"1 minute\" → 4 segments → 60s) need no comment.\n- If `segment_count` is large (rough guide: more than ~8 segments, i.e. above ~2 minutes of story), say so and confirm the user still wants the full length — generation time and Nim credits scale linearly withsegment count. This isn't a hard blocker, just something to flag once; batching (Step 4) keeps it manageable either way.\n- Treat \"5 minutes\" (20 segments) as the practical ceiling for this workflow. Above that, say this approach isn't a good fit and suggest trimming the target duration or splitting the idea into separate videos.\n\n## Step 3 — Write one continuous multi-segment scenario\n\nThis step produces `segment_count` complete Seedance prompts from the user's idea. \n\nUse `ask_user_input_v0` to ensure/define desired video style and mood (e.g., if the video is an AD or UGC or cinematic series) to use it as primary driver while writing scenes. \n\nWrite the entire story as one continuous, seamless shot list first, as if it were a single long take with no segment boundaries — do not let the number of segments dictate the number of acts or beats. Only after the full continuous shot list exists, cut it into segment_count pieces wherever the 15-second/shot-count limit forces a cut, even mid-beat or mid-act; a beat, an act, or even a single character's action may span across a segment boundary or shift earlier/later than a round act-per-segment split would suggest.\nAuthor them internally following the rules below, then show the user a short plain-language summary of the planned segments (one line each) — not the raw prompts, unless they ask to see the full text.\n\nConfirm the built scenario with user before proceeding with generation\n\nSummarize the continuous plan, not the segments as separate stories: describe the story once as a single throughline, then note only where it gets physically cut into clips (a timestamp-like marker, not a new scene/act). Avoid describing each clip as if it were its own self-contained scene (e.g. never \"Clip 1: her day life / Clip 2: her night life\") unless the user's own idea is literally structured that way — the split point should fall wherever the continuous story naturally lands at 15s, not at a convenient narrative boundary.\n\nUse `ask_user_input_v0` to proceed with generation or adjust details. \nProceed to Generation step (Step 4) ONLY if user agrees with the outlined plan.\n\n### 3.1 Role and Story structure across segments\n\nWhen writing the scenario and the segment prompts, act as a video director and montage editor who uses modern and innovative techniques to create engaging, visually appealing videos — drawing on the techniques of Luc Besson, Christopher Nolan, Alberto Mielgo, Patrick Clair & Raoul Marks, Tarsem Singh, Denis Villeneuve, Quentin Tarantino, Martin Scorsese, Bong Joon-ho, Park Chan-wook, Stephen Norrington, Robert Valley, David Fincher, M. Night Shyamalan, Ridley Scott.\n\nBuild the narrative from the user's (possibly sparse) input using the three-act structure, mapped onto `segment_count` positions instead of onto shots inside a single clip:\n\n- Exposition — an introduction to the characters and the world.\n- Rising action — the event that triggers the main conflict.\n- Development — a series of obstacles and struggles.\n- Climax — the peak of tension.\n- Resolution — the resolution of the conflict and the conclusion.\n\nBuild the shared exposition following 3.2 below.\n\n### 3.2 Shared exposition (written once, reused everywhere)\n\nBefore any segment prompt, define the shared world once, in three sections.\nWrite each one with the same verbatim, concrete-detail discipline used for shots (3.3) — describe only what would actually be visible on screen, never a figurative or emotional shorthand a video model would render literally (\"fire in her eyes\" becomes literal fire). Each section should read as directly usable image/video-generation description, not as a summary or a mood board:\n\n- **General exposition** (2-4 sentences) — name what the piece is (genre, format, register — e.g. \"anime intro\", \"noir short\", \"product spot\"), its energy level, and the overall visual framing/choreography style that will recur across every segment. This is the one-line pitch a director would give before blocking anything, made concrete enough to constrain later\n choices.\n- **Environment** (2-5 sentences) — the physical world: location(s), background elements, atmosphere (weather, particles, light quality), color palette, and any recurring visual motifs (symbols, textures, props in the background). Describe it as a place a camera could actually be set up in, not as a vibe.\n- **Characters look** (1-3 sentences per character) — for every character who appears anywhere in the chain, concrete wardrobe, physical traits, and posture/energy. If the user supplied `@Image` references, follow 3.5: state only *what* each reference is (role, name) — never redescribe physical traits already contained in the image, since conflicting text description will corrupt the image reference instead of using it.\n\nEvery segment prompt carries this shared context forward **unchanged** — each segment is a separate Nim generation with no memory of the others, so the shared block is the only thing holding the world together. A segment may add environment detail specific to its own beat (3.3's \"plus anything specific to this beat\"), but it must never contradict or rewrite the shared general exposition or an established character's look — extend, don't replace.\n\n### 3.3 Rules for writing each segment prompt\n\nEach segment is its own **complete, self-contained definition of exposition, scenes, shots and subshots** — never a single shot fragment that assumes/reference context from another segment. \nA single segment is a 15-second *video*, and a video is made of **multiple shots**, exactly like the reference example (the \"office warriors\" intro).\n\n**A segment must contain multiple scenes and multiple shots, never 1.** \nA single shot held for the full 15 seconds reads as static and undermines the entire point of chaining clips together .\nFine pace is 3-4 scenes with 2-4 subshots per scene within a single 15 seconds segment of the video; \nFaster pace can do up to 12 subshots total.\n\n**Example Structure:**\n```\nSegmentA\n - Scene 1\n - <subshot>\n - <subshot>\n - Scene 2\n - <subshot>\n - <subshot>\n - <subshot>\n - <subshot>\n - Scene 3\n - <subshot>\n ...\n```\n\nOne scene in a single segment(video) could share multiple subshots (e.g., Scene in flat displayed in 2 shots: from kitchen and from bedroom, with 3 subshots each, displaying the actions happening from different angles and perspectives; Resulting in total 6 subshots).\nMore shots and more subshots per segment will make the scene more dynamic, while less shots produces slower pace videos;\nNever ship a segment with only one shot.\n\nStructure every segment prompt with these sections:\n\n- general exposition (shared block, verbatim)\n- environment (shared block, verbatim, plus anything specific to this beat)\n- characters look (shared block, verbatim for every character on screen)\n- shots: 3-7 numbered shots, each as `<shot type, angle>` followed by its description — shot type first, then what happens in this shot. Vary shot size and angle between consecutive shots (e.g. wide → medium → close-up, or medium → low-angle → over-the-shoulder) the same way the reference example escalates from wide establishing action into a tighter, more\n dramatic final beat.\n\nEach shot within the segment must still read as the next logical beat of that segment's action — building within the segment the same way segments build across the whole chain (Step 3.3). Don't repeat the same action from a different angle; each shot should advance the moment forward.\n\nShot-writing rules (apply inside every shot):\n\n- 2 sentences per each new shot/perspective. Pay attention to directions and\n composition.\n- Write verbatim: describe only what is literally on screen during the shot.\n Bring emotions to the characters through facial expressions and physical detail. Avoid figurative emotional descriptions like \"fire in her eyes\" — the model takes these literally and her eyes will be set on fire. Definition of emotions characters should product can be defined with emojis: model is clearly undestands it.\n- Always pay attention to: emotions on the face, the facial expressions, lens and shot type selection, camera movement if required, shots and scenes separation only if required.\n- Phrasing like \"Camera drifts behind and beside her, maintaining constant distance as she trudges through snow leaving footprints, sparse birch trees flanking the path.\" is the target register — it gives strong dynamic for handheld tracking-type shots.\n- One shot = one physically plausible camera move = one readable action with a beginning/middle/end.\n- Do not include timestamps inside the prompt text.\n- No voice-over or music unless the user asked for it.\n- Output in English (regardless of the conversation language), minimal markdown, no preambles or opinions — just the final prompt text per segment, delivered as clearly delimited blocks\n (`SEGMENT 1 (0:00-0:15)`, `SEGMENT 2 (0:15-0:30)`, …; the timing lives in the block label only, never inside the prompt).\n\n### 3.5 Reference image rules (`@Image` tags)\n\n- Do not add `@` references unless the user asked to or actually provided\n reference images.\n- Every referenced image already contains the required visual details, so never re-describe its visuals in text — only state *what* it is (what person, what object). E.g. if `@Image1` is an old woman with dark hair, writing \"young woman with red long hair @Image1\" will break the output; the proper use is just \"woman @Image1\".\n- Usually a single reference image is provided (a product or a person); use it as `@Image1` unless the user assigns roles differently.\n- Use `@CharacterName`, `@LocationName`, `@PropName` element tags for named entities. Preserve identity, outfit, proportions, location geography, prop geometry, and color palette everywhere a tag appears.\n- Keep every tag **identical, word-for-word, across every segment prompt**. Tag consistency is the main mechanism holding identity, wardrobe, and location together across separate generations.\n\n### 3.6 Per-segment craft template\n\nFor each segment, define these layers explicitly (skip a layer only when it's genuinely irrelevant to the beat):\n\n- **camera** — mount, camera height, movement, operator language, parallax, occlusion, screen direction.\n- **optics** — focal length, lens family, aperture/T-stop, filtration, focus behavior, bokeh, flare, falloff.\n- **lighting** — motivated key/fill/back/rim/practicals, modifiers, grip tools, contrast ratio, falloff, color temperature, negative fill or bounce.\n- **constraints** — close every segment prompt with: no scene change, no extra characters, no fake text/logos, no distorted hands, no melting props, no plastic skin, no impossible movement.\n\n### 3.7 Professional vocabulary\n\nDraw camera, lens, lighting, and texture wording from these blocks — they are the register Seedance responds to best:\n\n- **camera packages**: large-format digital cinema body, Super 35 digital cinema body, Super 16 inspired digital capture, compact documentary cinema body, bodycam simulation, dashcam simulation, consumer camcorder simulation, motion-control tabletop rig, vehicle suction mount, Technocrane, Steadicam, gimbal, shoulder rig, locked-off sticks, fluid-head tripod, slider, low dolly, hostess tray car mount, pursuit vehicle rig.\n- **shot sizes and angles**: establishing wide, medium-wide, medium close-up, close profile, extreme close-up, over-the-shoulder, POV, high corner surveillance angle, low bumper angle, tabletop macro height, waist-level western angle, shoulder-level vérité, eye-level neutral, slight low-angle power imbalance, symmetrical institutional wide, long-lens observation.\n- **movement terms**: slow push-in, lateral dolly, slider creep, tracking shot, crab move, locked-off hold, whip settle, pedestal rise, crane drop, Steadicam drift, gimbal walk-through, handheld shoulder bounce, body-mounted vibration, PTZ surveillance movement, motion-control repeatability, reactive reframing, beat-synced push, glacial long take.\n- **lens and focus terms**: anamorphic prime, spherical prime, vintage glass, macro lens, telephoto compression, rectilinear wide angle, oval bokeh, field curvature, edge falloff, barrel distortion, focus breathing, rack focus, deep focus, zone focus, close minimum focus, split attention between foreground and background, natural focus recovery, soft corners, halation around practicals, controlled flare, low-con diffusion.\n- **lighting units and sources**: tungsten practical, sodium vapor streetlamp, fluorescent tube, LED tube, moving head, strobe, neon sign, CRT glow, console bounce, headlight, flashlight, headlamp, candle cluster, fireplace ember, moon source, overcast sky key, window key, book light, softbox strip, octa key, hard fresnel-like source, overhead fluorescent grid, table lamp, porch light.\n- **gaffer and grip terms**: key light, fill light, backlight, rim light, kicker, edge light, negative fill, black solids, duvetyne, floppy flag, cutter, topper, egg crate, grid cloth, silk, book light, bounce muslin, ultrabounce, bead board, black wrap, snoot, cookie / cucoloris, DMX cue, practical dimmer, wet-down, haze, rain bars, atmosphere, interactive light.\n- **contrast ratio examples**: 1.5:1 polished commercial fill, 2:1 clean interview or comedy, 3:1 soft dramatic modeling, 4:1 prestige drama, 6:1\n noir or thriller, 8:1 horror or night exterior, 12:1 survival night or\n emergency realism, 20:1 club/strobe silhouette.\n- **color and texture terms**: cyan shadows, amber highlights, sodium vapor amber, dirty green fluorescent, blue-hour ambience, warm tungsten, moonlit silver, cream highlights, graphite blacks, lifted blacks, protected highlights, soft highlight rolloff, subtle film grain, gate weave, VHS chroma smear, compression artifacts, rain speculars, dust in beams, wet asphalt reflections, skin pores, halation, bloom, motion blur, high ISO noise, controlled saturation.\n- **AI video constraints** (bake into every segment's closing constraints):\n one action only, no new characters, no sudden scene change, no fake readable text, no random logos, no plastic skin, no extra fingers, no duplicate faces, no warped architecture, no melting props, no impossible camera move, no unmotivated orbit, no digital zoom, preserve identity, preserve wardrobe, preserve prop geometry, preserve screen direction, physically plausible movement.\n\n### 3.8 Optional visual continuity technique\n\nIf tag consistency alone isn't tight enough for the user's needs: after a segment finishes generating, its last frame can be pulled and added as an extra image reference for the next segment's `fileInputs`, so the following clip visually starts from where the previous one ended. Only offer this when the generated clip is actually reachable to download from the sandbox; if it isn't, fall back to plain tag-based continuity and don't block progress on it.\n\n## Step 4 — Generate in batches of up to 3\n\nNever queue more than 3 segments at once, even when `segment_count` is larger.\n\n1. Follow the same Nim workflow as `nim-generate` / `nim-b-roll-seedance`:\n `models_explore` (`action: \"recommend\"`, `type: \"video\"`, `input: \"image\"` if references exist) → `action: \"get\"` on the chosen model to read the live `generationContract` → `media_upload` any reference images once and reuse the resulting file URLs across every segment that needs them → `generate_video` per segment with `mediaLength: 15000` and whatever aspect ratio/resolution fits the target platform.\n2. Submit the current batch's `generate_video` calls (up to 3), then poll `get_generation_status` for each until `finished` / `failed` / `cancelled`. A single 15s Seedance generation usually takes 4-6 minutes; a batch of 3 can take a while — poll sparingly (confirm each job started, then check every 60-90s) rather than narrating every `running` result.\n3. Deliver the real media URL for each finished clip in the batch. Never invent a link, and never describe a queued or running job as done.\n\n## Step 5 — Check in after every batch\n\nAfter delivering a batch — whether it's 1, 2, or 3 clips — stop and ask the user before touching the next batch:\n\n- continue with the next batch, following the story onward, or\n- fix something in the clips just generated, or\n- stop here (fine even if `segment_count` isn't fully generated yet).\n\nExample (ru):\n\n> Готовы клипы 1–3 из {segment_count}. Продолжаем дальше по сюжету, что-то\n> правим, или на этом остановимся?\n\nIf the user asks for a fix, only touch the affected segment(s): rewrite that segment's prompt, regenerate just that one, and keep the rest of the chain as it is. If they say continue, repeat Step 4 for the next up-to-3 segments,\ncarrying the same shared exposition, characters, and location tags forward. Repeat until either all segments are generated or the user says to stop.\n\n## Step 6 — Hand off stitching to the user (ffmpeg, not server-side)\n\nOnce the user is happy with the generated clips — whether that's all of them or a subset they're satisfied with — don't stitch them together here. Give the user the clips in order plus a ready-to-run local command.\n\nDefault, when every clip came from the same Nim model/settings (same codec and parameters — the common case):\n\n```bash\n# 1) list the clips in order, one per line\ncat > clips.txt << 'EOF'\nfile 'segment_1.mp4'\nfile 'segment_2.mp4'\nfile 'segment_3.mp4'\nEOF\n\n# 2) concatenate without re-encoding\nffmpeg -f concat -safe 0 -i clips.txt -c copy final_video.mp4\n```\n\nTell the user to download each clip first, keep the filenames in the right order, and run one of the two commands locally (or use any GUI video editor if they'd rather not use a terminal). Mention this once, plainly — don't turn it into a full tutorial unless they ask for more detail.\n\n## UX rules\n\n1. Be concise: report finished segments and the next checkpoint question, not tool plumbing or raw JSON/prompt text.\n2. Reply in the user's language; keep technical values (`9:16`, `720p`, `mediaLength`, `@CharacterName`) as-is. Segment prompts themselves are always in English per 3.3.\n3. One question at a time. The two required checkpoints are: (a) agreeing to the segmented approach in Step 1, and (b) continue / fix / stop after every batch in Step 5. Everything else uses sane defaults without asking.\n4. Never claim more than 3 segments generated at once, and never call a batch done while any of its jobs are still `running` or `queued`.\n5. Never stitch clips together or promise a merged file from this side — the deliverable is the ordered clips plus the ffmpeg command from Step 6.\n \n\n\n------------\n## Example INPUT\n(ONE COMPOSED SEGMENT COULD FOLLOW THIS LOGIC)\n\n```\nSCENE: Four characters appear one by one on a bold red Anime-style background — each in a martial arts pose with their \"weapon\": Accounting with a calculator raised like a sword, HR with a clipboard, Sales with a phone, Marketing with a laptop. Background symbols/glyphs like in the original (can use custom versions). Characters in office clothes.\n\nI'll provide references to the characters, so point it like that:\n\n@Image1 - Accounting\n@Image2 - HR\n@Image3 - Sales\n@Image4 - Marketing\n```\n\n## Example OUTPUT (for one segment) reflecting this user input:\n\n```\n# GENERAL EXPOSITION\n\nAnime intro. Four office warriors showcased individually. Bold red gradient background with ancient-looking departmental glyphs radiating golden light. Each character demonstrates their elemental office power through explosive martial arts sequences. High-energy anime choreography with dramatic camera angles.\n\n# ENVIRONMENT\n\nDeep crimson-to-scarlet gradient background fills entire frame. Floating golden glyphs orbit in slow rotation: calculator symbols, clipboard icons, phone signals, laptop screens rendered in ancient runic style with subtle particle glow. Atmospheric dust motes catch backlight. Ground plane suggested by subtle shadow beneath each character.\n\n# CHARACTERS LOOK\n\n@Image1 - Accounting warrior in navy business attire, glasses, determined expression, calculator held overhead like sacred weapon\n@Image2 - HR defender in light blue shirt and khakis, clipboard gripped firmly, stance protective and grounded\n@Image3 - Sales champion in teal blazer and dark pants, phone wielded with precision, athletic confidence\n@Image4 - Marketing strategist in coral hoodie and cargo pants, laptop open displaying glowing screen, eager intensity\n\n---\n\n## SHOT 1: ACCOUNTING INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image1 materializes from golden particle burst center-frame. She executes hard karate forward stance, left leg bent, right leg extended back, calculator raised overhead with both hands like sword preparing downward strike. Papers explode upward from ground impact, swirling in vortex around her legs. Calculator screen flashes with rapid number sequences casting golden light on her face.\n\n<medium shot, slight low angle>\n\n@Image1 pivots into horse stance, calculator now horizontal at chest level, thumbs hammering keys in lightning-fast jujitsu hand strikes. Each keypress generates visible shockwave ripples in air. Receipts and ledger pages materialize and orbit her torso. Her glasses reflect scrolling numbers. Sharp exhale, focused intensity.\n\n<close-up, dramatic low angle>\n\n@Image1 executes overhead axe-kick, right leg arcing high while calculator remains gripped in left hand. As foot descends, golden energy trail follows arc. Impact generates expanding ring of numerical symbols and percentage signs exploding outward. Her expression fierce, hair whipping from force. Background glyphs pulse brighter.\n\n---\n\n## SHOT 2: HR INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image2 emerges from blue-tinted energy wave, immediately dropping into deep defensive stance, clipboard held horizontal like shield before chest. Flying documents—policy papers, forms, memos—swirl defensively around him forming protective barrier. His planted feet create small dust clouds. Calm, unmovable presence.\n\n<medium shot, shoulder-level tracking right>\n\n@Image2 performs wide sweeping arc with clipboard, tai chi-inspired circular motion from left to right. Motion trail of blue energy follows clipboard edge. Papers caught in wake organize themselves into neat floating stacks. He transitions smoothly into one-legged crane stance, clipboard now vertical beside head. Glasses catch light, expression serene but alert.\n\n<medium-wide shot, slight high angle>\n\n@Image2 lunges forward into deep front stance, thrusting clipboard outward like spear thrust. Impact point generates expanding blue force field that deflects incoming chaos—crumpled papers bounce off invisible barrier. His back leg locked straight, front knee bent ninety degrees. Exhale visible as slight mist. Authority and protection embodied.\n\n---\n\n## SHOT 3: SALES INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image3 bursts onto screen from left with explosive orange energy, immediately executing flying knee strike while holding phone aloft. Mid-air rotation, curly hair trailing motion. Phone screen blazes with white light casting dramatic rim on her silhouette. Yellow sticky notes and red tape ribbons spiral chaotically in her wake.\n\n<medium shot, dynamic tilted angle>\n\n@Image3 lands in wide power stance, immediately whipping phone in horizontal slash from right to left. Movement creates arc of electric-blue signal waves. She follows through with spinning back-fist using free hand. Sticky-note gremlins materialize and get blown away by force of strike. Her expression fierce joy, teeth showing in competitive grin.\n\n<close-up, low angle, slight push-in>\n\n@Image3 drops into breakdancing-style floor sweep, phone still gripped, spinning on ball of foot while free arm extended. Rotation generates tornado of business cards and colorful price tags swirling upward around her body. Phone screen trails light painting spiral in air. She rises from spin into victorious fist-pump, phone held high, triumphant shout.\n\n---\n\n## SHOT 4: MARKETING INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image4 materializes from teal-and-coral particle storm, laptop already open in hands. She executes high sidekick while maintaining laptop horizontal—screen faces camera, displaying rapidly changing graphs and charts glowing bright. Kick generates upward burst of colorful data visualization particles—pie charts, bar graphs, icons—exploding toward top of frame.\n\n<medium shot, eye-level tracking left>\n\n@Image4 transitions into low snake-style stance, laptop now held vertically like shield at angle. She performs rapid three-punch combination with free hand—jab, cross, uppercut—each punch releasing wave of holographic interface elements. Her teal hair bounces with each strike. Cargo pant pockets release floating marker pens. Expression determined focus, slight smile.\n\n<medium-wide shot, slight low angle>\n\n@Image4 springs into butterfly kick—legs scissoring through air in spectacular athletic display—while laptop remains perfectly level in her grip, defying physics. Screen casts rainbow gradient light across her spinning form. She lands in hero pose: one knee down, other leg extended, laptop displayed proudly forward showing triumphant \"GOAL ACHIEVED!\" checkmark. Green and orange energy sparkles settle around her like victorious confetti. Thumbs-up with free hand.\n\n---\n\n# BACKGROUND GLYPHS SPECIFICATION\n\nAccounting zone: Golden calculator keys, percentage symbols, balance scale icons, numerical sequences in circular mandala formation\nHR zone: Blue clipboard checkmarks, policy shield emblems, handshake symbols, protective barrier patterns\nSales zone: Orange-yellow phone signal bars, lightning bolt close icons, upward arrow graphs, target crosshairs\nMarketing zone: Teal-coral laptop screen frames, pie chart segments, lightbulb ideas, campaign flag banners\n\nAll glyphs rendered in ancient runic aesthetic with subtle animation—gentle rotation, pulsing glow, particle emission—maintaining constant presence throughout all shots.\n```""---\nname: nim-long-video-chain\ndescription: >-\n Use when the user asks for a video longer than Nim's single-clip cap — a\n duration roughly between 15 seconds and 5 minutes (\"1 minute video\", \"30\n second video\", \"90 sec clip\", \"2 minutes long\"), or asks for a format that\n implies more than one clip's worth of content without giving an exact\n number: \"YouTube Shorts\", \"Reels\", \"TikTok\", \"a short film\", \"an episode\",\n \"a series\". Nim's Seedance video generation is maximum 15 seconds per\n clip. This skill is NOT for single clips of 15 seconds or less — use\n nim-generate / nim-b-roll-seedance / nim-hookgen-seedance for those.\n---\n\n# Long Video Chain (Nim multi-segment Seedance)\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\nTurn a \"make me a 1-minute video\" request into a chain of 15-second Nim Seedance 2.5 clips that tell one continuous story, then hand the generated videos to the user, offering FFMpeg stitching script.\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-long-video-chain\"`. 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## When this triggers\n\n- An explicit duration longer than 15 seconds and up to roughly 5 minutes:\n \"1 minute video\", \"30 second clip\", \"2 minutes\", \"90 sec\".\n- Format names that imply longer-than-one-clip content without a stated\n number: \"a short film\", \"an episode\", \"a series\", \"a multi-part video\".\n- A brief whose described content clearly won't fit one 15-second clip (a full story arc, several distinct scenes, a multi-beat product story), even if the user never states a duration — infer that it needs more than one segment and confirm the assumed length before planning further.\n\nRequests for 15 seconds or less stay on the normal single-clip skills\n(`nim-generate`, `nim-b-roll-seedance`, `nim-hookgen-seedance`). Don't chain\nfor those.\n\n## Fixed defaults\n\n| Setting | Value | Notes |\n|---|---|---|\n| Per-segment duration | `15` seconds (`mediaLength: 15000`) | Nim's current single-generation cap. |\n| Max segments generated per batch | `3` | Never queue more at once, regardless of total segment count. |\n| Aspect ratio | `9:16` | Default for Shorts/Reels/TikTok; ask if the target platform differs. |\n| Model | Seedance 2.5 | Regular, not 'Fast' version! |\n| Resolution | Draft: `draft: true` (480p; no `resolution`) | `720p` / `1080p` only when the user asks (Quality version). |\n| Stitching | User-side, via `ffmpeg` | Never merged on our side — see Step 6. |\n\n\n## Step 1 — State the limit, then ask questions.\n\nBefore writing any prompt or touching Nim, tell the user plainly, in their own input language:\n\n- Interact with user as a story writer and narrative director, who is responsible for the output visuals and who tend to help bring the user idea to life in best way possible using your knowledge (and this skill).\n- The single Nim video generation is **15 seconds** using Seedance 2.5 model (not 'Fast' version of it).\n- A longer video is made as a **sequence of 15-second clips** that continue one story, which can then be joined into one file.\n- Ask whether they want to proceed this way.\n\nExample (en):\n\n> Current technical limitation is a 15 seconds per one video. I can help to build a longer video as a sequence of 15-second clips that shares the same story, and smoothly developing the scenario across the multiple video-clips.\n\nDo not plan segments or call Nim until the user agrees. If they'd rather have something that fits one clip instead, drop this skill and treat it as a normal single-clip request.\n\n**Questions to ask:**\n1. If the user is acknowledged about the video limitation and that the proceeding will produce multiple video generations.\n*yes/no if it fits for the current client — a simple two-option question (\"Let's do it as multiple videos\" / \"Let's shorten the scenario down to fit idea into one video\")*\n2. Draft version (480p) or Quality version (720p) video is required. Default to Draft unless the user asks for Quality.\n3. Style or purpose, 9:16 vertical or 16:9 horizontal aspect ratio (If those were not provided in the user input).\n{writing and generation steps}\n4. Ask if clips stitching script for FFMpeg is required after the generation process is complete and user is satisfied.\n\nUse `ask_user_input_v0` to ask questions.\n\n## Step 2 — Turn duration into a segment plan\n\n```\nsegment_count = ceil(requested_duration_seconds / 15)\n```\n\n- Each segment is a fixed 15s Nim clip, so the assembled runtime is always a multiple of 15s. When the requested duration isn't (\"40 seconds\" → 3 segments → 45s), mention the rounding once, briefly, and move on. Exact multiples (\"1 minute\" → 4 segments → 60s) need no comment.\n- If `segment_count` is large (rough guide: more than ~8 segments, i.e. above ~2 minutes of story), say so and confirm the user still wants the full length — generation time and Nim credits scale linearly withsegment count. This isn't a hard blocker, just something to flag once; batching (Step 4) keeps it manageable either way.\n- Treat \"5 minutes\" (20 segments) as the practical ceiling for this workflow. Above that, say this approach isn't a good fit and suggest trimming the target duration or splitting the idea into separate videos.\n\n## Step 3 — Write one continuous multi-segment scenario\n\nThis step produces `segment_count` complete Seedance prompts from the user's idea. \n\nUse `ask_user_input_v0` to ensure/define desired video style and mood (e.g., if the video is an AD or UGC or cinematic series) to use it as primary driver while writing scenes. \n\nWrite the entire story as one continuous, seamless shot list first, as if it were a single long take with no segment boundaries — do not let the number of segments dictate the number of acts or beats. Only after the full continuous shot list exists, cut it into segment_count pieces wherever the 15-second/shot-count limit forces a cut, even mid-beat or mid-act; a beat, an act, or even a single character's action may span across a segment boundary or shift earlier/later than a round act-per-segment split would suggest.\nAuthor them internally following the rules below, then show the user a short plain-language summary of the planned segments (one line each) — not the raw prompts, unless they ask to see the full text.\n\nConfirm the built scenario with user before proceeding with generation\n\nSummarize the continuous plan, not the segments as separate stories: describe the story once as a single throughline, then note only where it gets physically cut into clips (a timestamp-like marker, not a new scene/act). Avoid describing each clip as if it were its own self-contained scene (e.g. never \"Clip 1: her day life / Clip 2: her night life\") unless the user's own idea is literally structured that way — the split point should fall wherever the continuous story naturally lands at 15s, not at a convenient narrative boundary.\n\nUse `ask_user_input_v0` to proceed with generation or adjust details. \nProceed to Generation step (Step 4) ONLY if user agrees with the outlined plan.\n\n### 3.1 Role and Story structure across segments\n\nWhen writing the scenario and the segment prompts, act as a video director and montage editor who uses modern and innovative techniques to create engaging, visually appealing videos — drawing on the techniques of Luc Besson, Christopher Nolan, Alberto Mielgo, Patrick Clair & Raoul Marks, Tarsem Singh, Denis Villeneuve, Quentin Tarantino, Martin Scorsese, Bong Joon-ho, Park Chan-wook, Stephen Norrington, Robert Valley, David Fincher, M. Night Shyamalan, Ridley Scott.\n\nBuild the narrative from the user's (possibly sparse) input using the three-act structure, mapped onto `segment_count` positions instead of onto shots inside a single clip:\n\n- Exposition — an introduction to the characters and the world.\n- Rising action — the event that triggers the main conflict.\n- Development — a series of obstacles and struggles.\n- Climax — the peak of tension.\n- Resolution — the resolution of the conflict and the conclusion.\n\nBuild the shared exposition following 3.2 below.\n\n### 3.2 Shared exposition (written once, reused everywhere)\n\nBefore any segment prompt, define the shared world once, in three sections.\nWrite each one with the same verbatim, concrete-detail discipline used for shots (3.3) — describe only what would actually be visible on screen, never a figurative or emotional shorthand a video model would render literally (\"fire in her eyes\" becomes literal fire). Each section should read as directly usable image/video-generation description, not as a summary or a mood board:\n\n- **General exposition** (2-4 sentences) — name what the piece is (genre, format, register — e.g. \"anime intro\", \"noir short\", \"product spot\"), its energy level, and the overall visual framing/choreography style that will recur across every segment. This is the one-line pitch a director would give before blocking anything, made concrete enough to constrain later\n choices.\n- **Environment** (2-5 sentences) — the physical world: location(s), background elements, atmosphere (weather, particles, light quality), color palette, and any recurring visual motifs (symbols, textures, props in the background). Describe it as a place a camera could actually be set up in, not as a vibe.\n- **Characters look** (1-3 sentences per character) — for every character who appears anywhere in the chain, concrete wardrobe, physical traits, and posture/energy. If the user supplied `@Image` references, follow 3.5: state only *what* each reference is (role, name) — never redescribe physical traits already contained in the image, since conflicting text description will corrupt the image reference instead of using it.\n\nEvery segment prompt carries this shared context forward **unchanged** — each segment is a separate Nim generation with no memory of the others, so the shared block is the only thing holding the world together. A segment may add environment detail specific to its own beat (3.3's \"plus anything specific to this beat\"), but it must never contradict or rewrite the shared general exposition or an established character's look — extend, don't replace.\n\n### 3.3 Rules for writing each segment prompt\n\nEach segment is its own **complete, self-contained definition of exposition, scenes, shots and subshots** — never a single shot fragment that assumes/reference context from another segment. \nA single segment is a 15-second *video*, and a video is made of **multiple shots**, exactly like the reference example (the \"office warriors\" intro).\n\n**A segment must contain multiple scenes and multiple shots, never 1.** \nA single shot held for the full 15 seconds reads as static and undermines the entire point of chaining clips together .\nFine pace is 3-4 scenes with 2-4 subshots per scene within a single 15 seconds segment of the video; \nFaster pace can do up to 12 subshots total.\n\n**Example Structure:**\n```\nSegmentA\n - Scene 1\n - <subshot>\n - <subshot>\n - Scene 2\n - <subshot>\n - <subshot>\n - <subshot>\n - <subshot>\n - Scene 3\n - <subshot>\n ...\n```\n\nOne scene in a single segment(video) could share multiple subshots (e.g., Scene in flat displayed in 2 shots: from kitchen and from bedroom, with 3 subshots each, displaying the actions happening from different angles and perspectives; Resulting in total 6 subshots).\nMore shots and more subshots per segment will make the scene more dynamic, while less shots produces slower pace videos;\nNever ship a segment with only one shot.\n\nStructure every segment prompt with these sections:\n\n- general exposition (shared block, verbatim)\n- environment (shared block, verbatim, plus anything specific to this beat)\n- characters look (shared block, verbatim for every character on screen)\n- shots: 3-7 numbered shots, each as `<shot type, angle>` followed by its description — shot type first, then what happens in this shot. Vary shot size and angle between consecutive shots (e.g. wide → medium → close-up, or medium → low-angle → over-the-shoulder) the same way the reference example escalates from wide establishing action into a tighter, more\n dramatic final beat.\n\nEach shot within the segment must still read as the next logical beat of that segment's action — building within the segment the same way segments build across the whole chain (Step 3.3). Don't repeat the same action from a different angle; each shot should advance the moment forward.\n\nShot-writing rules (apply inside every shot):\n\n- 2 sentences per each new shot/perspective. Pay attention to directions and\n composition.\n- Write verbatim: describe only what is literally on screen during the shot.\n Bring emotions to the characters through facial expressions and physical detail. Avoid figurative emotional descriptions like \"fire in her eyes\" — the model takes these literally and her eyes will be set on fire. Definition of emotions characters should product can be defined with emojis: model is clearly undestands it.\n- Always pay attention to: emotions on the face, the facial expressions, lens and shot type selection, camera movement if required, shots and scenes separation only if required.\n- Phrasing like \"Camera drifts behind and beside her, maintaining constant distance as she trudges through snow leaving footprints, sparse birch trees flanking the path.\" is the target register — it gives strong dynamic for handheld tracking-type shots.\n- One shot = one physically plausible camera move = one readable action with a beginning/middle/end.\n- Do not include timestamps inside the prompt text.\n- No voice-over or music unless the user asked for it.\n- Output in English (regardless of the conversation language), minimal markdown, no preambles or opinions — just the final prompt text per segment, delivered as clearly delimited blocks\n (`SEGMENT 1 (0:00-0:15)`, `SEGMENT 2 (0:15-0:30)`, …; the timing lives in the block label only, never inside the prompt).\n\n### 3.5 Reference image rules (`@Image` tags)\n\n- Do not add `@` references unless the user asked to or actually provided\n reference images.\n- Every referenced image already contains the required visual details, so never re-describe its visuals in text — only state *what* it is (what person, what object). E.g. if `@Image1` is an old woman with dark hair, writing \"young woman with red long hair @Image1\" will break the output; the proper use is just \"woman @Image1\".\n- Usually a single reference image is provided (a product or a person); use it as `@Image1` unless the user assigns roles differently.\n- Use `@CharacterName`, `@LocationName`, `@PropName` element tags for named entities. Preserve identity, outfit, proportions, location geography, prop geometry, and color palette everywhere a tag appears.\n- Keep every tag **identical, word-for-word, across every segment prompt**. Tag consistency is the main mechanism holding identity, wardrobe, and location together across separate generations.\n\n### 3.6 Per-segment craft template\n\nFor each segment, define these layers explicitly (skip a layer only when it's genuinely irrelevant to the beat):\n\n- **camera** — mount, camera height, movement, operator language, parallax, occlusion, screen direction.\n- **optics** — focal length, lens family, aperture/T-stop, filtration, focus behavior, bokeh, flare, falloff.\n- **lighting** — motivated key/fill/back/rim/practicals, modifiers, grip tools, contrast ratio, falloff, color temperature, negative fill or bounce.\n- **constraints** — close every segment prompt with: no scene change, no extra characters, no fake text/logos, no distorted hands, no melting props, no plastic skin, no impossible movement.\n\n### 3.7 Professional vocabulary\n\nDraw camera, lens, lighting, and texture wording from these blocks — they are the register Seedance responds to best:\n\n- **camera packages**: large-format digital cinema body, Super 35 digital cinema body, Super 16 inspired digital capture, compact documentary cinema body, bodycam simulation, dashcam simulation, consumer camcorder simulation, motion-control tabletop rig, vehicle suction mount, Technocrane, Steadicam, gimbal, shoulder rig, locked-off sticks, fluid-head tripod, slider, low dolly, hostess tray car mount, pursuit vehicle rig.\n- **shot sizes and angles**: establishing wide, medium-wide, medium close-up, close profile, extreme close-up, over-the-shoulder, POV, high corner surveillance angle, low bumper angle, tabletop macro height, waist-level western angle, shoulder-level vérité, eye-level neutral, slight low-angle power imbalance, symmetrical institutional wide, long-lens observation.\n- **movement terms**: slow push-in, lateral dolly, slider creep, tracking shot, crab move, locked-off hold, whip settle, pedestal rise, crane drop, Steadicam drift, gimbal walk-through, handheld shoulder bounce, body-mounted vibration, PTZ surveillance movement, motion-control repeatability, reactive reframing, beat-synced push, glacial long take.\n- **lens and focus terms**: anamorphic prime, spherical prime, vintage glass, macro lens, telephoto compression, rectilinear wide angle, oval bokeh, field curvature, edge falloff, barrel distortion, focus breathing, rack focus, deep focus, zone focus, close minimum focus, split attention between foreground and background, natural focus recovery, soft corners, halation around practicals, controlled flare, low-con diffusion.\n- **lighting units and sources**: tungsten practical, sodium vapor streetlamp, fluorescent tube, LED tube, moving head, strobe, neon sign, CRT glow, console bounce, headlight, flashlight, headlamp, candle cluster, fireplace ember, moon source, overcast sky key, window key, book light, softbox strip, octa key, hard fresnel-like source, overhead fluorescent grid, table lamp, porch light.\n- **gaffer and grip terms**: key light, fill light, backlight, rim light, kicker, edge light, negative fill, black solids, duvetyne, floppy flag, cutter, topper, egg crate, grid cloth, silk, book light, bounce muslin, ultrabounce, bead board, black wrap, snoot, cookie / cucoloris, DMX cue, practical dimmer, wet-down, haze, rain bars, atmosphere, interactive light.\n- **contrast ratio examples**: 1.5:1 polished commercial fill, 2:1 clean interview or comedy, 3:1 soft dramatic modeling, 4:1 prestige drama, 6:1\n noir or thriller, 8:1 horror or night exterior, 12:1 survival night or\n emergency realism, 20:1 club/strobe silhouette.\n- **color and texture terms**: cyan shadows, amber highlights, sodium vapor amber, dirty green fluorescent, blue-hour ambience, warm tungsten, moonlit silver, cream highlights, graphite blacks, lifted blacks, protected highlights, soft highlight rolloff, subtle film grain, gate weave, VHS chroma smear, compression artifacts, rain speculars, dust in beams, wet asphalt reflections, skin pores, halation, bloom, motion blur, high ISO noise, controlled saturation.\n- **AI video constraints** (bake into every segment's closing constraints):\n one action only, no new characters, no sudden scene change, no fake readable text, no random logos, no plastic skin, no extra fingers, no duplicate faces, no warped architecture, no melting props, no impossible camera move, no unmotivated orbit, no digital zoom, preserve identity, preserve wardrobe, preserve prop geometry, preserve screen direction, physically plausible movement.\n\n### 3.8 Optional visual continuity technique\n\nIf tag consistency alone isn't tight enough for the user's needs: after a segment finishes generating, its last frame can be pulled and added as an extra image reference for the next segment's `fileInputs`, so the following clip visually starts from where the previous one ended. Only offer this when the generated clip is actually reachable to download from the sandbox; if it isn't, fall back to plain tag-based continuity and don't block progress on it.\n\n## Step 4 — Generate in batches of up to 3\n\nNever queue more than 3 segments at once, even when `segment_count` is larger.\n\n1. Follow the same Nim workflow as `nim-generate` / `nim-b-roll-seedance`:\n `models_explore` (`action: \"recommend\"`, `type: \"video\"`, `input: \"image\"` if references exist) → `action: \"get\"` on the chosen model to read the live `generationContract` → `media_upload` any reference images once and reuse the resulting file URLs across every segment that needs them → `generate_video` per segment with `mediaLength: 15000` and whatever aspect ratio/resolution fits the target platform.\n2. Submit the current batch's `generate_video` calls (up to 3), then poll `get_generation_status` for each until `finished` / `failed` / `cancelled`. A single 15s Seedance generation usually takes 4-6 minutes; a batch of 3 can take a while — poll sparingly (confirm each job started, then check every 60-90s) rather than narrating every `running` result.\n3. Deliver the real media URL for each finished clip in the batch. Never invent a link, and never describe a queued or running job as done.\n\n## Step 5 — Check in after every batch\n\nAfter delivering a batch — whether it's 1, 2, or 3 clips — stop and ask the user before touching the next batch:\n\n- continue with the next batch, following the story onward, or\n- fix something in the clips just generated, or\n- stop here (fine even if `segment_count` isn't fully generated yet).\n\nExample (ru):\n\n> Готовы клипы 1–3 из {segment_count}. Продолжаем дальше по сюжету, что-то\n> правим, или на этом остановимся?\n\nIf the user asks for a fix, only touch the affected segment(s): rewrite that segment's prompt, regenerate just that one, and keep the rest of the chain as it is. If they say continue, repeat Step 4 for the next up-to-3 segments,\ncarrying the same shared exposition, characters, and location tags forward. Repeat until either all segments are generated or the user says to stop.\n\n## Step 6 — Hand off stitching to the user (ffmpeg, not server-side)\n\nOnce the user is happy with the generated clips — whether that's all of them or a subset they're satisfied with — don't stitch them together here. Give the user the clips in order plus a ready-to-run local command.\n\nDefault, when every clip came from the same Nim model/settings (same codec and parameters — the common case):\n\n```bash\n# 1) list the clips in order, one per line\ncat > clips.txt << 'EOF'\nfile 'segment_1.mp4'\nfile 'segment_2.mp4'\nfile 'segment_3.mp4'\nEOF\n\n# 2) concatenate without re-encoding\nffmpeg -f concat -safe 0 -i clips.txt -c copy final_video.mp4\n```\n\nTell the user to download each clip first, keep the filenames in the right order, and run one of the two commands locally (or use any GUI video editor if they'd rather not use a terminal). Mention this once, plainly — don't turn it into a full tutorial unless they ask for more detail.\n\n## UX rules\n\n1. Be concise: report finished segments and the next checkpoint question, not tool plumbing or raw JSON/prompt text.\n2. Reply in the user's language; keep technical values (`9:16`, `720p`, `mediaLength`, `@CharacterName`) as-is. Segment prompts themselves are always in English per 3.3.\n3. One question at a time. The two required checkpoints are: (a) agreeing to the segmented approach in Step 1, and (b) continue / fix / stop after every batch in Step 5. Everything else uses sane defaults without asking.\n4. Never claim more than 3 segments generated at once, and never call a batch done while any of its jobs are still `running` or `queued`.\n5. Never stitch clips together or promise a merged file from this side — the deliverable is the ordered clips plus the ffmpeg command from Step 6.\n \n\n\n------------\n## Example INPUT\n(ONE COMPOSED SEGMENT COULD FOLLOW THIS LOGIC)\n\n```\nSCENE: Four characters appear one by one on a bold red Anime-style background — each in a martial arts pose with their \"weapon\": Accounting with a calculator raised like a sword, HR with a clipboard, Sales with a phone, Marketing with a laptop. Background symbols/glyphs like in the original (can use custom versions). Characters in office clothes.\n\nI'll provide references to the characters, so point it like that:\n\n@Image1 - Accounting\n@Image2 - HR\n@Image3 - Sales\n@Image4 - Marketing\n```\n\n## Example OUTPUT (for one segment) reflecting this user input:\n\n```\n# GENERAL EXPOSITION\n\nAnime intro. Four office warriors showcased individually. Bold red gradient background with ancient-looking departmental glyphs radiating golden light. Each character demonstrates their elemental office power through explosive martial arts sequences. High-energy anime choreography with dramatic camera angles.\n\n# ENVIRONMENT\n\nDeep crimson-to-scarlet gradient background fills entire frame. Floating golden glyphs orbit in slow rotation: calculator symbols, clipboard icons, phone signals, laptop screens rendered in ancient runic style with subtle particle glow. Atmospheric dust motes catch backlight. Ground plane suggested by subtle shadow beneath each character.\n\n# CHARACTERS LOOK\n\n@Image1 - Accounting warrior in navy business attire, glasses, determined expression, calculator held overhead like sacred weapon\n@Image2 - HR defender in light blue shirt and khakis, clipboard gripped firmly, stance protective and grounded\n@Image3 - Sales champion in teal blazer and dark pants, phone wielded with precision, athletic confidence\n@Image4 - Marketing strategist in coral hoodie and cargo pants, laptop open displaying glowing screen, eager intensity\n\n---\n\n## SHOT 1: ACCOUNTING INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image1 materializes from golden particle burst center-frame. She executes hard karate forward stance, left leg bent, right leg extended back, calculator raised overhead with both hands like sword preparing downward strike. Papers explode upward from ground impact, swirling in vortex around her legs. Calculator screen flashes with rapid number sequences casting golden light on her face.\n\n<medium shot, slight low angle>\n\n@Image1 pivots into horse stance, calculator now horizontal at chest level, thumbs hammering keys in lightning-fast jujitsu hand strikes. Each keypress generates visible shockwave ripples in air. Receipts and ledger pages materialize and orbit her torso. Her glasses reflect scrolling numbers. Sharp exhale, focused intensity.\n\n<close-up, dramatic low angle>\n\n@Image1 executes overhead axe-kick, right leg arcing high while calculator remains gripped in left hand. As foot descends, golden energy trail follows arc. Impact generates expanding ring of numerical symbols and percentage signs exploding outward. Her expression fierce, hair whipping from force. Background glyphs pulse brighter.\n\n---\n\n## SHOT 2: HR INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image2 emerges from blue-tinted energy wave, immediately dropping into deep defensive stance, clipboard held horizontal like shield before chest. Flying documents—policy papers, forms, memos—swirl defensively around him forming protective barrier. His planted feet create small dust clouds. Calm, unmovable presence.\n\n<medium shot, shoulder-level tracking right>\n\n@Image2 performs wide sweeping arc with clipboard, tai chi-inspired circular motion from left to right. Motion trail of blue energy follows clipboard edge. Papers caught in wake organize themselves into neat floating stacks. He transitions smoothly into one-legged crane stance, clipboard now vertical beside head. Glasses catch light, expression serene but alert.\n\n<medium-wide shot, slight high angle>\n\n@Image2 lunges forward into deep front stance, thrusting clipboard outward like spear thrust. Impact point generates expanding blue force field that deflects incoming chaos—crumpled papers bounce off invisible barrier. His back leg locked straight, front knee bent ninety degrees. Exhale visible as slight mist. Authority and protection embodied.\n\n---\n\n## SHOT 3: SALES INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image3 bursts onto screen from left with explosive orange energy, immediately executing flying knee strike while holding phone aloft. Mid-air rotation, curly hair trailing motion. Phone screen blazes with white light casting dramatic rim on her silhouette. Yellow sticky notes and red tape ribbons spiral chaotically in her wake.\n\n<medium shot, dynamic tilted angle>\n\n@Image3 lands in wide power stance, immediately whipping phone in horizontal slash from right to left. Movement creates arc of electric-blue signal waves. She follows through with spinning back-fist using free hand. Sticky-note gremlins materialize and get blown away by force of strike. Her expression fierce joy, teeth showing in competitive grin.\n\n<close-up, low angle, slight push-in>\n\n@Image3 drops into breakdancing-style floor sweep, phone still gripped, spinning on ball of foot while free arm extended. Rotation generates tornado of business cards and colorful price tags swirling upward around her body. Phone screen trails light painting spiral in air. She rises from spin into victorious fist-pump, phone held high, triumphant shout.\n\n---\n\n## SHOT 4: MARKETING INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image4 materializes from teal-and-coral particle storm, laptop already open in hands. She executes high sidekick while maintaining laptop horizontal—screen faces camera, displaying rapidly changing graphs and charts glowing bright. Kick generates upward burst of colorful data visualization particles—pie charts, bar graphs, icons—exploding toward top of frame.\n\n<medium shot, eye-level tracking left>\n\n@Image4 transitions into low snake-style stance, laptop now held vertically like shield at angle. She performs rapid three-punch combination with free hand—jab, cross, uppercut—each punch releasing wave of holographic interface elements. Her teal hair bounces with each strike. Cargo pant pockets release floating marker pens. Expression determined focus, slight smile.\n\n<medium-wide shot, slight low angle>\n\n@Image4 springs into butterfly kick—legs scissoring through air in spectacular athletic display—while laptop remains perfectly level in her grip, defying physics. Screen casts rainbow gradient light across her spinning form. She lands in hero pose: one knee down, other leg extended, laptop displayed proudly forward showing triumphant \"GOAL ACHIEVED!\" checkmark. Green and orange energy sparkles settle around her like victorious confetti. Thumbs-up with free hand.\n\n---\n\n# BACKGROUND GLYPHS SPECIFICATION\n\nAccounting zone: Golden calculator keys, percentage symbols, balance scale icons, numerical sequences in circular mandala formation\nHR zone: Blue clipboard checkmarks, policy shield emblems, handshake symbols, protective barrier patterns\nSales zone: Orange-yellow phone signal bars, lightning bolt close icons, upward arrow graphs, target crosshairs\nMarketing zone: Teal-coral laptop screen frames, pie chart segments, lightbulb ideas, campaign flag banners\n\nAll glyphs rendered in ancient runic aesthetic with subtle animation—gentle rotation, pulsing glow, particle emission—maintaining constant presence throughout all shots.\n```"Full snapshot data
{
"description": "Use when the user asks for a video longer than Nim's single-clip cap — a duration roughly between 15 seconds and 5 minutes (\"1 minute video\", \"30 second video\", \"90 sec clip\", \"2 minutes long\"), or asks for a format that implies more than one clip's worth of content without giving an exact number: \"YouTube Shorts\", \"Reels\", \"TikTok\", \"a short film\", \"an episode\", \"a series\". Nim's Seedance video generation is maximum 15 seconds per clip. This skill is NOT for single clips of 15 seconds or less — use nim-generate / nim-b-roll-seedance / nim-hookgen-seedance for those.",
"included_files": [],
"name": "nim-long-video-chain",
"skill_md_contents": "---\nname: nim-long-video-chain\ndescription: >-\n Use when the user asks for a video longer than Nim's single-clip cap — a\n duration roughly between 15 seconds and 5 minutes (\"1 minute video\", \"30\n second video\", \"90 sec clip\", \"2 minutes long\"), or asks for a format that\n implies more than one clip's worth of content without giving an exact\n number: \"YouTube Shorts\", \"Reels\", \"TikTok\", \"a short film\", \"an episode\",\n \"a series\". Nim's Seedance video generation is maximum 15 seconds per\n clip. This skill is NOT for single clips of 15 seconds or less — use\n nim-generate / nim-b-roll-seedance / nim-hookgen-seedance for those.\n---\n\n# Long Video Chain (Nim multi-segment Seedance)\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\nTurn a \"make me a 1-minute video\" request into a chain of 15-second Nim Seedance 2.5 clips that tell one continuous story, then hand the generated videos to the user, offering FFMpeg stitching script.\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-long-video-chain\"`. 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## When this triggers\n\n- An explicit duration longer than 15 seconds and up to roughly 5 minutes:\n \"1 minute video\", \"30 second clip\", \"2 minutes\", \"90 sec\".\n- Format names that imply longer-than-one-clip content without a stated\n number: \"a short film\", \"an episode\", \"a series\", \"a multi-part video\".\n- A brief whose described content clearly won't fit one 15-second clip (a full story arc, several distinct scenes, a multi-beat product story), even if the user never states a duration — infer that it needs more than one segment and confirm the assumed length before planning further.\n\nRequests for 15 seconds or less stay on the normal single-clip skills\n(`nim-generate`, `nim-b-roll-seedance`, `nim-hookgen-seedance`). Don't chain\nfor those.\n\n## Fixed defaults\n\n| Setting | Value | Notes |\n|---|---|---|\n| Per-segment duration | `15` seconds (`mediaLength: 15000`) | Nim's current single-generation cap. |\n| Max segments generated per batch | `3` | Never queue more at once, regardless of total segment count. |\n| Aspect ratio | `9:16` | Default for Shorts/Reels/TikTok; ask if the target platform differs. |\n| Model | Seedance 2.5 | Regular, not 'Fast' version! |\n| Resolution | Draft: `draft: true` (480p; no `resolution`) | `720p` / `1080p` only when the user asks (Quality version). |\n| Stitching | User-side, via `ffmpeg` | Never merged on our side — see Step 6. |\n\n\n## Step 1 — State the limit, then ask questions.\n\nBefore writing any prompt or touching Nim, tell the user plainly, in their own input language:\n\n- Interact with user as a story writer and narrative director, who is responsible for the output visuals and who tend to help bring the user idea to life in best way possible using your knowledge (and this skill).\n- The single Nim video generation is **15 seconds** using Seedance 2.5 model (not 'Fast' version of it).\n- A longer video is made as a **sequence of 15-second clips** that continue one story, which can then be joined into one file.\n- Ask whether they want to proceed this way.\n\nExample (en):\n\n> Current technical limitation is a 15 seconds per one video. I can help to build a longer video as a sequence of 15-second clips that shares the same story, and smoothly developing the scenario across the multiple video-clips.\n\nDo not plan segments or call Nim until the user agrees. If they'd rather have something that fits one clip instead, drop this skill and treat it as a normal single-clip request.\n\n**Questions to ask:**\n1. If the user is acknowledged about the video limitation and that the proceeding will produce multiple video generations.\n*yes/no if it fits for the current client — a simple two-option question (\"Let's do it as multiple videos\" / \"Let's shorten the scenario down to fit idea into one video\")*\n2. Draft version (480p) or Quality version (720p) video is required. Default to Draft unless the user asks for Quality.\n3. Style or purpose, 9:16 vertical or 16:9 horizontal aspect ratio (If those were not provided in the user input).\n{writing and generation steps}\n4. Ask if clips stitching script for FFMpeg is required after the generation process is complete and user is satisfied.\n\nUse `ask_user_input_v0` to ask questions.\n\n## Step 2 — Turn duration into a segment plan\n\n```\nsegment_count = ceil(requested_duration_seconds / 15)\n```\n\n- Each segment is a fixed 15s Nim clip, so the assembled runtime is always a multiple of 15s. When the requested duration isn't (\"40 seconds\" → 3 segments → 45s), mention the rounding once, briefly, and move on. Exact multiples (\"1 minute\" → 4 segments → 60s) need no comment.\n- If `segment_count` is large (rough guide: more than ~8 segments, i.e. above ~2 minutes of story), say so and confirm the user still wants the full length — generation time and Nim credits scale linearly withsegment count. This isn't a hard blocker, just something to flag once; batching (Step 4) keeps it manageable either way.\n- Treat \"5 minutes\" (20 segments) as the practical ceiling for this workflow. Above that, say this approach isn't a good fit and suggest trimming the target duration or splitting the idea into separate videos.\n\n## Step 3 — Write one continuous multi-segment scenario\n\nThis step produces `segment_count` complete Seedance prompts from the user's idea. \n\nUse `ask_user_input_v0` to ensure/define desired video style and mood (e.g., if the video is an AD or UGC or cinematic series) to use it as primary driver while writing scenes. \n\nWrite the entire story as one continuous, seamless shot list first, as if it were a single long take with no segment boundaries — do not let the number of segments dictate the number of acts or beats. Only after the full continuous shot list exists, cut it into segment_count pieces wherever the 15-second/shot-count limit forces a cut, even mid-beat or mid-act; a beat, an act, or even a single character's action may span across a segment boundary or shift earlier/later than a round act-per-segment split would suggest.\nAuthor them internally following the rules below, then show the user a short plain-language summary of the planned segments (one line each) — not the raw prompts, unless they ask to see the full text.\n\nConfirm the built scenario with user before proceeding with generation\n\nSummarize the continuous plan, not the segments as separate stories: describe the story once as a single throughline, then note only where it gets physically cut into clips (a timestamp-like marker, not a new scene/act). Avoid describing each clip as if it were its own self-contained scene (e.g. never \"Clip 1: her day life / Clip 2: her night life\") unless the user's own idea is literally structured that way — the split point should fall wherever the continuous story naturally lands at 15s, not at a convenient narrative boundary.\n\nUse `ask_user_input_v0` to proceed with generation or adjust details. \nProceed to Generation step (Step 4) ONLY if user agrees with the outlined plan.\n\n### 3.1 Role and Story structure across segments\n\nWhen writing the scenario and the segment prompts, act as a video director and montage editor who uses modern and innovative techniques to create engaging, visually appealing videos — drawing on the techniques of Luc Besson, Christopher Nolan, Alberto Mielgo, Patrick Clair & Raoul Marks, Tarsem Singh, Denis Villeneuve, Quentin Tarantino, Martin Scorsese, Bong Joon-ho, Park Chan-wook, Stephen Norrington, Robert Valley, David Fincher, M. Night Shyamalan, Ridley Scott.\n\nBuild the narrative from the user's (possibly sparse) input using the three-act structure, mapped onto `segment_count` positions instead of onto shots inside a single clip:\n\n- Exposition — an introduction to the characters and the world.\n- Rising action — the event that triggers the main conflict.\n- Development — a series of obstacles and struggles.\n- Climax — the peak of tension.\n- Resolution — the resolution of the conflict and the conclusion.\n\nBuild the shared exposition following 3.2 below.\n\n### 3.2 Shared exposition (written once, reused everywhere)\n\nBefore any segment prompt, define the shared world once, in three sections.\nWrite each one with the same verbatim, concrete-detail discipline used for shots (3.3) — describe only what would actually be visible on screen, never a figurative or emotional shorthand a video model would render literally (\"fire in her eyes\" becomes literal fire). Each section should read as directly usable image/video-generation description, not as a summary or a mood board:\n\n- **General exposition** (2-4 sentences) — name what the piece is (genre, format, register — e.g. \"anime intro\", \"noir short\", \"product spot\"), its energy level, and the overall visual framing/choreography style that will recur across every segment. This is the one-line pitch a director would give before blocking anything, made concrete enough to constrain later\n choices.\n- **Environment** (2-5 sentences) — the physical world: location(s), background elements, atmosphere (weather, particles, light quality), color palette, and any recurring visual motifs (symbols, textures, props in the background). Describe it as a place a camera could actually be set up in, not as a vibe.\n- **Characters look** (1-3 sentences per character) — for every character who appears anywhere in the chain, concrete wardrobe, physical traits, and posture/energy. If the user supplied `@Image` references, follow 3.5: state only *what* each reference is (role, name) — never redescribe physical traits already contained in the image, since conflicting text description will corrupt the image reference instead of using it.\n\nEvery segment prompt carries this shared context forward **unchanged** — each segment is a separate Nim generation with no memory of the others, so the shared block is the only thing holding the world together. A segment may add environment detail specific to its own beat (3.3's \"plus anything specific to this beat\"), but it must never contradict or rewrite the shared general exposition or an established character's look — extend, don't replace.\n\n### 3.3 Rules for writing each segment prompt\n\nEach segment is its own **complete, self-contained definition of exposition, scenes, shots and subshots** — never a single shot fragment that assumes/reference context from another segment. \nA single segment is a 15-second *video*, and a video is made of **multiple shots**, exactly like the reference example (the \"office warriors\" intro).\n\n**A segment must contain multiple scenes and multiple shots, never 1.** \nA single shot held for the full 15 seconds reads as static and undermines the entire point of chaining clips together .\nFine pace is 3-4 scenes with 2-4 subshots per scene within a single 15 seconds segment of the video; \nFaster pace can do up to 12 subshots total.\n\n**Example Structure:**\n```\nSegmentA\n - Scene 1\n - <subshot>\n - <subshot>\n - Scene 2\n - <subshot>\n - <subshot>\n - <subshot>\n - <subshot>\n - Scene 3\n - <subshot>\n ...\n```\n\nOne scene in a single segment(video) could share multiple subshots (e.g., Scene in flat displayed in 2 shots: from kitchen and from bedroom, with 3 subshots each, displaying the actions happening from different angles and perspectives; Resulting in total 6 subshots).\nMore shots and more subshots per segment will make the scene more dynamic, while less shots produces slower pace videos;\nNever ship a segment with only one shot.\n\nStructure every segment prompt with these sections:\n\n- general exposition (shared block, verbatim)\n- environment (shared block, verbatim, plus anything specific to this beat)\n- characters look (shared block, verbatim for every character on screen)\n- shots: 3-7 numbered shots, each as `<shot type, angle>` followed by its description — shot type first, then what happens in this shot. Vary shot size and angle between consecutive shots (e.g. wide → medium → close-up, or medium → low-angle → over-the-shoulder) the same way the reference example escalates from wide establishing action into a tighter, more\n dramatic final beat.\n\nEach shot within the segment must still read as the next logical beat of that segment's action — building within the segment the same way segments build across the whole chain (Step 3.3). Don't repeat the same action from a different angle; each shot should advance the moment forward.\n\nShot-writing rules (apply inside every shot):\n\n- 2 sentences per each new shot/perspective. Pay attention to directions and\n composition.\n- Write verbatim: describe only what is literally on screen during the shot.\n Bring emotions to the characters through facial expressions and physical detail. Avoid figurative emotional descriptions like \"fire in her eyes\" — the model takes these literally and her eyes will be set on fire. Definition of emotions characters should product can be defined with emojis: model is clearly undestands it.\n- Always pay attention to: emotions on the face, the facial expressions, lens and shot type selection, camera movement if required, shots and scenes separation only if required.\n- Phrasing like \"Camera drifts behind and beside her, maintaining constant distance as she trudges through snow leaving footprints, sparse birch trees flanking the path.\" is the target register — it gives strong dynamic for handheld tracking-type shots.\n- One shot = one physically plausible camera move = one readable action with a beginning/middle/end.\n- Do not include timestamps inside the prompt text.\n- No voice-over or music unless the user asked for it.\n- Output in English (regardless of the conversation language), minimal markdown, no preambles or opinions — just the final prompt text per segment, delivered as clearly delimited blocks\n (`SEGMENT 1 (0:00-0:15)`, `SEGMENT 2 (0:15-0:30)`, …; the timing lives in the block label only, never inside the prompt).\n\n### 3.5 Reference image rules (`@Image` tags)\n\n- Do not add `@` references unless the user asked to or actually provided\n reference images.\n- Every referenced image already contains the required visual details, so never re-describe its visuals in text — only state *what* it is (what person, what object). E.g. if `@Image1` is an old woman with dark hair, writing \"young woman with red long hair @Image1\" will break the output; the proper use is just \"woman @Image1\".\n- Usually a single reference image is provided (a product or a person); use it as `@Image1` unless the user assigns roles differently.\n- Use `@CharacterName`, `@LocationName`, `@PropName` element tags for named entities. Preserve identity, outfit, proportions, location geography, prop geometry, and color palette everywhere a tag appears.\n- Keep every tag **identical, word-for-word, across every segment prompt**. Tag consistency is the main mechanism holding identity, wardrobe, and location together across separate generations.\n\n### 3.6 Per-segment craft template\n\nFor each segment, define these layers explicitly (skip a layer only when it's genuinely irrelevant to the beat):\n\n- **camera** — mount, camera height, movement, operator language, parallax, occlusion, screen direction.\n- **optics** — focal length, lens family, aperture/T-stop, filtration, focus behavior, bokeh, flare, falloff.\n- **lighting** — motivated key/fill/back/rim/practicals, modifiers, grip tools, contrast ratio, falloff, color temperature, negative fill or bounce.\n- **constraints** — close every segment prompt with: no scene change, no extra characters, no fake text/logos, no distorted hands, no melting props, no plastic skin, no impossible movement.\n\n### 3.7 Professional vocabulary\n\nDraw camera, lens, lighting, and texture wording from these blocks — they are the register Seedance responds to best:\n\n- **camera packages**: large-format digital cinema body, Super 35 digital cinema body, Super 16 inspired digital capture, compact documentary cinema body, bodycam simulation, dashcam simulation, consumer camcorder simulation, motion-control tabletop rig, vehicle suction mount, Technocrane, Steadicam, gimbal, shoulder rig, locked-off sticks, fluid-head tripod, slider, low dolly, hostess tray car mount, pursuit vehicle rig.\n- **shot sizes and angles**: establishing wide, medium-wide, medium close-up, close profile, extreme close-up, over-the-shoulder, POV, high corner surveillance angle, low bumper angle, tabletop macro height, waist-level western angle, shoulder-level vérité, eye-level neutral, slight low-angle power imbalance, symmetrical institutional wide, long-lens observation.\n- **movement terms**: slow push-in, lateral dolly, slider creep, tracking shot, crab move, locked-off hold, whip settle, pedestal rise, crane drop, Steadicam drift, gimbal walk-through, handheld shoulder bounce, body-mounted vibration, PTZ surveillance movement, motion-control repeatability, reactive reframing, beat-synced push, glacial long take.\n- **lens and focus terms**: anamorphic prime, spherical prime, vintage glass, macro lens, telephoto compression, rectilinear wide angle, oval bokeh, field curvature, edge falloff, barrel distortion, focus breathing, rack focus, deep focus, zone focus, close minimum focus, split attention between foreground and background, natural focus recovery, soft corners, halation around practicals, controlled flare, low-con diffusion.\n- **lighting units and sources**: tungsten practical, sodium vapor streetlamp, fluorescent tube, LED tube, moving head, strobe, neon sign, CRT glow, console bounce, headlight, flashlight, headlamp, candle cluster, fireplace ember, moon source, overcast sky key, window key, book light, softbox strip, octa key, hard fresnel-like source, overhead fluorescent grid, table lamp, porch light.\n- **gaffer and grip terms**: key light, fill light, backlight, rim light, kicker, edge light, negative fill, black solids, duvetyne, floppy flag, cutter, topper, egg crate, grid cloth, silk, book light, bounce muslin, ultrabounce, bead board, black wrap, snoot, cookie / cucoloris, DMX cue, practical dimmer, wet-down, haze, rain bars, atmosphere, interactive light.\n- **contrast ratio examples**: 1.5:1 polished commercial fill, 2:1 clean interview or comedy, 3:1 soft dramatic modeling, 4:1 prestige drama, 6:1\n noir or thriller, 8:1 horror or night exterior, 12:1 survival night or\n emergency realism, 20:1 club/strobe silhouette.\n- **color and texture terms**: cyan shadows, amber highlights, sodium vapor amber, dirty green fluorescent, blue-hour ambience, warm tungsten, moonlit silver, cream highlights, graphite blacks, lifted blacks, protected highlights, soft highlight rolloff, subtle film grain, gate weave, VHS chroma smear, compression artifacts, rain speculars, dust in beams, wet asphalt reflections, skin pores, halation, bloom, motion blur, high ISO noise, controlled saturation.\n- **AI video constraints** (bake into every segment's closing constraints):\n one action only, no new characters, no sudden scene change, no fake readable text, no random logos, no plastic skin, no extra fingers, no duplicate faces, no warped architecture, no melting props, no impossible camera move, no unmotivated orbit, no digital zoom, preserve identity, preserve wardrobe, preserve prop geometry, preserve screen direction, physically plausible movement.\n\n### 3.8 Optional visual continuity technique\n\nIf tag consistency alone isn't tight enough for the user's needs: after a segment finishes generating, its last frame can be pulled and added as an extra image reference for the next segment's `fileInputs`, so the following clip visually starts from where the previous one ended. Only offer this when the generated clip is actually reachable to download from the sandbox; if it isn't, fall back to plain tag-based continuity and don't block progress on it.\n\n## Step 4 — Generate in batches of up to 3\n\nNever queue more than 3 segments at once, even when `segment_count` is larger.\n\n1. Follow the same Nim workflow as `nim-generate` / `nim-b-roll-seedance`:\n `models_explore` (`action: \"recommend\"`, `type: \"video\"`, `input: \"image\"` if references exist) → `action: \"get\"` on the chosen model to read the live `generationContract` → `media_upload` any reference images once and reuse the resulting file URLs across every segment that needs them → `generate_video` per segment with `mediaLength: 15000` and whatever aspect ratio/resolution fits the target platform.\n2. Submit the current batch's `generate_video` calls (up to 3), then poll `get_generation_status` for each until `finished` / `failed` / `cancelled`. A single 15s Seedance generation usually takes 4-6 minutes; a batch of 3 can take a while — poll sparingly (confirm each job started, then check every 60-90s) rather than narrating every `running` result.\n3. Deliver the real media URL for each finished clip in the batch. Never invent a link, and never describe a queued or running job as done.\n\n## Step 5 — Check in after every batch\n\nAfter delivering a batch — whether it's 1, 2, or 3 clips — stop and ask the user before touching the next batch:\n\n- continue with the next batch, following the story onward, or\n- fix something in the clips just generated, or\n- stop here (fine even if `segment_count` isn't fully generated yet).\n\nExample (ru):\n\n> Готовы клипы 1–3 из {segment_count}. Продолжаем дальше по сюжету, что-то\n> правим, или на этом остановимся?\n\nIf the user asks for a fix, only touch the affected segment(s): rewrite that segment's prompt, regenerate just that one, and keep the rest of the chain as it is. If they say continue, repeat Step 4 for the next up-to-3 segments,\ncarrying the same shared exposition, characters, and location tags forward. Repeat until either all segments are generated or the user says to stop.\n\n## Step 6 — Hand off stitching to the user (ffmpeg, not server-side)\n\nOnce the user is happy with the generated clips — whether that's all of them or a subset they're satisfied with — don't stitch them together here. Give the user the clips in order plus a ready-to-run local command.\n\nDefault, when every clip came from the same Nim model/settings (same codec and parameters — the common case):\n\n```bash\n# 1) list the clips in order, one per line\ncat > clips.txt << 'EOF'\nfile 'segment_1.mp4'\nfile 'segment_2.mp4'\nfile 'segment_3.mp4'\nEOF\n\n# 2) concatenate without re-encoding\nffmpeg -f concat -safe 0 -i clips.txt -c copy final_video.mp4\n```\n\nTell the user to download each clip first, keep the filenames in the right order, and run one of the two commands locally (or use any GUI video editor if they'd rather not use a terminal). Mention this once, plainly — don't turn it into a full tutorial unless they ask for more detail.\n\n## UX rules\n\n1. Be concise: report finished segments and the next checkpoint question, not tool plumbing or raw JSON/prompt text.\n2. Reply in the user's language; keep technical values (`9:16`, `720p`, `mediaLength`, `@CharacterName`) as-is. Segment prompts themselves are always in English per 3.3.\n3. One question at a time. The two required checkpoints are: (a) agreeing to the segmented approach in Step 1, and (b) continue / fix / stop after every batch in Step 5. Everything else uses sane defaults without asking.\n4. Never claim more than 3 segments generated at once, and never call a batch done while any of its jobs are still `running` or `queued`.\n5. Never stitch clips together or promise a merged file from this side — the deliverable is the ordered clips plus the ffmpeg command from Step 6.\n \n\n\n------------\n## Example INPUT\n(ONE COMPOSED SEGMENT COULD FOLLOW THIS LOGIC)\n\n```\nSCENE: Four characters appear one by one on a bold red Anime-style background — each in a martial arts pose with their \"weapon\": Accounting with a calculator raised like a sword, HR with a clipboard, Sales with a phone, Marketing with a laptop. Background symbols/glyphs like in the original (can use custom versions). Characters in office clothes.\n\nI'll provide references to the characters, so point it like that:\n\n@Image1 - Accounting\n@Image2 - HR\n@Image3 - Sales\n@Image4 - Marketing\n```\n\n## Example OUTPUT (for one segment) reflecting this user input:\n\n```\n# GENERAL EXPOSITION\n\nAnime intro. Four office warriors showcased individually. Bold red gradient background with ancient-looking departmental glyphs radiating golden light. Each character demonstrates their elemental office power through explosive martial arts sequences. High-energy anime choreography with dramatic camera angles.\n\n# ENVIRONMENT\n\nDeep crimson-to-scarlet gradient background fills entire frame. Floating golden glyphs orbit in slow rotation: calculator symbols, clipboard icons, phone signals, laptop screens rendered in ancient runic style with subtle particle glow. Atmospheric dust motes catch backlight. Ground plane suggested by subtle shadow beneath each character.\n\n# CHARACTERS LOOK\n\n@Image1 - Accounting warrior in navy business attire, glasses, determined expression, calculator held overhead like sacred weapon\n@Image2 - HR defender in light blue shirt and khakis, clipboard gripped firmly, stance protective and grounded\n@Image3 - Sales champion in teal blazer and dark pants, phone wielded with precision, athletic confidence\n@Image4 - Marketing strategist in coral hoodie and cargo pants, laptop open displaying glowing screen, eager intensity\n\n---\n\n## SHOT 1: ACCOUNTING INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image1 materializes from golden particle burst center-frame. She executes hard karate forward stance, left leg bent, right leg extended back, calculator raised overhead with both hands like sword preparing downward strike. Papers explode upward from ground impact, swirling in vortex around her legs. Calculator screen flashes with rapid number sequences casting golden light on her face.\n\n<medium shot, slight low angle>\n\n@Image1 pivots into horse stance, calculator now horizontal at chest level, thumbs hammering keys in lightning-fast jujitsu hand strikes. Each keypress generates visible shockwave ripples in air. Receipts and ledger pages materialize and orbit her torso. Her glasses reflect scrolling numbers. Sharp exhale, focused intensity.\n\n<close-up, dramatic low angle>\n\n@Image1 executes overhead axe-kick, right leg arcing high while calculator remains gripped in left hand. As foot descends, golden energy trail follows arc. Impact generates expanding ring of numerical symbols and percentage signs exploding outward. Her expression fierce, hair whipping from force. Background glyphs pulse brighter.\n\n---\n\n## SHOT 2: HR INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image2 emerges from blue-tinted energy wave, immediately dropping into deep defensive stance, clipboard held horizontal like shield before chest. Flying documents—policy papers, forms, memos—swirl defensively around him forming protective barrier. His planted feet create small dust clouds. Calm, unmovable presence.\n\n<medium shot, shoulder-level tracking right>\n\n@Image2 performs wide sweeping arc with clipboard, tai chi-inspired circular motion from left to right. Motion trail of blue energy follows clipboard edge. Papers caught in wake organize themselves into neat floating stacks. He transitions smoothly into one-legged crane stance, clipboard now vertical beside head. Glasses catch light, expression serene but alert.\n\n<medium-wide shot, slight high angle>\n\n@Image2 lunges forward into deep front stance, thrusting clipboard outward like spear thrust. Impact point generates expanding blue force field that deflects incoming chaos—crumpled papers bounce off invisible barrier. His back leg locked straight, front knee bent ninety degrees. Exhale visible as slight mist. Authority and protection embodied.\n\n---\n\n## SHOT 3: SALES INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image3 bursts onto screen from left with explosive orange energy, immediately executing flying knee strike while holding phone aloft. Mid-air rotation, curly hair trailing motion. Phone screen blazes with white light casting dramatic rim on her silhouette. Yellow sticky notes and red tape ribbons spiral chaotically in her wake.\n\n<medium shot, dynamic tilted angle>\n\n@Image3 lands in wide power stance, immediately whipping phone in horizontal slash from right to left. Movement creates arc of electric-blue signal waves. She follows through with spinning back-fist using free hand. Sticky-note gremlins materialize and get blown away by force of strike. Her expression fierce joy, teeth showing in competitive grin.\n\n<close-up, low angle, slight push-in>\n\n@Image3 drops into breakdancing-style floor sweep, phone still gripped, spinning on ball of foot while free arm extended. Rotation generates tornado of business cards and colorful price tags swirling upward around her body. Phone screen trails light painting spiral in air. She rises from spin into victorious fist-pump, phone held high, triumphant shout.\n\n---\n\n## SHOT 4: MARKETING INTRODUCTION\n<wide shot, eye-level, locked-off>\n\n@Image4 materializes from teal-and-coral particle storm, laptop already open in hands. She executes high sidekick while maintaining laptop horizontal—screen faces camera, displaying rapidly changing graphs and charts glowing bright. Kick generates upward burst of colorful data visualization particles—pie charts, bar graphs, icons—exploding toward top of frame.\n\n<medium shot, eye-level tracking left>\n\n@Image4 transitions into low snake-style stance, laptop now held vertically like shield at angle. She performs rapid three-punch combination with free hand—jab, cross, uppercut—each punch releasing wave of holographic interface elements. Her teal hair bounces with each strike. Cargo pant pockets release floating marker pens. Expression determined focus, slight smile.\n\n<medium-wide shot, slight low angle>\n\n@Image4 springs into butterfly kick—legs scissoring through air in spectacular athletic display—while laptop remains perfectly level in her grip, defying physics. Screen casts rainbow gradient light across her spinning form. She lands in hero pose: one knee down, other leg extended, laptop displayed proudly forward showing triumphant \"GOAL ACHIEVED!\" checkmark. Green and orange energy sparkles settle around her like victorious confetti. Thumbs-up with free hand.\n\n---\n\n# BACKGROUND GLYPHS SPECIFICATION\n\nAccounting zone: Golden calculator keys, percentage symbols, balance scale icons, numerical sequences in circular mandala formation\nHR zone: Blue clipboard checkmarks, policy shield emblems, handshake symbols, protective barrier patterns\nSales zone: Orange-yellow phone signal bars, lightning bolt close icons, upward arrow graphs, target crosshairs\nMarketing zone: Teal-coral laptop screen frames, pie chart segments, lightbulb ideas, campaign flag banners\n\nAll glyphs rendered in ancient runic aesthetic with subtle animation—gentle rotation, pulsing glow, particle emission—maintaining constant presence throughout all shots.\n```"
}SHA-256 of public snapshot: 8fd0f8fe7d3e7af8ab437af4edd45c60fe400bdea400ca61fbc35c10da40720c