gh-review-requests — Claude Code skill: what it does, how to install
Finds unread review requests for open GitHub pull requests and filters them by team. Use it when the review queue needs a focused check.
npx skills add getsentry/skills --skill gh-review-requests -a claude-codeWhat gh-review-requests does
This skill fetches unread GitHub notifications for review requests and keeps open, unmerged pull requests. A PR matches when the team is a requested reviewer or its author belongs to that team. The team can be supplied as a slug or display name, which the skill converts to a lowercase hyphenated slug.
It runs scripts/fetch_review_requests.py through uv. The result includes the number of matches, PR titles, full URLs, repositories, numbers, authors, and the reasons each PR was included. If the script fails, the skill provides a manual route using gh api to inspect notifications, PR state, requested reviewers, and team members.
The setup requires an authenticated GitHub CLI gh and the uv CLI. Without either one, the skill cannot collect the review queue.
What it helps with
- find unread review requests
- filter open PRs by a GitHub team
- check pull requests opened by team members
- show why each PR entered the queue
- format the review queue as a table
Example prompts for the agent
- Find unread open PRs where review is requested from the
streaming-platformteam. - Show my review queue for the
Streaming Platformteam and explain the reason for each PR. - Check the review queue for the
backendandplatformteams.
How to install gh-review-requests
1Skills CLI (Vercel)
npx skills add getsentry/skills --skill gh-review-requests -a claude-code2Manually: put the files in place
~/.claude/skills/gh-review-requests/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/gh-review-requests/
1Skills CLI (Vercel)
npx skills add getsentry/skills --skill gh-review-requests -a codex2Manually: put the files in place
.agents/skills/gh-review-requests/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add getsentry/skills --skill gh-review-requests -a cursor2Manually: put the files in place
.cursor/skills/gh-review-requests/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install getsentry/skills gh-review-requests2Manually: put the files in place
.github/skills/gh-review-requests/SKILL.md1Skills CLI (Vercel)
npx skills add getsentry/skills --skill gh-review-requests -a gemini-cli2Platform CLI
gemini skills install https://github.com/getsentry/skills --path skills/gh-review-requestsManually: put the files in place
.devin/skills/gh-review-requests/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add getsentry/skills --skill gh-review-requests -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about gh-review-requests
How do I install gh-review-requests in Claude Code?
Run npx skills add getsentry/skills --skill gh-review-requests -a claude-code, then run npx skills add getsentry/skills --skill gh-review-requests -a claude-code again. After that, use ~/.claude/skills/gh-review-requests/SKILL.md.
What does gh-review-requests do?
It finds unread notifications for review requests on open, unmerged GitHub pull requests. It filters them by team and reports the title, URL, repository, author, and inclusion reason.
What does gh-review-requests require?
You need an authenticated GitHub CLI gh and the uv CLI. You also need to provide a GitHub team as a slug or display name for filtering.
Source text
SKILL.md · Apache-2.0
---
name: gh-review-requests
description: Fetch unread GitHub notifications for open PRs where review is requested from a specified team or opened by a team member. Use when asked to "find PRs I need to review", "show my review requests", "what needs my review", "fetch GitHub review requests", or "check team review queue".
allowed-tools: Bash
---
# GitHub Review Requests
Fetch unread `review_requested` notifications for open (unmerged) PRs, filtered by a GitHub team.
**Requires**: GitHub CLI (`gh`) authenticated.
**Requires**: The `uv` CLI for python package management, install guide at https://docs.astral.sh/uv/getting-started/installation/
## Step 1: Identify the Team
If the user has not specified a team, ask:
> Which GitHub team should I filter by? (e.g. `streaming-platform`)
Accept either a team slug (`streaming-platform`) or a display name ("Streaming Platform") — convert to lowercase-hyphenated slug before passing to the script.
## Step 2: Run the Script
```bash
uv run scripts/fetch_review_requests.py --org getsentry --teams <team-slug>
```
To filter by multiple teams, pass a comma-separated list:
```bash
uv run scripts/fetch_review_requests.py --org getsentry --teams <team slugs>
```
### Script output
```json
{
"total": 3,
"prs": [
{
"notification_id": "12345",
"title": "feat(kafka): add workflow to restart a broker",
"url": "https://github.com/getsentry/ops/pull/19144",
"repo": "getsentry/ops",
"pr_number": 19144,
"author": "bmckerry",
"reasons": ["opened by: bmckerry"]
}
]
}
```
`reasons` will contain one or both of:
- `"review requested from: <Team Name>"` — the team is a requested reviewer
- `"opened by: <login>"` — the PR author is a team member
## Step 3: Present Results
Display results as a markdown table with full URLs:
| # | Title | URL | Reason |
|---|-------|-----|--------|
| 1 | feat(kafka): add workflow to restart a broker | https://github.com/getsentry/ops/pull/19144 | opened by: evanh |
If `total` is 0, say: "No unread review requests found for that team."
## Fallback
If the script fails, run manually:
```bash
gh api notifications --paginate
```
Then for each `review_requested` notification, check:
- `gh api repos/{repo}/pulls/{number}` — skip if `state == "closed"` or `merged_at` is set
- `gh api repos/{repo}/pulls/{number}/requested_reviewers` — check `teams[].name`
- `gh api orgs/{org}/teams/{slug}/members` — check if author is a member
© getsentry · Apache-2.0 · getsentry/skills