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

  1. 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
  2. Pass the user's model verbatim to --model, or omit --model if they named none — pi falls back to its configured default.

  3. Run this from the repo root, substituting target and model:

Installs
3
GitHub Stars
1
First Seen
2 days ago