samix73/claude-plugins/tree/main/pr-review-guide
pr-review-guide
一個提供引導式 PR 審查的 Claude Code 外掛,會將 diff 按相關程式碼區塊分組,並在窗格中顯示審查備註。支援透過 gh CLI 審查 GitHub PR,也支援將本機變更與基礎分支比較。
關於這個 mod
samix-plugins
一個 Claude Code 外掛市集。
安裝
claude plugin marketplace add samix73/claude-plugins
claude plugin install pr-review-guide@samix-plugins
執行 /reload-plugins 或啟動新的工作階段來載入它。
外掛
pr-review-guide
引導式 PR 審查。它會把 diff 分成相關的程式碼區塊,並加入如何審查每一塊的備註。指南會在 Claude Code 的窗格中開啟。
用法:
/guided-pr-review [number|url]
/guided-pr-review local [base]
[number|url]:審查 GitHub PR。需要ghCLI。不提供引數時,會使用目前分支對應的 PR。local [base]:將本機變更與base比較。diff 包含已追蹤檔案的暫存與未暫存變更,以及本分支上的提交。不包含未追蹤檔案。如果不提供base,外掛會依序嘗試origin/HEAD、origin/main、origin/master、main,最後是master。
按下 Esc 時窗格會保持開啟;選擇 Close 將它關閉。
指南會儲存到暫存檔案(系統暫存目錄中的 pr-review-guide/),同時保存目前位置與已審查的步驟。再次對同一個 PR 執行命令時,會載入已儲存的指南。如果 PR 有變更,選擇 Sync 建立新的指南。
更新
claude plugin marketplace update samix-plugins
然後執行 /reload-plugins。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add samix73/claude-plugins claude plugin install pr-review-guide
原文 / README
samix-plugins
A Claude Code plugin marketplace.
Install
claude plugin marketplace add samix73/claude-plugins
claude plugin install pr-review-guide@samix-plugins
Run /reload-plugins or start a new session to load it.
Plugins
pr-review-guide
Guided PR review. It groups a diff into related hunks and adds notes on how to review each one. The guide opens in a pane in Claude Code.
Usage:
/guided-pr-review [number|url]
/guided-pr-review local [base]
[number|url]: review a GitHub PR. This needs theghCLI. Without an argument, it uses the PR of the current branch.local [base]: review your local changes againstbase. The diff includes staged and unstaged changes to tracked files and the commits on your branch. Untracked files are not included. If you give nobase, the plugin triesorigin/HEAD,origin/main,origin/master,main, thenmaster.
The pane stays open when you press Esc; choose Close to close it.
The guide is saved in a temp file (pr-review-guide/ in your system temp directory), together with your position and reviewed steps. Running the command again for the same PR loads the saved guide. If the PR changed, choose Sync to build a new guide.
Update
claude plugin marketplace update samix-plugins
Then run /reload-plugins.
