HU

hub-cli-setup

Automates the setup of Hugging Face and GitHub CLI credentials within Pixi environments.

Install

mkdir -p .claude/skills/hub-cli-setup && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10760" && unzip -o skill.zip -d .claude/skills/hub-cli-setup && rm skill.zip

Installs to .claude/skills/hub-cli-setup

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when setting up Hugging Face Hub CLI authentication or the recommended GitHub CLI workflow for IsaacLab-Imitation datasets, pushes, PRs, and CI checks.
155 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Authenticate with Hugging Face Hub CLI
  • Authenticate with GitHub CLI
  • Set up Git credential helper for Hugging Face
  • Switch Hugging Face authentication tokens
  • Remove Hugging Face-scoped Git credential helper

How it works

This skill executes pixi run commands to authenticate with Hugging Face Hub CLI or GitHub CLI. It can also configure Git's credential helper for Hugging Face.

Inputs & outputs

You give it
Hugging Face token or GitHub credentials
You get back
authenticated CLI session or configured Git credentials

When to use hub-cli-setup

  • Authenticate with Hugging Face Hub
  • Set up GitHub CLI for CI/CD
  • Configure git credentials for private datasets

About this skill

Hub CLI Setup

Use the repo-owned Pixi environments. Hugging Face CLI support lives in the lerobot environment, while GitHub CLI support lives in the default environment.

# Hugging Face Hub CLI for LeRobot dataset access. Use hf, not huggingface-cli.
pixi run -e lerobot hf auth login
pixi run -e lerobot hf auth whoami

# GitHub CLI is recommended for branch, push, PR, and CI workflows.
pixi run gh auth login
pixi run gh auth setup-git --hostname github.com
pixi run gh auth status

# Optional: only for direct git push/pull to https://huggingface.co.
# This uses Git's plaintext store helper, scoped to Hugging Face only.
git config --global credential.https://huggingface.co.helper store

# If you are already logged in:
pixi run -e lerobot hf auth list
TOKEN_NAME=home-ubuntu
pixi run -e lerobot hf auth switch --token-name "$TOKEN_NAME" --add-to-git-credential

# If you are not logged in yet:
pixi run -e lerobot hf auth login --add-to-git-credential

# Remove the Hugging Face-scoped helper later if you no longer want it.
git config --global --unset credential.https://huggingface.co.helper

When not to use it

  • When not setting up Hugging Face Hub CLI authentication
  • When not setting up GitHub CLI for IsaacLab-Imitation datasets
  • When not configuring git credentials for direct pushes to Hugging Face

Limitations

  • Hugging Face CLI support lives in the `lerobot` environment
  • GitHub CLI support lives in the default environment
  • Direct git push/pull to huggingface.co uses Git's plaintext store helper

How it compares

This skill uses environment-scoped pixi commands for authentication, providing a managed approach compared to direct CLI commands.

Compared to similar skills

hub-cli-setup side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
hub-cli-setup (this skill)02moReviewBeginner
github-release-management46moReviewAdvanced
agent-release-swarm16moReviewAdvanced
magerun-release15moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry