360 Secure SkillHub
360 安全技能中心

GitHub AI Trends

通过 Python 脚本调用 GitHub API 搜索指定时间段内推送的 AI/ML/LLM 仓库,按 star 去重排序,输出可直接在聊天中展示的 Markdown 排行榜;支持 daily/weekly/monthly 周期与数量上限,可选 GitHub Token 提高速率限制。

toller892
toller892
热度 98.66
最近更新 2026-05-11 16:24:59
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究 / 推荐 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add github-ai-trends
Metadata
name
github-ai-trends
description
Generate GitHub AI trending project reports as formatted text leaderboards. Fetches top-starred AI/ML/LLM repos by daily, weekly, or monthly period and renders a styled leaderboard. Use when the user asks for AI project trends, GitHub trending, AI leaderboard, or wants to see popular AI repos.

GitHub AI Trends

Generate formatted leaderboard of trending AI projects on GitHub, output directly to chat.

Usage

Run the script and paste its stdout as the reply:

python3 scripts/fetch_trends.py --period weekly --limit 20

Parameters

  • --period: daily | weekly | monthly (default: weekly)
  • --limit: Number of repos (default: 20)
  • --token: GitHub token for higher rate limits (or set GITHUB_TOKEN env)
  • --json: Output raw JSON instead of formatted text

How It Works

  1. Searches GitHub API for AI-related repos (by keywords + topics) pushed within the period
  2. Deduplicates and sorts by star count
  3. Outputs a formatted markdown leaderboard ready for chat display

Notes

  • Without a GitHub token, API rate limit is 10 requests/minute. With token: 30/minute.
  • No pip dependencies, uses only stdlib.
  • Output is markdown formatted for direct chat display.