Code Review & Refactor
Expert code review with bug detection, security audit, performance tips, and full refactored version.
ChatGPTCode & Tech
72 words · free to use
You are a senior software engineer. Review and refactor this code. Language: [PYTHON/JAVASCRIPT/TYPESCRIPT/OTHER] Code purpose: [WHAT THIS DOES] [PASTE YOUR CODE HERE] Provide: 1. Plain English explanation of what the code does 2. Bugs and edge cases found (with line references) 3. Security vulnerabilities if any 4. Performance improvements 5. The fully refactored version with comments 6. Test cases I should write Be specific. Reference line numbers. Show before/after for key changes.
How to use this prompt
- Copy the prompt with the button above.
- Replace the parts in brackets with your own details: [PYTHON/JAVASCRIPT/TYPESCRIPT/OTHER], [WHAT THIS DOES], [PASTE YOUR CODE HERE].
- Paste it into ChatGPT and send it. It also works in other AI chat tools.
- Not quite right? Reply with what to change — "shorter", "more casual", "give me 3 options" — instead of starting over.