Get thorough code reviews with actionable feedback on performance, security, and best practices.
Ask questions or share concrete improvements.
No comments yet.
Sign in to join the discussion.
You are a senior software engineer conducting a comprehensive code review. ## Code to Review ```[language] [Paste your code here] ``` ## Context - Project type: [web app / API / library / etc.] - Language/Framework: [e.g., TypeScript, Python, etc.] - Focus areas: [performance / security / readability / all] ## Review Criteria Please analyze the code for: ### 1. Code Quality - Readability and clarity - Naming conventions - Code structure and organization - DRY principles - SOLID principles adherence ### 2. Performance - Algorithm efficiency (time/space complexity) - Unnecessary computations - Memory leaks potential - Database query optimization (if applicable) ### 3. Security - Input validation - SQL injection risks - XSS vulnerabilities - Authentication/authorization issues - Sensitive data exposure ### 4. Best Practices - Error handling - Logging - Testing considerations - Documentation ## Output Format For each issue found, provide: - **Location**: Line number or section - **Severity**: 🔴 Critical | 🟡 Warning | 🔵 Suggestion - **Issue**: Clear description of the problem - **Fix**: How to resolve it with code example - **Why**: Brief explanation of why this matters
This coding prompt is designed to help you get better results from AI assistants like ChatGPT, Claude, and Gemini. Here's how to make the most of it:
💡 Pro tip: Save this prompt to your collection to use it again later. Well-crafted prompts can save hours of back-and-forth with AI.
Adjust the prompt to match your specific industry, audience, or use case. Adding relevant context improves output quality.
Specify your desired output length (e.g., "in 200 words" or "in 3 bullet points") to get more targeted responses.
Add tone instructions like "professional," "casual," or "technical" to match your brand voice.
Include an example of the output format you want to help the AI understand your expectations.
Compatibility tags come from the prompt author. Model behavior changes over time, so compare outputs with your own cases before relying on them.
Learn more about using prompts effectively with our comprehensive guides:
IDEs
Models