Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Review Pull Request

ASecurity

Conduct end-to-end pull request reviews using GitHub CLI (gh). Covers

3 stars
0 votes
0 copies
0 views
Added 9/20/2026
code-qualitygobashrefactoringgitci/cdsecurityperformance

Works with

cli

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add ruskicoder/system-prompts --skill review-pull-request --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review Pull Request?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Review Pull Request
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ruskicoder-review-pull-request-032c19ab/badge)](https://www.skillsdirectory.com/skills/ruskicoder-review-pull-request-032c19ab)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: review-pull-request
description: Conduct end-to-end pull request reviews using GitHub CLI (gh). Covers
  diff analysis, commit history inspection, CI check verification, severity-leveled
  feedback (Blocking, Suggestion, Nit, Praise), and formal review submission (gh pr
  review).
argument-hint: <PR number, URL, or owner/repo#number>
---

<!-- Generated from skills/review-pull-request.md by tools/generate_integrations.py. Edit the source file, not this one. -->

# Skill: Pull Request Review (Review Pull Request)

## Purpose
Review a GitHub pull request end-to-end using the GitHub CLI (`gh`). Covers diff analysis, commit history review, CI/CD check verification, severity-leveled feedback (Blocking, Suggestion, Nit, Praise), and `gh pr review` submission.

## Installation & Usage Options

### Via LobeHub Market CLI
```bash
# Register agent if not already registered
npx -y @lobehub/market-cli register --name "Antigravity" --source antigravity

# Install to custom skills directory
npx -y @lobehub/market-cli skills install pjt222-development-guides-review-pull-request --dir skills

# Install globally or for specific agent platform
npx -y @lobehub/market-cli skills install pjt222-development-guides-review-pull-request --agent open-claw
```

### Native Orchestrator Loading
```markdown
# IDE Native syntax
#[[file:skills/review-pull-request.md]]

# CLI reference
cat skills/review-pull-request.md
```

## When to Use
- A pull request is assigned for review or ready for inspection
- Performing a self-review before requesting others' input
- Conducting a second review after PR feedback has been addressed
- Auditing a merged PR for post-merge quality assessment
- Differentiating diff-scoped PR review from system-level architecture review

## Inputs
- **Required**: PR identifier (`<number>`, URL, or `owner/repo#number`)
- **Optional**: Review focus (`security`, `performance`, `correctness`, `style`, `architecture`)
- **Optional**: Codebase familiarity level (`familiar`, `somewhat`, `unfamiliar`)
- **Optional**: Time budget for the review (`quick scan`, `standard`, `thorough`)

## Tools & Prerequisites
- GitHub CLI (`gh`) authenticated with repository read/write access (`gh auth status`)
- Git CLI (`git log`, `git diff`, `git checkout`)
- Local linter and test runner when local verification is required

## Step-by-Step Procedure

### Step 1: Understand the Context & Scope
1. Fetch PR metadata:
   ```bash
   gh pr view <number> --json title,body,author,baseRefName,headRefName,labels,additions,deletions,changedFiles,reviewDecision
   ```
2. Read PR title and description:
   - What specific problem does this PR solve?
   - What architectural approach was taken?
   - Are there explicit focus areas requested by the author?
3. Assess PR size and determine review depth:

| Size | Files | Lines | Recommended Review Approach |
|------|-------|-------|-----------------------------|
| **Small** | 1–5 | <100 | Read every line sequentially; fast turnaround |
| **Medium** | 5–15 | 100–500 | Focus on core logic and edge cases; skim boilerplate |
| **Large** | 15–30 | 500–1000 | Review commit-by-commit; prioritize critical paths |
| **XL** | 30+ | 1000+ | Flag for potential decomposition; review security/data boundaries |

4. Review commit history and narrative coherence:
   ```bash
   gh pr view <number> --json commits --jq '.commits[].messageHeadline'
   ```
5. Check CI/CD pipeline and automated test checks:
   ```bash
   gh pr checks <number>
   ```

### Step 2: Systematic Diff Analysis
1. Retrieve full diff or patch:
   ```bash
   gh pr diff <number>
   ```
2. For large PRs, inspect commit by commit:
   ```bash
   gh pr diff <number> --patch
   ```
3. Evaluate each modified file across seven quality dimensions:
   - **Correctness**: Does the code accurately satisfy the PR description?
   - **Edge Cases**: Are nulls, empty states, boundary values, and race conditions handled?
   - **Error Handling**: Are errors caught gracefully without leaking stack traces or silent failures?
   - **Security**: Any injection risks, insecure deserialization, auth bypass, or secret leakage?
   - **Performance**: Any accidental $O(N^2)$ loops, unbounded in-memory allocations, or N+1 query patterns?
   - **Naming & Readability**: Are variables, functions, and modules descriptively named?
   - **Test Coverage**: Are new behaviors backed by regression or unit tests?

### Step 3: Classify Feedback by Severity
Group all review comments into strict severity tiers:

```
🔴 [BLOCKING]
- Critical bugs, data loss risks, severe performance regressions, security vulnerabilities.
- Must be resolved before PR approval and merge.

🟡 [SUGGESTION]
- Maintainability improvements, architectural refactoring, cleaner abstractions.
- Highly recommended, but author has discretion if trade-offs warrant.

🟢 [NIT]
- Minor polish, typos in comments, formatting, cosmetic naming adjustments.
- Non-blocking; author may address or defer.

🟣 [PRAISE]
- Highlighting elegant algorithms, thorough test suites, or exceptionally clean refactors.
```

### Step 4: Construct & Submit Structured Review
1. Format review comments with precise file path, line number, rationale, and diff replacement blocks:
   ```markdown
   **[BLOCKING]** Potential Null Pointer Exception
   In `src/services/auth.ts` at line 42:
   If `user.session` is undefined, accessing `user.session.token` will throw a TypeError.

   ```suggestion
   const token = user.session?.token;
   if (!token) {
     throw new UnauthorizedError('Missing session token');
   }
   ```
   ```
2. Submit the review using `gh pr review`:
   ```bash
   # Approve PR
   gh pr review <number> --approve -b "LGTM. Verified CI checks and test coverage."

   # Request changes with blocking findings
   gh pr review <number> --request-changes -b "Found 2 blocking issues regarding auth token validation and error handling. See inline comments."

   # Submit general comments/suggestions
   gh pr review <number> --comment -b "Review completed with minor suggestions."
   ```

## Review Anti-Patterns to Avoid
- ❌ **Rubber-Stamping**: Approving without reading diffs or verifying CI checks.
- ❌ **Nit Avalanche**: Flooding the review with 20+ trivial styling nits while missing logic bugs.
- ❌ **Scope Creep**: Demanding unrelated refactors outside the PR's stated objective.
- ❌ **Vague Criticism**: Saying "this looks slow" without explaining why or proposing an alternative.

Attribution

ruskicoderruskicoder
View sourceMore from ruskicoder →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Caveman Review

Ultra-compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment is one line: location, problem, fix. Use when user says "review this PR", "code review", "review the diff", "/review", or invokes /caveman-review. Auto-triggers when reviewing pull requests.

1023331 votes

Caveman Commit

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit. Auto-triggers when staging changes.

1023331 votes

Verification Loop

一个全面的 Claude Code 会话验证系统。

2456590 votes

Springboot Verification

Verification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.

2456590 votes

Django Verification

Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.

2456590 votes
View all in code-quality →