/diffusers:diffusers-clifrom diffusers
Runs diffusers pipelines from the terminal for one-off generation, batch jobs, or smoke-testing models. Supports LoRA attachment, remote execution on HF Sandbox, and pipeline schema introspection.
Ships in diffusers. 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.
diffusers-cli is the shipped CLI in src/diffusers/commands/. Subcommands relevant to agentic use:
| Command | Purpose |
|---|---|
run | Run any DiffusionPipeline or ModularPipeline. Forwards --pipeline-kwargs verbatim, saves output by detecting its runtime type, optionally runs on HF Jobs via --remote. |
schema | Print the input schema for a pipeline repo (kwarg names, types, defaults, descriptions). No weights downloaded — only the small index file. |
custom_blocks | Package a local ModularPipelineBlocks subclass for the Hub. |
env | Print versions of diffusers + torch + transformers + accelerate + safetensors + CUDA + GPU info. Use when investigating environment issues, dtype/precision support, or building bug reports. |
Most agentic work goes through run. Read the matching reference file before constructing a command:
run.md — full reference for diffusers-cli run. Covers --pipeline-kwargs
semantics and the shell-quoting gotcha, LoRA via --lora, optimization flags (--dtype, --cpu-offload,
--attention-backend, --vae-tiling/slicing), output handling and --push-to bucket uploads, the full
--remote HF Jobs flow (image, container command, log streaming, timing payload, artifact download), and
context parallel (--context-parallel) for both local-torchrun and --remote paths.The other commands are small enough that diffusers-cli <command> --help is the canonical reference:
diffusers-cli schema --help
diffusers-cli custom_blocks --help
diffusers-cli env --help
quantization_config or other low-level loader knobs not exposed by the CLI flags → write
Python. (device_map is exposed as --device-map; see run.md.)The console entry point is registered in pyproject.toml (diffusers-cli = "diffusers.commands.diffusers_cli:main"). If diffusers-cli is not on PATH after pip install -e ., reinstall
with pip install -e . --force-reinstall --no-deps and check which diffusers-cli. If the installed binary is
missing recent features (e.g. you see unrecognized arguments: --lora), reinstall.
--format {auto, human, agent, json} (top-level flag, must appear before the subcommand):
human — plain-text indented output for terminals (default when not running under an agent harness). No ANSI color.agent — TSV tables and key=value lines. Auto-selected when an agent env var is present
(CLAUDECODE, CLAUDE_CODE, CODEX_SANDBOX, CURSOR_AI, AIDER_AI_CONTEXT, GH_COPILOT_AGENT,
AI_AGENT). Token-cheap for LLM agents to read.json — compact JSON. Use for programmatic parsing (scripts, services) where type fidelity and nested
structures matter.stdout carries data; stderr carries hints/warnings/progress — parseable output is never polluted.
Rule of thumb: --format json for scripts that will json.loads() the output, otherwise leave it on
auto-detect (agent for LLMs, human for terminals).
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/custom-blocksUse when the user has written (or wants to write) a `ModularPipelineBlocks` subclass in a local Python file and needs to package it into a Hub-uploadable directory. Covers the workflow from a single `block.py` file to a published custom-block repo that consumers can load via `ModularPipeline.from_pretrained(<repo>, trust_remote_code=True)`.
/model-integrationUse when adding a new model or pipeline to diffusers, setting up file structure for a new model, converting a pipeline to modular format, or converting weights for a new version of an already-supported model.
/self-reviewUse before opening a PR, or whenever asked to self-review a diffusers contribution. Applies the same rubric as the `@claude` CI (checks the diff against references/review-rules.md, traces call paths for dead code). Reports findings grouped by severity, flagging what to fix before submitting (blocking issues + dead code) vs what to leave for the actual review. Report-only — does not edit files.
npx claudepluginhub entropic-silence/diffusers_hygon --plugin diffusers4 plugins ship this exact skill · first indexed Aug 21, 2026
Other plugins' skills for the same job