opencode-review
Code Review via opencode
Delegate code review to a fresh opencode session running a VelociRouter model (default velocirouter/gpt-5.6-sol). The goal is a second opinion from a different model — don't duplicate the review yourself.
Assume opencode is installed and the review-code skill is available to it. Don't probe for either — if opencode run fails, surface the error and stop.
Rules
-
Resolve the review target. Hand
review-codeits own vocabulary; don't resolve the diff yourself.- User named a PR number →
pr <N> - User named a ref range (e.g.,
main...HEAD,abc123..def456) → use it verbatim - Otherwise →
diff
- User named a PR number →
-
Resolve the model. Default
velocirouter/gpt-5.6-sol. If the user names another model without a provider prefix, usevelocirouter/<name>(e.g.,gpt-5.6-sol-fast→velocirouter/gpt-5.6-sol-fast). If they give a fullprovider/model, use it verbatim. -
Run opencode inside a subagent — never from the main session.
opencode runstreams the model's reasoning and tool logs to stdout; that whole transcript lands in whichever context invoked it. Spawn one general-purpose subagent whose only job is to run the command and hand back the review. -
Start a fresh opencode session. Never pass
-c,-s, or--fork— reusing a prior session pollutes the review with unrelated context. That's the whole point of this skill.