# Hugging Face Skills

Source: https://trendhub.net/skills/huggingface-skills
Repository: https://github.com/huggingface/skills
Author: Hugging Face (https://github.com/huggingface)
License: Apache-2.0
GitHub stars: 11,469

Hugging Face Skills is Hugging Face's own collection of agent skills for working on the Hub: the hf command line, dataset and paper lookups, model training on Hugging Face Jobs, Gradio and Spaces apps, local GGUF models, Transformers.js and SageMaker deployment. It gives coding agents tested commands and guard rails for ML tasks, and suits developers and researchers who build on the Hugging Face ecosystem.

## What problems it solves

- **Agents guess hf commands and flags**: The hf-cli skill is generated from your installed CLI version, so the agent sees the real command list and options.
- **Cloud training runs lose their results**: The trainer skills insist on Hub push, a token passed as a secret, and a realistic timeout before any GPU job is submitted.
- **Spaces that build but quietly fail**: The Spaces skill checks runtime state, logs, a real API call and the returned bytes instead of trusting a RUNNING status.
- **Picking a model is guesswork**: A model-finder skill pulls official benchmark leaderboards, adds parameter counts and filters by the memory on your machine.

## Install

### Claude Code

The 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 CLI

Installs 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
```

Start with the hf-cli skill, then add others with hf skills add as you need them; most skills expect the hf CLI, a logged-in account or an HF_TOKEN, and uv for the bundled Python scripts. Training on Hugging Face Jobs requires a Pro, Team or Enterprise plan, and the SageMaker skills need a working AWS CLI login.

## Skills

Skill names are shown as /name. Depending on the agent, a skill runs when it is relevant or when you call it by name; plugin installs may add a prefix.

- `/hf-cli`: Gives the agent the full hf command reference for downloads, uploads, repos, buckets, Jobs, Spaces, endpoints and webhooks. (https://trendhub.net/skills/huggingface-skills/hf-cli.markdown)
- `/hf-cloud-aws-context-discovery`: Reads your active AWS profile, region and caller identity before any AWS work instead of assuming a default region. (https://github.com/huggingface/skills/tree/main/skills/hf-cloud-aws-context-discovery)
- `/hf-cloud-python-env-setup`: Creates an isolated Python 3.10 to 3.12 environment with current boto3 for SageMaker scripts, never the system Python. (https://github.com/huggingface/skills/tree/main/skills/hf-cloud-python-env-setup)
- `/hf-cloud-sagemaker-deployment-planner`: Plans a SageMaker deployment by asking few questions, picking real-time, scale-to-zero or async, and checking instance quotas. (https://trendhub.net/skills/huggingface-skills/hf-cloud-sagemaker-deployment-planner.markdown)
- `/hf-cloud-sagemaker-iam-preflight`: Validates or discovers a usable SageMaker execution role before deploying, creating a new one only when none fits. (https://github.com/huggingface/skills/tree/main/skills/hf-cloud-sagemaker-iam-preflight)
- `/hf-cloud-sagemaker-production-defaults`: Deploys a SageMaker endpoint with autoscaling, CloudWatch alarms and cleanup tags switched on from the start. (https://github.com/huggingface/skills/tree/main/skills/hf-cloud-sagemaker-production-defaults)
- `/hf-cloud-serving-image-selection`: Chooses the serving container for a SageMaker model, preferring Hugging Face vLLM or TEI images, and finds its current URI. (https://github.com/huggingface/skills/tree/main/skills/hf-cloud-serving-image-selection)
- `/hf-mem`: Estimates the memory needed to run a Safetensors or GGUF model, optionally with KV cache, without downloading its weights. (https://github.com/huggingface/skills/tree/main/skills/hf-mem)
- `/huggingface-datasets`: Reads Hub datasets through the Dataset Viewer API: splits, row paging, text search, filters, parquet links and column statistics. (https://github.com/huggingface/skills/tree/main/skills/huggingface-datasets)
- `/huggingface-gradio`: Builds Gradio apps with Interface or Blocks, wires event listeners and custom HTML components, and calls them from the CLI. (https://github.com/huggingface/skills/tree/main/skills/huggingface-gradio)
- `/huggingface-lora-space-builder`: Designs and publishes a private Gradio Space tailored to one LoRA, following the trigger words and settings on its model card. (https://github.com/huggingface/skills/tree/main/skills/huggingface-lora-space-builder)
- `/huggingface-papers`: Fetches Hugging Face paper pages as markdown and pulls metadata such as authors, linked models, datasets and GitHub repo. (https://github.com/huggingface/skills/tree/main/skills/huggingface-papers)
- `/huggingface-spaces`: Creates, pushes, debugs and verifies Hugging Face Spaces, choosing SDK and hardware such as ZeroGPU from your account's limits. (https://trendhub.net/skills/huggingface-skills/huggingface-spaces.markdown)
- `/huggingface-trackio`: Adds Trackio metric logging and diagnostic alerts to training code and reads the results back through its CLI. (https://github.com/huggingface/skills/tree/main/skills/huggingface-trackio)
- `/huggingface-vision-trainer`: Fine-tunes object detection, image classification and SAM or SAM2 segmentation models on Hugging Face Jobs GPUs or locally. (https://github.com/huggingface/skills/tree/main/skills/huggingface-vision-trainer)
- `/huggingface-zerogpu`: Applies ZeroGPU rules for @spaces.GPU code: duration and quota tuning, process isolation, concurrency and CUDA wheel limits. (https://github.com/huggingface/skills/tree/main/skills/huggingface-zerogpu)
- `/train-sentence-transformers`: Trains embedding models, rerankers, SPLADE or ColBERT encoders from production templates, with a baseline score and a verdict line. (https://trendhub.net/skills/huggingface-skills/train-sentence-transformers.markdown)
- `/transformers-js`: Runs Hub models in JavaScript with Transformers.js pipelines in the browser, Node, Bun or Deno over WebGPU or WASM. (https://trendhub.net/skills/huggingface-skills/transformers-js.markdown)
- `/trl-training`: Writes and debugs TRL post-training code, matching each trainer to its dataset format and the config fields that matter. (https://github.com/huggingface/skills/tree/main/skills/trl-training)

## Questions

### Is this an official Hugging Face project?

Yes. The repository sits in the huggingface GitHub organisation and is released under the Apache-2.0 licence.

### Which agents are supported?

The README gives install steps for Claude Code, Gemini CLI, Codex (copy or symlink skills into .agents/skills) and Cursor (its plugin flow), and the skills follow the Agent Skills format; an AGENTS.md file covers agents without skill support.

### Do I need a paid Hugging Face account?

Not for most skills. Hugging Face Jobs, which the cloud training skills use, requires a Pro, Team or Enterprise plan, and Gradio or Docker Spaces beyond two free ZeroGPU Spaces also need a paid plan.

### How do I keep the skills current?

Use hf skills update for skills added through the hf CLI; the hf-cli skill itself can be regenerated from your installed CLI with hf skills add --force.

## Before you install

Skills run shell commands such as hf, uv, curl and the AWS CLI, write and execute Python training or deployment scripts, and call Hugging Face and AWS APIs with your tokens. Some can create repos, Spaces, paid jobs, buckets or SageMaker endpoints that cost money, so review those steps before approving them.
