skills/mlops/huggingface-hub/SKILL.md
Hugging Face Hub CLI (hf) — search, download, and upload models and datasets, manage repos, query datasets with SQL, deploy inference endpoints, manage Spaces and buckets.
npx skillsauth add nousresearch/hermes-agent huggingface-hubInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
hf) Reference GuideThe hf command is the modern command-line interface for interacting with the Hugging Face Hub, providing tools to manage repositories, models, datasets, and Spaces.
IMPORTANT: The
hfcommand replaces the now deprecatedhuggingface-clicommand.
curl -LsSf https://hf.co/cli/install.sh | bash -shf --help to view all available functions and real-world examples.HF_TOKEN environment variable or the --token flag.hf download REPO_ID: Download files from the Hub.hf upload REPO_ID: Upload files/folders (recommended for single-commit).hf upload-large-folder REPO_ID LOCAL_PATH: Recommended for resumable uploads of large directories.hf sync: Sync files between a local directory and a bucket.hf env / hf version: View environment and version details.hf auth)login / logout: Manage sessions using tokens from huggingface.co/settings/tokens.list / switch: Manage and toggle between multiple stored access tokens.whoami: Identify the currently logged-in account.hf repos)create / delete: Create or permanently remove repositories.duplicate: Clone a model, dataset, or Space to a new ID.move: Transfer a repository between namespaces.branch / tag: Manage Git-like references.delete-files: Remove specific files using patterns.hf datasets list, info, and parquet (list parquet URLs).hf datasets sql SQL — Execute raw SQL via DuckDB against dataset parquet URLs.hf models list and info.hf papers list — View daily papers.hf discussions)list, create, info, comment, close, reopen, and rename.diff: View changes in a PR.merge: Finalize pull requests.deploy, pause, resume, scale-to-zero, catalog).hf jobs uv for running Python scripts with inline dependencies and stats for resource monitoring.dev-mode and hot-reload for Python files without full restarts.create, cp, mv, rm, sync).list, prune (remove detached revisions), and verify (checksum checks).create, watch, enable/disable).add-item, update, list).--format json: Produces machine-readable output for automation.-q / --quiet: Limits output to IDs only.hf extensions install REPO_ID.hf skills add.development
Use when you have a spec or requirements for a multi-step task. Creates comprehensive implementation plans with bite-sized tasks, exact file paths, and complete code examples.
development
Use when implementing any feature or bugfix, before writing implementation code. Enforces RED-GREEN-REFACTOR cycle with test-first approach.
development
Use when encountering any bug, test failure, or unexpected behavior. 4-phase root cause investigation — NO fixes without understanding the problem first.
development
Use when executing implementation plans with independent tasks. Dispatches fresh delegate_task per task with two-stage review (spec compliance then code quality).