/hf-publisher-tools:access-requestsfrom hf-publisher-tools
Review 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.
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.
Unofficial skill of the hf-publisher-tools plugin. Not affiliated with Hugging Face.
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 access-requests.md there if they exist. They win over the defaults below, and comments in profile.env are instructions.
access-requests.md holds your acceptance policy (for example "non-commercial use is free, commercial use needs a licence: flag it") and any contact address or wording to point requesters to. Apply it when you read the requests in step 3.--owner args, else HF_PUB_OWNERS, else HF_PUB_DEFAULT_OWNER, else the token's whoami user plus its orgs. The script reads profile.env itself; real environment variables win.Deciding requests needs a token with the write or admin role on the repo's owner, in HF_TOKEN or from hf auth login. A read token, or a non-member, gets HTTP 403. If the token lacks the role, say so; the settings pages in the browser fallback below need the same role.
Usernames, full names, e-mail addresses and form answers are personal data. Show them in the chat only. Never write them to any file (no logs, notes, commit messages or issues) and do not redirect the script's output into a repository. The script never prints e-mail addresses. When you report afterwards, give counts and repo names.
R="uv run --no-project --with huggingface_hub python3 ${CLAUDE_PLUGIN_ROOT}/scripts/access-requests.py"
$R --profiles # dry run: every gated repo of your owners, pending requests
--limit-repos N scans only the first N gated repos per owner for a quick look). Output: repos (each gated repo, its mode, pending count) and pending (repo, user, full name, requested at, form answers, whether a form was filled in, and with --profiles the public profile counts and URL).access-requests.md; with none, keep it neutral ("states a research use", "no answers"). No e-mail addresses.$R --accept alice,bob --apply # every repo each asked for
$R --accept alice --repo owner/name --apply # one repo
$R --reject carol --reason "short reason" --apply # the reason is shown to the requester
Run without --apply first if the list may have changed; not_pending lists names that matched no pending request (typo, or already decided).pending. For a spot check, open https://huggingface.co/<owner>/<repo>/settings/gated-user-access (models) or https://huggingface.co/datasets/<owner>/<repo>/settings/gated-user-access (datasets).Gated datasets have no request form, so their requests arrive with no answers. Offer --profiles (the requester's public profile) and let the publisher decide or ask the requester.
$R --history --since 30 --owner my-org,my-user # read-only, all statuses, newest first
Lists pending, accepted and rejected requests made in the window across every gated repo of each owner, with repo, user, full name, status and form answers, plus totals and the repos that had requests. requested is when the user asked: Hugging Face does not return when a request was decided. One *_info call per repo, so it is slow on large accounts.
If the API fails, the same lists and Accept/Reject buttons are on the settings pages, in a browser logged in as a member of the owner:
https://huggingface.co/<owner>/<repo>/settings/gated-user-accesshttps://huggingface.co/datasets/<owner>/<repo>/settings/gated-user-access| Call | Detail |
|---|---|
list_pending_access_requests(repo, repo_type=...) | GET /api/{models,datasets}/{repo}/user-access-request/pending; also /accepted, /rejected. Returns a generator in 2.x: wrap in list() before len() or + |
AccessRequest fields | username, fullname, email, timestamp, status, fields (form answers keyed by the field label in the card's extra_gated_fields; {} when the gate has no form). email is filled in for org members' tokens; the script drops it |
list_accepted_access_requests / list_rejected_access_requests | same shape; timestamp is the request time for all three lists (tz-aware UTC) |
accept_access_request(repo, user, repo_type=...) | POST .../user-access-request/handle with {"user", "status": "accepted"}; 403 with a read token or without write/admin role; 400 if the repo is not gated |
reject_access_request(repo, user, repo_type=..., rejection_reason=...) | same endpoint, status: "rejected"; rejection_reason is a required keyword in 2.x (pass None for none) |
model_info(id).gated / dataset_info(id).gated | "manual", "auto" or False. With "auto", requests are approved without review |
| Gate form | the card's extra_gated_prompt and extra_gated_fields front matter |
Reads profile.env and access-requests.md from the data folder. Writes nothing: requesters' personal data is shown in chat only.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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
/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"./create-modelCreate 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".