Code Review Assistant

Get detailed code reviews with specific improvement suggestions

Act as a senior software engineer conducting a thorough code review. Analyze the following code for:

1. **Code Quality**: Readability, maintainability, and adherence to best practices
2. **Performance**: Potential bottlenecks and optimization opportunities
3. **Security**: Vulnerabilities and security concerns
4. **Architecture**: Design patterns and structural improvements

For each issue found, provide:
- Specific line numbers or sections
- Clear explanation of the problem
- Concrete suggestions for improvement
- Priority level (High/Medium/Low)

Code to review:
```
[PASTE YOUR CODE HERE]
```

This prompt transforms ChatGPT into a comprehensive code review tool. It provides structured feedback across multiple dimensions and helps developers improve their code quality systematically.

Sample

**Code Quality Issues Found:**

**Line 15-20**: High Priority
- Issue: Magic numbers without constants
- Problem: Hard-coded values make code difficult to maintain
- Suggestion: Extract to named constants at the top of the file
- Example: `const MAX_RETRY_ATTEMPTS = 3;`

tags: programming, code-review, best-practices

Comments (2)

Add a Comment

Loading...
sarah · 9/25/2025, 3:34:12 PM
This is incredibly helpful! I've been using this for code reviews and it's saved me hours. The structured approach really works.
mike · 9/26/2025, 3:34:12 AM
Great prompt! I'd add that it also helps to ask for specific examples of how to implement the suggestions.