文档

ClawHub Download Tracker

试用

Monitor download counts for your ClawHub-published skills. Track changes over time, generate daily/weekly/monthly reports, and push notifications via Feishu.

它能做什么

Monitor download counts for your ClawHub-published skills. Track changes over time, generate daily/weekly/monthly reports, and push notifications via Feishu.

技能文档

Overview

A CLI tool that fetches official download counts for skills published on ClawHub, stores history in local CSV, and pushes snapshots/reports via Feishu.

Use when: User wants to monitor their ClawHub skill downloads, set up automated tracking, or generate trend reports.

Do NOT use for: Real-time analytics (this is periodic snapshots, not streaming), other registries (only ClawHub), individual user analytics (skill-level only).

Quick Commands

# Snapshot (collect + Feishu push)
python3 ~/.openclaw/workspace/skills/clawhub-download-tracker/clawhub_tracker.py

# Reports
python3 .../clawhub_tracker.py report daily
python3 .../clawhub_tracker.py report weekly
python3 .../clawhub_tracker.py report monthly

# Manage monitor list
python3 .../clawhub_tracker.py add  [note]
python3 .../clawhub_tracker.py remove 
python3 .../clawhub_tracker.py list

Workflow

Snapshot collection

1. Load skills.csv (managed by add/remove)
2. For each slug: clawhub inspect  --json → extract stats.downloads
3. Compare to last_state.json
4. If delta ≠ 0 → append to checklog.csv + update last_state
5. Build summary text
6. Archive to reports/YYYY-MM.md
7. Push to Feishu (if configured)

Report generation

1. Read checklog.csv (only delta ≠ 0 records)
2. Filter by date range (last 1d / 7d / month-to-date)
3. Build report with: per-skill start→end, cumulative delta, peak time, total
4. Print + archive + Feishu push

Add/remove skills

add      → append to skills.csv (auto-create with header if missing)
remove   → remove from skills.csv (historical checklog preserved)
list           → show monitor list with last known download counts

Prerequisites

  • clawhub CLI installed (auto-detected via shutil.which with fallback to /opt/homebrew/bin/clawhub)

  • Python 3 (built-in on macOS)

  • Feishu credentials (only needed for push notifications):

    • CLAWHUB_FEISHU_APP_ID
    • CLAWHUB_FEISHU_APP_SECRET
    • CLAWHUB_FEISHU_USER_OPEN_ID

    Configure via env vars or ~/.openclaw/workspace/data/clawhub-tracker/.env

Storage Strategy

  • checklog.csv — only records with delta ≠ 0 (sparse, keeps file small)
  • last_state.json — latest snapshot per slug (avoids re-scanning checklog on each run)
  • reports/YYYY-MM.md — monthly archive of all outputs
  • tracker.log — run history with errors
  • File locking via fcntl.flock — safe under concurrent launchd triggers

Data Files

~/.openclaw/workspace/data/clawhub-tracker/
├── skills.csv         # slug,note
├── checklog.csv       # timestamp,slug,downloads,delta
├── last_state.json    # {slug: {downloads, ts}}
├── reports/           # YYYY-MM.md archives
├── tracker.log        # Run logs
└── .tracker.lock      # File lock (transient)

Data Source

Fetches official stats.downloads via clawhub inspect --json. Direct from ClawHub registry — no third-party APIs.

Edge Cases

ScenarioBehavior
Slug not found in ClawHubMark as fetch failed, skip
Invalid slug formatReject (regex validation, prevents injection)
Missing .envSkip Feishu push, continue with local files
Empty skills.csvSend "no skills to monitor" notice to Feishu, exit
Concurrent runsSecond instance detects lock, exits gracefully
checklog missing (e.g. migration)Fall back to last_state.json for delta

See Also

  • README.md — full user-facing docs (installation, launchd setup, security)
  • README.zh.md — Chinese version
  • test_clawhub_tracker.py — test suite

相关技能

每日精选 8 个值得关注的 ClawHub AI Agent Skill,可推送飞书或腾讯 IMA。

10 次安装1 星标

Fetch live ClawHub publisher metrics for a specific user, including published skills, author rank, total downloads, stars, current installs, all-time install...

12 次安装

Install skills from multiple skill hubs with one tool: clawhub.ai (default), skillhub.cn (SkillHub, China-optimized), skills.sh (npx skills, GitHub-based), t...

1 次安装

将本地开发的 Skills 批量同步到 ClawHub 与腾讯 SkillHub 两个平台。支持智能 .gitignore 过滤、白名单控制、增量同步、单个 skill 同步、双平台分流发布。本技能应在用户需要将本地 skills 发布到 ClawHub/SkillHub、批量同步技能、检查发布状态时使用。

13 次安装

每 3 天扫描 ClawHub + SkillHub 做 10 维度推荐并三处存放。可选扫描 TRAE memory 用于推荐,但派生报告零上下文派生内容,只发布聚合计数,原始扫描仅存本地。当用户说「全球 skill 日报」「global skill daily」时触发。v1.5.0 自依赖改造:仅依赖 Pyth...

1 次安装1 星标

将 ClawHub 的 skill 链接转换为 SkillHub (skillhub.cn) 链接,并在 SkillHub 上按相关度搜索、推荐 skill。当用户搜索某功能/名称的 skill、给出 clawhub.ai 的 skill 链接、或希望寻找 ClawHub 之外的 skill 来源(规避其过于严格的安全审查)时使用本技能。