Agent skill · practicalswan

huggingface-spaces

Build, deploy, and maintain applications on Hugging Face Spaces — Gradio / Docker / Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging, buckets, inference providers, community grants. Use whenever the user asks to create or host an app on Hugging Face, port code onto ZeroGPU, fix a Space that won't build or run, or otherwise work with `hf spaces …`, `@spaces.GPU`, Space README frontmatter, or the `spaces` Python package.

What it needs

About 11k tokens when loaded.

What this skill does

Hugging Face Spaces Hugging Face Spaces host machine-learning applications. There are 1M+ today; each Space is a git repo. This skill covers creating, building, debugging, and maintaining them. 0. Getting ready Before anything else: 1. Check whether the hf CLI is installed (Get-Command hf on Windows or command -v hf on POSIX). If it is absent, use the official Python SDK or browser workflow; do not install a runtime implicitly. 2. Check the user is logged in: hf auth whoami. If not, ask the user to run hf auth login locally and complete its browser/OAuth flow, or configure an approved secret manager. Never request or accept a token value in chat or pass a literal token in a command argument. 3. Note whoami's canPay and isPro flags — they gate hardware choices below. A free (isPro=False) account can only host Static Spaces and up to 2 ZeroGPU Spaces. The optional hf-cli skill teaches every hf command. Load it only when the hf runtime is already installed and the user explicitly authorizes adding that skill; this catalog omits it because the laptop has no hf command. 1. What a Space is A Space is a git repo with three possible SDKs: Gradio — most Spaces. Python, fast iteration, supports ZeroGPU. Docker — arbitrary container. Use when you need a non-Python stack or a pre-built template (Streamlit, Argilla, Shiny, etc. — full list at https://huggingface.co/docs/hub/spaces-sdks-docker). Does not support ZeroGPU. Static — plain HTML, or a React/Svelte/Vue project built at deploy time. Use for in-browser ML (transformers.js / WebGPU / WebAssembly / onnxruntime-web), project pages, interactive reports, or Spaces that orchestrate other Spaces. No hardware needed. Hardware tiers Static Spaces are free for everyone and need no hardware. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills practicalswan/huggingface-spaces

View the source on GitHub

Browse the @skills marketplace