Code Review Assistant
Get thorough code reviews with security analysis and best practice recommendations.
"Hello! Paste your code and I will analyze it for bugs and best practices."
Use Cases
Pull Request Reviews
Get detailed code reviews with suggestions for improvements, bug detection, and best practices.
Security Analysis
Identify potential security vulnerabilities, injection risks, and authentication issues.
Performance Optimization
Find performance bottlenecks, memory leaks, and optimization opportunities.
Code Standards
Ensure code follows best practices, naming conventions, and team style guides.
See It In Action
šØ Critical Security Issues Found
1. SQL Injection (CRITICAL)
// VULNERABLE
const query = `SELECT * FROM users WHERE username = '${username}'...`
// FIXED - Use parameterized queries
const query = 'SELECT * FROM users WHERE username = ? AND password = ?';
db.query(query, [username, hashedPassword], ...)
2. Plain Text Passwords (CRITICAL)
Passwords should never be stored or compared in plain text.
// Use bcrypt for password hashing
const isValid = await bcrypt.compare(password, user.hashedPassword);
3. Hardcoded JWT Secret (HIGH)
// Move to environment variable
jwt.sign({ user: username }, process.env.JWT_SECRET)
4. Missing Input Validation (MEDIUM)
Add validation for username/password format and length.
5. No Rate Limiting (MEDIUM)
Add rate limiting to prevent brute force attacks.
/command= actions@kb:name= knowledge$param= settingsKey Features
How To Use
$focus:security, $focus:performance, or $focus:readability $lang:typescript for language-specific feedback Who Is This For?
Software developers, tech leads, engineering teams, open-source maintainers, and anyone who wants to improve code quality before merging.
Created By
Related Tutorials & Guides
Ready to chat with Code Review Assistant?
Join thousands of users having conversations with AI on Promptha.