tokens&
For enterprises
Submit
Sign in
tokens&

Build better AI stacks, claim useful opportunities, and give AI infrastructure companies a source-labeled adoption readout they can trust.

For buildersFor enterprises

Product

  • For builders
  • Category rankings
  • Startup credits and perks
  • Agent Skills
  • Platform
  • Submit project, tool, product, or perk

Enterprise

  • Start free company workspace

Community

  • Community
  • Newsletter
  • Events
Xin

© 2026 tokensand, LLC. All rights reserved.

  • Terms
  • Privacy
  • Security
  • Data Processing
  • Status
Agent Skills/Hub tool builder
Hugging FaceAgentsSKILL.mdVerified source

Agent Skill

Hub tool builder

Create scripts and tools that chain Hugging Face Hub API data safely.

Install this skillView repository

Vendor-authored source · Apache-2.0 license.

Raw SKILL.mdInstall the Tokens& Agent Pack

Tokens& curated build recipe

An open-model comparison script

Use the Hugging Face tool-builder skill to create a CLI that finds two suitable models and records their model-card licenses. Add a small routed Inference Providers comparison using the same public sample prompt, with a strict request budget.

  1. 1. Check the monthly inference allowance

    Hugging Face monthly inference credits

    Free accounts receive a small monthly Inference Providers allowance. It is intended for experiments; extra usage requires purchased credits. Custom provider keys are billed separately by that provider.

    Read Hugging Face terms
  2. 2. Use the vendor skill

    Hub tool builder

    Review the source and install instructions below, then use the skill in your own project.

    See install instructions
  3. 3. Build and show the result

    Save the Build Packet, then attach the CLI, its --help output, and a sample comparison recording model, license, response, and measured latency.

    Start this Build Packet

Public resources selected by Tokens&. Terms reviewed 2026-09-05; the provider decides eligibility and current limits. This recipe is a suggested project, not a vendor partnership or a completed build.

Skill specification

Declared by Hugging Face in the package front matter. Trigger conditions are what the coding agent matches on before it loads the skill.

View package fields
Hub tool builder SKILL.md front matter fields
Skill namehuggingface-tool-builder
Trigger conditionsUse this skill when the user wants to build tool/scripts or achieve a task where using data from the Hugging Face API would help. This is especially useful when chaining or combining API calls or the task will be repeated/automated. This Skill creates a reusable script to fetch, enrich or process data.

Install huggingface-tool-builder

In a terminal with Node.js, npm and Git, run the command for your agent. The Skills CLI installs the complete package directory, including referenced files within it. Review its install prompt, then start a new agent session. A skill package does not set up an MCP server connection.

Claude Code

.claude/skills/huggingface-tool-builder/SKILL.md

Project skills are committed with the repo. Use the user directory for a personal install across every project.

Project install

npx skills add 'https://github.com/huggingface/skills/tree/main/skills/huggingface-tool-builder' --skill 'huggingface-tool-builder' --agent 'claude-code'
Install for all projects instead

Personal install

npx skills add 'https://github.com/huggingface/skills/tree/main/skills/huggingface-tool-builder' --skill 'huggingface-tool-builder' --agent 'claude-code' --global

Codex

.agents/skills/huggingface-tool-builder/SKILL.md

Codex reads `.agents/skills/` as its primary location, which is also the cross-platform default other clients honour.

Project install

npx skills add 'https://github.com/huggingface/skills/tree/main/skills/huggingface-tool-builder' --skill 'huggingface-tool-builder' --agent 'codex'
Install for all projects instead

Personal install

npx skills add 'https://github.com/huggingface/skills/tree/main/skills/huggingface-tool-builder' --skill 'huggingface-tool-builder' --agent 'codex' --global

Cursor

.agents/skills/huggingface-tool-builder/SKILL.md

Cursor also loads `.agents/skills/`, `.claude/skills/`, and `.codex/skills/`, so one committed copy can serve several clients.

Project install

npx skills add 'https://github.com/huggingface/skills/tree/main/skills/huggingface-tool-builder' --skill 'huggingface-tool-builder' --agent 'cursor'
Install for all projects instead

Personal install

npx skills add 'https://github.com/huggingface/skills/tree/main/skills/huggingface-tool-builder' --skill 'huggingface-tool-builder' --agent 'cursor' --global

Gemini CLI

.agents/skills/huggingface-tool-builder/SKILL.md

Gemini CLI reads `.agents/skills/` first when both directories exist.

Project install

npx skills add 'https://github.com/huggingface/skills/tree/main/skills/huggingface-tool-builder' --skill 'huggingface-tool-builder' --agent 'gemini-cli'
Install for all projects instead

Personal install

npx skills add 'https://github.com/huggingface/skills/tree/main/skills/huggingface-tool-builder' --skill 'huggingface-tool-builder' --agent 'gemini-cli' --global

SKILL.md

View raw source

Published by Hugging Face under Apache-2.0. Rendered from the package in github.com/huggingface/skills/tree/main/skills/huggingface-tool-builder.

Read full skill instructions

Hugging Face API Tool Builder

Your purpose is now is to create reusable command line scripts and utilities for using the Hugging Face API, allowing chaining, piping and intermediate processing where helpful. You can access the API directly, as well as use the hf command line tool. Model and Dataset cards can be accessed from repositories directly.

Script Rules

