check-pr
Report a GitHub PR's merge readiness: pending or failing checks, unresolved review threads, an incomplete description, and optionally fix them.
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/jorgesolerrr-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
Use cases: documents
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 2
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Bash(gh:*)Bash(git:*)
What's inside
- Skill name
check-pr- Description
- Report a GitHub PR's merge readiness: pending or failing checks, unresolved review threads, an incomplete description, and optionally fix them. Use when the user asks for a PR's status or whether it is ready to merge.
- License
- MIT
- Compatibility
- Requires git and gh (GitHub CLI) installed and authenticated.
- Allowed tools
- Bash(gh:*), Bash(git:*)
- Metadata
- author: greptileai · version: 1.3
- Instructions
- 155 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Files (4)
- CREDITS.md
- LICENSE
- SKILL.md
- graphql-queries.md · references/
SKILL.md (first lines)
# Check PR
Analyze a GitHub pull request for review comments, status checks, and description completeness, then help address any issues found.
## Inputs
- **PR number** (optional): If not provided, detect the PR for the current branch.
## Instructions
### 1. Identify the PR
If a number was provided, use it. Otherwise, detect it:
```bash
gh pr view --json number,headRefName,headRefOid
```
Key fields: `number`, `headRefName`, `headRefOid`.
### 2. Fetch PR details
```bash
gh pr view <PR_NUMBER> --json title,body,state,reviews,comments,headRefName,statusCheckRollup
gh api --paginate "repos/{owner}/{repo}/issues/<PR_NUMBER>/comments?per_page=100"
```
Fetch inline review threads with their resolution state, keeping only unresolved ones (`gh` fills `{owner}` and `{repo}` and follows `endCursor` across pages):
```bash
gh api graphql --paginate -F owner='{owner}' -F repo='{repo}' -F pr=<PR_NUMBER> -f query='
query($owner: String!, $repo: String!, $pr: Int!, $endCursor: String) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $pr) {
reviewThreads(first: 100, after: $endCursor) {
pageInfo { hasNextPage endCursor }
nodes {
id
isResolved
comments(first: 3) {
nodes { body path author { login } }
}
}
}
}
}
}' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)'
```
GitHub PRs are also issues, so general PR comments live on the issue comments endpoint. Greptile may edit a single general PR comment on each review cycle instead of creating a new review or comment. Always inspect the latest Greptile-authored general comment by `updated_at`, including any "Prompt to fix all with AI" section, before concluding that the PR is clear.
### 3. Wait for pending checks
Before analyzing, ensure all status checks have completed. If any checks are `PENDING` or `IN_PROGRESS`, wait for them to reach a terminal state:
```bash
gh pr checks <PR_NUMBER> --watch --interval 30
```
### 4. Analyze the PR
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 Description
- Is the description complete and follows team conventions?
- Are all required sections filled in?
- Are there TODOs or placeholders that need updating?
#### C. Review Comments
- Inline code review comments that need addressing
- Look for bot review comments (e.g. from `greptile-apps[bot]`, linters, etc.)
- Human reviewer comments
#### D. General Comments
- Discussion comments on the PR
- Check the issue comments endpoint and use `updated_at` to catch bot comments edited in place. Greptile's latest edited summary can contain actionable items even when there are no new inline comments.
- Bot comments (deploy previews, etc.) — usually informational
### 5. Categorize issues
For each issue found, categorize as:
| Category | Meaning |
|---|---|
| **Actionable** | Code changes, test improvements, or fixes needed |
| **Informational** | Verification notes, questions, or FYIs that don't require changes |
| **Already addressed** | Issues that appear to be resolved by subsequent commits |
### 6. Report findings
Present a summary table:
| Area | Issue | Status | Action Needed |
|------|-------|--------|---------------|
| Status Checks | CI build failing | Failing | Fix type error in `src/api.ts` |
| Review | "Add null check" — @reviewer | Actionable | Add guard clause |
| Description | TODO placeholder in test plan | Actionable | Fill in test plan |
| Review | "Looks good" — @teammate | Informational | None |
### 7. Fix issues (if requested)
If there are actionable items:
1. Ask the user if they want to fix the issues.
2. If yes, switch to the PR's branch if not already on it.
3. Make the fixes, then commit and push:
```bash
git add <files>
git commit -m "address review feedback"
git pushFrom jorgesolerrr/skills, MIT.
More from jorgesolerrr/skills
- 0.570score
tastemaker
jorgesolerrr
Generate genuinely beautiful, on-brand UI instead of generic "AI slop" — use whenever the user asks to build, design, style, or improve a UI, landing page…
SkillAFreshness: AClaude Code +9 - 0.570score
diagram-design
jorgesolerrr
Draw a branded diagram or chart (architecture, flowchart, sequence, ER, Gantt, Sankey, Wardley and 40+ more) as standalone HTML/SVG/PNG, or redraw a .drawio…
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.557score
graphify
jorgesolerrr
Turn a folder (code, docs, papers, media) into a queryable knowledge graph with community detection, plus query, path and explain over graphify-out/.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 12, 2026 (16 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.3
- License
- MIT
- Repository
- github.com/jorgesolerrr/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from greptileai
- 0.586score
check-pr
greptileai
Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and…
SkillCFreshness: C★ 82Claude Code +9 - 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.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/jorgesolerrr-check-pr (last updated 2026-10-24)