/dw:script-to-videofrom dw
Decomposes a script or prose into a shot list for video generation on a dw MCP server, handling cast, locations, cinematography, and cost validation before rendering.
Ships in dw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turning a script into shots is the one piece no other skill covers.
Everything downstream of a shot list exists: dw:minimax-h3
and dw:ltx-2.5 pick a template per shot's shape, h3-prompt-writing
writes the structured prompt, dw:series-episodes keeps a cast consistent,
and templates/assemble-and-score cuts and scores the result. This skill
is the decision tree that connects them, in order. It adds nothing to the
engine; "Not in scope" lists its refusals.
This skill is written for dw 0.23.1; get_server_info's plugin says whether that is current.
get_server_info for device and workspace, as every dw skill starts.
Read the script as prose and dialogue; this skill does not parse screenplay
formats.
The unit that matters is shots, not lines or scenes: one scene may be
several shots, and a dw:minimax-h3 shot runs 5.17 to 14.4 seconds (the
17*n+5 frame grid, 124 to 345 frames). For each shot, name it, note
who appears, what happens, and how long it runs.
Fill in this shape before writing any prompt:
Cast: per character, a voice description, sex, and the reference
asset (asset:cast/<name>; step 3).
Locations: each place a shot happens, named once and reused, with its place card (step 3).
Per shot: the above, plus opening_state (what is on screen, who
stands where, what is held, at frame one) and ending_state (the same at
the last frame). A shot's opening_state is the ending_state of its
source, so the cut between them is written down rather than hoped for.
Per shot, beat (one visible state a single frame can show) and
must_not (a short list of physically or story-impossible things to
rule out: extra limbs, text in frame, the reference portrait itself).
references/beat-review.md has the rules for writing one.
Per shot, optional join: continue (the default; its source is the
shot before), cut (opens fresh), cutaway (an insert: the shot after it
takes the shot before it as source) or lead_in (its last frame is the
next shot's first). Read references/joins.md before rendering a
cutaway or lead_in.
Per shot, every time shot_size, move, lens and light (ids from
cinematography, never invented) and duration (seconds); null leaves
an axis to the model.
Save the list as <project>/shots, a compiled <project>/shot-NN per
shot, and a scene longer than one clip in <project>/scenes
(long-form): references/shot-document.md. Three or more jobs: open a
request from the list now (references/request.md).
A speaking subject held to a narration longer than one clip is not a shot list: use long-form's narrated take (templates/narration-retime, then templates/minimax/narrated-take).
Whatever the user supplied is locked; copy it, don't improve it. A field they left blank stays blank - ask, or mark it unspecified - and you invent no character, place or line to fill it.
Read dw:series-episodes step 0 before drawing anything: every character
appearing in more than one shot gets a portrait (and voice clip, if they
speak) drawn once and keep_output'd as asset:cast/<name>, referenced
from every later shot with from_file, never from_previous_result. A
one-scene script with no recurring cast can skip this. Nothing validates that a
character looks the same across separate shots, so do it deliberately.
Framing guidance, not a measured rule (story-forge's lesson 5, unprobed on dw): a face small in a wide shot drifts most, so frame a recurring character large.
Cast each recurring set too: a place card, a still of the set without the cast (its audience
stays) kept
as asset:places/<set> and passed after the people (PRELIMINARY, #1581):
minimax-h3/references/cuts.md, A place card holds the set.
Pass shot prompts as prompt:<project>/shot-NN references, not text;
they resolve in nested arguments.
Silent action or establishing shots go through a dw:ltx-2.5 template
(templates/ltx2/text-to-video, templates/ltx2/image-to-video, or a
chained one for a longer take); one with no people in a carded set can
take dialogue-short with the card alone (same section). Anything with dialogue, a held voice, or a
scored montage goes through dw:minimax-h3's templates/minimax/dialogue-short
or templates/minimax/music-video, prompted with h3-prompt-writing's
structure (subject_definitions, retention_analysis,
detailed_description, overall_soundscape, non_diegetic_music) rather
than the raw script line, checking list_prompts first for a working
example. A shot that calls for generating several
candidates and keeping the sharpest one deterministically, with no agent
judgment call at run time, goes through templates/best-of-n-to-video
instead of a single draw. Read the chosen family's own skill before writing
a single prompt - the hard rules (frame count, canvas, reference limits)
live there, not here.
Render two to four representative shots first (a dialogue shot, an action
shot, the hardest cut) and judge them before the full batch.
For H3 shots, dw:minimax-h3's quality-and-speed reference (Ramp) has the draft and final tiers and what to approve at each.
validate_workflow against the chosen template with the assembled shots
argument, read plan.estimate and plan.downloads_required, and state the
cost before calling run_workflow. Only pass acknowledged_cost once a
human (or an explicit pre-authorization) has signed off - a real gate,
which holds even when running unattended.
Render in source order, not story order: a lead_in's target first, and a
re-roll quotes every shot taken off it (references/joins.md).
Pass note on each run_workflow naming the shot and what the run tests,
and its item's request. Accept the take you keep in the request with
set_request (set_note it only when there is no request).
Wait with wait_for_job, asking for the plan's estimate plus a margin as
timeout_seconds; timeout_capped says the server's cap cut it short, and
a still_running reply means call again. If the call dies client-side ("timed out") first, call again with timeout_seconds 60 and loop; a running job lists finished_steps. After the job completes, read get_job_events / get_gallery_metadata for
the warnings the engine already emits (audio_no_headroom, audio_clipped,
an elision diagnostic) and rerun_job(new_seed=True) a shot that reads
wrong, reading what the engine already surfaces. On an H3 shot with dialogue a new seed also redraws the voice: in
a lem probe (#610) three seeds of one line gave a different speaker each
time without an audio reference, and only a narrower spread with one
(voice / voice-timbre-reference). So when the voice is right and the
picture is wrong, change the prompt and keep the seed; reach for
new_seed only when the voice is pinned by a reference or does not matter.
After a chained take (templates/ltx2/chained-segments or
templates/minimax/chained-segments), call
assess_output(name, probe="analyze_seams"): seam n is the join into
segment n+1 (the chain names its shots segment N). A seam_frame_jump
is severity info and also fires on deliberate cuts (#466), so look at
get_output_frames(name, seams=[n]) before spending anything. A chain
re-rolls whole: rerun_job(new_seed=True) redraws every segment, so quote
the full chain's cost and get the go-ahead. If re-rolls keep failing at one
seam, shorten the chain, simplify that segment's prompt, or make the seam a
cut between two shots (templates/ltx2/image-to-video from a kept still,
joined by templates/assemble-and-score). Never splice a re-rolled segment
in with concat_videos: that join is recorded hard_cut, so
seam_frame_jump stops checking it. A seam re-roll counts against the
shot's budget below.
Run analyze_held_frames on every take (see minimax-h3).
Before the keep, run the beat review in references/beat-review.md on
the shot's get_output_frames frames. Before a revision pass,
get_request for the user's notes.
Fix a shot in the order and within the caps of references/fix-ladder.md: three failed attempts, then ask.
Face drift (templates/face-drift-check): see references/fix-ladder.md.
For H3, lint the prompt first: minimax-h3/references/prompt-lint.md.
Shot files sort by subfolder: final is the deliverable, intermediate
test frames.
Once every shot exists, hand off to templates/assemble-and-score (or
dw:series-episodes' five-beat procedure for an episode of a series) for
the recut/bed/match_levels/normalize/pair pass; don't re-derive it. To
grade in the same job: long-form/references/run-and-repair.md, Finish
the cut in one job.
The shots, narration, score or cues, stills and references are ingredients
the assembly consumes: a workflow you write or copy for one sets
"role": "intermediate" in its saving step's result, so it reads as
intermediate in the gallery (which opens on finals) before the assembly
runs. Only the assembly's cut is final. Once a later run reads a file
through output: or an asset: kept from it, the gallery lists that file
as intermediate on its own.
A sung multi-shot piece is reviewed by its lip-sync target: run
get_guide("tasks", section="Checking the lip-sync target") on the cut
before delivering it.
To take the project home, call export_job once per job of the project, then
fetch each zip's open_url and unpack it into exports/ under the working
directory (per its next).
observed_minutes/observed_runs in a
workflow listing (or plan.estimate with basis: "observed"), not
something this skill attempts unsupervised - a wrong choice can silently
change output quality.It adds no new mechanism to what exists: dw:minimax-h3, dw:ltx-2.5,
h3-prompt-writing and the family prompt conventions,
dw:series-episodes (cast consistency and the
recut/bed/match_levels/normalize/pair pass), plan.estimate and
acknowledged_cost (the cost gate), and the warning kinds dw/result.py
and dw/elision.py emit.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dkackman/diffusers-workflow --plugin dw12 skills in this plugin
/choosing-a-modelUse when a dw MCP server is connected and the user asks for a picture without naming a model family, workflow or model ("draw a lighthouse", "make me an image of...", "the best you can do"). Routes the request to the server's preferred model through templates/preferred/text-to-image and its tier, keeps SD 1.5 for "does it work" smoke tests, lets a named family or workflow win, and reads the plan's preference line before spending./cinematographyUse when a dw MCP server is connected and the user directs the camera or the look - a shot size, a camera move (dolly, crane, orbit, whip pan, crash zoom), a lens, lighting, a film era, a pace, or a named colour grade (noir, teal-orange, 70s stock, VHS, bleach bypass) - for an H3, LTX-2.5, Kandinsky 6, FLUX 3 Klein or MiniMax-H3-Image generation. Gives a closed vocabulary and the one sentence each value becomes in that family's own caption format, and the grades as apply_lut palettes plus film_grain./flux3-kleinUse when a dw MCP server is connected and the user wants an image from FLUX 3 Image Klein - a picture from a short request or a full caption, an edit of their photo, several reference pictures combined into one, or a layout with elements placed by box. Picks the template, states the distilled schedule, the size grid and the reference rules the pipeline does not check for you, quotes cost, and points at Black Forest Labs' upsampler and prompting guide./kandinsky-6Use when a dw MCP server is connected and the user wants Kandinsky 6.0 video - a five-second clip with its own soundtrack from text, or from a picture that becomes the first frame. Picks the template, states the distilled schedule and the size and frame rules the pipeline does not enforce for you, quotes cost, and points at Kandinsky Lab's own prompt format./long-formUse when a dw MCP server is connected and the request is longer than one clip - a scene to block, a long take, a series, a music video, or music or narration longer than one generation. Splits the piece into scenes, picks per scene a single clip, cuts or a chain, sets the chain's shot preset and per-segment check, repairs one bad segment in place, joins long narration and music, and exports the cut for an editor. Every rule cites the bench record it came from./ltx-2.5Use when a dw MCP server is connected and the user wants LTX-2.5 video - a short clip with its own soundtrack, a clip from one picture or between two, a sharper full-size render, a 2x upscale of its own or the user's clip, a subject held across a clip from a reference sheet, a blurry or compressed clip restored, a black-and-white clip colourised, an alpha matte pulled from a clip, or a clip extended or chained longer. Picks the template, states schedule and size rules, quotes cost, and carries the trained caption spec the prompt must follow.Other plugins' skills for the same job