Agent skill

Hugging Face CLI Workflows

by burtenshaw in burtenshaw/training-agents

A skill your agent uses when working with Hugging Face CLI or Hub workflows for TRL training, including auth, repositories, uploads, downloads, Jobs, buckets, model persistence, dataset checks…

Apache-2.0Auto-check passedAI & LLM Engineering

Install Hugging Face CLI Workflows

skills CLI
$ npx skills add burtenshaw/training-agents --skill hugging-face-cli-workflows -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install burtenshaw/training-agents hugging-face-cli-workflows --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/burtenshaw/training-agents.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/hugging-face-cli-workflows .claude/skills/hugging-face-cli-workflows && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
hugging-face-cli-workflows
GitHub stars
153
Token cost
~298 tokens
SKILL.md length
126 words
Files
4 (incl. references)
Skills in repo
6
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when working with Hugging Face CLI or Hub workflows for TRL training, including auth, repositories, uploads, downloads, Jobs, buckets, model persistence, dataset checks…

  • Works in 5 steps: Check auth with hf auth whoami before… → Identify the target type: model repo,… → Keep scripts portable: remote Jobs… → …
  • Working with Hugging Face CLI
  • SKILL.md covers Workflow, Safety and References
  • Calls hf; needs HF_TOKEN

What it does

Hugging Face CLI Workflows is an agent skill from burtenshaw/training-agents. Use when working with Hugging Face CLI or Hub workflows for TRL training, including auth, repositories, uploads, downloads, Jobs, buckets, model persistence, dataset checks, Space links, and remote artifact movement.

Its SKILL.md is about 300 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `agents/openai.yaml`, `references/hub-workflows.md` and `references/jobs-workflows.md`).

It sits in AI & LLM Engineering, covering Model hubs and datasets. It works with Hugging Face. The repository describes itself as: A repo on resources for training agents. The licence is Apache-2.0.

When your agent uses it

  • Working with Hugging Face CLI
  • Hub workflows for TRL training
  • Model persistence
  • Remote artifact movement

Example prompts

  • “/hugging-face-cli-workflows”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Check auth with hf auth whoami before remote actions.
  2. Identify the target type: model repo, dataset repo, Space, Job, or bucket.
  3. Keep scripts portable: remote Jobs cannot read local files unless the script
  4. Ensure ephemeral runners push or upload artifacts before completion.
  5. Summarize exact repo ids, job ids, paths, and commands.

What it can do on your machine

Read from SKILL.md and the folder at commit ec7cc54. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • hf

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • HF_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Hugging Face CLI Workflows loads about 298 tokens when it runs, and up to ~611 if it reads all its reference files. Until then it costs about 61 tokens; SKILL.md has 126 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~298
With references · SKILL.md plus every file in references/, read only if the agent opens them
~611

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from burtenshaw/training-agents at commit ec7cc54, republished under its Apache-2.0 licence (© burtenshaw). 126 words, ~298 tokens.

Download SKILL.mdSave it as .claude/skills/hugging-face-cli-workflows/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
hugging-face-cli-workflows
description
Use when working with Hugging Face CLI or Hub workflows for TRL training, including auth, repositories, uploads, downloads, Jobs, buckets, model persistence, dataset checks, Space links, and remote artifact movement.

Hugging Face CLI Workflows

Use this skill for Hub, CLI, Jobs, buckets, and artifact workflows around TRL training.

Workflow

  1. Check auth with hf auth whoami before remote actions.
  2. Identify the target type: model repo, dataset repo, Space, Job, or bucket.
  3. Keep scripts portable: remote Jobs cannot read local files unless the script is uploaded, inlined, or available by URL.
  4. Ensure ephemeral runners push or upload artifacts before completion.
  5. Summarize exact repo ids, job ids, paths, and commands.

Safety

  • Never print HF_TOKEN or credentials.
  • Use private repos or buckets for non-public data by default.
  • Confirm before deleting or overwriting Hub artifacts.
  • Keep large checkpoints outside this context repository.

References

  • references/hub-workflows.md: auth, repos, upload/download, and artifacts.
  • references/jobs-workflows.md: HF Jobs conventions for TRL runs.

© burtenshaw, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in .agents/skills/hugging-face-cli-workflows of burtenshaw/training-agents.

  • SKILL.md
  • agents/openai.yaml
  • references/hub-workflows.md
  • references/jobs-workflows.md

Open the folder on GitHubat commit ec7cc54

Compare with similar skills

Hugging Face CLI Workflows next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Hugging Face CLI Workflows compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Hugging Face CLI Workflows this skillburtenshaw/training-agents153—~298Automated safety check: PassApache-2.0
SageMaker Serving Image Selectionhuggingface/skills11k1 repos~4.6kAutomated safety check: PassApache-2.0
Hugging Face LLM Trainerhuggingface/skills11k3 repos~7.2kAutomated safety check: PassApache-2.0
LLM Benchmarking with lm-evaluation-harnessOrchestra-Research/AI-Research-SKILLs13k8 repos~3kAutomated safety check: PassMIT
Upload Post Imagehuggingface/blog3.5k—~1.1kAutomated safety check: PassNone
Hugging Face Local Model Evalshuggingface/skills11k2 repos~1.6kAutomated safety check: PassApache-2.0

