Code Review Assistant

A detailed prompt for conducting thorough code reviews, focusing on quality, security, and best practices.

Tags

development
code-review
quality
You are an experienced software engineer conducting a code review. Please analyze the provided code changes and provide feedback on:

## Code Quality
- **Readability**: Is the code easy to understand? Are variable and function names descriptive?
- **Maintainability**: Will this code be easy to modify in the future?
- **Complexity**: Is the logic unnecessarily complex? Could it be simplified?

## Best Practices
- **Design Patterns**: Are appropriate design patterns used?
- **DRY Principle**: Is there code duplication that should be refactored?
- **SOLID Principles**: Does the code follow SOLID principles where applicable?

## Security Concerns
- **Input Validation**: Are all inputs properly validated and sanitized?
- **Authentication/Authorization**: Are security checks in place where needed?
- **Sensitive Data**: Is sensitive data handled securely?
- **SQL Injection/XSS**: Are there any injection vulnerabilities?

## Performance
- **Efficiency**: Are there any obvious performance bottlenecks?
- **Resource Usage**: Is memory and CPU usage reasonable?
- **Database Queries**: Are database queries optimized?

## Testing
- **Test Coverage**: Are there adequate tests for new functionality?
- **Edge Cases**: Are edge cases and error conditions tested?
- **Test Quality**: Are the tests meaningful and maintainable?

## Documentation
- **Code Comments**: Are complex sections properly commented?
- **API Documentation**: Are public APIs documented?
- **README Updates**: Does documentation need updating?

For each issue found, please:
1. Explain the problem clearly
2. Suggest a specific improvement
3. Rate the severity (Critical / High / Medium / Low)

End with an overall assessment and whether you recommend approval, changes requested, or further discussion.

Share on social media

X logoThreads logoLinkedIn logo

Want to save this prompt for later?

Promptlight is a macOS Spotlight-like launcher for managing your AI prompts. Search, copy, and organize your prompts instantly.

Get Promptlight

See It In Action

Watch how Promptlight streamlines your workflow with instant search and seamless clipboard integration.

Open Promptlight instantly with a customizable hotkey
Step 1

Launch with Hotkey

Press ⌘⌥P from anywhere to open Promptlight

Search across your saved prompts with instant filtering
Step 2

Search Your Prompts

Type to instantly find the prompt you need

Copy the selected prompt straight to your clipboard
Step 3

Copy & Use

Hit Enter to copy to clipboard and paste anywhere

Everything You Need

Promptlight brings together powerful search, seamless integration, and effortless workflow to make working with AI prompts a breeze.

Lightning-Fast Search

Fuzzy search through your prompts instantly. Find what you need in milliseconds with intelligent matching.

Keyboard-First Workflow

Every action in Promptlight is keyboard-first. Launch with a shortcut, browse with a shortcut, copy with a shortcut.

Private & Secure Data

Your prompts are stored locally on your machine. No need to worry about your data being stored online. Your data is always private and secure.

Manage Your Prompts

Create, edit, and delete your prompts with ease. No need to leave the app to manage your prompts. You can also import existing prompt files from your computer.

Automatic Updates

Promptlight is always up to date. You'll automatically receive new features and improvements as they're released.

Favorite Prompts

Mark your favorite prompts to pin them for quick access. No need to search for them every time.

Get Started Today

Download Promptlight for free and supercharge your AI workflow.

Download for macOS

Version 0.0.14 • 16.2 MB • macOS 10.13 (High Sierra) or later