Skip to content

Guide · Agent skill

How to use the LoRA Space Builder agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The LoRA Space Builder is an agent skill that asks your AI agent to build and publish a Gradio demo on Hugging Face Spaces for a LoRA you point it at. It is for creators and developers who have a diffusion LoRA on the Hub and want a shareable browser demo without writing web code. After this guide you will know what the skill does, how to install it, how to phrase a request that triggers it, and what it needs from your Hugging Face account.

LoRA Space Builderhuggingface/skills · Apache-2.0

Quick start

  1. 1Download and unzip the skill. Download the skill ZIP from this page and unzip it into ~/.claude/skills/ for all projects, or into a project's .claude/skills/ folder for one project.
  2. 2Or upload it in the Claude apps. In the Claude apps, open Settings, go to Capabilities, then Skills, and upload the skill.
  3. 3Prepare your Hugging Face token. Create an access token with write scope at https://huggingface.co/settings/tokens. You need it to publish and to read private or gated repos.
  4. 4Ask for a Space with a natural request. Tell your agent you want a Gradio demo Space for your LoRA and give the repo ID, such as username/my-lora.
  5. 5Answer any batched questions. If the model card lacks the task, base model or sub-task, the agent asks once in a single message. Reply with the numbered options or a one-line description.
  6. 6Review app.py, requirements.txt and README.md. The agent shows all three files for one approval. Check the base model, trigger words and recommended settings before you say yes.
  7. 7Try the private Space. After publishing, open the private Space in your browser and test it. Share it only with people you intend to give access.

What is an agent skill, and what does this one do?

An agent skill is a folder of instructions and helper files that an AI agent can load when a request matches the skill's description. This one is named huggingface-lora-space-builder and comes from the huggingface/skills collection, under the Apache-2.0 licence.

A LoRA is a small add-on file that changes how a larger image or video model behaves. When you ask, the agent reads the LoRA's files and model card on the Hugging Face Hub, picks the matching base diffusion pipeline, and writes a small web app with a UI tailored to what that LoRA does. It then publishes that app as a Hugging Face Space, private by default, so you can try it in a browser.

The skill covers base models such as Qwen-Image, Qwen-Image-Edit, LTX-Video, Wan, FLUX and SDXL, and tasks including text-to-image, image-to-image, text-to-video, image-to-video and video-to-video. It also tries to respect the model card's recommendations for trigger words, steps, guidance, LoRA scale and example inputs.

Install the skill (ZIP download or Claude apps upload)

Download the skill ZIP from the skill's page on this directory. You have two options depending on how you use your agent.

For Claude Code, unzip the folder into your personal skills directory ~/.claude/skills/, or into a project's .claude/skills/ folder if you want the skill available only inside that project. The skill folder should contain SKILL.md along with its references folder.

For the Claude apps, open Settings, go to Capabilities, then Skills, and upload the skill there.

  • Personal (all projects): ~/.claude/skills/
  • Single project: .claude/skills/ inside the project folder
  • Claude apps: Settings → Capabilities → Skills

What you need before you start

The skill needs Python with huggingface_hub and diffusers, plus Gradio for the generated app. Its scripts run and it uses the network, so your agent environment must allow both.

You need a Hugging Face account and an access token with write scope. The token is needed to publish the Space and to read private or gated repos. Create one at https://huggingface.co/settings/tokens.

The Space runs on GPU hardware. ZeroGPU is the default target. The source does not list prices for GPU hardware, so check Hugging Face's own pricing before you publish.

  • Python with huggingface_hub and diffusers
  • Gradio (used by the generated app)
  • Hugging Face account and write-scope access token
  • GPU hardware on Hugging Face Spaces (ZeroGPU by default)

Trigger the skill with a natural request

You do not need a special command. Describe what you want in plain language that mentions a Space, demo, Gradio app or playground, and name the LoRA repo. The skill's description lists trigger phrases such as create, generate, ship or publish a Space, demo, Gradio app or playground for a LoRA. It also triggers when you say you trained or host a LoRA on the Hub and want to share it.

