huggingface-spaces
Skill by huggingface
Builds, deploys and maintains applications on Hugging Face Spaces. It covers the Gradio, Docker and Static SDKs, ZeroGPU and dedicated hardware. Aimed at developers who host ML demos on Hugging Face.
Install huggingface-spaces
Built from the published package, never by AI.
git clone --depth 1 https://github.com/huggingface/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/huggingface-spaces ~/.claude/skills/huggingface-spacesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/huggingface/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/huggingface-spaces ~/.gemini/antigravity-cli/skills/huggingface-spacesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The huggingface-spaces skill guides an AI assistant through building, deploying and maintaining applications on Hugging Face Spaces. It covers the Gradio, Docker and Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging, buckets, inference providers and community grants. The skill is meant for requests to create or host an app on Hugging Face, port code onto ZeroGPU, or fix a Space that will not build or run.
It also explains how to check the hf CLI and login, search existing Spaces for prior art, choose an SDK and hardware tier, and write the README frontmatter and requirements.txt. The source is aimed at developers and ML engineers who publish demos on Hugging Face. It names the hf-cli skill as the recommended companion for full command coverage.
Written from the project's SKILL.md and checked against it.
What it can do
- Search existing SpacesFinds prior demos with hf spaces search so the assistant can reuse a working pattern.
- Choose SDK and hardwarePicks Gradio, Docker or Static and ZeroGPU, CPU or dedicated hardware based on the request.
- Create a SpaceRuns hf repos create with the SDK, hardware flavor, secrets, env vars and visibility.
- Write README frontmatterSets title, sdk, sdk_version, app_file, python_version and other Space config fields.
- Build a ZeroGPU Gradio appWrites an app using import spaces, module-scope model loading and @spaces.GPU.
- Set up requirements.txtLists needed packages and avoids pinning gradio, spaces and huggingface_hub.
- Expose apps as MCP serversAdds docstrings and launches with mcp_server=True so functions become MCP tools.
- Debug SpacesHelps fix a Space that will not build or run, per the skill's debugging guidance.
What you need
- hf CLI installed (pip install -U huggingface_hub)
- Hugging Face account logged in with hf auth login
- PRO, Team or Enterprise plan to create Gradio or Docker Spaces with compute
- Write-scoped token if not using OAuth login
Try asking
- Search Hugging Face Spaces for a Gradio demo of this model
- Create a Gradio Space on ZeroGPU for my text-to-image model
- Fix my Hugging Face Space that fails to build
Good to know
- Gradio and Docker Spaces need a paid plan to create, except up to 2 ZeroGPU Spaces on free personal accounts.
- ZeroGPU is Gradio-only and PyTorch-first.
- Docker Spaces do not support ZeroGPU.
- hardware set in the README YAML is ignored.
Security check
ANo 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
-
README.md412 B -
SKILL.md17 KB -
references/3d-cuda-extensions.md9 KB -
references/3d-generation.md9 KB -
references/3d-gsplat.md7 KB
Show all 15 files
-
references/3d-models.md20 KB -
references/3d-outputs.md9 KB -
references/buckets.md4 KB -
references/debugging.md11 KB -
references/gradio.md9 KB -
references/grants.md3 KB -
references/inference-providers.md4 KB -
references/known-errors.md13 KB -
references/requirements.md11 KB -
references/zerogpu.md21 KB
Alternatives to huggingface-spaces
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
huggingface-spaces: common questions
Can I host a Gradio Space on a free Hugging Face account?
Yes, but only as ZeroGPU Spaces. Free personal accounts in good standing can host up to 2 ZeroGPU Spaces.
What is ZeroGPU in Hugging Face Spaces?
ZeroGPU is dynamic, per-request GPU allocation on NVIDIA RTX PRO 6000 Blackwell. It is Gradio-only and PyTorch-first.
Does Docker support ZeroGPU?
No. The source says Docker Spaces do not support ZeroGPU. Docker Spaces also need a paid plan to create.
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 Apache-2.0 licence. The service it connects to may have its own pricing.
Is huggingface-spaces safe to use?
It scores 94 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.
