GitHub Track

👤 wowcharlotte 📦 v1.0.0 ⭐ 4.3 ⬇️ 1K 下載
💻 開發程式設計 免費 🔑 需 API Key

📖 技能介紹


name: github-track description: > 追蹤指定 GitHub 倉庫的動態資訊,包括 star 數量、issues、PR 變化。 使用場景: - "追蹤 xxx 倉庫" - "監控 xxx 專案的 star" - "看看 xxx 有什麼新 issue" - "檢查 xxx 倉庫最近有什麼 PR" - "github-track xxx/repo"


GitHub Track — 倉庫動態追蹤

持續追蹤你關心的開源專案,不錯過任何重要更新。

功能概述

功能 說明
Star 追蹤 獲取當前 star 數,與歷史對比
Issues 追蹤 檢視最新 open/closed issues,過濾標籤
PR 追蹤 檢視 open/merged/closed PRs
變更對比 與上次記錄對比,發現新增內容

追蹤配置

追蹤配置儲存在 ~/.openclaw/workspace/memory/github-track-config.json

{
  "repos": [
    {
      "owner": "openclaw",
      "repo": "openclaw",
      "track_stars": true,
      "track_issues": true,
      "track_prs": true,
      "notify_on_change": true
    }
  ],
  "last_check": "2026-03-05T10:00:00Z"
}

使用方式

1. 新增追蹤倉庫

追蹤 openclaw/openclaw 倉庫

Skill 會: 1. 通過 GitHub API 獲取倉庫基本資訊(stars, forks, open issues count) 2. 獲取最近 5 條 issues(按更新時間) 3. 獲取最近 5 條 PRs(按更新時間) 4. 與歷史記錄對比,發現新增內容 5. 格式化輸出追蹤報告

2. 檢視所有追蹤的倉庫

檢視追蹤的倉庫列表

3. 手動重新整理追蹤

重新整理追蹤 openclaw/openclaw

4. 移除追蹤

取消追蹤 openclaw/openclaw

技術實現

GitHub API 呼叫

使用 GitHub REST API 獲取資料(需要 GitHub Token):

本技能來自小蔥技能站7w4.net。

# 倉庫基本資訊
curl -s -H "Authorization: token {GITHUB_TOKEN}" \
  "https://api.github.com/repos/{owner}/{repo}"

# Issues (預設只獲取 open 的)
curl -s -H "Authorization: token {GITHUB_TOKEN}" \
  "https://api.github.com/repos/{owner}/{repo}/issues?state=all&sort=updated&per_page=5"

# PRs (只獲取 pull requests)
curl -s -H "Authorization: token {GITHUB_TOKEN}" \
  "https://api.github.com/repos/{owner}/{repo}/pulls?state=all&sort=updated&per_page=5"

# Stars 歷史 (需要 paginate)
curl -s -H "Authorization: token {GITHUB_TOKEN}" \
  "https://api.github.com/repos/{owner}/{repo}/stargazers?per_page=1"

資料儲存

追蹤資料儲存在 ~/.openclaw/workspace/memory/github-track-data.json

{
  "openclaw/openclaw": {
    "last_check": "2026-03-05T10:00:00Z",
    "stars": 1234,
    "forks": 567,
    "open_issues": 23,
    "open_prs": 5,
    "recent_issues": [
      {
        "number": 123,
        "title": "Issue 標題",
        "state": "open",
        "updated_at": "2026-03-05T09:00:00Z",
        "comments": 5
      }
    ],
    "recent_prs": [
      {
        "number": 456,
        "title": "PR 標題",
        "state": "open",
        "updated_at": "2026-03-05T08:00:00Z",
        "draft": false
      }
    ]
  }
}

變更檢測

對比邏輯: 1. 讀取歷史記錄 2. 獲取最新資料 3. 比較 stars、issues、PRs 數量 4. 檢測新提交的 issue/PR 5. 生成變更報告

輸出格式

追蹤報告模板

# GitHub 倉庫追蹤報告

## 🎯 openclaw/openclaw

**📊 當前狀態**
- ⭐ Stars: 1,234 (+12 較上週)
- 🍴 Forks: 567 (+3)
- 🐛 Open Issues: 23 (-2)
- 📥 Open PRs: 5 (+1)

**🐛 最近 Issues**
- [#123](https://github.com/openclaw/openclaw/issues/123) - Issue 標題 (5 comments)
- [#122](https://github.com/openclaw/openclaw/issues/122) - Issue 標題 (2 comments)

**📥 最近 PRs**
- [#456](https://github.com/openclaw/openclaw/pull/456) - PR 標題 (draft: false)
- [#455](https://github.com/openclaw/openclaw/pull/455) - PR 標題 (merged)

**✨ 新增變化**
- 新增 1 個 open issue
- 新增 1 個 open PR
- Stars +12

注意事項

  1. API 限流:未認證請求每小時 60 次,使用 Token 可提高到 5000 次
  2. Rate Limit:使用 curl -s -I https://api.github.com/rate_limit 檢查剩餘額度
  3. 長期追蹤:建議通過 cron 任務定期重新整理,設定頻率不超過每小時 1 次
  4. 隱私:Token 儲存在 TOOLS.md 中,不要提交到公開倉庫

配置

~/.openclaw/workspace/TOOLS.md 中新增:

### GitHub

- GITHUB_TOKEN: 你的 GitHub Personal Access Token

獲取 Token:https://github.com/settings/tokens (需要 repo 許可權)

依賴

依賴 型別 用途
web_fetch 內建工具 備選方案,當 API 失敗時抓取網頁
exec 內建工具 呼叫 curl 執行 GitHub API
memory 內建工具 儲存追蹤配置和歷史資料

🤖 AI 評測

這個 Skill 質量良好,功能實用,能幫助使用者追蹤 GitHub 倉庫的動態變化。它在文件說明方面做得比較完善,但缺少自動化測試。建議改進的地方是讓安裝配置過程更加簡單直接。總體而言,這是一個功能清晰、文件詳盡但自動化測試不足的技能包。

📊 多維度評分

適應性4
規範性4.1
有效性4.5
可靠性4.1
可信度4.4

📁 包含檔案 (5 個)

📄 README.md 2.3 KB
📄 SKILL.md 4.6 KB
📄 _meta.json 131 B
📄 scripts/daily-report.sh 3.3 KB
📄 scripts/track.py 18.6 KB