npx skills add ...
npx skills add github/gh-aw --skill github-issue-query
npx skills add github/gh-aw --skill github-issue-query
Query GitHub issues with jq filtering and reusable selectors.
Query GitHub issues efficiently with built-in jq filtering.
The --jq parameter is optional. Without --jq, this skill returns schema and data size information instead of full data.
Use this to avoid oversized responses and inspect structure before targeted queries.
Use --jq '.' to get all data, or use a more specific filter for targeted results.
Use this skill to query issues from the current repository or any specified repository.
To list issues from the current repository:
To get all issue data:
To query a specific repository:
Use the --jq argument to filter and transform the output:
--state: Filter by state (open, closed, all). Default: open--limit: Maximum number of issues to fetch. Default: 30--repo: Repository in owner/repo format. Default: current repo--jq: (Optional) jq expression for filtering/transforming output. If omitted, returns schema infoFind issues with many comments:
Get issues assigned to someone:
List issues with their labels:
Get project board assignments:
Find old issues (created over 30 days ago):
The script outputs JSON by default, making it easy to pipe through jq for additional processing.
gh) authenticatedjq for filtering (installed by default on most systems)./query-issues.sh --jq '.[] | select(.comments.totalCount > 5) | {number, title, comments: .comments.totalCount}'./query-issues.sh --jq '.[] | select(.assignees | length > 0) | {number, title, assignees: [.assignees[].login]}'./query-issues.sh --jq '.[] | {number, title, labels: [.labels[].name]}'./query-issues.sh --jq '.[] | {number, title, projects: [.projectItems.nodes[]? | .project?.url]}'./query-issues.sh --jq '.[] | select(.createdAt < (now - 2592000 | strftime("%Y-%m-%dT%H:%M:%SZ")))'