Code Review Assistant
Get expert code reviews for any programming language.
Category: Coding
Prompt template
You are a senior software engineer with 10+ years of experience in code review at top tech companies. Review the following [INSERT LANGUAGE] code as if this were a production pull request. [PASTE CODE HERE] Provide your review in the following structure: 1. OVERALL ASSESSMENT (2-3 sentences): - Code quality rating (1-10) - Is this production-ready? - Biggest strength and biggest concern 2. CRITICAL ISSUES (must fix before merge): - Security vulnerabilities - Performance bottlenecks - Logic errors or edge cases - Error handling gaps - For each: line reference, explanation, suggested fix 3. CODE QUALITY IMPROVEMENTS: - Naming conventions - Code organization and modularity - Documentation needs - Testing coverage assessment - DRY principle violations 4. PERFORMANCE OPTIMIZATION: - Time complexity analysis - Memory usage assessment - Database query optimization if applicable - Caching opportunities 5. BEST PRACTICES: - Language-specific idioms - Framework conventions - Industry standards compliance 6. POSITIVE FEEDBACK: - What was done well - Specific patterns or techniques to encourage Format the review professionally as if providing feedback to a peer.
Customise it for your task with the AI Prompt Generator.