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.
76
96%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Centralized CodeRabbit CLI execution for automated code review via WSL.
~/.local/bin/coderabbitwsl bash -c '~/.local/bin/coderabbit auth status'Parse $ARGUMENTS to determine review scope:
| Argument | Command | Use Case |
|---|---|---|
uncommitted (default) | --prompt-only -t uncommitted | Pre-commit review |
committed | --prompt-only -t committed --base main | QA story review |
base {branch} | --prompt-only --base {branch} | Pre-PR review against specific base |
wsl bash -c 'cd /mnt/c/path/to/aiox-core && ~/.local/bin/coderabbit {flags}'Timeout: 15 minutes (900000ms) — CodeRabbit reviews take 7-30 min.
Run the command via Bash tool with appropriate timeout.
Classify findings by severity:
| Severity | Action |
|---|---|
| CRITICAL | Must fix immediately — blocks completion |
| HIGH | Recommend fix before merge |
| MEDIUM | Document as technical debt |
| LOW | Optional improvement, note only |
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 userOutput 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 | Cause | Resolution |
|---|---|---|
coderabbit: command not found | Not installed in WSL | wsl bash -c 'pip install coderabbit-cli' |
| Timeout (>15 min) | Large review | Increase timeout, review is still processing |
not authenticated | Auth expired | wsl bash -c '~/.local/bin/coderabbit auth status' |
| Agent | Max Iterations | Severity Filter | Trigger |
|---|---|---|---|
| @dev | 2 | CRITICAL only | Pre-commit (story completion) |
| @qa | 3 | CRITICAL + HIGH | Story review start |
| @devops | 2 | CRITICAL + HIGH | Pre-push / Pre-PR |
Save reports to: docs/qa/coderabbit-reports/
0b32b68
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.