Skills Prompts Hues

Popular categories

Agent skill · Hugging Face Skills

/huggingface-spaces Build and debug Hugging Face Spaces the agent can verify

The Spaces skill takes the agent from login checks to a working Space: searching for an existing demo, choosing between Gradio, Docker and Static SDKs, picking hardware your plan allows, writing the README frontmatter and requirements, pushing files, and proving the app works by calling its API and checking the output and logs.

Works with

  • Claude Code
  • Gemini CLI

When to use it

  • You want to host a model demo on Hugging Face and are unsure which SDK or hardware fits your account.
  • You need to port an existing Gradio demo onto ZeroGPU.
  • Your Space builds or shows RUNNING but returns errors or wrong output.

How it works

  1. 1
    Check account limits

    The agent verifies the hf CLI and login and reads the whoami flags that decide which hardware your account may use.

  2. 2
    Look for prior art

    It searches existing Spaces for the model or task and reads their app and requirements files before choosing an approach.

  3. 3
    Create and build

    It creates the Space with the right SDK, flavour and visibility, keeps secrets out of visible env vars, and follows the ZeroGPU import and loading rules.

  4. 4
    Iterate on the live Space

    It pushes with the space repo type and uses hot-reload or targeted uploads, rebuilding only when dependencies or frontmatter change.

  5. 5
    Verify for real

    It checks runtime state, reads logs for silent fallbacks, calls the endpoint with the Gradio client and inspects the returned file.

What it steers the agent away from

  • Accidentally uploading to a model repo because the Space repo type was left out.
  • Pinning gradio, spaces or huggingface_hub in requirements and breaking the runtime.
  • Declaring success from a RUNNING status alone.

Install this skill

It installs with the Hugging Face Skills pack.

Claude CodeThe plugin marketplace exposes only hf-cli; the rest are added one by one with the hf CLI.
/plugin marketplace add huggingface/skills
/plugin install hf-cli@huggingface/skills
hf skills add <skill-name>
Gemini CLIInstalls the repository as a Gemini CLI extension; you can also run the install from a local checkout.
gemini extensions install https://github.com/huggingface/skills.git --consent

Commands come from the author’s README; check it for changes before you run them.

Questions

Can I host a Gradio Space on a free account?

The skill says free personal accounts in good standing can host up to two ZeroGPU Spaces; other Gradio or Docker hardware needs a paid plan, while Static Spaces are free.

What if I need a GPU I cannot pay for?

It suggests creating a Static Space, pushing the app there and applying for a community grant, or using Inference Providers instead of hosting the model.

More guides from Hugging Face Skills

Also in this pack

All 19 skills →

Summary by trendhub. The skill itself lives in huggingface/skills/skills/huggingface-spaces by Hugging Face (Apache-2.0); read the full, current text there.