/hf-publisher-tools:sentence-collectionsfrom hf-publisher-tools
Add datasets to the user's text-only sentence lists on Hugging Face and check their length balance. Third-party sets go in the "Sentence Datasets - Third Party" collection, the user's own in "Sentence Datasets - Mine". Use on "add this to the sentence datasets", "add to the third-party sentences", "add to my sentence list", "is the sentence list balanced", "find more paragraph-length sets". Updating the consolidated list is `sentence-collections-sync`.
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 sentence-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.
Source lists, found by title under the default owner (HF_PUB_DEFAULT_OWNER, else the token's username):
HF_PUB_SENTENCE_MINE (default Sentence Datasets - Mine): the user's own banks and paragraph sets (any owner in HF_PUB_SENTENCE_OWNERS, else HF_PUB_OWNERS). If HF_PUB_SENTENCE_BANKS names a file of expected banks, add returns a todo for an own repo missing from it, and audit lists banks_not_in_mine.HF_PUB_SENTENCE_THIRD_PARTY (default Sentence Datasets - Third Party): other people's sets.If a collection is missing the script says so; create it with hf-hub.py collection-new (public).
Scope: text only, never audio datasets. Languages as the user's profile or notes say (default: any). Sentences, and short paragraphs are welcome: aim for a balance of lengths. Recordings belong in a separate audio collection.
C="${CLAUDE_PLUGIN_ROOT}/scripts/sentence-collections.py"
python3 "$C" add <owner/name> "<note: what it is, language or config, licence>"
python3 "$C" audit # read-only: audio items, gaps, length bands, per-dataset detail
The script needs HF_TOKEN or hf auth login. add refuses audio, private and missing repos, and
prefixes the note with the length band.
Length bands, median words over the viewer's first 100 rows: short under 12, medium 12-24, long 25-59,
paragraph 60+. Only the first config is sampled, so parallel sets report the English column of
whichever language pair sorts first. Gated or script-only repos show unmeasured.
rajpurkar/squad repeats each paragraph across its question rows). Script-only repos such as
openslr/librispeech_lm have no viewer: leave them out unless converted. Filter the Hub search with
modality:text, and skip copies of a set already listed (TinyStories has many).add with a note.audit and report audio and bands. Name the thinnest band.modality:audio tag or loose audio files (audio-layout). Task tags don't
work: text banks often carry automatic-speech-recognition because they feed ASR.hf-hub.py dataset-peek clips cells at 400 characters, so never measure length with it./api/collections?owner= listing returns only the first 4 items of each collection. Read
items with hf-hub.py collection <slug>.Reads profile.env and sentence-collections.md from the data folder. Writes nothing there; changes go to the Hub collections.
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"./complementary-pluginsList and install plugins that complement hf-publisher-tools: data-utils. Use on "what goes with this plugin", "related plugins"./contact-supportEmail Hugging Face support about the Hub account, an org, a repo or billing. Use when the user says "email HF support", "contact Hugging Face", "ask HF to unlock/delete/rename this DOI repo", "HF billing question", or when a Hub action is blocked and only staff can do it (DOI-locked delete, rename or visibility change; account or org problems; stuck Space; storage or quota)./create-datasetCreate a Hugging Face dataset repository, public or private, under the user's account or one of their organisations. Use when the user says "create a private dataset", "make a public dataset repo on HF", "new dataset under <org>", "set up a dataset on Hugging Face for X".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