From second-opinion-skill
Get a second opinion or code review from GitHub Copilot CLI. Use this skill whenever the user says "ask Copilot", "review with Copilot", "Copilot review", "get Copilot's opinion", or wants a Copilot-specific review. The model is optional — Copilot uses its default unless the user specifies one with `--engine=copilot:<model>`.
How this skill is triggered — by the user, by Claude, or both
Slash command
/second-opinion-skill:copilot-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use GitHub Copilot CLI to get a second opinion. All execution goes through `review.js` with `--plan` and `--deny-tool=write` safety flags.
Use GitHub Copilot CLI to get a second opinion. All execution goes through review.js with --plan and --deny-tool=write safety flags.
Find the script with:
printf '%s\n' ~/.claude/plugins/cache/second-opinion-skill/second-opinion-skill/*/bin/review.js 2>/dev/null | sort -V | tail -1
Store the result as REVIEW_SCRIPT. Do not call copilot directly.
Copilot uses its default model if no model is specified. Ask the user whether they want to specify a model or use the default. If they choose to specify, prompt for the model name (they must know it; there is no listing command).
Pass the model inline as --engine=copilot:<model> if provided. Use bare --engine=copilot for the default.
Pass the appropriate flag to review.js (it handles fetching and embeds diff/file content inline before the prompt):
| What to review | Flag |
|---|---|
| Unstaged changes | --diff=unstaged |
| Staged changes | --diff=staged |
| Last commit | --diff=last-commit |
| Branch vs main | --diff=branch |
| Custom range | --diff="HEAD~3..HEAD" |
| Specific file | --file=<absolute-path> |
| General question | (no flag) |
Without model (use default):
"$REVIEW_SCRIPT" --engine=copilot --cwd=<repo-path> [--diff=<spec>|--file=<path>] "<review template>"
With a specific model:
"$REVIEW_SCRIPT" --engine=copilot:<model> --cwd=<repo-path> [--diff=<spec>|--file=<path>] "<review template>"
For the full guidance on how to compose the prompt — when to embed the user's ongoing task / context (Tier A), when to fall back to default templates (Tier B), and when to use --no-embed for very large diffs (Tier C) — read the second-opinion skill. The default templates live there too.
By default review.js applies this engine's read-only / sandbox / plan-mode flags. Pass --unrestricted only when the engine genuinely needs to edit files or run commands; review.js will drop the safety flags and log a stderr warning.
review.js wraps every prompt with <<<SECOND_OPINION_START>>> / <<<SECOND_OPINION_END>>> markers and asks the engine to emit its real answer between them. After reading the log file, extract the text between the markers — that is the clean payload, free of reasoning traces and tool noise. Pass --no-wrap to disable.
When review.js runs from an agent harness (non-TTY stdout), engine output is not streamed to stdout. It's written to a temp file, and stdout receives only a banner with the log path. After the command exits, use the Read tool on the path shown after LOG FILE: to get the full Copilot review. Don't pipe to | tail -N / | head -N — the engine output isn't on stdout in this mode. Pass --log=<path> for a known location; pass --log=- to restore tee-to-stdout behavior.
Show Copilot's full response under a ## Copilot's Take heading (include model name if one was specified: ## Copilot's Take (<model>)). Don't filter or summarize. If issues are raised that need fixing, address them and note what changed.
npx claudepluginhub srwbsw/second-opinion-skill --plugin second-opinion-skillProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.