hf

hf is a skill for Claude Code, Codex from fmind/dot. It costs 17 tokens per session (1,140 once invoked), scanned A, original, MIT.

A command-line tool for working with Hugging Face Hub models, datasets, and Spaces, including downloads, uploads, caching, and jobs.

In plain words
What is it for?
Use it to inspect repositories, download models or datasets, manage cached files, create repositories, upload files, and run Hugging Face jobs.
Why use it?
It keeps Hub operations, authentication, and local cache management in one terminal workflow, while adding checks around uploads and paid jobs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to inspect repositories, download models or datasets, manage cached files, create repositories, upload files, and run Hugging Face jobs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fmind/dot/hf
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 fmind/dot --skill hf
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

Made for: Claude Code, Codex.

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 hf

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/hf/github.svg)](https://agentmods.dev/skills/fmind/dot/hf)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/hf"><img src="https://agentmods.dev/badge/skills/fmind/dot/hf/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 hf

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/hf"><img src="https://agentmods.dev/badge/skills/fmind/dot/hf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,140 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.00017 $0.01140
Opus 5.5 $0.00007 $0.00456
Sonnet 5.5 $0.00003 $0.00228
Haiku 4.5 $0.00002 $0.00114

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

Security

Grade A, and why

hf 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 7d 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.

skills/hf/SKILL.md · 55 lines

How it starts

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

Hugging Face CLI

Use hf for Hub operations from the shell. The CLI generates its own command skill from the installed version; this skill owns authentication, cache hygiene, and the authority boundary around uploads and paid jobs.

Workflow

  1. Resolve the account: hf auth whoami; log in with hf auth login or pass HF_TOKEN through the environment. Never run hf auth token in a transcript or log.

  2. Read before writing: hf models info <repo-id>, hf models card <repo-id>, hf models ls --sort downloads --limit 10, and the datasets and spaces twins answer most questions without a download.

  3. Download into an ignored directory: gated repositories need the license accepted on the website first.

    hf download <repo-id> --local-dir models/<name>
    hf download <owner>/<dataset> --repo-type dataset --local-dir data/<name>
    
  4. Inspect cache use before cleanup: hf cache ls and hf cache prune --dry-run show retained data and proposed deletions. Remove only recorded task-owned disposable entries with hf cache rm <repo-id-or-revision> after checking consumers; broad pruning of shared revisions or incomplete downloads requires explicit cleanup scope. HF_HOME relocates the cache for future operations.

  5. Upload with authority: hf repos create <repo-id> --private then hf upload <repo-id> <local-path> --private; hf upload creates a missing repository with the account's default visibility unless --private is set. Confirm repository, visibility, and license before the first push, then verify with hf models info or hf repos ls.

  6. Run remote compute with authority: hf jobs run and hf jobs uv run bill by hardware flavor; confirm the flavor and timeout, then watch hf jobs logs and hf jobs ps. hf sandbox VMs run on Jobs and hf endpoints deploy creates hourly-billed Inference Endpoints, so they need the same authority; release what you started with hf sandbox kill or hf endpoints pause.

Read the full file on GitHub · 55 lines

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. 7d ago Changed · -1 lines 3e409fe5ec56
  2. 14d ago Changed fbdf3311b244
  3. 15d ago Changed · +1 lines · -2 tokens per session 39cb60a70d03
  4. 17d ago Changed · +1 lines e110cc7347d9
  5. 23d ago Changed b57d93c48fe4
  6. 1mo ago Changed · +1 lines · -23 tokens per session d2b763e40d23
  7. 1mo ago Changed · +1 lines 49746b9cb06c
  8. 1mo ago Changed 6768ec4cff9b
  9. 1mo ago First seen · 52 lines · 42 tokens per session scan A 8b6bae80f690

Subscribe to this mod's changes

hf is a skill published in the GitHub repository fmind/dot (12 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 1,140 once invoked, about $0.0001 per session on Opus 5.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-09-03.

Related

Other skills, from other repositories

agent-evaluation

Evaluate stochastic LLM/RAG/model/retrieval/tool agents in trials. Compare baseline/candidate on development/sealed holdouts with calibrated deterministic/model/trace graders; measure reliability, variance, leakage, safety, and cost.

fmind/dotfiles · 49 tokens

prompt-design

Design production LLM or agent prompt stacks: instructions, tool contracts, examples, outputs, and runtime context. Use for precedence, conflicts, dynamic or untrusted context; prove behavior with agent-evaluation.

fmind/dotfiles · 44 tokens

dotfiles-bootstrap

Bootstrap a workstation with the dotfiles framework. Takes a GitHub user / owner+repo / explicit clone URL and runs dot init (which shells out to chezmoi) with the right safety prompts. Honors the active agent profile (ask / plan / apply / audit) so it defaults to dry-run in safer modes and full apply in apply.

sebastienrousseau/dotfiles · 88 tokens

vibe

Delegate a coding task to a cheap AI model (Mistral Vibe by default, but any provider Vibe knows about — DeepSeek, Gemini Flash, etc.) and supervise the result via git diff. Claude orchestrates, the cheap model codes. Claude consumes 500-1500 tokens per delegation regardless of how many file reads the delegate does…

sebastienrousseau/dotfiles · 137 tokens

prompt-engineering

Draft, review, or improve a prompt for an LLM or agent against a research-backed rubric — explicit instructions, instruction/data separation, output contracts, reasoning scaffolds, grounding, verification, and evals. Use when writing a prompt, auditing one that misbehaves, or explaining a prompting principle.

martinemde/dotfiles · 0 tokens

go-stack

Build Go projects, libraries, CLIs, TUIs, web apps, or ADK agents with the standard package layout and pinned tooling.

fmind/dotfiles · 31 tokens