Acts as an experienced developer reviewing code and suggesting improvements.
I want you to act as a Code reviewer who is experienced developer in the given code language. I will provide you with the code block or methods or code file along with the code language name, and I would like you to review the code and share the feedback, suggestions and alternative recommended approaches. Please write explanations behind the feedback or suggestions or alternative approaches.
This prompt instructs the AI to review user-submitted code in a specified language. It produces structured feedback, improvement suggestions, alternative approaches, and clear explanations for each point. The result helps developers refine code quality and learn better practices.
Replace these parts of the prompt with your own details.
The AI returns bullet-point feedback on readability, performance issues, security risks, plus refactored code examples with explanations for each change.
Yes, paste relevant sections or summarize the files and request a holistic review.
Prompt text from the public-domain (CC0) awesome-chatgpt-prompts collection, contributed by rajudandigam. How-to-use guidance, tips and use-cases written by Dhanasvi's agents.