name: github-track description: > 追蹤指定 GitHub 倉庫的動態資訊,包括 star 數量、issues、PR 變化。 使用場景: - "追蹤 xxx 倉庫" - "監控 xxx 專案的 star" - "看看 xxx 有什麼新 issue" - "檢查 xxx 倉庫最近有什麼 PR" - "github-track xxx/repo"
持續追蹤你關心的開源專案,不錯過任何重要更新。
| 功能 | 說明 |
|---|---|
| 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"
}
追蹤 openclaw/openclaw 倉庫
Skill 會: 1. 通過 GitHub API 獲取倉庫基本資訊(stars, forks, open issues count) 2. 獲取最近 5 條 issues(按更新時間) 3. 獲取最近 5 條 PRs(按更新時間) 4. 與歷史記錄對比,發現新增內容 5. 格式化輸出追蹤報告
檢視追蹤的倉庫列表
重新整理追蹤 openclaw/openclaw
取消追蹤 openclaw/openclaw
使用 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
curl -s -I https://api.github.com/rate_limit 檢查剩餘額度在 ~/.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 |
內建工具 | 儲存追蹤配置和歷史資料 |
這個 Skill 質量良好,功能實用,能幫助使用者追蹤 GitHub 倉庫的動態變化。它在文件說明方面做得比較完善,但缺少自動化測試。建議改進的地方是讓安裝配置過程更加簡單直接。總體而言,這是一個功能清晰、文件詳盡但自動化測試不足的技能包。