CodeRabbit CLI

GitHub

用于在提交前对本地代码变更进行终端原生AI审查,自动发现Bug和安全问题,并支持与AI编码代理的修复循环集成,提升代码质量。

触发场景

需要在commit前检查本地未提交的代码变更 需要检测潜在的安全漏洞或逻辑Bug 需要将代码审查结果反馈给AI编程代理进行自动修复

安装

npx skills add composio-community/awesome-agent-clis --skill CodeRabbit CLI -g -y
更多选项

非标准路径

npx skills add https://github.com/composio-community/awesome-agent-clis/tree/master/coderabbit-cli -g -y

不安装直接使用

npx skills use composio-community/awesome-agent-clis@CodeRabbit CLI

指定 Agent (Claude Code)

npx skills add composio-community/awesome-agent-clis --skill CodeRabbit CLI -a claude-code -g -y

安装 repo 全部 skill

npx skills add composio-community/awesome-agent-clis --all -g -y

预览 repo 内 skill

npx skills add composio-community/awesome-agent-clis --list

SKILL.md

Frontmatter
{
    "name": "CodeRabbit CLI",
    "description": "Review local code changes before commit, surface bugs and security issues, and feed findings back into an AI coding loop. Use when an agent needs to run terminal-native code review on a Git repo and act on the results."
}

CodeRabbit CLI

AI code reviews directly in the terminal before commit. Reviews uncommitted changes, supports agent-friendly output modes, and integrates well with coding-agent fix loops.

Installation

# Install script
curl -fsSL https://cli.coderabbit.ai/install.sh | sh

# Homebrew
brew install coderabbit

The CLI binary is coderabbit, with cr as a short alias.

Authentication

# Browser-based login
cr auth login

# API key login
coderabbit auth login --api-key "cr-************"

CodeRabbit links the CLI to your account so reviews can use plan limits, team learnings, and codebase context where available.

Key Commands

# Review current repo changes
cr

# Plain text output
cr --plain

# Minimal output for AI coding agents
cr --prompt-only

# Review against a non-main base branch
cr --base develop

# Explicitly review uncommitted changes
cr --prompt-only --type uncommitted

The CLI must be run from inside a Git repository.

Agent-Friendly Features

  • cr --prompt-only for minimal agent-oriented output
  • --plain for detailed terminal review output without the full interactive UI
  • Works well in background review/fix loops for coding agents
  • Reviews local, uncommitted changes before code reaches a PR
  • Can apply simple suggested fixes directly from the interactive interface
  • Native guidance for Claude Code and Codex workflows in the docs

Suggested Agent Workflow

Implement the task, then run cr --prompt-only --type uncommitted in the background.
Fix major issues only. Run one final pass after the fixes and stop after two loops.

Use CodeRabbit to detect issues, then use the coding agent to implement the fixes. This is especially useful for race conditions, memory leaks, logic bugs, and security findings that are easier to address before commit.

版本历史

  • 9f765d2 当前 2026-07-24 16:03

同 Skill 集合

aws-cli/SKILL.md
composio-cli/SKILL.md
elevenlabs-cli/SKILL.md
gcloud-cli/SKILL.md
github-cli/SKILL.md
gitlab-cli/SKILL.md
google-workspace-cli/SKILL.md
mailcoach-cli/SKILL.md
neon-cli/SKILL.md
ntn/SKILL.md
planetscale-cli/SKILL.md
posthog-cli/SKILL.md
railway-cli/SKILL.md
ramp-cli/SKILL.md
remotion-cli/SKILL.md
resend-cli/SKILL.md
sendblue-cli/SKILL.md
sentry-cli/SKILL.md
sonoscli/SKILL.md
stripe-cli/SKILL.md
stripe-projects-cli/SKILL.md
supabase-cli/SKILL.md
tavily-cli/SKILL.md
turso-cli/SKILL.md
vercel-cli/SKILL.md
visa-cli/SKILL.md
wacli/SKILL.md
kapso-cli/SKILL.md

元信息

文件数
0
版本
9f765d2
Hash
93cbd4e4
收录时间
2026-07-24 16:03

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 22:27
浙ICP备14020137号-1 $访客地图$