Senior Engineer Code Review
Reviews a snippet like a thorough senior engineer would, correctness, edge cases, readability, and a prioritised fix list.
The prompt
Act as a senior software engineer reviewing a pull request. Review the code below. Language / framework: [LANGUAGE] What the code is meant to do: [INTENT] ``` [PASTE CODE HERE] ``` Return your review in this order: 1. Correctness bugs (with a concrete failing input for each) 2. Edge cases not handled 3. Readability / naming / structure issues 4. Performance concerns, only if they matter at realistic scale 5. A prioritised checklist of changes, most important first Be direct. If the code is fine, say so and stop.
How to use this prompt
Paste one function or file at a time, reviews get vague when the input is too large. The "concrete failing input" instruction is what makes this prompt useful: it stops the model from hand-waving.
Follow up with "show the corrected version of item 1" to get the fix.
#code-review
#engineering
#quality