Best for
- Use when the user wants to triage their review queue, prioritize PR reviews, check what PRs need attention, or asks "what should I review next", "review triage", "my review queue", "pending reviews".
jackchuka/skills/gh-review-triage/SKILL.md
Triage PR reviews assigned to you and your teams. Produces a single prioritized table using a decision-tree + LLM hybrid approach. Use when the user wants to triage their review queue, prioritize PR reviews, check what PRs need attention, or asks "what should I review next", "review triage", "my review queue", "pending reviews".
Decision brief
Triage your PR review queue into a single prioritized table. Combines a mechanical decision tree (draft status, CI, reviewer assignment, staleness) with LLM judgment (type classification, cognitive load estimation, priority narration) to produce an opinionated ordering.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/jackchuka/skills --skill "gh-review-triage"Inspect the Agent Skill "gh-review-triage" from https://github.com/jackchuka/skills/blob/7b0b33f68b8f11522e43622e5cb3bacd802999d2/gh-review-triage/SKILL.md at commit 7b0b33f68b8f11522e43622e5cb3bacd802999d2. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Fetch all open PRs where review is requested from you (directly or via team membership).
Sort results by updatedAt descending (most recently active first).
For each PR from Phase 1, fetch detailed data in parallel (batch 5–10 at a time):
Mechanical decision tree. Evaluate conditions top-to-bottom; first match assigns the tier.
Only runs on 🔴 and 🟡 candidates. Skip ⚪ and 🔵 — they are already classified and don't benefit from LLM refinement.
Permission review
The documentation includes network, browsing, or remote request actions.
If `--no-team` is specified, filtering happens in Phase 2 after enrichment — the search API does not distinguish individual vs team assignment.The documentation includes network, browsing, or remote request actions.
| 🔴 | [owner/repo#123](https://github.com/owner/repo/pull/123) | alice | fix | +5/-2 | 1h ago | quick | Author responded, your turn |Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 84/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 15 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Triage your PR review queue into a single prioritized table. Combines a mechanical decision tree (draft status, CI, reviewer assignment, staleness) with LLM judgment (type classification, cognitive load estimation, priority narration) to produce an opinionated ordering.
Includes team-assigned reviews by default. Use --no-team to show only PRs where
you are individually named as a reviewer.
Fetch all open PRs where review is requested from you (directly or via team membership).
gh api user --jq '.login'
Store the result as $ME for use in all subsequent phases.
gh search prs --review-requested=@me --state=open \
--json repository,title,number,url,author,createdAt,updatedAt,labels,commentsCount,isDraft \
--limit 100
Sort results by updatedAt descending (most recently active first).
If --no-team is specified, filtering happens in Phase 2 after enrichment — the search API does not distinguish individual vs team assignment.
For each PR from Phase 1, fetch detailed data in parallel (batch 5–10 at a time):
gh pr view <number> --repo <owner/repo> \
--json additions,deletions,reviewRequests,reviews,statusCheckRollup,body
Compute the following from raw PR data:
author.login ends with [bot] or matches a known bot (renovate, dependabot, github-actions, etc.)$ME appears in reviews[].author.loginupdatedAt is after it AND latest activity is from the authorupdatedAt in daysreviewRequests has exactly one User entry and it is $MEreviewRequests excluding $ME$ME appears as a User (not Team) in reviewRequestsstatusCheckRollup — "pass" if all pass, "fail" if any fail, "pending" if any pending and none faildays_since_update ≤ 3days_since_update ≥ 7If --no-team is specified: drop PRs where you_individually_assigned is false. Only PRs where you are explicitly named as a User reviewer survive.
Mechanical decision tree. Evaluate conditions top-to-bottom; first match assigns the tier.
| Step | Condition | Tier | Why |
|---|---|---|---|
| 1 | isDraft == true | ⚪ | "Draft — skip unless asked" |
| 2 | ci_status == "fail" | ⚪ | "CI failing — review after fix" |
| 3 | has_your_prior_review AND author_responded_after_you | 🔴 | "Author responded, your turn" |
| 4 | type is bug/hotfix (from labels or title) + is_fresh + you_individually_assigned | 🔴 | "Fresh bugfix, you're assigned" |
| 5 | has security label + is_bot + is_fresh | 🔴 | "Security patch, review soon" |
| 6 | sole_reviewer + is_fresh | 🔴 | "You're the only reviewer" |
| 7 | you_individually_assigned + is_fresh | 🟡 | "Assigned to you, others can help" |
| 8 | is_fresh + other_individual_reviewers is empty (team-only) | 🟡 | "Team request, recently active" |
| 9 | is_stale (≥ 7 days since update) | ⚪ | (LLM refines in Phase 4) |
| 10 | other_individual_reviewers is non-empty + NOT you_individually_assigned | 🔵 | "Others are covering this" |
| 11 | everything else | 🟡 | (LLM narrates in Phase 4) |
See references/cascade.md for full field definitions and threshold defaults.
Classify PR type mechanically before falling back to LLM:
fix:, fix(, hotfix:, hotfix( → bugOnly runs on 🔴 and 🟡 candidates. Skip ⚪ and 🔵 — they are already classified and don't benefit from LLM refinement.
For PRs that matched the stale rule, the LLM provides nuanced judgment:
This does NOT change the tier (stays ⚪) but improves the "why" column.
Merge tree tier with LLM refinements. Sort by tier (🔴 → 🟡 → 🔵 → ⚪), then within each tier by cognitive load (quick → moderate → heavy).
## PR Review Triage ({date}) — {total_count} PRs
| P | PR | Author | Type | Size | Updated | Load | Why |
|---|---|---|---|---|---|---|---|
| 🔴 | [owner/repo#123](https://github.com/owner/repo/pull/123) | alice | fix | +5/-2 | 1h ago | quick | Author responded, your turn |
| 🔴 | [owner/repo#456](https://github.com/owner/repo/pull/456) | renovate | security | +12/-4 | today | quick | Security patch, review soon |
| 🟡 | [owner/repo#789](https://github.com/owner/repo/pull/789) | bob | feat | +200/-30 | 1d ago | moderate | Assigned to you, others can help |
| 🔵 | [owner/repo#101](https://github.com/owner/repo/pull/101) | carol | chore | +8/-0 | today | quick | Others are covering this |
| ⚪ | [owner/repo#201](https://github.com/owner/repo/pull/201) | dave | feat | +300/-40 | 30d ago | heavy | Stale — likely abandoned |
| ⚪ | [owner/repo#301](https://github.com/owner/repo/pull/301) | eve | feat | +1200/-0 | 5d ago | — | Draft |
🔴 {n} 🟡 {n} 🔵 {n} ⚪ {n} — Review 🔴 first, ~{estimate} estimated
Time estimate: quick = 5 min, moderate = 15 min, heavy = 30 min. Sum 🔴 PRs only, round to nearest 5 min.
If --limit N is specified: show top N rows but still show full tier counts in the footer so the user knows what was omitted.
updatedAt, not createdAt