GI

github-pr-review

Streamlines GitHub PR reviews by categorizing feedback into critical, suggested, and nitpick items.

Install

mkdir -p .claude/skills/github-pr-review && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13863" && unzip -o skill.zip -d .claude/skills/github-pr-review && rm skill.zip

Installs to .claude/skills/github-pr-review

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Review a GitHub pull request professionally and thoroughly using the gh CLI. Use when the user asks to review a PR, check a pull request, or audit changes before merging. Produces structured feedback with categorized comments (critical, suggested, nitpick).
257 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Fetch GitHub pull request details
  • Get diffs for a pull request
  • Organize feedback into critical, suggested, and nitpick categories
  • Post review comments to a pull request
  • Check for security issues in PRs
  • Verify architectural patterns in PRs

How it works

The skill uses the gh CLI to fetch PR information, analyze changes, and structure feedback into categories before posting the review.

Inputs & outputs

You give it
GitHub pull request number
You get back
Structured review output and posted comments

When to use github-pr-review

  • Audit a pending pull request
  • Categorize code review feedback
  • Fetch and check PR diffs locally

About this skill

GitHub PR Review

Review pull requests in a structured, professional, and safe way using the gh CLI.

Prerequisites

Ensure gh is authenticated:

gh auth status

Review Workflow

1. Fetch the PR

# List open PRs
gh pr list

# View a specific PR (replace 42 with PR number)
gh pr view 42

# Check out the branch to inspect code locally
gh pr checkout 42

2. Get the Diff

# Full diff
gh pr diff 42

# Files changed
gh pr view 42 --json files --jq '.files[].path'

3. Read the Code

For each changed file:

  • Read the diff carefully
  • Check for correctness, security, and style issues
  • Compare against project conventions in CLAUDE.md

4. Structured Review Output

Organize feedback into three categories:

## PR Review: [PR Title] (#42)

### Critical (must fix before merging)
- `path/to/file.ts:42` — Supabase `service_role` key exposed in frontend environment file.
  This should NEVER be in frontend code; only `anon` key is allowed.

### Suggested (should fix, improves quality)
- `backend/src/services/room.service.ts:15` — Error from Supabase is swallowed.
  Throw it or return an appropriate error response.

### Nitpick (minor style/convention)
- `frontend/src/app/features/rooms/room-list.component.ts:8` — Use `inject()` instead of constructor injection per project conventions.

### Looks Good
- Auth middleware correctly applied to all POST/PUT/DELETE routes
- Test coverage added for the new service method
- Commit messages follow `feat(scope): description` convention

5. Post the Review

# Post a review comment (approve, request-changes, or comment)
gh pr review 42 --comment --body "..."
gh pr review 42 --request-changes --body "..."
gh pr review 42 --approve --body "LGTM"

Project-Specific Review Checklist

Go through each PR with this checklist:

Security

  • No secrets or keys in frontend code
  • Auth middleware applied to protected routes
  • RLS policies exist for any new Supabase table

Architecture

  • Backend follows Route → Controller → Service pattern; no Supabase calls in controllers
  • Angular components are standalone; no NgModules introduced
  • No business logic in Angular templates

Quality

  • Tests added for new behavior
  • ESLint passes (npm run lint)
  • TypeScript strict mode satisfied (no any without justification)

Conventions

  • Commit messages follow type(scope): subject format
  • New files/directories follow existing naming conventions
  • JSDoc comments on public service methods (backend)

Safety Rules

  • Never approve a PR that exposes secrets, bypasses auth, or removes RLS
  • Always check that the PR branch is up to date with main before approving
  • Flag any migration that drops columns or tables as high-risk

When not to use it

  • If the gh CLI is not authenticated

Limitations

  • The skill requires the gh CLI to be authenticated.
  • The skill specifies not to approve a PR that exposes secrets, bypasses auth, or removes RLS.
  • The skill requires checking that the PR branch is up to date with main before approving.

How it compares

This skill automates the process of fetching PR details and structuring feedback, providing a consistent review format compared to a manual, unstructured review.

Compared to similar skills

github-pr-review side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
github-pr-review (this skill)05moReviewIntermediate
resolve-conflicts818moReviewIntermediate
dependency-upgrade265moReviewIntermediate
git-commits214moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry