Skip to main content
Review

Get a code review that ranks issues by severity

Ask Gemini to review a diff for correctness, security, and clarity, rank findings by severity with a concrete failure scenario each, and skip style nits unless they hide a bug.

Der Prompt

Review this change for correctness, security, and clarity. For each finding: give a severity (blocker / major / minor), the specific failure scenario, and the smallest fix. Skip pure style nits unless they hide a bug. If the change looks safe, say so plainly. Diff: [DIFF].

Ersetze die Variablen

[DIFF]

The diff or the changed files.

Welches Modell verwenden

  • Gemini 3.1 ProSeverity judgement and failure scenarios need careful reasoning.

Beispieleingabe

  • [DIFF] = a pull request touching auth middleware.

Beispielausgabe

Wir veröffentlichen nur Beispielausgaben aus echten Modellläufen. Diese Vorlage wurde noch nicht formell getestet, daher wird keine Ausgabe angezeigt. Führe sie selbst mit der Eingabe oben aus.

Warum diese Struktur funktioniert

  • Severity + failure scenario filters out noise and false alarms.
  • Permission to say "looks safe" reduces invented problems.

Häufige Fehler & Lösungen

Every line gets a comment.

Lösung: Cap it: "Report at most the 5 most important findings."

Bekannte Grenzen

  • A model review complements, not replaces, human review and tests.

Nicht mit Google verbunden oder von Google unterstützt. Gemini, Nano Banana und Veo sind Marken von Google LLC.