hugging-face-jobs

hugging-face-jobs is a skill for Claude Code, Codex from bcastelino/agent-skills-kit. It costs 50 tokens per session (3,034 once invoked), scanned A, original, MIT.

A guide for running workloads on Hugging Face’s managed cloud computers, including CPUs, GPUs, and TPUs. Hugging Face is a platform for running and sharing machine-learning models and data.

In plain words
What is it for?
Use it to submit cloud jobs, choose hardware, estimate costs, authenticate with a token, schedule recurring work, and save results to the Hugging Face Hub.
Why use it?
It removes the need to prepare local hardware for batch processing, experiments, model training, or other Python workloads.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to submit cloud jobs, choose hardware, estimate costs, authenticate with a token, schedule recurring work, and save results to the Hugging Face Hub.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bcastelino/agent-skills-kit/hugging-face-jobs
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 bcastelino/agent-skills-kit --skill hugging-face-jobs
Clone the repo
git clone --depth 1 https://github.com/bcastelino/agent-skills-kit

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin hugging-face-jobs/plugin install hugging-face-jobs after adding the marketplace above.

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 hugging-face-jobs

README.md
[![agentmods](https://agentmods.dev/badge/skills/bcastelino/agent-skills-kit/hugging-face-jobs/github.svg)](https://agentmods.dev/skills/bcastelino/agent-skills-kit/hugging-face-jobs)
Your own site
<a href="https://agentmods.dev/skills/bcastelino/agent-skills-kit/hugging-face-jobs"><img src="https://agentmods.dev/badge/skills/bcastelino/agent-skills-kit/hugging-face-jobs/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 hugging-face-jobs

Your own site · 80×15
<a href="https://agentmods.dev/skills/bcastelino/agent-skills-kit/hugging-face-jobs"><img src="https://agentmods.dev/badge/skills/bcastelino/agent-skills-kit/hugging-face-jobs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,034 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.00050 $0.03034
Opus 5 $0.00025 $0.01517
Sonnet 5 $0.00010 $0.00607
Haiku 4.5 $0.00005 $0.00303

Measured 12d ago against content hash 9115ef60c4d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

hugging-face-jobs 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 12d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/cot-self-instruct.py, scripts/finepdfs-stats.py, scripts/generate-responses.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/hugging-face-jobs/SKILL.md · 313 lines

How it starts

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

Running Workloads on Hugging Face Jobs

Overview

Run any workload on fully managed Hugging Face infrastructure. No local setup required: jobs run on cloud CPUs, GPUs, or TPUs and can persist results to the Hub.

Common use cases: Data Processing, Batch Inference, Experiments & Benchmarks, Model Training (see model-trainer skill for TRL-specific), Synthetic Data Generation, Development & Testing, Scheduled Jobs.

When to Use This Skill

  • Run Python workloads on cloud infrastructure
  • Execute jobs without local GPU/TPU setup
  • Process data at scale or run batch inference
  • Schedule recurring tasks
  • Persist results to the Hugging Face Hub

Key Directives

  1. Always use hf_jobs() MCP tool: hf_jobs("uv", {...}) or hf_jobs("run", {...}). Pass script content as a string; do NOT save to local files unless asked.
  2. Always handle authentication: Hub operations require HF_TOKEN via secrets. See references/token_usage.md.
  3. Provide job details after submission: job ID, monitoring URL, estimated time.
  4. Set appropriate timeouts: default 30 min may be insufficient.

Prerequisites

  • HF Account with Pro, Team, or Enterprise plan
  • Authenticated: verify with hf_whoami()
  • For Hub operations: secrets={"HF_TOKEN": "$HF_TOKEN"} (never hardcode tokens)

Full token guide: references/token_usage.md


Quick Start

Approach 1: UV Scripts (Recommended)

UV scripts use PEP 723 inline dependencies for clean, self-contained workloads.

hf_jobs("uv", {
    "script": """
# /// script
# dependencies = ["transformers", "torch"]
# ///
from transformers import pipeline
result = pipeline("sentiment-analysis")("I love Hugging Face!")
print(result)
""",
    "flavor": "cpu-basic",
    "timeout": "30m"
})

CLI: hf jobs uv run my_script.py --flavor cpu-basic --timeout 30m Python API: run_uv_job("my_script.py", flavor="cpu-basic", timeout="30m")

Read the full file on GitHub · 313 lines

Files

What ships with it

7 files 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. 12d ago First seen · 313 lines · 50 tokens per session scan A 9115ef60c4d7

Subscribe to this mod's changes

hugging-face-jobs is a skill published in the GitHub repository bcastelino/agent-skills-kit (2 stars, last pushed 1mo ago), licensed MIT. It adds 50 tokens to every session and 3,034 once invoked, about $0.0003 per session on Opus 5. 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-08-31.