— No reviews yet
0 installs
15 views
0.0% view→install
Install
$ agentstack add skill-cxcscmu-skilllearnbench-github-cli-queries ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Github Cli Queries? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
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: Request specific fields as JSON--repo owner/repo: Specify repository
Date Parsing Tips
- Always capture both
createdAtandmergedAt/closedAtto calculate deltas - Handle null values when calculating metrics
- Parse ISO 8601 timestamps in your processing language
Example: Full PR Data Export
gh pr list --repo cli/cli --state all --created "2024-12-01..2024-12-31" \
--json number,title,createdAt,mergedAt,closedAt,author,labels \
--limit 500 > prs.json
Performance Notes
- Large result sets (500+ items) may take time to process
- Use
--limitto control result size - JSON output is faster than parsing text output
- Paginate if needed by using multiple queries with different date ranges
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: cxcscmu
- Source: cxcscmu/SkillLearnBench
- License: MIT
- Homepage: https://cxcscmu.github.io/SkillLearnBench
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.