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.
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-spacesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-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
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
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
-
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 →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
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.
