Skip to content
Back to skills

Github Trending Feed

ASecurity

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

  • 11 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 10, 2026
developmentjavascriptpythonjavabashgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 10, 2026

npx -y skills add luokai0/ai-agent-skills-by-luo-kai --skill github-trending-feed --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Trending Feed?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Trending Feed
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/luokai0-github-trending-feed/badge)](https://www.skillsdirectory.com/skills/luokai0-github-trending-feed)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

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

# GitHub Trending 数据获取

## 工作流程

1. **抓取 Trending 页面**:获取 GitHub 热门仓库列表
2. **获取仓库详情**:对每个仓库调用 GitHub REST API 获取 description、stars、language
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. owner/repo - 描述 ⭐ 12345 | Python | https://github.com/owner/repo
```

**控制台**:
```
1. owner/repo (⭐ 12345 | Python)
   描述
   https://github.com/owner/repo
```

## 注意事项

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

Files in this skill

  • .clawhub/origin.json152 B
  • SKILL.md1.7 KB
  • _meta.json139 B
  • scripts/fetch_trending.py4.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…