/hf-publisher-tools:collectionsfrom hf-publisher-tools
Keep 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".
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 collections.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.
Owner: the one the user names, else HF_PUB_DEFAULT_OWNER, else the token's own username. HF_PUB_OWNERS lists the owners in scope.
The aim is that every model, dataset and Space sits in at least one of its owner's collections, filed when the repo is made. Run this after every create or publish.
S="${CLAUDE_PLUGIN_ROOT}/scripts/hf-hub.py"
python3 "$S" orphans <owner> # repos in none of the owner's collections
python3 "$S" collections <owner> # slug, title, private, items of each
python3 "$S" collection-add <slug> <model|dataset|space> <owner/name> [note]
python3 "$S" collection-new <owner> "<Title>" public [description] # only when none fits
python3 "$S" collection <slug> # one collection: items with position, note, item_id
python3 "$S" collection-find <model|dataset|space> <owner/name> # every collection holding it, any owner
python3 "$S" collection-item <slug> <type> <owner/name> [--note TEXT] [--position N]
python3 "$S" collection-remove <slug> <type> <owner/name> # takes it out; the repo is untouched
python3 "$S" collection-update <slug> [--title T] [--description D] [--public|--private] [--position N]
python3 "$S" collection-delete <slug> --yes # confirm with the user first
<slug> is the full owner/title-slug-<hex> from collections. 200 = added, 409 = already there.
Behaviour verified live 2026-10-25 with a probe collection, since deleted:
<hex> stays, and the old slug still works for GET (307), but
PATCH and DELETE on it answer 307 and do nothing. The script resolves the current slug first, so
either works. collection-update returns the new one.--position (0 = first).collection-delete removes the collection only, not its repos. It is still the user's curation, so
confirm before running it. Removing a single item needs no confirmation when the user asked for it.If the user's profile or notes name a website or index that mirrors collections, refresh it after a rename, merge or delete. Before deleting a collection, snapshot it, confirm its items reached the target, and search the user's own sites and repos for its slug: live pages may link to it.
orphans <owner> and report what's left. Expected leftovers: an org's README
Space (the org card) and repos the user marked retired and awaiting deletion.Bundling a given list of things around a purpose ("make a collection of these") is hf-research:bundle-collection.
Adding a third-party repo (someone else's model) works the same way with its owner/name.
Reads profile.env and collections.md from the data folder. Writes nothing there; changes go to the Hub.
What SKILL.md sets; muted values are Claude Code's defaults
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-tools21 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./complementary-pluginsList and install plugins that complement hf-publisher-tools: data-utils. Use on "what goes with this plugin", "related plugins".Other plugins' skills for the same job