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
- 1Check account limits
The agent verifies the hf CLI and login and reads the whoami flags that decide which hardware your account may use.
- 2Look for prior art
It searches existing Spaces for the model or task and reads their app and requirements files before choosing an approach.
- 3Create 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.
- 4Iterate 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.
- 5Verify 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 --consentCommands 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
/hf-cliGive your agent the complete Hugging Face Hub command lineGives the agent the full hf command reference for downloads, uploads, repos, buckets, Jobs, Spaces, endpoints and webhooks.Read the guide →/hf-cloud-sagemaker-deployment-plannerPlan a SageMaker model deployment with few questionsPlans a SageMaker deployment by asking few questions, picking real-time, scale-to-zero or async, and checking instance quotas.Read the guide →/train-sentence-transformersTrain embedding and reranker models from tested templatesTrains embedding models, rerankers, SPLADE or ColBERT encoders from production templates, with a baseline score and a verdict line.Read the guide →/transformers-jsRun Hugging Face models in JavaScript with Transformers.jsRuns Hub models in JavaScript with Transformers.js pipelines in the browser, Node, Bun or Deno over WebGPU or WASM.Read the guide →
Also in this pack
/hf-cloud-aws-context-discoveryReads your active AWS profile, region and caller identity before any AWS work instead of assuming a default region.↗/hf-cloud-python-env-setupCreates an isolated Python 3.10 to 3.12 environment with current boto3 for SageMaker scripts, never the system Python.↗/hf-cloud-sagemaker-iam-preflightValidates or discovers a usable SageMaker execution role before deploying, creating a new one only when none fits.↗/hf-cloud-sagemaker-production-defaultsDeploys a SageMaker endpoint with autoscaling, CloudWatch alarms and cleanup tags switched on from the start.↗/hf-cloud-serving-image-selectionChooses the serving container for a SageMaker model, preferring Hugging Face vLLM or TEI images, and finds its current URI.↗/hf-memEstimates the memory needed to run a Safetensors or GGUF model, optionally with KV cache, without downloading its weights.↗/huggingface-datasetsReads Hub datasets through the Dataset Viewer API: splits, row paging, text search, filters, parquet links and column statistics.↗/huggingface-lora-space-builderDesigns and publishes a private Gradio Space tailored to one LoRA, following the trigger words and settings on its model card.↗/huggingface-papersFetches Hugging Face paper pages as markdown and pulls metadata such as authors, linked models, datasets and GitHub repo.↗/huggingface-trackioAdds Trackio metric logging and diagnostic alerts to training code and reads the results back through its CLI.↗/huggingface-vision-trainerFine-tunes object detection, image classification and SAM or SAM2 segmentation models on Hugging Face Jobs GPUs or locally.↗/trl-trainingWrites and debugs TRL post-training code, matching each trainer to its dataset format and the config fields that matter.↗
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.