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.

Want to save this prompt for later?

Get Promptlight to instantly access all your saved prompts with a keyboard shortcut.

Try Promptlight UI live

Type, search, and enhance right here. It’s interactive.

Enhancer mode

Turn rough drafts into polished prompts.

Switch viaPromptlight iconorTab
  • Drop messy notes and get a structured prompt.
  • Modes like Clarity, Detailed, and Creative.
  • Preview and copy refined output instantly.
  • Grammar and spelling get auto-fixed.
  • Summon anywhere to refine fast.

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.

Enhancer Mode

Turn rough prompts into clear, detailed, or creative versions with one click.

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.

Edit with Any App

Your prompts are plain markdown files. Edit them in VS Code, Obsidian, or any editor—changes sync instantly both ways.

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 1.2.1 • 17.8 MB • macOS 10.13 (High Sierra) or later