GitHub CLI Management

VerifiedCaution

This skill enables using the GitHub CLI to inspect repositories, pull requests, issues, and workflows in read-only mode. It supports viewing PR details, diffs, CI checks, and comments, as well as listing PRs with filters and fetching repository and issue information. Use it when you need to review code, check workflow status, or explore GitHub resources without making changes.

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude Code
#github#pull-requests#code-review#pr-inspection

Recommended for

Automated summary

Inspects GitHub repositories, pull requests, issues, and workflows using the GitHub CLI.

Strengths

  • Read-only by default, safe for inspection
  • Integrates with Claude Code's bash tool for quick commands
  • Covers code reviews, CI checks, and repo details

Limitations

  • Requires gh CLI installed and authenticated
  • Limited to read-only operations; no creation or modification
  • May not cover all GitHub API endpoints
When to use it

When you need to review code or gather context from GitHub repositories without making changes.

When not to use it

When you need to create, merge, or modify GitHub resources, as those require explicit user permission.

Security analysis

Caution
Quality score85/100

The skill primarily documents safe, read-only `gh` commands, but the inclusion of `gh api` unrestricted leaves a small risk of mutation if the token permits writes. The skill itself does not instruct any dangerous actions, but the tool pattern does not enforce the declared read-only scope.

Findings
  • •The allowed tool set includes `Bash(gh api:*)` without restricting to read-only HTTP methods. If the GitHub token has write permissions, an agent could potentially issue mutating API calls like POST, PATCH, or DELETE, despite the skill's claim of read-only operations.
How this analysis is made

Examples

View PR details
View the details of pull request #123 in this repository, including title, body, author, and latest commits.
List open PRs with status
List all open pull requests in this repository and show their status and CI check results.
Review PR diff and comments
Show me the diff for the current pull request and any review comments.

name: github description: Use when interacting with GitHub repositories, branches, or PRs. Automatically triggered for PR viewing, code review, and repo inspection tasks. allowed-tools:

  • Read
  • Grep
  • Glob
  • Bash(gh pr view:*)
  • Bash(gh pr list:*)
  • Bash(gh pr status:*)
  • Bash(gh pr checks:*)
  • Bash(gh pr diff:*)
  • Bash(gh api:*)
  • Bash(gh repo view:*)
  • Bash(gh issue view:*)
  • Bash(gh issue list:*)
  • Bash(gh run view:*)
  • Bash(gh run list:*)
  • Bash(gh workflow view:*)
  • Bash(gh workflow list:*)
  • Bash(gh browse:*)
  • Bash(gh status:*)

GitHub Skill

Use the GitHub CLI (gh) for viewing and inspecting GitHub resources. This skill allows read-only operations by default.

Pull Requests

View PR Details

# View PR by number
gh pr view 123

# View with web browser
gh pr view 123 --web

# View PR in JSON format
gh pr view 123 --json title,body,author,state,number,url

# View specific PR fields
gh pr view 123 --json comments,reviews,commits

List PRs

# List open PRs
gh pr list

# List PRs with filters
gh pr list --state all
gh pr list --author username
gh pr list --label bug
gh pr list --base main

# List PRs in JSON format
gh pr list --json number,title,author,state,url

PR Status and Checks

# Check PR status
gh pr status

# View PR CI checks
gh pr checks 123

# View checks for a specific PR in detail
gh pr checks 123 --watch

# View PR diff
gh pr diff 123

Get PR Comments and Reviews

# Get PR comments using GitHub API
gh api repos/OWNER/REPO/pulls/123/comments

# Get PR reviews
gh api repos/OWNER/REPO/pulls/123/reviews

# Get PR review comments
gh api repos/OWNER/REPO/pulls/123/comments

# Get issue comments (also includes PR comments)
gh api repos/OWNER/REPO/issues/123/comments

Repository Information

# View repository details
gh repo view

# View specific repo
gh repo view OWNER/REPO

# View repo in browser
gh browse

Issues

# List issues
gh issue list

# View issue details
gh issue view 123

# View issue in browser
gh issue view 123 --web

Workflows and Actions

# List workflow runs
gh run list

# View workflow run details
gh run view RUN_ID

# View run logs
gh run view RUN_ID --log

# List workflows
gh workflow list

# View workflow details
gh workflow view WORKFLOW_NAME

Common Patterns

Inspecting a PR for Review

# Get full PR context
gh pr view 123 --json title,body,author,commits,comments,reviews

# View the code changes
gh pr diff 123

# Check CI status
gh pr checks 123

Finding PRs to Review

# List open PRs
gh pr list --state open

# List PRs by author
gh pr list --author @me

# List PRs with specific label
gh pr list --label "needs-review"

Notes

  • This skill allows read-only gh commands by default
  • Mutating operations (create, merge, close, etc.) require explicit user permission
  • Use gh api for advanced queries not covered by gh pr commands
  • The GitHub CLI uses the repository context from the current directory

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/github-cli-management-mm5t8bed/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/github-cli-management-mm5t8bed' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/github-cli-management-mm5t8bed/download' --output '.skill-downloads/github-cli-management-mm5t8bed/SKILL.md.part' && mv '.skill-downloads/github-cli-management-mm5t8bed/SKILL.md.part' '.skill-downloads/github-cli-management-mm5t8bed/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/github-cli-management-mm5t8bed/SKILL.md' && test -s '.skill-downloads/github-cli-management-mm5t8bed/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/github' && cp -R '.skill-downloads/github-cli-management-mm5t8bed' '.claude/skills/github'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/github-cli-management-mm5t8bed'

openskills read 'github-cli-management-mm5t8bed'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/github-cli-management-mm5t8bed/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills