gh-pr-check

Check GitHub Pull Request status for the current branch using gh CLI and Git commands.

83|10|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/akiojin/unity-cli --skill gh-pr-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-pr-check
Source: https://github.com/akiojin/unity-cli/tree/main/.codex/skills/gh-pr-check
Command: npx skills add https://github.com/akiojin/unity-cli --skill gh-pr-check

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps you understand the current state of your GitHub Pull Requests and suggests the appropriate next action, preventing common Git workflow mistakes.

Core Features & Use Cases

  • PR Status Detection: Determines if a PR exists, is merged, or has new commits.
  • Action Recommendation: Suggests whether to create a new PR, push to an existing one, or take no action.
  • Use Case: Before pushing new code, run this skill to ensure you're not creating duplicate PRs or pushing to a branch that's already merged.

Quick Start

Run the gh-pr-check skill to see the status of your current branch's pull request.

Frequently Asked Questions about gh-pr-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if a GitHub pull request exists for my current branch?

To check if a GitHub pull request exists, use a tool that queries the gh CLI and Git commands to detect PR status for the current branch, identifying scenarios like no PR or unmerged PRs.

How do I avoid creating duplicate pull requests or pushing to a merged branch?

To avoid duplicate pull requests or pushing to a merged branch, check PR status before pushing code to determine if a PR is merged or has new commits, suggesting whether to create a PR or push only.

Can I check GitHub PR status using the gh CLI?

Yes, you can check GitHub PR status using the gh CLI. This approach uses the gh CLI alongside Git commands to fetch remote references and determine the exact pull request state for your local branch.

What is the best way to determine if a merged GitHub branch has new commits?

The best way to determine if a merged GitHub branch has new commits is to fetch remote references via Git and analyze the local working tree state to recommend appropriate actions like pushing only.

Why does my Git workflow need a PR status check before pushing?

Your Git workflow needs a PR status check before pushing to understand the current state of your GitHub Pull Requests, preventing common workflow mistakes like creating duplicate PRs or pushing to merged branches.