MACHINE LEARNING / huggingface
Hugging Face API Tool Builder
Create reusable CLI scripts that inspect Hub API shapes and compose metadata requests into JSON/NDJSON pipelines.
“Use 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”
01 / THE REASONING
Why this made the selection.
- It builds a reusable script against the Hugging Face HTTP API and tells that script to send HF_TOKEN as a bearer header.
- It forbids reading the whole OpenAPI document in one pass because the file is too large.
- Requires help text, usage examples and testing of non-destructive scripts.
- Includes a streaming model-metadata helper with per-ID error output.
02 / THE REVIEW RECORD
What we actually inspected.
Source review has boundaries.
A clear record is more useful than a “safe” badge.
Material inspected
- skills/huggingface-tool-builder/SKILL.md
- skills/huggingface-tool-builder/references/hf_enrich_models.sh
- README.md
- LICENSE
Our findings
- The skill's purpose is to create a reusable script that fetches or enriches Hugging Face data.
- Authenticated calls use the HF_TOKEN environment variable as an Authorization bearer header.
- The skill says not to read https://huggingface.co/.well-known/openapi.json directly.
- It does not replace the hf CLI; it also points at hf --help for repository operations.
- hf_enrich_models.sh emits one JSON object per ID and continues after empty/invalid/error responses.
- The helper uses optional bearer auth and normalizes missing numeric fields, which is explicitly disclosed here.
Not established by this review
- The resource was not executed and its tools were not called.
- No skill execution, authenticated service operation, or outcome benchmark was performed.
The review applies to the material and revision named here. A newer upstream release can change its behavior.
03 / PUT IT TO WORK
Add a skill to your workflow.
DOCUMENTED COMMAND
npx skills add huggingface/skills/skills/huggingface-tool-builder Run in your terminal to choose your AI tools, project or global scope, and installation method. This short command follows the current upstream version; the review covers the revision shown above.
Optional: install the reviewed revision
Keeps the original source and installer version where recorded, while leaving your AI tools and installation scope for you to choose.
npx skills add https://github.com/huggingface/skills/tree/c3ff942be3e07116b475253f0a8fc4f54682c1a8/skills/huggingface-tool-builder - Install the pinned skill directory interactively, retaining its bundled references and scripts.
- Inspect a small representative API response and only the relevant OpenAPI section.
- Adapt a helper, preserve HF_TOKEN handling and test a small read-only input including an error case.
Before you start
- Bash/curl/jq for shell helpers, or the chosen Python/TS runtime
- HF_TOKEN for authorized gated/private access
04 / FOLLOW THE EVIDENCE
The source trail.
Our notes are separate from the original resource.
Check upstream before adopting a new version.
- Pinned skill definition ↗Checked
https://github.com/huggingface/skills/blob/c3ff942be3e07116b475253f0a8fc4f54682c1a8/skills/huggingface-tool-builder/SKILL.md
Supports: summary, whySelected, bestFor, limitations, install, access, review
https://github.com/huggingface/skills/blob/c3ff942be3e07116b475253f0a8fc4f54682c1a8/README.md
Supports: install
- Apache-2.0 licence ↗Checked
https://github.com/huggingface/skills/blob/c3ff942be3e07116b475253f0a8fc4f54682c1a8/LICENSE
Supports: license
https://github.com/huggingface/skills/blob/c3ff942be3e07116b475253f0a8fc4f54682c1a8/skills/huggingface-tool-builder/references/hf_enrich_models.sh
Supports: review, limitations, access, install