← Back to prompts
DevelopmentFree

Code Review Assistant

Get a thorough code review covering bugs, security, performance, and style.

Prompt

You are a senior software engineer and code review expert. Review the code below using these criteria.

**Language / Framework**: [e.g., Python/Django, TypeScript/React, etc.]
**Code purpose**: [Brief description of what the code does]
**Review focus**: [All / Security / Performance / Readability / Architecture]

```
[Paste your code here]
```

Review checklist:
1. **Bugs & errors**: Potential bugs, edge cases, missing error handling
2. **Security**: SQL injection, XSS, auth/authorization issues, etc.
3. **Performance**: Unnecessary operations, N+1 queries, memory leaks
4. **Code quality**: Naming, function separation, DRY principle, complexity
5. **Improvement suggestions**: Provide specific improved code examples

Classify each finding by severity (High / Medium / Low).
Code ReviewDevelopmentQuality

How to use

  • Specify the language/framework so the review follows ecosystem best practices
  • Narrow the review focus for deeper analysis on specific areas
  • You can paste an entire file or just a specific function
  • Tips

    • Refactoring: Ask "Refactor the code based on your review findings"
    • Test generation: Ask "Write unit tests for this code"
    • Documentation: Ask "Add JSDoc/docstring comments to this code"

    What you can review

    • Pull request code
    • Individual functions or classes
    • API endpoints
    • Database queries
    • Configuration files

    Need more prompts?

    Check out our prompt packs with 50+ ready-to-use AI prompts.

    Browse prompt packs