huggingface-backup

huggingface-backup is a skill for Claude Code, Codex from ethanolivertroy/my-agent-stuff. It costs 86 tokens per session (1,085 once invoked), scanned A, original, MIT.

A procedure for backing up local folders to private Hugging Face Buckets using the Hugging Face command-line tools. Hugging Face is a platform used to store and work with machine-learning files and datasets.

In plain words
What is it for?
It is for backing up training data, model files, checkpoints, datasets, agent traces, or other local folders to private Hugging Face storage.
Why use it?
It provides safety rules for preserving local data, avoiding obvious secrets, verifying the remote backup, and handling large uploads conservatively.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit It is for backing up training data, model files, checkpoints, datasets, agent traces, or other local folders to private Hugging Face storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ethanolivertroy/my-agent-stuff/huggingface-backup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ethanolivertroy/my-agent-stuff --skill huggingface-backup
Clone the repo
git clone --depth 1 https://github.com/ethanolivertroy/my-agent-stuff

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for huggingface-backup

README.md
[![agentmods](https://agentmods.dev/badge/skills/ethanolivertroy/my-agent-stuff/huggingface-backup/github.svg)](https://agentmods.dev/skills/ethanolivertroy/my-agent-stuff/huggingface-backup)
Your own site
<a href="https://agentmods.dev/skills/ethanolivertroy/my-agent-stuff/huggingface-backup"><img src="https://agentmods.dev/badge/skills/ethanolivertroy/my-agent-stuff/huggingface-backup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for huggingface-backup

Your own site · 80×15
<a href="https://agentmods.dev/skills/ethanolivertroy/my-agent-stuff/huggingface-backup"><img src="https://agentmods.dev/badge/skills/ethanolivertroy/my-agent-stuff/huggingface-backup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,085 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.01085
Opus 5 $0.00043 $0.00543
Sonnet 5 $0.00017 $0.00217
Haiku 4.5 $0.00009 $0.00109

Measured 9d ago against content hash a82fd2d4f885, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

huggingface-backup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/huggingface-backup/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hugging Face Backup

Use this skill for safe Hugging Face bucket backups.

First load/use the official hf-cli skill when you need current command details. It is installed at:

~/.agents/skills/hf-cli/SKILL.md

Golden Rules

  • Prefer Hugging Face Buckets for raw folder backups unless the user explicitly asks for a model/dataset/space repo.
  • Create buckets as private by default.
  • Never upload obvious secrets if avoidable.
  • Never permanently delete local data after upload. Move verified uploads to quarantine instead.
  • Verify remote bucket metadata and nonzero file count before quarantine.
  • Use conservative concurrency. HF/Xet can rate-limit hard; prefer one or two active syncs for multi-GB folders.
  • If an upload appears stuck with zero CPU, old logs, 429 Too Many Requests, or CLOSE_WAIT, stop/restart with lower concurrency or serial sync.

Safe Excludes

Always include these excludes for bucket syncs unless the user explicitly overrides:

--exclude '**/.git/**'
--exclude '**/.DS_Store'
--exclude '**/__pycache__/**'
--exclude '**/.pytest_cache/**'
--exclude '**/.venv/**'
--exclude '**/venv/**'
--exclude '**/.env'
--exclude '**/.env.*'
--exclude '**/*cookie*'
--exclude '**/*Cookie*'
--exclude '**/*token*'
--exclude '**/*Token*'
--exclude '**/*secret*'
--exclude '**/*Secret*'
--exclude '**/*.ovpn'
--exclude '**/auth_session.json'

Pi Extension

The global Pi extension is installed at:

~/.pi/agent/extensions/hf-buckets/index.ts

After /reload or a new Pi session, it provides:

Slash commands

/hf-backup <path> --bucket <bucket-name> [--namespace <user-or-org>] [--dry-run]
/hf-status [job-id]
/hf-quarantine <job-id>

Tools available to the model

  • hf_safe_bucket_backup — start a detached private bucket sync with secret-safe excludes.
  • hf_backup_status — inspect one or all backup jobs.
  • hf_quarantine_uploaded — move a completed verified source folder to quarantine.

Job state lives under:

~/.pi/hf-backups/jobs/

Read the full file on GitHub · 133 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 133 lines · 86 tokens per session scan A a82fd2d4f885

Subscribe to this mod's changes

huggingface-backup is a skill published in the GitHub repository ethanolivertroy/my-agent-stuff (11 stars, last pushed 2mo ago), licensed MIT. It adds 86 tokens to every session and 1,085 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.