Назад към всички

github-topics

// Fetches GitHub topic trending repositories. Use when asking about GitHub trending repos or open source projects.

$ git log --oneline --stat
stars:1,933
forks:367
updated:March 4, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
namegithub-topics
descriptionFetches GitHub topic trending repositories. Use when asking about GitHub trending repos or open source projects.

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

TypeExamplesDescription
Rankings热门仓库 Top 10Current rankings by stars
Detailxxx/xxx 介绍Repository README summary
Topicpython 话题排行榜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 InputQuery TypeAction
热门仓库rankingsShow top N repos
Top 10 项目rankingsShow top N repos
xxx/xxx 介绍detailGet README summary
python 话题rankingsSearch 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

VariableDescriptionDefault
GH_TOKENGitHub Personal Access Token (optional, for higher rate limits)-
TOPICGitHub topic to trackclaude-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 TypeRate
Authenticated5,000 requests/hour
Unauthenticated60 requests/hour

Recommendation: Use GH_TOKEN for higher rate limits.


Troubleshooting

IssueSolution
Rate limitSet GH_TOKEN env var
Network timeoutCheck internet connection
Empty resultsCheck 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