Skip to content
Agentmart
Submit a tool

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"…

Skill by lwlee2608

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying second-opinion?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/lwlee2608-second-opinion

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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`. Runs a fresh pi session (or Claude Code, when already inside pi) on the review-code skill and relays its review.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/second-opinion

What's inside

Skill name
second-opinion
Description
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`. Runs a fresh pi session (or Claude Code, when already inside pi) on the review-code skill and relays its review.
License
MIT
Instructions
67 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 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`

2. **Pass the user's model verbatim to `--model`**, or omit `--model` if they named none — the reviewer falls back to its configured default.

3. **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.

4. **Never resume a session.** No `-c`, `-r`, `--resume`, `--session`, `--session-id`, or `--fork` — prior context pollutes the review.

5. **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.

6. **Relay the review verbatim.** Don't summarize, re-rate, or add your own findings.

7. **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.

From lwlee2608/agent-skills, MIT.

More from lwlee2608/agent-skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 17, 2026 (13 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lwlee2608

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get second-opinion running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying second-opinion?

CallGet help
Cite this page

second-opinion skill. Agent Mart. https://agentmart.dev/skills/lwlee2608-second-opinion (last updated 2026-10-24)