Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

huggingface-spaces

Skill by sickn33

Guides an AI assistant to build, deploy and maintain apps on Hugging Face Spaces. It covers the Gradio, Docker and Static SDKs, ZeroGPU and dedicated hardware, and debugging. Built for developers hosting ML demos.

  • Score 91
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install huggingface-spaces

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/huggingface-spaces ~/.claude/skills/huggingface-spaces

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install huggingface-spaces in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Hugging Face Spaces skill guides an AI assistant through building, deploying and maintaining apps on Hugging Face Spaces. It covers the Gradio, Docker and Static SDKs, hardware choices including ZeroGPU and dedicated GPUs, model loading, debugging and buckets. The skill begins by checking the hf CLI install and login, searches for existing Spaces to reuse, then creates the Space with hf repos create. It also covers README frontmatter, a minimal ZeroGPU Gradio app pattern, and requirements.txt rules.

It is aimed at developers who want to host an ML demo or port existing code to a Space. The source says to test on an authorized private or staging Space before publishing, and to use hot-reload or hf upload for updates where possible. The hf-cli skill is recommended as a companion. The source is from the huggingface/skills repository and is licensed Apache-2.0.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create a SpaceUses hf repos create with SDK, hardware flavor, secrets and visibility options.
  • Choose SDK and hardwareGuides the choice between Gradio, Docker, Static, ZeroGPU and dedicated GPUs.
  • Search existing SpacesUses hf spaces search to find prior demos and reuse their app.py and requirements.
  • Write README frontmatterSets SDK, app file, short description, Python version and startup timeout.
  • Build a ZeroGPU Gradio appShows a minimal pattern with import order, module-scope loading and @spaces.GPU.
  • Manage secrets and variablesKeeps API keys in secrets and only non-sensitive config in visible env variables.
  • Update a running SpacePicks hot-reload, hf upload or a full rebuild depending on which files changed.
  • Debug build and runtime errorsCovers diagnosing Space build and runtime failures, with a debugging reference file.
  • Plan model sourcingEstimates VRAM and points to Inference Providers when a model will not fit.

What you need

  • Hugging Face account
  • hf CLI, installed with pip install -U huggingface_hub
  • Write-scoped Hugging Face access token
  • Paid account with canPay enabled for dedicated GPUs

Try asking

  • Create a Gradio Space on ZeroGPU for my image generation model
  • Search Hugging Face Spaces for existing demos of this model first
  • Debug why my Space fails to build and suggest a fix

Good to know

  • ZeroGPU hosting depends on account age, standing and plan.
  • ZeroGPU works only with Gradio Spaces and is PyTorch-first.
  • Docker Spaces do not support ZeroGPU.
  • Dedicated GPUs are billed to the Space creator by the hour.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/huggingface-spaces/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md16 KB
  • references/buckets.md5 KB
  • references/debugging.md11 KB
  • references/gradio.md7 KB
  • references/grants.md2 KB
Show all 9 files
  • references/inference-providers.md3 KB
  • references/known-errors.md13 KB
  • references/requirements.md10 KB
  • references/zerogpu.md15 KB

Alternatives to huggingface-spaces

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

huggingface-spaces: common questions

Does this skill need a Hugging Face token?

Yes. The source says to log in locally with hf auth login and use a write-scoped token, which should never be pasted into chat or logs.

Which Space SDKs does it cover?

It covers Gradio, Docker and Static SDKs. ZeroGPU is available only for Gradio Spaces.

Can it set up dedicated GPU hardware?

Yes. The source lists T4, L4, A10G, L40S, A100 and H200 GPUs, billed by the hour to the creator, and only when canPay is true.

How do I install huggingface-spaces?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is huggingface-spaces free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is huggingface-spaces safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to huggingface-spaces?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

huggingface-spaces Install

Add to stack

Loading.