/hf-publisher-tools:hub-inventoryfrom hf-publisher-tools
Export a snapshot of every Hugging Face model, dataset and Space the user owns (their account plus orgs where they are admin/write) as three CSVs, models.csv, datasets.csv and spaces.csv, in a dated folder, one row per repo with visibility, owner, name, created, last updated, gating, licence, DOI and type-specific columns. Use when the user says "export my HF repos", "dump my models and datasets", "HF inventory", "list everything on Hugging Face", or before any sweep over their datasets or models (audio-parquet-standardise starts from it).
Ships in hf-publisher-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Find the data folder (see shared/settings.md: $HF_PUB_HOME, $CLAUDE_USER_DATA/hf-publisher-tools/, then ~/.claude-user-data/hf-publisher-tools/). Read profile.env and hub-inventory.md there if they exist. They win over the defaults below, and comments in profile.env are instructions. With no profile, use the defaults below and offer setup at the end.
Output folder: $HF_PUB_EXPORT_DIR/<date>/ (default <data folder>/exports/<date>/).
Owners: HF_PUB_OWNERS if set, else the username plus every org with role admin/write.
S="${CLAUDE_PLUGIN_ROOT}/scripts/hf-hub.py"
OUT="$(python3 "$S" profile | python3 -c 'import json,sys; print(json.load(sys.stdin).get("HF_PUB_EXPORT_DIR",""))')"
[ -n "$OUT" ] || OUT="$(python3 "$S" home | python3 -c 'import json,sys; print(json.load(sys.stdin)["data_dir"])')/exports"
python3 "$S" inventory "$OUT/$(date +%F)" # user + admin/write orgs
python3 "$S" inventory "$OUT/$(date +%F)" <owner> ... # or only the owners named
If the profile says the token comes from a wrapper, run the command through it.
The command makes one paged GET /api/{models,datasets,spaces}?author=<owner>&full=true call per owner and
kind, so it is safe to run at any time. Default owners come from whoami-v2: the user plus every org whose
role is admin or write. Orgs where the user is only a member are left out.
<export dir>/YYYY-MM-DD/)| File | Columns |
|---|---|
models.csv | id, owner, owner_type (user/org), name, visibility, gated, created, last_modified, downloads, likes, license, doi, pipeline_tag, library, base_model |
datasets.csv | the same first twelve columns, then modalities, formats, task_categories, size_category |
spaces.csv | the same first twelve columns, then sdk |
Every file ends with a sha column (Hub head commit at export time, from the list call, kept last so
earlier field numbers don't move). Backup-comparison tools can use it.
Dates are YYYY-MM-DD. Multi-valued cells are ;-joined. modalities/formats come from the
Hub's auto tags (modality:audio, format:audiofolder), which the dataset viewer sets. A dataset
whose viewer never ran has them empty, so an empty value means "unknown", not "none". Rows are
sorted by owner, then name.
A same-day rerun overwrites that day's folder. Earlier folders stay, so two snapshots can be
diffed (diff <(cut -d, -f1,5 a/datasets.csv) <(cut -d, -f1,5 b/datasets.csv)).
If the export dir is in a git repository, commit only the new dated folder. Give the user the counts and
the path. The list endpoint carries no file list for datasets (the siblings field is missing, checked
2026-10-30). Anything that needs a dataset's files goes through hf-hub.py audio-layout or the tree API,
one call per repo.
Exports are written to $HF_PUB_EXPORT_DIR/<date>/ (default <data folder>/exports/<date>/). Private notes for this skill go in <data folder>/hub-inventory.md; shared settings in <data folder>/profile.env. Nothing personal is stored in the plugin.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
21 skills in this plugin
/access-requestsReview and decide access requests on your gated Hugging Face models and datasets. Lists every gated repo under your owners with pending requests and their form answers, shows them with a neutral reading (or against your own acceptance policy), and accepts or rejects only the users you name. Also gives a history of requests over the last N days. Use when asked who has requested access, to check, approve or reject access requests, or after a release./audio-parquet-standardiseStandardise a user's Hugging Face audio datasets on parquet. Find their audio datasets from the latest hub-inventory export, check each one's file layout, and convert any that still hold loose audio files (wav/flac/mp3, audiofolder layouts, ad-hoc folders) into parquet shards with an embedded Audio column. Verify each against its source, remove the loose files, and repeat until none are left. Use when the user says "convert my audio datasets to parquet", "standardise audio datasets", "any audio datasets still loose files?", "parquet sweep", or after a new audio dataset is published as individual files./collectionsKeep a user's Hugging Face collections current: list an owner's collections, find models, datasets and Spaces that are in none of them, find which collections hold a repo, create a collection, add, remove, annotate or reorder items, rename or re-describe a collection, change its visibility, delete it. Works for the user and every org they belong to. Use after creating or publishing any Hub repo, or on "update the collections", "add it to a collection", "what isn't in a collection", "which collection is X in", "take X out of", "rename the collection", "reorder", "delete the collection".hf-publisher-tools@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin hf-publisher-tools