← Back to Skills Marketplace
callmegod66

Github Trending

by zhangsirrrrr · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
487
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install skill-github-trending
Description
通过网页抓取获取 GitHub 按日/周/月增长的热门仓库。当用户询问 GitHub 趋势、热门项目、本周热点或「什么在 GitHub 上 trending」时使用。可输出列表或 JSON,无需 API Key。
README (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.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install skill-github-trending
  3. After installation, invoke the skill by name or use /skill-github-trending
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug skill-github-trending
Version 1.0.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Github Trending?

通过网页抓取获取 GitHub 按日/周/月增长的热门仓库。当用户询问 GitHub 趋势、热门项目、本周热点或「什么在 GitHub 上 trending」时使用。可输出列表或 JSON,无需 API Key。 It is an AI Agent Skill for Claude Code / OpenClaw, with 487 downloads so far.

How do I install Github Trending?

Run "/install skill-github-trending" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Github Trending free?

Yes, Github Trending is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Github Trending support?

Github Trending is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Github Trending?

It is built and maintained by zhangsirrrrr (@callmegod66); the current version is v1.0.0.

💬 Comments