Agent skill

Huggingface Inference Guide

by wentorai in wentorai/research-plugins

Run NLP and CV model inference via Hugging Face free-tier API

MITAuto-check passedAI & LLM Engineering

Install Huggingface Inference Guide

skills CLI
$ npx skills add wentorai/research-plugins --skill huggingface-inference-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins huggingface-inference-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/domains/ai-ml/huggingface-inference-guide .claude/skills/huggingface-inference-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
huggingface-inference-guide
GitHub stars
298
Used in
1 other repo
Token cost
~2.1k tokens
SKILL.md length
443 words
Files
1
Skills in repo
405
Repo updated
First seen
Licence
MIT

At a glance

Run NLP and CV model inference via Hugging Face free-tier API

  • Tasks that involve Model hubs and datasets
  • SKILL.md covers Overview, Authentication, Core Endpoints and Common Research Patterns, plus 2 more sections
  • Calls curl and python3; reaches api-inference.huggingface.co; needs HF_API_TOKEN
  • Tasks that involve Natural language processing

What it does

Huggingface Inference Guide is an agent skill from wentorai/research-plugins. Run NLP and CV model inference via Hugging Face free-tier API

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Model hubs and datasets and Natural language processing. It works with Hugging Face. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Model hubs and datasets
  • Tasks that involve Natural language processing

Example prompts

  • “/huggingface-inference-guide”

Requirements

  • Python 3
  • A credential in HF_API_TOKEN

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api-inference.huggingface.co

    Also links to:

    • huggingface.co

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • HF_API_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Huggingface Inference Guide loads about 2.1k tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 443 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 443 words, ~2,106 tokens.

Download SKILL.mdSave it as .claude/skills/huggingface-inference-guide/SKILL.md (or your agent's skills folder).
name
huggingface-inference-guide
description
Run NLP and CV model inference via Hugging Face free-tier API

Hugging Face Inference API Guide

Overview

The Hugging Face Inference API provides instant access to thousands of pre-trained machine learning models for natural language processing, computer vision, audio processing, and multimodal tasks. Researchers can run inference on state-of-the-art models without managing infrastructure, GPU resources, or complex deployment pipelines.

The API hosts models from the Hugging Face Hub, which contains over 500,000 models contributed by the research community. This includes transformer models for text classification, named entity recognition, summarization, translation, question answering, text generation, and image classification. For academic researchers, the Inference API is invaluable for rapid prototyping, benchmark evaluation, and integrating ML capabilities into research workflows without dedicated compute resources.

The free tier provides access to a broad selection of models with rate limits suitable for development and small-scale research. An API token is required for authentication, available for free at huggingface.co.

Authentication

A free Hugging Face API token is required. Create an account and generate a token at https://huggingface.co/settings/tokens.

Store your token securely in an environment variable:

bash
export HF_API_TOKEN=$HF_API_TOKEN
bash
curl -X POST "https://api-inference.huggingface.co/models/bert-base-uncased" \
  -H "Authorization: Bearer $HF_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"inputs": "The goal of life is [MASK]."}'

Core Endpoints

Text Classification (Sentiment Analysis)
POST https://api-inference.huggingface.co/models/{model_id}
bash
curl -s -X POST \
  "https://api-inference.huggingface.co/models/distilbert-base-uncased-finetuned-sst-2-english" \
  -H "Authorization: Bearer $HF_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"inputs": "This research methodology provides robust and reproducible results."}' \
  | python3 -m json.tool
Named Entity Recognition
bash
curl -s -X POST \
  "https://api-inference.huggingface.co/models/dslim/bert-base-NER" \
  -H "Authorization: Bearer $HF_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"inputs": "Dr. Marie Curie conducted research at the University of Paris on radioactivity."}' \
  | python3 -m json.tool
Text Summarization
bash
curl -s -X POST \
  "https://api-inference.huggingface.co/models/facebook/bart-large-cnn" \
  -H "Authorization: Bearer $HF_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": "The study of quantum computing has seen tremendous advances in the past decade. Researchers have demonstrated quantum supremacy with processors containing over 100 qubits. Error correction remains a significant challenge, but recent breakthroughs in topological qubits and surface codes suggest viable paths forward. Applications in drug discovery, materials science, and cryptography are expected to be among the first practical use cases.",
    "parameters": {"max_length": 80, "min_length": 30}
  }' | python3 -m json.tool
Zero-Shot Classification

Classify text into arbitrary categories without fine-tuning.

