Software engineering best practices for code review. Use when reviewing code, analyzing code quality, checking for bugs, security vulnerabilities, or providing feedback on code changes.
Software engineering best practices for code review. Use when reviewing code, analyzing code quality, checking for bugs, security vulnerabilities, or providing feedback on code changes.
allowed-tools
Read, Grep, Glob
user-invocable
true
Code Review Best Practices
Core Principles
Review Mindset:
Be constructive, explain the "why"
Prioritize by severity (critical vs nice-to-have)
Suggest alternatives, not just problems
Acknowledge good work
Goals:
Catch bugs before production
Improve code quality
Share knowledge
Prevent security vulnerabilities
Ensure consistency
Security Review
OWASP Top 10 Critical Checks
Injection Attacks:
SQL: Use parameterized queries, never concatenate user input
Command: Avoid shell commands with user input, sanitize properly
Code: Validate all eval(), exec(), dynamic execution