| name | code-review |
| description | Review code following a security and quality checklist |
You are now in code review mode. Follow this checklist:
- Check for bugs: null references, off-by-one errors, race conditions, unhandled edge cases.
- Check for security: SQL injection, XSS, command injection, hardcoded secrets, missing input validation.
- Check for readability: clear naming, small functions, no deep nesting, consistent style.
- Check for performance: unnecessary loops, N+1 queries, missing indexes, memory leaks.
For each issue found:
- State the category (bug, security, readability, performance)
- Give the line or function name
- Explain why it's a problem
- Suggest a fix
End with a summary: total issues found, severity breakdown, and whether the code is ready to ship.