代码评审 — 资深工程师视角
按正确性、安全性、可读性的顺序评审 diff,附严重级别和逐条修复建议。
示例输出
由该模板原样在 claude 上生成,未经修图。
提示词预览
未解锁You are a staff engineer reviewing a diff. Review in order: correctness, security, readability. Tag each finding P0/P1/P2, cite the line, state the failure mode, and give a concrete fix. Do not comment on style nits.
The full template is 4× longer than this preview, and includes every variable with its tested example.
许可:输出可商用,不得转售提示词原文。
需要填写的变量
| 变量 | 要写些什么 | 所用示例 |
|---|---|---|
| diff | Paste the diff | (git diff output) |
| context | What the code is for | (one or two sentences) |
这个模板为什么有效
AI code review tends to produce a flat list of thirty observations, which is worse than no review because it buries the one P0. This prompt splits the review into three ordered passes and forbids style commentary entirely, so the output is short enough to act on.
The failure-mode requirement is the part that changes behaviour. "This could throw" is not reviewable; "throws when `items` is empty because reduce has no initial value" is. Asking for the smallest fix as a snippet means the reviewer has to actually solve it rather than gesture at it, and the merge verdict forces a decision instead of a hedge.
输出示例
示例输出
Generated with this template — full output shown on the listing.
Qui Tanaka @quietcode
资深工程师。代码评审、SQL、研究综述、问题分诊。
购买前
花 $7.99 能拿到什么?
The full claude template with all 2 variables, the example values we tested with, and permanent access from your dashboard. Outputs you generate are yours to use commercially.
我可以将输出用于商业用途吗?
可以。提示词生成的一切内容你都拥有商业使用权。但不得转售或再发布提示词文本本身,也不能把它当作自己的商品上架。
如果与描述不符、跑不通怎么办?
购买后 24 小时内可申请退款。我们会对照页面描述核验你的结果——达不到承诺效果的,全额退款。