choosing-a-model

choosing-a-model is a skill for Claude Code from dkackman/diffusers-workflow. It costs 101 tokens per session (1,283 once invoked), scanned A, original, Apache-2.0.

A model-selection guide for a Diffusers image-generation server when a user asks for an image without naming a model. It chooses from the server's configured workflows and accounts for the computer being used.

In plain words
What is it for?
It is for routing unnamed image requests to a suitable configured text-to-image workflow and tier, while allowing a named model or workflow to take priority.
Why use it?
It prevents an image request from having to guess a model and avoids selecting a workflow that the current hardware cannot run.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dw plugin — 12 skills, 1 MCP server shipped together

Good fit It is for routing unnamed image requests to a suitable configured text-to-image workflow and tier, while allowing a named model or workflow to take priority.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dkackman/diffusers-workflow/choosing-a-model
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dkackman/diffusers-workflow --skill choosing-a-model
Clone the repo
git clone --depth 1 https://github.com/dkackman/diffusers-workflow

Made for: Claude Code.

Or install dw, the plugin that ships this one along with the rest of its 12 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for choosing-a-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/dkackman/diffusers-workflow/choosing-a-model/github.svg)](https://agentmods.dev/skills/dkackman/diffusers-workflow/choosing-a-model)
Your own site
<a href="https://agentmods.dev/skills/dkackman/diffusers-workflow/choosing-a-model"><img src="https://agentmods.dev/badge/skills/dkackman/diffusers-workflow/choosing-a-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for choosing-a-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/dkackman/diffusers-workflow/choosing-a-model"><img src="https://agentmods.dev/badge/skills/dkackman/diffusers-workflow/choosing-a-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,283 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.01283
Opus 5.5 $0.00040 $0.00513
Sonnet 5.5 $0.00020 $0.00257
Haiku 4.5 $0.00010 $0.00128

Measured yesterday against content hash b2bf8ed5ad26, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

choosing-a-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dw/skills/choosing-a-model/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Choosing a model on a dw server

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.

Before anything

This skill is written for dw 0.23.1; get_server_info's plugin says whether that is current.

  1. 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.
  2. Decide what the user named, in this order; the first that applies wins.
  3. Before choosing a tier, 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.

Who decides the model

  1. A named family, workflow or model wins over the preference. "Use FLUX 3 Klein", "run 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.
  2. A "does it work" ask is the smoke test. "Check the server works", "a quick test image", a first run after install: run 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.
  3. Anything else uses the preference. A picture request that names no model runs 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.

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 96 lines · 101 tokens per session scan A b2bf8ed5ad26

Subscribe to this mod's changes

choosing-a-model is a skill published in the GitHub repository dkackman/diffusers-workflow (19 stars, last pushed today), licensed Apache-2.0. It adds 101 tokens to every session and 1,283 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-29.

Related

choosing-a-model compared with skills from other repositories

choosing-a-model next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
choosing-a-modeldkackman/diffusers-workflowSkill19todayApache-2.0A101Claude Code
multimodal-stable-diffusiondavila7/claude-code-templatesSkill34ktodayMITA52Claude Code, Codex
genai-visionj4flmao/agent-skillsSkill4613d agoMITA91Claude Code, Codex
workflows-guidecyanheads/workflows-mcp-serverSkill318d agoApache-2.0A79Claude Code
stable-diffusion-image-generationsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A50Claude Code, Codex
stable-diffusion-image-generationOrchestra-Research/AI-Research-SKILLsSkill15k1mo agoMITA50Claude Code
test-workflowanatolykoptev/n8n-mcp-agentSkill0yesterdayMITA17Claude Code, Codex