github-metrics-processing

github-metrics-processing is a skill for Claude Code, Codex from cxcscmu/SkillLearnBench. It costs 29 tokens per session (1,276 once invoked), scanned A, original, MIT.

A processor for GitHub data, where GitHub is a service for hosting code and tracking changes and bugs. It calculates statistics about pull requests, issues, and contributors.

In plain words
What is it for?
Use it to count merged and closed pull requests, calculate average time to merge, group issues by bug category, and compare contributors.
Why use it?
It turns raw GitHub API responses into measures that are otherwise time-consuming to calculate by hand.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to count merged and closed pull requests, calculate average time to merge, group issues by bug category, and compare contributors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cxcscmu/skilllearnbench/github-metrics-processing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cxcscmu/SkillLearnBench --skill github-metrics-processing
Clone the repo
git clone --depth 1 https://github.com/cxcscmu/SkillLearnBench

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for github-metrics-processing

README.md
[![agentmods](https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/github-metrics-processing/github.svg)](https://agentmods.dev/skills/cxcscmu/skilllearnbench/github-metrics-processing)
Your own site
<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/github-metrics-processing"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/github-metrics-processing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for github-metrics-processing

Your own site · 80×15
<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/github-metrics-processing"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/github-metrics-processing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,276 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01276
Opus 5.5 $0.00012 $0.00510
Sonnet 5.5 $0.00006 $0.00255
Haiku 4.5 $0.00003 $0.00128

Measured 3mo ago against content hash 9af9eade1c24, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-metrics-processing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/b1-one-shot-claude-haiku-4-5/github-repo-analytics/github-metrics-processing/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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
total_prs = len(prs_data)
2. Merged vs Closed PRs
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)
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)
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
total_issues = len(issues_data)
2. Bug Reports (label matching)
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)

Read the full file on GitHub · 177 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 177 lines · 29 tokens per session scan A 9af9eade1c24

Subscribe to this mod's changes

github-metrics-processing is a skill published in the GitHub repository cxcscmu/SkillLearnBench (93 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 1,276 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

github-metrics-processing compared with skills from other repositories

github-metrics-processing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github-metrics-processingcxcscmu/SkillLearnBenchSkill931mo agoMITA29Claude Code, Codex
maintaining-core-memoryletta-ai/letta-codeSkill3.9ktodayApache-2.0A50Claude Code, Codex
maven-plugin-configurationbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A31Claude Code, Codex
openai-visionbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A17Claude Code, Codex
powerliftingbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A21Claude Code, Codex
box-least-squaresbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A64Claude Code, Codex
routing-subtour-eliminationbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A70Claude Code, Codex