27/08/2026
Stop asking AI "is my code good?"
That question gets you a compliment. Not a code review.
Here's the prompt I actually use β copy it:
βββββββββββββββ
"Act as a senior engineer doing a strict pull request review on the code below.
Review it in this exact order:
1. Bugs and logic errors β what breaks in production?
2. Security β injection, auth gaps, exposed keys, unvalidated input
3. Performance β unnecessary re-renders, N+1 queries, blocking calls
4. Readability β naming, structure, dead code
5. Edge cases I clearly didn't handle
For each issue: severity (Critical / High / Low), why it matters, and the corrected code.
Do not compliment the code. Do not rewrite everything. Be direct."
βββββββββββββββ
Why this works:
β You gave it a ROLE (senior engineer, not helpful assistant)
β You gave it an ORDER (so it doesn't stop at formatting)
β You gave it an OUTPUT FORMAT (severity + fix)
β You BLOCKED the flattery ("do not compliment")
That last line changes the output more than anything else.
Vague prompt β vague answer. Structured prompt β an actual senior reviewer.
I use variations of this daily in Cursor and Claude. Saves me hours a week.
More of what I build β developersajeeb.com
Which AI tool are you coding with β Cursor, Copilot, or Claude? π