gh-issue

Manage GitHub Issues via native gh issue subcommands with safe non-interactive patterns.

3|1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill gh-issue-cogni-ai-ou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-issue
Source: https://github.com/Cogni-AI-OU/cogni-ai-agent-skills/tree/main/gh-issue
Command: npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill gh-issue-cogni-ai-ou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you manage and inspect GitHub Issues reliably from the command line, avoiding brittle parsing and reducing mistakes when creating, updating, or commenting on issues.

Core Features & Use Cases

  • Issue creation and editing: Create new issues and update titles, bodies, labels, and assignees using native gh issue fields.
  • Discovery and review: List, filter, and view issue details (including structured JSON output and comments) for fast triage.
  • Commenting and lifecycle control: Add comments, close, and reopen issues with explicit commands and safe patterns for automation.

Example: You need to find the most recent open issues labeled "bug", review their current state and labels, then comment on a specific issue to request additional information.

Quick Start

Use the gh-issue skill when you want to view an issue’s full context, comments, and metadata for a given issue number (for example, number 123).

Frequently Asked Questions about gh-issue

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

FAQPage Schema
How do I manage GitHub issues from the command line without shell hangs?

Managing GitHub issues safely from the CLI involves using native `gh issue` subcommands and non-interactive patterns like `--body-file` for long comments. This approach prevents shell hangs and parsing errors during automated workflows.

What is the best way to automate issue triage using the GitHub CLI?

The best way to automate issue triage with the GitHub CLI is by listing, filtering, and viewing issues with structured JSON output. This enables fast review of metadata and labels for accurate routing.

How do I correctly route comments between GitHub issues and pull requests in automation?

To correctly route comments between GitHub issues and pull requests in automation, apply explicit routing invariants using native `gh issue` subcommands. This ensures comments attach to the correct target without misrouting.

Can I create and update GitHub issues non-interactively in GitHub Actions?

Yes, you can create and update GitHub issues non-interactively in GitHub Actions. Use native `gh issue` commands to edit titles, bodies, labels, and assignees, applying safe patterns to avoid blocking the runtime.

Why does my GitHub CLI issue comment command hang in automated workflows?

Your GitHub CLI issue comment command hangs in automated workflows because long comment bodies trigger interactive prompts. Use the safe non-interactive `--body-file` pattern instead of inline strings to prevent shell hangs.