Fetch Github Trending
Researchfetch-github-trendingFetch Github Trending is an Agent Skill for research published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Fetch trending AI/ML repositories from GitHub and store them in memory. Uses HTTP requests for GitHub API and memory MCP for storage and deduplication.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/analysis/fetch-github-trending/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/fetch-github-trending, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Fetch GitHub Trending
Fetch and store trending AI/ML repositories from GitHub with deduplication.
When to Use
Use this skill when you need to:
- Discover trending AI/ML tools and libraries
- Find new repositories gaining traction
- Collect repos for tool spotlight sections in digests
Instructions
Step 1: Define Search Topics
Target these GitHub topics for AI/ML repos:
machine-learningdeep-learningllmartificial-intelligencenlptransformerscomputer-vision
Step 2: Build GitHub Search Query
Construct a GitHub search API query:
Query pattern:
topic:machine-learning OR topic:llm language:python stars:>100 pushed:>2026-01-25
Date calculation based on time range:
daily: pushed in last 1 dayweekly: pushed in last 7 daysmonthly: pushed in last 30 days
Step 3: Fetch from GitHub API
Use the http_request tool to query GitHub Search API.
API endpoint:
- URL:
https://api.github.com/search/repositories - Method: GET
- Parameters: q (query), sort (stars), order (desc), per_page (20)
- Headers: Accept: application/vnd.github.v3+json
For each API response:
- Extract: full_name, description, html_url, stargazers_count, forks_count, language, topics
- Parse created_at and pushed_at timestamps
Step 4: Check for Duplicates
For each repository:
-
Check if already seen:
- Call
memory/check_seenwith key=full_name (e.g., "owner/repo"), namespace="news/repos" - If seen=true, skip this repo
- Call
-
Validate AI relevance:
- Repo must have at least one AI-related topic OR
- Description mentions AI/ML keywords
- Skip repos that don't appear AI-related
Step 5: Store New Repositories
For each new (unseen) repository:
-
Store in memory:
- Call
memory/addwith:- type: "document"
- namespace: "news/repos"
- data: {full_name, name, description, url, stars, forks, language, topics, created_at, pushed_at}
- metadata: {fetched_at, search_topic}
- Call
-
Mark as seen:
- Call
memory/mark_seenwith:- key: full_name
- namespace: "news/repos"
- ttl_seconds: 604800 (7 days)
- Call
Step 6: Return Results
Return a summary including:
- Number of repos stored
- Number of duplicates skipped
- Topics searched
- Total matching repos found
Tool Usage Guidance
http_request tool
- Use for GitHub API calls
- Set appropriate headers for API version
- Handle rate limiting (60/hour unauthenticated, 5000/hour authenticated)
memory/check_seen
- Key should be the full repo name (owner/repo format)
- Namespace: "news/repos"
memory/add
- Store each new repo as type "document"
- Include star count for ranking
memory/mark_seen
- Use 7-day TTL (repos trend changes weekly)
Repository Data Schema
{
"full_name": "owner/repo-name",
"name": "repo-name",
"description": "A powerful LLM inference library",
"url": "https://github.com/owner/repo-name",
"stars": 15234,
"forks": 1523,
"language": "Python",
"topics": ["llm", "inference", "machine-learning"],
"created_at": "2025-06-15",
"pushed_at": "2026-01-26"
}
Error Handling
- If GitHub API rate limits, wait and retry or return cached results
- If API request fails, log error and continue
- Return partial results if some queries succeed
Success Criteria
- At least one topic query succeeds
- Repos are sorted by star count
- No duplicate repos in output
- AI-relevance filter applied