HuggingFace Tool Builder is the huggingface-tool-builder skill in the official huggingface/skills repository (skill folder). Instead of answering a one-off question about the Hub, it has the agent write a reusable command line script that fetches, enriches or processes Hugging Face data, so the task can be repeated, chained or automated.
The skill is short and opinionated. Its value is in the rules it sets and the sample scripts it ships.
Key Features
- Script rules: every script must support
--help; non-destructive scripts are tested before hand-off; shell is preferred, with Python or TSX when complexity demands it. - Auth hygiene: scripts send
HF_TOKENas a bearer header for higher rate limits and access to gated or private data. - Explore before building: agents inspect real API responses with small limits, and query the OpenAPI spec at
https://huggingface.co/.well-known/openapi.jsonthroughjqrather than reading the whole file. - Reference scripts:
hf_model_papers_auth.sh(trending models to papers),find_models_by_paper.sh,hf_model_card_frontmatter.sh(model card YAML to NDJSON) andhf_enrich_models.sh(stdin IDs to NDJSON). - Baselines in bash, Python and TypeScript for the simplest authenticated call.
- Key endpoints:
/api/models,/api/datasets,/api/spaces,/api/collections,/api/daily_papers,/api/trendingand more.
Use Cases
- A weekly report of trending models with their licenses and linked papers.
- Checking which candidate models are gated before a team picks one.
- Feeding Hub metadata into another pipeline as NDJSON.
Pricing
Free and open source (Apache-2.0 repository). Public Hub API calls need no payment; a token raises rate limits.
Getting Started
- Install HuggingFace CLI, then
hf skills add huggingface-tool-builder. - Set
HF_TOKEN. - Describe the repeatable task, for example "list the 10 most downloaded text-generation models with their license".
- Keep the resulting script in your repo and rerun it.
Limitation: the output is code the agent wrote, so review it before running anything that writes to the Hub. The skill also expects jq and a Unix shell for its composable examples.
FAQ
How is this different from the CLI skill?
The CLI skill runs single commands. This skill produces a script that combines API calls and can be rerun.
Does it build MCP tools?
No. It builds command line scripts.
Alternatives
- MCP Builder: packages an API as an MCP server instead of scripts.
- Skill Creator: turns a repeatable workflow into a new skill.
- HuggingFace Datasets: ready-made calls for the Dataset Viewer API.
Conclusion
Pick it when a Hub question will come up again. You end up with a tested script instead of a chat answer. More in the skills hub.
Comments
No comments yet. Be the first to comment!
Related Tools
Related Insights
Skills + Hooks + Plugins: How Anthropic Redefined AI Coding Tool Extensibility
An in-depth analysis of Claude Code's trinity architecture of Skills, Hooks, and Plugins. Explore why this design is more advanced than GitHub Copilot and Cursor, and how it redefines AI coding tool extensibility through open standards.
Claude Code's Next Frontier: Not Code, But Your Local Obsidian Knowledge Base
Explore how Obsidian + Claude Code transforms from a knowledge management tool into your private AI assistant. Complete guide including obsidian-skills, Claudian plugin, Claudesidian template, and best practices for achieving both data privacy and AI capabilities.

Anthropic Subagent: The Multi-Agent Architecture Revolution
Deep dive into Anthropic multi-agent architecture design. Learn how Subagents break through context window limitations, achieve 90% performance improvements, and real-world applications in Claude Code.