Skip to content
Skill

Gh

Lets your agent read GitHub PR status, reviews, and CI failures without editing code

Gh is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
6
Last commit
License
MIT
Listing updated

Similar skills

About Gh

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).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (22 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Gh 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.

More from prathamdby/skills

  1. Writes an evidence-backed implementation plan for a repo change without editing code

    • Open source
    • 6 GitHub stars
    • Developer tools
  2. Clones external Git repos locally and answers questions from their source code

    • Open source
    • 6 GitHub stars
    • Developer tools
  3. Creates scoped, diff-grounded Conventional Commit messages and commits them locally

    • Open source
    • 6 GitHub stars
    • Developer tools
  4. Simplifies a git diff's slop without changing behavior or staging unrelated work

    • Open source
    • 6 GitHub stars
    • Developer tools
  5. Works through PR review comments and failing CI checks, fixing and replying with evidence

    • Open source
    • 6 GitHub stars
    • Developer tools
  6. Saves a redacted session handoff file and resumes work from it later

    • Open source
    • 6 GitHub stars
    • Developer tools