/dw:choosing-a-modelfrom dw
Routes image generation requests to the correct model on a dw MCP server when no model family is named. Resolves the server's preference ladder per tier (draft, standard, best) and keeps SD 1.5 for smoke tests.
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.
None: SKILL.md is the whole skill.
A request that names no model still has to run on one. This skill picks it
from the server's preference ladder, not from memory: the server keeps
an ordered list of workflows per task and tier (draft, standard,
best), and resolves a preference:<key> path to the first one in the
tier that fits this host. The family skills (flux3-klein,
minimax-h3-image, kandinsky-6, ...) own their models' rules, and win
once a family is named.
This skill is written for dw 0.23.1; get_server_info's plugin says whether that is current.
get_server_info: the device. A ladder target can be CUDA-only, so the
same tier can resolve to a different workflow on a Mac than on a CUDA box.get_preferences(key="text_to_image") shows the
ladder and this host's pick per tier, with each skip and its reason. It
is free. Use it to say what each tier would run here; the validate line
below stays the check before spending.models/z-image", "on Qwen-Image": run that, through
its family skill if it has one. Don't route a named model through the
ladder, and don't swap it for the preferred one.templates/text-to-image, the SD 1.5 baseline. It is the smallest,
fastest, ungated template, there to prove the engine generates. It is not
the default picture, so don't offer it for a real request.templates/preferred/text-to-image, which composes
preference:text_to_image. Use the matching preference: key for the
task; text_to_image is the one the catalog holds today, so a request of
another shape (video, an edit, audio) goes to list_workflows(shape=...)
instead.tier is draft, standard or best. Pass the tier the user asked for.
The words map like this:
| The user says | tier |
|---|---|
| "quick", "rough", "a draft", "just to see" | draft |
| "the best you can", "highest quality", "final" | best |
| nothing about quality | the server's default_tier |
If they asked for none, pass the server's default_tier from get_preferences. The
template itself runs standard when no tier is passed, whatever the server's
default is, so pass it. Don't pick best to impress: it is the slowest rung and the
biggest download. Don't pass any other value: an unknown tier is refused at
arguments.tier.
draft resolves the SD 1.5 baseline at 512x512; standard and best run
the server's chosen models at 1024x1024. An explicit width or height
wins over the tier's. A run makes one image.
validate_workflow("templates/preferred/text-to-image", arguments={"prompt": ..., "tier": ...}). Its plan.preferences holds
one resolution line:
preference:text_to_image (tier standard) -> models/z-image; source: shipped
The workflow after -> is what will run on this host. A skipped part
names every target passed over and why (wrong device, too little memory,
a gated repo). Tell the user which model that is before you spend, in a
sentence: "On this server, standard is Z-Image Turbo."
Quote plan.estimate and get the go-ahead, as for any run.
A rung where nothing fits is refused, with each target's reason. Say so, and offer the next tier down; don't silently swap the tier.
A declares no variable ... dropped warning means the chosen target
doesn't take an argument the template passes (MiniMax-H3-Image makes one
image per run and takes no num_images_per_prompt). It is a warning, not
a failure: the run still makes one image.
run_workflow, wait_for_job, then get_job: the picture is the output
whose subfolder is final (the composed target's own scratch, if any, is
intermediate). Judge it with get_output_image against the ask. If the user wants
a different look rather than a better take, name the family the
resolution line picked and hand over to its skill: its prompt rules are the
family's, not this skill's. Captions already written to a family's format
are in the prompt library: list_prompts, then get_prompt.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
image-generation, model-routing, dw-server, preference-ladder
12 skills in this plugin
/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./minimax-h3Use when a dw MCP server is connected and the user wants MiniMax H3 video - a clip with its own sound, dialogue or a speaking character, a music video, a multi-shot short with cuts, a longer take, or a consistent subject/voice from a reference. Picks the template, states the rules that bite, quotes cost, points at MiniMax's prompt guides.npx claudepluginhub dkackman/diffusers-workflow --plugin dwOther plugins' skills for the same job