github-cli-queries

github-cli-queries is a skill for Claude Code, Codex from cxcscmu/SkillLearnBench. It costs 24 tokens per session (710 once invoked), scanned A, original, MIT.

A set of GitHub command-line queries, where the command line is a text-based way to control software. It uses GitHub’s gh tool to retrieve pull requests and issues with date filters and selected fields.

In plain words
What is it for?
Use it to list pull requests or issues from a chosen period and return fields such as titles, dates, authors, labels, and merge status.
Why use it?
It provides repeatable, structured searches instead of manually browsing repositories and copying details.

Skill for Claude CodeCodex

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

Good fit Use it to list pull requests or issues from a chosen period and return fields such as titles, dates, authors, labels, and merge status.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cxcscmu/skilllearnbench/github-cli-queries
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-cli-queries
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-cli-queries

README.md
[![agentmods](https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/github-cli-queries/github.svg)](https://agentmods.dev/skills/cxcscmu/skilllearnbench/github-cli-queries)
Your own site
<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/github-cli-queries"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/github-cli-queries/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-cli-queries

Your own site · 80×15
<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/github-cli-queries"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/github-cli-queries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 710 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.00024 $0.00710
Opus 5.5 $0.00010 $0.00284
Sonnet 5.5 $0.00005 $0.00142
Haiku 4.5 $0.00002 $0.00071

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

Security

Grade A, and why

github-cli-queries 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-cli-queries/SKILL.md · 84 lines

How it starts

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

GitHub CLI Query Skill

Overview

Use the gh CLI tool to efficiently query GitHub pull requests and issues with filtering, date range support, and structured JSON output.

Installation & Setup

# gh CLI is typically pre-installed on most systems
gh --version

# Ensure you're authenticated
gh auth status

# If not authenticated
gh auth login

Basic Patterns

Query Pull Requests by Date Range

# List PRs created in December 2024 with JSON output
gh pr list --repo cli/cli --state all --created "2024-12-01..2024-12-31" --json number,title,createdAt,mergedAt,closedAt,author --limit 500

# Key fields in JSON output:
# - number: PR number
# - title: PR title
# - createdAt: when PR was created (ISO 8601)
# - mergedAt: when PR was merged (null if not merged)
# - closedAt: when PR was closed (null if still open)
# - author: {login: string, name: string}

Query Issues by Date Range

# List issues created in December 2024
gh issue list --repo cli/cli --state all --created "2024-12-01..2024-12-31" --json number,title,createdAt,closedAt,labels --limit 500

# Key fields:
# - number: issue number
# - title: issue title
# - createdAt: when issue was created (ISO 8601)
# - closedAt: when issue was closed (null if still open)
# - labels: array of label objects with name and description

Date Format

  • Use ISO 8601 format: YYYY-MM-DD
  • Date ranges: YYYY-MM-DD..YYYY-MM-DD
  • The range is inclusive on both ends

State Filtering

  • --state all: Include open, closed, and merged (for PRs)
  • --state open: Only open items
  • --state closed: Only closed items (for issues) or merged/closed (for PRs)

Common Flags

  • --limit N: Set maximum results (default 30, max typically 500)
  • --json <fields>: Request specific fields as JSON
  • --repo owner/repo: Specify repository

Date Parsing Tips

  • Always capture both createdAt and mergedAt/closedAt to calculate deltas
  • Handle null values when calculating metrics
  • Parse ISO 8601 timestamps in your processing language

Read the full file on GitHub · 84 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 · 84 lines · 24 tokens per session scan A 1e7fbcf4b838

Subscribe to this mod's changes

github-cli-queries is a skill published in the GitHub repository cxcscmu/SkillLearnBench (93 stars, last pushed 1mo ago), licensed MIT. It adds 24 tokens to every session and 710 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-cli-queries compared with skills from other repositories

github-cli-queries next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github-cli-queriescxcscmu/SkillLearnBenchSkill931mo agoMITA24Claude Code, Codex
syncing-memory-filesystemletta-ai/letta-codeSkill3.9ktodayApache-2.0A42Claude Code, Codex
gh-clibenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A50Claude Code, Codex
hotpath_bumppawurb/hotpath-rsSkill1.9k8d agoMITA99Claude Code
agentsop-llm-artifact-versioningagentsope/SkillAlchemySkill51322d agoMITA223Claude Code, Codex
agentsop-aideragentsope/SkillAlchemySkill51322d agoMITA89Claude Code, Codex
maintainer-local-cleanktwu01/benchmark-radarSkill416todayMITA41Claude Code, Codex