审查公关
- 作者仓库星标 0
- 作者更新于 2026年8月24日 23:09
- 作者仓库 skills
- 领域
- 工程开发
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @trailofbits · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# PR Review
Review the branch's change surface, not the whole repository.
1. Establish the diff: `git diff <base>...HEAD` (and `git diff <base>` when the working
tree carries uncommitted changes that belong to the branch). The base branch is named
by the caller; fall back to `main`.
2. Review every changed hunk for correctness: wrong results on edge inputs, unhandled
error paths, and behavior that contradicts the function's name or callers.
3. Check test coverage for the changed behavior: new logic without a test exercising its
edge cases is a finding.
4. Check documentation the diff made stale: statements in README or docs that were true
on the base branch and are false after the change.
5. Report every defect found, each with a severity; include minor and informational
findings. Do not report defects in files the branch did not touch — they are outside
the pull request.
章节与文件索引
按说明文件中的顺序排列。
文件/命令 -> git diff <base>...HEAD · git diff <base> · main
内容校验值 -> 53d39b683ce2
当前原文的自动摘译,尚未人工审校。
检查分支的变更表面,而不是整个存储库。
建立差异:
git diff <base>...HEAD(和git diff <base>当工作树携带属于分支的未提交更改时)。基础分支由调用者命名;回落到main。 2. 检查每个更改块的正确性:边缘输入的错误结果、未处理的错误路径以及与函数名称或调用者相矛盾的行为。 3. 检查更改行为的测试覆盖率:没有测试执行其边缘情况的新逻辑是一个发现。 4. 检查差异导致过时的文档:自述文件或文档中的语句在基本分支上为 true,但在更改后为 false。 5. 报告发现的每个缺陷,每个缺陷的严重程度;包括次要的和信息性的发现。不要报告分支未触及的文件中的缺陷 - 它们位于拉取请求之外。