← 返回 Skills 市场
hjw21century

Github Topics

作者 hjw21century · GitHub ↗ · v0.1.0
cross-platform ✓ 安全检测通过
635
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install github-topics
功能描述
Fetches GitHub topic trending repositories. Use when asking about GitHub trending repos or open source projects.
使用说明 (SKILL.md)

GitHub Topics Trending

Fetch GitHub topic trending repositories and README summaries.

Quick Start

# View rankings
今天 claude-code 话题排行榜
Top 10 GitHub 项目
热门仓库

# View repository details
anthropics/claude-code 介绍
这个仓库是做什么的

Query Types

Type Examples Description
Rankings 热门仓库 Top 10 Current rankings by stars
Detail xxx/xxx 介绍 Repository README summary
Topic python 话题排行榜 Custom topic search

Workflow

- [ ] Step 1: Parse query type
- [ ] Step 2: Fetch data from GitHub
- [ ] Step 3: Format and display results

Step 1: Parse Query Type

User Input Query Type Action
热门仓库 rankings Show top N repos
Top 10 项目 rankings Show top N repos
xxx/xxx 介绍 detail Get README summary
python 话题 rankings Search python topic

Step 2: Fetch Data

Fetch Rankings

cd skills/github-topics
python src/github_fetcher.py

Requirements:

pip install requests

Fetch README (Optional)

python src/readme_fetcher.py

Step 3: Format Results

Rankings Output

# GitHub Trending - python

| # | Repository | Stars | Language |
|---|------------|-------|----------|
| 1 | donnemartin/system-design-primer | 334K | Python |
| 2 | vinta/awesome-python | 281K | Python |
| 3 | project-based-learning | 257K | - |

Detail Output

# anthropics/claude-code

**Stars**: 15.2K
**Language**: TypeScript
**URL**: https://github.com/anthropics/claude-code

## README Summary
Official Claude Code CLI for AI-powered software development. Claude Code is Anthropic's official CLI tool...

Configuration

Variable Description Default
GH_TOKEN GitHub Personal Access Token (optional, for higher rate limits) -
TOPIC GitHub topic to track claude-code

Note: GH_TOKEN is optional but recommended:

  • With token: 5,000 requests/hour
  • Without token: 60 requests/hour

Create token at: https://github.com/settings/tokens


GitHub API Notes

Limit Type Rate
Authenticated 5,000 requests/hour
Unauthenticated 60 requests/hour

Recommendation: Use GH_TOKEN for higher rate limits.


Troubleshooting

Issue Solution
Rate limit Set GH_TOKEN env var
Network timeout Check internet connection
Empty results Check topic name exists

CLI Reference

# Fetch rankings (default topic: claude-code)
python skills/github-topics/src/github_fetcher.py

# Fetch README
python skills/github-topics/src/readme_fetcher.py
安全使用建议
This skill appears to do what it says: query GitHub search and fetch README content. Before installing, consider: (1) GH_TOKEN is optional — if you supply one, create a token with the minimal scopes needed (read-only/public access) rather than a broad personal token. (2) The package contains only Python scripts that make outbound requests to api.github.com and raw.githubusercontent.com; this network activity is expected. (3) There's a minor documentation/metadata inconsistency (src/__init__.py mentions an unrelated project), which looks like leftover text but is not malicious. If you need stricter assurance, run the scripts in an isolated environment (container) or review/modify the code locally before use.
功能分析
Type: OpenClaw Skill Name: github-topics Version: 0.1.0 The OpenClaw skill 'github-topics' is designed to fetch GitHub trending repositories and README summaries. All network requests in `src/github_fetcher.py` and `src/readme_fetcher.py` are directed to official GitHub API endpoints (`api.github.com` and `raw.githubusercontent.com`). The `GH_TOKEN` environment variable, if provided, is used legitimately for authentication with GitHub to increase API rate limits, as documented in `SKILL.md` and implemented in `src/config.py`. There is no evidence of data exfiltration to unauthorized third parties, malicious command execution, persistence mechanisms, or prompt injection attempts designed to subvert the agent's intended behavior.
能力评估
Purpose & Capability
Name/description (GitHub topics/trending repos) align with the included Python modules (github_fetcher.py and readme_fetcher.py). The code uses the GitHub Search and Repos APIs and raw.githubusercontent.com to fetch READMEs, which is expected for this purpose. The only oddity: src/__init__.py docstring references an unrelated 'AI Daily / smol.ai' project, which looks like leftover copy-paste but does not affect runtime behavior.
Instruction Scope
SKILL.md runtime steps are limited to fetching data from GitHub and rendering results. It suggests running the included Python scripts and optionally setting GH_TOKEN/TOPIC environment variables. One minor mismatch: SKILL.md shows 'cd skills/github-topics' which may not match where skill files are actually installed; this is an operational/documentation issue rather than a security problem.
Install Mechanism
No install spec; this is an instruction-only skill with bundled Python source. It only requires the 'requests' package per README. No downloads from arbitrary URLs or archive extraction were found.
Credentials
The code optionally reads GH_TOKEN and TOPIC from environment variables (both documented in SKILL.md). GH_TOKEN is optional and used only for higher GitHub API rate limits; no other secrets or unrelated credentials are requested. Registry metadata did not list required env vars, but that is consistent with GH_TOKEN being optional.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It does network I/O to GitHub (expected) and writes no persistent configuration or credentials of its own.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install github-topics
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /github-topics 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: Quickly fetch and display trending GitHub repositories by topic or show repository details. - Added support for fetching trending repositories by topic from GitHub. - Can display top repositories, show repository README summaries, and search by custom topic. - Provides markdown-formatted outputs for both rankings and repository details. - Includes usage instructions, API rate limit handling, and troubleshooting tips. - Optional configuration for GitHub token and tracked topic.
元数据
Slug github-topics
版本 0.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Github Topics 是什么?

Fetches GitHub topic trending repositories. Use when asking about GitHub trending repos or open source projects. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 635 次。

如何安装 Github Topics?

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

Github Topics 是免费的吗?

是的,Github Topics 完全免费(开源免费),可自由下载、安装和使用。

Github Topics 支持哪些平台?

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

谁开发了 Github Topics?

由 hjw21century(@hjw21century)开发并维护,当前版本 v0.1.0。

💬 留言讨论