# GitHub Top Contributors This Month

> Rank GitHub repository contributors by pull requests created in the current month using precise Search API filtering.

GitHub Top Contributors This Month is a free AI agent skill on Agensi by Buddhaprakash Patil, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Buddhaprakash Patil](https://www.agensi.io/creators/buddhaprakash-patil)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/github-top-contributors-this-month
- Tags: code-review, github-api, gh-cli, productivity, git

## About this skill

GitHub's standard API endpoints for pull requests often return misleading data when filtering by time. Using the `since` parameter captures updated PRs rather than newly created ones, leading to inaccurate leaderboard counts. This skill solves that by leveraging the GitHub Search API and the `gh` CLI to precisely track monthly contributions.

### What it does
- **Precision filtering** Targets the `created` date attribute to ensure only PRs opened within the current month are counted.
- **Accurate aggregation** Collects author logins across paginated results to build a reliable ranking.
- **Cross-page verification** Compares the sum of aggregated author counts against the API's `total_count` to ensure no data is missed.
- **Limit detection** Monitors the 1,000-result threshold of the GitHub Search API and warns if data may be incomplete.
- **Leaderboard generation** Produces a formatted Markdown table of the top 10 contributors including the total PR count.

### How it works
1. Calculate the current month's date range and execute a search query to retrieve the `total_count` of pull requests.
2. Fetch paginated result sets using the `gh api` command, extracting the login of every PR author.
3. Process the list of logins to count occurrences and rank authors in descending order.
4. Validate the results against the initial total count and format the findings into a leaderboard.

### Frameworks & tools
Requires the GitHub CLI (`gh`) to be installed and authenticated. It utilizes the GitHub Search API for issue and pull request indexing.

### Why this beats prompting it yourself
Manual prompts often fail to account for the nuances of GitHub's pagination or mistakenly use the `pulls` endpoint which overcounts via the `since` filter. This skill handles the specific CLI syntax and multi-step verification required for data integrity.

### Use cases
- Generate monthly contribution reports for open-source maintainers.
- Audit team velocity by identifying the most active PR authors.
- Create automated "Contributor of the Month" leaderboards for internal repositories.

### Known limitations
Requires `gh` CLI authentication. GitHub Search API caps results at 1000 items, which may affect extremely high-velocity repositories.

## Known limitations

Requires authenticated gh CLI. Search API limit of 1000 results per query may truncate data for very high-volume repos.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the GitHub Top Contributors This Month skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Why should I use this skill instead of standard GitHub API tools?

Standard GitHub API filters often include older PRs that were simply updated recently. This skill uses precise Search API parameters to isolate PRs by their actual creation date, ensuring your leaderboard reflects true monthly activity.

### What are the technical requirements to run the Top Contributors skill?

The skill requires the GitHub CLI (`gh`) to be installed and authenticated on your system. It leverages your existing credentials to securely query repository data without needing additional API keys.

### Can I use this to track contributions for a specific team or internal repository?

Yes, while it defaults to the current month, the underlying logic is built to handle specific date ranges. It is ideal for monthly audits, sprint reviews, or 'Contributor of the Month' recognitions.

### Is there a limit to how many pull requests this skill can analyze?

GitHub's Search API has a hard limit of 1,000 results per query. For most repositories, this is more than enough for a monthly count, but the skill will provide a warning if this threshold is reached to ensure data transparency.

### What exactly is included in my purchase?

You receive the fully optimized skill logic, configuration parameters for the GitHub Search API, and a guide on integrating it with your AI agent's toolset.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
