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/lionelndong-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: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
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 lionelndong/pleasur-seo-agent, MIT.
More from lionelndong/pleasur-seo-agent
- 0.474score
format-for-publish
lionelndong
Convert the cited draft into a Strapi-ready package — clean markdown body + Strapi-shaped JSON payload + a README with paste/publish instructions.
SkillCFreshness: CClaude Code +9 - 0.471score
keyword-vet-aio
lionelndong
Evaluate Google AI Overview presence and click-cannibalization risk for BID-passing Pleasur.ai Stage 01 keyword candidates using current Ahrefs evidence.
SkillCFreshness: CClaude Code +9 - 0.471score
keyword-vet-bid
lionelndong
Validate Pleasur.ai Stage 01 blog-keyword candidates with the Business potential, Intent, and Difficulty method using current Ahrefs evidence.
SkillCFreshness: CClaude Code +9 - 0.471score
auto-blog-loop
lionelndong
Autonomous run-loop for the blog pipeline.
SkillCFreshness: CClaude Code +9 - 0.471score
brand-reference
lionelndong
Find existing articles on the brand's own blog covering the target keyword or related topics.
SkillCFreshness: CClaude Code - 0.471score
keyword-prioritization
lionelndong
Deterministically score, route, rank, and select at most one fully vetted Pleasur.ai Stage 01 blog-keyword candidate using product-fit-dominant business…
SkillCFreshness: CClaude Code +9 - 0.469score
geo-citation-audit
lionelndong
Measure pleasur.ai's AI-citation share across ChatGPT / Perplexity / Gemini / Google AI Overviews for the tracked query list, using SemRush (data API for…
SkillCFreshness: CClaude Code - 0.469score
contagious-why-things-catch-on
lionelndong
Knowledge base from "Contagious: Why Things Catch On" by Jonah Berger.
SkillCFreshness: CClaude Code +9 - 0.469score
content-gap-analysis
lionelndong
Layer 1b of the keyword research pipeline.
SkillCFreshness: CClaude Code +9 - 0.469score
keyword-aio-gap
lionelndong
Layer 1c of the keyword research pipeline — SKIPPED on the current Semrush MCP (it exposes no AI-visibility / AI-toolkit reports, so there is no multi-engine…
SkillCFreshness: CClaude Code +9 - 0.468score
draft
lionelndong
Expand an annotated outline into full article prose using brand voice anchored in example articles, hitting the outline's per-section depth targets.
SkillCFreshness: CClaude Code +9 - 0.467score
draft-score
lionelndong
Lightweight ContentShake AI self-check the /draft stage can call before saving.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 25, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.2
- License
- MIT
- Repository
- github.com/lionelndong/pleasur-seo-agent
- 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.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.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
Cite this page
check-pr skill. Agent Mart. https://agentmart.dev/skills/lionelndong-check-pr (last updated 2026-10-24)