Ad space (top)
Home β€Ί Prompt Library β€Ί Prompt for a Code Review

Prompt for a Code Review

Have the AI review your code for bugs, security, readability, and performance β€” sorted by severity.

Coding Β· Works great in Any AI

Copy-ready prompt

Review the following [language] code for bugs, security issues, readability, and performance.
```
[paste code]
```
Requirements:
- List issues grouped by severity (critical, major, minor).
- For each, explain the risk and give a concrete fix.
- Note anything done well.
- Provide an improved version at the end.

Want a version tailored to you?

Answer a few quick questions and the Code Prompt Generator builds a custom prompt from your exact details.

πŸ’» Open the Code Prompt Generator
Ad space (inline)

Why this prompt works

Unstructured reviews bury the important issues. This prompt sorts findings by severity with concrete fixes, so you address critical risks first and get an improved version you can compare against β€” closer to a real senior review.

How to customize it

  • Paste a focused chunk; huge files dilute the review.
  • Prioritize critical and security issues before style nits.
  • Ask follow-ups on any fix you don't fully understand.

Tip: replace the parts in [square brackets] with your own details before you send. The more specific you are β€” audience, tone, goal, constraints β€” the better the AI output.

Ad space (sidebar)