Include the repo ID if you have it, for example username/my-lora. The agent will then read the repo first. If the repo is public, it proceeds without a token. If it is private or gated, the agent checks whether you are already logged in before asking you for a token.

  • Make a Gradio demo Space for my LoRA at username/my-lora
  • Publish a playground for my Qwen-Image LoRA so my team can try it
  • I trained a FLUX LoRA and want to share it as a browser demo
  • Build a video-to-video demo for my LTX LoRA, private by default

How the agent builds the demo

The agent first gathers information from the LoRA's files and model card. It then picks the base pipeline and inference recipe, designs a UI for the LoRA's task and inputs, and writes app.py, requirements.txt and README.md together. You are shown all three files for one batched approval before anything is published.

Good output has only the controls the LoRA needs, reports the seed used and shows a clear error when input is missing. The source says the agent should trust the model card's parameters such as steps, guidance, CFG, LoRA scale and dtype, and it prefers loading the weights with pipe.load_lora_weights.

  • Reads the LoRA repo files and model card
  • Chooses the matching base pipeline
  • Designs a UI for the specific task and inputs
  • Shows app.py, requirements.txt and README.md for approval
  • Publishes the Space as private

Safety, privacy and what to check first

Publishing writes to your Hugging Face account using a write-scope token, so only give the token to an agent you trust and that is running in an environment you control. Treat the token as a password.

Do not use this skill for a private or unreleased LoRA until you have checked the privacy settings. A demo can receive your prompts and media, and weights in a public-facing Space could expose them. The skill publishes as a private Space by default, but confirm that setting before sharing the link.

If you only want to run a LoRA locally inside a script, this skill is the wrong tool, because it is built around publishing a Space. The skill also does not cover training a LoRA or general web apps.

  • Use a write-scope token only in a trusted environment
  • Confirm the Space is private before sharing it
  • Check privacy before sending unreleased weights or prompts
  • Not for local scripts, training or general web apps

Tips for better results

Give the agent the details the model card might lack. The skill asks you once, in a single batched message, if it cannot infer the task or what the LoRA does. A one-line answer such as relight portraits or extend videos to wider aspect ratios helps it design a better UI.

Ask for the LoRA's recommended settings to be respected, and point out any trigger word you know of. Review the three files before approving, especially the chosen base model, since the source warns that the wrong pipeline can load but produce wrong output.

  • Tell the agent the sub-task, such as relighting, face swap or style, not just the task type
  • Name the trigger word if the card does not show it
  • Check the chosen base model before approving the files

What people use it for

  • A creator who trained a LoRA for relighting portraits gets a browser demo with upload and prompt controls.
  • A developer wants a quick, model-card-faithful Gradio demo for a diffusion LoRA to test internally.
  • A team prototypes a video playground for a LoRA before a wider release, kept private during review.
  • A maker who hosts a LoRA on the Hub shares a browser demo with collaborators instead of sending weight files.

Frequently asked questions

How do I install the LoRA Space Builder skill?

Download the skill ZIP from this page and unzip it into ~/.claude/skills/ for all projects, or into a project's .claude/skills/ folder. In the Claude apps, you can instead upload it under Settings, Capabilities, Skills.

Is the LoRA Space Builder skill free?

The skill is listed under the Apache-2.0 licence. The source does not state prices, so check the licence terms yourself. Running a Space on GPU hardware may incur Hugging Face costs, which the source does not specify.

What do I need to use the huggingface-lora-space-builder skill?

You need Python with huggingface_hub and diffusers, Gradio for the generated app, a Hugging Face account with a write-scope access token, and GPU hardware on Hugging Face Spaces, with ZeroGPU as the default target.

Why does the skill need a write-scope token?

The token is used to publish the Space to your account and to read private or gated repos. Because it can write to your account, only use it in an environment you trust.

Can I keep my LoRA demo private?

Yes. The skill publishes the Space as private by default. Still, check the privacy settings before sending unreleased weights or prompts to any demo.

What base models does the skill support?

The description names Qwen-Image, Qwen-Image-Edit, LTX-Video, Wan, FLUX, SDXL and other diffusion base models. It covers text-to-image, image-to-image, text-to-video, image-to-video and video-to-video tasks, and it does not cover training LoRAs.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you have a diffusion LoRA on the Hub and want a private, model-card-faithful browser demo without writing web code. Pick something else if you only want to run a LoRA in a local script, need to train a LoRA, or want a general web app.

Download the skill