Featured

Code Review Prompts

Structured prompts for thorough code reviews

Category:prompts
Type:prompt
Difficulty:intermediate
productivity
testing
security
intermediate

Description

Collection of prompts for conducting comprehensive code reviews. Covers security analysis, performance review, best practices, error handling, and maintainability assessment. Designed for systematic code evaluation.

Content

Resource Content
# Code Review Prompt

Review the following code for:

1. **Security Issues**
   - Input validation
   - SQL injection risks
   - XSS vulnerabilities
   - Authentication/authorization

2. **Performance**
   - Unnecessary computations
   - N+1 queries
   - Memory leaks
   - Caching opportunities

3. **Best Practices**
   - DRY violations
   - SOLID principles
   - Error handling
   - Naming conventions

4. **Maintainability**
   - Code complexity
   - Documentation needs
   - Test coverage
   - Technical debt

Provide specific line references and suggested improvements.