{"skill":{"slug":"github-topics","displayName":"Github Topics","summary":"Fetches GitHub topic trending repositories. Use when asking about GitHub trending repos or open source projects.","description":"---\nname: github-topics\ndescription: Fetches GitHub topic trending repositories. Use when asking about GitHub trending repos or open source projects.\n---\n\n# GitHub Topics Trending\n\nFetch GitHub topic trending repositories and README summaries.\n\n## Quick Start\n\n```\n# View rankings\n今天 claude-code 话题排行榜\nTop 10 GitHub 项目\n热门仓库\n\n# View repository details\nanthropics/claude-code 介绍\n这个仓库是做什么的\n```\n\n## Query Types\n\n| Type | Examples | Description |\n|------|----------|-------------|\n| Rankings | `热门仓库` `Top 10` | Current rankings by stars |\n| Detail | `xxx/xxx 介绍` | Repository README summary |\n| Topic | `python 话题排行榜` | Custom topic search |\n\n## Workflow\n\n```\n- [ ] Step 1: Parse query type\n- [ ] Step 2: Fetch data from GitHub\n- [ ] Step 3: Format and display results\n```\n\n---\n\n## Step 1: Parse Query Type\n\n| User Input | Query Type | Action |\n|------------|------------|--------|\n| `热门仓库` | rankings | Show top N repos |\n| `Top 10 项目` | rankings | Show top N repos |\n| `xxx/xxx 介绍` | detail | Get README summary |\n| `python 话题` | rankings | Search python topic |\n\n---\n\n## Step 2: Fetch Data\n\n### Fetch Rankings\n\n```bash\ncd skills/github-topics\npython src/github_fetcher.py\n```\n\n**Requirements**:\n```bash\npip install requests\n```\n\n### Fetch README (Optional)\n\n```bash\npython src/readme_fetcher.py\n```\n\n---\n\n## Step 3: Format Results\n\n### Rankings Output\n\n```markdown\n# GitHub Trending - python\n\n| # | Repository | Stars | Language |\n|---|------------|-------|----------|\n| 1 | donnemartin/system-design-primer | 334K | Python |\n| 2 | vinta/awesome-python | 281K | Python |\n| 3 | project-based-learning | 257K | - |\n```\n\n### Detail Output\n\n```markdown\n# anthropics/claude-code\n\n**Stars**: 15.2K\n**Language**: TypeScript\n**URL**: https://github.com/anthropics/claude-code\n\n## README Summary\nOfficial Claude Code CLI for AI-powered software development. Claude Code is Anthropic's official CLI tool...\n```\n\n---\n\n## Configuration\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `GH_TOKEN` | GitHub Personal Access Token (optional, for higher rate limits) | - |\n| `TOPIC` | GitHub topic to track | `claude-code` |\n\n**Note**: `GH_TOKEN` is optional but recommended:\n- With token: 5,000 requests/hour\n- Without token: 60 requests/hour\n\nCreate token at: https://github.com/settings/tokens\n\n---\n\n## GitHub API Notes\n\n| Limit Type | Rate |\n|------------|------|\n| Authenticated | 5,000 requests/hour |\n| Unauthenticated | 60 requests/hour |\n\n**Recommendation**: Use `GH_TOKEN` for higher rate limits.\n\n---\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| Rate limit | Set `GH_TOKEN` env var |\n| Network timeout | Check internet connection |\n| Empty results | Check topic name exists |\n\n---\n\n## CLI Reference\n\n```bash\n# Fetch rankings (default topic: claude-code)\npython skills/github-topics/src/github_fetcher.py\n\n# Fetch README\npython skills/github-topics/src/readme_fetcher.py\n```\n","tags":{"latest":"0.1.0"},"stats":{"comments":0,"downloads":892,"installsAllTime":1,"installsCurrent":1,"stars":0,"versions":1},"createdAt":1770998142045,"updatedAt":1778489510625},"latestVersion":{"version":"0.1.0","createdAt":1770998142045,"changelog":"Initial release: Quickly fetch and display trending GitHub repositories by topic or show repository details.\n\n- Added support for fetching trending repositories by topic from GitHub.\n- Can display top repositories, show repository README summaries, and search by custom topic.\n- Provides markdown-formatted outputs for both rankings and repository details.\n- Includes usage instructions, API rate limit handling, and troubleshooting tips.\n- Optional configuration for GitHub token and tracked topic.","license":null},"metadata":null,"owner":{"handle":"hjw21century","userId":"s17fcfxg7qnvhcm4560ha42sy9885zc5","displayName":"hjw21century","image":"https://avatars.githubusercontent.com/u/7070409?v=4"},"moderation":null}