返回顶部
g

github-trendingGitHub热榜

获取 GitHub Trending 热门仓库列表。当用户要求查看 GitHub 热榜、每日 GitHub trending、推送 GitHub 热门项目时使用。支持可选语言过滤,返回结构化 JSON 由 agent 自行决定输出格式。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
386
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

github-trending

GitHub Trending 数据获取

工作流程

  1. 1. 抓取 Trending 页面:获取 GitHub 热门仓库列表
  2. 获取仓库详情:对每个仓库调用 GitHub REST API 获取描述、星标数、编程语言
  3. 返回 JSON:由 agent 自行格式化为目标平台的消息

使用方法

基础用法

bash python3 ~/.openclaw/workspace/skills/github-trending/scripts/fetch_trending.py

语言过滤

bash python3 ~/.openclaw/workspace/skills/github-trending/scripts/fetch_trending.py python python3 ~/.openclaw/workspace/skills/github-trending/scripts/fetch_trending.py javascript

输出格式

返回 JSON 数组,每个元素:
json
{
full_name: owner/repo,
description: 仓库描述,
language: Python,
stars: 12345,
url: https://github.com/owner/repo
}

Agent 使用建议

获取数据后,根据所在平台格式化输出:

飞书

📊 GitHub Trending · 今日热榜
🔥 1. owner/repo - 描述 ⭐ 12345 | Python 🔗 https://github.com/owner/repo

Discord/Telegram

📊 GitHub Trending 今日热榜

  1. 1. owner/repo - 描述 ⭐ 12345 | Python | https://github.com/owner/repo

控制台

  1. 1. owner/repo (⭐ 12345 | Python)
描述 https://github.com/owner/repo

注意事项

  • - GitHub API 有速率限制,高频使用建议配合缓存
  • 脚本自动处理 API 错误,失败时会返回备用数据
  • 默认返回 9 个仓库,语言过滤时返回 10 个

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 github-trending-feed-1776102968 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-trending-feed-1776102968 技能

通过命令行安装

skillhub install github-trending-feed-1776102968

下载

⬇ 下载 github-trending v1.0.0(免费)

文件大小: 3.45 KB | 发布时间: 2026-4-14 13:00

v1.0.0 最新 2026-4-14 13:00
Initial release: fetch GitHub trending repos with structured JSON output, platform-agnostic

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部