Agent Skillsgetsentry/skills › gh-review-requests

gh-review-requests

GitHub

通过GitHub CLI获取指定团队未处理的PR代码审查请求,支持按团队过滤并展示结果。

skills/gh-review-requests/SKILL.md getsentry/skills

Trigger Scenarios

find PRs I need to review show my review requests what needs my review fetch GitHub review requests check team review queue

Install

npx skills add getsentry/skills --skill gh-review-requests -g -y
More Options

Use without installing

npx skills use getsentry/skills@gh-review-requests

指定 Agent (Claude Code)

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

安装 repo 全部 skill

npx skills add getsentry/skills --all -g -y

预览 repo 内 skill

npx skills add getsentry/skills --list

SKILL.md

Frontmatter
{
    "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

uv run scripts/fetch_review_requests.py --org getsentry --teams <team-slug>

To filter by multiple teams, pass a comma-separated list:

uv run scripts/fetch_review_requests.py --org getsentry --teams <team slugs>

Script output

{
  "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:

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

Version History

  • 9a85b59 Current 2026-07-24 21:13

Same Skill Collection

skills/agents-md/SKILL.md
skills/brand-guidelines/SKILL.md
skills/claude-settings-audit/SKILL.md
skills/code-review/SKILL.md
skills/code-simplifier/SKILL.md
skills/commit/SKILL.md
skills/create-branch/SKILL.md
skills/django-access-review/SKILL.md
skills/django-perf-review/SKILL.md
skills/doc-coauthoring/SKILL.md
skills/find-bugs/SKILL.md
skills/gha-security-review/SKILL.md
skills/iterate-pr/SKILL.md
skills/pr-link-issue/SKILL.md
skills/pr-writer/SKILL.md
skills/presentation-creator/SKILL.md
skills/prompt-optimizer/SKILL.md
skills/replay-ux-research/SKILL.md
skills/security-review/SKILL.md
skills/skill-scanner/SKILL.md
skills/skill-writer/SKILL.md
skills/sred-project-organizer/SKILL.md
skills/sred-work-summary/SKILL.md
skills/triage-frontend-issues/SKILL.md
skills/typing-exclusion-worker/SKILL.md
skills/blog-writing-guide/SKILL.md
skills/document-api-endpoint/SKILL.md

Metadata

Files
0
Version
24fdb83
Hash
c03fa312
Indexed
2026-07-24 21:13

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 10:07
浙ICP备14020137号-1 $Гость$