github-issue-fetcher

Fetch GitHub issues from the current repository using gh and jq.

40|7|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/rawveg/skillsforge-marketplace --skill github-issue-fetcher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-issue-fetcher
Source: https://github.com/rawveg/skillsforge-marketplace/tree/main/github-issue-fetcher
Command: npx skills add https://github.com/rawveg/skillsforge-marketplace --skill github-issue-fetcher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, jq.

What problem does it solve?

This Skill provides patterns for fetching GitHub issues from the current repository using gh and jq, enabling quick access to the next issue, specific fields, and filtered results.

Core Features & Use Cases

  • Current Repo Context: Detect repository and fetch issues with flexible sorting and filtering.
  • Field Extraction: Retrieve number, title, body, labels, and more.
  • Custom Sorting: Apply sort options to surface the most relevant issues.

Quick Start

Retrieve the next issue to work on: gh issue list --search "sort:created-asc" --limit 1 --json number,title,body | jq -r '.[0] | "Issue #(.number): (.title)"'

Frequently Asked Questions about github-issue-fetcher

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

FAQPage Schema
How do I fetch GitHub issues from my repository using the command line?

Fetch GitHub issues using gh issue list piped to jq for field extraction. The Skill detects your current repository automatically when run inside a git directory, retrieves specific fields like number, title, and labels, and supports custom sorting and filtering options.

Can I use gh and jq together to get the next issue to work on?

Yes. Use gh issue list with --search "sort:created-asc" --limit 1 and pipe to jq to extract and format the next issue. The Skill provides patterns for retrieving number, title, body, and other fields in a single command.

What fields can I extract from GitHub issues with this approach?

Extract number, title, body, labels, assignees, milestone, state, and url from issues. The Skill uses gh --json output piped to jq, allowing flexible field selection and formatting for your workflow.

Do I need to install additional tools to fetch GitHub issues this way?

Yes, you need the GitHub CLI (gh) and jq installed. These are the only dependencies required to detect your repository, query issues, and parse the results into custom formats.

How can I filter and sort GitHub issues for specific use cases?

Apply custom sorting and filtering through gh's --search parameter and jq's data transformation capabilities. The Skill provides patterns for retrieving the most relevant issues based on your sorting preferences and criteria.

Why use jq with GitHub CLI instead of other parsing methods?

jq paired with gh --json output provides reliable, composable field extraction and formatting without external dependencies or language runtimes. This combination enables efficient automation of issue retrieval directly from your terminal.