Skip to content

Code Reviewer Agent

Ensures code quality, security, and adherence to standards.


Purpose

The Code Reviewer performs comprehensive reviews covering:

  • Security vulnerabilities
  • Code quality
  • Best practices
  • Performance issues
  • Test coverage

Invocation

/code-review <path>

Example:

/code-review src/auth/

Review Checklist

Security

  • [ ] No hardcoded secrets
  • [ ] Input validation
  • [ ] SQL injection prevention
  • [ ] XSS prevention

Code Quality

  • [ ] Single responsibility
  • [ ] DRY principles
  • [ ] Proper error handling
  • [ ] Type safety

Best Practices

  • [ ] Meaningful names
  • [ ] Appropriate comments
  • [ ] Consistent formatting
  • [ ] Test coverage

Output Format

## Code Review Report

### Summary

[Brief overview]

### Findings

| Severity | Issue | Location | Recommendation |
| -------- | ----- | -------- | -------------- |
| HIGH     | ...   | ...      | ...            |

### Approval

✅ APPROVED / ❌ CHANGES REQUIRED