/utopia-product:huggingface-tool-builderfrom utopia-product
Writes reusable Python, shell or TypeScript scripts that fetch, chain, enrich and export Hugging Face Hub API data: top or trending models by task, licenses, base models, linked papers, model- card metadata, to CSV or JSON. Use when the user wants a script that pulls models, datasets or Spaces data from the HF API, especially one to rerun weekly or automate. Not for one-off downloads or uploads (use hf-cli).
Ships in utopia-product. 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.
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.
Make sure to follow these rules:
--help command line argument to describe their inputs and outputsHF_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.Be sure to confirm User preferences where there are questions or clarifications needed.
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 — bashreferences/baseline_hf_api.py — pythonreferences/baseline_hf_api.tsx — typescript executableComposable 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})'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
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.
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.
references/baseline_hf_api.py (opens in a new tab)references/baseline_hf_api.sh (opens in a new tab)references/baseline_hf_api.tsx (opens in a new tab)references/find_models_by_paper.sh (opens in a new tab)references/hf_enrich_models.sh (opens in a new tab)references/hf_model_card_frontmatter.sh (opens in a new tab)references/hf_model_papers_auth.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
134 skills in this plugin
/ab-test-analysisAnalyzes A/B and split test results: conversion rates, lift, p-value, confidence interval, sample size, sample ratio mismatch and a ship / extend / stop call. Use when the user pastes control and variant numbers, asks if a test is significant, whether the lift is real, or whether to ship the variant. Not for designing what to test (use probe-matrix)./agent-concierge-probeRunbook for having an AI agent run a real, mapped task end to end on several cases, producing cost per outcome priced to the cent and a frontier map of steps it does unaided vs needs a human. Use when the user wants to know what one outcome costs, whether a service can be automated, or what the agent cannot do alone. Not for the founder delivering by hand to test willingness to pay (use concierge-probe)./agent-designProduces a four-part spec for one production agent: role (one owned decision), tools, memory layer (CLAUDE.md, skills, lessons.md, trace archive) and eval. Use when a fellow says design an agent for X, asks what tools and memory an agent needs, or says the agent never remembers corrections. Not for multi-agent fleets and hand-offs (use workflow-design)./agents-md-writerWrites AGENTS.md, CLAUDE.md-style context and .cursorrules or .cursor/rules so coding agents (Claude Code, Cursor, Codex, Copilot) understand a repo's stack, commands, structure, conventions and boundaries. Use when the user asks to write or improve AGENTS.md, CLAUDE.md or .cursorrules, make a repo AI-native or agent-friendly, or onboard coding agents to a codebase. Not for general repo cleanup (use repo-structurer)./ai-solution-proposal-canvasBuilds a one-page proposal canvas for an AI product or feature: business and customer outcomes, problem, solution hypothesis, positioning, assumptions, PESTEL risks, value case and success metrics. Use when the user is proposing an AI feature to executives, pitching for budget, or deciding whether an AI solution deserves investment. Not for a lens-by-lens go/no-go on a concept (use concept-four-lenses-test)./analytics-trackingWrites and audits analytics tracking plans: event names and properties, naming conventions, UTM parameters, conversion and funnel events, and GA4, GTM, Mixpanel, Amplitude, PostHog or Segment setup. Use when the user asks for a tracking plan, event tracking for a launch, conversion or attribution tracking, UTMs, or says events are not firing. Not for the dashboard spec and alert thresholds (use metrics-dashboard).npx claudepluginhub the-utopia-studio/skills --plugin utopia-product