huggingface-hub-knowledge-patch

huggingface-hub-knowledge-patch is a skill for Claude Code from Nevaberry/nevaberry-plugins. It costs 15 tokens per session (2,736 once invoked), scanned A, original, MIT.

A reference guide for the Hugging Face Hub, an online service for sharing machine-learning models, datasets, and related code. It covers its clients, files, repositories, authentication, inference services, Spaces, jobs, and migration changes.

In plain words
What is it for?
Use it to migrate Hub clients, download or upload model and dataset files, manage repositories and tokens, call inference endpoints, and configure Spaces, jobs, or caches.
Why use it?
It helps fix scripts and integrations affected by changes to the Hub client, command-line tools, HTTP behavior, authentication, or repository APIs. It also explains how downloads, uploads, caches, and hosted services behave.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the knowledge-patch plugin — 197 skills, 1 hook shipped together

Good fit Use it to migrate Hub clients, download or upload model and dataset files, manage repositories and tokens, call inference endpoints, and configure Spaces, jobs, or caches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nevaberry/nevaberry-plugins/huggingface-hub-knowledge-patch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Nevaberry/nevaberry-plugins --skill huggingface-hub-knowledge-patch
Clone the repo
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins

Made for: Claude Code.

Or install knowledge-patch, the plugin that ships this one along with the rest of its 197 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for huggingface-hub-knowledge-patch

README.md
[![agentmods](https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/huggingface-hub-knowledge-patch/github.svg)](https://agentmods.dev/skills/nevaberry/nevaberry-plugins/huggingface-hub-knowledge-patch)
Your own site
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/huggingface-hub-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/huggingface-hub-knowledge-patch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for huggingface-hub-knowledge-patch

Your own site · 80×15
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/huggingface-hub-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/huggingface-hub-knowledge-patch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,736 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.02736
Opus 5.5 $0.00006 $0.01094
Sonnet 5.5 $0.00003 $0.00547
Haiku 4.5 $0.00002 $0.00274

Measured today against content hash 7f3b2cd111ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

huggingface-hub-knowledge-patch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/knowledge-patch/patches-claude/huggingface-hub-knowledge-patch/SKILL.md · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hugging Face Hub Compatibility

Load this skill when migrating Hub clients or working with downloads, uploads, repository APIs, authentication, inference, Spaces, jobs, or sandboxes. The references contain the complete guidance and examples by task.

Reference Topics
Client Migration and Compatibility Removed APIs and CLI commands, HTTP client factories, transport, exceptions, Python support, CLI input
Files, Caches, and Upload Workflows Downloads, revisions, offline behavior, Hub and Xet caches, uploads, filesystem listings, bucket transactions, dataset queries, model files
Inference, Endpoints, and Spaces Hardware, endpoint deployment, providers, Space resources and OAuth, jobs, metrics, experimental sandboxes and network policies
Repository Writes and Authentication OpenAPI, endpoints, tokens, gated access, commits, cards, webhooks, discussions, attachments, paper metadata

Removed APIs and deprecations

In v1, replace configure_http_backend with set_client_factory and set_async_client_factory; move per-call proxies= settings to the HTTPX client. force_filename was removed: open the path returned by hf_hub_download. Replace InferenceApi with InferenceClient for synchronous calls or AsyncInferenceClient for asynchronous calls. Deprecated TensorFlow and Keras utilities were removed; handle serialization and callbacks in the framework, then publish the resulting files through HfApi.

For Python API removals in 2.0:

API, argument, or operation Migration
upload_large_folder, HfApi.upload_large_folder Use upload_folder.
Space duplication Use duplicate_repo.
space_storage Pass space_volumes to create_repo or duplicate_repo.
request_space_storage, delete_space_storage Use set_space_volumes, delete_space_volumes.
repo_type_and_id_from_hf_id Use parse_hf_uri.
InferenceEndpointType.PROTECTED Use InferenceEndpointType.AUTHENTICATED; create_inference_endpoint(type="protected") raises ValueError.
list_models(model_name=...) Pass search in place of model_name.
text_generation(stop_sequences=...) Pass stop in place of stop_sequences.
Boolean InferenceClient(token=...) values Pass a token string or None.

Read the full file on GitHub · 209 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 209 lines · 15 tokens per session scan A 7f3b2cd111ca

Subscribe to this mod's changes

huggingface-hub-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (25 stars, last pushed yesterday), licensed MIT. It adds 15 tokens to every session and 2,736 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

huggingface-hub-knowledge-patch compared with skills from other repositories

huggingface-hub-knowledge-patch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
huggingface-hub-knowledge-patchNevaberry/nevaberry-pluginsSkill25yesterdayMITA15Claude Code
gws-modelarmor-create-templatefakoli/fakoli-pluginsSkill43d agoMITA18Claude Code
gws-modelarmor-sanitize-promptfakoli/fakoli-pluginsSkill43d agoMITA24Claude Code
gws-modelarmorfakoli/fakoli-pluginsSkill43d agoMITA16Claude Code
ai-ml-developmenttravisjneuman/.claudeSkill115todayMITA43Claude Code
memobasemaximskorohod/memobaseSkill2323d agoMITA25Claude Code, Codex
effect-patterns-building-data-pipelinesPaulJPhilp/EffectPatternsSkill8075mo agoMITA31Claude Code