github-discussion-query

Query GitHub discussions with jq filters to extract structured fields.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill requires gh, jq.

What problem does it solve?

GitHub discussions across repositories can be large and noisy; this skill enables efficient discovery and extraction by querying discussions and applying jq-based filters to surface structured results.

Core Features & Use Cases

  • Query discussions from a repository using the GitHub CLI and JSON output
  • Apply jq filters to extract specific fields (e.g., number, title, author, labels)
  • Use cases: quickly surface discussions by author, category, or status, and optionally fetch schema without data

Quick Start

Run the script with a basic query or apply a jq filter to retrieve and transform discussions from a repository.

Frequently Asked Questions about github-discussion-query

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

FAQPage Schema
How do I query GitHub discussions and filter by author or category?โ–ผ

Query GitHub discussions by running the GitHub CLI with JSON output and applying a jq filter to extract structured fields like number, title, author, category, and labels from a specified repository.

Can I retrieve GitHub discussions from multiple repositories at once?โ–ผ

Yes, you can perform cross-repo queries by providing specific owner/repo inputs to retrieve discussions, returning fields such as number, title, body, comments, answer, and url across repositories.

Do I need GitHub CLI and jq installed to query GitHub discussions?โ–ผ

Yes, you need both the GitHub CLI and jq installed. The GitHub CLI retrieves the discussion data while jq applies the filters to extract specific structured fields from the JSON output.

What fields are available when extracting GitHub discussions with jq?โ–ผ

Available fields include number, title, author, createdAt, updatedAt, body, category, labels, comments, answer, and url. If no jq filter is provided, the query returns the schema instead of data.

How do I limit the number of GitHub discussions returned by a query?โ–ผ

You can limit the number of GitHub discussions returned by passing the --limit parameter to the query. You can also specify the target repository using --repo and apply filters using --jq.