OpenParable
Skip to content
← Back to skills

Coderabbit Review

Testing & Quality
coderabbit-review

Coderabbit Review is an Agent Skill for testing & quality published in the SynkraAI/aiox-core repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Unified CodeRabbit CLI execution via WSL with self-healing loop. Use this skill when running automated code review before commits, PRs, or QA gates. Handles WSL wrapper, severity filtering, and auto-fix iterations.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/SynkraAI/aiox-core/blob/HEAD/.claude/skills/coderabbit-review/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/coderabbit-review, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

CodeRabbit Review

Centralized CodeRabbit CLI execution for automated code review via WSL.

Prerequisites

  • CodeRabbit CLI installed in WSL at ~/.local/bin/coderabbit
  • WSL distribution: Ubuntu
  • Authenticated: wsl bash -c '~/.local/bin/coderabbit auth status'

Execution

1. Determine Scope

Parse $ARGUMENTS to determine review scope:

ArgumentCommandUse Case
uncommitted (default)--prompt-only -t uncommittedPre-commit review
committed--prompt-only -t committed --base mainQA story review
base {branch}--prompt-only --base {branch}Pre-PR review against specific base

2. Build WSL Command

wsl bash -c 'cd /mnt/c/path/to/aiox-core && ~/.local/bin/coderabbit {flags}'

Timeout: 15 minutes (900000ms) — CodeRabbit reviews take 7-30 min.

3. Execute Review

Run the command via Bash tool with appropriate timeout.

4. Parse Results

Classify findings by severity:

SeverityAction
CRITICALMust fix immediately — blocks completion
HIGHRecommend fix before merge
MEDIUMDocument as technical debt
LOWOptional improvement, note only

5. Self-Healing Loop (if CRITICAL found)

iteration = 0
max_iterations = agent-specific (dev: 2, qa: 3, devops: 2)

WHILE iteration < max_iterations AND critical_issues_remain:
  1. Attempt auto-fix for each CRITICAL issue
  2. Re-run CodeRabbit review
  3. iteration++

IF critical_issues_remain after max_iterations:
  HALT and report to user

6. Report

Output a summary table:

## CodeRabbit Review Results

| Severity | Count | Status |
|----------|-------|--------|
| CRITICAL | N | Fixed/Remaining |
| HIGH | N | Documented |
| MEDIUM | N | Tech debt |
| LOW | N | Noted |

**Decision:** PASS / FAIL

Error Handling

ErrorCauseResolution
coderabbit: command not foundNot installed in WSLwsl bash -c 'pip install coderabbit-cli'
Timeout (>15 min)Large reviewIncrease timeout, review is still processing
not authenticatedAuth expiredwsl bash -c '~/.local/bin/coderabbit auth status'

Agent-Specific Configuration

AgentMax IterationsSeverity FilterTrigger
@dev2CRITICAL onlyPre-commit (story completion)
@qa3CRITICAL + HIGHStory review start
@devops2CRITICAL + HIGHPre-push / Pre-PR

Report Location

Save reports to: docs/qa/coderabbit-reports/