Code review checklist
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
Output an issue list; each item cites diff lines and avoids style-preference ranking. Inputs: Diff, review checklist, and project constraints.
The prompt
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[] with line numbers and verbatim evidence.
Checkpoints
- Each evidence item appears in the diff.
- severity_reason is checkable.
- No subjective preferences outside the checklist.
Failure branches
- 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 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.ipynb |
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.