| name | code-review |
| description | Toolkit for performing structured code reviews. Covers identifying bugs, security issues, performance problems, and style violations. Use when asked to review code changes, pull requests, or individual files. |
| metadata | {"author":"AGNTCY Contributors","version":"1.0.0"} |
Code Review
Perform structured code reviews that identify bugs, security issues, performance problems,
and style violations in source code.
Decision Tree: Choosing Your Approach
Review request โ Is it a full PR / diff?
โโ Yes โ Read the diff, then review file-by-file
โ โโ Security issues โ Flag as critical
โ โโ Bugs / logic errors โ Flag as high
โ โโ Style / naming โ Flag as suggestion
โ
โโ No (single file) โ Read the file in context
โโ Check imports and dependencies
โโ Verify error handling
โโ Look for common anti-patterns
Review Checklist
- Correctness โ Does the code do what it claims?
- Security โ Are inputs validated? Are secrets handled safely?
- Performance โ Are there unnecessary allocations, N+1 queries, or unbounded loops?
- Readability โ Is the intent clear without excessive comments?
- Tests โ Are edge cases covered?
Examples
- "Review this Go function for potential nil pointer dereferences"
- "Check this PR diff for SQL injection vulnerabilities"
- "Suggest improvements for readability in this Python module"
Guidelines
- Prefer actionable feedback over vague suggestions
- Always explain why something is a problem, not just what
- Group findings by severity: critical, high, medium, suggestion
- When suggesting a fix, show a concrete code snippet