
coderabbit
CodeRabbit AI code review. Covers CLI usage, .coderabbit.yaml configuration, supported linters/tools, PR commands, and triage workflow. Use when running AI-powered code reviews on pull requests or local changes, configuring review rules, or triaging CodeRabbit findings. Keywords: @coderabbitai, code review, CLI, .coderabbit.yaml.
- Installs
- 85
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/itechmeat/llm-code --skill coderabbit- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads coderabbit automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
CodeRabbit
AI-powered code review for pull requests and local changes.
Quick Navigation
| Task | Reference |
|---|---|
| Install & run CLI | cli-usage.md |
| Configure .coderabbit.yaml | configuration.md |
| Supported tools (40+ linters) | tools.md |
| Git platform setup | platforms.md |
| PR commands (@coderabbitai) | pr-commands.md |
| Claude/Cursor/Codex workflow | agent-integration.md |
| Triage findings | triage.md |
| Fix single issue | fix.md |
| Reporting & metrics | end-to-end-workflow.md |
| End-to-end workflow | end-to-end-workflow.md |
| Windows/WSL setup | windows-wsl.md |
Prerequisites Check (MUST RUN BEFORE REVIEW)
Before running CodeRabbit CLI, verify ALL of the following:
# 1. CLI installed?
which coderabbit || echo "MISSING: install with: curl -fsSL https://cli.coderabbit.ai/install.sh | sh"
# 2. Authenticated?
coderabbit auth status 2>&1 | grep -q "Logged in" || echo "MISSING: run coderabbit auth login"
# 3. Git repo has at least one commit? (CRITICAL — CLI crashes with GitError on empty repos)
git rev-parse HEAD >/dev/null 2>&1 || echo "MISSING: repo has no commits — make at least one commit first"
# 4. Base branch exists? (CLI defaults to 'main')
git rev-parse main >/dev/null 2>&1 || echo "WARNING: 'main' branch not found — use --base <branch>"
If any check fails, fix it before running the review. Do NOT proceed with a broken state.
Authentication failure rule: If authentication check fails (step 2), the agent MUST:
- Stop immediately — do not attempt to run the review
- Notify the user that CodeRabbit CLI is not authenticated
- Show the user the exact command to authenticate:
coderabbit auth login - Wait for the user to complete authentication before retrying
- Do NOT attempt to run
coderabbit auth loginon behalf of the user — it requires interactive browser redirect
Quick Start
Run Review
# AI agent workflow (most common) — note: 'review' subcommand is optional
coderabbit review --prompt-only --type uncommitted --no-color
# If base branch is not 'main' (e.g., master, develop):
coderabbit review --prompt-only --type uncommitted --base master --no-color
# Plain text output (human-readable)
coderabbit review --plain --type uncommitted --no-color
Local Capture Script
Persist output to a file for later analysis:
# IMPORTANT: use absolute path to the skill's script directory
python3 ~/.claude/skills/coderabbit/scripts/run_coderabbit.py --output coderabbit-report.txt
Options:
--outputto choose a different file name (saved to.code-review/in repo root)--timeoutto adjust the timeout in seconds (default: 1800)--baseto specify base branch (default: auto-detect from git)
PR Commands
@coderabbitai review # Incremental review
@coderabbitai full review # Complete review
@coderabbitai simplify # Apply targeted simplifications to changed files
@coderabbitai fix merge conflict # Attempt automatic merge-conflict resolution
@coderabbitai pause # Stop auto-reviews
@coderabbitai resume # Resume auto-reviews
@coderabbitai resolve # Mark comments resolved
Severity Matrix
| Severity | Action | Examples |
|---|---|---|
| CRITICAL | Fix immediately | Security, data loss, tenant isolation |
| HIGH | Should fix | Reliability, performance, architecture violations |
| MEDIUM | Judgment call | Maintainability, type safety (quick wins) |
| LOW | Skip | Style/formatting, subjective nits |
AI Agent Workflow Pattern
Implement [feature] and then run CodeRabbit CLI in a background terminal.
Wait for it to complete, then read the report. Fix CRITICAL/HIGH issues. Ignore nits.
Step-by-step:
- Run prerequisites check (see above) — fix any issues before proceeding
- Detect base branch:
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/nullor fall back tomain/master - Run CLI in background:
coderabbit review --prompt-only --type uncommitted --base <branch> --no-color - Reviews take 7-30+ minutes — run in background (
run_in_background=true) - Read output when process completes
- Fix CRITICAL/HIGH findings, skip LOW
- Limit to 2-3 review iterations maximum
Troubleshooting
[error] stopping cli with no details
Run with DEBUG=* to see the actual error:
DEBUG=* coderabbit review --prompt-only --type uncommitted 2>&1 | grep -E "(ERROR|error|GitError)"
Check the log file:
ls -t ~/.coderabbit/logs/ | head -1 | xargs -I{} cat ~/.coderabbit/logs/{}
Common errors
| Error | Cause | Fix |
|---|---|---|
GitError (no details) | No commits in repo | Make at least one commit |
Failed to get commit SHA for branch main | Base branch doesn't exist | Use --base master or --base <your-branch> |
Raw mode is not supported | Interactive mode in non-TTY | Always use --prompt-only or --plain |
[error] stopping cli after auth | Token expired | Re-run coderabbit auth login |
| CLI hangs / no output | Large changeset | Use --type uncommitted to limit scope |
Check auth status
coderabbit auth status
Linked Repositories (2026-02-18)
CodeRabbit can analyze linked repositories during PR review to catch cross-repo breakages (API/type/dependency drift).
- Configure linked repositories in Knowledge Base settings.
- As of 2026-03-11, Pro plans can link up to 2 repositories for Multi-Repo Analysis.
- Use this when changes in one repo affect contracts in another.
- Treat cross-repo findings as HIGH/CRITICAL when they indicate runtime incompatibility.
Dashboard and Reporting (2026-03-12)
- Dashboard metrics are now split between Git platform reviews and IDE/CLI reviews.
- Reporting surfaces now include Git-platform pages like Knowledge Base, Pre-merge Checks, and Reporting, plus IDE/CLI pages like Summary, Organization Trends, and Data Metrics.
- Team filters are available across dashboards; use them when review volume or findings need to be separated by team rather than repository alone.
Simplify Code (Open Beta, Pro) (2026-03-13)
@coderabbitai simplifyruns an agentic cleanup pass over the files changed in the PR.- It focuses on extracting reusable helpers, simplifying conditionals, and removing redundancy while preserving behavior.
- CodeRabbit validates the result with the repository's existing test suite and can either open a follow-up PR or commit directly to the branch.
- Not available for fork PR direct-commit mode.
Chat Access Control (GitHub Orgs) (2026-03-16)
- Use
chat.allow_non_org_members: falsein.coderabbit.yamlwhen PR comment chat must stay limited to organization members. - This affects comment-thread interaction only; automatic PR review behavior is unchanged.
- Default remains
true, so public-repo chat stays open unless you opt out.
Resolve Merge Conflicts (Open Beta, Pro) (2026-03-17)
- CodeRabbit can detect merge conflicts during PR review and offer one-click or comment-triggered resolution.
- Trigger with
@coderabbitai fix merge conflictor the Walkthrough checkbox on GitHub. - It commits a proper merge commit when successful, but declines if the resolution is ambiguous or touches security-critical logic such as auth, encryption, secrets, or access control.
- If any conflicted file is declined, the whole auto-resolution attempt is aborted and no partial commit is created.
Betterleaks (replaces Gitleaks) (2026-03-19)
- Secret scanning now uses Betterleaks (improved detection over Gitleaks).
- The
gitleaksconfig key in.coderabbit.yamlnow controls Betterleaks. - Default remains enabled; existing secret scanning continues without changes.
Slop Detection (2026-03-24)
- Automatically detects low-quality AI-generated PRs on public GitHub repositories.
- Flagged in the PR Walkthrough comment.
- Opt-in label tagging:
reviews:
slop_detection:
enabled: true # default
label: "slop" # optional label
Bitbucket Data Center (2026-03-24)
- Full support for Bitbucket Data Center as a Git platform.
- OAuth 2.0, automated webhook configuration, and full PR review capabilities.
Audit Logs (2026-03-25)
- Tamper-resistant audit log for every administrative action across the workspace.
- Covers seat assignments/removals, role changes, org/repo changes, subscription events, config updates, and API key operations.
- Accessible in Settings UI or via REST API for automated export.
CLI Agent Mode (2026-03-31)
coderabbit review --agentoutputs results in structured JSON format for Skills and agent integrations.
CLI 0.4.x (2026-04-01 to 2026-04-06)
coderabbit auth logincompletes fully in the browser.--agentnow covers auth-related workflows better for agent environments.--dirreplaces--cwdfor subdirectory-scoped reviews.coderabbit statsis available for local review telemetry.
GitLab SSH Access (2026-04-02)
- Self-managed GitLab can use SSH clone credentials instead of HTTPS.
- This is useful when GitLab instances do not expose HTTPS cloning or enforce SSH-only repository access.
Codex Plugin (2026-04-14)
- CodeRabbit is available as a dedicated Codex plugin in addition to the standalone CLI.
- The plugin verifies CLI install/auth, triggers reviews from natural language or
@coderabbit, and keeps findings inside the agent loop for follow-up fixes.
Global Overrides (2026-04-16)
- Organization admins can enforce top-priority configuration overrides across every repository.
- Nested objects merge with lower layers; arrays and scalar values replace them.
Custom Finishing Touch Recipes (Early Access) (2026-02-23)
Define reusable, named "finishing touch" recipes that apply agentic code changes to your PR.
See configuration.md for a minimal example.
Minimal Configuration
# .coderabbit.yaml
language: en-US
reviews:
profile: chill
high_level_summary: true
tools:
gitleaks:
enabled: true
ruff:
enabled: true
Critical Prohibitions
- Do not introduce fallbacks, mocks, or stubs in production code
- Do not broaden scope beyond what CodeRabbit flagged
- Do not "fix" style nits handled by formatters/linters
- Do not ignore CRITICAL findings; escalate if unclear
- Stop and resolve CLI errors (auth/network) before fixing code
- Do not run CLI on a repo with no commits — it will silently crash
Links
Templates
- coderabbit.minimal.yaml — Minimal configuration
- coderabbit.full.yaml — Full example with all options
- agent-prompts.md — Ready-to-use AI agent prompts
FAQ
What does the coderabbit skill do?
CodeRabbit AI code review. Covers CLI usage, .coderabbit.yaml configuration, supported linters/tools, PR commands, and triage workflow. Use when running AI-powered code reviews on pull requests or local changes, configuring review rules, or triaging CodeRabbit findings. Keywords: @coderabbitai, code review, CLI, .coderabbit.yaml.
How do I install coderabbit?
Run npx skills add https://github.com/itechmeat/llm-code --skill coderabbit in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/coderabbit/ (personal) or .claude/skills/coderabbit/ (project).
Which AI agents can use coderabbit?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is coderabbit safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains coderabbit?
It is published by itechmeat in itechmeat/llm-code. It has 85 recorded installs.
More from itechmeat/llm-code
react-testing-library
itechmeat/llm-code
React Testing Library: user-centric component testing with queries, user-event simulation, async utilities, and accessibility-first API. Use when writing React component tests, selecting elements by role/label/text, simulating user events, or testing async UI behavior. Keywords: React Testing Library, @testing-library/react, user-event, queries, render.
openspec
itechmeat/llm-code
OpenSpec artifact-driven workflow. Covers OPSX commands, schemas, project config. Use when applying the artifact-driven workflow (OPSX), planning or reviewing changes based on artifact dependencies, or working with OPSX commands and schema/template resolution. Keywords: OPSX, artifact graph, /opsx:.
mantine-dev
itechmeat/llm-code
Open the skill to read its SKILL.md instructions.
social-writer
itechmeat/llm-code
Open the skill to read its SKILL.md instructions.
base-ui
itechmeat/llm-code
Open the skill to read its SKILL.md instructions.
refine-dev
itechmeat/llm-code
Open the skill to read its SKILL.md instructions.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.