获取 GitHub 热门趋势项目(每日/每周/月),访问仓库了解功能。默认返回前10项,含描述、统计和 README 提取的实际功能。用于询问 GitHub 趋势、热门仓库或流行项目时,始终输出中文结果。
获取并分析不同时间段的 GitHub 热门项目。
触发短语:
参数:
--period 或 -p: 时间段(daily/weekly/monthly)。默认:daily--limit 或 -l: 返回项目数量(1-15)。默认:10--language 或 -L: 按编程语言过滤(如 python, javascript, rust)--compare: 对比模式,对比两个时间段(如 daily,weekly 或 weekly,monthly)--report: 生成趋势报告(weekly-report 或 monthly-report)抓取 trending 页面
https://github.com/trending?since={period}web_fetch,maxChars=15000提取项目元数据 对列表中每个项目提取:
访问每个仓库
https://github.com/{owner}/{repo},maxChars=8000格式化输出(中文) 返回 markdown 格式: markdown
## GitHub 热门项目 - {今日/本周/本月}
### 1. owner/repo
**语言**: {language} | **Stars**: {total} (+{new} {今日/本周/本月})
{原始描述}
**项目功能**: {从 README 提取的内容}
🔗 https://github.com/owner/repo
---
抓取两个时间段的数据
分析差异
输出对比报告 markdown
## GitHub 趋势对比:{周期1} vs {周期2}
### 📈 新上榜项目(仅在{周期1})
{列出新项目及其亮点}
### 🔥 持续热门(两个周期都在榜)
{列出项目及热度变化}
### 📊 趋势洞察
### 报告模式(--report)
1. **周报(weekly-report)**
- 抓取本周 daily trending(取 3 天采样)
- 统计本周最热项目(按出现频次 \+ Star 增长)
- 分析:
- Top 10 本周最热项目
- 热门技术栈
- 新兴领域
- 输出格式:
markdown
```markdown
# GitHub 本周趋势报告
**时间**: {日期范围}
## 🏆 本周 Top 10
{项目列表 + 详细分析}
## 📊 技术趋势
- 热门语言:{统计}
- 热门领域:{AI/DevOps/Web 等}
## 💡 值得关注
{3-5 个特别推荐项目}
对比模式:顺序抓取两个时间段,避免并发请求
报告模式:
缓存策略:可选将抓取结果保存到 memory/github-trending-{date}.json 避免重复请求
daily,weekly)bash
# 基础查询
github trending
github trending --period weekly --limit 15
# 语言过滤
github trending --language python
# 对比模式
github trending --compare daily,weekly
github trending --compare weekly,monthly --language rust
# 报告模式
github trending --report weekly-report
github trending --report monthly-report --language javascript