flux3-klein

flux3-klein is a skill for Claude Code from dkackman/diffusers-workflow. It costs 101 tokens per session (2,399 once invoked), scanned A, original, Apache-2.0.

An image-generation workflow for FLUX 3 Image Klein, a model that creates pictures from captions and can edit photos or combine reference images. It can also place elements in specified rectangular areas of an image.

In plain words
What is it for?
Use it to create images from detailed captions, edit a supplied photo, combine several references, or arrange objects in a planned layout.
Why use it?
It guides the choice between creating, editing, and combining images, while checking the required software, model access, and graphics hardware first. This reduces failures caused by missing setup or unsupported devices.

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 Use it to create images from detailed captions, edit a supplied photo, combine several references, or arrange objects in a planned layout.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dkackman/diffusers-workflow/flux3-klein
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 flux3-klein
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 flux3-klein

README.md
[![agentmods](https://agentmods.dev/badge/skills/dkackman/diffusers-workflow/flux3-klein/github.svg)](https://agentmods.dev/skills/dkackman/diffusers-workflow/flux3-klein)
Your own site
<a href="https://agentmods.dev/skills/dkackman/diffusers-workflow/flux3-klein"><img src="https://agentmods.dev/badge/skills/dkackman/diffusers-workflow/flux3-klein/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 flux3-klein

Your own site · 80×15
<a href="https://agentmods.dev/skills/dkackman/diffusers-workflow/flux3-klein"><img src="https://agentmods.dev/badge/skills/dkackman/diffusers-workflow/flux3-klein.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 2,399 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.02399
Opus 5.5 $0.00040 $0.00960
Sonnet 5.5 $0.00020 $0.00480
Haiku 4.5 $0.00010 $0.00240

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

Security

Grade A, and why

flux3-klein 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/flux3-klein/SKILL.md · 161 lines

How it starts

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

FLUX 3 Image Klein on a dw server

FLUX 3 Image Klein (Black Forest Labs) is a 5.6B distilled flow map that draws text-to-image, edits and multi-reference images in 16 steps. It pairs the FLUX.2 VAE with a Qwen3-VL-4B text encoder, about 19 GB of bf16 weights. Klein was trained on long captions written by BFL's prompt upsampler, and BFL says not to run it without one: a short prompt gives a generic picture.

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. The templates place every component on cuda. Apple Silicon is unmeasured (the same 19 GB of weights in unified memory, plus activations); on mps say so before spending, and on cpu stop.
  2. get_diffusers_state, then list_classes for Flux3DistilledModularPipeline. The modular pipeline is in diffusers main only (merged 2026-10-15). If it is missing, the server needs update_diffusers and a restart. That is the user's call; ask first.
  3. The weights are gated under the FLUX Kommunity License (non-commercial, plus commercial use of outputs below US$5M annual revenue). The user accepts it on the model page and the server runs hf auth login; a 401 or GatedRepoError in get_job means one of those is missing. The upsampler is Apache-2.0 and ungated.
  4. list_workflows(shape="image") for the text-to-image templates and list_workflows(shape="image-edit") for the edit ones. Take names, summary and cost from the listing over the names quoted below, then get_workflow on the one chosen, for its variables.

Which shape is the request

  • A short request ("a man walking his dog"): templates/flux3/upsample-then-generate. The upsampler writes the caption, is released, and Klein draws from it. The caption is saved as an intermediate text file: read it, and reuse or edit it as the prompt of text-to-image without paying for the upsampler again.
  • A full caption already written (or one the upsampler wrote earlier): templates/flux3/text-to-image.
  • One photo to change: templates/flux3/image-edit, an instruction and an image. The upsampler sees the same picture as the pipeline. With no width or height the output is 1 MP at the reference's aspect ratio.
  • Several pictures combined ("the dog from this one on that mug"): templates/flux3/multi-reference, an instruction and images in order. The first reference sets the aspect ratio.
  • Elements at given positions: templates/flux3/layout-boxes. The caption carries the boxes; the format is in references/layout-boxes.md. Boxes from a short request (BFL's box upsampler) are not in the catalog yet, so the caption is written by hand.
  • The base (non-distilled) checkpoint, guidance, LoRA, fp8 or NVFP4: not in the catalog. Say so rather than improvising.

Read the full file on GitHub · 161 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · +3 lines b6724c467852
  2. 15d ago First seen · 158 lines · 101 tokens per session scan A ea5ffb80375f

Subscribe to this mod's changes

flux3-klein 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 2,399 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-15.

Related

flux3-klein compared with skills from other repositories

flux3-klein next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flux3-kleindkackman/diffusers-workflowSkill19todayApache-2.0A101Claude Code
frontend-ui-engineeringPlazmodium/odin-workflowSkill06mo agoMITA23Claude Code, Codex
multimodal-stable-diffusiondavila7/claude-code-templatesSkill34ktodayMITA52Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill110ktodayApache-2.0A53Claude Code, Codex
liquid-glassfengshao1227/ccg-workflowSkill6.0k11d agoMITA43Claude Code
critiquefengshao1227/ccg-workflowSkill6.0k11d agoMITA59Claude Code
normalizefengshao1227/ccg-workflowSkill6.0k11d agoMITA50Claude Code