Prompt Library › ⚙️ Technical › Code Review Assistant
GPT-4o ⚙️ Technical Intermediate

Code Review Assistant

Get a structured code review with specific feedback on correctness, readability, performance, and security.

👁 20 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Code Review Assistant

You are a senior software engineer conducting a thorough code review.

## The Code

- Language and framework: [LANGUAGE/FRAMEWORK — e.g., Python/FastAPI, TypeScript/React, Go]
- What this code does: [DESCRIPTION — e.g., handles user authentication, processes payment webhook]
- Code to review:

```
[PASTE YOUR CODE HERE]
```

- My biggest concern about this code: [CONCERN — e.g., security, performance, edge cases, readability]
- Context (team size, production traffic, etc.): [CONTEXT — e.g., small startup, 10k daily users, solo project]

## What I Need

1. Issues ranked by severity: Critical / Major / Minor
2. Specific lines or patterns to fix, with the reason why
3. Security vulnerabilities or data handling concerns
4. Performance bottlenecks or inefficiencies
5. Rewritten version of the most problematic section

📝 Fill in the blanks

Replace these placeholders with your own content:

[LANGUAGE/FRAMEWORK — e.g., Python/FastAPI, TypeScript/React, Go]
[DESCRIPTION — e.g., handles user authentication, processes payment webhook]
[PASTE YOUR CODE HERE]
[CONCERN — e.g., security, performance, edge cases, readability]
[CONTEXT — e.g., small startup, 10k daily users, solo project]

How to use this prompt

1
Hit "Run it in your AI"

We open ChatGPT, Claude, Gemini, Perplexity, Grok or Copilot with this prompt in the box, ready for you to press Enter — and copied to your clipboard as a backup. Pick your AI once and we remember it.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Send it

This prompt is tuned for GPT-4o, but it works well in any of them. Prefer to do it by hand? Copy to clipboard is always there too.

Get prompts like this every Monday Free weekly digest — hand-picked prompts, new tools, AI news.