/fx-dev:coderabbit-reviewfrom fx-dev
Adapter for CodeRabbit PR-level review as an optional step in a review workflow. Handles rate-limit degradation and triage integration.
Ships in fx-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
⛔ Load fx-dev:review first (Skill tool: skill="fx-dev:review"). It is the
canonical review procedure — carrying the Scope Brief, triaging in filter order,
sweeping a class, converging, reporting. This skill is the CodeRabbit adapter:
the GitHub App's check and threads, and the rate-limit exception. Where the two
appear to disagree, fx-dev:review wins.
CodeRabbit is PR-level only, and optional. It applies when the repo's CodeRabbit
GitHub App auto-reviews pull requests, which exposes a CodeRabbit check. Most
repos do not have it installed; that is a normal, expected outcome and never a
reason to wait or retry.
There is no local CodeRabbit mode. The
crCLI is no longer used anywhere in the fx-dev SDLC. Codex is the only local pre-PR reviewer — seefx-dev:codex-reviewandfx-dev:devStep 4.5. Do not reintroduce acrcall, and do not treat a missing local CodeRabbit pass as a gap.
args='<PR_NUMBER> — <Scope Brief verbatim>'.
The GitHub App cannot be addressed, so the brief is applied entirely at
triage (fx-dev:review Steps 1–2). Judge a run on triage coverage, not on how few
out-of-scope findings it produced — that signal does not exist for a reviewer that
never saw the brief (fx-dev:review Step 8).
CodeRabbit's 🟠 Major / 🟡 Minor / 🧹 Nitpick labels are an input to
triage, never a verdict.
If the API, GitHub check, or wait script reports a CodeRabbit quota/rate limit: report it once and continue without CodeRabbit. Do not sleep, poll, retry after a cooldown, ask the user to wait, or block PR creation/merge on CodeRabbit throttling alone. Do not consume convergence iterations waiting for a cooldown.
Throttling waives only the review passes that never ran — never anything already delivered. Before recording the skip:
Skipping that leaves an open conversation behind a gate that requires zero unresolved CodeRabbit threads, so the "degraded" PR is still blocked.
Only then mark the pass skipped (rate-limited). This exception applies to
CodeRabbit alone; it does not relax Copilot, CI, tests, or other merge gates.
gh api repos/.../reviews or gh pr view --json reviews to
make merge decisions about CodeRabbit. Use this skill's bundled script.CodeRabbit auto-runs — there is no review-request step.
⛔ Run the waiter in the BACKGROUND, per
fx-dev/skills/dev/references/background-waits.md, then read the log when the
completion notification arrives:
mkdir -p .claude/team/waits && \
bash [SKILL_BASE_DIR]/skills/coderabbit-review/scripts/wait-for-coderabbit-review.sh <PR_NUMBER> \
> .claude/team/waits/rabbit-<PR_NUMBER>.log 2>&1
STATUS= lineThe script's last stdout line is STATUS=<state>; the exit code mirrors it. Branch
on STATUS, not on prose.
| STATUS | Exit | What to do |
|---|---|---|
TERMINAL_PASS | 0 | Check settled clean, zero unresolved threads → the gate is met. Go to Step 1b only if you still need to read findings. |
TERMINAL_FAIL | 1 | Settled with a failing conclusion, or unresolved threads remain → Step 1b. Do not re-run for a better answer. |
PENDING | 2 | Still running at budget expiry. Not a verdict, not a failure. Re-running is safe and correct if you still need it. Never record it as "no findings". |
NOT_CONFIGURED | 3 | The App is not installed for this repo. Terminal — report once and proceed without the PR-level gate. Never retry, never wait. |
ERROR | 4 | Bad args or gh failure; the wait never started → report. If it identifies a rate/quota limit, take the exception above. |
UNRESOLVED_THREADS=unknown means the read failed, not that there are none;
the script fails closed on it. Verify the threads yourself before any merge gate.
The waiter emits a count, not the threads, and Step 2 hands the resolver a
disposition per thread — a count cannot be triaged. Fetch the bodies, then run
fx-dev:review Steps 2–3 over them.
# Replace OWNER, REPO, PR_NUMBER with actual values (GraphQL body — no shell expansion here)
gh api graphql -f query='
query {
repository(owner: "OWNER", name: "REPO") {
pullRequest(number: PR_NUMBER) {
reviewThreads(first: 100) {
nodes {
id
isResolved
path
line
comments(first: 10) { nodes { author { login } body } }
}
}
}
}
}' --jq '[.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false and (.comments.nodes[0].author.login | tostring | contains("coderabbitai")))]'
Assign one of blocking, immaterial, or deferred to each thread that
carries a finding. Yours is authoritative — you hold the Scope Brief; the
resolver does not. A thread whose premise fails gets no disposition; list it
with the reason so the resolver's outdated/incorrect handler takes it
(fx-dev:review Step 3).
Skill tool: skill="fx-dev:rabbit-feedback-resolver",
args="<PR_NUMBER> — <Scope Brief verbatim> — dispositions: <thread id> blocking, <thread id> immaterial, <thread id> deferred (<exclusion>) — false premise (resolver's own handler): <thread id> (<what does not hold>)"
Both suffixes are mandatory. Invoking the resolver with only a PR number makes
it re-derive triage it cannot see, and it will edit for threads you classified
immaterial or deferred. The false-premise suffix is what routes a thread Step 1b
rejected to the outdated/incorrect path instead of a re-triage that loses the
REVIEW.md entry.
CodeRabbit re-reviews after every push, so once Step 2 pushes fixes the check goes
pending again — go back to Step 1. Per fx-dev:review Step 7, repeat Steps
1 → 1b → 2 until all three hold:
CodeRabbit check is terminal with conclusion success (or
skipped / neutral if the repo configures it that way).fx-dev/skills/dev/references/scope-contract.md § Convergence). Conditions 1
and 2 describe the latest check; this one describes the ledger. A blocker an
earlier pass raised and this one did not still blocks, and resolving its thread
does not discharge it: a thread is closed by a reply, a blocker only by a fix.STATUS=TERMINAL_PASS asserts conditions 1 and 2 together. The third is yours to
track, and it is the one a passing check cannot stand in for.
gh api graphql -f query='
query {
repository(owner: "OWNER", name: "REPO") {
pullRequest(number: <PR_NUMBER>) {
reviewThreads(first: 100) {
nodes {
isResolved
comments(first: 1) { nodes { author { login } } }
}
}
}
}
}' --jq '[.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false and (.comments.nodes[0].author.login | tostring | contains("coderabbitai")))] | length'
This skill runs in parallel with fx-dev:copilot-review: launch each
reviewer's waiter in the same message, then handle whichever notification arrives
first (fx-dev/skills/dev/references/background-waits.md).
The SDLC step gating merge on automated review should wait for every configured reviewer to settle — terminal, zero unresolved threads, and no blocking finding left unresolved, for each — and loop the whole group: any reviewer that re-runs after a push re-triggers its waiter → resolver → possibly more commits → the other reviewers' waiters.
All three of Step 3's conditions — the check terminal with a passing conclusion, zero unresolved CodeRabbit threads, and no blocking finding left unresolved across every pass. The third is not implied by the first two: a thread is closed by a reply, a blocker only by a fix, so a passing check over a resolved-but-unfixed blocker is not settlement.
Or CodeRabbit rate-limited, every thread it had already delivered is settled,
and the gate recorded skipped (rate-limited). Throttling alone never blocks merge.
Or STATUS=NOT_CONFIGURED — the App is not installed for this repo. Report once and
proceed; there is no PR-level CodeRabbit gate to satisfy.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fx/cc --plugin fx-dev25 skills in this plugin
/codex-reviewExplicit-use only — invoke when the user explicitly names this skill, or when an active explicitly invoked workflow calls it. Runs a scoped one-shot Codex CLI branch review as an external review adapter./copilot-feedback-resolverExplicit-use only — invoke when the user explicitly names this skill, or when an active explicitly invoked workflow calls it. Processes and resolves existing GitHub Copilot review threads without creating PR-level comments./copilot-reviewExplicit-use only — invoke when the user explicitly names this skill, or when an active explicitly invoked workflow calls it. Requests, waits for, inspects, and settles a head-scoped GitHub Copilot review.Other plugins' skills for the same job