Pr list

From wasabeef/claude-code-cookbook · View interactive version

Pr list is an AI agent skill from the GitHub repository wasabeef/claude-code-cookbook. 按优先级显示 PR 列表。「显示 PR」「PR 列表」「打开的 PR?」「待合并的 PR?」等触发。

How to use this skill

Skill file

按优先级显示 PR 列表

显示当前仓库的开放 PR 列表,并按优先级排序。

使用方法

# 向 Claude 请求
「请按优先级显示开放的 PR 列表」

基本示例

# 获取仓库信息
gh repo view --json nameWithOwner | jq -r '.nameWithOwner'

# 获取开放 PR 信息并请求 Claude
gh pr list --state open --draft=false --json number,title,author,createdAt,additions,deletions,reviews --limit 30

「请按优先级整理上述 PR,并包含每个 PR 的 2 行概要。使用上面获取的仓库名生成 URL」

显示格式

开放 PR 列表 (按优先级排序)

### 高优先级
#编号 标题 [Draft/DNM] | 作者 | 开放时长 | 批准数 | +添加/-删除
      ├─ 概要第 1 行
      └─ 概要第 2 行
      https://github.com/owner/repo/pull/编号

### 中优先级
(相同格式)

### 低优先级
(相同格式)

优先级判定标准

高优先级

中优先级

低优先级

注意事项

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.