Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计提醒

huggingface-hub拥抱脸中心

Agent Skill

huggingface-hub 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

734

周安装

30

GitHub Stars

公开资料未说明

下载量

238
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:huggingface-hub(拥抱脸中心)
来源仓库:https://github.com/gary149/huggingface-hub-skill
仓库路径:skills/huggingface-hub
安装命令:
npx skills add https://github.com/gary149/huggingface-hub-skill --skill huggingface-hub
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/gary149/huggingface-hub-skill --skill huggingface-hub

简介

用于查找、检索和筛选 Hugging Face Hub 上的模型、数据集等资源。

  • 适合在模型选型、数据获取等研究场景中快速定位目标。
  • 通过 npx skills add 从独立仓库安装使用。
  • 注意评估其是否依赖外部 API 及数据隐私风险。
  • huggingface-hub 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

title
My Application
emoji
🤗
colorFrom
blue
colorTo
purple
sdk
gradio # gradio, docker, or static
sdk_version
5.0.0
python_version
3.10
app_file
app.py
app_port
7860 # Docker only
suggested_hardware
t4-small # or cpu-basic, a10g-small, etc.
pinned
true
models
datasets
hf_oauth
true # Enable HF OAuth
preload_from_hub

**Hardware options:**

*   CPU: `cpu-basic`, `cpu-upgrade`
*   GPU: `t4-small`, `t4-medium`, `l4x1`, `l4x4`, `a10g-small`, `a10g-large`, `a100-large`
*   TPU: `v5e-1x1`, `v5e-2x2`, `v5e-2x4`

### Model Card Metadata

language: - en license: apache-2.0 library_name: transformers pipeline_tag: text-classification tags: - nlp - sentiment datasets: - stanfordnlp/imdb base_model: bert-base-uncased metrics: - accuracy



## Resources

Detailed documentation organized by topic:

### references/

*   `api-http.md` - **curl/HTTP API examples** for all endpoints
*   `python-sdk.md` - huggingface\_hub Python patterns (download, upload, HfApi)
*   `javascript-sdk.md` - @huggingface/hub and Transformers.js
*   `inference-providers.md` - InferenceClient and provider selection
*   `models-advanced.md` - **GGUF, PEFT/LoRA, quantization** formats
*   `datasets-workflows.md` - **pandas, Polars, DuckDB** data workflows
*   `spaces-config.md` - Complete YAML configuration reference
*   `spaces-gradio.md` - Building Gradio Spaces
*   `spaces-docker.md` - Docker Spaces with secrets and permissions
*   `spaces-integration.md` - **Embedding, OAuth, MCP servers**
*   `automation.md` - **Webhooks, Jobs, GitHub Actions**
*   `security.md` - **Tokens, gating, scanning, SSO**
*   `models.md` - Model repositories, cards, and uploading
*   `datasets.md` - Dataset repositories and configuration
*   `enterprise.md` - Enterprise Hub features
*   `doc-syntax.md` - Doc-builder markdown syntax

### examples/

*   `inference-curl.sh` - **Complete curl examples** for all APIs
*   `jupyter-pandas.py` - **Jupyter + pandas workflow**
*   `browser-transformersjs.html` - **Browser inference** with Transformers.js
*   `lora-peft-workflow.py` - **LoRA adapter** find/load/merge workflow
*   `webhooks-auto-retrain.py` - **Webhook automation** for retraining
*   `collections-api.py` - **Collections** creation and management
*   `offline-setup.py` - **Offline/air-gapped** environment setup
*   `space-embed-iframe.html` - **Embedding patterns** for websites
*   `gradio-image-classifier.py` - Image classification with gr.Interface
*   `gradio-chat-interface.py` - Chat interface with HF model
*   `upload-model.py` - PyTorchModelHubMixin complete example
*   `download-files.py` - Various download patterns
*   `model-card.md` - Model card template with metadata
*   `dataset-card.md` - Dataset card template with metadata

### patterns/

*   `missing-features.md` - **iOS, Next.js, full offline** workarounds

## Best Practices

1.  **Always use environment variables for tokens** - Never hardcode `hf_xxx` tokens
2.  **Use `.safetensors` format** - Preferred over `.bin` for model weights
3.  **Add comprehensive model cards** - Include intended use, limitations, training data
4.  **Pin SDK versions in Spaces** - Ensure reproducibility
5.  **Use `preload_from_hub`** - Speed up Space startup by preloading models
6.  **Set appropriate hardware** - Match compute needs to avoid OOM errors
7.  **Use fine-grained tokens** - Minimize scope for production apps
8.  **Use Parquet for datasets** - Much faster than CSV for large data

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

25.37%
按下载量换算60

OpenCode

24.04%
按下载量换算57

Gemini CLI

18.05%
按下载量换算43

Antigravity

13.12%
按下载量换算31

windsurf

7.23%
按下载量换算17

Codex

3.41%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills