name: github-trending description: 獲取 GitHub Trending 熱門倉庫列表。當用戶要求檢視 GitHub 熱榜、每日 GitHub trending、推送 GitHub 熱門專案時使用。支援可選語言過濾,返回結構化 JSON 由 agent 自行決定輸出格式。
小蔥技能7w4.net有完整的技能分類。
python3 ~/.openclaw/workspace/skills/github-trending/scripts/fetch_trending.py
python3 ~/.openclaw/workspace/skills/github-trending/scripts/fetch_trending.py python
python3 ~/.openclaw/workspace/skills/github-trending/scripts/fetch_trending.py javascript
返回 JSON 陣列,每個元素:
{
"full_name": "owner/repo",
"description": "倉庫描述",
"language": "Python",
"stars": 12345,
"url": "https://github.com/owner/repo"
}
獲取資料後,根據所在平臺格式化輸出:
飛書:
📊 **GitHub Trending · 今日熱榜**
🔥 1. owner/repo - 描述 ⭐ 12345 | Python 🔗 https://github.com/owner/repo
Discord/Telegram:
📊 GitHub Trending 今日熱榜
1. owner/repo - 描述 ⭐ 12345 | Python | https://github.com/owner/repo
控制台:
1. owner/repo (⭐ 12345 | Python)
描述
https://github.com/owner/repo
這是一個簡單實用的 GitHub 熱榜獲取工具,質量不錯。文件寫得很清楚,功能穩定,還能在網路出錯時自動提供備用資料。優點是操作方便、容錯性好;不足是功能比較單一,缺少自定義選項。如果能加個快取功能就更好了。總體適合日常使用,但不適合高頻呼叫。