# Gh CLI

The gh CLI is GitHub's official command line tool for interacting with GitHub...

- Repository: https://github.com/benchflow-ai/skillsbench (1888 stars)
- Category: Git and review
- License: Apache-2.0
- Last updated: 2026-10-24
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add benchflow-ai/skillsbench --skill gh-cli -g -a claude-code -y`
Codex: `npx skills add benchflow-ai/skillsbench --skill gh-cli -g -a codex -y`
Cursor: `npx skills add benchflow-ai/skillsbench --skill gh-cli -g -a cursor -y`
Gemini CLI: `npx skills add benchflow-ai/skillsbench --skill gh-cli -g -a gemini-cli -y`

## Description

The gh CLI is GitHub's official command line tool for interacting with GitHub repositories, issues, pull requests, and more. When needs to interact with GitHub repositories, issues, pull requests, and more, use this skill.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# GitHub CLI (gh)

Work seamlessly with GitHub from the command line.

## Usage

```
gh <command> <subcommand> [flags]
```

## Core Commands

```
  issue:      Manage issues
  pr:         Manage pull requests
  repo:       Create, clone, fork, and view repositories
  api:        Make an authenticated GitHub API request
  run:        View details about workflow runs
```

Use `gh <command> --help` for more information about a command.

---

## gh pr

Work with GitHub pull requests.

```
USAGE
  gh pr <command> [flags]

CORE COMMANDS
  checkout:   Check out a pull request in git
  checks:     Show CI status for a single pull request
  close:      Close a pull request
  comment:    Create a new pr comment
  create:     Create a pull request
  diff:       View changes in a pull request
  edit:       Edit a pull request
  list:       List and filter pull requests in this repository
  merge:      Merge a pull request
  ready:      Mark a pull request as ready for review
  reopen:     Reopen a pull request
  review:     Add a review to a pull request
  status:     Show status of relevant pull requests
  view:       View a pull request

FLAGS
  -R, --repo [HOST/]OWNER/REPO   Select another repository using the [HOST/]OWNER/REPO format

INHERITED FLAGS
  --help   Show help for command

ARGUMENTS
  A pull request can be supplied as argument in any of the following formats:
  - by number, e.g. "123";
  - by URL, e.g. "https://github.com/OWNER/REPO/pull/123"; or
  - by the name of its head branch, e.g. "patch-1" or "OWNER:patch-1".

EXAMPLES
  $ gh pr checkout 353
  $ gh pr create --fill
  $ gh pr view --web

LEARN MORE
  Use 'gh <command> <subcommand> --help' for more information about a command.
  Read the manual at https://cli.github.com/manual
```

---

## gh issue

Work with GitHub issues.

```
USAGE
  gh issue <command> [flags]

The rest: https://github.com/benchflow-ai/skillsbench/blob/HEAD/tasks-extra/gh-repo-analytics/environment/skills/gh-cli/SKILL.md
