← 返回 Skills 市场
callmegod66

Github Trending

作者 zhangsirrrrr · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
487
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install skill-github-trending
功能描述
通过网页抓取获取 GitHub 按日/周/月增长的热门仓库。当用户询问 GitHub 趋势、热门项目、本周热点或「什么在 GitHub 上 trending」时使用。可输出列表或 JSON,无需 API Key。
使用说明 (SKILL.md)

GitHub Trending

Fetches GitHub Trending repositories (daily/weekly/monthly). Uses only Python standard library; no external packages.

When to Use

  • User asks for GitHub trending, popular repos, 本周热点 / this week's hotspots
  • User wants daily / weekly / monthly trending
  • User wants trending filtered by programming language

Quick Start

Run from the skill directory (e.g. github-trending/):

# Weekly trending (default), 15 repos
python scripts/github_trending.py weekly

# Daily trending, 10 repos
python scripts/github_trending.py daily --limit 10

# Weekly trending in Python
python scripts/github_trending.py weekly --language python

# JSON output (for piping or tooling)
python scripts/github_trending.py weekly --json

Parameters

Argument Values Default Description
period daily, weekly, monthly weekly Time range for "stars gained"
--limit integer 15 Max number of repos to return
--language string (all) Filter by language (see below)
--json flag Output JSON instead of human-readable text

Language: Use full name or alias. Script supports aliases: py→python, ts→typescript, js→javascript, cpp/c++→c++, c#/csharp→c#, rs→rust, rb→ruby, go→go. Others are passed as-is (e.g. --language "c").

Output

Text (default)

  • Rank (numeric), repo full_name, description (trimmed to 90 chars)
  • 每行统计符号含义:
    • 🔧 编程语言(Language)
    • 总 Star 数(total stars)
    • 📈 本周期新增 Star 数(stars gained in the selected period)
  • 时间以北京时区 (UTC+8) 显示

JSON (--json)

{
  "period": "weekly",
  "updated_at": "2026-03-13T21:00:00+08:00",
  "data": [
    {
      "rank": 1,
      "full_name": "owner/repo",
      "url": "https://github.com/owner/repo",
      "description": "...",
      "language": "Python",
      "stars_total": "12345",
      "stars_gained": 1234
    }
  ]
}

Data Source

  • URL: https://github.com/trending (and .../trending/\x3Clanguage>?since=\x3Cperiod>)
  • Method: HTTP + html.parser.HTMLParser (no browser, no auth)
  • Fresh: Each run fetches the current page

Dependencies

Python standard library only: urllib.request, html.parser, json, argparse, datetime. No pip install required.

Troubleshooting

Issue What to do
Empty data / no repos Network may have closed early (IncompleteRead). Retry; if script supports it, use chunked read.
Parse errors / wrong structure GitHub may have changed HTML; script may need selector/parser updates.
Timeout Check network; default timeout 15s.
Windows console encoding error on emoji Set PYTHONIOENCODING=utf-8 or run with --json and parse elsewhere.

Notes

  • Trending is by stars gained in the chosen period, not total stars.
  • For GitHub API (e.g. search by stars, auth), use a separate GitHub API skill.
安全使用建议
This skill appears internally consistent and low-risk: it scrapes GitHub Trending pages with a small standard-library Python parser and asks for no secrets. Before installing, consider: (1) GitHub may block or throttle scraping — avoid frequent automated polling and respect Terms of Service; (2) the HTML parser is fragile and may need updates if GitHub changes markup; (3) run the script in a sandbox or with restricted network egress if you want extra safety; (4) if you prefer an API-backed approach (more stable and official), use a GitHub API-based skill (which will require credentials). If you want even lower risk, review the included script locally (it's small) before enabling autonomous invocation.
功能分析
Type: OpenClaw Skill Name: skill-github-trending Version: 1.0.0 The skill is a straightforward web scraper designed to fetch GitHub Trending repositories using only the Python standard library (urllib and html.parser). The script (github_trending.py) and instructions (SKILL.md) are well-documented, lack external dependencies, and show no signs of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description match the implementation: the script fetches https://github.com/trending and parses trending repos. No unrelated services, binaries, or credentials are requested.
Instruction Scope
SKILL.md only instructs running the included Python script with command-line args. The instructions and script limit actions to fetching and parsing GitHub HTML; they do not read local files, environment secrets, or send data to other endpoints.
Install Mechanism
No install spec; the skill is instruction-only plus a small Python script that uses only the standard library (urllib, html.parser). Nothing is downloaded or installed at runtime.
Credentials
No environment variables, credentials, or config paths are required. Network access is limited to GitHub's trending pages, which is expected for the stated functionality.
Persistence & Privilege
The skill does not request persistent presence (always:false) and does not modify other skills or system configuration. Autonomous invocation is allowed by default but is not coupled with elevated privileges or broad access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install skill-github-trending
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /skill-github-trending 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the **GitHub Trending skill**. - Fetches GitHub trending repositories by day, week, or month—no API key required. - Supports language filtering and outputs results as formatted text or JSON. - Pure Python standard library implementation; no external packages needed. - Ideal for displaying currently popular GitHub projects, stats, and hot repos on request.
元数据
Slug skill-github-trending
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Github Trending 是什么?

通过网页抓取获取 GitHub 按日/周/月增长的热门仓库。当用户询问 GitHub 趋势、热门项目、本周热点或「什么在 GitHub 上 trending」时使用。可输出列表或 JSON,无需 API Key。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 487 次。

如何安装 Github Trending?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install skill-github-trending」即可一键安装,无需额外配置。

Github Trending 是免费的吗?

是的,Github Trending 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Github Trending 支持哪些平台?

Github Trending 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Github Trending?

由 zhangsirrrrr(@callmegod66)开发并维护,当前版本 v1.0.0。

💬 留言讨论