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.
npx skills add cxcscmu/SkillLearnBench --skill gh-cli-pr-statsgit clone --depth 1 https://github.com/cxcscmu/SkillLearnBenchWrote 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.
[](https://agentmods.dev/skills/cxcscmu/skilllearnbench/gh-cli-pr-stats)<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/gh-cli-pr-stats"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/gh-cli-pr-stats/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.
<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/gh-cli-pr-stats"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/gh-cli-pr-stats.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00026 | $0.00430 |
| Opus 5.5 | $0.00010 | $0.00172 |
| Sonnet 5.5 | $0.00005 | $0.00086 |
| Haiku 4.5 | $0.00003 | $0.00043 |
Grade A, and why
gh-cli-pr-stats 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 2mo 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.
What it actually says
PR Statistics from gh CLI Output
Fetching PR Data with Timestamps
gh pr list --repo owner/repo --state all \
--search "created:2024-12-01..2024-12-31" \
--limit 500 \
--json number,state,author,createdAt,mergedAt
The author field returns an object: {"login": "username"}.
The state field returns: OPEN, CLOSED, or MERGED.
Computing Average Merge Time with jq
# Filter merged PRs and compute average days to merge
echo "$pr_json" | jq '
[.[] | select(.state == "MERGED") |
{ created: (.createdAt | fromdateiso8601),
merged: (.mergedAt | fromdateiso8601) } |
(.merged - .created) / 86400
] | add / length
'
fromdateiso8601converts ISO 8601 strings to Unix epoch seconds.- Divide difference by 86400 to get days.
add / lengthcomputes the mean.
Finding Top Contributor
echo "$pr_json" | jq '
group_by(.author.login) |
map({login: .[0].author.login, count: length}) |
sort_by(-.count) |
.[0]
'
Counting by State
echo "$pr_json" | jq '{
total: length,
merged: [.[] | select(.state == "MERGED")] | length,
closed: [.[] | select(.state == "CLOSED")] | length
}'
Note: In gh CLI output, CLOSED and MERGED are distinct states. A merged PR has state MERGED, not CLOSED.
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.
- 2mo ago First seen · 59 lines · 26 tokens per session scan A 5e292fabea3b
gh-cli-pr-stats is a skill published in the GitHub repository cxcscmu/SkillLearnBench (93 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 430 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-09-03.
gh-cli-pr-stats compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gh-cli-pr-statscxcscmu/SkillLearnBench | Skill | 93 | 1mo ago | MIT | A | 26 | Claude Code, Codex |
| syncing-memory-filesystemletta-ai/letta-code | Skill | 3.9k | today | Apache-2.0 | A | 42 | Claude Code, Codex |
| gh-clibenchflow-ai/skillsbench | Skill | 1.9k | 6d ago | Apache-2.0 | A | 50 | Claude Code, Codex |
| hotpath_bumppawurb/hotpath-rs | Skill | 1.9k | 8d ago | MIT | A | 99 | Claude Code |
| agentsop-llm-artifact-versioningagentsope/SkillAlchemy | Skill | 513 | 22d ago | MIT | A | 223 | Claude Code, Codex |
| agentsop-aideragentsope/SkillAlchemy | Skill | 513 | 22d ago | MIT | A | 89 | Claude Code, Codex |
| maintainer-local-cleanktwu01/benchmark-radar | Skill | 416 | today | MIT | A | 41 | Claude Code, Codex |