Index of every page on this site: llms.txt
All skills
coderabbitai avatar

/setup

@d8e182b official
by CodeRabbitcoderabbitai/skills222 stars
25
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/coderabbitai/skills/setup

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈62 tokens for metadata: the name and description. ≈1.3k when used: this file. ≈1.8k more on demand in 3 files.

Description uses 3.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈250 characters, or 3.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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 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 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. 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.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts7d3 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    This skill facilitates the setup and configuration of the CodeRabbit AI agent. It downloads its own command-line utility from the vendor's domain, ensuring file integrity through SHA-256 checksums. The skill is designed with security best practices, such as using browser-based authentication instead of handling raw credentials, and it explicitly adheres to the host's existing permission and sandbox constraints.

  • Socket7d

    No alerts

  • Snyk7d

    Risk: LOW · No issues

Signed by skilld at d8e182b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated last week

README badge

README badge for coderabbitai/skills/setup