← 返回 Skills 市场
tsag1

ClawHub Download Tracker

作者 TSAG1 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
43
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install skill-download-tracker
功能描述
Monitor download counts for your ClawHub-published skills. Track changes over time with automated alerts.
使用说明 (SKILL.md)

Overview

Track download counts for skills published on ClawHub. This tool fetches official stats via clawhub inspect \x3Cslug> --json, stores history in local CSV, and supports scheduled checks, daily/weekly/monthly reports with Feishu push notifications.

File Structure

~/.openclaw/workspace/skills/clawhub-download-tracker/
├── SKILL.md                  # This file
├── clawhub_tracker.py        # Main script: collection + report + Feishu
├── clawhub_tracker.sh        # launchd wrapper (sets PATH)
└── test_clawhub_tracker.py   # Tests (mock data, 19 test cases)

~/.openclaw/workspace/data/clawhub-tracker/
├── skills.csv                # Monitored skills: slug,note
├── checklog.csv              # History: timestamp,slug,downloads,delta
└── reports/                  # Report archive (monthly .md files)

Prerequisites

  • clawhub CLI installed (auto-detected via shutil.which with fallbacks)

  • Python 3 (built-in on macOS)

  • Feishu 凭证(必须配置,无硬编码 fallback):

    • CLAWHUB_FEISHU_APP_ID
    • CLAWHUB_FEISHU_APP_SECRET
    • CLAWHUB_FEISHU_USER_OPEN_ID

    配置方式(任选其一):

    1. 环境变量:export CLAWHUB_FEISHU_APP_ID=cli_xxx
    2. .env 文件:在 ~/.openclaw/workspace/data/clawhub-tracker/.env 中写入 KEY=VALUE 格式

Usage

1. Collect Current Downloads (Snapshot + Feishu Push)

python3 ~/.openclaw/workspace/skills/clawhub-download-tracker/clawhub_tracker.py

Iterates all slugs in skills.csv, fetches latest download counts, computes deltas, writes to checklog.csv, archives to reports/, and sends Feishu notifications.

2. Reports

python3 ~/.openclaw/workspace/skills/clawhub-download-tracker/clawhub_tracker.py report daily   # Today's report
python3 ~/.openclaw/workspace/skills/clawhub-download-tracker/clawhub_tracker.py report weekly  # Last 7 days
python3 ~/.openclaw/workspace/skills/clawhub-download-tracker/clawhub_tracker.py report monthly # Current month

Generates reports from checklog.csv history, including:

  • Per-slug start → end download counts and cumulative deltas
  • Sample count and peak time windows
  • Total new downloads and current totals

Reports are printed to stdout, archived to reports/YYYY-MM.md, and pushed to Feishu.

3. Add / Remove Monitored Skills

Edit ~/.openclaw/workspace/data/clawhub-tracker/skills.csv directly. Format: slug,note

Data Source

Fetches the official stats.downloads field via clawhub inspect \x3Cslug> --json. Data comes directly from the ClawHub registry — no third-party APIs involved.

The current monitor list is maintained dynamically in ~/.openclaw/workspace/data/clawhub-tracker/skills.csv.

安全使用建议
Install only if you want download summaries for monitored ClawHub skill slugs sent to Feishu. Treat the .env file as sensitive, restrict access to it, and avoid putting private project names or sensitive notes in the monitored skills list if they should not appear in Feishu messages or local report archives.
能力评估
Purpose & Capability
The artifacts consistently describe tracking ClawHub skill download counts, reading a user-maintained skills.csv, invoking clawhub inspect, writing CSV/report history, and sending Feishu notifications; the code matches that purpose.
Instruction Scope
README.md and SKILL.md disclose the runtime commands, required Feishu credentials, local files created, report generation, and the monitored-skill list managed by the user.
Install Mechanism
The package contains Python and shell scripts but no installer hook, cron entry, launchd plist, autostart registration, or automatic persistence setup.
Credentials
The requested local file access is scoped to the tracker data directory and Feishu network access is purpose-aligned; the script also relies on the clawhub CLI to fetch registry stats as documented.
Persistence & Privilege
It persistently writes check logs, report archives, and tracker logs, and can read Feishu credentials from environment variables or a disclosed .env file in the tracker data directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install skill-download-tracker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /skill-download-tracker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: download count monitoring with daily/weekly/monthly reports, Feishu push notifications, and security audit passed
元数据
Slug skill-download-tracker
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

ClawHub Download Tracker 是什么?

Monitor download counts for your ClawHub-published skills. Track changes over time with automated alerts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 43 次。

如何安装 ClawHub Download Tracker?

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

ClawHub Download Tracker 是免费的吗?

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

ClawHub Download Tracker 支持哪些平台?

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

谁开发了 ClawHub Download Tracker?

由 TSAG1(@tsag1)开发并维护,当前版本 v1.0.0。

💬 留言讨论