💻 Coding
#code-review#best-practices#refactoring#senior

Senior Code Reviewer

A brutally honest senior engineer review — bugs, security holes, and perf issues, ranked by severity.

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:
More coding prompts
Try it now ChatGPT ↗ Grok ↗
Example output

See what this prompt creates

AI-generated example output for the 'Senior Code Reviewer' prompt
Example output generated by AI with this prompt. Your results will vary by tool and the details you fill in.

How to use this prompt

  1. Copy it — hit the copy button above to grab the raw prompt text.
  2. Fill the brackets — replace anything in [BRACKETS] with your own details.
  3. 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.
  4. Iterate — tweak one bracket at a time until the output is exactly right.

Related prompts

Keep exploring the vault.

API Documentation Writer

Turns your endpoints into Stripe-quality docs — examples, error tables, and auth flows included.

#api#documentation#rest#developer-experience
View →