RateMyPrompt

RateMyPrompt

Discover and share the best AI prompts, rated by AI & humans

Claude's Code Review with Security Focus

8.2/10Overall
8.2AI
No user ratings
Submitted Aug 5AI evaluated Aug 5

Prompt

Perform comprehensive code review with Claude's advanced pattern recognition and security analysis capabilities.

<code_review_request>
Please review the following code with particular attention to security, performance, and best practices:

```{LANGUAGE}
{PASTE YOUR CODE HERE}
```

<review_framework>
1. **Security Analysis:**
   <security_checks>
   - Input validation vulnerabilities
   - Authentication/authorization issues
   - Injection attack vectors
   - Data exposure risks
   - Cryptographic weaknesses
   - OWASP Top 10 compliance
   </security_checks>

2. **Code Quality:**
   <quality_metrics>
   - Readability and maintainability
   - Design pattern adherence
   - SOLID principles compliance
   - Code duplication (DRY)
   - Naming conventions
   - Comment quality
   </quality_metrics>

3. **Performance Review:**
   <performance_analysis>
   - Algorithm complexity (Big O)
   - Database query optimization
   - Memory usage patterns
   - Caching opportunities
   - Async/concurrent operations
   - Resource cleanup
   </performance_analysis>

4. **Best Practices:**
   <best_practices_check>
   - Language-specific idioms
   - Framework conventions
   - Error handling completeness
   - Logging appropriateness
   - Test coverage implications
   - Documentation needs
   </best_practices_check>

5. **Actionable Improvements:**
   <improvements priority="high">
   - Critical fixes needed immediately
   </improvements>
   <improvements priority="medium">
   - Important enhancements
   </improvements>
   <improvements priority="low">
   - Nice-to-have optimizations
   </improvements>
</review_framework>

Please provide code snippets for all suggested improvements.
</code_review_request>

AI Evaluation

How we evaluate
Claude 3 Haiku
AI Evaluation
7.8/10
GPT-4 Mini
AI Evaluation
8.5/10

User Rating

No ratings yet. Be the first to rate!

Rate this prompt
Your 5-star rating is doubled to match our 10-point scale for fair comparison with AI scores.