Skip to content
CodingIntermediate

Review My Code Like a Senior Developer

Get a structured review of your code covering bugs, readability, and edge cases.

Prompt

Review this code as a senior developer would. Go in this order: 1) actual bugs or logic errors, 2) edge cases that would break it, 3) security concerns if any, 4) readability and naming, 5) anything that could be simpler. For each issue, show the specific line and suggest a fix. If the code is fine in one of these categories, say so briefly and move on — don't invent problems.

Language: {{language}}
What it should do: {{intent}}

Code:
{{code}}

Fill in these placeholders

  • {{language}}
  • {{intent}}
  • {{code}}

How to use it

Always state what the code is supposed to do — most review value comes from the gap between intent and implementation. Test suggested fixes before trusting them.

Example use case

Sanity-checking a function that handles user input before merging it.

Want to write prompts like this yourself? Prompt Engineering for Real Work covers the structure behind every template here — free, no sign-up.