github-issues

Create, triage, label, and manage GitHub issues via gh CLI or REST API.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/CHENHUI-X/toolbox --skill github-issues-chenhui-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-issues
Source: https://github.com/CHENHUI-X/toolbox/tree/main/custom-skills/github/github-issues
Command: npx skills add https://github.com/CHENHUI-X/toolbox --skill github-issues-chenhui-x

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing GitHub issues manually through the web UI is slow and hard to automate. This Skill provides ready-to-use commands for creating, searching, labeling, assigning, and closing issues directly from the terminal using either the gh CLI or the GitHub REST API. ## Core Features & Use Cases - Full Issue Lifecycle: Create, view, comment on, close, and reopen issues with both gh and curl fallback commands. - Triage Workflow: List untriaged issues, apply labels and priorities, assign owners, and post triage notes in a structured process. - Bulk Operations: Batch-close or batch-update issues by combining API calls with shell scripting. - Use Case: When asked to triage a backlog, list all issues labeled "needs-triage", categorize each one, apply priority labels, assign owners, and comment with triage notes automatically. ## Quick Start Ask the agent to list all open issues labeled bug in the current repository and create a new bug report for the login redirect issue.

Frequently Asked Questions about github-issues

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

FAQPage Schema
How do I create a GitHub issue from the command line?

Use gh issue create with --title, --body, --label, and --assignee flags, or send a POST request to /repos/{owner}/{repo}/issues with a JSON payload. Both methods support labels and assignees in a single call.

How to triage GitHub issues with gh CLI?

List untriaged issues with gh issue list --label "needs-triage" --state open, then read each issue, apply labels with gh issue edit --add-label, assign owners, and comment with triage notes using gh issue comment.

Can I manage GitHub issues without the gh CLI installed?

Yes, every operation has a curl fallback using the GitHub REST API. You need a GITHUB_TOKEN environment variable, which can be loaded from a .env file or extracted from git credentials.

How do I close multiple GitHub issues at once?

Pipe issue numbers from gh issue list --label into xargs with gh issue close, or loop over curl PATCH requests setting state to closed. The Skill includes working examples for bulk-closing issues by label.

Why does the GitHub issues API return pull requests in results?

The GitHub REST API /issues endpoint includes pull requests because PRs are internally issues. Filter them out by checking for the pull_request key in each returned item, as shown in the provided parsing snippets.