executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
huggingface-hubUse the Hugging Face Hub Python client and hf CLI for repository and artifact management, downloads and caching, hosted inference, cloud compute, model integration, and safe automation.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this repo skill for huggingface_hub 1.29.0 workflows: the official Python
client and hf CLI for interacting with model, dataset, Space, and storage
resources on the Hugging Face Hub. This is a router, not an exhaustive API
manual. Resolve the user's dominant operation and load only the smallest
focused route.
For an application, install the base package:
python -m pip install huggingface_hub
python -c "import huggingface_hub; print(huggingface_hub.__version__)"
Add only the optional surface required by the task:
huggingface_hub[torch] for torch/safetensors model serialization and mixins.huggingface_hub[oauth] for OAuth server helpers.huggingface_hub[mcp] for MCP client/agent connections.huggingface_hub[gradio] for Gradio-based webhook server integrations.huggingface_hub[hf_xet] when explicitly controlling the Xet transfer extra.The base package includes the hf entry point. Before relying on a detailed
flag, run hf --help, hf version, and the relevant command's --help; CLI
surfaces are version-sensitive. Keep HF_TOKEN or an existing login in a
secret store and never put a token in source, output, URLs, or reports.
| User intent | Load this route |
|---|---|
| Create/search/manage repos, upload or commit files, branches/tags, cards, collections, discussions, PRs, or Hub webhook resources | hub-operations |
Download files/snapshots, use cache/offline mode, Xet, HfFileSystem, hf://, buckets, copy, or sync | downloads-and-storage |
| Call hosted models, select providers, stream/async chat, use tools or JSON schema, MCP, or manage Inference Endpoints | inference-and-endpoints |
Choose hf commands, parse output, automate shell flows, use extensions, or generate/update CLI skills | cli-and-automation |
| Run Jobs/Sandboxes, configure Spaces, build OAuth/webhook servers, integrate models/cards, serialize DDUF or torch checkpoints, or use TensorBoard | hosted-compute-and-integrations |
When a workflow crosses routes, keep one owner per operation: use the CLI route for command syntax and output, the Hub route for remote repository mutations, the storage route for read/cache behavior, and the hosted-compute route for paid or stateful cloud resources.
repo_type
(model, dataset, or space), revision, and credential source.Read cross-cutting troubleshooting when access, version, network, optional dependencies, cache state, or ambiguous mutation outcomes are involved. Read repository provenance before deciding whether this skill matches a checkout or needs refreshing.
python -c "import huggingface_hub; from huggingface_hub import HfApi, InferenceClient; print(huggingface_hub.__version__)"
hf --help
Do not run a command that creates, deletes, uploads, launches compute, changes secrets, or incurs inference cost until the target and authorization are explicit. The generated references contain safe mocked and local-only checks; they are not a substitute for permission to contact or mutate the Hub.