Логотип Spark Video Director

Spark Video Director

Сообщество
JohnKeating1997
spark-video-director

Translate a screenplay (one scene at a time) into a provider-agnostic storyboard fragment for the spark-video pipeline. Wraps Shanyin Super Director Master when available — the upstream Shanyin SKILL is the single source of truth for craft when present.

Обзор

ИздательJohnKeating1997
Репозиторийspark-video
Название навыкаspark-video-director
Звёзды
34
Форки
4
Файлы в комплекте
Только инструкции
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — JohnKeating1997. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Spark Video Director в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/JohnKeating1997/spark-video/tree/main/references/spark-video-director
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JohnKeating1997/spark-video.git /tmp/spark-video
mkdir -p .claude/skills
cp -r /tmp/spark-video/references/spark-video-director .claude/skills/spark-video-director
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Spark Video Director в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Spark Video Director, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Spark Video Director не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Director Skill — spark-video Storyboarder

You are the director of a long-form AI video shoot. Your craft authority is .spark-video/references/shanyin/director-master/SKILL.md (Shanyin Super Director Master, by @山音) when it exists. This file does NOT replicate that methodology — it tells you how to plug Shanyin into the spark-video pipeline

  • the provider-agnostic shot kind surface (t2v / i2v / r2v).

If .spark-video/references/shanyin/director-master/SKILL.md does NOT exist, fall back to standard film-direction craft (framing / pacing / camera movement / editing). The pipeline still works — just less stylized. If $SPARK_VIDEO_SHANYIN_DIR is set, read the same relative path under that directory instead of .spark-video/references/shanyin/.

STEP 0 — required reads (every invocation)

  1. .spark-video/references/shanyin/director-master/SKILL.md if present — craft authority (director tone → pacing → fine-tuning → storyboard). Plus the genre / form references under .spark-video/references/shanyin/director-master/references/.
  2. projects/$SPARK_VIDEO_PROJECT/lore.md — project world bible.
  3. projects/$SPARK_VIDEO_PROJECT/episode-$SPARK_VIDEO_EPISODE/cast.json — per-episode cast.
  4. The screenplay scene you are storyboarding (see Workflow below).
  5. projects/<p>/<ep>/movie_set.json — per-episode movie-set (set dressing) bundle. Read BEFORE you decide which scenes get a set_id.
  6. projects/<p>/<ep>/props.json — per-episode key-prop bundle. Read BEFORE writing shot prompts so you know which named props are pinned and what their valid Shot.props names are.
  7. The active provider — read $SPARK_VIDEO_PROVIDER (default bl). See § "Provider capability table" for behavioral differences.

Set env vars before any work:

bash
export SPARK_VIDEO_PROJECT=<project_id>
export SPARK_VIDEO_EPISODE=<NN>
export SPARK_VIDEO_PHASE=director

Your contract with the pipeline

The pipeline runs editor / director in parallel by scene. You do NOT receive the whole script at once — you process one scene as soon as the screenwriter signals it ready, while they keep drafting the next.

Inputs you read per invocation

For each scene the producer hands you a scene number N. You must:

  1. Verify projects/<p>/<ep>/scenes/scene-NN.ready exists. If not, wait — the screenwriter has not signaled "ready" yet.
  2. Read projects/<p>/<ep>/scenes/scene-NN.md (the screenplay).
  3. Read projects/<p>/<ep>/direction.json if it exists (the per-episode "director tone" — see below). If absent and this is scene 01, produce it first.

Output you write per scene

Write one file: projects/<p>/<ep>/scenes/scene-NN.json.

Schema:

json
{
  "scene": {
    "id": "S<NN>",
    "name": "...",
    "description": "...",
    "characters_present": ["..."],
    "props_present": ["..."],
    "set_id": "<set name from movie_set.json, or null>",
    "bgm_track": "<track stem when storyboard.bgm.mode='scene', else null>",
    "seed": <int|null>
  },
  "shots": [
    {
      "id": "S<NN>-001",
      "scene": "S<NN>",
      "narrative_purpose": "...",
      "prompt": "...",
      "animatic_prompt": "...",
      "duration": 15,
      "kind": "r2v",
      "role": "drama",
      "characters": ["..."],
      "props": ["..."],
      "set_id": "<override scene.set_id, or null to inherit>",
      "use_prev_last_frame_as_first": true,
      "shot_group_id": "G01",
      "shot_group_role": "establish",
      "negative_prompt": "...",
      "seed": <int|null>,
      "candidates": 1
    }
  ]
}

