second-opinion
Installation
SKILL.md
Second Opinion
Get a code review from the model configured in pi by running a fresh pi session. The user wants that model's take, not yours — relay it, don't redo it.
Assume pi is installed, its default provider and model are set in ~/.pi/agent/settings.json, and the review-code skill is available to it. Don't probe for any of these — if pi 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 (gh pr view --json number -q .number) - Ref range (e.g.,
main...HEAD) → verbatim - Otherwise →
diff
- PR number →
-
Pass the user's model verbatim to
--model, or omit--modelif they named none — pi falls back to its configured default. -
Run this from the repo root, substituting target and model: