Skip to content
Code Review
Skill

/setup

Use when setting up CodeRabbit, connecting the plugin, tailoring repository review settings or path instructions, or recovering an expired MCP connection. Guide setup with the packaged CLI and MCP browser sign-in without a separate CLI login.

From plugin
coderabbit
2154 skills2 agents1 command

Claude Code

$ npx -y skills add coderabbitai/skills --skill setup --agent claude-code

SKILL.md

setup.SKILL.md
name: setup
description: Use when setting up CodeRabbit, connecting the plugin, tailoring repository review settings or path instructions, or recovering an expired MCP connection. Guide setup with the packaged CLI and MCP browser sign-in without a separate CLI login.

Set up CodeRabbit

Help the user reach **connected and ready to review**, with optional review settings tailored to their repository. Setup alone does not authorize uploading code or starting a review.

If the user wants to keep the existing CLI-only workflow, explain the review skill's CLI-only option and leave MCP setup unstarted. That route does not need MCP consent or preparation of the pinned runtime.

For a configuration-only request, read [references/repository-config.md](references/repository-config.md) and use the packaged CLI; local configuration does not require MCP sign-in. For general setup, make the connection ready below, then offer repository configuration once. Keep existing suitable settings and avoid delaying an already-requested review with optional configuration.

1. Read this plugin's `cli.json`. Resolve its `launcher` relative to the plugin root, keep it inside that root, and quote its absolute path. For the native Claude package, use the installed root already supplied by `/coderabbit:setup` or the invoking plugin skill; do not read an unresolved placeholder from a shell environment. A directly loaded Claude plugin skill substitutes `${CLAUDE_PLUGIN_ROOT}`; in Codex the root is two directories above the loaded setup skill. For `delivery: download`, follow [runtime preparation](references/runtime-install.md) before using the CLI. For `delivery: bundled`, run `--version` directly. If local execution is unavailable, connect the remote account/PR tools but report that local reviews and local configuration are unavailable; do not reserve a review. A missing or corrupt bundled executable requires reinstalling the complete package. Neither delivery mode installs a global CLI or needs a CLI login. 2. Read `launchMode` in `cli.json`; the package determines the launcher, not a user choice during setup. For `hook`, verify the installed post-tool hook is supported and trusted through the host's controls. It runs the normal CLI review only after an approved plugin-owned `start_code_review` call. Codex hook packages are unavailable until server identity can be verified. If the hook cannot run, stop local-review setup and explain the native trust or compatibility requirement; do not switch to direct execution. Only a `direct` package uses hook-free execution. Confirm permitted local execution, network access and a process interface that can supply stdin separately from command arguments before starting a direct review. Ensure no hook will also launch. When direct execution is selected and safe stdin delivery is unavailable, report that local review is unavailable; do not reserve a review. A trusted hook supplies its own handoff. Do not bypass a denied execution or upload decision. 3. In Claude Code, check the active server in `/mcp` against this package's declared URL: `mcpServers.coderabbit.url` in `.claude-plugin/plugin.json` for the native root package, or `.mcp.json` for an independently assembled package. A manually configured connection at the same endpoint can hide the plugin connection. Local reviews require the plugin-qualified tool `mcp__plugin_coderabbit_coderabbit__start_code_review`; a bare server name cannot prove plugin ownership. If a manual entry shadows it, explain the conflict and let the user disable that duplicate in its native scope, then restart and verify the plugin server. Preserve the entry and unrelated integrations. Renaming alone does not fix endpoint deduplication. Never widen the hook to a bare name, another plugin, or another endpoint. 4. Discover CodeRabbit MCP tools and call `get_me` or `connection_status`. If unavailable or signed out, use the app's CodeRabbit **Connect** or **Reconnect** action to open browser sign-in. Return to the app when it completes, refresh the tool connection if required, and verify status again. Never request a pasted code, inspect credentials, or run CLI authentication. 5. Confirm the returned account and organization, and that `start_code_review` and `get_code_review` are available with review permission. If a review was already requested, resume the packaged code-review skill with every original option, including directory, base, scope, `include_untracked`, and `instructions`. Otherwise confirm the connection is ready and offer to tailor review settings for this repository, or start with “Review my changes.” When the user wants configuration help, read [references/repository-config.md](references/repository-config.md). Do not upload a repository just to test setup.

The plugin needs permission to prepare and run its pinned CLI and access the requested repository and review endpoint. Use the host's normal permissions when needed; do not change sandbox settings or route around a denied permission. A cloud or remote session uses its own available filesystem, not the user's laptop.

If browser sign-in or reconnection fails, show the concrete error and the next supported app action. Do not claim a successful connection from a browser success page alone; verify it through `get_me` or the available connection-status tool.

Reference: [Claude MCP scope precedence](https://code.claude.com/docs/en/mcp#scope-hierarchy-and-precedence).

Read more
@coderabbitai
Ships withcoderabbit

The canonical home for CodeRabbit's agent-native skills and plugin packaging. Use it to install AI-powered code review into 35+ coding agents, Gemini CLI, Antigravity CLI, Claude Code, Cursor, and other supported agent environments.

2154 skills2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
215
Star history of coderabbitai/skills on GitHub, a chart by star-history.com

Other skills on coderabbit.

code-review

code-review

Run CodeRabbit CLI reviews, retrieve saved local or GitHub PR fix prompts, and interpret CodeRabbit authentication and review…

autofix

autofix

Safely review and apply CodeRabbit PR review-thread feedback from GitHub with per-change approval; never execute…

More skills from other plugins.

open-code-review

open-code-review

Performs AI-powered code review on Git changes using the `ocr` CLI from alibaba/open-code-review. Use when the user asks to…

@alibaba@alibabaInstall Skill
build-graph

build-graph

Build or update the code review knowledge graph. Run this first to initialise, or let hooks keep it updated automatically.

@tirth8205@tirth8205Install Skill
hunk-extensions

hunk-extensions

Maps the `hunkdiff/extension` authoring surface for Hunk, the terminal diff viewer — hiding or reordering reviewed files, docked…

hunk6d9.8k
@modem-dev@modem-devInstall Skill

Questions about setup.

Which coding agents can use setup?
setup installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.