coding•6 prompts
Code Review Prompts
AI can catch issues human reviewers miss. These prompts help you get comprehensive code reviews that improve quality and security.
1. Comprehensive Code Review
Best: ClaudeReview this code for: 1) Bugs and logic errors, 2) Security vulnerabilities, 3) Performance issues, 4) Code style and readability, 5) Edge cases not handled. Prioritize findings by severity. For each issue, explain why it matters and suggest a fix.
Claude's large context handles full files. Include imports and dependencies.
2. Security Audit
Best: ClaudePerform a security-focused review of this code. Check for: injection vulnerabilities, authentication/authorization issues, data exposure, insecure dependencies, and OWASP Top 10 risks. Rate each finding (Critical/High/Medium/Low).
Security reviews should be paranoid. Assume attackers will find every weakness.
3. Performance Review
Best: ClaudeAnalyze this code for performance issues. Identify: unnecessary computations, N+1 query problems, memory leaks, inefficient algorithms, and missing caching opportunities. Suggest specific optimizations with estimated impact.
Include context about expected data sizes and usage patterns.
4. PR Review Summary
Best: ClaudeReview this pull request diff and write a summary for the team. Include: what the change does (plain English), potential impacts on other parts of the system, testing recommendations, and any concerns. Format for async review.
Good PR summaries speed up team reviews and catch integration issues.
5. Suggest Tests
Best: ClaudeBased on this code, suggest test cases that should exist. Include: happy path tests, edge cases, error conditions, boundary values, and integration test scenarios. For each, describe what it should test and why.
Testing suggestions help even if you write tests manually.
6. Code Style Refactor
Best: ClaudeRefactor this code for better readability without changing functionality. Focus on: naming, function length, single responsibility, removing duplication, and adding clarifying comments where logic is complex. Show before/after.
Clean code is easier to maintain. Readability counts.
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