Hugging Face Stat logo

Hugging Face Stat

Community
cafe3310
hugging-face-stat

获取 Hugging Face 上的模型、数据集和 Space 的统计信息

Overview

Publishercafe3310
Repositorypublic-agent-skills
Skill namehugging-face-stat
Stars
256
Forks
30
Bundled files
2
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cafe3310 on GitHub. Read the source before you install it.

Installation

Install the Hugging Face Stat AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cafe3310/public-agent-skills/tree/main/skills_parked/hugging-face-stat
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cafe3310/public-agent-skills.git /tmp/public-agent-skills
mkdir -p .claude/skills
cp -r /tmp/public-agent-skills/skills_parked/hugging-face-stat .claude/skills/hugging-face-stat
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hugging Face Stat in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Hugging Face Stat on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Hugging Face Stat is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Skill: hugging-face-stat

1. 概述 (Overview)

Hugging Face 官方页面默认主要展示“过去 30 天的下载量”。此技能通过底层的 API 扩展参数,允许大语言模型获取任意公开模型或数据集的历史总下载量 (downloadsAllTime),以及获取 Space 的运行硬件、点赞数与状态,并能汇总查询组织下所有模型的数据。

此技能提供了一个可靠的 Bash 脚本(hf_stats.sh),自带错误处理、超时机制和数值美化。

2. 核心功能与使用方法 (Core Capabilities & Usage)

本技能提供了一个现成的 Bash 脚本 hf_stats.sh。当你需要查询 Hugging Face 数据时,必须直接调用该脚本。

脚本路径

<path_to_skill>/hf_stats.sh

场景 A: 查询模型或数据集 (Model / Dataset)

当你需要查询一个模型或数据集的详细下载数据时:

bash
# 查询模型
<path_to_skill>/hf_stats.sh model <repo_id>
# 查询数据集
<path_to_skill>/hf_stats.sh dataset <repo_id>

返回数据包括:库 ID、作者、创建时间、最近30天下载、历史总下载量、点赞数。

场景 B: 查询空间 (Space)

当你需要了解一个 Space 的热度与运行环境时:

bash
<path_to_skill>/hf_stats.sh space <repo_id>

返回数据包括:库 ID、运行状态、硬件规格(如 T4 medium)、SDK 类型(如 Gradio)、点赞数。

场景 C: 查询组织 (Organization)

当你需要汇总查询一个组织下所有模型的统计数据时:

bash
<path_to_skill>/hf_stats.sh org <org_name>

返回数据包括:组织模型总数、最近30天总下载、总点赞数,并按下载量降序排列前20个热门模型。

3. 工作流 (Workflow)

  1. 意图识别: 当用户询问“某个模型的总下载量”、“这个模型是什么时候创建的”、“这个 Space 跑在什么硬件上”或“这个组织一共有多少个模型”时,触发此技能。
  2. 提取参数: 提取目标库的 repo_id 和类型(model, dataset, space, org)。
  3. 执行工具: 使用 Bash 工具运行本技能目录下的 hf_stats.sh 脚本。
  4. 解析与回复:
    • 将脚本返回的格式化结果整理成自然语言。
    • 强调历史总下载量,这是用户最关注且网页端较难直接获取的数据。
    • 提及 Space 的硬件规格和 SDK,帮助用户评估其运行性能。
    • 如果是查询 Space 的访问量,必须向用户澄清:“Hugging Face 官方未公开 Space 的实时访问量数据,目前通过点赞数和硬件规格来评估其热度和资源投入”。

4. 限制说明

  • Hugging Face API 仅提供“过去30天”和“历史总和”两个快照。无法直接回溯任意日期的历史趋势折线图。
  • 组织查询受 API 汇总限制,无法直接获取组织级的“历史总下载量”累加值,仅显示最近30天累加值。
  • 如果查询遇到 404,提醒用户检查 ID 是否正确或仓库是否为私有。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Hugging Face Stat AI skill do?

获取 Hugging Face 上的模型、数据集和 Space 的统计信息

Why use Hugging Face Stat on TypingMind?

Because you install it once and use it with any model. Hugging Face Stat is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Hugging Face Stat in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cafe3310/public-agent-skills/tree/main/skills_parked/hugging-face-stat. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Hugging Face Stat?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Hugging Face Stat?

As many as you like. As long as a model supports skills, you can use Hugging Face Stat with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Hugging Face Stat AI skill free?

Yes. It is published on GitHub by cafe3310 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