Agent skill · Hugging Face
Hugging Face CLI skill for Claude Code, Codex and Cursor
Officialname: hf-cli★ 11k (repo)pushed 2026-10-23Apache-2.0SKILL.md on GitHubchecked 2026-11-07
What it does, in the publisher's words
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub.
The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.
Install Hugging Face CLI
The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs
npx skills add huggingface/skills --skill hf-cli
This repo is a plugin marketplace. Inside Claude Code, add it and install the plugin that holds the skill (hf-cli), or copy only this skill into ~/.claude/skills. docs
/plugin marketplace add huggingface/skills /plugin install <plugin>@huggingface-skills # or only this skill: npx skills add huggingface/skills --skill hf-cli -a claude-code
Download the skill folder, zip it, then Customize > Skills > + > Create skill > Upload a skill. Code execution must be on (Settings > Capabilities). docs
git clone --depth 1 https://github.com/huggingface/skills.git /tmp/hf-cli-src cp -r /tmp/hf-cli-src/skills/hf-cli ./hf-cli zip -r hf-cli.zip hf-cli
Codex reads skills from .agents/skills in the repo or ~/.agents/skills. Type $ in Codex to use one. docs
npx skills add huggingface/skills --skill hf-cli -a codex
gh skill (GitHub CLI 2.90+, preview) installs it for Copilot in VS Code, the CLI and the cloud agent. Copilot also reads .github/skills and ~/.copilot/skills. docs
gh skill install huggingface/skills hf-cli
Cursor reads .cursor/skills, .agents/skills and ~/.cursor/skills (and .claude/skills). It does not install loose skills from a GitHub URL, so copy it in. docs
npx skills add huggingface/skills --skill hf-cli -a cursor
Installs from the GitHub repo; --path picks this skill out of the repo. Default scope is user (all projects). docs
gemini skills install https://github.com/huggingface/skills.git --path skills/hf-cli
OpenCode reads .opencode/skills, ~/.config/opencode/skills and the Claude and .agents folders. docs
npx skills add huggingface/skills --skill hf-cli -a opencode
Windsurf (now Devin Desktop) reads .devin/skills, .windsurf/skills and ~/.codeium/windsurf/skills. docs
npx skills add huggingface/skills --skill hf-cli -a windsurf
Works with
Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.
What's in the SKILL.md
- Commands
- hf auth — Manage authentication (login, logout, etc.).
- hf buckets — Commands to interact with buckets.
- hf cache — Manage local cache directory.
- hf collections — Interact with collections on the Hub.
- hf datasets — Interact with datasets on the Hub.
- hf discussions — Manage discussions and pull requests on the Hub.
- hf endpoints — Manage Hugging Face Inference Endpoints.
- hf extensions — Manage hf CLI extensions.
- hf jobs — Run and manage Jobs on the Hub.
- hf models — Interact with models on the Hub.
- hf papers — Interact with papers on the Hub.
- hf repos — Manage repos on the Hub.
- hf sandbox — Run and manage experimental sandboxes on Hugging Face Jobs.
- hf skills — Manage skills for AI assistants.
- hf spaces — Interact with spaces on the Hub.
- hf webhooks — Manage webhooks on the Hub.
- Common options
- Mounting repos as local filesystems
- Tips
Facts
- Skill name
- hf-cli
- Publisher
- Hugging Face (official)
- Repo
- huggingface/skills
- License
- Apache-2.0
- SKILL.md size
- 3,792 words, 239 lines
- Repo stars
- 11k (as of 2026-10-24)
- SKILL.md checked
- 2026-11-07
Pairs with the Hugging Face MCP server: the server gives the agent the tools, the skill teaches it how to use them.
More skills from huggingface/skills
- Gradio: Builds Gradio demo apps in Python: components, layouts, events and chat interfaces.
- Hugging Face LLM Trainer: Fine-tunes language and vision models with TRL or Unsloth on Hugging Face Jobs.
- Transformers.js: Runs ML models for text, vision and audio directly in JavaScript or the browser.
Related ai & ml skills
- Claude API · Anthropic
- ChatGPT Apps · OpenAI
- OpenAI Docs · OpenAI
- Gemini API · Google (Gemini)
- Gemini Live API · Google (Gemini)
- Cloudflare Agents SDK · Cloudflare
- Deep Agents · LangChain
- LangGraph Fundamentals · LangChain
FAQ
What does the hf-cli skill do?+
Uses the hf command line to download, upload and manage models, datasets, Spaces and jobs. In its own SKILL.md, Hugging Face describes it as: "Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub."
How do I install the hf-cli skill?+
Run npx skills add huggingface/skills --skill hf-cli and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/hf-cli/SKILL.md; in Codex and Cursor in .agents/skills/hf-cli/.
Does Hugging Face CLI work in Codex, Cursor and Copilot, or only Claude?+
It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.
Who maintains Hugging Face CLI?+
Hugging Face, the company or project behind it, in the huggingface/skills repo on GitHub, last pushed 2026-10-23. License: Apache-2.0.
Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers