Code Review Assistant
Agent focused on reviewing code for quality, security vulnerabilities, performance issues, and adherence to best practices.
An agent configuration designed for one job: giving you better code reviews. Instead of generating code, this template configures your AI assistant to analyze diffs, flag issues, and suggest improvements — the same way a senior engineer would review a pull request.
What’s included
- Quality checks — Identifies dead code, duplicated logic, overly complex functions, inconsistent naming, and missing error handling. The agent flags problems with clear explanations of why they matter.
- Security review — Scans for common vulnerabilities including SQL injection, XSS vectors, hardcoded secrets, insecure deserialization, and improper input validation. References OWASP guidelines where relevant.
- Performance analysis — Spots N+1 queries, unnecessary re-renders, missing indexes, unbounded loops, and memory leaks. Suggestions include concrete fixes, not just warnings.
- Best practice enforcement — Checks adherence to SOLID principles, proper separation of concerns, consistent error handling patterns, and idiomatic usage for the language and framework in use.
- Readability feedback — Evaluates function length, nesting depth, variable naming clarity, and comment quality. The agent recommends extractions and renames that make code easier to maintain.
- Git hygiene — Reviews commit message quality, diff size, and whether changes are logically grouped or should be split into smaller pull requests.
Who it’s for
Any developer or team that wants a consistent, thorough second pair of eyes on every code change. This template is especially useful for solo developers who lack a regular review partner, small teams that want to raise their review bar, and tech leads who want to codify their team’s standards into an automated check.
Skills at a glance
The template includes skills for diff analysis, security scanning, performance profiling, style enforcement, and constructive feedback formatting. Reviews are structured with severity levels so you can focus on what matters most.
How to use
- Click Use Template to open it in the spaget builder
- Add your team’s specific conventions or disable checks you do not need
- Export to Claude Code, Cursor, or Copilot
- Use the agent to review diffs before opening or merging pull requests
Give your code reviews a boost. Open this template in spaget and start reviewing smarter.