Coding
CodingCode ReviewDebuggingCode Review Assistant
Thorough code review across bugs, security, performance, and style.
Best For
- •Solo developers who need a second pair of eyes on a pull request before merging without waiting on a teammate.
- •Engineering leads doing a quick pre-merge sanity check on a contractor's or junior dev's code.
- •Open-source maintainers triaging community pull requests who want a structured first pass on quality and security.
Prompt Template
Review the following [LANGUAGE] code for: (1) bugs and logical errors, (2) security vulnerabilities, (3) performance issues, (4) readability and maintainability, (5) adherence to best practices. For each issue found, explain what the problem is, why it matters, and provide a corrected code snippet. Rate the overall code quality out of 10 and summarize your top 3 recommended improvements.
Code to review:
[PASTE CODE HERE]
Pro Tip
Include the surrounding function or file context, not just the isolated snippet, so the model can catch issues that only show up when it sees how the code is actually called.
Example Output
A sample of what this prompt produces once you fill in the placeholders.
For a Python function with an unvalidated SQL string, the review flags a SQL injection risk under security, points out a missing null check on line 12, rates the code 5/10, and provides a corrected snippet using parameterized queries. The top 3 recommendations focus on input validation, extracting a helper function, and adding a docstring.
Recommended Tools
How to use this prompt
- Copy the prompt template using the button above.
- Paste it into your preferred AI assistant (ChatGPT, Claude, Gemini, etc.).
- Replace all bracketed placeholders like
[TOPIC]with your specific details. - Send the prompt and refine the output as needed.