/orca-code-review:orca-review-actionfrom orca-code-review
Installs, reconfigures, troubleshoots, or removes OrcaCode Review — an AI pull-request review GitHub Action that posts inline comments and blocks merges on critical findings.
Ships in orca-code-review. 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.
OrcaCode Review reviews every pull request with an LLM, posts findings as inline comments, and fails a status check when serious issues are found. Model selection lives in OrcaRouter, not in the repo.
It runs as a GitHub Action: a workflow file in the repo plus one secret. Write access is all it takes, and an agent can complete the whole setup.
Severity contract: P0 critical / P1 high → ❌ block. P2 advisory → 💬 comment.
You carry out all of these yourself — writing files, running gh, and asking the
user only for the decisions that are genuinely theirs. Never tell the user to go
run an installer; that is what this skill replaces.
| The user says something like… | You do |
|---|---|
| "set up OrcaCode Review here", "@orcarouter code review 帮我配置这个仓库" | Install |
| "only block P0", "move the config to the dashboard", "raise the diff limit" | Reconfigure |
| "why didn't the review run?", "no comments appeared", "the check is stuck red" | Troubleshoot |
| "remove OrcaCode Review", "turn the review off" | Uninstall |
| "what can OrcaCode Review do?" | Summarize this table and the severity contract. Do not dump the file. |
Jump straight to the section the table above points at. Do not run the install flow on a repo that already has the workflow — go to Reconfigure instead.
Run this first in every route — it tells you which one applies:
git rev-parse --show-toplevel && \
gh repo view --json nameWithOwner,visibility,defaultBranchRef 2>/dev/null; \
ls .github/workflows/ 2>/dev/null | grep -i 'orca\|code-review'
If gh is missing or unauthenticated, everything still works — you just hand the
user web URLs instead of running commands. Say so once and move on.
Confirm all three, and stop with a specific message if any fails:
origin remote.nameWithOwner, visibility, and default branch — later steps need them.Ask these with one AskUserQuestion call. Include the fourth question only when
visibility is PUBLIC — it is a spend-control decision that does not exist on a
private repo, and asking it there is noise.
Q1 — "Where should review settings live?" (settings input)
settings: "true". Models, review mode,
severity rules, and rubric change from the console with no workflow edit. Dashboard
values win unless a with: input differs from its documented default.settings: "false". Skips the dashboard fetch entirely; the
YAML is authoritative and nothing server-side can override it. Pick this for repos
under change control.Q2 — "Which findings should block the merge?" (block-on input)
"P0,P1". The default contract."P0". Blocks only critical issues; P1 still posts inline."". The check always passes. Good for a trial period.Q3 — "What happens when a PR's diff is too large to review?" (on-oversized-diff)
"fail". A diff padded past max-diff-kb /
max-diff-files cannot be used to slip past a required merge gate."pass". The skip notice posts and the check stays green.Q4 — public repos only — "Who gets an automatic review?" (auto-review-authors)
"OWNER,MEMBER,COLLABORATOR,CONTRIBUTOR"."OWNER,MEMBER,COLLABORATOR,CONTRIBUTOR,FIRST_TIME_CONTRIBUTOR,FIRST_TIMER,MANNEQUIN,NONE".Write the list out either way, never leave it unset and never write "*": the
release the shipped workflow pins (v1.6.0) reads unset as everyone and "*" as
nobody, while from v1.7.0 (unreleased) unset means OWNER,MEMBER,COLLABORATOR on
a public repo. An explicit list means the same to both.
Say plainly why Q4 exists: the workflow runs on pull_request_target with your
OrcaRouter secret, so on a public repo a stranger's PR can spend from your wallet.
Also tell them to set a budget + alert on the key at https://www.orcarouter.ai/console/token.
Everything else keeps its default. Do not ask about judge-model, concurrency,
engine-version, or precision-filter during install — see references/inputs.md
if the user brings them up unprompted.
Copy assets/workflow.yml to .github/workflows/orca-code-review.yml, then set the
four values from step 2 under with:. Omit any input the user left at its default —
a workflow that only lists what it overrides stays readable and lets the dashboard own
the rest.
Keep the if: condition and the on: block exactly as shipped. They encode two things
that are easy to break: pull_request_target is what lets a fork PR be reviewed at all,
and the author-association check on issue_comment is what stops any drive-by commenter
from spending your quota with /orcacode-review.
Show the user the final file before committing.
gh, themselvesThe secret must be named exactly ORCAROUTER_API_KEY.
This is the one step you do not perform. Stop, hand the user this command, and wait for them to confirm they have run it:
! gh secret set ORCAROUTER_API_KEY --repo <owner/name>
gh prompts for the value on their terminal, so the key goes from their
keyboard straight to GitHub. It never passes through you.
Never ask them to paste the key into the chat, read it out of a file or an
env var, or pass it on a command line. A pasted key is in the transcript
forever; a key in argv is visible to every process on the machine via ps.
There is no version of this you can do "carefully" — the only safe handling is
not handling it.
They can create or copy a key at https://www.orcarouter.ai/console/token.
Without gh, send them to
https://github.com/<owner>/<name>/settings/secrets/actions/new and have them
add it in the browser.
Then confirm it exists without ever seeing its value:
gh secret list --repo <owner/name> | grep ORCAROUTER_API_KEY
If it is not there yet, do not continue to the test PR — the run will fail on auth and the failure will look like a configuration bug rather than a missing key. Wait, or skip to step 8 and list it as outstanding.
Point the user at OrcaRouter → Apps → OrcaCode Review (https://www.orcarouter.ai/) to turn it on and choose review models. Reviews will not run until it is enabled.
There is no API for this step today, so it is the user's to do.
Commit on a branch, push, and open a PR — do not commit straight to the default branch. The PR is also the test: the workflow must run against a real pull request to prove out.
gh pr create --fill && gh run watch
A passing check blocks nothing until it is required. Walk the user through
Settings → Branches / Rulesets → Require status checks to pass and adding the
review check (the workflow's job), or offer to do it:
gh api -X PATCH repos/<owner>/<name>/branches/<default>/protection/required_status_checks \
-f 'checks[][context]=review'
Require exactly that while the workflow pins v1.6.0: it writes no other check, and a required check that never reports blocks every PR for ever.
From v1.7.0 (unreleased) the action also writes an OrcaCode Review commit
status on the PR head after every run. Once the workflow pins the release that writes it,
require that status instead of the review job: it is the only check an on-demand
/orcacode-review run can update on the PR (GitHub reports that run's own job on
the default branch), and a skipped review leaves it "Not reviewed", so an
unreviewed PR cannot merge.
Confirm before running — branch protection changes affect everyone on the repo.
Tell the user, concretely: the workflow path, the settings you chose, whether the
secret and required check are in place, and the result of the test run. If any step
was skipped (no gh, protection not applied), say which.
End the message with their outstanding actions as copy-pasteable commands — not prose describing them. Anything you could not do yourself belongs here, and the API key is almost always on the list because you are not allowed to do it:
! gh secret set ORCAROUTER_API_KEY --repo <owner/name>
Re-check with gh secret list before claiming it is done. Do not report the
install as complete while the secret is missing: the workflow is in place but
every run will fail on auth, and "installed" would be a lie the user only finds
out about on their next PR.
Read the existing .github/workflows/orca-code-review.yml first, then check whether
settings: "false" is set.
If the dashboard owns settings (settings absent or "true") — most knobs are not
in the file. Review mode, models, exhaustive mode, quiet mode, rubric, and the
fix-first/block-on tuning all live at OrcaRouter → Apps → OrcaCode Review. Send the
user there rather than editing YAML, and explain the precedence rule: an input written
in the file only wins if it differs from its documented default.
If the file is authoritative (settings: "false") — edit it. Ask with
AskUserQuestion which knobs to change, offering only what is relevant:
block-on), exhaustive early-stop (fix-first), and which severities post
inline (Report severities, dashboard-only).max-diff-kb, max-diff-files) and on-oversized-diff.precision-filter, judge-model, judge-threshold).report) and token metering (meter).references/inputs.md has every input, its default, and what it actually controls.
Read it before answering a question about behavior — do not guess a default.
State the before → after for each value you change, and note that the new settings take effect on the next push to any open PR.
Gather evidence before theorizing:
gh run list --workflow orca-code-review.yml --limit 5
gh run view <run-id> --log-failed
references/troubleshooting.md maps each symptom to its cause and fix. The ones that
account for most reports:
trigger is
ready_for_review, the author is outside auto-review-authors, or the app is off in
the dashboard. The job passes; a maintainer's /orcacode-review reviews the head.
From v1.7.0 (unreleased) the OrcaCode Review status reads "Not reviewed" until a
review runs, and on-skipped-review: "fail" fails the job too./orcacode-review answered with "name the commit" — from v1.7.0 (unreleased), on
a PR from a fork the command must name the head commit (/orcacode-review <sha>)
and that commit must still be the head. Read the new commits, then use the command
the reply gives.ORCAROUTER_API_KEY is missing, misnamed, or
scoped to an environment the job cannot read.on-oversized-diff: "fail". Split the PR, or raise max-diff-kb / max-diff-files.@v1 tag) predates scripts/settings.mjs /
scripts/report.mjs. There is no error for this; verify with
git ls-tree <sha> scripts/ against the action repo and pin a newer release commit.Report the actual failing output, not a paraphrase of it.
Confirm with the user first, then in this order:
review (and the OrcaCode Review status,
if it was required — from v1.7.0 (unreleased)) from branch protection before
deleting the workflow. A required check whose workflow no longer exists never reports, and every
PR blocks forever with no way to clear it.rm .github/workflows/orca-code-review.yml, commit, push.ORCAROUTER_API_KEY is harmless to keep and is worth
keeping if they may reinstall. Delete it only if they ask.Do not delete old review comments. They are part of the PR history.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub continuum-ai-corp/orca-code-review --plugin orca-code-review2 skills in this plugin
Other plugins' skills for the same job