Awesome-omni-skills hugging-face-cli-v2
hugging-face-cli workflow skill. Use this skill when the user needs Use the Hugging Face Hub CLI (hf) to download, upload, and manage models, datasets, and Spaces and the operator should preserve the upstream workflow, copied support files, and provenance before merging or handing off.
git clone https://github.com/diegosouzapw/awesome-omni-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/hugging-face-cli-v2" ~/.claude/skills/diegosouzapw-awesome-omni-skills-hugging-face-cli-v2 && rm -rf "$T"
skills/hugging-face-cli-v2/SKILL.mdhugging-face-cli
Overview
This public intake copy packages
plugins/antigravity-awesome-skills/skills/hugging-face-cli from https://github.com/sickn33/antigravity-awesome-skills into the native Omni Skills editorial shape without hiding its origin.
Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow.
This intake keeps the copied upstream files intact and uses
metadata.json plus ORIGIN.md as the provenance anchor for review.
Install by downloading the installer script first, reviewing it, and then running it locally. Example: curl -LsSf https://hf.co/cli/install.sh -o /tmp/hf-install.sh && less /tmp/hf-install.sh && bash /tmp/hf-install.sh
Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: Common options, Mounting repos as local filesystems, Tips, Limitations.
When to Use This Skill
Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request.
- Use this skill when you need the hf CLI for Hub authentication, downloads, uploads, repo management, or basic compute operations.
- The Hugging Face Hub CLI tool hf is available.
- IMPORTANT: The hf command replaces the deprecated huggingface-cli command.
- Use hf --help to view available functions.
- Note that auth commands are now all under hf auth e.g.
- Generated with huggingface_hub v1.8.0.
Operating Table
| Situation | Start here | Why it matters |
|---|---|---|
| First-time use | | Confirms repository, branch, commit, and imported path before touching the copied workflow |
| Provenance review | | Gives reviewers a plain-language audit trail for the imported source |
| Workflow execution | | Starts with the smallest copied file that materially changes execution |
| Supporting context | | Adds the next most relevant copied source file without loading the entire package |
| Handoff decision | | Helps the operator switch to a stronger native skill when the task drifts |
Workflow
This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow.
- Confirm the user goal, the scope of the imported workflow, and whether this skill is still the right router for the task.
- Read the overview and provenance files before loading any copied upstream support files.
- Load only the references, examples, prompts, or scripts that materially change the outcome for the current request.
- Execute the upstream workflow while keeping provenance and source boundaries explicit in the working notes.
- Validate the result against the upstream expectations and the evidence you can point to in the copied files.
- Escalate or hand off to a related skill when the work moves out of this imported workflow's center of gravity.
- Before merge or closure, record what was used, what changed, and what the reviewer still needs to verify.
Imported Workflow Notes
Imported: Common options
— Output format:--format
(or--format json
) or--json
(default).--format table
— Minimal output.-q / --quiet
— Git revision id which can be a branch name, a tag, or a commit hash.--revision
— Use a User Access Token. Prefer setting--token
env var instead of passingHF_TOKEN
.--token
— The type of repository (model, dataset, or space).--type
Examples
Example 1: Ask for the upstream workflow directly
Use @hugging-face-cli-v2 to handle <task>. Start from the copied upstream workflow, load only the files that change the outcome, and keep provenance visible in the answer.
Explanation: This is the safest starting point when the operator needs the imported workflow, but not the entire repository.
Example 2: Ask for a provenance-grounded review
Review @hugging-face-cli-v2 against metadata.json and ORIGIN.md, then explain which copied upstream files you would load first and why.
Explanation: Use this before review or troubleshooting when you need a precise, auditable explanation of origin and file selection.
Example 3: Narrow the copied support files before execution
Use @hugging-face-cli-v2 for <task>. Load only the copied references, examples, or scripts that change the outcome, and name the files explicitly before proceeding.
Explanation: This keeps the skill aligned with progressive disclosure instead of loading the whole copied package by default.
Example 4: Build a reviewer packet
Review @hugging-face-cli-v2 using the copied upstream files plus provenance, then summarize any gaps before merge.
Explanation: This is useful when the PR is waiting for human review and you want a repeatable audit packet.
Imported Usage Notes
Imported: Commands
— Download files from the Hub.hf download REPO_ID[--type CHOICE --revision TEXT --include TEXT --exclude TEXT --cache-dir TEXT --local-dir TEXT --force-download --dry-run --quiet --max-workers INTEGER]
— Print information about the environment.hf env
— Sync files between local directory and a bucket.hf sync[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --quiet]
— Upload a file or a folder to the Hub. Recommended for single-commit uploads.hf upload REPO_ID[--type CHOICE --revision TEXT --private --include TEXT --exclude TEXT --delete TEXT --commit-message TEXT --commit-description TEXT --create-pr --every FLOAT --quiet]
— Upload a large folder to the Hub. Recommended for resumable uploads.hf upload-large-folder REPO_ID LOCAL_PATH[--type CHOICE --revision TEXT --private --include TEXT --exclude TEXT --num-workers INTEGER --no-report --no-bars]
— Print information about the hf version.hf version
hf auth
— Manage authentication (login, logout, etc.).
hf auth
— List all stored access tokens.hf auth list
— Login using a token from huggingface.co/settings/tokens.hf auth login[--add-to-git-credential --force]
— Logout from a specific token.hf auth logout[--token-name TEXT]
— Switch between access tokens.hf auth switch[--token-name TEXT --add-to-git-credential]
— Find out which huggingface.co account you are logged in as.hf auth whoami[--format CHOICE]
hf buckets
— Commands to interact with buckets.
hf buckets
— Copy a single file to or from a bucket.hf buckets cp SRC[--quiet]
— Create a new bucket.hf buckets create BUCKET_ID[--private --exist-ok --quiet]
— Delete a bucket.hf buckets delete BUCKET_ID[--yes --missing-ok --quiet]
— Get info about a bucket.hf buckets info BUCKET_ID[--quiet]
— List buckets or files in a bucket.hf buckets list[--human-readable --tree --recursive --format CHOICE --quiet]
— Move (rename) a bucket to a new name or namespace.hf buckets move FROM_ID TO_ID
— Remove files from a bucket.hf buckets remove ARGUMENT[--recursive --yes --dry-run --include TEXT --exclude TEXT --quiet]
— Sync files between local directory and a bucket.hf buckets sync[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --quiet]
hf cache
— Manage local cache directory.
hf cache
— List cached repositories or revisions.hf cache list[--cache-dir TEXT --revisions --filter TEXT --format CHOICE --quiet --sort CHOICE --limit INTEGER]
— Remove detached revisions from the cache.hf cache prune[--cache-dir TEXT --yes --dry-run]
— Remove cached repositories or revisions.hf cache rm TARGETS[--cache-dir TEXT --yes --dry-run]
— Verify checksums for a single repo revision from cache or a local directory.hf cache verify REPO_ID[--type CHOICE --revision TEXT --cache-dir TEXT --local-dir TEXT --fail-on-missing-files --fail-on-extra-files]
hf collections
— Interact with collections on the Hub.
hf collections
— Add an item to a collection.hf collections add-item COLLECTION_SLUG ITEM_ID ITEM_TYPE[--note TEXT --exists-ok]
— Create a new collection on the Hub.hf collections create TITLE[--namespace TEXT --description TEXT --private --exists-ok]
— Delete a collection from the Hub.hf collections delete COLLECTION_SLUG[--missing-ok]
— Delete an item from a collection.hf collections delete-item COLLECTION_SLUG ITEM_OBJECT_ID[--missing-ok]
— Get info about a collection on the Hub. Output is in JSON format.hf collections info COLLECTION_SLUG
— List collections on the Hub.hf collections list[--owner TEXT --item TEXT --sort CHOICE --limit INTEGER --format CHOICE --quiet]
— Update a collection's metadata on the Hub.hf collections update COLLECTION_SLUG[--title TEXT --description TEXT --position INTEGER --private --theme TEXT]
— Update an item in a collection.hf collections update-item COLLECTION_SLUG ITEM_OBJECT_ID[--note TEXT --position INTEGER]
hf datasets
— Interact with datasets on the Hub.
hf datasets
— Get info about a dataset on the Hub. Output is in JSON format.hf datasets info DATASET_ID[--revision TEXT --expand TEXT]
— List datasets on the Hub.hf datasets list[--search TEXT --author TEXT --filter TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE --quiet]
— List parquet file URLs available for a dataset.hf datasets parquet DATASET_ID[--subset TEXT --split TEXT --format CHOICE --quiet]
— Execute a raw SQL query with DuckDB against dataset parquet URLs.hf datasets sql SQL[--format CHOICE]
hf discussions
— Manage discussions and pull requests on the Hub.
hf discussions
— Close a discussion or pull request.hf discussions close REPO_ID NUM[--comment TEXT --yes --type CHOICE]
— Comment on a discussion or pull request.hf discussions comment REPO_ID NUM[--body TEXT --body-file PATH --type CHOICE]
— Create a new discussion or pull request on a repo.hf discussions create REPO_ID --title TEXT[--body TEXT --body-file PATH --pull-request --type CHOICE]
— Show the diff of a pull request.hf discussions diff REPO_ID NUM[--type CHOICE]
— Get info about a discussion or pull request.hf discussions info REPO_ID NUM[--comments --diff --no-color --type CHOICE --format CHOICE]
— List discussions and pull requests on a repo.hf discussions list REPO_ID[--status CHOICE --kind CHOICE --author TEXT --limit INTEGER --type CHOICE --format CHOICE --quiet]
— Merge a pull request.hf discussions merge REPO_ID NUM[--comment TEXT --yes --type CHOICE]
— Rename a discussion or pull request.hf discussions rename REPO_ID NUM NEW_TITLE[--type CHOICE]
— Reopen a closed discussion or pull request.hf discussions reopen REPO_ID NUM[--comment TEXT --yes --type CHOICE]
hf endpoints
— Manage Hugging Face Inference Endpoints.
hf endpoints
— Deploy an Inference Endpoint from the Model Catalog.hf endpoints catalog deploy --repo TEXT[--name TEXT --accelerator TEXT --namespace TEXT]
— List available Catalog models.hf endpoints catalog list
— Delete an Inference Endpoint permanently.hf endpoints delete NAME[--namespace TEXT --yes]
— Deploy an Inference Endpoint from a Hub repository.hf endpoints deploy NAME --repo TEXT --framework TEXT --accelerator TEXT --instance-size TEXT --instance-type TEXT --region TEXT --vendor TEXT[--namespace TEXT --task TEXT --min-replica INTEGER --max-replica INTEGER --scale-to-zero-timeout INTEGER --scaling-metric CHOICE --scaling-threshold FLOAT]
— Get information about an existing endpoint.hf endpoints describe NAME[--namespace TEXT]
— Lists all Inference Endpoints for the given namespace.hf endpoints list[--namespace TEXT --format CHOICE --quiet]
— Pause an Inference Endpoint.hf endpoints pause NAME[--namespace TEXT]
— Resume an Inference Endpoint.hf endpoints resume NAME[--namespace TEXT --fail-if-already-running]
— Scale an Inference Endpoint to zero.hf endpoints scale-to-zero NAME[--namespace TEXT]
— Update an existing endpoint.hf endpoints update NAME[--namespace TEXT --repo TEXT --accelerator TEXT --instance-size TEXT --instance-type TEXT --framework TEXT --revision TEXT --task TEXT --min-replica INTEGER --max-replica INTEGER --scale-to-zero-timeout INTEGER --scaling-metric CHOICE --scaling-threshold FLOAT]
hf extensions
— Manage hf CLI extensions.
hf extensions
— Execute an installed extension.hf extensions exec NAME
— Install an extension from a public GitHub repository.hf extensions install REPO_ID[--force]
— List installed extension commands.hf extensions list[--format CHOICE --quiet]
— Remove an installed extension.hf extensions remove NAME
— Search extensions available on GitHub (tagged with 'hf-extension' topic).hf extensions search[--format CHOICE --quiet]
hf jobs
— Run and manage Jobs on the Hub.
hf jobs
— Cancel a Jobhf jobs cancel JOB_ID[--namespace TEXT]
— List available hardware options for Jobshf jobs hardware
— Display detailed information on one or more Jobshf jobs inspect JOB_IDS[--namespace TEXT]
— Fetch the logs of a Job.hf jobs logs JOB_ID[--follow --tail INTEGER --namespace TEXT]
— List Jobs.hf jobs ps[--all --namespace TEXT --filter TEXT --format TEXT --quiet]
— Run a Job.hf jobs run IMAGE COMMAND[--env TEXT --secrets TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --flavor CHOICE --timeout TEXT --detach --namespace TEXT]
— Delete a scheduled Job.hf jobs scheduled delete SCHEDULED_JOB_ID[--namespace TEXT]
— Display detailed information on one or more scheduled Jobshf jobs scheduled inspect SCHEDULED_JOB_IDS[--namespace TEXT]
— List scheduled Jobshf jobs scheduled ps[--all --namespace TEXT --filter TEXT --format TEXT --quiet]
— Resume (unpause) a scheduled Job.hf jobs scheduled resume SCHEDULED_JOB_ID[--namespace TEXT]
— Schedule a Job.hf jobs scheduled run SCHEDULE IMAGE COMMAND[--suspend --concurrency --env TEXT --secrets TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --flavor CHOICE --timeout TEXT --namespace TEXT]
— Suspend (pause) a scheduled Job.hf jobs scheduled suspend SCHEDULED_JOB_ID[--namespace TEXT]
— Run a UV script (local file or URL) on HF infrastructurehf jobs scheduled uv run SCHEDULE SCRIPT[--suspend --concurrency --image TEXT --flavor CHOICE --env TEXT --secrets TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --timeout TEXT --namespace TEXT --with TEXT --python TEXT]
— Fetch the resource usage statistics and metrics of Jobshf jobs stats[--namespace TEXT]
— Run a UV script (local file or URL) on HF infrastructurehf jobs uv run SCRIPT[--image TEXT --flavor CHOICE --env TEXT --secrets TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --timeout TEXT --detach --namespace TEXT --with TEXT --python TEXT]
hf models
— Interact with models on the Hub.
hf models
— Get info about a model on the Hub. Output is in JSON format.hf models info MODEL_ID[--revision TEXT --expand TEXT]
— List models on the Hub.hf models list[--search TEXT --author TEXT --filter TEXT --num-parameters TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE --quiet]
hf papers
— Interact with papers on the Hub.
hf papers
— Get info about a paper on the Hub. Output is in JSON format.hf papers info PAPER_ID
— List daily papers on the Hub.hf papers list[--date TEXT --week TEXT --month TEXT --submitter TEXT --sort CHOICE --limit INTEGER --format CHOICE --quiet]
— Read a paper as markdown.hf papers read PAPER_ID
— Search papers on the Hub.hf papers search QUERY[--limit INTEGER --format CHOICE --quiet]
hf repos
— Manage repos on the Hub.
hf repos
— Create a new branch for a repo on the Hub.hf repos branch create REPO_ID BRANCH[--revision TEXT --type CHOICE --exist-ok]
— Delete a branch from a repo on the Hub.hf repos branch delete REPO_ID BRANCH[--type CHOICE]
— Create a new repo on the Hub.hf repos create REPO_ID[--type CHOICE --space-sdk TEXT --private --public --protected --exist-ok --resource-group-id TEXT --flavor TEXT --storage TEXT --sleep-time INTEGER --secrets TEXT --secrets-file TEXT --env TEXT --env-file TEXT]
— Delete a repo from the Hub. This is an irreversible operation.hf repos delete REPO_ID[--type CHOICE --missing-ok]
— Delete files from a repo on the Hub.hf repos delete-files REPO_ID PATTERNS[--type CHOICE --revision TEXT --commit-message TEXT --commit-description TEXT --create-pr]
— Duplicate a repo on the Hub (model, dataset, or Space).hf repos duplicate FROM_ID[--type CHOICE --private --public --protected --exist-ok --flavor TEXT --storage TEXT --sleep-time INTEGER --secrets TEXT --secrets-file TEXT --env TEXT --env-file TEXT]
— Move a repository from a namespace to another namespace.hf repos move FROM_ID TO_ID[--type CHOICE]
— Update the settings of a repository.hf repos settings REPO_ID[--gated CHOICE --private --public --protected --type CHOICE]
— Create a tag for a repo.hf repos tag create REPO_ID TAG[--message TEXT --revision TEXT --type CHOICE]
— Delete a tag for a repo.hf repos tag delete REPO_ID TAG[--yes --type CHOICE]
— List tags for a repo.hf repos tag list REPO_ID[--type CHOICE]
hf skills
— Manage skills for AI assistants.
hf skills
— Download a skill and install it for an AI assistant.hf skills add[--claude --codex --cursor --opencode --global --dest PATH --force]
— Print the generated SKILL.md to stdout.hf skills preview
hf spaces
— Interact with spaces on the Hub.
hf spaces
— Enable or disable dev mode on a Space.hf spaces dev-mode SPACE_ID[--stop]
— Hot-reload any Python file of a Space without a full rebuild + restart.hf spaces hot-reload SPACE_ID[--local-file TEXT --skip-checks --skip-summary]
— Get info about a space on the Hub. Output is in JSON format.hf spaces info SPACE_ID[--revision TEXT --expand TEXT]
— List spaces on the Hub.hf spaces list[--search TEXT --author TEXT --filter TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE --quiet]
hf webhooks
— Manage webhooks on the Hub.
hf webhooks
— Create a new webhook.hf webhooks create --watch TEXT[--url TEXT --job-id TEXT --domain CHOICE --secret TEXT]
— Delete a webhook permanently.hf webhooks delete WEBHOOK_ID[--yes]
— Disable an active webhook.hf webhooks disable WEBHOOK_ID
— Enable a disabled webhook.hf webhooks enable WEBHOOK_ID
— Show full details for a single webhook as JSON.hf webhooks info WEBHOOK_ID
— List all webhooks for the current user.hf webhooks list[--format CHOICE --quiet]
— Update an existing webhook. Only provided options are changed.hf webhooks update WEBHOOK_ID[--url TEXT --watch TEXT --domain CHOICE --secret TEXT]
Best Practices
Treat the generated public skill as a reviewable packaging layer around the upstream repository. The goal is to keep provenance explicit and load only the copied source material that materially improves execution.
- Keep the imported skill grounded in the upstream repository; do not invent steps that the source material cannot support.
- Prefer the smallest useful set of support files so the workflow stays auditable and fast to review.
- Keep provenance, source commit, and imported file paths visible in notes and PR descriptions.
- Point directly at the copied upstream files that justify the workflow instead of relying on generic review boilerplate.
- Treat generated examples as scaffolding; adapt them to the concrete task before execution.
- Route to a stronger native skill when architecture, debugging, design, or security concerns become dominant.
Troubleshooting
Problem: The operator skipped the imported context and answered too generically
Symptoms: The result ignores the upstream workflow in
plugins/antigravity-awesome-skills/skills/hugging-face-cli, fails to mention provenance, or does not use any copied source files at all.
Solution: Re-open metadata.json, ORIGIN.md, and the most relevant copied upstream files. Load only the files that materially change the answer, then restate the provenance before continuing.
Problem: The imported workflow feels incomplete during review
Symptoms: Reviewers can see the generated
SKILL.md, but they cannot quickly tell which references, examples, or scripts matter for the current task.
Solution: Point at the exact copied references, examples, scripts, or assets that justify the path you took. If the gap is still real, record it in the PR instead of hiding it.
Problem: The task drifted into a different specialization
Symptoms: The imported skill starts in the right place, but the work turns into debugging, architecture, design, security, or release orchestration that a native skill handles better. Solution: Use the related skills section to hand off deliberately. Keep the imported provenance visible so the next skill inherits the right context instead of starting blind.
Related Skills
- Use when the work is better handled by that native specialization after this imported skill establishes context.@grafana-dashboards-v2
- Use when the work is better handled by that native specialization after this imported skill establishes context.@graphql-architect-v2
- Use when the work is better handled by that native specialization after this imported skill establishes context.@graphql-v2
- Use when the work is better handled by that native specialization after this imported skill establishes context.@growth-engine-v2
Additional Resources
Use this support matrix and the linked files below as the operator packet for this imported skill. They should reflect real copied source material, not generic scaffolding.
| Resource family | What it gives the reviewer | Example path |
|---|---|---|
| copied reference notes, guides, or background material from upstream | |
| worked examples or reusable prompts copied from upstream | |
| upstream helper scripts that change execution or validation | |
| routing or delegation notes that are genuinely part of the imported package | |
| supporting assets or schemas copied from the source package | |
Imported Reference Notes
Imported: Mounting repos as local filesystems
To mount Hub repositories or buckets as local filesystems — no download, no copy, no waiting — use
hf-mount. Files are fetched on demand. GitHub: https://github.com/huggingface/hf-mount
Install by downloading the installer locally, reviewing it, and then running it. Example:
curl -fsSL https://raw.githubusercontent.com/huggingface/hf-mount/main/install.sh -o /tmp/hf-mount-install.sh && less /tmp/hf-mount-install.sh && sh /tmp/hf-mount-install.sh
Some command examples:
— mount a repo (read-only)hf-mount start repo openai-community/gpt2 /tmp/gpt2
— mount a bucket (read-write)hf-mount start --hf-token $HF_TOKEN bucket myuser/my-bucket /tmp/data
/hf-mount status
— list or unmounthf-mount stop /tmp/data
Imported: Tips
- Use
for full options, descriptions, usage, and real-world exampleshf <command> --help - Authenticate with
env var (recommended) or withHF_TOKEN--token
Imported: Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.