skills/coderabbit/SKILL.md
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.
npx skillsauth add itechmeat/llm-code coderabbitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
AI-powered code review for pull requests and local changes.
| 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 |
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:
coderabbit auth logincoderabbit auth login on behalf of the user — it requires interactive browser redirect# 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
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:
--output to choose a different file name (saved to .code-review/ in repo root)--timeout to adjust the timeout in seconds (default: 1800)--base to specify base branch (default: auto-detect from git)@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 | 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 |
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:
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null or fall back to main/mastercoderabbit review --prompt-only --type uncommitted --base <branch> --no-colorrun_in_background=true)[error] stopping cli with no detailsRun 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/{}
| 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 |
coderabbit auth status
CodeRabbit can analyze linked repositories during PR review to catch cross-repo breakages (API/type/dependency drift).
@coderabbitai simplify runs an agentic cleanup pass over the files changed in the PR.chat.allow_non_org_members: false in .coderabbit.yaml when PR comment chat must stay limited to organization members.true, so public-repo chat stays open unless you opt out.@coderabbitai fix merge conflict or the Walkthrough checkbox on GitHub.gitleaks config key in .coderabbit.yaml now controls Betterleaks.reviews:
slop_detection:
enabled: true # default
label: "slop" # optional label
coderabbit review --agent outputs results in structured JSON format for Skills and agent integrations.coderabbit auth login completes fully in the browser.--agent now covers auth-related workflows better for agent environments.--dir replaces --cwd for subdirectory-scoped reviews.coderabbit stats is available for local review telemetry.@coderabbit, and keeps findings inside the agent loop for follow-up fixes.Define reusable, named "finishing touch" recipes that apply agentic code changes to your PR.
See configuration.md for a minimal example.
# .coderabbit.yaml
language: en-US
reviews:
profile: chill
high_level_summary: true
tools:
gitleaks:
enabled: true
ruff:
enabled: true
data-ai
Zvec in-process vector database. Covers collections, indexing, embeddings, reranking, and persistence. Use when embedding Zvec into applications or tuning retrieval/storage behavior. Keywords: Zvec, HNSW-RaBitQ, vector database, ANN.
development
Vitest testing framework: Vite-powered tests, Jest-compatible API, mocking, snapshots, coverage, browser mode, and TypeScript support. Use when writing or configuring tests with Vitest, setting up mocking/snapshots, configuring coverage, or running browser-mode tests. Keywords: Vitest, testing, Vite, Jest, mocking, coverage.
tools
Vite next-gen frontend tooling: dev server, HMR, build, config, plugins, Environment API, Rolldown. Use when setting up or running a Vite project, configuring vite.config.*, authoring plugins, working with HMR or JS API, or managing environment variables and modes. Keywords: vite.config, bundler, Vite, HMR, Rolldown.
development
Orchestrate AI coding with Vibe Kanban: tasks, review, sessions, workspaces, and isolated git worktrees. Use when managing AI-generated code in isolated environments, planning coding tasks, reviewing AI output, or configuring Vibe Kanban workspaces and agents. Keywords: Vibe Kanban, AI orchestration, worktrees.