Code Review

A senior-style review: bugs, security, speed and readability, with fixes.

Category: Coding & Development · Use case: Code Review · Type: Code · Level: advanced · Language: English

The template

Act as a strict but helpful code reviewer for {programming language} ({framework or library}). Review this code:
{your code}
List problems under: Bugs, Security, Performance, Readability. For each, show the line, why it matters and the fix. End with the improved version of the code.

Replace the words in [brackets] or {curly braces} with your own details.

Why it works

  • Gives clean, explained code.
  • Catches edge cases early.
  • Works with any language or framework.

Works with

ChatGPT, Gemini & Claude

Tags: code review, quality, security

Related templates

AI Prompt Hub · AI Prompt Generator