/hf-publisher-tools:create-modelfrom hf-publisher-tools
Create a Hugging Face model repository, public or private, under the user's account or one of their organisations. Use when the user says "create a private model", "make a public model repo on HF", "new model under <org>", "set up a model on Hugging Face for X".
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 create-model.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.
HF_PUB_DEFAULT_OWNER (default: the token's own username, from python3 "${CLAUDE_PLUGIN_ROOT}/scripts/hf-hub.py" orgs). If the profile or notes describe owner routing, follow it. Say which owner you picked. If unsure the token can write there, run list-orgs.HF_PUB_DEFAULT_VISIBILITY (default private: making it public later is one call, but a public repo may already have been cached or cloned).Name per HF_PUB_NAME_STYLE. Default as-given: use the name the user gave. With Title-Case-With-Hyphens: capitalise each word, keep acronyms upper (SFT, ASR), no underscores or spaces, e.g. Org/Prompt-Decomposition rather than the lowercase or underscore form. Never rename existing repos unless asked (code may pin the old id).
If the profile or notes name a way to check for an existing repo on the subject, do that first. Otherwise exists below is enough.
S="${CLAUDE_PLUGIN_ROOT}/scripts/hf-hub.py"
python3 "$S" exists model <owner>/<Name> # optional; 404 = free (or private and out of scope)
python3 "$S" create model <owner>/<Name> private # or public
The token comes from $HF_TOKEN, else ~/.cache/huggingface/token. If neither works, check profile.env comments for how the user supplies secrets.
http | Meaning |
|---|---|
200, created: true | done. Give the user the url (https://huggingface.co//) |
| 409 | it already exists. Nothing changed. Check its visibility with exists |
| 403 | the token can't write to that owner. See list-orgs |
| 400 | bad name (spaces, too long, reserved) |
Confirm with exists, which reports private: true/false. Don't rely on the create response alone.
Uploading weights and the model card is a separate step: hf upload <owner>/<name> <local> <remote>.
Every new repo goes into at least one of its owner's collections in the same task: run the collections skill (orphans <owner> shows anything still unfiled). Do it when the repo is created, not later.
A public create publishes the name immediately. When the user asked for public, that is the approval. Don't ask again.
Reads profile.env and create-model.md from the data folder. Writes nothing.
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./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".Other plugins' skills for the same job