bash
curl -s -X POST \
  "https://api-inference.huggingface.co/models/facebook/bart-large-mnli" \
  -H "Authorization: Bearer $HF_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": "New CRISPR technique enables precise gene editing in human stem cells",
    "parameters": {"candidate_labels": ["biology", "computer science", "physics", "economics"]}
  }' | python3 -m json.tool
Python Example: Batch Sentiment Analysis of Paper Abstracts
python
import requests
import os
import time

API_URL = "https://api-inference.huggingface.co/models/distilbert-base-uncased-finetuned-sst-2-english"
HEADERS = {"Authorization": f"Bearer {os.environ['HF_API_TOKEN']}"}

def classify_sentiment(texts):
    """Classify sentiment for a batch of texts."""
    response = requests.post(API_URL, headers=HEADERS, json={"inputs": texts})
    if response.status_code == 503:
        # Model is loading, wait and retry
        wait_time = response.json().get("estimated_time", 20)
        print(f"Model loading, waiting {wait_time:.0f}s...")
        time.sleep(wait_time)
        response = requests.post(API_URL, headers=HEADERS, json={"inputs": texts})
    response.raise_for_status()
    return response.json()

abstracts = [
    "Our results demonstrate a significant improvement over baseline methods.",
    "The proposed approach failed to achieve meaningful gains on the benchmark.",
    "We present preliminary findings that warrant further investigation.",
]

results = classify_sentiment(abstracts)
for abstract, result in zip(abstracts, results):
    top = max(result, key=lambda x: x["score"])
    print(f"Sentiment: {top['label']} ({top['score']:.3f})")
    print(f"  Text: {abstract[:80]}...")
    print()
Python Example: Research Paper Topic Classification
python
import requests
import os

ZSC_URL = "https://api-inference.huggingface.co/models/facebook/bart-large-mnli"
HEADERS = {"Authorization": f"Bearer {os.environ['HF_API_TOKEN']}"}

def classify_paper(abstract, categories):
    """Classify a paper abstract into research categories."""
    payload = {
        "inputs": abstract,
        "parameters": {"candidate_labels": categories}
    }
    resp = requests.post(ZSC_URL, headers=HEADERS, json=payload)
    resp.raise_for_status()
    return resp.json()

categories = [
    "machine learning",
    "computational biology",
    "natural language processing",
    "computer vision",
    "reinforcement learning",
    "quantum computing"
]

abstract = "We propose a novel transformer architecture for protein structure prediction that achieves state-of-the-art results on CASP benchmarks."
result = classify_paper(abstract, categories)

print("Topic classification:")
for label, score in zip(result["labels"], result["scores"]):
    bar = "#" * int(score * 40)
    print(f"  {label:<30} {score:.3f} {bar}")

Common Research Patterns

Literature Screening: Use zero-shot classification to automatically categorize and filter large collections of paper abstracts by research topic, methodology, or relevance to a specific research question.

Sentiment and Stance Detection: Analyze the tone and conclusions of research papers, review comments, or social media discussions about scientific topics using sentiment analysis models.

Named Entity Extraction: Extract researcher names, institutions, chemical compounds, gene names, and other domain-specific entities from unstructured text in papers and reports.

Automated Summarization: Generate concise summaries of lengthy research papers or grant proposals to accelerate literature review workflows.

Multilingual Research: Use translation and multilingual models to access and analyze research published in languages other than English.

Show full SKILL.md (130 more words)Show less

Rate Limits and Best Practices

  • Free tier: Rate-limited; approximately 1,000 requests per day depending on model and load
  • Model loading: Cold models may take 20-60 seconds to load; handle 503 responses with retry logic
  • Batch inputs: Send multiple texts as an array in a single request to improve throughput
  • Model selection: Use distilled or smaller variants (e.g., distilbert instead of bert-large) for faster inference
  • Timeouts: Set request timeouts to 60+ seconds for large models or first requests after cold start
  • Caching: Cache inference results for identical inputs to avoid redundant API calls
  • Pro tier: For production workloads, consider the Inference Endpoints or Pro subscription for dedicated resources

References

© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/domains/ai-ml/huggingface-inference-guide of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Huggingface Inference Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Huggingface Inference Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Huggingface Inference Guide this skillwentorai/research-plugins2981 repos~2.1kAutomated safety check: PassMIT
Hugging Face TokenizersOrchestra-Research/AI-Research-SKILLs13k6 repos~3.4kAutomated safety check: PassMIT
Hugging Face Transformers Usagedavila7/claude-code-templates32k11 repos~1.2kAutomated safety check: PassMIT
Searchtaishi-i/awesome-japanese-nlp-resources1k—~4.3kAutomated safety check: NotesCC0-1.0
Discovertaishi-i/awesome-japanese-nlp-resources1k—~6.5kAutomated safety check: NotesCC0-1.0
Transformers.jshuggingface/skills11k1 repos~6.2kAutomated safety check: PassApache-2.0