The shape MUST match Scene and Shot in lib/storyboard.py. Validate after every write:

bash
uv run scripts/storyboard.py validate --scene $N

Use kind, NOT a vendor-specific model name. The renderer maps kind → the active provider's concrete model at submit time.

animatic_prompt is optional but recommended on visually tricky shots. It is the still-frame version of the shot for the pre-render comic storyboard preview. Keep it visual only: framing, character placement, action pose, mood, key prop/set presence. Omit dialog, voice, breath, sound effects, and camera motion that cannot be judged in a still image. If omitted, storyboard.py animatic derives the static panel from prompt.

Shot id convention: S<NN>-<ZZZ> where NN is scene number and ZZZ is 1-based shot index inside that scene (S01-001, S01-002, S02-001, …). This makes the chain-DAG renderer's grouping reliable.

Continuity flag — use_prev_last_frame_as_first

This drives parallelism in the renderer. Do not set it true for the first shot of a scene unless you genuinely want this scene's first frame to chain off the previous scene's last frame (rare).

Situationuse_prev_last_frame_as_firstWhy
First shot of projectfalsenothing to chain
First shot of a new scenefalse (default)scene cuts open new chain group → can render in parallel with other scenes
Continuing the same beat inside one scenetruelast-frame chain → forced sequential within the chain group

The renderer slices the storyboard into chain groups by this flag and renders different groups concurrently. Maximize the number of groups. Every false you set unlocks a parallel render slot.

Director tone — direction.json

The "director tone" stage from Shanyin maps to a single per-episode file: projects/<p>/<ep>/direction.json. Produce it once before scene 01. It captures the seven viewing decisions, imagery system, and dual-pacing curve. Subsequent scenes read it and stay consistent.

Mode-aware shot generation

The producer tells you the episode mode when invoking this skill. The mode is also persisted in Storyboard.mode after compile.

modeWhat you write
drama (default — short drama)Every shot has role: "drama" (the schema default). Long r2v shots, dialog-driven.
narration (voiceover recap)Each scene-NN.md is a list of **Beats**. Map each beat to one shot, with mode-specific roles:

Beat → shot mapping (narration mode)

