鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

pr-code-review

专注于 GitHub 拉取请求的代码审查,直接分析变更差异识别真实缺陷与规范偏差,仅在需要理解代码库上下文时调用探索代理,确保反馈简洁、精准且符合项目约定。

测试与安全效率工具开发运维
访问 GitHub
文档Skills.MD
name
pr-code-review
description
Review GitHub PRs for bugs and code quality. Use when user says "review PR", "check PR

PR Code Review

Straightforward code review for GitHub pull requests. Reviews the diff directly, only spawns agents when you need deeper codebase context.

Triggers

  • "review PR #123"
  • "check this PR"
  • "code review"

How it works

You review the PR yourself using gh CLI. Only use explore agent if you need to understand unfamiliar parts of the codebase.

Review process

1. Check if PR is reviewable

▼
bash
复制代码
gh pr view {number} --json state,isDraft,title,body

Skip if closed, draft, or already has your review:

▼
bash
复制代码
gh api repos/{owner}/{repo}/pulls/{number}/comments | grep -c "Claude Code"

2. Get the diff and context

▼
bash
复制代码
gh pr view {number} gh pr diff {number}

Read CLAUDE.md if it exists - it contains project coding standards.

3. Review the changes

Look at the diff yourself. Focus on:

Real bugs - logic errors, missing error handling, runtime issues, incorrect variable usage

CLAUDE.md violations - if the project has one, check for type hints, docstrings, line length (88), PEP 8 naming, uv-only (no pip)

Skip these - pre-existing issues (lines not in diff), linter-catchable stuff, style nitpicks not in CLAUDE.md

4. Use explore agent only when needed

If you're unfamiliar with how the codebase does something, spawn an explore agent:

▼
text
复制代码
Task(subagent_type="explore", prompt="Find how error handling is done in lmms_eval/models/ - what patterns exist?")

Don't spawn agents for every PR. Most diffs are self-contained.

5. Post your review

Get the commit SHA for links:

▼
bash
复制代码
gh pr view {number} --json headRefOid --jq '.headRefOid'

Post with:

▼
bash
复制代码
gh pr comment {number} --body "..."

Comment format

Write like a helpful colleague, not a robot. Keep it brief and actionable.

When you find issues:

▼
markdown
复制代码
### Code Review Took a look at this PR. Found a couple things worth addressing: **Missing return statement** in `ovo_doc_to_target` - the function computes the value but never returns it. https://github.com/{owner}/{repo}/blob/{SHA}/{file}#L102-L103 **No docstrings on public functions** - CLAUDE.md requires these for public APIs. https://github.com/{owner}/{repo}/blob/{SHA}/{file}#L17-L45 Otherwise looks good. Let me know if you have questions.

When it looks good:

▼
markdown
复制代码
### Code Review Reviewed the changes - looks good to me. Clean implementation, follows existing patterns.

When skipping:

Just tell the user why: "PR #123 is a draft, skipping review."

What NOT to flag

  • Issues on lines you didn't modify (pre-existing)
  • Formatting/linting issues (CI catches these)
  • Personal style preferences not in CLAUDE.md
  • Lines with # noqa or similar ignore comments

Link format

Use full SHA, not short:

▼
text
复制代码
https://github.com/{owner}/{repo}/blob/{FULL_SHA}/{file_path}#L{start}-L{end}

Multiple PRs

▼
text
复制代码
> Review all open PRs

Get the list and review each:

▼
bash
复制代码
gh pr list --state open --json number
测试与安全
效率工具
开发运维

快捷安装

复制到终端去安装 Skill

npxskillsaddEvolvingLMMs-Lab/lmms-eval--skill"pr-code-review"
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
朱雀AI检测助手朱雀AI检测助手
零感AI零感AI
Skills 推荐
debug
debug 是一个系统化定位软件缺陷根因的技能,适用于用户报告 'fix'、'broken'、'error' 等问题或测试意外失败时。它通过可验证的假设、最小复现、因果链分析和回归测试,确保在修复前准确定位根本原因。
retrieving-developer-knowledge
retrieving-developer-knowledge 用于搜索、获取和整合 Google 官方开发者文档,覆盖 Google Cloud、AI/Gemini、Android、Chrome、Web、Flutter、Go、Firebase 等平台,适用于查询 gcloud CLI 命令、API 语法、IAM 权限或架构对比等场景。
diff-intake
diff-intake 读取 PR 或分支差异,生成结构化 YAML 变更摘要,用于下游 analytics instrumentation 技能。适用于用户提交 PR 链接、分支对比或原始 diff 后需理解变更内容、评估分析覆盖或启动埋点流程的场景。
load-balancer-configurator
根据用户需求自动生成各类负载均衡器的生产级配置,覆盖 ALB、NLB、Nginx 和 HAProxy 等主流类型,适配不同协议、端口、健康检查及后端服务拓扑,支持直接集成到基础设施即代码流程中。
webapp-testing
提供本地 Web 应用的端到端测试能力,支持页面导航、元素交互、表单填写、动态等待、断言验证、截图捕获、浏览器日志收集及网络请求拦截,适用于前端功能验证与 UI 行为调试。