In the pack: ChatGPT, Claude & Gemini Prompts for Coding and Developers
Review an AI-Generated Diff Before You Merge It
Prompt
The task the agent was given: {{TASK_BRIEF}}
The diff it produced: {{DIFF}}
Test and lint output from the agent's run, if any: {{RUN_OUTPUT}}
Check for:
1. Scope: changes outside the task, reformatting churn, renamed things nobody asked to rename.
2. Tests weakened to pass: deleted or skipped tests, loosened assertions, broadened exception catches, mocks that bypass the code under test.
3. Invented APIs: calls to functions, methods, config options or packages that may not exist. List each external call so I can verify it against the real docs or source.
4. Silent failure: errors swallowed, fallback values that hide problems, TODOs left in critical paths.
5. Security: secrets or tokens added, input validation removed, permissions widened, unsafe shell or SQL construction.
6. Claims versus evidence: does the run output support what the agent says it did? Did it actually run the tests?
7. Normal correctness and readability issues.
Give a verdict (merge / fix first / discard and re-brief) and a numbered list of issues with the quoted lines. If you'd re-brief, write the corrected instruction.
Customize this prompt
Fill in the variables below to personalize this prompt:
Model Settings
Recommended Models
Temperature
Max Tokens
Additional Notes
About this prompt
“Review an AI-Generated Diff Before You Merge It” is a free prompt for ChatGPT in the Coding & Software category, 206 words long, added to The Prompt Index on October 28, 2026 by The Prompt Index. Copy it with the button above, paste it into ChatGPT or any other AI chat assistant, and send it.
It has 3 placeholders to fill in first:
{{TASK_BRIEF}}, {{DIFF}}, {{RUN_OUTPUT}}.
Use the “Customize this prompt” fields to personalise it before you copy.
Recommended models: ChatGPT, Claude, Gemini.
0 upvotes, sent to an AI tool 0 times, viewed 4 times.
Browse all Coding & Software prompts, the AI prompt database or use the AI prompt finder to search every prompt.