second-opinion
Installation
SKILL.md
Second Opinion
Get a code review from a different agent by running a fresh headless session of it. The user wants that agent's take, not yours — relay it, don't redo it.
When review-code -2o runs this skill, these rules govern only the relayed review. The caller's own review still runs, and a failure here does not stop it.
Pick the reviewer
If PI_CODING_AGENT is true, you are running in pi — the reviewer is Claude Code (claude). Otherwise the reviewer is pi.
Assume the reviewer is installed, its default model is configured, and the review-code skill is available to it. Don't probe for any of these — if it fails, surface the error and stop.
Rules
- Resolve the target in
review-code's vocabulary. Don't compute the diff yourself.- PR number →
pr <N> - "PR" with no number →
pr <N>for the current branch's PR - Ref range (e.g.,
main...HEAD),all,codebase, or a path → verbatim - Otherwise →
diff
- PR number →