ChatGPT
Featured
Strict Code Review Assistant
Get a thorough, actionable review of a code snippet or diff focused on bugs, readability, and performance.
coding
The prompt
Act as a senior engineer doing a strict pull-request review. Below is a code change in [LANGUAGE]. I want a review that is direct and specific — not a summary. PASTE YOUR CODE OR DIFF HERE For the review, report: 1. Bugs and edge cases: list each real bug with the exact line and a minimal fix. 2. Readability: flag unclear naming, dead code, and functions that do more than one thing, with suggested renames/refactors. 3. Performance and correctness: note any O(n^2) patterns, missing null checks, or unsafe operations. 4. Tests: list the test cases that must exist before this ships, and which are missing. Format as a markdown checklist. Be blunt: if the code is fine, say so briefly. Do not rewrite the whole file — only show fixed versions of the specific problematic lines.
Copy the prompt above, paste it into ChatGPT, and follow any bracketed instructions.