← 返回 Skills 市场
fangshan101-coder

Clawhub Stats Tracker

作者 fangshan101-coder · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
131
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install clawhub-stats-tracker
功能描述
查看 ClawHub 上已发布 Skill 的运营数据(Stars、Downloads、Installs、版本号、发布时间)。 从 ~/.clawhub/tracked-skills.json 读取跟踪列表,通过 clawhub inspect --json 获取实时数据, 支持单个查询、批量查询和按系列筛选。无...
使用说明 (SKILL.md)

ClawHub Stats Tracker

查看已发布到 ClawHub 的 Skill 运营数据。

快速开始

"查看我的 clawhub skill 数据"
"horoscope-daily 的安装量是多少"
"所有 fortune-telling 系列的数据"

工作流程

Step 1: 确定查询范围

用户意图 操作
查看所有跟踪的 Skill 运行 bash scripts/fetch-stats.sh
查看单个 Skill 执行 npx clawhub@latest inspect \x3Cslug> --json --no-input
查看某系列 从配置文件中筛选匹配的 slug,逐个 inspect

Step 2: 获取数据

批量查询(推荐):

bash scripts/fetch-stats.sh

脚本从 ~/.clawhub/tracked-skills.json 读取 slug 列表,逐个调用 npx clawhub@latest inspect --json,输出表格。

单个查询:

npx clawhub@latest inspect \x3Cslug> --json --no-input

返回 JSON 结构:

{
  "skill": {
    "stats": {
      "stars": 0,
      "downloads": 42,
      "installsCurrent": 0,
      "installsAllTime": 0,
      "comments": 0,
      "versions": 5
    },
    "createdAt": 1773831137632,
    "updatedAt": 1774186907119
  },
  "latestVersion": {
    "version": "2.2.0",
    "createdAt": 1774186800664,
    "changelog": "..."
  }
}

时间戳为毫秒级 Unix 时间,需除以 1000 转换。

Step 3: 输出格式

批量表格(脚本默认输出):

SLUG                            STARS  DOWNLOADS CURRENT_INSTALLS ALLTIME_INSTALLS  VERSION  FIRST_PUBLISHED    LATEST_PUBLISHED   NOTE
horoscope-daily                     0         42                0                0    2.2.0  2026-03-18 18:52   2026-03-22 21:40   星座运势 EN/ZH
life-query                          1        116                0                0    2.0.0  2026-03-16 20:12   2026-03-21 11:02   生活查询助手

单 Skill 详情(用户查单个时):

📊 horoscope-daily (v2.2.0)
├── ⭐ Stars: 0
├── 📥 Downloads: 42
├── 📦 Current Installs: 0
├── 📊 All-time Installs: 0
├── 💬 Comments: 0
├── 📅 First Published: 2026-03-18 18:52
├── 📅 Latest Version: 2026-03-22 21:40
└── 📝 Changelog: v2.2.0: Add Language & Localization...

配置文件

路径:~/.clawhub/tracked-skills.json

{
  "skills": [
    { "slug": "fortune-hub", "note": "运势测算统一入口" },
    { "slug": "horoscope-daily", "note": "星座运势" }
  ]
}
  • slug:ClawHub 上的 Skill slug(必填)
  • note:备注说明(可选,仅展示用)

添加新 Skill:在 skills 数组中追加一条即可。发布新 skill 后记得同步更新。

已知限制

  • ClawHub CLI 不支持按用户(owner)查询所有 skill,只能通过配置文件手动维护列表
  • Downloads 和 Installs 指标有已知 bug(openclaw/clawhub#156),installs 可能不计数
  • inspect 接口无需登录,公开可用;publish/delete 等写操作才需要认证

错误处理

场景 处理
配置文件不存在 提示创建 ~/.clawhub/tracked-skills.json,给出格式示例
slug 不存在 显示"获取失败",继续处理其他 slug
clawhub CLI 未安装 npx clawhub@latest 会自动下载,无需手动安装
网络错误 显示失败的 slug,其余正常输出

原子化设计

本 Skill 仅负责「ClawHub Skill 运营数据查看」这一个原子化能力。不包含 Skill 发布、安装、搜索等功能,这些请直接使用 clawhub CLI 对应命令。

安全使用建议
This skill is generally coherent and low-risk for its purpose, but take these precautions before running it: (1) Note that the script expects bash, python3 and npx — ensure those are available or update metadata. (2) The script uses `npx clawhub@latest`, which will download and execute the latest npm package each time; if you want to avoid running remote code repeatedly, install a known version of the ClawHub CLI locally (or pin a version) instead of using `@latest`. (3) Inspect the npm package source (openclaw/clawhub) or vendor the CLI if you are concerned about supply-chain risks. (4) Ensure your ~/.clawhub/tracked-skills.json only contains slugs you trust (the script reads that file locally). If you want safer operation, replace `npx ...` with a locally installed, version-pinned binary and add declared required binaries to the skill metadata.
功能分析
Type: OpenClaw Skill Name: clawhub-stats-tracker Version: 1.0.0 The skill is a legitimate utility for tracking ClawHub skill statistics (stars, downloads, etc.). It reads a user-defined list of slugs from a local configuration file (~/.clawhub/tracked-skills.json) and uses the official clawhub CLI via npx to fetch public data, with no evidence of data exfiltration, malicious execution, or unauthorized access.
能力评估
Purpose & Capability
The skill's behavior (reading ~/.clawhub/tracked-skills.json and calling clawhub inspect) matches its description. However, the package metadata declares no required binaries while the provided script invokes bash, python3 and npx; these expected dependencies are not listed in the metadata.
Instruction Scope
SKILL.md and the script only read the user's ~/.clawhub/tracked-skills.json and call the ClawHub inspect command, then print results locally. The instructions do not request unrelated files, environment secrets, or transmit data to any hidden endpoint.
Install Mechanism
This is instruction-only (no install spec). The script uses `npx clawhub@latest`, which downloads and runs code from the npm registry at runtime. That is functional for the declared purpose but means arbitrary remote package code can be executed each run unless the user pins or pre-installs the clawhub CLI.
Credentials
No credentials or special environment variables are requested. The script only reads a user config under $HOME (~/.clawhub/tracked-skills.json), which is proportionate to the stated goal.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or persistent system presence. It does not modify other skills or system-wide config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawhub-stats-tracker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawhub-stats-tracker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
首次发布:ClawHub Skill 运营数据查看
元数据
Slug clawhub-stats-tracker
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Clawhub Stats Tracker 是什么?

查看 ClawHub 上已发布 Skill 的运营数据(Stars、Downloads、Installs、版本号、发布时间)。 从 ~/.clawhub/tracked-skills.json 读取跟踪列表,通过 clawhub inspect --json 获取实时数据, 支持单个查询、批量查询和按系列筛选。无... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 131 次。

如何安装 Clawhub Stats Tracker?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawhub-stats-tracker」即可一键安装,无需额外配置。

Clawhub Stats Tracker 是免费的吗?

是的,Clawhub Stats Tracker 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Clawhub Stats Tracker 支持哪些平台?

Clawhub Stats Tracker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Clawhub Stats Tracker?

由 fangshan101-coder(@fangshan101-coder)开发并维护,当前版本 v1.0.0。

💬 留言讨论