huggingface-lora-space-builder

huggingface-lora-space-builder is a skill for Claude Code from huggingface/skills. It costs 187 tokens per session (7,955 once invoked), scanned A, original, Apache-2.0.

A builder for browser-based Gradio demos on Hugging Face Spaces, a service for hosting machine-learning apps. It packages a user-provided LoRA, a small model add-on that changes how an image or video model behaves, into a shareable demo.

In plain words
What is it for?
Use it to create and publish private-by-default Spaces for LoRAs used with image or video models such as Qwen-Image, LTX-Video, Wan, FLUX, or SDXL.
Why use it?
It provides a tailored interface for trying a LoRA instead of leaving users with only a model file or local script.

Skill for Claude Code ✓ vendor

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

Part of the huggingface-skills plugin — 26 skills, 1 MCP server shipped together

Good fit Use it to create and publish private-by-default Spaces for LoRAs used with image or video models such as Qwen-Image, LTX-Video, Wan, FLUX, or SDXL.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huggingface/skills/huggingface-lora-space-builder
About the project

Hugging Face Skills is a collection of packaged instructions, scripts, and resources that teach AI agents how to perform tasks in the Hugging Face ecosystem, such as managing models and datasets, training models, and running evaluations. It is for coding agents that need to use Hugging Face Hub and machine-learning workflows. The catalogue entries are the project's own skills and integrations for agent clients.

huggingface/skills · 11,024 stars · on GitHub · huggingface.co

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 huggingface/skills --skill huggingface-lora-space-builder
Clone the repo
git clone --depth 1 https://github.com/huggingface/skills

Made for: Claude Code.

Or install huggingface-skills, the plugin that ships this one along with the rest of its 26 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 huggingface-lora-space-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/huggingface/skills/huggingface-lora-space-builder/github.svg)](https://agentmods.dev/skills/huggingface/skills/huggingface-lora-space-builder)
Your own site
<a href="https://agentmods.dev/skills/huggingface/skills/huggingface-lora-space-builder"><img src="https://agentmods.dev/badge/skills/huggingface/skills/huggingface-lora-space-builder/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 huggingface-lora-space-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/huggingface/skills/huggingface-lora-space-builder"><img src="https://agentmods.dev/badge/skills/huggingface/skills/huggingface-lora-space-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 187 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,955 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. Third-party audits
  • Socket pass 16 Jul 2026
  • Snyk fail 16 Jul 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 64
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Data Exfiltration · line 302
    Data is uploaded to cloud storage (S3 / GCS / Azure Blob). This may be a legitimate backup or exfiltration to an external bucket. Manual review is recommended.
    Fix: Verify the destination bucket is trusted and owned by you. Never upload credentials, secrets, or workspace contents to external or unverified cloud storage.
How audits are shown
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.00187 $0.07955
Opus 5 $0.00093 $0.03978
Sonnet 5 $0.00037 $0.01591
Haiku 4.5 $0.00019 $0.00796

Measured 9d ago against content hash 7192d4a44172, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

huggingface-lora-space-builder 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 9d ago.

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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/huggingface-lora-space-builder/SKILL.md · 394 lines

How it starts

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

Gradio LoRA Space Builder

Build and publish a Gradio demo on Hugging Face Spaces that runs inference with a user-provided LoRA. Use whenever someone asks to create, generate, ship, or publish "a Space", "a demo", "a Gradio app", or "a playground" for a LoRA — whether the base model is Qwen-Image, Qwen-Image-Edit, LTX, or another diffusion model. Also use when someone describes a LoRA they trained or hosts on the Hub and wants to share it. The default target is ZeroGPU hardware and the default inference library is diffusers when the base model supports it.

The output is a real, published Space (private by default) that the user can try in the browser, not a local script.

What "good" looks like for these demos

The demo should feel handcrafted for this specific LoRA, not a generic template with the LoRA bolted on. Two LoRAs that share a task can still need different demos: a pose-control video LoRA and an outpainting video LoRA both take video in and produce video out, but the inputs the user provides, the preprocessing, and the controls are completely different. Recognizing that is the central job here.

Concretely, a good demo:

  • Loads fast and runs fast — minimal model loading, sensible step count, no wasted computation per call.
  • Has a UI with exactly the controls this LoRA needs and nothing else. Excess sliders are a cost, not a feature.
  • Shows the user what's happening — progress, intermediate outputs where useful, the seed used, a clear error when input is missing.
  • Honors the LoRA's own recommendations from its model card: trigger words, recommended step count, recommended guidance scale, recommended LoRA scale, example inputs.
  • Is creative where creativity helps — interactive canvases, before/after sliders, side-by-side previews of intermediate processing — and plain where plainness is right.

Workflow

Work through these phases in order. Information gathered in one phase decides the next.

  1. Gather the LoRA info needed to pick a pipeline and design a UI.
  2. Pick the base pipeline and inference recipe.
  3. Design the UI for this specific LoRA's task and inputs.
  4. Write app.py, requirements.txt, and README.md together; show all three to the user for one batched approval.
  5. Publish the Space (private).

Read the full file on GitHub · 394 lines

Files

What ships with it

7 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. 9d ago First seen · 394 lines · 187 tokens per session scan A 7192d4a44172

Subscribe to this mod's changes

huggingface-lora-space-builder is a skill published in the GitHub repository huggingface/skills (11,024 stars, last pushed 5d ago), licensed Apache-2.0. It adds 187 tokens to every session and 7,955 once invoked, about $0.0009 per session on Opus 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-08-30.

Related

Other skills, from other repositories

stable-diffusion

Text-to-image generation, inpainting, and img2img.

NousResearch/hermes-agent · 18 tokens

baoyu-danger-gemini-web

Generates images and text via reverse-engineered Gemini Web API. Supports text generation, image generation from prompts, reference images for vision input, and multi-turn conversations. Use when other skills need image generation backend, or when user requests "generate image with Gemini", "Gemini text generation"…

JimLiu/baoyu-skills · 74 tokens

seedance-antislop

This skill should be used when a Seedance 2.0 prompt contains generic AI filler, hollow superlatives, vague cinematic language, bloated adjectives, weak verbs, or needs sharper production-specific wording.

Emily2040/seedance-2.0 · 48 tokens

seedance-filter

This skill should be used when a Seedance 2.0 prompt is blocked or rejected, when moderation is a suspected cause of a problem, or when the user asks for a content-boundary review or safer alternative. Assess the actual request before offering a clarification.

Emily2040/seedance-2.0 · 57 tokens

seedance-vocab-en

This skill should be used when an English Seedance 2.0 prompt needs clearer production wording, less generic prose, or precise vocabulary for camera, lighting, motion, VFX, audio, and constraints. Route blocked prompts through seedance-filter for context and boundary review.

Emily2040/seedance-2.0 · 61 tokens

seedance-vocab-zh

This skill should be used when the user asks for Chinese Seedance 2.0 prompt wording, Mandarin cinematic vocabulary, Chinese prompt compression, or translation of camera, lighting, action, VFX, audio, and production terms into Chinese.

Emily2040/seedance-2.0 · 55 tokens