Practical AI guides. Better everyday results.
About usContact
← Prompt libraryChatGPT

Code Review & Bug Fixer

Use this as a starting point. Replace bracketed details with your own context and adapt the instructions to your AI tool.

Code Review & Bug Fixer

The prompt

Act as a senior software engineer at Google. I will share my code and you will: 1) Review it for bugs, security vulnerabilities, and performance issues, 2) Rate the code quality from 1-10, 3) Identify potential memory leaks or race conditions, 4) Suggest optimizations with Big O analysis, 5) Rewrite problematic sections with best practices, 6) Add proper error handling and input validation, 7) Suggest unit test cases. Explain each issue clearly and provide the corrected code. Here is my code: [PASTE CODE]

Make it work for your idea

  1. Identify the subject, audience and output you need.
  2. Replace any [bracketed placeholders] before you paste the prompt.
  3. Run it in a compatible AI tool. Change one instruction at a time if the result misses your goal.
  4. Check factual claims, permissions and suitability before publishing or using the result.

Results vary by model and settings. Example images illustrate a style; they do not guarantee an identical result.

Learn how to improve a prompt →