From llm-externalizer
Hugging Face Hub CLI (`hf`) reference for downloading, uploading, and managing models, datasets, and repos. Covers custom --local-dir placement, --include/--exclude file filters, --revision pinning, cache management, and `hf auth login` for gated repos. Use when the setup wizard's pre-built download_command needs extension. Loaded by llm-externalizer-setup-agent.
How this skill is triggered — by the user, by Claude, or both
Slash command
/llm-externalizer:hf-cliThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reference for the Hugging Face Hub CLI (`hf` — replaces deprecated `huggingface-cli`). Covers downloading, uploading, managing models/datasets/Spaces, custom `--local-dir`, file filters via `--include`/`--exclude`, revision pinning, cache management (`hf cache scan/delete`), and authentication (`hf auth login`).
Reference for the Hugging Face Hub CLI (hf — replaces deprecated huggingface-cli). Covers downloading, uploading, managing models/datasets/Spaces, custom --local-dir, file filters via --include/--exclude, revision pinning, cache management (hf cache scan/delete), and authentication (hf auth login).
The setup wizard reads pre-built download_command strings from scripts/setup/recommend-models.py — shell-quoted and safe to paste. Most setup runs never need to touch this skill.
Consult this skill when the recommender's command needs extension:
--local-dir placement (multi-user setups, per-project trees)--include/--exclude (one shard from sharded safetensors, skip .onnx for safetensors)--revision for reproducibilityhf cache scan, hf cache delete <repo>)hf auth login) before downloading from gated repos (Llama 3 needs a HF token tied to Meta licence acceptance)Install (one-time):
curl -LsSf https://hf.co/cli/install.sh | bash -s
Use hf --help to view available functions. Auth commands are under hf auth (e.g. hf auth whoami).
download, upload, cache scan, auth login, etc.). See commands for the full alphabetical reference.--local-dir for predictable placement.hf auth login once before downloading.ls / hf cache scan.Return the executed command + its stdout (or relevant error) to the caller. For downloads, also report the on-disk path the artifact landed at.
Access denied): run hf auth login, accept the license on the HF web UI, retry.repo:QUANT: drop down to --hf-repo + --hf-file form (see huggingface-local-models).hf cache scan to see usage, then hf cache delete <repo> to free space.--max-workers 8 to parallelize, or hf-mount to defer fetching.# Download a single GGUF file to a custom dir
hf download unsloth/Qwen3.6-35B-A3B-GGUF Qwen3.6-35B-A3B-UD-Q4_K_M.gguf --local-dir ~/models/qwen
# Download an MLX repo (directory-shaped)
hf download mlx-community/Llama-3.3-70B-Instruct-4bit --local-dir ~/models/l3-70b-4bit
# Pin to a specific revision for reproducibility
hf download org/model file.safetensors --revision abc1234 --local-dir ~/models/model
# Scan and clean the cache
hf cache scan
hf cache delete org/old-model
# Authenticate before pulling a gated repo
hf auth login
Top-level commands · hf auth · hf buckets · hf cache · hf collections · hf datasets · hf discussions · hf endpoints · hf extensions · hf jobs · hf models · hf papers · hf repos · hf skills · hf spaces · hf webhooks · Common options · Mounting repos as local filesystems (
hf-mount) · Tips
https://huggingface.co/docs/huggingface_hub/en/guides/clihuggingface_hub Python lib: https://github.com/huggingface/huggingface_hubhf-mount (on-demand mounts): https://github.com/huggingface/hf-mounthf install: https://hf.co/cli/install.shnpx claudepluginhub emasoft/emasoft-plugins --plugin llm-externalizerCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.