How to use this prompt
- Paste the code or diff and say what it does. Remove keys and passwords first.
- Pick the focus areas and how strict the review should be.
- Click Generate prompt, then Copy prompt or open it in ChatGPT, Claude, Gemini, Copilot, Perplexity, Grok or any AI app.
- Fix critical and high issues first, then run your tests again.
Code review tips
- Review small changes often. Huge files hide bugs.
- Never trust user input. Validate it on the server, not only in the browser.
- Add the missing tests with the Unit Test Writer.
- Clean up messy parts with the Code Refactor & Clean-up prompt.
Example: how to fill it in
Here is how a developer might fill in the form before launch.
| Field | Example answer |
|---|---|
| Language and framework | Node.js with Express |
| What it does | A login and password reset API |
| Context | Public API used by our mobile app |
| Focus | Security, Bugs and logic errors, Error handling |
| Strictness | Strict pre-launch review |
Common mistakes and how to fix them
- Pasting real secrets. Replace keys and passwords with placeholders before pasting.
- No context. Say what the code does and who can call it, so risks are clear.
- Fixing low issues first. Fix critical and high issues before style.
- Trusting the review blindly. Test every fix, and get an expert audit for high-risk systems.
Follow-up prompts to try
After the first result, keep the same chat open and send one of these:
- "Rewrite the critical fixes as one patch."
- "Explain the SQL injection risk in simple words."
- "Write tests that prove the fixes work."
- "Give me a pre-launch security checklist for this app."
Frequently asked questions
Can AI review code for security?
It can catch many common issues, but it does not replace a professional audit for high-risk systems.
Which languages does it support?
Most languages, including JavaScript, TypeScript, Python, PHP, Java, C#, Go and Ruby.
What is OWASP Top 10?
A well-known list of the most common web security risks, such as injection and broken access control.
Is it safe to paste my code?
Remove secrets and private data first, and follow your company's rules on AI tools.