Similar skills

  • Hugging Face Tokenizers

    Orchestra-Research/AI-Research-SKILLs

    Shows how to load, train and use fast Hugging Face tokenizers, with BPE, WordPiece and Unigram models, padding, truncation and alignment tracking.

    13k GitHub starsUsed in 6 repos~3.4k tokens
    AI & LLM EngineeringAuto-check passed
  • Hugging Face Transformers Usage

    davila7/claude-code-templates

    Loads pre-trained Hugging Face Transformers models for text, vision and audio tasks, runs inference with pipelines and fine-tunes on custom datasets.

    32k GitHub starsUsed in 11 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Search

    taishi-i/awesome-japanese-nlp-resources

    Search all Japanese NLP resources (libraries, models, datasets, tutorials, dictionaries, Hugging Face).

    1k GitHub stars~4.3k tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check: notes
  • Discover

    taishi-i/awesome-japanese-nlp-resources

    Given a Japanese NLP GitHub repo/model/dataset (URL / owner/repo / tool name) OR a topic, find what's already in awesome-japanese-nlp-resources and discover related resources NOT yet listed…

    1k GitHub stars~6.5k tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check: notes
  • Transformers.js

    huggingface/skills

    Official

    Runs pre-trained Hugging Face models in JavaScript or TypeScript with Transformers.js, in browsers or Node.js, Bun and Deno, for text, vision, audio and multimodal tasks.

    11k GitHub starsUsed in 1 repo~6.2k tokens
    AI & LLM EngineeringAuto-check passed
  • LLM Benchmarking with lm-evaluation-harness

    Orchestra-Research/AI-Research-SKILLs

    Runs lm-evaluation-harness to benchmark language models on academic suites such as MMLU, GSM8K and HumanEval, compare models and track training checkpoints.

    13k GitHub starsUsed in 8 repos~3k tokens
    AI & LLM EngineeringAuto-check passed

More from wentorai/research-plugins

All 405 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Works with

Questions about Huggingface Inference Guide

What does Huggingface Inference Guide do?

Run NLP and CV model inference via Hugging Face free-tier API. Huggingface Inference Guide is an agent skill from wentorai/research-plugins.

When should I use Huggingface Inference Guide?

Huggingface Inference Guide fits situations like: tasks that involve Model hubs and datasets; tasks that involve Natural language processing.

How do I install Huggingface Inference Guide in Claude Code?

Run `npx skills add wentorai/research-plugins --skill huggingface-inference-guide -a claude-code`. Or copy the skill folder (skills/domains/ai-ml/huggingface-inference-guide in wentorai/research-plugins) into .claude/skills/huggingface-inference-guide in your project. Claude Code loads it when a task matches its description.

How do I install Huggingface Inference Guide in Codex?

Run `npx skills add wentorai/research-plugins --skill huggingface-inference-guide -a codex`. Or copy the skill folder (skills/domains/ai-ml/huggingface-inference-guide in wentorai/research-plugins) into .agents/skills/huggingface-inference-guide in your project. Codex loads it when a task matches its description.

Can I use Huggingface Inference Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill huggingface-inference-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/huggingface-inference-guide, .gemini/skills/huggingface-inference-guide, .github/skills/huggingface-inference-guide and .opencode/skills/huggingface-inference-guide in your project.

What does Huggingface Inference Guide need to run?

Going by SKILL.md and its folder, Huggingface Inference Guide needs the command-line tools its instructions call (curl and python3) and credentials named HF_API_TOKEN. Our summary lists: Python 3; A credential in HF_API_TOKEN.

Does Huggingface Inference Guide access the network?

SKILL.md names 2 domains. In commands or code: api-inference.huggingface.co; the agent is likely to contact it when it follows the instructions. As links in the text: huggingface.co. This is read from the text; nothing was executed.

Is Huggingface Inference Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Huggingface Inference Guide use?

Huggingface Inference Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Huggingface Inference Guide use?

About 2.1k tokens (SKILL.md is roughly 8.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Huggingface Inference Guide?

Skills that share tags, products or a category with Huggingface Inference Guide: Hugging Face Tokenizers (Orchestra-Research/AI-Research-SKILLs, 13k stars), Hugging Face Transformers Usage (davila7/claude-code-templates, 32k stars), Search (taishi-i/awesome-japanese-nlp-resources, 1k stars) and Discover (taishi-i/awesome-japanese-nlp-resources, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Huggingface Inference Guide?

wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.

Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.