/hf-publisher-tools:s3-bucketsfrom hf-publisher-tools
Upload, download and list files in Hugging Face Storage Buckets through HF's S3-compatible gateway (s3.hf.co) with the AWS CLI, boto3 or rclone. Use when the user says "upload to an HF bucket over S3", "use the HF S3 creds", "S3 transfer to Hugging Face", "rclone to Hugging Face", or wants bulk object storage on HF. Not for dataset, model or Space repos: those still need a Hub commit.
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 s3-buckets.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.
Profile keys used: HF_PUB_DEFAULT_OWNER (the namespace in the endpoint URL unless told otherwise), HF_PUB_OWNERS.
The S3 gateway reaches Storage Buckets only. It cannot write to dataset, model or Space repos
(docs: "It does not expose other Hugging Face
repository types"). Anything that has to show up in the dataset viewer or load with
load_dataset("<owner>/<name>") still goes in through a Hub commit (huggingface_hub / @huggingface/hub
commit(), hf upload). So S3 doesn't fix rate limits on repo pushes. Use it for bulk blobs that
belong in a bucket: staging, artifacts, backups, a raw mirror next to a dataset.
| Variables | HF_S3_ACCESS_KEY_ID, HF_S3_SECRET_ACCESS_KEY (from your environment or whatever profile.env says supplies them) |
| Derived from | a HF user access token: "Generate S3 credentials" in the token's menu on huggingface.co. The keys get that token's permissions, and revoking the token revokes them |
Run anything that needs them through the wrapper named in profile.env, if any. Never write the keys
into ~/.aws/credentials or any file in a repo. Before relying on write access to a namespace, list its
buckets first (list_buckets on https://s3.hf.co/<namespace>).
| Setting | Value |
|---|---|
| endpoint | https://s3.hf.co/<namespace> (your username or an org): the namespace goes in the URL, the bucket name stays plain |
| region | us-east-1 |
| addressing style | path |
request_checksum_calculation / response_checksum_validation | when_required (AWS CLI ≥ 2.23 and recent boto3 send trailing CRC32 by default, and the gateway rejects it) |
| multipart threshold / chunksize | 2GB (optional, fewer parts) |
uv run --with boto3 python - <<'EOF'
import os, boto3
from botocore.config import Config
s3 = boto3.client("s3", endpoint_url="https://s3.hf.co/<namespace>", region_name="us-east-1",
aws_access_key_id=os.environ["HF_S3_ACCESS_KEY_ID"], aws_secret_access_key=os.environ["HF_S3_SECRET_ACCESS_KEY"],
config=Config(s3={"addressing_style": "path"}, request_checksum_calculation="when_required",
response_checksum_validation="when_required"))
print([b["Name"] for b in s3.list_buckets()["Buckets"]])
EOF
bash -c 'AWS_ACCESS_KEY_ID=$HF_S3_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$HF_S3_SECRET_ACCESS_KEY \
AWS_REQUEST_CHECKSUM_CALCULATION=when_required AWS_RESPONSE_CHECKSUM_VALIDATION=when_required \
aws --region us-east-1 --endpoint-url https://s3.hf.co/<namespace> s3 cp ./file.bin s3://<bucket>/path/file.bin'
Don't write the keys into ~/.aws/credentials: keep them in the environment.
bash -c 'RCLONE_CONFIG_HFS3_TYPE=s3 RCLONE_CONFIG_HFS3_PROVIDER=Other \
RCLONE_CONFIG_HFS3_ACCESS_KEY_ID=$HF_S3_ACCESS_KEY_ID RCLONE_CONFIG_HFS3_SECRET_ACCESS_KEY=$HF_S3_SECRET_ACCESS_KEY \
RCLONE_CONFIG_HFS3_ENDPOINT=https://s3.hf.co/<namespace> RCLONE_CONFIG_HFS3_REGION=us-east-1 \
RCLONE_CONFIG_HFS3_FORCE_PATH_STYLE=true RCLONE_CONFIG_HFS3_LIST_VERSION=2 \
rclone copy ./dir hfs3:<bucket>/dir --progress'
LIST_VERSION=2 is required because the gateway has no ListObjectsV1. Assumed from the docs,
not verified against the live gateway.
/, contain //, ../, \ or NUL, start with ./ or end with .../ works as the list delimiter. There are no ACLs, policies, tagging, versioning, lifecycle
rules or SSE (the headers are accepted and ignored), and x-amz-meta-* metadata is dropped.CopyObject works only within one namespace. UploadPartCopy is not supported.GetObject answers 302 to the CDN. aws-cli and boto3 are proxied by the gateway; rclone and
curl follow the redirect.s3 mb s3://<name>. Existing buckets seen so far are lowercase, and whether HF allows uppercase bucket names is unchecked.
Ask before creating one in an org.No keys are stored by the plugin. Private notes for this skill go in <data folder>/s3-buckets.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
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