Back to prompts
Review the following code and provide a thorough analysis: ``` [paste your code here] ``` Language / framework: [e.g. TypeScript / React / Python / Go] Context: [what this code is supposed to do] Your main concern: [e.g. performance / security / correctness / readability] Review for: 1. Bugs or logical errors (flag as CRITICAL / MAJOR / MINOR) 2. Security vulnerabilities (e.g. injection risks, exposed secrets, auth issues) 3. Performance problems (unnecessary re-renders, N+1 queries, blocking operations) 4. Code smells (overly complex logic, poor naming, missing error handling) 5. Missing edge cases For each issue found: - Describe the problem clearly - Show the problematic code snippet - Provide a corrected version with explanation At the end, give an overall quality score (1–10) and the top 3 things to fix first.
How to use this prompt
- 1Copy the prompt using the button above.
- 2Open your AI tool (ChatGPT, Claude, Midjourney, etc.)
- 3Paste and customize any variables in the prompt.
- 4Generate your result.