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.zipInstalls 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).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
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
anywithout justification)
Conventions
- Commit messages follow
type(scope): subjectformat - 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
mainbefore 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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| github-pr-review (this skill) | 0 | 5mo | Review | Intermediate |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| dependency-upgrade | 26 | 5mo | Review | Intermediate |
| git-commits | 21 | 4mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
git-commits
bonny
Create well-structured git commits in logical chunks following best practices
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
github-multi-repo
ruvnet
Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration
git-workflow-enforcer
CrazyDubya
Ensures commits follow conventional commits, branch naming conventions, and PR templates. Use when creating commits, branches, or PRs, or when user mentions git workflow.