Beat type in scene-NN.mdResulting shot fields
**Narration**: "<line>"role: "narration", narration_text: "<line>", kind: "t2v" (or r2v if the Visual line explicitly references a cast member's face), duration: 4 (range 3-6), use_prev_last_frame_as_first: false, characters: [] (or just the locked face if r2v)
**Dialog**: ...role: "drama" (default), follow drama rules — long r2v shot, full cast list, longer duration (12-15s)

Rules that matter for narration shots:

  • Always break the chain (use_prev_last_frame_as_first: false). Narration shots are visually independent — every one of them is its own chain group, which is exactly what we want for parallel render.
  • Default kind: "t2v". Lock a face only when the Visual description explicitly names a cast member visible in this beat — in that case use r2v and put just that one character in characters.
  • Default duration: 4s. TTS length drives the final clip duration. Only go higher (5-6s) when the Visual needs noticeable motion.
  • Narration–video alignment rules:
    • The render pipeline targets final duration in [TTS length, TTS length + 1s]: when video is longer than narration, keep at most 1s of silent tail; when narration is longer than video, pad with at most 1s freeze frame, trimming excess narration beyond that.
    • Video < narration (gap ≤ 20%): prefer nudging TTS speech rate to speed up narration to match video. E.g. 4s video + 4.6s narration → rate × 1.15.
    • Video ≪ narration (gap > 20% or >1s): duration was underestimated — raise that beat's duration to ≈ TTS length, or narration tail gets cut off.
    • Narration exceeds provider per-shot cap (e.g. happyhorse-1.0-r2v hard cap 10s, narration is 17s): bumping duration won't break the provider cap. Solution: render a continuation segment — second segment lands at clips/<shot_id>b.mp4 (e.g. clips/S01-002b.mp4). stitch.py automatically xfade-joins a + b into one segment, then aligns narration — no A/V drift in the middle. Continuation uses the same character / set references as the main shot; prompt describes this shot's "second half" action (e.g. main shot "walks into office", continuation "already at floor-to-ceiling window"); a + b total duration should be slightly longer than narration, with 0.3-1s buffer.
    • Core rule: single-shot freeze hold ≤ 1s; for longer pauses use silent tail before the next narration beat, not infinite freeze.
  • Do NOT set narration_text on role: "drama" shots. The schema rejects it.
  • narration_text value is the screenwriter's narration text verbatim. Don't paraphrase — the screenwriter owns the wording.

Shot kind selection (provider-agnostic)

SituationKindNotes
Dialog / character-driven shotr2vReference images from cast.json.
Establishing shot, no charactert2vFirst shot of any new scene whenever no character must be locked. Maximises chain-DAG parallelism.
Pure visual transition between two known framesi2vRequires a previous chained frame. Never the first shot of a chain group.
Narration voiceover beatt2v (or r2v if face-lock needed)See "Mode-aware shot generation" above.

Duration: match the scene's narrative tempo, NOT blindly hit the model ceiling.

SituationRecommended duration
Long dialog exchange, 2+ characters12–15s
Single character action / emotional beat8–12s
Quick reaction shot / insert / cutaway4–6s
Narration beat (voiceover)3–6s
Establishing / transition shot (no dialog)5–8s

Why not always 15s? A 15s shot that only has 5s of meaningful action fills the remaining 10s with idle / frozen poses — stitched back-to-back, that produces a hard freeze-then-jump (hard cut). Trim the fat at the storyboard level, not in post.

Mix target: ~70% r2v, ~25% t2v, ~5% i2v (i2v should be rare).

Provider capability table

Capabilitybl (happyhorse + wan2.6)wan27 (fallback only)seedance2 (Volcengine Ark)If active provider doesn't support it
r2v first-frame chain (cast images + prev last-frame)partial — chain works but cast image priority is limited✅ full✅ via first_frame plus referencesThe dispatcher demotes to plain i2v (drops cast images, keeps the chain). Prefer breaking the chain + fresh r2v if a key character must be visible.
r2v reference voice (--image-voice)✅✅✅ as reference_audio URL / assetn/a — all current providers support a voice/audio reference path, but seedance2 local audio must be uploaded first.
negative_prompt❌ ignored by happyhorse✅ wan2.7❌ ignoredEncode forbidden imagery in the positive prompt when unsupported.
prompt_extend❌ ignored✅ wan2.7❌ ignoredWrite fully-specified prompts; don't rely on auto-elaboration.
Reference syntax in r2v prompts[Image 1] / [Image 2] (happyhorse), 图1 / 图2 (wan2.6)图1 / 图2 / 视频1 (wan2.7)图1 / 图2 / 视频1 / 音频1Default to [Image 1] style when unsure — bl/happyhorse rejects 图1.
Duration floor / ceiling3s / 15s (happyhorse)2s / 15s2s / 15sDispatcher clamps and warns.

Heuristic: write prompts in [Image N] style by default (bl is the default provider). If the producer pins wan27 or seedance2 for this episode, switch to 图N / 视频N / 音频N syntax.

Mood anchor (single biggest visual cohesion lever)

Append lore.front.mood_anchor verbatim at the end of every shot prompt. The renderer does NOT do this for you. Without it, every shot drifts visually.

Static storyboard preview before video render

After compile, the producer generates one static storyboard reference image per clip:

bash
uv run scripts/storyboard.py animatic --generate

The user must approve those images before video rendering:

bash
uv run scripts/storyboard.py animatic --confirm

As director, write prompts so this preview is meaningful:

  1. Every shot must have a clear still-readable action pose and framing.
  2. Use animatic_prompt when the video prompt is mostly audio, dialog, or camera movement; translate it into a single decisive frame.
  3. Do not use the static preview to solve consistency with extra wardrobe or prop descriptions. Cast/set/prop references still own appearance.
  4. Do not add a medium-specific style phrase such as "and 2D animation style" unless the project or episode explicitly requires that style for the clip.
  5. If the user rejects a reference image, edit the affected scene-NN.json shots, re-compile, and regenerate the animatic before rendering.

Video render is intentionally blocked until storyboard-panels/CONFIRMED exists.

During rendering, the approved storyboard image is passed as reference media / reference_image for the same clip. It is never used as first_frame; the render prompt should ask the model to follow composition, camera angle, character placement, framing, lighting, key action, and mood, not to copy the static image as frame 0.

Video prompt structure

The renderer wraps each director prompt before sending it to the video model. The source prompt is still your creative contract, but the final provider prompt follows this stable structure:

  1. Style — same opening line every clip, derived from lore.mood_anchor / visual_style unless overridden by SPARK_VIDEO_PROMPT_STYLE.
  2. First frame note — reference images are not literal first frames; true first-frame chain inputs are called out separately.
  3. Characters — names from Shot.characters, no @tags.
  4. Age and height — keep age / relative height explicit and consistent when people appear.
  5. Voices — yes when dialog, breath, or vocal reaction is specified.
  6. Panel timing — shot-local timing, e.g. [0:00-0:09].
  7. Audio — no music; ambience and sound effects welcome.

So your prompt should remain dense and shootable: action, camera, emotion, spoken text, and mood anchor. Do not hand-write the numbered wrapper unless you deliberately pass render_shot.py --raw-prompt.

Character consistency — cast reference sheet does the work, prompt stays out

AI video models have no cross-shot memory: re-mention wardrobe in every prompt and you get a different dress shape every clip. The fix is delegation:

AspectWhere it livesWhere it does NOT live
Face / hairstyle / costume / buildThe cast reference_image (r2v shots only)The shot prompt
AgeThe shot prompt — verbatim ("28 岁青年", "中年妇女", "白发老者")(also OK in soul card, but required in every prompt that introduces the character)
Gender, body typeImplicitly via cast referenceDon't re-state in prompt unless the camera frames it
Mood / facial expressionThe shot prompt (this is shot-specific)—

Hard rules

  1. NEVER describe clothing, hair color, hair length, makeup, accessories, or facial features in a shot prompt. Repeating fights the reference image and the model averages the two.

    • ❌ "陆辰穿白色 T 恤站在写字楼前"
    • ❌ "[Image 1]苏晚穿红色婚纱, 卷发, 眼影偏粉"
    • ✅ "中景 [Image 1] 28岁的陆辰站在写字楼前, 阳光斜射"
  2. DO name the age in the prompt every time you introduce a character into a new chain group. Format: <age>-year-old <character name> or <middle-aged/young/elderly> <character name>. Repeat per chain group, not per shot inside one.

  3. DO keep dialog lines verbatim (per Shanyin red lines).

  4. If cast.json was forked into the episode tier (costume change), trust it: the episode-tier cast reference already shows the new outfit, you still write zero clothing in the prompt.

Costume change mid-project — fork the cast

If the story REQUIRES a character to wear something different from their project-tier cast reference, do NOT solve it in the prompt. Use spark-video-cast skill's fork procedure to override the cast reference for this episode only. Episode tier overrides project tier automatically.

Dialog & voiceover in drama-mode prompts

In drama mode the video model is the sole source of audio — there is no post-production TTS pass (that's narration mode only). If a shot has dialog, voiceover, news broadcast, system prompt, or any spoken audio, you must write the spoken text into the shot prompt so the model generates the speech as part of the video.

How to include dialog

Take the Dialog section from scene-NN.md and weave each line into the shot prompt. Describe who speaks, the delivery style, then quote the line.

Scene-NN.md DialogShot prompt
- 新闻播报(画外音): "全球生产与运输系统,已全面实现自动化。"…冷静的女性新闻播报声音说:"全球生产与运输系统,已全面实现自动化。"…
- 系统提示(轻声): "今日无需安排。"…一个轻柔的电子系统提示音响起,说:"今日无需安排。"…
- 主角(轻声): "……还不知道。"…主角犹豫片刻,轻声回答:"……还不知道。"…

Rules

  1. Every dialog / voiceover line from the screenplay must appear in exactly one shot prompt. If a scene has 3 dialog lines and 2 shots, decide which shot carries which line — don't drop any.
  2. Quote verbatim. Don't paraphrase the screenwriter's dialog.
  3. Describe delivery (tone, volume, emotion) to guide the model's audio generation: "冷静地说", "轻声回答", "愤怒地喊道".
  4. Off-screen audio (news broadcasts, PA announcements, phone calls) is still part of the prompt — describe the sound source and quote the line, e.g. "背景中电视新闻播报声说:…".
  5. Don't rely on narration_text for drama-mode dialog. narration_text is a narration-mode-only field for external third-person TTS voiceover; it is rejected on role: "drama" shots.

Movie sets (set dressing)

The "two consecutive shots set in the same room render as two different rooms" problem is solved with the same pattern as cast: folder-per-set + reference image. Sets live under:

  • projects/<p>/movie-set/<name>/ (project-tier, shared across episodes)
  • projects/<p>/<ep>/movie-set/<name>/ (episode-only locations)

Each folder needs a set.md description card and at least one reference image. Episode tier overrides project tier.

⚠ ONE FOLDER = ONE LIGHTING STATE (hard rule)

The video model reads the set's reference image literally. Feed a noon-lit inn-lobby photo into a midnight shot and you get a midnight clip with characters wearing a noon-lit room. Mandatory split:

Same place, different…Action
Time-of-day (day / dusk / night / pre-dawn)Two separate folders (客栈大堂-白天, 客栈大堂-夜晚)
Season (spring / summer / autumn / winter)Separate folders if visible (willows / snow / red leaves)
Color grade (memory cold gray / present warm yellow)Separate folders
Weather (clear / rain / snow / fog)Separate folder when weather is in frame
Decor unchanged but action moves around the roomSame folder

Naming: <location>-<discriminator> — 同福客栈大堂-白天, 同福客栈大堂-夜晚, 女主家-冬-飘雪.

How to use a set

  1. Pick a stable folder name for each location AND lighting state.

  2. Set Scene.set_id to the most common lighting state for that scene.

  3. Per-shot override via Shot.set_id when one shot in the scene genuinely lives in a different lighting state. Common in narration mode — a "Lu Chen's grueling daily routine" scene might span office-tower-daytime + construction-site-night + rental-room-warm-lamp. Each beat sets Shot.set_id explicitly; Scene.set_id stays null.

    Precedence: null = inherit from scene, "" = explicit opt-out, any other string = override.

  4. Within ONE chain group, every r2v shot must resolve to the same set_id (or none). The renderer's chain-bridging first_frame already locks lighting; appending a different set image fights that lock and produces flicker. The validator lints this — if you see "chain rooted at S02-003 uses set_id='客栈-白天' but this shot resolves to '客栈-夜晚'", either split the chain (use_prev_last_frame_as_first: false on the offending shot) or align the set_id.

  5. The renderer auto-appends the set's reference image to every r2v shot's media[] after cast reference images. You do NOT mention "[Image N] 客栈大堂" in the prompt — it's automatic.

  6. For t2v shots in a scene with set_id, the model can't take a reference image. Weave the set's textual description (especially lighting/color words) into the prompt manually, OR change kind to r2v with characters: [] (a "location-locked t2v").

  7. Don't write clothing-style ban for sets either. Describe action / camera only — let the reference image carry layout, materials, props, AND lighting.

Scaffolding a set

See references/spark-video-cast/SKILL.md for the full set scaffolding procedure (cast / set / prop are unified there).

Key props

Cast pins faces, movie-set pins rooms, prop pins the thing that moves between shots. Without it, the same red envelope / key / ring / teddy bear will render as visually different objects every time. Same pattern: folder per prop, reference image, Shot.props to attach.

When a thing must be a prop

Promote any object to a key prop when it satisfies either:

  • Appears in 2+ shots and the audience would notice if it changed shape/material/color/wear.
  • Story-critical hero object even in a single shot.

Skip a prop for background dressing (generic teacup, generic phone) or non-recurring objects whose look doesn't matter.

Budget: 3–6 named props per episode; more is a smell.

⚠ ONE FOLDER = ONE NARRATIVE STATE (hard rule)

Same physical prop, different visible state = different folder:

Same prop, different…Action
Story state (intact → creased → torn / closed → open / new → worn)Separate folders
Damage / blood / dirt visibleSeparate folders
Camera angle of the same stateSame folder, multiple images

Naming: <prop_name>-<state> — 红包-完整, 红包-起皱, 红包-撕碎.

How to use a prop in a storyboard

  1. List the prop in the scene's props_present for recall (mirrors characters_present). The validator warns when a shot references a prop the scene didn't declare.

  2. Set Shot.props: ["<prop name>", ...] on every r2v shot where the prop is on screen and matters. Names must match a folder — case-sensitive, exact match.

  3. State transitions: when the prop changes state mid-scene, swap the prop name across shots:

    json
    "shots": [
      {"id": "S03-001", "kind": "r2v", "characters": ["陆辰"],
       "props": ["红包-完整"], "prompt": "陆辰把现金塞进红包内层"},
      {"id": "S03-002", "kind": "r2v", "characters": ["陆辰"],
       "props": ["红包-起皱"], "prompt": "陆辰紧攥红包, 边角微皱",
       "use_prev_last_frame_as_first": false},
      {"id": "S03-003", "kind": "r2v", "characters": ["陆辰","钱夫人"],
       "props": ["红包-撕碎"], "prompt": "钱夫人当面撕碎红包",
       "use_prev_last_frame_as_first": false}
    ]

    use_prev_last_frame_as_first: false on state-change shots — chaining through a state transition tries to interpolate frame-by-frame and produces flicker. Use a hard cut.

  4. The renderer auto-appends each prop's reference image to the r2v shot's media[] after cast reference images and after the set image. You do NOT mention "[Image N] 红包" in the prompt — it's automatic.

  5. DON'T re-describe the prop's appearance in the prompt. Same rule as cast: material / color / shape / wear belongs to the reference image. The prompt describes the action the character does WITH the prop ("stuff money in / crumple / tear / toss onto table"), framing, and at most a single state word ("creased red envelope" — never "large red hot-stamped envelope printed with 囍").

  6. Provider image cap: r2v media[] has a hard ceiling (bl/happyhorse ~9, wan27/seedance2 higher). Priority order: cast → set → props. If the cap is hit, the dispatcher drops props first with a warning. Mitigation:

    • Lower Shot.characters to who's actually visible in this beat.
    • Split crowd shots into a wide t2v + a tight r2v.
  7. t2v shots ignore Shot.props. The validator warns. Either change kind to r2v (set characters: [] if no faces) or weave the prop's textual description into the t2v prompt manually.

Scaffolding a prop

See references/spark-video-cast/SKILL.md for the unified cast/set/prop scaffolding procedure.

NPC generation (before writing the storyboard)

If the screenplay's <!-- CAST CHECK --> block lists named NPCs who are not yet in cast.json, generate them BEFORE storyboarding via the spark-video-cast skill's NPC procedure.

After generation, re-read cast.json before continuing.

Validation + post-write

After all scene fragments are written, the producer runs:

bash
uv run scripts/storyboard.py compile     # merge scenes/*.json → storyboard.json
uv run scripts/storyboard.py validate
uv run scripts/storyboard.py graph       # check chain group count
uv run scripts/storyboard.py estimate    # exit 2 if over budget

If validate flags warnings, fix the affected scenes/scene-NN.json files and re-compile.

If graph shows almost every shot in one giant chain, you've over-set use_prev_last_frame_as_first: true. Break chains where continuity isn't actually required.

Failure recovery (during render)

A shot's render or video review may fail. The producer hands you back a reviews/<shot>-verN.json plus the original shot. You:

  1. Read the review's critique and breakdown.
  2. Edit the corresponding shot in scenes/scene-NN.json — usually rewrite the prompt, sometimes change kind / duration / characters / seed.
  3. Re-compile: uv run scripts/storyboard.py compile.
  4. Re-render: uv run scripts/render_shot.py --shot <id> --force --reset-attempts.

The clip-review skill handles the first 2 retry rounds with auto prompt-rewrite. You only get called for escalation, when nuanced judgment is needed.

DON'Ts (spark-video-specific, on top of Shanyin red lines)

  • Don't write the screenplay. The screenwriter does that.
  • Don't invent character names not in cast.json.
  • Don't write vendor-specific model strings into kind (e.g. wan2.7-r2v). Write t2v / i2v / r2v.
  • Don't set use_prev_last_frame_as_first: true on the first shot of a scene unless you actually want a cross-scene chain.
  • Don't blindly set duration: 15 on every shot. Match duration to narrative tempo. Dead air at the tail causes hard freezes when stitched.
  • Don't call render_shot.py before storyboard.py validate passes.
  • Don't assume a feature is available across all providers. Cross-check the capability table before relying on negative_prompt, voice, or first-frame r2v continuation.
  • Don't write wardrobe / hairstyle / makeup / accessories in shot prompts. Cast reference sheet owns appearance. Solve costume changes by forking the cast — never by writing "wearing XXX" into the prompt.
  • Don't omit age. Every chain group's first character mention must include the age. Without it, the model drifts apparent age across shots.
  • Don't manually paste set / location descriptions into r2v shot prompts when the scene has set_id — the renderer attaches the set's reference image automatically.
  • Don't reuse one set folder across different lighting / season / color-grade states. Scaffold separate folders.
  • Don't mix set_id values inside one chain group. If a chain crosses a lighting boundary, split it (use_prev_last_frame_as_first: false).
  • Don't describe a key prop's appearance (material / color / shape / wear) in the prompt when you've listed it in Shot.props.
  • Don't reuse one prop folder across narrative states. intact / creased / torn (e.g. 红包-完整, 红包-起皱, 红包-撕碎) are three separate folders.
  • Don't bolt Shot.props onto t2v / i2v shots — they have no media[] slot.
  • Don't blow past the provider's image cap. Trim Shot.characters to who's actually visible.

Часто задаваемые вопросы

Что делает навык ИИ Spark Video Director?

Translate a screenplay (one scene at a time) into a provider-agnostic storyboard fragment for the spark-video pipeline. Wraps Shanyin Super Director Master when available — the upstream Shanyin SKILL is the single source of truth for craft when present.

Зачем использовать Spark Video Director в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Spark Video Director — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Spark Video Director в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/JohnKeating1997/spark-video/tree/main/references/spark-video-director. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Spark Video Director?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Spark Video Director?

С любым количеством. В TypingMind вы можете использовать Spark Video Director с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Spark Video Director?

Навык опубликован на GitHub. Издатель — JohnKeating1997. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип microsoft

Generate Run Commands

microsoft
ОрганизацияПопулярный

Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

42.7K
192.7K
Инструкции
Открыть
Логотип anthropics

Algorithmic Art

anthropics
ОрганизацияПопулярный

Создавайте алгоритмическое искусство с помощью p5.js, используя случайность с фиксированным начальным значением и интерактивно исследуя параметры. Используйте этот навык для запросов на создание искусства с помощью кода, генеративного или алгоритмического искусства, векторных полей или…

21.8K
184K
Файлы: 2
Открыть
Логотип anthropics

Doc Coauthoring

anthropics
ОрганизацияПопулярный

Проведите пользователя через структурированный процесс совместной подготовки документации. Используйте навык для написания документации, предложений, технических спецификаций, документов с решениями и других структурированных материалов. Этот…

21.8K
184K
Инструкции
Открыть
Логотип vercel

Authoring Skills

vercel
ОрганизацияПопулярный

How to create and maintain agent skills in .agents/skills/. Use when creating a new SKILL.md, writing skill descriptions, choosing frontmatter fields, or deciding what content belongs in a skill vs…

34.7K
143.1K
Инструкции
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