Similar skills

  • Official

    Chooses the right serving container and current image URI for deploying a Hugging Face model to a SageMaker endpoint, preferring Hugging Face images over generic ones.

    11k GitHub starsUsed in 1 repo~4.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Hugging Face LLM Trainer

    huggingface/skills

    Official

    Trains or fine-tunes language and vision models with TRL or Unsloth on Hugging Face Jobs cloud GPUs, then converts the results to GGUF.

    11k GitHub starsUsed in 3 repos~7.2k tokens
    AI & LLM EngineeringAuto-check passed
  • LLM Benchmarking with lm-evaluation-harness

    Orchestra-Research/AI-Research-SKILLs

    Runs lm-evaluation-harness to benchmark language models on academic suites such as MMLU, GSM8K and HumanEval, compare models and track training checkpoints.

    13k GitHub starsUsed in 8 repos~3k tokens
    AI & LLM EngineeringAuto-check passed
  • Upload Post Image

    huggingface/blog

    Official

    A skill your agent uses when adding or migrating non-thumbnail images for a Hugging Face Blog post.

    3.5k GitHub stars~1.1k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Official

    Runs evaluations of Hugging Face Hub models on local hardware with inspect-ai or lighteval, and helps choose between vLLM, Transformers and accelerate backends.

    11k GitHub starsUsed in 2 repos~1.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Esmfold2

    JimLiu/science-skills

    Biohub ESMFold2 / ESMFold2-Fast all-atom co-folding (Candido et al.

    227 GitHub starsUsed in 4 repos~2.5k tokens
    AI & LLM EngineeringAuto-check passed

More from burtenshaw/training-agents

  • Trl Sft

    burtenshaw/training-agents

    A skill your agent uses when designing, implementing, reviewing, or debugging supervised fine-tuning with TRL SFTTrainer or trl sft, especially for agentic models trained on chat messages…

    153 GitHub stars~685 tokensUpdated 25 days ago
    Auto-check passed
  • Trl Post Training

    burtenshaw/training-agents

    A skill your agent uses when building, reviewing, or editing TRL post-training workflows for agentic applications, including SFT, DPO, GRPO, RLOO, reward modeling, dataset formats, chat templates…

    153 GitHub stars~599 tokensUpdated 25 days ago
    Auto-check passed
  • Agentic Self Distillation

    burtenshaw/training-agents

    A skill your agent uses when designing or reviewing self-distillation workflows for agentic models, including trace collection, teacher or judge feedback, rejection sampling, critique, conversion to…

    153 GitHub stars~354 tokensUpdated 25 days ago
    Auto-check passed
  • Openenv Agentic Rl

    burtenshaw/training-agents

    A skill your agent uses when designing, reviewing, or implementing OpenEnv-style environment interfaces for agentic RL with TRL, including reset/step/state contracts, tasksets, Docker or…

    153 GitHub stars~381 tokensUpdated 25 days ago
    Auto-check passed
  • Trackio Observability

    burtenshaw/training-agents

    A skill your agent uses when instrumenting or inspecting TRL training runs with Trackio, run names, metric schemas, dashboards, logs, grep or ripgrep, SFTP, Hugging Face Job logs, remote artifacts…

    153 GitHub stars~351 tokensUpdated 25 days ago
    Auto-check passed

Works with

Questions about Hugging Face CLI Workflows

What does Hugging Face CLI Workflows do?

A skill your agent uses when working with Hugging Face CLI or Hub workflows for TRL training, including auth, repositories, uploads, downloads, Jobs, buckets, model persistence, dataset checks…. Hugging Face CLI Workflows is an agent skill from burtenshaw/training-agents. Use when working with Hugging Face CLI or Hub workflows for TRL training, including auth, repositories, uploads, downloads, Jobs, buckets, model persistence, dataset checks, Space links, and remote artifact movement.

When should I use Hugging Face CLI Workflows?

Hugging Face CLI Workflows fits situations like: working with Hugging Face CLI; hub workflows for TRL training; model persistence; remote artifact movement.

How do I install Hugging Face CLI Workflows in Claude Code?

Run `npx skills add burtenshaw/training-agents --skill hugging-face-cli-workflows -a claude-code`. Or copy the skill folder (.agents/skills/hugging-face-cli-workflows in burtenshaw/training-agents) into .claude/skills/hugging-face-cli-workflows in your project. Claude Code loads it when a task matches its description.

How do I install Hugging Face CLI Workflows in Codex?

Run `npx skills add burtenshaw/training-agents --skill hugging-face-cli-workflows -a codex`. Or copy the skill folder (.agents/skills/hugging-face-cli-workflows in burtenshaw/training-agents) into .agents/skills/hugging-face-cli-workflows in your project. Codex loads it when a task matches its description.

Can I use Hugging Face CLI Workflows in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add burtenshaw/training-agents --skill hugging-face-cli-workflows -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hugging-face-cli-workflows, .gemini/skills/hugging-face-cli-workflows, .github/skills/hugging-face-cli-workflows and .opencode/skills/hugging-face-cli-workflows in your project.

What does Hugging Face CLI Workflows need to run?

Going by SKILL.md and its folder, Hugging Face CLI Workflows needs the command-line tools its instructions call (hf) and credentials named HF_TOKEN.

Does Hugging Face CLI Workflows access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Hugging Face CLI Workflows safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Hugging Face CLI Workflows use?

Hugging Face CLI Workflows is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Hugging Face CLI Workflows use?

About 298 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 313 tokens, read only when the agent opens those files.

What are the alternatives to Hugging Face CLI Workflows?

Skills that share tags, products or a category with Hugging Face CLI Workflows: SageMaker Serving Image Selection (huggingface/skills, 11k stars), Hugging Face LLM Trainer (huggingface/skills, 11k stars), LLM Benchmarking with lm-evaluation-harness (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Upload Post Image (huggingface/blog, 3.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Hugging Face CLI Workflows?

burtenshaw (a GitHub user) maintains it in burtenshaw/training-agents, which has 153 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on September 13, 2026.

Source: burtenshaw/training-agents on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.