Back to Prompts
💻Coding📝 Text

Hostile Diff Review Prompt

Force a senior-level adversarial review of a code diff to expose edge cases, risk, and sloppy implementation.

July 24, 2026

💡 Use Case

Useful for engineers who want a tougher second pass before opening a PR or merging a feature.

📋 The Prompt

Act as a senior engineer doing a code review and you strongly distrust the current implementation.

Context:
- task or ticket: [DESCRIBE]
- diff or code: [PASTE]
- language/framework: [DETAILS]
- constraints: [PERF / SECURITY / DEADLINE / COMPATIBILITY]

Fresh pattern to factor in: [AI action figure and starter-pack visual prompts on LinkedIn and Instagram].

Do not be polite for the sake of politeness. Be accurate, specific, and evidence-driven.

Review the diff and return:
1. Bugs and broken assumptions
2. Missing edge cases
3. Performance or reliability risks
4. Security concerns
5. Test gaps
6. What you would rewrite first and why
7. A corrected implementation sketch or pseudocode if appropriate

Use severity labels and point to exact lines or code regions.

Tags

codingcode-reviewdiffdebuggingprsocial-action-figure

How to Use This Prompt

  1. 1Click the Copy Prompt button above to copy the text to your clipboard.
  2. 2Open your preferred AI tool — ChatGPT, Claude, Gemini, or any text AI.
  3. 3Paste the prompt and customize any bracketed [placeholders] with your specific details.
  4. 4Submit and enjoy the result! Iterate by refining your inputs.