Back to list
kwiggen

github-insights

by kwiggen

My Claude Code plugin for code review and PR automation

1🍴 0📅 Jan 14, 2026

SKILL.md


name: github-insights description: | Provides team GitHub activity insights including merged PRs, contributor leaderboards, merge velocity, review participation, and PR size analysis. Use when users ask about team productivity, who merged PRs, code contribution stats, review patterns, or developer activity.

GitHub Insights Skill

Analyze team GitHub activity for the current repository.

Available Actions

ActionDescription
prs-mergedList all PRs merged in a time period
leaderboardRank contributors by PR count and lines changed
activitySummary stats + leaderboard + day/hour breakdown
time-to-mergeMerge velocity per developer (avg/median)
reviewsWho reviews whose code
pr-sizeSize distribution and bottleneck detection
first-reviewTime to first review per developer
review-balanceReviews given vs received ratio
revertsTrack reverts and hotfixes
review-depthDetect rubber stamp reviews
review-cyclesRounds of feedback before merge
allRun all reports with visual separators

Usage

Run the script from the skill's scripts directory:

python {baseDir}/skills/github-insights/scripts/gh_stats.py --action <ACTION> [OPTIONS]

Options

  • --action (required): One of the actions above
  • --days N: Look back N days (default: 30)
  • --start YYYY-MM-DD: Start date for custom range
  • --no-stats: Skip line count fetching (faster for large repos)

Examples

# PRs merged in last 30 days
python {baseDir}/skills/github-insights/scripts/gh_stats.py --action prs-merged

# Leaderboard for last week
python {baseDir}/skills/github-insights/scripts/gh_stats.py --action leaderboard --days 7

# Time to merge analysis
python {baseDir}/skills/github-insights/scripts/gh_stats.py --action time-to-merge --days 30

# Review participation
python {baseDir}/skills/github-insights/scripts/gh_stats.py --action reviews --days 30

# PR size analysis with bottleneck detection
python {baseDir}/skills/github-insights/scripts/gh_stats.py --action pr-size --days 30

# Time to first review
python {baseDir}/skills/github-insights/scripts/gh_stats.py --action first-review --days 30

# Review balance (given vs received)
python {baseDir}/skills/github-insights/scripts/gh_stats.py --action review-balance --days 30

# Reverts and hotfixes tracking
python {baseDir}/skills/github-insights/scripts/gh_stats.py --action reverts --days 30

# Rubber stamp detection
python {baseDir}/skills/github-insights/scripts/gh_stats.py --action review-depth --days 30

# Review cycles (rounds of feedback)
python {baseDir}/skills/github-insights/scripts/gh_stats.py --action review-cycles --days 30

Interpreting User Requests

User SaysActionOptions
"show PRs merged"prs-mergeddefault 30 days
"who merged the most PRs"leaderboard-
"team activity last week"activity--days 7
"how long do PRs take to merge"time-to-merge-
"who is reviewing code"reviews-
"are big PRs slowing us down"pr-size-
"PR bottlenecks"pr-size-
"how long until first review"first-review-
"is review load balanced"review-balance-
"any reverts or hotfixes"reverts-
"are reviews thorough"review-depth-
"rubber stamp reviews"review-depth-
"how many review rounds"review-cycles-
"run all reports"all-
"full team analysis"all-

Output

The script outputs markdown tables ready for display. No additional formatting needed.

Prerequisites

  • Must be run from within a git repository
  • Requires gh CLI authenticated (gh auth status)

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon