← 返回
未分类

pr-review-scout

Review pull requests, diffs, patches, and code changes with a bug-finding mindset. Use when Codex needs to perform code review, inspect a git diff, evaluate a PR, or identify likely defects, regressions, risky assumptions, security issues, performance pitfalls, and missing tests before merge.
Review pull requests, diffs, patches, and code changes with a bug-finding mindset. Use when Codex needs to perform code review, inspect a git diff, evaluate a PR, or identify likely defects, regressions, risky assumptions, security issues, performance pitfalls, and missing tests before merge.
user_e113c7ce
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 61
下载
💾 0
安装
1
版本
#latest

概述

PR Review Scout

Overview

Review code changes with a strong bias toward finding issues that would matter in production. Prioritize correctness, regressions, security, data integrity, concurrency, and missing test coverage over style nits.

Review Workflow

  1. Build context before judging the change.
  2. Read the diff carefully and identify behavior changes.
  3. Trace each changed path through call sites, state transitions, and failure modes.
  4. Report only meaningful findings with concrete evidence.
  5. State residual risks and testing gaps if no clear bug is proven.

Build Context First

Before writing findings:

  • Inspect the changed files and nearby code.
  • Understand the intended behavior from names, comments, tests, and surrounding modules.
  • Look for related validations, invariants, cleanup paths, retries, and error handling.
  • Check whether the change modifies API contracts, persistence, caching, auth, permissions, async flow, or user-visible behavior.

If context is still incomplete, say what assumption you are making instead of filling gaps with speculation.

What to Look For

Prioritize findings in this order:

1. Correctness and Regressions

  • Broken logic, wrong conditions, off-by-one errors, stale assumptions
  • Missing null checks, bad defaults, incorrect fallback order
  • Contract mismatches between caller and callee
  • Partial refactors where one path changed but sibling paths did not

2. Data Safety and State Integrity

  • Writes that can corrupt, duplicate, or silently drop data
  • Missing transactions, rollback paths, idempotency checks, or cache invalidation
  • Order-of-operations bugs during save, delete, retry, or migration flows

3. Security and Permissions

  • Auth bypasses, missing authorization checks, privilege escalation
  • Unsafe interpolation, injection risks, path traversal, secret leakage
  • Logging or returning sensitive fields by accident

4. Reliability and Operations

  • Races, deadlocks, retry storms, timeout gaps, resource leaks
  • Async work that is no longer awaited or cancellation that is ignored
  • Error handling that swallows failures or reports success too early

5. Performance with Real User Impact

  • New N+1 queries, repeated heavy work in loops, expensive recomputation
  • Unbounded memory or CPU growth on hot paths
  • Large payloads or blocking I/O introduced into latency-sensitive code

6. Testing Gaps

  • Missing tests for new branches, edge cases, failure modes, and regressions
  • Tests updated only for happy paths while risky paths changed

For a deeper checklist, read references/review-checklist.md.

Finding Bar

Only report a finding when all of these are true:

  • The issue is plausibly real, not a vague possibility.
  • The impact matters to users, systems, or maintainers.
  • The explanation ties directly to changed code.
  • You can explain the failure mode in 2-5 sentences.

Avoid low-signal comments about naming, formatting, or hypothetical preferences unless the user explicitly asks for broader feedback.

Output Format

Present findings first, ordered by severity. Use this structure:

- [high] file:line - Short title
  Why it matters: ...
  Evidence: ...
  Suggested direction: ...

After findings, add:

  • Open questions: only if an unanswered question changes the conclusion
  • Residual risks: for important areas you could not fully verify
  • Change summary: one short paragraph only after the findings

If no findings are discovered, say that explicitly and mention the main residual risk or testing gap.

Review Behavior

  • Be skeptical but fair.
  • Prefer precise claims over exhaustive coverage.
  • Do not invent runtime behavior without code evidence.
  • Do not require perfect proof when the failure mode is strong and concrete.
  • Distinguish confirmed issues from assumptions.
  • Keep the review concise and high signal.

Example Requests

  • Review this PR for bugs and regressions.
  • Check this diff like a senior reviewer and focus on correctness.
  • Look at these changed files and tell me what is risky before merge.
  • Review this patch and tell me what tests are still missing.

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-05-17 22:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 77 📥 182,551
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 197 📥 67,999
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 681 📥 329,720