github-discussion-query
SolidQuery GitHub discussions with jq filtering and reusable selectors.
Code & Development 4,819 stars
466 forks Updated today MIT
Install
Quality Score: 90/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# GitHub Discussion Query Skill
Query GitHub discussions efficiently with built-in jq filtering.
## Important: jq Parameter is Optional
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.
## Usage
Use this skill to query discussions from the current repository or any specified repository.
### Basic Query (Returns Schema Only)
To list discussions from the current repository:
```bash
./query-discussions.sh
# Returns schema and data size, not full data
```
### Get All Data
To get all discussion data:
```bash
./query-discussions.sh --jq '.'
```
### With Repository
To query a specific repository:
```bash
./query-discussions.sh --repo owner/repo
```
### With jq Filtering
Use the `--jq` argument to filter and transform the output:
```bash
# Get discussion numbers and titles
./query-discussions.sh --jq '.[] | {number, title}'
# Get discussions by a specific author
./query-discussions.sh --jq '.[] | select(.author.login == "username")'
# Get discussions in a specific category
./query-discussions.sh --jq '.[] | select(.category.name == "Ideas")'
# Get answered discussions
./query-discussions.sh --jq '.[] | select(.answer != null)'
# Count discussions by category
./query-discussions.sh --jq 'group_by(.category.name) | ma...
Details
- Author
- github
- Repository
- github/gh-aw
- Created
- 11 months ago
- Last Updated
- today
- Language
- Go
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Solid
github-issue-query
Query GitHub issues with jq filtering and reusable selectors.
4,819 Updated today
github Code & Development Solid
github-pr-query
Query GitHub pull requests with jq filtering and reusable selectors.
4,819 Updated today
github Data & Documents Listed
jq
This skill should be used when the user asks to "parse this JSON", "extract X from this output", "pull the field with jq", "filter this API response", "reshape this JSON", "aggregate these records", "explain this jq filter", or invokes /jq. Also trigger when the user pastes raw JSON or CLI output (curl, kubectl, aws, gh, docker) and asks to filter, transform, or summarize it. Do NOT use for writing JSON, JSON Schema validation, jsonnet, or non-jq shell scripting.
2 Updated 3 days ago
chrismccoy