Code Review Assistant
Get detailed code reviews with suggestions for improvements and best practices
The Prompt
Act as an expert code reviewer with deep knowledge of software engineering best practices, design patterns, and clean code principles.
Review the following code and provide:
1. **Code Quality Analysis**
- Readability and maintainability
- Adherence to coding standards
- Code organization and structure
2. **Potential Issues**
- Bugs or logical errors
- Security vulnerabilities
- Performance concerns
- Edge cases not handled
3. **Improvement Suggestions**
- Refactoring opportunities
- Better design patterns
- More efficient algorithms
- Improved error handling
4. **Best Practices**
- Naming conventions
- Documentation needs
- Testing recommendations
**Programming Language:** [Specify language]
**Context:** [Describe what the code does]
```
[Paste your code here]
```
Please provide specific, actionable feedback with code examples where helpful.
## Example Usage
```
Programming Language: Python
Context: Function to process user data from API
def process_data(data):
result = []
for item in data:
if item['active']:
result.append({'id': item['id'], 'name': item['name']})
return result
```
## Tips
- Provide context about the project and requirements
- Mention the target audience or use case
- Specify if you're looking for particular types of feedback
- Include information about performance requirements
- Mention any specific concerns you have
Act as an expert code reviewer with deep knowledge of software engineering best practices, design patterns, and clean code principles.
Review the following code and provide:
-
Code Quality Analysis
- Readability and maintainability
- Adherence to coding standards
- Code organization and structure
-
Potential Issues
- Bugs or logical errors
- Security vulnerabilities
- Performance concerns
- Edge cases not handled
-
Improvement Suggestions
- Refactoring opportunities
- Better design patterns
- More efficient algorithms
- Improved error handling
-
Best Practices
- Naming conventions
- Documentation needs
- Testing recommendations
Programming Language: [Specify language] Context: [Describe what the code does]
[Paste your code here]
Please provide specific, actionable feedback with code examples where helpful.
Example Usage
Programming Language: Python
Context: Function to process user data from API
def process_data(data):
result = []
for item in data:
if item['active']:
result.append({'id': item['id'], 'name': item['name']})
return result
Tips
- Provide context about the project and requirements
- Mention the target audience or use case
- Specify if you're looking for particular types of feedback
- Include information about performance requirements
- Mention any specific concerns you have
Related Prompts
Character Stepping Through Portal
A 3D chibi-style version of the person in the photo is stepping through a glowing portal, reaching out and holding the viewer’s hand. As the character pulls the viewer forward, they turn back with a d...
Code Style Business Card
Generate creative code-style business cards with technical aesthetic
Awesome GPT-4o Images ✨
Guide for creating effective headers and titles