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

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

  1. Create your KiwiClaw agent
  2. Install GitHub and Coding Agent skills
  3. Configure with your team's coding standards and style guide in the system prompt
  4. Connect Slack for review notifications
  5. 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.

Faster, more thorough code reviews

Automated first-pass reviews. Security, performance, and best practices.