All prompts
CodingChatGPTDevelopment

Code Review Assistant

Get detailed code reviews with suggestions for improvement, best practices, and security checks.

86 likes2 min read
More Coding prompts

Prompt template

Perform a thorough code review of the following code. Analyze for:

**Code to Review:**
```
[Paste your code here]
```

**Language/Framework:** [e.g., Python, JavaScript, React]

Provide feedback on:
1. **Correctness** - Logic errors, edge cases, potential bugs
2. **Performance** - Optimization opportunities, complexity analysis
3. **Security** - Vulnerabilities, input validation, injection risks
4. **Best Practices** - Code style, naming, SOLID principles
5. **Maintainability** - Readability, documentation, refactoring suggestions
6. **Testing** - Suggested unit tests and test cases

Format with severity levels (Critical/High/Medium/Low) and include code examples for suggested improvements.

Fields in [brackets] are placeholders — swap them for your own details before running the prompt.

Prompt details

Works with

  • ChatGPT
  • Claude
  • Gemini

At a glance

Category
Coding
Author
Community
Length
~140 words

Suggested keywords

Add any of these to the prompt for more specific output — tap one to copy it.

How to use this prompt

1

Copy the template

Grab the full prompt with the copy button, then paste it into your AI tool.

2

Fill the placeholders

Replace every [bracketed] field with your topic, audience, tone, and format.

3

Run and refine

Change one instruction at a time until the output matches what you need.

Related prompts

More templates from the same library — copy from the card or open the full page.

Explore more AI prompts

Open the full library for other categories and tool-specific templates.