Home
cd ../playbooks
Developer ToolsIntermediate

PR Queue Triage

Clear a backlog of open pull requests before a release by classifying every PR into an evidence-based disposition — never by title — with a real git merge-tree test against the actual release branch, not the platform's often-wrong mergeable flag.

10 minutes
By jamiepine (voicebox) and Hmbown (CodeWhale)Source
#pull-requests#github#release-management#open-source#code-review#maintainer-tools

GitHub's mergeable badge is computed against main, but your real release branch is somewhere else — so a PR that shows 'dirty' can be perfectly clean, and one that shows 'clean' can conflict the moment it actually lands, unless something tests the real merge.

Who it's for: solo maintainers clearing a PR backlog before a release, small teams doing a pre-release speedrun pass, open-source maintainers who need to triage community contributions fast without rubber-stamping them, anyone tired of judging PRs by their titles

Example

"Triage the open PR queue before v0.9" → A test-merge of every candidate against the actual release branch (not main), a disposition per PR — direct-merge, harvest, candidate, supersede, defer, or close-with-note — each backed by a read diff and a real merge-tree result, a working triage doc tracking progress across the session, and full authorship credit preserved on every merge or harvest

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add pr-queue-triage
# PR Queue Triage

A systematic process for clearing a backlog of open pull requests before a release: classify every PR by real, evidence-based mergeability — never by title — into an explicit disposition, land what's safe, and hand the maintainer a compact report for the rest.

This is a **speedrun for a solo or small-team maintainer** who wants to clear the inbound backlog in one focused session, not a replacement for genuine code review of every contribution.

## When to Use

- Before a minor or major release when 10+ open PRs have accumulated
- When you want to unblock merging without losing the narrative of what's landing
- When you know you can't personally deep-review every PR, but need to land the critical subset fast
- When a maintainer asks "what's in the PR queue?" or "what can we land?"

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

A disciplined pass through a backlog of open pull requests: inventory the queue with gh pr list, read every non-trivial candidate from its actual diff rather than its title, and — critically — test-merge each one against the real release branch with git merge-tree, since GitHub's mergeable flag is computed against main and frequently misreports status for anything else. Every PR lands in exactly one disposition: direct-merge, harvest (reimplement with explicit authorship credit), candidate needing a closer look, supersede, defer, or close-with-note.

The workflow is built for a speedrun session with a known cutoff — a release — not as a substitute for genuine ongoing review, and it's explicit about credit: a harvested change carries Co-authored-by: and Harvested-from: trailers since a reimplementation doesn't preserve authorship the way a cherry-pick does. It's also explicit about authority: when triage is advisory rather than backed by full merge rights, the output is a compact recommendation table for a maintainer to approve, never a silent merge or close.


Quick Start

Step 1: Create a Project Folder

mkdir pr-triage && cd pr-triage

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ./

Step 3: Triage the Queue

claude

Say "triage the open PR queue for [target version]" and Claude will set up an isolated review worktree, inventory every open PR, and work through the classification workflow.


Tips & Best Practices

  • The git merge-tree step is the single highest-leverage move in this whole workflow — it's the difference between trusting a platform badge that's frequently wrong for non-main targets and knowing, with certainty, whether a PR actually applies cleanly.
  • Pair this with a release-notes-drafting pass afterward: triage first against the real landing branch, then draft notes against the new main — doing it in the reverse order produces notes that don't match what actually shipped.
  • Check for file-path overlaps across the whole queue, not just within each PR in isolation — a PR that looks small in isolation can still collide with three other open PRs touching the same file.

Limitations

  • Built for a speedrun pass with a known cutoff (a release), not a substitute for ongoing, careful review of every contribution — genuinely complex or risky PRs still deserve dedicated, unhurried attention.
  • Assumes gh CLI and git are both available and authenticated — the merge-tree and PR-metadata steps depend on both.
  • The disposition taxonomy assumes a maintainer (or equivalent authority) is available to approve closes and merges — in a fully autonomous run, default to reporting and let a human execute the close/merge actions.

$Related Playbooks

Developer Tools

Reproducible Database Lookup

A methodology for querying public database APIs — scientific, regulatory, financial, or otherwise — so another agent or human can repeat exactly what you did: bounded calls, count reconciliation, identifier-conversion tracking, and untrusted-data handling for every response.

10 minutes
Advanced
Developer Tools

Semantic Prompt Compression

Re-encode verbose system prompts, tool descriptions, and skill bodies into a dense telegraphic register — punctuation as connectives, label frames, verbless assertions — via re-encoding, not word deletion, with a density gate and a declared-loss verification pass.

5 minutes
Advanced
Developer Tools

Simplified Technical English for Docs

Write or rewrite technical documentation with the ASD-STE100 Simplified Technical English discipline — the aerospace maintenance-manual standard adapted for READMEs, runbooks, error messages, incident reports, and agent instructions.

10 minutes
Intermediate
Developer Tools

Project Graveyard: Autopsy Your Abandoned Side Projects

Scan local repos for dead side projects, autopsy each one from its git history, surface your personal death patterns, and pick the one corpse most worth resurrecting — then help ship it.

10 minutes
Intermediate
Developer Tools

Secure Coding Practices

A threat-model-first secure coding reference — trust-boundary mapping, a STRIDE quick-pass, a three-tier always/ask-first/never boundary system, and copy-paste prevention patterns for injection, XSS, broken access control, and SSRF.

10 minutes
Intermediate
Developer Tools

PR Review Toolkit

Six specialist reviewers — comments, tests, error handling, type design, general quality, and simplification — each triggered by name or automatically based on what changed in the diff.

5 minutes
Intermediate
Developer Tools

Security Guidance Review

Three-layer continuous security review for AI-generated code — instant regex warnings on edit, an LLM diff review at end of turn, and an agentic commit-time reviewer that traces data flow across files.

10 minutes
Advanced
Developer Tools

Vercel Analytics & Speed Insights Setup

Wire up Vercel Analytics, Speed Insights, and SPA routing rewrites into a React/Vite project in one pass — including the routing fix most people miss.

5 minutes
Beginner
Developer Tools

Shannon: Autonomous Pentesting for Your Own Apps

An operating guide for driving Keygraph's Shannon CLI: scope a white-box pentest against an app you own, run it, and turn the proven findings into fix tasks

15 minutes
Advanced
Developer Tools

Unslop UI Skill for Claude: Kill the AI Design Tells

A frontend guardrail built from a 3.2M-post Reddit analysis of what people actually call AI slop, with a build mode that forces design decisions up front and an audit mode that scans existing code for the tells

10 minutes
Intermediate
Developer Tools

Redesign Existing Projects: UI Audit and Upgrade

A design audit checklist that finds generic AI-look patterns in an existing codebase and fixes them without breaking functionality or migrating frameworks

10 minutes
Intermediate
Developer Tools

Soft UI Design Skill: Premium, Awwwards-Tier Interfaces

A design system that makes Claude build $150k-agency-feeling UI — double-bezel cards, spring-physics motion, magnetic buttons, and a banned list that blocks every cheap AI-design tell

5 minutes
Intermediate

Browse all Developer Tools playbooks →