coderabbit

delaanthonio's avatarfrom delaanthonio

AI-powered code review using CodeRabbit CLI. Use when reviewing code changes, checking PR readiness, getting feedback on staged/committed changes, or when the user mentions code review, CodeRabbit, or wants their changes reviewed.

⭐1stars🔀0forks📁View on GitHub🕐Updated Dec 18, 2025

When & Why to Use This Skill

The CodeRabbit skill integrates AI-powered code analysis directly into your development workflow via the CodeRabbit CLI. It enables Claude to perform automated, intelligent reviews of local changes, assess PR readiness, and provide actionable feedback on staged, committed, or uncommitted code to ensure high standards of code quality and maintainability.

Use Cases

  • Pre-Pull Request Validation: Compare your current branch against a base branch (e.g., main) to identify bugs, logic errors, or style inconsistencies before officially submitting a PR.
  • Real-time Development Feedback: Get instant AI insights on uncommitted, work-in-progress changes to catch potential issues early in the coding cycle.
  • Incremental Commit Review: Analyze specific committed changes to ensure that each step of your development process aligns with project requirements and best practices.
  • Automated Fix Suggestions: Use prompt-only mode to extract AI-driven recommendations for identified issues, allowing for rapid debugging and code optimization.
namecoderabbit
description"AI-powered code review using CodeRabbit CLI. Use when reviewing code changes, checking PR readiness, getting feedback on staged/committed changes, or when the user mentions code review, CodeRabbit, or wants their changes reviewed."
allowed-toolsRead, Bash, Glob, Grep

CodeRabbit Code Review

Use the CodeRabbit CLI to provide AI-driven code reviews for local changes.

When to Use This Skill

Activate this skill when the user:

  • Asks for a code review of their changes
  • Wants to check if their code is PR-ready
  • Mentions "CodeRabbit" or "coderabbit"
  • Wants feedback on staged, committed, or all changes
  • Needs to compare their branch against a base branch

Prerequisites

Before running CodeRabbit:

  1. Ensure you're in a git repository
  2. Check for config files to pass to CodeRabbit

Auto-Detect Configuration

Check for and use these config files if present:

  • .coderabbit.yaml - CodeRabbit-specific configuration
  • CLAUDE.md - Project instructions that provide context

Build the config flag:

# Check what configs exist
ls -la .coderabbit.yaml CLAUDE.md 2>/dev/null

# If configs exist, include them with -c flag
coderabbit review -c .coderabbit.yaml CLAUDE.md

Review Types

Review All Changes (Default)

coderabbit review --type all

Review Only Committed Changes

Use when reviewing what's already been committed but not pushed:

coderabbit review --type committed

Review Only Uncommitted Changes

Use during active development to get feedback on work-in-progress:

coderabbit review --type uncommitted

PR-Style Reviews

Compare Against Base Branch

Use when preparing a PR or reviewing branch changes:

coderabbit review --base main
coderabbit review --base origin/main

Compare Against Specific Commit

Use for incremental reviews:

coderabbit review --base-commit abc1234

Output Modes

Interactive Mode (Default)

Best for exploration and discussion:

coderabbit review

Plain Text Mode

Best for capturing output or non-interactive environments:

coderabbit review --plain

Prompt-Only Mode

Get the AI review prompts to analyze or fix issues yourself:

coderabbit review --prompt-only

Pre-PR Review

# Get comprehensive review comparing to main branch
coderabbit review --base main --plain

Development Feedback Loop

# Quick review of uncommitted changes
coderabbit review --type uncommitted --plain

Review and Fix

# Get prompts, then fix issues
coderabbit review --prompt-only > /tmp/review.txt
# Read the review and address issues

Building Commands

Always check context first:

  1. Run git status to understand the repository state
  2. Check for .coderabbit.yaml and CLAUDE.md
  3. Select appropriate review type based on user intent
  4. Choose output mode based on whether fixes are needed

Example command construction:

# Full command with auto-detected config and base branch comparison
coderabbit review \
  --base main \
  --type all \
  --plain \
  -c .coderabbit.yaml CLAUDE.md