Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add getsentry/skills --skill gh-review-requests -a claude-code
Open on GitHub

What 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-platform team.
  • Show my review queue for the Streaming Platform team and explain the reason for each PR.
  • Check the review queue for the backend and platform teams.

How to install gh-review-requests

1Skills CLI (Vercel)

npx skills add getsentry/skills --skill gh-review-requests -a claude-code

2Manually: put the files in place

~/.claude/skills/gh-review-requests/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gh-review-requests/

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

Similar skills

Everything for Code review and refactoring →

From the same set20

iterate-pr Iterates on a pull request until actionable CI passes and review comments are fixed. It handles test failures and feedback loops without waiting for human approval. CX Codex +1 4,600installs pr-writer Creates or refreshes reviewer-facing PR titles and bodies based on the full branch diff. Useful when opening a draft PR or aligning descriptions after new commits. CX Codex +1 4,500installs claude-settings-audit Audits a repository and suggests read-only permissions for settings.json. Use it when setting up a project or reviewing existing Claude Code access. CX Codex +1 4,500installs create-branch Creates a git branch named the Sentry way, like feat/... or fix/.... Useful when you start work and don't want to invent a name. CX Codex +1 4,300installs skill-scanner Scans agent skills for prompt injection, malicious code, excessive permissions, secret exposure, and supply-chain risks before installation. CX Codex +1 3,800installs blog-writing-guide A skill that carries the Sentry engineering blog standards: it drafts, reviews and tightens posts until they read like a developer wrote them. CX Codex +1 3,300installs presentation-creator Creates interactive React and Vite slide decks with Sentry styling. Use it when a presentation needs real metrics, charts, and slide navigation. CX Codex +1 2,900installs django-perf-review This skill reviews Django code for N+1 queries, unbounded querysets and missing indexes. Useful before a release or when a page slows down on large tables. CX Codex +1 2,900installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor