check-pr
Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and…
Skill by greptileai
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/haseeb-heaven-check-pr
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/check-pr
Tools it pre-approves 4
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Bash(gh:*)Bash(glab:*)Bash(git:*)Bash(p4:*)
What's inside
- Skill name
check-pr- Description
- Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions. Waits for pending checks to complete, categorizes issues as actionable or informational, and optionally fixes and resolves them. Use when the user wants to check a PR/MR/CL, address review feedback, or prepare a change for submission.
- License
- MIT
- Compatibility
- Requires git and gh (GitHub CLI), glab (GitLab CLI), or p4 (Perforce CLI) installed and authenticated.
- Allowed tools
- Bash(gh:*), Bash(glab:*), Bash(git:*), Bash(p4:*)
- Metadata
- author: greptileai · version: 1.2
- Instructions
- 266 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Files (3)
- SKILL.md
- gitlab-api.md · references/
- graphql-queries.md · references/
SKILL.md (first lines)
# Check PR
Analyze a pull request (GitHub), merge request (GitLab), or shelved changelist (Perforce) for review comments, status checks, and description completeness, then help address any issues found.
## Inputs
- **PR/MR/CL number** (optional): If not provided, detect the PR/MR for the current branch, or the default pending changelist for p4.
## Instructions
### 0. Detect platform
First check if the user is working in a Perforce depot by looking for a `.p4config` file or `P4CLIENT`/`P4PORT` environment variables:
```bash
# Check for Perforce environment
if p4 info >/dev/null 2>&1; then
VCS="perforce"
else
# Fall back to git remote detection
REMOTE_URL=$(git remote get-url origin)
if echo "$REMOTE_URL" | grep -qi "gitlab"; then
VCS="gitlab"
else
VCS="github"
fi
fi
```
For self-hosted GitLab instances whose hostname doesn't contain "gitlab", the user can override by passing `--vcs gitlab` as an input. For Perforce, the user can override by passing `--vcs perforce`.
### 1. Identify the PR/MR/CL
If a number was provided, use it. Otherwise, detect it:
**GitHub:**
```bash
gh pr view --json number -q .number
```
**GitLab:**
```bash
glab mr view --output json | jq '.iid'
```
**Perforce:**
```bash
# List pending changelists for the current user/client
p4 changes -s pending -u $P4USER -c $P4CLIENT
```
Key field differences between platforms:
- GitHub: `number`, `headRefName`, `headRefOid`
- GitLab: `iid`, `source_branch`, `sha`
- Perforce: changelist number (CL), `shelved` files for in-review CLs
### 2. Fetch PR/MR/CL details
**GitHub:**
```bash
gh pr view <PR_NUMBER> --json title,body,state,reviews,comments,headRefName,statusCheckRollup
gh api repos/{owner}/{repo}/pulls/<PR_NUMBER>/comments
```
**GitLab:**
```bash
glab mr view <MR_IID> --output json
# Fetch discussions (inline diff comments are type "DiffNote"; general comments have null type)
glab api "projects/:fullpath/merge_requests/<MR_IID>/discussions"
```
For GitLab, paginate discussions if needed (add `?per_page=100&page=N`).
**Perforce:**
```bash
# Get changelist description, files, and status
p4 describe -s <CL_NUMBER>
# Get shelved files (for in-review CLs)
p4 describe -S <CL_NUMBER>
# Get the diff of the shelved changelist
p4 diff2 //...@=<CL_NUMBER> //...@=<CL_NUMBER>
# List review comments (if using p4 review workflow)
p4 review -c <CL_NUMBER>
```
Key Perforce CL fields:
- `Change`: changelist number
- `Status`: `pending`, `submitted`, `shelved`
- `Description`: the CL description / commit message
- `Files`: list of files in the CL
### 3. Wait for pending checks
Before analyzing, ensure all status checks have completed. If any checks are `PENDING` or `IN_PROGRESS` (GitHub) / `running` or `pending` (GitLab), poll every 30 seconds until all checks reach a terminal state.
**GitHub:** poll `statusCheckRollup` from `gh pr view`.
**GitLab:**
```bash
glab api "projects/:fullpath/merge_requests/<MR_IID>/pipelines"
```
Pipeline statuses: `running`, `pending`, `success`, `failed`, `canceled`, `skipped`. Poll until no pipeline has `running` or `pending` status.
**Perforce:** Perforce doesn't have built-in CI checks natively. If the team uses a review tool (Swarm, etc.) or an external CI triggered by shelve events, check the relevant system. Otherwise, proceed to analysis immediately.
### 4. Analyze the PR/MR
Once all checks are complete, evaluate these areas:
#### A. Status Checks
- Are all CI checks passing?
- If any are failing, identify which ones and the failure reason.
#### B. PR/MR DescriptionFrom haseeb-heaven/gworkspace-agent, MIT.
More from haseeb-heaven/gworkspace-agent
- 0.586score
greploop
greptileai
Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.
SkillCFreshness: C★ 82Claude Code +9 - 0.575score
github-pr-mon
haseeb-heaven
Monitors a GitHub PR at intervals and posts reviews using Greptile.
SkillCFreshness: C★ 82Claude Code +9
Signals
- Stars
- 82
- Forks
- 21
- Open issues
- 0
- Last commit (this folder)
- May 1, 2026 (6 months ago)
- Last release
- May 9, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.2
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from greptileai
- 0.586score
greploop
greptileai
Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.
SkillCFreshness: C★ 82Claude Code +9 - 0.570score
check-pr
greptileai
Report a GitHub PR's merge readiness: pending or failing checks, unresolved review threads, an incomplete description, and optionally fix them.
SkillAFreshness: AClaude Code +9 - 0.565score
cli-review
greptileai
Runs a Greptile CLI review for the current local branch, installing or authenticating the CLI when needed, then summarizes JSON findings for the user.
SkillAFreshness: AClaude Code +9 - 0.565score
cli-review
greptileai
Run the Greptile CLI on the local branch and summarize its findings.
SkillAFreshness: AClaude Code +9 - 0.564score
greploop
greptileai
Loop a PR through Greptile review until 5/5 confidence with zero unresolved comments.
SkillAFreshness: AClaude Code +9 - 0.531score
greploop
greptileai
Iterate on an existing PR, MR, or shelved changelist until Greptile reaches 5/5 with no unresolved comments.
SkillCFreshness: C★ 5Claude Code +9
Cite this page
check-pr skill. Agent Mart. https://agentmart.dev/skills/haseeb-heaven-check-pr (last updated 2026-10-24)