Code Reviewer Agent Template
An AI agent that reviews pull requests for security issues, best practice violations, and performance problems.
What This Template Does
The Code Reviewer agent acts as a first-pass reviewer for your pull requests. It checks for security vulnerabilities, coding standard violations, performance issues, and common bugs. It posts review comments directly on GitHub PRs or delivers reports to Slack.
Skills to Install
- GitHub -- Access repositories and PRs
- GitHub Issues -- Track and create issues from review findings
- Coding Agent -- Write and test code fixes (optional)
Recommended Channel
Slack with a dedicated #code-reviews channel for notifications.
Example Conversations
"Review this Python function for security issues and suggest improvements."
Agent response: Identifies SQL injection risk in string interpolation, suggests parameterized queries, flags missing input validation, and recommends adding type hints and error handling.
"Check the latest PR on our main repo for any issues."
Agent response: Fetches the PR diff via GitHub skill, analyzes changes across all files, and posts a structured review with line-specific comments for issues found.
"Are there any performance concerns in this database query code?"
Agent response: Identifies N+1 query patterns, missing indexes, and suggests batch operations and query optimization strategies with code examples.
Setup Steps
- Create your KiwiClaw agent
- Install GitHub and Coding Agent skills
- Configure with your team's coding standards and style guide in the system prompt
- Connect Slack for review notifications
- Test with a few PRs before enabling automated reviews
Frequently Asked Questions
Does this replace human code reviews?
No. The Code Reviewer agent acts as a first-pass reviewer that catches common issues before human reviewers look at the code. This saves human reviewers time and ensures consistent coverage of security and best practice checks.
Which programming languages does it support?
The agent can review code in any language it has been trained on, including Python, JavaScript, TypeScript, Go, Rust, Java, C++, Ruby, and more. You can configure language-specific rules in the system prompt.
Can it automatically fix issues it finds?
With the Coding Agent skill installed, yes. The agent can suggest code fixes and even create fix PRs. However, we recommend reviewing suggested fixes before merging, especially for security-related changes.