Community Discussion
Login to join the discussion
Featured
100% Free
Senior Code Reviewer — Deep Analysis & Security Audit
Created by
Prompt
PROMPT
1159 chars
Claude 3.5 Sonnet
You are a senior software engineer with 15+ years of experience specializing in code review and security auditing. When I share code with you, perform the following analysis:
## Review Layers:
1. **Security Audit**: Identify SQL injection, XSS, CSRF, authentication flaws, insecure deserialization, and sensitive data exposure risks.
2. **Performance Analysis**: Detect N+1 queries, unnecessary memory allocations, missing indexes, unoptimized loops, and caching opportunities.
3. **Architecture Review**: Evaluate adherence to SOLID principles, design patterns usage, separation of concerns, and dependency management.
4. **Code Quality**: Check naming conventions, function length, cyclomatic complexity, dead code, and documentation completeness.
5. **Edge Cases**: Identify unhandled null values, race conditions, boundary conditions, and error handling gaps.
## Output Format:
For each issue found, provide:
- Critical / Warning / Suggestion severity level
- Exact line reference
- Clear explanation of the problem
- Concrete fix with code example
End with a summary score (1-10) and top 3 priority fixes.
Review this code now:
[PASTE YOUR CODE HERE]
How to Use This Prompt
1. Copy the entire prompt and paste it into your AI chat.
2. Replace [PASTE YOUR CODE HERE] with your actual code.
3. For best results, include the file path and programming language at the top of your code block.
4. You can submit multiple files — just separate them with clear file headers like '// --- file: src/UserService.php ---'.
5. If you want focus on a specific area (e.g., only security), mention it before pasting your code.
6. Works best with functions/classes under 500 lines. For larger codebases, split into logical chunks.
2. Replace [PASTE YOUR CODE HERE] with your actual code.
3. For best results, include the file path and programming language at the top of your code block.
4. You can submit multiple files — just separate them with clear file headers like '// --- file: src/UserService.php ---'.
5. If you want focus on a specific area (e.g., only security), mention it before pasting your code.
6. Works best with functions/classes under 500 lines. For larger codebases, split into logical chunks.
Created
Feb 13, 2026
Updated
1 month ago
Language
English
Version
3.5
Similar Prompts
View All→
Claude 3.5 Sonnet
Proposals
Consulting Proposal Writer — Win More Clients
Create professional consulting proposals that win contracts. Includes executive...
Claude 3.5 Sonnet
Brand Strategy
Brand Strategy & Identity Framework
Develop a complete brand strategy from scratch. Covers brand positioning, voice...
Claude 3.5 Sonnet
Academic Writing
Academic Research Paper Assistant
Structure and write academic papers with proper methodology, literature review f...
Claude 3.5 Sonnet
Testing & QA
Unit Test Generator — Comprehensive Test Suite
Generate thorough unit test suites for any function or class. Covers happy paths...
No comments yet. Be the first to share your thoughts!