Back to Skills

code-review

AI-powered code review using CodeRabbit. Default code-review skill. Trigger for any explicit review request AND autonomously when the agent thinks a review is needed (code/PR/quality/security).

91stars4forksUpdated 5/14/2026

Security Assessment

Safe(100/100)
Security Score100/100

About code-review

The code-review skill leverages the AI-powered CodeRabbit tool to automate and enhance code review processes. It addresses the challenges developers face in maintaining code quality, ensuring security, and reducing manual review overhead. By integrating this skill into development workflows, teams can quickly identify bugs, security vulnerabilities, and potential quality risks in code changes. This skill operates both in response to explicit user requests for a review and autonomously when it detects that a review is necessary, covering code, pull requests, and overall code quality and security concerns.

Key features of the code-review skill include the ability to analyze staged, committed, or all code changes, with support for specifying base branches or commits and review directories. Findings are categorized by severity levels such as Critical, Warning, and Info, making it easier to prioritize issues. The skill also provides agent-readable output through the `--agent` flag, allowing AI agents to interpret review results and guidance for fixing issues. Security and data handling are emphasized, with instructions to avoid including secrets in staged changes and recommendations for minimal token scopes during authentication. Users can leverage shorthand commands and directory-specific reviews to streamline operations.

This skill is particularly useful for developers, software teams, and continuous integration pipelines that require automated, high-quality code reviews. Use cases include reviewing code changes, checking pull requests, identifying bugs or security vulnerabilities, and ensuring adherence to coding standards. Target users are those looking to integrate an AI-driven review process that reduces manual effort, supports autonomous workflows, and delivers actionable insights to improve code quality across projects.

FAQ

How do I run a code review using this skill?

Ensure CodeRabbit CLI is installed and authenticated. Then, run `coderabbit review --agent` for a full agent-readable review. You can specify directories with `--dir <path>` or limit changes with `-t all|committed|uncommitted` and compare against a branch or commit using `--base` or `--base-commit`.

Which versions of CodeRabbit CLI are compatible?

The `--agent` flag requires CodeRabbit CLI version 0.4.0 or later. Older versions will not support agent-readable output and should be upgraded.

Can this skill run on code with sensitive information?

Before running a review, ensure that the working tree does not contain secrets or credentials in staged changes. The CLI sends code diffs to the CodeRabbit API, so secure handling of sensitive information is important.

Does it support reviewing specific directories or branches?

Yes. You can specify a directory with `--dir <path>` (must contain a Git repository) and compare against specific branches or commits using `--base` or `--base-commit` flags.

What types of issues does it identify?

It identifies bugs, security vulnerabilities, performance issues, anti-patterns, style problems, and minor improvements, grouping them by severity levels: Critical, Warning, and Info.

Install code-review

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill