Skip to content
Agentmart
Submit a tool

pr-leaderboard

Use when asked to analyze, rank, or explore merged PRs in a GitHub repo — "who merged what this week", "PR leaderboard", "rank contributors", "top authors"…

Skill by sejas

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sejas-pr-leaderboard

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when asked to analyze, rank, or explore merged PRs in a GitHub repo — "who merged what this week", "PR leaderboard", "rank contributors", "top authors", "PRs merged since X", weekly/monthly merge activity — for the current repo or any owner/repo.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pr-leaderboard

What's inside

Skill name
pr-leaderboard
Description
Use when asked to analyze, rank, or explore merged PRs in a GitHub repo — "who merged what this week", "PR leaderboard", "rank contributors", "top authors", "PRs merged since X", weekly/monthly merge activity — for the current repo or any owner/repo.
License
MIT
Instructions
41 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# PR Leaderboard

Rank merged-PR activity by author using `gh` + `jq`. No checkout needed.

## Defaults

- Repo: current directory's repo (or `--repo <owner>/<repo>`).
- Window: "this week" = since most recent Monday. Otherwise use the user's range.
- Always state the window and repo in the answer.

## Commands

Raw list (titles, authors, sizes):

```bash
gh pr list --repo <owner>/<repo> --state merged --search "merged:>=YYYY-MM-DD" \
  --limit 200 --json number,title,author,mergedAt,additions,deletions
```

Ranking table (PRs per author + line totals, sorted desc):

```bash
gh pr list --repo <owner>/<repo> --state merged --search "merged:>=YYYY-MM-DD" \
  --limit 200 --json number,author,additions,deletions | \
  jq -r 'group_by(.author.login) | map({login: .[0].author.login, name: (.[0].author.name // ""), prs: length, add: (map(.additions)|add), del: (map(.deletions)|add)}) | sort_by(-.prs) | .[] | "\(.login)\t\(.name)\t\(.prs)\t+\(.add)\t-\(.del)"'
```

Date ranges: `"merged:YYYY-MM-DD..YYYY-MM-DD"`. Search also accepts `author:<login>`, `label:<name>`, `base:<branch>`.

## Output

Markdown table ranked by PR count: rank, user (login + real name), PR count, +/− lines, one-line "notable work" summarized from titles. After the table note: human vs bot split, dominant themes, biggest deleter (cleanup credit).

## Gotchas

- Bots: `author.is_bot` only catches app accounts (`app/dependabot`); release bots like `wpmobilebot` are regular users — flag by login.
- Release-branch merge PRs inflate line counts; call them out, don't count as feature work.
- `--limit` defaults to 30 — always pass `--limit 200` (raise if hit).
- `.author.name` can be empty; fall back to login.

From sejas/ai-code-skills, MIT.

More from sejas/ai-code-skills

Signals

Stars
2
Forks
1
Open issues
0
Last commit (this folder)
Jul 25, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from sejas

Cite this page

pr-leaderboard skill. Agent Mart. https://agentmart.dev/skills/sejas-pr-leaderboard (last updated 2026-10-24)