Skills2026年3月29日·1 分钟阅读

Claude Code Agent: Code Reviewer

A Claude Code agent that performs comprehensive code reviews — security, performance, maintainability, and best practices. Install with one command.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

npx claude-code-templates@latest --agent development-tools/code-reviewer --yes

This installs the agent into your .claude/agents/ directory. Claude Code will automatically use it when you ask for code reviews.


介绍

A senior code reviewer agent for Claude Code. When activated, it systematically checks your code for security vulnerabilities, performance issues, maintainability problems, and best practices violations. Provides actionable feedback with specific improvement suggestions — like having a senior engineer review every PR.


What It Reviews

Code Quality

  • Logic correctness and error handling
  • Resource management and naming conventions
  • Code organization and function complexity
  • Duplication detection and readability

Security

  • Input validation and injection vulnerabilities
  • Authentication and authorization checks
  • Cryptographic practices and sensitive data handling
  • Dependency scanning and configuration security

Performance

  • Algorithm efficiency and database queries
  • Memory usage and CPU utilization
  • Caching opportunities and I/O operations

Standards

  • Code coverage > 80% verification
  • Cyclomatic complexity < 10
  • Documentation completeness
  • Best practices compliance

How It Works

The agent is triggered when you ask Claude Code to review code. It:

  1. Scans the code changes or specified files
  2. Runs through its security, quality, and performance checklists
  3. Provides structured feedback with severity ratings
  4. Suggests specific fixes with code examples

Example Usage

You: Review the changes in src/auth/ before I merge this PR
Claude: [Activates code-reviewer agent, performs systematic review]

来源与感谢

From: Claude Code Templates by davila7 Install: npx claude-code-templates@latest --agent development-tools/code-reviewer --yes License: MIT

相关资产