Skip to content
Back to skills

Gh Viewing Issue Details

ASecurity

Retrieves detailed information about a specific GitHub issue. Use when you need to read the body, comments, or labels of an issue.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
toolsbashgitapi

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill gh-viewing-issue-details --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gh Viewing Issue Details?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gh Viewing Issue Details
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-gh-viewing-issue-details/badge)](https://www.skillsdirectory.com/skills/majiayu000-gh-viewing-issue-details)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gh-viewing-issue-details
description: Retrieves detailed information about a specific GitHub issue. Use when you need to read the body, comments, or labels of an issue.
---

# Viewing Issue Details

## Purpose

Provides full context for a single GitHub issue using the `gh issue view` command.

## 1. Safety & Verification

- **Issue Number**: Requires a valid issue number or URL.
- **JSON Fields**: Use `--json` to specify which fields to retrieve.

## 2. Common Workflows

### Workflow: Get Full Issue Context

Retrieves title, body, and comments.

**Command**:

```bash
gh issue view <issue-number> --comments --json number,title,body,comments,labels,state
```

### Workflow: Read Latest Comment

Useful for tracking recent activity.

**Command**:

```bash
gh issue view <issue-number> --json comments --jq '.comments[-1].body'
```

### Workflow: Check Hierarchical Context (Sub-issues)

Identifies if an issue is a sub-issue or has sub-issues of its own.

**Command**:

```bash
# 1. Check if the issue has a parent
gh api /repos/{owner}/{repo}/issues/{issue_number}/parent

# 2. List all sub-issues (children)
gh api /repos/{owner}/{repo}/issues/{issue_number}/sub_issues
```

## 3. Output Handling

The output is optimized for agent consumption via JSON.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.