github-pr-query

Query GitHub pull requests with optional jq filtering and structured JSON output.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/maxfraieho/garden-seedling --skill github-pr-query-maxfraieho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-pr-query
Source: https://github.com/maxfraieho/garden-seedling/tree/main/gh-aw/skills/github-pr-query
Command: npx skills add https://github.com/maxfraieho/garden-seedling --skill github-pr-query-maxfraieho

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, jq, and includes scripts (resource) components.

What problem does it solve?

Efficiently extract PR data from GitHub by querying pull requests with optional jq filtering to minimize noise and manual data wrangling.

Core Features & Use Cases

  • Query pull requests from the current repository or a specified owner/repo.
  • Apply optional jq expressions to filter, transform, or summarize PR data.
  • When jq is omitted, return a schema and data size to help understand the data structure.

Quick Start

Query PRs from the current repository or a specified repository using optional jq filtering to shape the output.

Frequently Asked Questions about github-pr-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query GitHub pull requests and filter the JSON output with jq?

You can query GitHub pull requests and filter JSON output by using the GitHub CLI combined with jq expressions to filter, transform, or summarize PR data for the current repository or a specified owner/repo.

What is the best way to extract specific PR data fields from a GitHub repository?

The best way to extract specific PR data fields is querying pull requests with a JSON field list and applying jq expressions to minimize noise and manual data wrangling, outputting structured JSON for downstream processing.

Do I need to install the GitHub CLI and jq to filter pull requests?

Yes, you need both the GitHub CLI and jq installed, as this querying process relies on the GitHub CLI to fetch pull request data and jq to apply optional filtering expressions to the results.

Can I query pull requests from any GitHub repository by specifying the owner and repo?

Yes, you can query pull requests from any specified owner/repo, or it defaults to querying the current repository, allowing you to apply optional jq filtering to shape the extracted PR data.

What happens if I query GitHub PRs without providing a jq filtering expression?

When jq is omitted, the query returns a schema and data size instead of filtered results, helping you understand the JSON data structure before constructing your own jq expressions.

How do I automate GitHub PR filtering to reduce noise from pull request data?

You can automate GitHub PR filtering by querying pull requests with optional jq expressions, minimizing noise by transforming and summarizing the PR data into structured JSON for downstream processing.