github-metrics-processing
Process GitHub API data to calculate PR/issue metrics including merge time averages, author rankings, and bug categorization.
Skill by cxcscmu
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/cxcscmu-github-metrics-processing
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.
About
Use cases: backend, data
Reviews
Write a reviewNo 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/github-metrics-processing
What's inside
- Skill name
github-metrics-processing- Description
- Process GitHub API data to calculate PR/issue metrics including merge time averages, author rankings, and bug categorization.
- License
- MIT
- Instructions
- 173 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# GitHub Metrics Processing Skill
## Overview
Process JSON data from GitHub queries to calculate publication metrics, including PR merge times, issue categorization, and contributor analysis.
## Prerequisites
- Python 3.7+ with `json` and `datetime` modules (standard library)
- Raw GitHub API JSON data from gh CLI queries
## Key Metrics to Calculate
### Pull Request Metrics
#### 1. Total PR Count
```python
total_prs = len(prs_data)
```
#### 2. Merged vs Closed PRs
```python
merged_prs = [pr for pr in prs_data if pr.get('mergedAt') is not None]
closed_prs = [pr for pr in prs_data if pr.get('closedAt') is not None and pr.get('mergedAt') is None]
merged_count = len(merged_prs)
closed_count = len(closed_prs)
```
#### 3. Average Merge Time (days)
```python
from datetime import datetime
def parse_iso8601(timestamp_str):
"""Parse ISO 8601 timestamp to datetime object"""
return datetime.fromisoformat(timestamp_str.replace('Z', '+00:00'))
def calculate_merge_days(prs):
"""Calculate average days from creation to merge"""
merge_times = []
for pr in prs:
if pr.get('mergedAt'): # Only count merged PRs
created = parse_iso8601(pr['createdAt'])
merged = parse_iso8601(pr['mergedAt'])
days = (merged - created).days
merge_times.append(days)
if not merge_times:
return 0.0
avg = sum(merge_times) / len(merge_times)
return round(avg, 1) # Round to one decimal place
```
#### 4. Top Contributor (Most PRs)
```python
from collections import Counter
def get_top_contributor(prs):
"""Find author who opened the most PRs"""
authors = [pr['author']['login'] for pr in prs if pr.get('author')]
if not authors:
return None
author_counts = Counter(authors)
top_author, _ = author_counts.most_common(1)[0]
return top_author
```
### Issue Metrics
#### 1. Total Issue Count
```python
total_issues = len(issues_data)
```
#### 2. Bug Reports (label matching)
```python
def count_bug_issues(issues):
"""Count issues with 'bug' in any label name"""
bug_count = 0
for issue in issues:
labels = issue.get('labels', [])
has_bug = any('bug' in label.get('name', '').lower() for label in labels)
if has_bug:
bug_count += 1
return bug_count
bug_count = count_bug_issues(issues_data)
```
#### 3. Resolved Bugs (closed during month)
```python
def count_resolved_bugs(issues, period_end):
"""Count bugs that were closed during the specified month"""
resolved_count = 0
for issue in issues:
# Must have 'bug' in a label
labels = issue.get('labels', [])
has_bug = any('bug' in label.get('name', '').lower() for label in labels)
# Must be closed
closed_at = issue.get('closedAt')
if has_bug and closed_at:
resolved_count += 1
return resolved_count
```
## Complete Processing Example
```python
import json
from datetime import datetime
from collections import Counter
def parse_iso8601(timestamp_str):
return datetime.fromisoformat(timestamp_str.replace('Z', '+00:00'))
def process_github_data(prs_json, issues_json):
"""Process GitHub data and return metrics"""From cxcscmu/SkillLearnBench, MIT.
More from cxcscmu/SkillLearnBench
- 0.523score
skill-creator
cxcscmu
Create modular skill documents (SKILL.md files) for Claude Code.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
seven-char-regulated-verse
cxcscmu
Master the structure, tonal patterns, and rhyming requirements of classical seven-character regulated verse (七言律诗) in Chinese poetry.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
security-audit-csv-reporting
cxcscmu
Generate structured CSV security audit reports from vulnerability data with proper filtering, formatting, and field mapping.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
trivy-vulnerability-scanning
cxcscmu
Use Trivy vulnerability scanner in offline mode to detect CVEs in npm dependencies and generate structured JSON reports.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
cvss-score-extraction
cxcscmu
Extract and handle CVSS scores from multiple vulnerability data sources (NVD, GHSA, RedHat) with proper fallback priority.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
package-lock-parsing
cxcscmu
Parse and extract package information from npm package-lock.json files to identify dependencies and their installed versions.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
mandarin-rhyming-guide
cxcscmu
Master modern Mandarin pinyin finals and tone systems to create accurate rhymes for classical poetry following contemporary pronunciation standards.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
classical-poetry-peace-theme
cxcscmu
Compose classical Chinese poetry on peace themes using authentic imagery, perspective shifts, and the voice of ordinary people experiencing war's aftermath.
SkillDFreshness: D★ 91Claude Code +9 - 0.512score
jackson-deserialization-validation
cxcscmu
Securing Jackson JSON deserialization by validating input before processing and preventing unknown properties.
SkillDFreshness: D★ 91Claude Code +9 - 0.512score
scala-option-either
cxcscmu
Translating Python's None/Optional to Scala's Option, Either, and Try types
SkillDFreshness: D★ 91Claude Code +9 - 0.512score
git-patch-workflow
cxcscmu
Creating, managing, and applying unified diff patches with Git for source code modifications.
SkillDFreshness: D★ 91Claude Code +9 - 0.512score
scala-generics
cxcscmu
Translating Python generic types, variance, and type bounds to Scala 2.13
SkillDFreshness: D★ 91Claude Code +9
Signals
- Stars
- 91
- Forks
- 7
- Open issues
- 6
- Last commit (this folder)
- Apr 24, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/cxcscmu/SkillLearnBench
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from cxcscmu
- 0.523score
skill-creator
cxcscmu
Create modular skill documents (SKILL.md files) for Claude Code.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
seven-char-regulated-verse
cxcscmu
Master the structure, tonal patterns, and rhyming requirements of classical seven-character regulated verse (七言律诗) in Chinese poetry.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
security-audit-csv-reporting
cxcscmu
Generate structured CSV security audit reports from vulnerability data with proper filtering, formatting, and field mapping.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
classical-poetry-peace-theme
cxcscmu
Compose classical Chinese poetry on peace themes using authentic imagery, perspective shifts, and the voice of ordinary people experiencing war's aftermath.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
cvss-score-extraction
cxcscmu
Extract and handle CVSS scores from multiple vulnerability data sources (NVD, GHSA, RedHat) with proper fallback priority.
SkillDFreshness: D★ 91Claude Code +9 - 0.515score
mandarin-rhyming-guide
cxcscmu
Master modern Mandarin pinyin finals and tone systems to create accurate rhymes for classical poetry following contemporary pronunciation standards.
SkillDFreshness: D★ 91Claude Code +9
Cite this page
github-metrics-processing skill. Agent Mart. https://agentmart.dev/skills/cxcscmu-github-metrics-processing (last updated 2026-10-24)