agentsclimarketplace

Gh data retrieval

Skill cxcscmu/SkillLearnBench/skills/b1-one-shot-gemini-3-flash-preview/github-repo-analytics/gh-data-retrieval

Retrieve pull request and issue data from GitHub repositories using the gh CLI with specific filters and JSON output for downstream processing.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill gh-data-retrieval

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.1 KB, 243 tokens by cl100k_base, as published. Nobody here has run it

GitHub Data Retrieval

This skill focuses on using the gh CLI to efficiently fetch data for repository analysis.

Key Commands

Searching Pull Requests

To find PRs created in a specific timeframe:

gh search prs --repo OWNER/REPO --created "YYYY-MM-DD..YYYY-MM-DD" --json number,author,createdAt,mergedAt,state

Searching Issues

To find issues created in a specific timeframe:

gh search issues --repo OWNER/REPO --created "YYYY-MM-DD..YYYY-MM-DD" --json number,labels,createdAt,closedAt,state

Filtering by Labels

To find bug reports (labels containing "bug"):

gh search issues --repo OWNER/REPO --label "bug" --created "YYYY-MM-DD..YYYY-MM-DD" --json number

Tips for Analysis

  • Use --limit to ensure you get all results if there are many (default is 30).
  • Use --json to specify only the fields you need to keep the payload small.
  • Date ranges use the YYYY-MM-DD..YYYY-MM-DD syntax.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.