hf
Skill13 starsChanged 4 days agoMITView on GitHub
Operate Hugging Face models, datasets, Spaces, and jobs with hf.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- fmind/dotfilesword for word, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 1
- fmind/dotfiles★ 13100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dot_agents/AGENTS.mdAGENTS.md
- skills/repository-docs/references/agents.mdAGENTS.md
- chezmoiSkill
- dot-developmentSkill
- dot-releaseSkill
- dot-skillsSkill
- dot-verifySkill
- acliSkill
- agent-evaluationSkill
- agent-frameworksSkill
- agent-harnessesSkill
- agent-projectSkill
- agent-protocolsSkill
- agySkill
- airflowSkill
- auth-statusSkill
- awsSkill
- bfSkill
- chrome-devtoolsSkill
- clipboardSkill
- cloud-runSkill
- code-securitySkill
- colabSkill
- databricksSkill
- diagrams-as-codeSkill
- dockerSkill
- documentation-siteSkill
- dot-cliSkill
- dprintSkill
- draft-docSkill
- draft-mailSkill
- duckdbSkill
- fmind-visualsSkill
- full-reviewSkill
- gcloudSkill
- ghSkill
- git-deliverySkill
- github-actionsSkill
- github-issuesSkill
- github-pull-requestSkill
- github-repositorySkill
- google-developerSkill
- gwsSkill
- infra-as-codeSkill
- kaggleSkill
- kubernetesSkill
- lesson-learnedSkill
- mcp-setupSkill
- miseSkill
- model-providersSkill
- playwrightSkill
- project-scaffoldingSkill
- python-mlopsSkill
- python-stackSkill
- python-webSkill
- repository-docsSkill
- scheduled-jobsSkill
- skillifySkill
- <name>Skill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Use hf for Hub operations from the shell.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Resolve the account:
hf auth whoami; log in withhf auth loginor passHF_TOKENthrough the environment. Never runhf auth tokenin a transcript or log. - Read before writing:
hf models info <repo-id>,hf models card <repo-id>,hf models ls --sort downloads --limit 10, and thedatasetsandspacestwins answer most questions without a download;hf datasets sqlqueries a dataset's Parquet files with DuckDB in place. 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>- Inspect cache use before cleanup:
hf cache lsandhf cache prune --dry-runshow retained data and proposed deletions. Remove only recorded task-owned disposable entries after checking consumers: preview withhf cache rm <repo-id-or-revision> --dry-run, then rerun with--yes, because agent and non-interactive runs cannot answer its confirmation prompt; broad pruning of shared revisions or incomplete downloads requires explicit cleanup scope.HF_HOMErelocates the cache for future operations. - Upload with authority:
hf repos create <repo-id> --privatethenhf upload <repo-id> <local-path> --private;hf uploadcreates a missing repository with the account's default visibility unless--privateis set. Confirm repository, visibility, and license before the first push, then verify withhf models infoorhf repos ls. Buckets are public unless the organization's default is private: create them withhf buckets create <bucket> --private, previewhf syncwith--dry-run, and pass--deleteonly when removing destination files is authorized. - Run remote compute with authority:
hf jobs runandhf jobs uv runbill by hardware flavor; preview the resolved flavor, timeout, and volumes with--dry-run, then watchhf jobs logsandhf jobs ps. Pass secrets by name (--secrets HF_TOKENreads the local environment), never asNAME=value, and never use--expose-public, which serves a port without authentication, unless that exposure is authorized.hf sandboxVMs run on Jobs andhf endpoints deploycreates hourly-billed Inference Endpoints, so they need the same authority; release what you started withhf jobs cancel,hf sandbox kill, orhf endpoints pause.
Gotchas
- Use
hf, nothuggingface-cli:hfreplacedhuggingface-cli; the mise tool ispypi:huggingface_hub. - Size large transfers before downloading: inspect file selection and disk headroom before a download; use
--include/--excludewhen only part of a repository is needed, andhf download <repo-id> --dry-runto list the files, sizes, and total without downloading. Verify a downloaded revision withhf cache verify <repo-id> --revision <sha>(and--local-dirwhen used); add--fail-on-missing-filesonly when the complete revision was intended. This verifies downloaded bytes, not remote upload completion. - Pin a revision: pass
--revision <sha>for reproducible downloads; anything loaded withtrust_remote_codeis third-party code to review first. - Pass
--desttohf skills add: without it, the command also symlinks each skill into.claude/skills(~/.claude/skillswith--global), creating that directory in projects that lack it; since 2.3.0 it skips the link when that directory already resolves to.agents/skills.
Official Skills
Upstream: huggingface/skills. Follow the shared vendor-skill policy to review and install marketplace packages from an immutable snapshot. Native marketplace hf skills add <name> and unqualified hf skills update fetch mutable content without a revision pin; they do not implement that policy. Use native generation only for the hf-cli skill, which comes from the installed CLI, and review it before installing or refreshing at project scope:
hf skills list
hf skills preview # review the generated CLI skill
hf skills add --dest .agents/skills # the CLI skill
hf skills update hf-cli --dest .agents/skills # refresh only the generated CLI skillDocumentation
- hf CLI guide · huggingface/skills
- Releases: huggingface_hub
- Companion skills: kaggle, colab, python-stack.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

