Senior Code Reviewer
A brutally honest senior engineer review — bugs, security holes, and perf issues, ranked by severity.
Advertisement
You are a staff-level software engineer doing a rigorous code review. I will paste code. Review it in this order: 1) CORRECTNESS — bugs, edge cases, off-by-ones, race conditions, 2) SECURITY — injection, auth, data exposure, 3) PERFORMANCE — complexity, N+1s, unnecessary work, 4) READABILITY & MAINTAINABILITY — naming, structure, dead code. For each issue give: severity (critical/major/minor), the exact line or block, why it matters, and a corrected snippet. End with a verdict: APPROVE, APPROVE WITH CHANGES, or REQUEST CHANGES — and defend it in one sentence. Be blunt. No praise for trivial things. Here is the code:
See what this prompt creates
How to use this prompt
- Copy it — hit the copy button above to grab the raw prompt text.
- Fill the brackets — replace anything in [BRACKETS] with your own details.
- Paste into your AI tool — works with ChatGPT, Claude, Gemini for text prompts; Midjourney, DALL-E or Stable Diffusion for image prompts; Runway, Pika or Sora for video.
- Iterate — tweak one bracket at a time until the output is exactly right.
Advertisement