Make sure to follow these rules:

  • Scripts must take a --help command line argument to describe their inputs and outputs
  • Non-destructive scripts should be tested before handing over to the User
  • Shell scripts are preferred, but use Python or TSX if complexity or user need requires it.
  • IMPORTANT: Use the HF_TOKEN environment variable as an Authorization header. For example: curl -H "Authorization: Bearer ${HF_TOKEN}" https://huggingface.co/api/. This provides higher rate limits and appropriate authorization for data access.
  • Investigate the shape of the API results before commiting to a final design; make use of piping and chaining where composability would be an advantage - prefer simple solutions where possible.
  • Share usage examples once complete.

Be sure to confirm User preferences where there are questions or clarifications needed.

Sample Scripts

Paths below are relative to this skill directory.

Reference examples:

  • references/hf_model_papers_auth.sh — uses HF_TOKEN automatically and chains trending → model metadata → model card parsing with fallbacks; it demonstrates multi-step API usage plus auth hygiene for gated/private content.
  • references/find_models_by_paper.sh — optional HF_TOKEN usage via --token, consistent authenticated search, and a retry path when arXiv-prefixed searches are too narrow; it shows resilient query strategy and clear user-facing help.
  • references/hf_model_card_frontmatter.sh — uses the hf CLI to download model cards, extracts YAML frontmatter, and emits NDJSON summaries (license, pipeline tag, tags, gated prompt flag) for easy filtering.

Baseline examples (ultra-simple, minimal logic, raw JSON output with HF_TOKEN header):

  • references/baseline_hf_api.sh — bash
  • references/baseline_hf_api.py — python
  • references/baseline_hf_api.tsx — typescript executable

Composable utility (stdin → NDJSON):

  • references/hf_enrich_models.sh — reads model IDs from stdin, fetches metadata per ID, emits one JSON object per line for streaming pipelines.

Composability through piping (shell-friendly JSON output):

  • references/baseline_hf_api.sh 25 | jq -r '.[].id' | references/hf_enrich_models.sh | jq -s 'sort_by(.downloads) | reverse | .[:10]'
  • references/baseline_hf_api.sh 50 | jq '[.[] | {id, downloads}] | sort_by(.downloads) | reverse | .[:10]'
  • printf '%s\n' openai/gpt-oss-120b meta-llama/Meta-Llama-3.1-8B | references/hf_model_card_frontmatter.sh | jq -s 'map({id, license, has_extra_gated_prompt})'

High Level Endpoints

The following are the main API endpoints available at https://huggingface.co

/api/datasets
/api/models
/api/spaces
/api/collections
/api/daily_papers
/api/notifications
/api/settings
/api/whoami-v2
/api/trending
/oauth/userinfo

Accessing the API

The API is documented with the OpenAPI standard at https://huggingface.co/.well-known/openapi.json.

IMPORTANT: DO NOT ATTEMPT to read https://huggingface.co/.well-known/openapi.json directly as it is too large to process.

IMPORTANT Use jq to query and extract relevant parts. For example,

Command to Get All 160 Endpoints

curl -s "https://huggingface.co/.well-known/openapi.json" | jq '.paths | keys | sort'

Model Search Endpoint Details

curl -s "https://huggingface.co/.well-known/openapi.json" | jq '.paths["/api/models"]'

You can also query endpoints to see the shape of the data. When doing so constrain results to low numbers to make them easy to process, yet representative.

Using the HF command line tool

The hf command line tool gives you further access to Hugging Face repository content and infrastructure.

❯ hf --help
Usage: hf [OPTIONS] COMMAND [ARGS]...

  Hugging Face Hub CLI

Options:
  --help                Show this message and exit.

Commands:
  auth                 Manage authentication (login, logout, etc.).
  buckets              Commands to interact with buckets.
  cache                Manage local cache directory.
  collections          Interact with collections on the Hub.
  datasets             Interact with datasets on the Hub.
  discussions          Manage discussions and pull requests on the Hub.
  download             Download files from the Hub.
  endpoints            Manage Hugging Face Inference Endpoints.
  env                  Print information about the environment.
  extensions           Manage hf CLI extensions.
  jobs                 Run and manage Jobs on the Hub.
  models               Interact with models on the Hub.
  papers               Interact with papers on the Hub.
  repos                Manage repos on the Hub.
  skills               Manage skills for AI assistants.
  spaces               Interact with spaces on the Hub.
  sync                 Sync files between local directory and a bucket.
  upload               Upload a file or a folder to the Hub.
  upload-large-folder  Upload a large folder to the Hub.
  version              Print information about the hf version.
  webhooks             Manage webhooks on the Hub.

The hf CLI command has replaced the now deprecated huggingface-cli command.

More Hugging Face Agent Skills

All Agent Skills

Community model evals

Run inspect-ai and lighteval evaluations for model selection, regressions, and benchmarks.

Models

Dataset Viewer workflows

Fetch dataset metadata, split rows, filtered samples, and viewer API results for data tasks.

Models

Gradio app builder

Build and edit Gradio apps, demos, chatbots, layouts, and event listeners.

Frontend

Hugging Face CLI

Package model, dataset, and Space operations into a repeatable agent workflow.

Models

Hugging Face MCP

Use Hugging Face Hub MCP tools for models, datasets, Spaces, papers, and compute jobs.

Agents

Hugging Face Papers

Read paper metadata, linked models, datasets, Spaces, and project pages through the Papers API.

Docs