Skip to content
Back to skills

Fetching Github Prs To Review

ASecurity

Fetches and processes GitHub pull requests waiting for review. Returns fully formatted markdown with PRs grouped by category (Feature/Bug, Chores, Dependency Updates) and sorted by age. Includes metadata like CI status, review status, size metrics, and viewing history. Use when user wants to see their PR review queue.

  • 24 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added December 19, 2025
developmentpythongobashexpressgitapifrontendbackend

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add ooloth/dotfiles --skill fetching-github-prs-to-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fetching Github Prs To Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fetching Github Prs To Review
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/ooloth-fetching-github-prs-to-review/badge)](https://www.skillsdirectory.com/skills/ooloth-fetching-github-prs-to-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fetching-github-prs-to-review
description: Fetches and processes GitHub pull requests waiting for review. Returns fully formatted markdown with PRs grouped by category (Feature/Bug, Chores, Dependency Updates) and sorted by age. Includes metadata like CI status, review status, size metrics, and viewing history. Use when user wants to see their PR review queue.
allowed-tools: [Bash]
---

# Fetching GitHub PRs to Review

Fetches pull requests waiting for review from GitHub and returns formatted markdown ready to display.

## Usage

Run the skill to get formatted markdown output:

```bash
python3 ~/.claude/skills/fetching-github-prs-to-review/fetch_prs.py
```

## What It Returns

Returns formatted markdown ready to display. Example output:

```
πŸ“‹ PRs waiting for your review: 5 found | Est. total time: ~55 min

🎯 FEATURE/BUG PRs (2):

 1. **"Add user authentication" β€’ frontend-app β€’ @alice**
   β€’ πŸ’¬ Implements JWT-based authentication for API endpoints
   β€’ πŸ“… 1 week old β€’ βœ… CI passing β€’ πŸ‘€ Review required β€’ βœ… No conflicts
   β€’ 🟒 +127 β€’ πŸ”΄ -45 β€’ πŸ“„ 4 β€’ ⏱️ 10m
   β€’ πŸ”— https://github.com/org/frontend-app/pull/42

 2. **"Fix memory leak in cache layer" β€’ data-service β€’ @david**
   β€’ πŸ’¬ Resolves memory growth issues in Redis cache implementation
   β€’ πŸ“… 2 days old β€’ βœ… CI passing β€’ βœ… Approved β€’ βœ… No conflicts
   β€’ πŸ’¬ You commented 4 hours ago
   β€’ 🟒 +89 β€’ πŸ”΄ -12 β€’ πŸ“„ 2 β€’ ⏱️ 5m
   β€’ πŸ”— https://github.com/org/data-service/pull/89

πŸ”§ CHORES (1):

 3. **"chore: update CI pipeline" β€’ infra-config β€’ @frank**
   β€’ πŸ’¬ Modernizes GitHub Actions workflows and adds caching
   β€’ πŸ“… 5 days old β€’ βœ… CI passing β€’ πŸ‘€ Review required β€’ βœ… No conflicts
   β€’ 🟒 +156 β€’ πŸ”΄ -89 β€’ πŸ“„ 7 β€’ ⏱️ 20m
   β€’ πŸ”— https://github.com/org/infra-config/pull/34

πŸ“¦ DEPENDENCY UPDATES (2):

 4. πŸ†• **"Bump lodash from 4.17.20 to 4.17.21" β€’ frontend-app β€’ @dependabot**
   β€’ πŸ“… 3 days old β€’ βœ… CI passing β€’ πŸ‘€ Review required β€’ βœ… No conflicts
   β€’ 🟒 +12 β€’ πŸ”΄ -8 β€’ πŸ“„ 2 β€’ ⏱️ 5m
   β€’ πŸ”— https://github.com/org/frontend-app/pull/178

 5. **"Bump express from 4.18.0 to 4.18.2" β€’ backend-api β€’ @dependabot**
   β€’ πŸ“… 1 week old β€’ ❌ CI failing β€’ πŸ‘€ Review required β€’ βœ… No conflicts
   β€’ 🟒 +9 β€’ πŸ”΄ -9 β€’ πŸ“„ 2 β€’ ⏱️ 5m
   β€’ πŸ”— https://github.com/org/backend-api/pull/201

Commands:
- Type a number (1-5) to review that PR
- After each review, I'll prompt: "Continue? (y/n/list/number)" to review more PRs

πŸ’‘ Interactive workflow: Type a number β†’ review PR β†’ prompted for next β†’ repeat until done
```

## Processing Done by Skill

1. Fetches PRs via GitHub GraphQL API where you're requested as reviewer
2. Calculates human-readable ages and review time estimates
3. Parses CI status, review status (counting unique reviewers), conflict status
4. Extracts PR summaries from descriptions (omitted for dependency updates)
5. Tracks viewing history (marks new PRs with πŸ†• badge)
6. Groups PRs into categories (Feature/Bug β†’ Chores β†’ Dependency Updates)
7. Sorts by age (oldest first) within each category
8. Assigns sequential numbers across all PRs
9. Formats as markdown with proper spacing and blank lines
10. Stores lookup mapping in `~/.claude/.cache/fetching-github-prs-to-review.json`
11. Updates viewing history in `~/.claude/.cache/fetching-github-prs-to-review-history.json`

## Notes

- Filters out PRs from ignored repos (currently: `recursionpharma/build-pipelines`)
- FEATURE/BUG PRs: Not chores, not dependency updates, not drafts
- CHORES: PRs with titles starting with "chore:"
- DEPENDENCY UPDATES: All dependency updates (dependabot, bump PRs, etc.)
- Unique reviewer count: Counts each person once, shows their most recent review state
- Time estimates: Based on total lines changed (0-50: 5min, 51-200: 10min, etc.)
- Formatting: Space before PR numbers prevents markdown list parsing; blank lines separate PRs

Files in this skill

  • SKILL.md4 KB
  • fetch_prs.py15.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.