Agent skill
gh-viewing-issue-details
Retrieves detailed information about a specific GitHub issue. Use when you need to read the body, comments, or labels of an issue.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/gh-viewing-issue-details
SKILL.md
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
--jsonto specify which fields to retrieve.
2. Common Workflows
Workflow: Get Full Issue Context
Retrieves title, body, and comments.
Command:
gh issue view <issue-number> --comments --json number,title,body,comments,labels,state
Workflow: Read Latest Comment
Useful for tracking recent activity.
Command:
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:
# 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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?