Agent skill

Diffusers

by VectorSpaceLab in VectorSpaceLab/AREX-Skill

A skill your agent uses for Hugging Face Diffusers tasks: pipeline inference, schedulers, adapters/loaders, training recipes, modular pipelines, conversion helpers, CLI checks, and repo maintenance.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Diffusers

skills CLI
$ npx skills add VectorSpaceLab/AREX-Skill --skill diffusers -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install VectorSpaceLab/AREX-Skill diffusers --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/VectorSpaceLab/AREX-Skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/repositories/repo-skills/diffusers .claude/skills/diffusers && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
diffusers
GitHub stars
328
Token cost
~2.1k tokens
SKILL.md length
769 words
Files
6 (incl. scripts, references)
Skills in repo
159
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses for Hugging Face Diffusers tasks: pipeline inference, schedulers, adapters/loaders, training recipes, modular pipelines, conversion helpers, CLI checks, and repo maintenance.

  • Works in 6 steps: Check whether the user is using… → Verify install and optional backends… → Route to the narrowest sub-skill below… → …
  • Hugging Face Diffusers tasks: pipeline inference
  • SKILL.md covers Start Here, Installation Baseline, Route by Task and Boundary Rules, plus 3 more sections
  • Runs Python scripts from its folder; calls python

What it does

