# Gh

> Gh is an open-source agent skill for developer tools. Lets your agent read GitHub PR status, reviews, and CI failures without editing code. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/prathamdby/skills/tree/main/skills/engineering/gh
- **Repository:** https://github.com/prathamdby/skills
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** gh
- **Collection:** https://github.com/prathamdby/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill has the agent inspect GitHub pull requests through the gh CLI and gh api. It can pull a snapshot of a PR covering its state, mergeability, review decision, check results, and thread counts, and it can collect review comments and inline threads, filtered by open state, author, or date.

For CI problems, the skill checks commits and runs at a known head SHA, lists recent workflow runs, and downloads job logs to a private temporary file. It reads branch rules to tell required checks from optional ones, and it stops with a clear message when gh is missing or not authenticated. Results are reported with links and saved log paths instead of full pasted logs.

The skill can also post one reply to an inline thread, a review comment, or the main PR conversation, without pushing commits or resolving threads. It expects the gh CLI installed and authenticated, and it works on the current branch's PR unless a PR number, URL, or repository is given. A companion skill handles fixing code and another opens or updates PRs.

## When your agent uses it

> Inspect GitHub pull-request status, review threads, comments, CI check failures, workflow logs, or other GitHub records, and post a single PR comment or inline thread reply without changing code. Use whenever the user asks what failed in CI, why checks are red, what reviewers said, PR mergeability, or to reply on a PR without edits, instead of ad-hoc gh commands. Do not use to fix code for PR feedback or CI (use fix-pr) or to open or update a PR (use make-pr).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/prathamdby/skills/tree/HEAD/skills/engineering/gh)
- [License: MIT](https://github.com/prathamdby/skills/tree/HEAD/skills/engineering/gh)

## Features

- **PR state snapshot:** Summarizes a pull request's branches, head SHA, mergeability, review decision, and check buckets.
- **Review thread collection:** Gathers review bodies, conversation comments, and inline threads with resolved and outdated filters.
- **CI failure drilldown:** Finds failing checks and recent workflow runs, then inspects their jobs and logs.
- **Safe log downloads:** Saves job logs to a private temporary file and extracts ZIP archives without exposing tokens.
- **Single PR reply posting:** Posts one reply to an inline thread, review comment, or PR conversation without code edits.
- **Required check cross-check:** Compares failing jobs against branch rules to show which checks are required.

## Good for

- Explain why the CI checks on my pull request are red
- Summarize what reviewers said on my open PR threads
- Check whether my PR is mergeable and what blocks it
- Reply to a specific review comment without changing any code
- Pull the logs for a failed GitHub Actions run

## Install

### Claude Code

This skill ships in the `skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add prathamdby/skills
/plugin install skills@pratham-skills
```

Or copy only this skill to `~/.claude/skills/gh`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/gh &&
cp -R "$tmp/skills/engineering/gh" ~/.claude/skills/gh &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/gh` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/gh` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/gh &&
cp -R "$tmp/skills/engineering/gh" ~/.agents/skills/gh &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/gh` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/gh` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/gh &&
cp -R "$tmp/skills/engineering/gh" ~/.cursor/skills/gh &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/gh` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/prathamdby/skills.git --path skills/engineering/gh
```

Or copy the folder to `~/.gemini/skills/gh` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/gh`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/gh &&
cp -R "$tmp/skills/engineering/gh" ~/.copilot/skills/gh &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/gh` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/prathamdby/skills.git
```

Then copy `skills/skills/engineering/gh` into your agent's skills folder as `gh`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Gh need to run?

The gh CLI must be installed and authenticated, checked with gh auth status. The agent stops if the binary is missing or auth fails.

### Does Gh change code or resolve review threads?

No. It inspects PR state and discussions and can post one reply. It never resolves threads, pushes commits, or merges pull requests.

### Which PR does Gh inspect by default?

The pull request on the current branch in the current repo. A PR number, URL, or repository name can be given to target another one.

### Which skill should I use to fix CI failures?

The description says fixing code for PR feedback or CI belongs to the fix-pr skill, and opening or updating a PR belongs to make-pr.

### How do I install Gh in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/gh to use it in all your projects, or to .claude/skills/gh in one project. Or install the skills plugin, which includes it: /plugin marketplace add prathamdby/skills, then /plugin install skills@pratham-skills.

### Does Gh run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Gh?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Gh?

The closest alternatives to Gh are Fix PR, Git PR feedback, Iterate PR, Review PR comments and Gh address comments.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Fix PR](https://ai-powered.com/skills/fix-pr): Fix PR is an open-source agent skill for developer tools.
- [Git PR feedback](https://ai-powered.com/skills/git-pr-feedback): Git PR feedback is an open-source agent skill for developer tools.
- [Iterate PR](https://ai-powered.com/skills/iterate-pr): Iterate PR is an open-source agent skill for developer tools.
- [Review PR comments](https://ai-powered.com/skills/review-pr-comments): Review PR comments is an open-source agent skill for developer tools.
- [Gh address comments](https://ai-powered.com/skills/gh-address-comments): Gh address comments is a free agent skill for developer tools.
- [Review PR](https://ai-powered.com/skills/review-pr-tonyghiani): Review PR is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-aws-solutions): Code review is an open-source agent skill for developer tools.
- [Gh fix ci](https://ai-powered.com/skills/gh-fix-ci): Gh fix ci is a free agent skill for developer tools.

---
Source: https://ai-powered.com/skills/gh-prathamdby
