coding•5 prompts
AI Code Review Prompts
AI code review catches different things than human reviewers. It is especially strong at finding security vulnerabilities, performance issues, and inconsistencies that humans overlook when scanning code.
1. Comprehensive PR Review
Best: ClaudeReview this pull request: [paste code diff or files]. Check for: bugs and logic errors, security vulnerabilities (injection, auth, data exposure), performance issues (N+1 queries, memory leaks, unnecessary computation), code style and naming inconsistencies, missing error handling, and test coverage gaps. Categorize findings as: critical, important, nitpick. Suggest fixes for critical and important items.
Paste the full diff with context. Claude catches subtle issues and explains why they matter.
2. Security-Focused Review
Best: ClaudeAudit this code for security vulnerabilities: [paste code]. Check for: SQL/NoSQL injection, XSS possibilities, authentication/authorization bypasses, sensitive data exposure (logs, errors, responses), insecure dependencies, CSRF vulnerabilities, and misconfigured CORS. For each finding: describe the attack vector, rate severity (critical/high/medium/low), and provide the fix.
Include your auth middleware and data flow context. Claude traces security implications across functions.
3. Performance Review
Best: DeepSeekReview this code specifically for performance: [paste code]. Context: this runs [frequency - e.g., "per API request" or "once daily"]. Data scale: [approximate volumes]. Identify: algorithmic inefficiencies (O(n) that could be O(1)), unnecessary database queries, memory allocation issues, missing caching opportunities, and expensive operations that could be deferred. Quantify impact where possible.
Include the execution context and data scale. DeepSeek identifies algorithmic improvements that matter at scale.
4. Test Coverage Reviewer
Best: ClaudeReview these tests for completeness: [paste tests + code being tested]. Identify: untested code paths, missing edge cases, tests that would pass even if the code was broken (tautological tests), missing error condition tests, and tests that are too coupled to implementation details. Suggest the 5 most valuable tests to add, ordered by risk reduction.
Include both the tests and the code they test. Claude identifies meaningful coverage gaps, not just line coverage.
5. Architecture Pattern Check
Best: ClaudeReview this codebase for architectural consistency: [paste code or describe structure]. Patterns in use: [MVC, repository, etc.]. Check: are patterns applied consistently, does the abstraction level make sense, are there circular dependencies, is the code organized for testability, and where does complexity concentrate? Suggest specific refactoring for the worst offenders.
Describe the intended architecture. Claude evaluates whether the implementation matches the design intent.
Try These Prompts with Multiple AIs
Get responses from Claude, ChatGPT, Gemini, and more—all at once. Compare which AI handles these prompts best.
Try Council Free