Advertising Disclosure: Some links may be affiliate links. This prompt library is informational and free to use. Read our methodology.

🤖 AI prompt

Code Review Prompt

Review code for bugs, security, performance, and maintainability.

Copy-ready prompt

{code}{language}{context}
Act as a senior engineer. Review this {language} code: {code} Context: {context} Return: critical bugs, security risks, performance issues, maintainability concerns, tests to add, and a minimal patch suggestion.

Variables

VariableHow to fill it
{code}Replace with your real code.
{language}Replace with your real language.
{context}Replace with your real context.

When to use it

Review code for bugs, security, performance, and maintainability.

Quality checks

  • Add real context before running the prompt.
  • Ask for examples if the first answer is too generic.
  • Verify facts, numbers, links, and sensitive advice.
Safety note: Do not paste passwords, private keys, confidential customer data, or regulated personal data into public AI tools.

Related prompt tools

FAQ

How do I use this prompt?
Copy it, replace the variables with real context, and ask follow-up questions to refine the output.
Can I change the structure?
Yes. Add constraints, examples, required format, and quality bar.
Is the output always correct?
No. AI output should be reviewed and verified before publishing or acting on it.