huggingface-spaces
Installation
SKILL.md
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:
- Check whether the
hfCLI is installed (Get-Command hfon Windows orcommand -v hfon POSIX). If it is absent, use the official Python SDK or browser workflow; do not install a runtime implicitly. - Check the user is logged in:
hf auth whoami. If not, ask the user to runhf auth loginlocally 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. - Note
whoami'scanPayandisProflags — 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.