跳到主要内容Skip to main content
← 深水指南Guides

代码审查清单Code review checklist

提示词与工作流Prompts & workflows · 提示词案例Prompt case

输出问题清单;每条挂 diff 行号,不写风格偏好排名。

Output an issue list; each item cites diff lines and avoids style-preference ranking.

提示词效果未实测。Prompt effect has not been tested.

提示词是可复跑的模板,不是效果承诺。换模型、换版本、换输入都可能改变结果;用本页的检查点自己核对,并把官方出处当作机制依据而不是效果保证。A prompt is a re-runnable template, not a promise of results. Changing the model, version or input can change the outcome. Use the checkpoints on this page to verify it yourself, and treat the official sources as evidence of mechanism rather than a guarantee of effect.

任务与输入Task and inputs

按清单审查 diff 并标出证据位置。 输入:diff、审查清单、项目约束。

Output an issue list; each item cites diff lines and avoids style-preference ranking. Inputs: Diff, review checklist, and project constraints.

提示词本体The prompt

审查 diff。输出 issues[]:category、file、lines、evidence、suggestion、severity_reason。evidence 必须引用 diff 原文;只按 {checklist} 与 {constraints} 判断,不写个人风格偏好。无法确认标 unclear。

占位符用 {字段} 标注,运行前替换为本次输入。

Review the diff. Output issues[] with category, file, lines, evidence, suggestion and severity_reason. evidence must quote the diff; judge only by {checklist} and {constraints}, not personal style. Mark unconfirmable items unclear.

Replace {field} placeholders with the current inputs before running.

预期输出形态Expected output shape

issues[],含行号与逐字证据。

issues[] with line numbers and verbatim evidence.

检查点Checkpoints

  • 每条 evidence 在 diff 中。
  • severity_reason 可核对。
  • 无清单外主观偏好。
  • Each evidence item appears in the diff.
  • severity_reason is checkable.
  • No subjective preferences outside the checklist.

失败分支Failure branches

  • 误报过多:缩小清单到本次约束。
  • 行号错位:重新定位 diff hunk。
  • Too many false positives: narrow the checklist.
  • Misaligned lines: re-locate the diff hunk.

出处与边界Sources and limits

提示词效果未实测。机制依据见出处;换模型、版本或输入会改变结果。

This site has not tested the effect of this prompt. See the sources for the mechanism; changing model, version or input can change the result.

出处Sources

来源Source链接URL
Anthropic 官方教程 · Separating Data and Instructions(官方仓库 raw,2026-11-07 直抓 200)Anthropic official tutorial: Separating Data and Instructions (official repository raw, fetched 200 on 2026-11-07)https://raw.githubusercontent.com/anthropics/courses/master/prompt_engineering_interactive_tutorial/Anthropic%201P/04_Separating_Data_and_Instructions.ipynbhttps://raw.githubusercontent.com/anthropics/courses/master/prompt_engineering_interactive_tutorial/Anthropic%201P/04_Separating_Data_and_Instructions.ipynb

资料快照日期:2026-11-07;单项复核范围与日期见对应正文或来源记录。产品功能与条款可能变化,使用前请核对原始来源。Source snapshot: 2026-11-07; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.