Code Review

Comprehensive multi-agent code review system that examines code from multiple specialized perspectives to catch bugs, security issues, and quality problems before they reach production.

Focused on

  • Multi-perspective analysis - Six specialized agents examine code from different angles

  • Early bug detection - Catch bugs before commits and pull requests

  • Security auditing - Identify vulnerabilities and attack vectors

  • Quality enforcement - Maintain code standards and best practices

Overview

The Code Review plugin implements a multi-agent code review system where specialized AI agents examine code from different perspectives. Six agents work in parallel: Bug Hunter, Security Auditor, Test Coverage Reviewer, Code Quality Reviewer, Contracts Reviewer, and Historical Context Reviewer. This provides comprehensive, professional-grade code review before commits or pull requests.

Quick Start

# Install the plugin
/plugin install code-review@NeoLabHQ/context-engineering-kit

# Review uncommitted local changes
> /code-review:review-local-changes

# Review a pull request
> /code-review:review-pr #123

Usage Examples

Agent Architecture

Commands

Review Agents

Bug Hunter

Focus: Identifies potential bugs and edge cases through root cause analysis

What it catches:

  • Null pointer exceptions

  • Off-by-one errors

  • Race conditions

  • Memory and resource leaks

  • Unhandled error cases

  • Logic errors

Security Auditor

Focus: Security vulnerabilities and attack vectors

What it catches:

  • SQL injection risks

  • XSS vulnerabilities

  • CSRF missing protection

  • Authentication/authorization bypasses

  • Exposed secrets or credentials

  • Insecure cryptography usage

Test Coverage Reviewer

Focus: Test quality and coverage

What it evaluates:

  • Test coverage gaps

  • Missing edge case tests

  • Integration test needs

  • Test quality and meaningfulness

Code Quality Reviewer

Focus: Code structure and maintainability

What it evaluates:

  • Code complexity

  • Naming conventions

  • Code duplication

  • Design patterns usage

  • Code smells

Contracts Reviewer

Focus: API contracts and interfaces

What it reviews:

  • API endpoint definitions

  • Request/response schemas

  • Breaking changes

  • Backward compatibility

  • Type safety

Historical Context Reviewer

Focus: Changes relative to codebase history

What it analyzes:

  • Consistency with existing patterns

  • Previous bug patterns

  • Architectural drift

  • Technical debt indicators

CI/CD Integration

GitHub Actions

You can use anthropics/claude-code-actionarrow-up-right to run this plugin for PR reviews in github actions.

  1. Use /install-github-app command to setup workflow and secrets.

  2. Set content of .github/workflows/claude-code-review.yml to the following:

Output Formats

Local Changes Review (review-local-changes)

Produces a structured report organized by severity:

PR Review (review-pr)

Posts inline comments directly on PR lines - no overall report. Each comment follows this format:

Last updated