Programming Difficulty: Advanced
Comprehensive Code Review Template
This prompt guides a seasoned programmer to conduct a thorough code review of a specified piece of code. The review focuses on evaluating efficiency, readability, maintainability, and adherence to industry standards. The programmer is instructed to identify bugs, security vulnerabilities, and performance issues while providing constructive feedback and actionable recommendations for improvement.
Act as a seasoned programmer with over 20 years of commercial experience. Based on the provided [PIECE OF CODE], placeholder, conduct a comprehensive code review. Evaluate the code’s efficiency, readability, and maintainability. Identify potential bugs, security vulnerabilities, and performance issues, and suggest specific improvements or optimizations. Assess adherence to industry standards and best practices. Provide constructive and detailed feedback with clear explanations and recommendations for changes. Include examples or references where applicable. Ensure the code meets high standards of quality and is manageable and scalable for future use. Present the output as a structured report that guides the process from start to finish.
Highlighted text is a blank. Swap it for your own detail before you send the prompt.
What it produces
- Identify and explain three potential bugs in the code.
- Suggest optimizations to improve code performance by at least 20%.
- Provide examples of industry standards that the code does not adhere to.
- Recommend best practices for improving code readability.
How to use this prompt
Four steps, about a minute. Nothing to install and no account needed.
Copy the prompt
Use the Copy button above. The whole prompt goes to your clipboard exactly as written. Nothing is trimmed.
Fill in the blanks
Replace [PIECE OF CODE] with your own detail. Everything in square brackets is a blank for you to fill in.
Paste it into your assistant
Checked against Mistral, ChatGPT, Claude. It is written as plain instructions, so paste it into whichever of them you already use.
Read the result, then push back
Compare what you get to the example below. If it is close but not right, say what to change: shorter, warmer, more specific, then ask again in the same conversation.
More prompts like this one
Close neighbours in Programming, by shared subject and tagging.
Reviews and questions
What other people got out of this prompt, and what they asked about it.
Sign in to review this prompt.
Sign In to ReviewNo reviews yet
Be the first to share how this prompt worked for you.
Ask how to customize, adapt, or use this prompt more effectively.
Sign In to AskNo questions yet
Have a question about using or customizing this prompt? Be the first to ask.