skills/github-workflow/skills/gh-pr-request/SKILL.md
Request reviewers for a pull request
npx skillsauth add dtsong/my-claude-setup GitHub PR Request ReviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@ prefix.team/frontend).owner/repo format with alphanumeric characters and hyphens only.Request reviewers for a pull request with smart suggestions.
/gh-pr-request # Suggest reviewers for current PR
/gh-pr-request @user1 @user2 # Request specific reviewers
/gh-pr-request 123 @user1 # Request reviewer for PR #123
/gh-pr-request --team backend # Request team review
# Get PR for current branch
PR_NUM=$(gh pr view --json number -q '.number' 2>/dev/null)
if [ -z "$PR_NUM" ]; then
echo "No PR found for current branch."
echo "Create one with: /commit-push-pr"
exit 1
fi
# Get files changed in PR
gh pr view $PR_NUM --json files -q '.files[].path'
# Identify code owners
# Check CODEOWNERS file if exists
cat .github/CODEOWNERS 2>/dev/null
Based on:
# Get recent contributors to changed files
for file in $(gh pr view $PR_NUM --json files -q '.files[].path'); do
git log --format='%an' -n 5 -- "$file"
done | sort | uniq -c | sort -rn
# Request individual reviewers
gh pr edit $PR_NUM --add-reviewer @user1,@user2
# Request team review
gh pr edit $PR_NUM --add-reviewer team/backend
PR #123: Add dark mode support
Files changed:
src/components/Theme.tsx
src/hooks/useTheme.ts
src/styles/dark.css
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Suggested Reviewers:
@frontend-lead (Recommended)
- CODEOWNER for src/components/
- Reviewed 80% of recent frontend PRs
- Last active: 2 hours ago
@css-expert
- Recent contributor to src/styles/
- Expertise in theming
- Last active: 1 day ago
@senior-dev
- General expertise
- Available (no pending reviews)
- Last active: 30 minutes ago
Teams:
@team/frontend
- Owns src/components/, src/hooks/
- 5 members available
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Select reviewers to request:
1. @frontend-lead (CODEOWNER - required)
2. @css-expert
3. @senior-dev
4. @team/frontend
Requested reviewers for PR #123:
✓ @frontend-lead - Request sent
✓ @css-expert - Request sent
They will be notified and the PR will appear in their review queue.
Current review status:
Requested: 2
Approved: 0
Changes requested: 0
The PR requires 1 approval to merge.
PR #123 already has reviewers:
Current reviewers:
@reviewer1 - Review pending (requested 1 day ago)
@reviewer2 - Approved
Add more reviewers?
/gh-pr-request @additional-reviewer
Or ping existing:
@reviewer1 - haven't reviewed yet
If repository has .github/CODEOWNERS:
CODEOWNERS for changed files:
src/components/* @team/frontend
src/styles/* @css-team
*.tsx @typescript-reviewers
Required reviews:
@team/frontend (1 approval needed)
Note: CODEOWNER reviews are required for merge.
Claude considers:
| Factor | Weight | |--------|--------| | CODEOWNERS | Required | | Recent file contributors | High | | Similar past PRs | Medium | | Availability (pending reviews) | Medium | | Last activity | Low |
# Request team review
/gh-pr-request --team frontend
# Multiple teams
/gh-pr-request --team frontend --team security
# Remove a reviewer (if needed)
gh pr edit 123 --remove-reviewer @user1
/gh-pr-status to check review status/gh-pr-respond to address review comments/gh-pr-merge when approved/review-pr to reviewdevelopment
Use when planning implementation steps, deciding commit format, or structuring development approach. Provides brainstorm-plan-implement flow with conventional commits. Triggers on 'how should I approach this', 'commit format'.
development
Security audit checklist for web applications. Use when reviewing, auditing, or hardening a web app's security posture. Covers rate limiting, auth headers, IP blocking, CORS, security middleware, input validation, file upload limits, ORM usage, and password hashing. Triggers on requests like "review security", "harden this app", "security audit", "check for vulnerabilities", or when building/reviewing API endpoints.
development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.