tooluniverse-ml-inference-utility

tooluniverse-ml-inference-utility is a skill for Claude Code from mims-harvard/ToolUniverse. It costs 0 tokens per session (3,860 once invoked), scanned A, original, Apache-2.0.

A utility for sending text, image, and other supported inputs to machine-learning models hosted on Hugging Face, a model-sharing platform. It supports tasks such as classification, summarisation, text embeddings, and masked-word prediction, but requires a valid Hugging Face access token in practice.

In plain words
What is it for?
Use it to classify text, summarise retrieved material, compare text by embeddings, classify images, or run other supported inference tasks with a Hugging Face model.
Why use it?
It provides common model-based processing without requiring you to run each model locally. The token requirement is important because requests fail without a working account token and access to the chosen model.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the tooluniverse plugin — 162 skills, 8 commands, 1 agent, 1 hook, 1 MCP server shipped together

Good fit Use it to classify text, summarise retrieved material, compare text by embeddings, classify images, or run other supported inference tasks with a Hugging Face model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mims-harvard/tooluniverse/tooluniverse-ml-inference-utility
About the project

ToolUniverse is a collection of tools, interfaces, and supporting components for building AI systems that perform scientific work. It is for developers creating AI scientist agents that use APIs, databases, machine-learning tools, and domain-specific utilities. The catalogue includes skills, commands, an MCP server, an agent, and a hook for working with the ecosystem.

mims-harvard/ToolUniverse · 1,744 stars · on GitHub · aiscientist.tools

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mims-harvard/ToolUniverse --skill tooluniverse-ml-inference-utility
Clone the repo
git clone --depth 1 https://github.com/mims-harvard/ToolUniverse

Made for: Claude Code.

Or install tooluniverse, the plugin that ships this one along with the rest of its 162 skills, 8 commands, 1 agent, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tooluniverse-ml-inference-utility

README.md
[![agentmods](https://agentmods.dev/badge/skills/mims-harvard/tooluniverse/tooluniverse-ml-inference-utility/github.svg)](https://agentmods.dev/skills/mims-harvard/tooluniverse/tooluniverse-ml-inference-utility)
Your own site
<a href="https://agentmods.dev/skills/mims-harvard/tooluniverse/tooluniverse-ml-inference-utility"><img src="https://agentmods.dev/badge/skills/mims-harvard/tooluniverse/tooluniverse-ml-inference-utility/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tooluniverse-ml-inference-utility

Your own site · 80×15
<a href="https://agentmods.dev/skills/mims-harvard/tooluniverse/tooluniverse-ml-inference-utility"><img src="https://agentmods.dev/badge/skills/mims-harvard/tooluniverse/tooluniverse-ml-inference-utility.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,860 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.03860
Opus 5.5 $0.00000 $0.01544
Sonnet 5.5 $0.00000 $0.00772
Haiku 4.5 $0.00000 $0.00386

Measured 10d ago against content hash ae4213917c21, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tooluniverse-ml-inference-utility scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/tooluniverse-ml-inference-utility/SKILL.md · 235 lines

How it starts

The opening of the file, as written. The whole thing — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generic ML/NLP/Vision Inference (HuggingFace)

Run any HuggingFace-hosted model for a standard inference task via ToolUniverse's 10 HFInference_* tools. This is a utility skill: reach for it as a supporting step inside another workflow (e.g. summarizing a batch of retrieved abstracts, extracting entities from clinical text, embedding sentences for a similarity search) rather than treating it as a research domain in its own right.

Honesty contract (read first) — the token requirement is not actually optional

Every tool's own JSON description says HF_TOKEN is an optional API key that merely "raises rate limits." Live testing on this date contradicts that: all 10 tools, tested against the exact model IDs in their own test_examples, fail with the identical error with no token set:

$ tu test HFInference_classify_text
✗ example 1  tool returned error: Unauthorized for
  distilbert/distilbert-base-uncased-finetuned-sst-2-english. The model may be
  gated/private; set a valid HF_TOKEN with access.

This reproduces across text and vision tools alike, and a dummy/invalid token produces the exact same Unauthorized message (confirmed live) — so this is a "needs a real, valid HuggingFace access token" requirement, not a cosmetic rate limit. Treat HF_TOKEN as required in practice even though the tool schema calls it optional:

  1. Check for HF_TOKEN before promising a result. If it's unset, tell the user plainly that HuggingFace's serverless inference now requires a token, point them to https://huggingface.co/settings/tokens to create a free one (a read-scope token is sufficient), and stop rather than guessing an output.
  2. Never fabricate a classification, embedding, summary, or entity list. If the call fails, report the failure — do not describe what a model would probably say.
  3. A working call can still fail per-model. Some models are gated (require accepting a license on the HuggingFace model page even with a valid token) or cold (first call after inactivity can 503 — retry once with wait_for_model: true before concluding a model is broken).

Read the full file on GitHub · 235 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 235 lines · 0 tokens per session scan A ae4213917c21

Subscribe to this mod's changes

tooluniverse-ml-inference-utility is a skill published in the GitHub repository mims-harvard/ToolUniverse (1,744 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 3,860 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-07.

Related

Other skills, from other repositories

external-repo-setup

Protocol for GPU agents to clone external GitHub repos, install their dependencies, download pretrained weights, and integrate them as featurizers or models inside a focus-area train.py. Use this when a proposal references a GitHub repo or pretrained checkpoint that is not already present in the focus-area workspace.

mims-harvard/AutoScientists · 65 tokens

hugging-face-datasets

Create and manage datasets on Hugging Face Hub. Supports initializing repos, defining configs/system prompts, streaming row updates, and SQL-based dataset querying/transformation. Designed to work alongside HF MCP server for comprehensive dataset workflows.

patchy631/ai-engineering-hub · 49 tokens

thinking-out-loud

A contract for what the agent does when a long, messy, stream-of-consciousness ramble arrives (usually voice dictation): act on nothing until the echo brief is approved. The echo audits the entire transfer, mission, locked decisions and constraints, open questions, flips and parked tangents, with the model's…

Shubhamsaboo/awesome-llm-apps · 206 tokens

pydantic-ai

Build production-ready AI agents with PydanticAI — type-safe tool use, structured outputs, dependency injection, and multi-model support.

davila7/claude-code-templates · 32 tokens

capacity

Discovers available Azure OpenAI model capacity across regions and projects. Analyzes quota limits, compares availability, and recommends optimal deployment locations based on capacity requirements. USE FOR: find capacity, check quota, where can I deploy, capacity discovery, best region for capacity, multi-project…

microsoft/skills · 105 tokens

airunway-aks-setup

Set up AI Runway on AKS — from bare cluster to running model. Covers cluster verification, controller install, GPU assessment, provider setup, and first deployment. WHEN: "setup AI Runway", "onboard AKS cluster", "install AI Runway", "airunway setup", "deploy model to AKS", "GPU inference on AKS", "KAITO setup on…

microsoft/skills · 121 tokens