RateMyPrompt

RateMyPrompt

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

[RMP Optimized] Claude's Code Review with Security Focus

Submitted 4 days agoAI evaluation pending

Prompt

Conduct a thorough code review utilizing Claude's advanced pattern recognition and security analysis capabilities. Please analyze the following code snippet with a focus on security vulnerabilities, code quality, performance optimization, and adherence to best practices:

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

### Review Framework:
1. **Security Analysis:**
   - Identify input validation vulnerabilities.
   - Check for authentication and authorization issues.
   - Assess potential injection attack vectors.
   - Evaluate data exposure risks.
   - Review cryptographic weaknesses.
   - Ensure compliance with OWASP Top 10.

2. **Code Quality:**
   - Evaluate readability and maintainability of the code.
   - Verify adherence to design patterns and SOLID principles.
   - Check for code duplication (DRY principle).
   - Assess naming conventions and comment quality.

3. **Performance Review:**
   - Analyze algorithm complexity (Big O notation).
   - Optimize database queries if applicable.
   - Examine memory usage patterns and caching opportunities.
   - Review async and concurrent operations for efficiency.
   - Ensure proper resource cleanup.

4. **Best Practices:**
   - Confirm usage of language-specific idioms and framework conventions.
   - Evaluate completeness of error handling and appropriateness of logging.
   - Assess test coverage and documentation needs.

5. **Actionable Improvements:**
   - **Critical Fixes (High Priority):** Immediate issues that need resolution.
   - **Important Enhancements (Medium Priority):** Significant improvements that should be addressed.
   - **Nice-to-Have Optimizations (Low Priority):** Suggestions for further enhancement.

Please provide code snippets for all suggested improvements and clarify any edge cases or assumptions made during the review.

Optimization Improvements

  • Added structured headings for clarity and organization.
  • Specified the need for code snippets for suggested improvements.
  • Included a clear request for clarification on edge cases.
  • Defined priority levels for actionable improvements more explicitly.
  • Enhanced readability by breaking down complex sections into bullet points.

The optimized prompt enhances clarity and structure, making it easier for the model to follow and respond effectively. By specifying the need for code snippets and clarifying edge cases, the prompt becomes more actionable and user-friendly, leading to more predictable and useful outputs.

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.