lwlee2608/agent-skills

second-opinion

Use when the user asks for a second-opinion review from another agent (e.g., "get a second opinion", "review with pi", "review using gpt-6-astra", "/second-opinion"), or when review-code runs with --second-opinion.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/lwlee2608/agent-skills --skill second-opinion

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

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 --second-opinion 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

  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's PR
  • Ref range (e.g., main...HEAD), all, codebase, or a path → verbatim
  • Otherwise → diff
  1. Pass the user's model verbatim to `--model`, or omit --model if they named none — the reviewer falls back to its configured default.
  1. Run the reviewer's command from the repo root, substituting target and model. The prompt is the same for both:
   Use the review-code skill to review <target> in this repo. Do not modify any files.

pi:

bash
   pi -p \
     --model <provider/model> \
     --exclude-tools edit,write \
     --name "review: <target>" \
     "<prompt>"

Claude Code:

bash
   claude -p \
     --model <model> \
     --disallowedTools Edit Write NotebookEdit \
     --allowedTools "Bash(git *)" "Bash(gh *)" \
     --no-session-persistence \
     "<prompt>"
  • -p prints only the final answer, so the output is safe to read in the main session.
  • The tool flags keep the reviewer from "fixing" findings while leaving git and gh usable.
  • Reviews can take several minutes — use the longest allowed timeout or run it in the background.
  1. Never resume a session. No -c, -r, --resume, --session, --session-id, or --fork — prior context pollutes the review.
  1. Never inline the diff in the prompt, and never pass `--second-opinion` to the reviewer. review-code resolves the target itself, a large diff breaks shell quoting, and the flag would make the reviewer spawn you back.
  1. Relay the review verbatim. Don't summarize, re-rate, or add your own findings.
  1. On non-zero exit, print the error and stop. Never fall back to a review of your own.

Verification procedure

  1. Every reported finding has a path:line citation. If findings lack them, the reviewer likely never loaded review-code — re-run once, then report. A clean review with no findings needs no citations.
  2. If pi rejects the model, check pi --list-models <name> and retry with a listed name.
같은 저장소의 Skills

더 많은 Skills

모든 Skills