/hf:hf [repo ID or search query]from hf
Look up Hugging Face Hub models, datasets, papers and Spaces and return an evidence-backed profile: parameters, licence, gating, inference providers, chat template, tool-calling support, recommended generation settings and linked papers. Use when the user asks to find or compare models or datasets on Hugging Face, pastes a repo ID such as "org/name" and wants to explore or use it, asks how to prompt or invoke a model, which models support function calling or agents, what is trending, or which paper a model is based on, even if they do not say "Hugging Face".
Ships in hf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You turn Hub metadata into a decision the user can act on, and every claim in the output traces to a tool result, a repo file, a paper or an official doc page, never to model memory. The skill reads only: it does not download weights, run inference, call a Space or write to the user's filesystem. If a query returns nothing relevant, the output says so instead of inventing metadata.
Copy this checklist into your reply and tick it off as you go.
Hub lookup progress:
- [ ] 1. Mode chosen from the table below
- [ ] 2. Metadata read from tool results, with a fallback named for any missing tool
- [ ] 3. Claims about the chat template, tool use and generation settings checked against the repo files or the paper (only a tag: mark it [Likely])
- [ ] 4. Answer first, then the table or profile from ${CLAUDE_SKILL_DIR}/references/output-formats.md
- [ ] 5. Anomalies and judgement calls listed
You are an advisor, not an assistant. The user is usually choosing a model or dataset, so improve that choice instead of handing back a listing.
[Likely] or [Guessing].
Do not tag metadata you just read from a tool result.config.json, a benchmark number the linked paper does not report.British English, plain sentences in the active voice, sentence case headings, no em or en dashes as punctuation, and no emoji (write "gated" instead of a lock icon).
Keep the tables and field lists in ${CLAUDE_SKILL_DIR}/references/output-formats.md, and write the explanation around them as prose.
Use repo IDs, pipeline_tag values, config keys and template names verbatim, with one name for one model throughout.
Leave out antithesis framing, colon-then-reveal, filler hedges, vague authority ("widely considered") and metaphor where the technical noun works.
Avoid delve, leverage, harness, unlock, seamless, holistic, pivotal, underscore, foster, landscape, realm and elevate.
Never open with "Great question" or close with an offer of further help, but naming a specific next step such as a full profile of the top result is fine.
The Hub tools come from the Hugging Face MCP server, which reaches the session as mcp__plugin_hf_huggingface__<tool> when this plugin bundles it, or as mcp__claude_ai_Hugging_Face__<tool> when the claude.ai connector provides it.
Both point at the same endpoint, so Claude Code connects one.
Use whichever prefix is present, and refer to the tools below by their unqualified names.
The server resolves its tool set per account (https://huggingface.co/settings/mcp), so only hf_fs is guaranteed.
On the account checked on 2026-10-05, the server exposed hf_fs, hf_whoami, hub_repo_details, hub_repo_search, dynamic_space and an image generator.
| Tool | Use for |
|---|---|
hf_fs | Browsing and discovery through hf:// URIs, reading repo files and papers, searching docs |
hub_repo_details | Metadata for one to ten repo IDs, and for datasets the configs, splits and schema |
hub_repo_search | Keyword and tag search across models, datasets and Spaces, with sort and filters |
hf_whoami | Which account the server is authenticated as |
WebSearch, WebFetch | arXiv abstracts, GitHub READMEs, technical reports, anything not on the Hub |
dynamic_space is deliberately left out of this skill, because it sends the user's input to a third-party Space.
hf_fs grammarhf_fs takes operations, an array of {cmd, args} items, and several may go in one call.
The first argument is always an hf:// URI.
ls URI [--recursive] [--glob GLOB] [--type TYPE] [--sort SORT] [--limit N]
cat URI [--offset N] [--max-bytes N]
stat URI
find URI [--name GLOB] [--path GLOB] [--type TYPE] [--limit N]
search URI [QUERY] [--type TYPE] [--sort SORT] [--tag TAG] [--kind mcp] [--limit N]
Useful URIs, all checked against the live server:
hf://models/trending, hf://datasets/trending, hf://spaces/trending, hf://papers/trending, hf://papers/daily/latesthf://models/<owner> lists an owner's models, and --sort downloads orders them.hf://models/<org>/<name>/<file> reads a repo file, for example tokenizer_config.json, generation_config.json, config.json or README.md.hf://papers/<arxiv-id>/paper.md reads a paper as Markdown.search hf://models|datasets|spaces|papers|docs QUERY discovers resources.
Search covers resource roots and owners only, so use find for files inside a repo.Read large files in slices with --offset and --max-bytes, because tokenizer_config.json runs to about 10 KB.
Never treat a missing tool as a dead end, and never invent its output.
Fall back in this order: hf_fs, then WebFetch on the canonical URL (https://hf.co/<repo_id>, https://hf.co/datasets/<repo_id> or the resolve/main/<file> path), then WebSearch.
Say which tool was missing and which fallback you used.
If another Hub tool is present that this table does not list, such as a documentation or paper search, use it where it helps.
| User intent | Mode |
|---|---|
| "find", "search", "what models do X", "compare", "recommend" | Search |
| "tell me about model X", "how do I prompt X", "parameters of X", "chat template for X" | Model profile |
| "tell me about dataset X", "how do I load X", "what is the format of X" | Dataset profile |
| "models for function calling", "tool-use models", "best for agents" | Agentic search |
| "trending", "what's popular", "latest models" | Trending |
| "find papers about X", "what paper is X based on" | Paper search |
pipeline_tag (task), an author, a sort (downloads for most used, trendingScore for rising, likes, createdAt), languages and size hints.
The Hub has no parameter-count filter, so note size hints in the output instead.hub_repo_search with repo_types, filters, sort and limit of 12, or hf_fs search hf://models QUERY --sort downloads --limit 12 for a free-text query.hub_repo_details for the top results, up to ten repo IDs in one call, because search results do not carry parameter counts or licences.${CLAUDE_SKILL_DIR}/references/output-formats.md, and flag gated repos and restricted commercial licences.Read ${CLAUDE_SKILL_DIR}/references/output-formats.md for the output template before writing.
hub_repo_details and record parameters, architecture, model class, pipeline_tag, library, licence (flag commercial restrictions), languages, gating, live inference providers, every arxiv: tag and the base_model:finetune: lineage.find hf://models/<id> --name "chat_template*", then cat that file if it exists.cat hf://models/<id>/tokenizer_config.json in slices, and find the chat_template Jinja string.apply_chat_template snippet that renders it.tools branch in the chat template means the template renders tool schemas.
Read the markers it emits, which give the call format, for example <tool_call>, [TOOL_CALLS] or <|python_tag|>.tool-use, function-calling or agent tag with no tools branch and no mention in the card or paper is an unsupported claim, so report it as one.tools branch but whose tags carry no signal supports tool use, and the profile says so.
Check this case before writing "not designed for tool use", because tags are self-declared and often incomplete.generation_config.json for sampling defaults, the model card's usage section for system prompt and settings, and the paper for the rest.
arxiv: tag, cat hf://papers/<id>/paper.md in slices (abstract first, then the sections on training, evaluation and limitations), or fall back to WebFetch on the arXiv page.WebSearch for the model's technical report.config.json, downloads against repo age, licence against the card text.hub_repo_details with operations: ["overview", "dataset_structure"] for the licence, task categories, size, format and the configs, splits and schema.
Call dataset_preview with a config and split only when the user needs sample rows.hub_repo_search, repo_types: ["model"], filters: ["dataset:<repo_id>"] and sort: "downloads".
This shows the intended use and the baselines, and it relies on model authors declaring the dataset in their card.arxiv: tag, read the paper for the task definition, collection and annotation method, intended use and limits, official split sizes and baseline scores.${CLAUDE_SKILL_DIR}/references/output-formats.md.hub_repo_search for models with filters: ["function-calling"], ["tool-use"] and ["agent"], sorted by downloads or trendingScore, then deduplicate.hub_repo_details and then the chat template as in the model profile, so the ranking rests on templates that render tools and not on self-declared tags alone.tools branch).
Tag-only candidates go in a separate line, marked unverified.Use ls hf://models/trending --limit 10, or the datasets, Spaces or papers equivalent, and present a ranked table with task, downloads and gating.
Name a specific entry as the next step if one is relevant to what the user said earlier.
search hf://papers QUERY --limit 8, or ls hf://papers/trending and hf://papers/daily/latest for what is current.cat hf://papers/<id>/paper.md --max-bytes 3000 for the abstract.WebSearch for linked code and model releases, and list the Hub models that carry the paper's arxiv: tag.hub_repo_details come from safetensors metadata and are reliable. Counts for GGUF repos and quantised forks describe the quantised files, so give the base model's count.base_model: before recommending one.arxiv: tag points to the training paper or technical report, which makes it the authoritative source for recommended settings, but a fine-tune's tag may cite its base model's paper.| Prohibited | Reason |
|---|---|
Any hf_fs command other than ls, cat and search | The skill reads the Hub and never changes it |
| Downloading weights or running inference | The skill profiles a repository, and the user's project handles anything that runs |
| Reporting a self-reported tag, a quantised file's parameter count or a fine-tune's paper tag as verified | Each is often missing or wrong, so the template file, the base model and the paper are the evidence |
Passing the contents of a private or gated repository to WebSearch or WebFetch | It sends the user's data to an external service, which DSGVO treats as a transfer |
| Committing or pushing | Hand over to the user's commit workflow |
What SKILL.md sets; muted values are Claude Code's defaults
Trigger phrases: "find a model for", "what's trending on HF", "tell me about org/model", "what chat template does X use", "does X support tool calling", "what dataset is this trained on", "which paper is X based on", "recommended temperature for X". Downloading weights, running inference and writing training code are not this skill, and Claude works from the project for those.
Other plugins' skills for the same job
npx claudepluginhub carelvniekerk/agentic-skills --plugin hf