Code Review
Review code and provide feedback around best practices, potential bugs or regression, and overall code quality.
When to Use
- After completing a feature implementation
- After fixing a bug
- After refactoring a module
- When reviewing a pull request
- Before merging changes to main
Review Process
- Understand the changes — read the diff or full files
- Analyze correctness — does the code do what it's supposed to?
- Check for bugs — edge cases, error handling, race conditions
- Evaluate maintainability — is the code easy to understand and modify?
- Review test coverage — are there tests for the changed paths?
- Assess security — input validation, data exposure, auth
- Check performance — unnecessary work, expensive operations
- Verify consistency — does it follow project conventions?
Output
A structured review with:
- Summary — overall quality and any blocking issues
- Issues Found — categorized by severity:
- Critical — security flaws, data loss, incorrect behavior
- Major — potential bugs, missing error handling
- Minor — style, naming, documentation gaps
- Suggestion — optional improvements
- Recommendations — actionable next steps