skills/github-workflow/skills/gh-pr-request/SKILL.md
Use when requesting reviewers on a pull request based on ownership and availability.
npx skillsauth add dtsong/my-claude-setup gh-pr-requestInstall 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 the council needs to surface organizational knowledge buried across multiple internal sources (wikis, design docs, ADRs, past tickets, postmortems, chat archives, code repos). Plans where to look, what to cross-reference, and how to synthesize findings into evidence the council can act on. Do not use for external market research (use competitive-analysis), library evaluation (use library-evaluation), or technology trend assessment (use technology-radar).
testing
Use to convert a Word .docx file to PDF and/or verify its page count. Triggers on: converting docx to pdf, rendering a document, checking how many pages a docx produces, or asserting a page-count constraint (e.g. a resume must stay 2 pages). Wraps LibreOffice headless conversion.
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
Interactive wizard to craft effective prompts using Claude Code best practices