AGENT SKILL

mlops-huggingface-hub

Hugging Face Hub CLI (hf) — search, download, and upload models and datasets, manage repos, query datasets with SQL, deploy inference endpoints, manage Spaces and buckets.

License 许可
MIT
最近更新
2026-10-26
Stars
★ 0
Forks
0

01 前言 Front Matter

name
mlops-huggingface-hub
tags
[ "huggingface", "hf", "models", "datasets", "hub", "mlops" ]
author
Hugging Face
license
MIT
version
1.0.0
description
Hugging Face Hub CLI (hf) — search, download, and upload models and datasets, manage repos, query datasets with SQL, deploy inference endpoints, manage Spaces and buckets.

03 SKILL.md 正文

Hugging Face CLI (hf) Reference Guide

The hf command is the modern command-line interface for interacting with the Hugging Face Hub, providing tools to manage repositories, models, datasets, and Spaces.

IMPORTANT: The hf command replaces the now deprecated huggingface-cli command.

Quick Start

  • Installation: curl -LsSf https://hf.co/cli/install.sh | bash -s
  • Help: Use hf --help to view all available functions and real-world examples.
  • Authentication: Recommended via HF_TOKEN environment variable or the --token flag.

Core Commands

General Operations

  • hf download REPO_ID: Download files from the Hub.
  • hf upload REPO_ID: Upload files/folders (recommended for single-commit).
  • hf upload-large-folder REPO_ID LOCAL_PATH: Recommended for resumable uploads of large directories.
  • hf sync: Sync files between a local directory and a bucket.
  • hf env / hf version: View environment and version details.

Authentication (hf auth)

  • login / logout: Manage sessions using tokens from huggingface.co/settings/tokens.
  • list / switch: Manage and toggle between multiple stored access tokens.
  • whoami: Identify the currently logged-in account.

Repository Management (hf repos)

  • create / delete: Create or permanently remove repositories.
  • duplicate: Clone a model, dataset, or Space to a new ID.
  • move: Transfer a repository between namespaces.
  • branch / tag: Manage Git-like references.
  • delete-files: Remove specific files using patterns.

Specialized Hub Interactions

Datasets & Models

  • Datasets: hf datasets list, info, and parquet (list parquet URLs).
  • SQL Queries: hf datasets sql SQL — Execute raw SQL via DuckDB against dataset parquet URLs.
  • Models: hf models list and info.
  • Papers: hf papers list — View daily papers.

Discussions & Pull Requests (hf discussions)

  • Manage the lifecycle of Hub contributions: list, create, info, comment, close, reopen, and rename.
  • diff: View changes in a PR.
  • merge: Finalize pull requests.

Infrastructure & Compute

  • Endpoints: Deploy and manage Inference Endpoints (deploy, pause, resume, scale-to-zero, catalog).
  • Jobs: Run compute tasks on HF infrastructure. Includes hf jobs uv for running Python scripts with inline dependencies and stats for resource monitoring.
  • Spaces: Manage interactive apps. Includes dev-mode and hot-reload for Python files without full restarts.

Storage & Automation

  • Buckets: Full S3-like bucket management (create, cp, mv, rm, sync).
  • Cache: Manage local storage with list, prune (remove detached revisions), and verify (checksum checks).
  • Webhooks: Automate workflows by managing Hub webhooks (create, watch, enable/disable).
  • Collections: Organize Hub items into collections (add-item, update, list).

Advanced Usage & Tips

Global Flags

  • --format json: Produces machine-readable output for automation.
  • -q / --quiet: Limits output to IDs only.

Extensions & Skills

  • Extensions: Extend CLI functionality via GitHub repositories using hf extensions install REPO_ID.
  • Skills: Manage AI assistant skills with hf skills add.

04 同仓库更多 Skills

JOHNadonis
JOHNadonis/claude-code-skills

youtube-clipper

YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。 使用场景:当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词:视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video

★ 0
JOHNadonis
JOHNadonis/claude-code-skills

yao-meta-skill

Create, refactor, evaluate, and package agent skills from workflows, prompts, transcripts, docs, or notes. Use when asked to create a skill, turn a repeated process into a reusable skill, improve an existing skill, add evals, or package a skill for team reuse.

★ 0
JOHNadonis
JOHNadonis/claude-code-skills

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 0
JOHNadonis
JOHNadonis/claude-code-skills

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

★ 0
JOHNadonis
JOHNadonis/claude-code-skills

ui-test

AI-powered adversarial UI testing via the browse CLI. Analyzes git diffs to test only what changed, or explores the full app to find bugs. Tests functional correctness, accessibility, responsive layout, and UX heuristics. Use when the user asks to test UI changes, QA a pull request, audit accessibility, or run exploratory testing. Supports local browser (localhost) and remote Browserbase (deployed sites).

★ 0
JOHNadonis
JOHNadonis/claude-code-skills

technical-seo-checker

Use when the user asks to "technical SEO audit", "check page speed", "crawl issues", "Core Web Vitals", "site indexing problems", "my site is slow", "Google cannot crawl my site", "mobile issues", or "indexing problems". Performs technical SEO audits covering site speed, crawlability, indexability, mobile-friendliness, security, and structured data. Identifies technical issues preventing optimal search performance. For content and heading element issues, see on-page-seo-auditor. For link architecture, see internal-linking-optimizer.

★ 0