fetching-github-prs-to-review
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
$ Installieren
git clone https://github.com/ooloth/dotfiles /tmp/dotfiles && cp -r /tmp/dotfiles/tools/claude/config/skills/fetching-github-prs-to-review ~/.claude/skills/dotfiles// tip: Run this command in your terminal to install the skill
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:
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
- Fetches PRs via GitHub GraphQL API where you're requested as reviewer
- Calculates human-readable ages and review time estimates
- Parses CI status, review status (counting unique reviewers), conflict status
- Extracts PR summaries from descriptions (omitted for dependency updates)
- Tracks viewing history (marks new PRs with đ badge)
- Groups PRs into categories (Feature/Bug â Chores â Dependency Updates)
- Sorts by age (oldest first) within each category
- Assigns sequential numbers across all PRs
- Formats as markdown with proper spacing and blank lines
- Stores lookup mapping in
~/.claude/.cache/fetching-github-prs-to-review.json - 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
Repository

ooloth
Author
ooloth/dotfiles/tools/claude/config/skills/fetching-github-prs-to-review
18
Stars
1
Forks
Updated6d ago
Added1w ago