turgid-tributary/claude-plugins/tree/main/plugins/review-queue
review-queue
Claude Code 外掛,在狀態列顯示等待你審核的開放 PR 數量,透過 gh 以 GitHub 的 review-requested:@me 查詢並定時更新。
关于这个 mod
此為 Claude Code 的 mod(函式掛鉤外掛),在狀態列以「You're a slacker, McFly: 9 reviews」形式顯示等待你審核的開放 PR 數量。它使用 gh api search/issues 查詢 is:pr is:open review-requested:@me archived:false,並讀取 total_count;於 session.start 時抓取,之後每五分鐘透過 $.clock.every 更新。若 gh 失敗(未登入或離線),狀態列會顯示 reviews: ?。需求為已登入的 gh(gh auth login)。可修改 hooks/register.ts 中的 PREFIX 與 REFRESH_MS 調整文案與更新頻率;開發時可用 claude plugin validate --strict、claude plugin test 與 claude --plugin-dir 載入。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add turgid-tributary/claude-plugins claude plugin install review-queue
原文 / README
review-queue
Puts the number of open pull requests waiting on your review in the Claude Code status line:
You're a slacker, McFly: 9 reviews
It counts open PRs where you are a requested reviewer, skipping archived repositories, the same
set as GitHub's review-requested:@me search. The count is fetched when the session starts and
every five minutes after. If gh fails (not logged in, offline), the line reads
You're a slacker, McFly: reviews: ?.
Requirements
gh, logged in (gh auth login)
How it works
This is a mod: a plugin of function hooks (hooks/register.ts) rather than commands or agents.
On session.start it runs gh api search/issues for is:pr is:open review-requested:@me archived:false, reads total_count, and sets the line with $.ui.status. A $.clock.every
timer repeats that every five minutes.
To change the wording, edit PREFIX in hooks/register.ts; to change how often it refreshes,
edit REFRESH_MS.
Developing
claude plugin validate --strict plugins/review-queue
claude plugin test plugins/review-queue
claude --plugin-dir plugins/review-queue # load it from disk; edits hot-reload
Once Claude Code has loaded the mod from disk, .claude-plugin/types/ holds the API typings and
tsc -p plugins/review-queue type-checks it.
