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.
