Gh data gathering
How to gather PR and issue data from a GitHub repository using the gh CLI for monthly reports. Use this skill whenever you need to fetch monthly metrics from a repository.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill gh-data-gatheringAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.7 KB, 149 tokens by cl100k_base, as published. Nobody here has run it
Overview
This skill provides instructions for querying GitHub repositories using the gh CLI.
Commands
- Search PRs:
gh pr list --repo cli/cli --created 2024-12-01..2024-12-31 --json number,title,state,createdAt,mergedAt --limit 1000 - Search Issues:
gh issue list --repo cli/cli --created 2024-12-01..2024-12-31 --json number,labels,state,createdAt,closedAt --limit 1000
Data Handling
- Ensure you set a high
--limitto capture all activities for the month. - The
--jsonflag is required for structured output.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.