Skip to content
Development
Command

/pr-list

Displays a prioritized list of open PRs in the current repository.

From plugin
claude-code-cookbook
1.1k39 skills9 agents39 commands8 MCP
Install
> /plugin marketplace add wasabeef/claude-code-cookbook

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/pr-list

Context preview

What this command does when you run it.

Displays a prioritized list of open PRs in the current repository.

Command definition

pr-list.md

Display open PRs with priority ranking

Displays a prioritized list of open PRs in the current repository.

Usage

# Request from Claude
"Show a prioritized list of open PRs"

Basic Examples

# Get repository information
gh repo view --json nameWithOwner | jq -r '.nameWithOwner'

# Get open PR information and request from Claude
gh pr list --state open --draft=false --json number,title,author,createdAt,additions,deletions,reviews --limit 30

"Organize the above PRs by priority, including a 2-line summary for each PR. Generate URLs using the repository name obtained above"

Display Format

Open PRs List (by Priority)

### High Priority
#number Title [Draft/DNM] | Author | Time since opened | Approved count | +additions/-deletions
      ├─ Summary line 1
      └─ Summary line 2
      https://github.com/owner/repo/pull/number

### Medium Priority
(Similar format)

### Low Priority
(Similar format)

Priority Assessment Criteria

**High Priority**

  • `fix:` Bug fixes
  • `release:` Release work

**Medium Priority**

  • `feat:` New features
  • `update:` Feature improvements
  • Other regular PRs

**Low Priority**

  • PRs containing DO NOT MERGE
  • Draft PRs with `test:`, `build:`, `perf:`

Notes

  • Requires GitHub CLI (`gh`)
  • Only displays PRs in open state (Drafts are excluded)
  • Shows maximum 30 PRs
  • Elapsed time is from when the PR was opened
  • PR URLs are automatically generated from the actual repository name
Read more
Ships withclaude-code-cookbook

A collection of commands, roles, and automation scripts for Claude Code. Automate your workflow without unnecessary confirmations, allowing you to focus on what matters.

Get the whole plugin