Diffusers is an agent skill from VectorSpaceLab/AREX-Skill. Use this skill for Hugging Face Diffusers tasks: pipeline inference, schedulers, adapters/loaders, training recipes, modular pipelines, conversion helpers, CLI checks, and repo maintenance.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/repo-provenance.md`, `references/repo-routing-metadata.json` and `references/troubleshooting.md`).

It sits in AI & LLM Engineering, covering Diffusion and image models and Model hubs and datasets. It works with Hugging Face. The repository describes itself as: A Skill Library for Automated Machine Learning. The licence is Apache-2.0.

When your agent uses it

  • Hugging Face Diffusers tasks: pipeline inference
  • Adapters/loaders
  • Training recipes
  • Modular pipelines

Example prompts

  • “/diffusers”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Check whether the user is using Diffusers as a package, editing a Diffusers checkout, or converting/training model assets.
  2. Verify install and optional backends with scripts/check_diffusers_environment.py when imports, CUDA, CLI availability, or optional…
  3. Route to the narrowest sub-skill below instead of reading every reference.
  4. Keep model downloads, Hub pushes, training runs, and conversion jobs opt-in; many Diffusers workflows are network-, credential-, GPU-, or…
  5. Read references/repo-provenance.md before deciding whether this skill is stale for a current Diffusers checkout.
  6. Use references/troubleshooting.md for cross-cutting install/import/backend failures before diving into workflow-specific troubleshooting.

What it can do on your machine

Read from SKILL.md and the folder at commit ac3fe1a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Diffusers loads about 2.1k tokens when it runs, and up to ~4.2k if it reads all its reference files. Until then it costs about 50 tokens; SKILL.md has 769 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from VectorSpaceLab/AREX-Skill at commit ac3fe1a, republished under its Apache-2.0 licence (© VectorSpaceLab). 769 words, ~2,128 tokens.

Download SKILL.mdSave it as .claude/skills/diffusers/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
diffusers
description
Use this skill for Hugging Face Diffusers tasks: pipeline inference, schedulers, adapters/loaders, training recipes, modular pipelines, conversion helpers, CLI checks, and repo maintenance.
disable-model-invocation
true
metadata.disco-role
operating
license
Apache 2.0

Diffusers

Use this skill when a task involves Hugging Face Diffusers APIs, pipeline wiring, model loading, scheduler configuration, adapters, training command planning, modular pipelines, checkpoint conversion, or maintaining the Diffusers repository.

Start Here

  1. Check whether the user is using Diffusers as a package, editing a Diffusers checkout, or converting/training model assets.
  2. Verify install and optional backends with scripts/check_diffusers_environment.py when imports, CUDA, CLI availability, or optional dependencies are uncertain.
  3. Route to the narrowest sub-skill below instead of reading every reference.
  4. Keep model downloads, Hub pushes, training runs, and conversion jobs opt-in; many Diffusers workflows are network-, credential-, GPU-, or memory-sensitive.
  5. Read references/repo-provenance.md before deciding whether this skill is stale for a current Diffusers checkout.
  6. Use references/troubleshooting.md for cross-cutting install/import/backend failures before diving into workflow-specific troubleshooting.

Installation Baseline

For normal package use, install Diffusers with the backend needed for the task:

bash
python -m pip install diffusers torch accelerate transformers safetensors

For source-checkout development, install editable package dependencies in an isolated environment:

bash
python -m pip install -e .
python -m pip install torch accelerate transformers safetensors

Add extras only when the selected workflow needs them:

  • Training recipes commonly need accelerate, datasets, protobuf, tensorboard, Jinja2, peft, and timm.
  • Quantization and accelerator paths may need bitsandbytes, gguf, optimum-quanto, torchao, nvidia-modelopt, xFormers, ONNX Runtime, OpenVINO, or vendor-specific packages.
  • Flax/JAX, ONNX, TensorRT, Core ML, and other backend workflows require separate backend-specific installs.

Minimal import check:

bash
python - <<'PY'
import diffusers
print(diffusers.__version__)
from diffusers import DiffusionPipeline, DDPMScheduler
print(DiffusionPipeline, DDPMScheduler)
PY

Route by Task

  • Pipeline inference and serving: use sub-skills/pipelines-and-inference/SKILL.md for DiffusionPipeline.from_pretrained, AutoPipeline*, text-to-image, img2img, inpainting, ControlNet/T2I-Adapter/IP-Adapter execution context, callbacks, batching, seeds, device maps, offload, local/offline loading, and server-safe invocation.
  • Schedulers and sampling: use sub-skills/schedulers/SKILL.md for DDIM/DDPM/Euler/DPM-Solver/FlowMatch/LCM schedulers, set_timesteps, custom timesteps/sigmas, prediction_type, Karras/AYS settings, scheduler config round-trips, and sampler troubleshooting.
  • Adapters and loaders: use sub-skills/adapters-and-loaders/SKILL.md for LoRA/PEFT, textual inversion, IP-Adapter, T2I-Adapter, ControlNet loading, single-file checkpoints, adapter fusion/unloading, state-dict validation, and local-file loading plans.
  • Training recipes: use sub-skills/training-recipes/SKILL.md for DreamBooth, LoRA, textual inversion, text-to-image, ControlNet, T2I-Adapter, InstructPix2Pix, SDXL, SD3, Flux, dataset layout checks, and accelerate launch planning.
  • Modular pipelines: use sub-skills/modular-pipelines/SKILL.md for ModularPipeline, pipeline blocks, states, component managers, sequential/loop blocks, custom block packaging, and modular-pipeline tests.
  • Conversion, CLI, and maintenance: use sub-skills/conversion-and-maintenance/SKILL.md for diffusers-cli, environment reports, safe conversion planning, ONNX/export notes, copied-code maintenance, dummy dependency checks, style, and focused repo tests.

Boundary Rules

  • Do not start training, conversion, Hub upload, benchmark, or long inference jobs without explicit user confirmation.
  • Do not assume a GPU-specific package is installed just because the host has GPUs; run the environment checker and inspect torch.cuda.is_available().
  • Do not rely on original Diffusers repo docs, examples, or scripts when using this skill as a standalone runtime skill. The sub-skills include distilled references and safe helpers.
  • When the user is editing a Diffusers checkout, follow the repo's copied-code policy: do not edit # Copied from ... blocks directly unless intentionally breaking the copy link; run copy/style checks before PR handoff.
  • Keep pipeline execution guidance separate from training and conversion guidance. Loading an adapter for inference belongs to adapters/loaders plus pipelines; training that adapter belongs to training recipes.
  • Treat original repo tests and examples as native verification candidates for a checkout, not as runtime dependencies for this skill.
Show full SKILL.md (273 more words)Show less

High-Value Helpers

Common Decision Points

  • Package use vs repo maintenance: package use usually routes to pipelines, schedulers, adapters, training, or modular pipelines. Editing source, dependency tables, copied code, or CLI modules routes to conversion/maintenance.
  • Local/offline vs Hub access: prefer local_files_only=True, local config paths, and safetensors for offline or untrusted-file work. Ask before using gated models or private tokens.
  • CPU vs CUDA: CPU is suitable for import checks and skeleton planning. Real generation/training/conversion may need CUDA, bf16/fp16, offload, or smaller fixtures.
  • Adapters vs full model changes: LoRA/textual inversion/IP-Adapter/T2I-Adapter loading is usually reversible and belongs to adapters/loaders; merging or extracting weights belongs to conversion/maintenance; training new adapters belongs to training recipes.
  • Classic vs modular pipelines: use classic pipelines for most user generation tasks; use modular pipelines when the user needs block/state/component customization or custom block packaging.

Verification Expectations

For generated code or guidance, prefer the smallest safe check first:

  • Import and CLI help checks for environment issues.
  • Parser/help or dry-run checks for skill-owned helper scripts.
  • Tiny local fixtures for dataset or adapter path validation.
  • Focused native pytest selections only when working in a Diffusers checkout and the commands are short, deterministic, and safe.
  • Skip and document checks that require network, credentials, real model weights, long training, destructive writes, or unavailable hardware.

© VectorSpaceLab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in skills/repositories/repo-skills/diffusers of VectorSpaceLab/AREX-Skill.

  • SKILL.md
  • references/repo-provenance.md
  • references/repo-routing-metadata.json
  • references/troubleshooting.md
  • scripts/check_diffusers_environment.py
  • sub-skills

Open the folder on GitHubat commit ac3fe1a

Compare with similar skills

Diffusers next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Diffusers compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Diffusers this skillVectorSpaceLab/AREX-Skill328—~2.1kAutomated safety check: PassApache-2.0
Stage1 Add VaeEnd2End-Diffusion/diffusion-bench105—~1.1kAutomated safety check: PassNone
LoRA Space Builderhuggingface/skills11k2 repos~8.4kAutomated safety check: PassApache-2.0
Discover MLrand/cc-polymath1811 repos~574Automated safety check: PassMIT
Stable Diffusion Image Generationtaracodlabs/aiden849—~1.1kAutomated safety check: PassApache-2.0
Modelsguaardvark/guaardvark251—~782Automated safety check: PassMIT

Similar skills

  • Stage1 Add Vae

    End2End-Diffusion/diffusion-bench

    Add a new HuggingFace-supported VAE to the stage1 tokenizer pipeline.

    105 GitHub stars~1.1k tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-check passed
  • LoRA Space Builder

    huggingface/skills

    Official

    Builds and publishes a Gradio demo on Hugging Face Spaces for a LoRA, with the pipeline, UI and settings chosen to match that LoRA's task and model card.

    11k GitHub starsUsed in 2 repos~8.4k tokens
    AI & LLM EngineeringAuto-check passed
  • Discover ML

    rand/cc-polymath

    Automatically discover machine learning and AI skills when working with machine learning, PyTorch, training, inference, RAG, embeddings, fine-tuning, LLM, DSPy, HuggingFace, or diffusion models.

    181 GitHub starsUsed in 1 repo~574 tokens
    AI & LLM EngineeringAuto-check passed
  • Generate images via Stable Diffusion (HuggingFace Diffusers, local/API)

    849 GitHub stars~1.1k tokensUpdated 24 days ago
    AI & LLM EngineeringAuto-check passed
  • Models

    guaardvark/guaardvark

    Add any Hugging Face image or video model, checkpoint or LoRA to Guaardvark from a URL, list what is installed, and download registry models on request.

    251 GitHub stars~782 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Comfy CLI

    sundial-org/awesome-openclaw-skills

    Install, manage, and run ComfyUI instances. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~1.5k tokensUpdated 7 mo ago
    AI & LLM EngineeringAuto-check passed

More from VectorSpaceLab/AREX-Skill

All 159 skills in this repo
  • Agent Lightning

    VectorSpaceLab/AREX-Skill

    Use this repo skill for Agent Lightning package tasks: authoring trainable agents, tracing rewards and spans, running LightningStore/Trainer loops, using agl CLI services, choosing examples, and…

    328 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Agent Tools

    VectorSpaceLab/AREX-Skill

    A skill your agent uses when configuring LiteLLM for MCP tools, A2A agents, Claude Code/Cursor agent gateway traffic, MCP auth/OAuth, tool permissions, semantic filtering, or agent-specific proxy…

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents And Awel

    VectorSpaceLab/AREX-Skill

    Build and debug DB-GPT agents, tools, skills, teams, and AWEL workflows, including deterministic local DAG runs and HTTP-trigger topology without assuming an LLM, credential, or external service.

    328 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents And Middleware

    VectorSpaceLab/AREX-Skill

    Work on the actively maintained LangChain v1 agent package: initchatmodel, createagent, structured output, tools, middleware, embeddings initialization, provider routing, and agent runtime…

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents Workflows

    VectorSpaceLab/AREX-Skill

    A skill your agent uses for giskard.agents async chat workflows, tools, prompt templates, structured outputs, retries, rate limiting, embeddings, and optional LiteLLM backend.

    328 GitHub stars~500 tokensUpdated 1 mo ago
    Auto-check passed
  • Alphafold3

    VectorSpaceLab/AREX-Skill

    A skill your agent uses for AlphaFold 3 input preparation, prediction command planning, output interpretation, and Python API inspection.

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Diffusers

What does Diffusers do?

A skill your agent uses for Hugging Face Diffusers tasks: pipeline inference, schedulers, adapters/loaders, training recipes, modular pipelines, conversion helpers, CLI checks, and repo maintenance. Diffusers is an agent skill from VectorSpaceLab/AREX-Skill. Use this skill for Hugging Face Diffusers tasks: pipeline inference, schedulers, adapters/loaders, training recipes, modular pipelines, conversion helpers, CLI checks, and repo maintenance.

When should I use Diffusers?

Diffusers fits situations like: hugging Face Diffusers tasks: pipeline inference; adapters/loaders; training recipes; modular pipelines.

How do I install Diffusers in Claude Code?

Run `npx skills add VectorSpaceLab/AREX-Skill --skill diffusers -a claude-code`. Or copy the skill folder (skills/repositories/repo-skills/diffusers in VectorSpaceLab/AREX-Skill) into .claude/skills/diffusers in your project. Claude Code loads it when a task matches its description.

How do I install Diffusers in Codex?

Run `npx skills add VectorSpaceLab/AREX-Skill --skill diffusers -a codex`. Or copy the skill folder (skills/repositories/repo-skills/diffusers in VectorSpaceLab/AREX-Skill) into .agents/skills/diffusers in your project. Codex loads it when a task matches its description.

Can I use Diffusers in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add VectorSpaceLab/AREX-Skill --skill diffusers -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diffusers, .gemini/skills/diffusers, .github/skills/diffusers and .opencode/skills/diffusers in your project.

What does Diffusers need to run?

Going by SKILL.md and its folder, Diffusers needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Diffusers access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Diffusers safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Diffusers use?

Diffusers is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Diffusers use?

About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.1k tokens, read only when the agent opens those files.

What are the alternatives to Diffusers?

Skills that share tags, products or a category with Diffusers: Stage1 Add Vae (End2End-Diffusion/diffusion-bench, 105 stars), LoRA Space Builder (huggingface/skills, 11k stars), Discover ML (rand/cc-polymath, 181 stars) and Stable Diffusion Image Generation (taracodlabs/aiden, 849 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Diffusers?

VectorSpaceLab (a GitHub organization) maintains it in VectorSpaceLab/AREX-Skill, which has 328 GitHub stars. The repository holds 159 skills in this directory. The repository was last updated on September 3, 2026.

Source: VectorSpaceLab/AREX-Skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.