Claude-skill-registry github-insights
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/github-insights" ~/.claude/skills/majiayu000-claude-skill-registry-github-insights && rm -rf "$T"
manifest:
skills/data/github-insights/SKILL.mdsource content
GitHub Insights Skill
Analyze team GitHub activity for the current repository.
Available Actions
| Action | Description |
|---|---|
| List all PRs merged in a time period |
| Rank contributors by PR count and lines changed |
| Summary stats + leaderboard + day/hour breakdown |
| Merge velocity per developer (avg/median) |
| Who reviews whose code |
| Size distribution and bottleneck detection |
| Time to first review per developer |
| Reviews given vs received ratio |
| Track reverts and hotfixes |
| Detect rubber stamp reviews |
| Rounds of feedback before merge |
| Run 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
(required): One of the actions above--action
: Look back N days (default: 30)--days N
: Start date for custom range--start YYYY-MM-DD
: Skip line count fetching (faster for large repos)--no-stats
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 Says | Action | Options |
|---|---|---|
| "show PRs merged" | | default 30 days |
| "who merged the most PRs" | | - |
| "team activity last week" | | |
| "how long do PRs take to merge" | | - |
| "who is reviewing code" | | - |
| "are big PRs slowing us down" | | - |
| "PR bottlenecks" | | - |
| "how long until first review" | | - |
| "is review load balanced" | | - |
| "any reverts or hotfixes" | | - |
| "are reviews thorough" | | - |
| "rubber stamp reviews" | | - |
| "how many review rounds" | | - |
| "run all reports" | | - |
| "full team analysis" | | - |
Output
The script outputs markdown tables ready for display. No additional formatting needed.
Prerequisites
- Must be run from within a git repository
- Requires
CLI authenticated (gh
)gh auth status