with one click
github
获取 GitHub 每日热门仓库摘要,支持按语言筛选
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
获取 GitHub 每日热门仓库摘要,支持按语言筛选
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | github |
| description | 获取 GitHub 每日热门仓库摘要,支持按语言筛选 |
| argument-hint | [language] |
| user-invocable | true |
| allowed-tools | WebFetch Bash Read |
获取 GitHub 今日 trending 仓库并以表格形式呈现给用户。
用 Bash 读取 ~/.navi/config.toml 中 [github] 段的 token:
python3 -c "import tomllib; print(tomllib.load(open('$HOME/.navi/config.toml','rb'))['github']['token'])"
如果 token 不为空,用 curl 抓取 GitHub trending 页面,用正则提取所有 Box-row 中的仓库名:
curl -s -H "Authorization: token $TOKEN" "https://github.com/trending/$ARGUMENTS" | python3 -c "
import sys, re
content = sys.stdin.read()
pattern = r'<h2[^>]*>\s*<a[^>]*href=\"/([^\"]+)\"'
matches = re.findall(pattern, content)
repos = [m.strip() for m in matches if '/' in m and m.count('/') == 1]
for r in repos:
print(r)
"
如果 token 为空,回退到 WebFetch 抓取 https://github.com/trending/$ARGUMENTS。
对每个仓库调用 GitHub API 获取 stars、forks、description:
curl -s -H "Authorization: token $TOKEN" "https://api.github.com/repos/<owner>/<repo>"
从 JSON 中提取 full_name、stargazers_count、forks_count、description。
可以用循环一次处理所有仓库。数量大时用 k 表示(如 1.2k)。
## GitHub 每日热榜
────────────────────────────────────────
#: 1
仓库: owner/repo (⭐ 1.2k 🔀 300)
简介: 详细的项目简介描述
链接: https://github.com/owner/repo
每条仓库之间用 ──────────────────────────────────────── 分隔。
owner/repo 短名称 + stars 和 forks,格式为 owner/repo (⭐ Stars 🔀 Forks)https://github.com/owner/repo$ARGUMENTS),在标题中注明(如 "GitHub 热榜 — Python")查阿里云 PAI-DLC 训练任务——`dlc list` 跨全部可访问工作空间列 Running 任务(含 GPU 卡数 / 已运行时长 / 属主),`dlc logs <jobid>` 取某任务最后一个节点的日志,`dlc workspaces` 列可访问工作空间
每日简报,并行调用 arxiv / HF Papers / 知乎 / HN / GitHub / Product Hunt
把任务结果 / 通知推送到飞书群自定义机器人(webhook)。想在飞书群里收到结果时用。
把任务结果推送到华为/荣耀手机「负一屏」(HiBoard 服务动态)。任务完成后想在手机上看到结果时用。
把 ~/.navi(config.toml + paper-cache 等)镜像备份到 WebDAV(账号配在 [navi] 段)——`navi sync` 增量上传,`navi pull` 在新机器上恢复,`navi status` 看差异
把 Zotero 论文库同步到本地并用 PaperQA2 做语义问答——`paper sync` 拉 PDF 建向量索引,`paper ask` 对自己的论文库带引用问答