agentleFS
andeeplusandeeplus/aplus/skills/second-opinion/SKILL.md

second-opinion

Skill1 starsChanged 56 days agoMITView on GitHub

A read-only review of a finished change by a model of another family, in at most three rounds, through another agent CLI or a subagent on another model. Use for a second opinion, a cross-model review of a diff, a review by another model or agent, or as final-review's last step.

  • Reads credentials

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use investigate, retro and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    investigate

    Investigate a specific issue report with strict, evidence-driven diagnosis.

    Also in 3 projects that use this

  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 4 projects that use this

  • allieraysSkill

    explain

    Explain what code does line by line so you can understand and learn from it.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 3 projects that use this

  • AWSSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 26 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Effort is a suffix, not a model: Write gpt-6.1-sol@low, not an invented gpt-6.1-sol-light.

    line 27
  2. Distinctive:

    not the one you are running on, and from a different family when your harness offers one.

    line 48
  3. Distinctive:

    not the harness's most expensive frontier model, such as Fable in Claude Code or Astra in Codex.

    line 49
  4. Distinctive:

    never a fast variant.

    line 50
  5. Very specific:

    When your harness's subagents cannot pick a model, run the script again with --harness <claude|codex|cursor|opencode> --model <id> in place …

    line 52
  6. Very specific:

    Round 1: Write notes to a scratch file outside the repository: what your review found, what you fixed, and what you deliberately left, with …

    line 63
  7. Very specific:

    Round 3, optional, only if round 2 led to a code change: Run it as round 2, with notes on each round 2 finding, and --round 3.

    line 67
  8. Very specific:

    Stop: Do not ask again because you disagree with a result or because the last round raised something.

    line 68
  9. Distinctive:

    Clean up: Delete your notes and every prompt file the script wrote: each prompt file holds the full diff, and nothing else removes it.

    line 69

“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Second opinion

A model from another family reviews the change after you have reviewed it yourself. It catches what the authoring model is blind to. It is a pragmatic second opinion, not an opponent: a clean result is a good result, and the reviewer is told it does not have to find anything. The reviewer follows references/brief.md.

Configure

One variable, in the repository's .env or the environment: reviewers as harness:model[@effort], in order of preference. The script picks the first one whose model family differs from yours, so one list serves every harness you work in.

# Grok reviews Claude and GPT; Sol, at low effort, reviews Grok.
SECOND_OPINION_REVIEWERS=cursor:grok-4.7-high,codex:gpt-6.1-sol@low

# From Claude Code, Sol reviews; from Codex, Opus does.
SECOND_OPINION_REVIEWERS=codex:gpt-6.1-sol,claude:opus

# OpenCode reaches several providers: Kimi reviews Claude and GPT; GPT reviews Kimi.
SECOND_OPINION_REVIEWERS=opencode:opencode-go/kimi-k3,opencode:github-copilot/gpt-6.1-sol
  • Family, not harness. Cursor and OpenCode also run Claude and GPT models, and the review is only worth it from a model the author's blind spots do not share. The family comes from the id, after any provider/: claude for Claude ids and opus, sonnet, fable and haiku; gpt for gpt, codex and o<n>; otherwise the first word, such as grok.
  • Effort is a suffix, not a model. Write gpt-6.1-sol@low, not an invented gpt-6.1-sol-light. The suffix is one of minimal, low, medium, high, xhigh or max, and becomes the harness's own option in the table below.
  • Exact ids, never fast. A bare alias can resolve to a fast variant: in Cursor, grok-4.7 means the account's default, such as grok-4.7-high-fast. The script refuses an id containing fast, except [fast=false], and switches off Claude Code's fast mode, so Claude Code's aliases are safe.
  • Ids are not checked. They change often and differ per account, so a wrong id fails in the reviewer's CLI. List the current ones with the command in the table.
  • Login, with a key as fallback. Each CLI uses its own login. When the agent cannot reach it, as in CI or a sandbox, set SECOND_OPINION_CLAUDE_API_KEY, SECOND_OPINION_CODEX_API_KEY or SECOND_OPINION_CURSOR_API_KEY. The script passes it to the reviewer only, as ANTHROPIC_API_KEY, CODEX_API_KEY or CURSOR_API_KEY, so the coding agent's own key is left alone. OpenCode keeps a key per provider, set with opencode auth login.
HarnessRuns headless and read-only as@effort becomesCurrent ids
claudeclaude -p --permission-mode dontAsk, only Read, Grep and Glob--effortclaude --help, under --model
codexcodex exec --sandbox read-only-c model_reasoning_effort=the model picker in codex, or the Codex docs
cursorcursor-agent -p --mode askrefused: the id names it, as in grok-4.7-high or model[effort=low]cursor-agent --list-models
opencodeopencode run --agent plan--variant, per provideropencode models

Script

node --experimental-strip-types <this skill's folder>/scripts/run-review.mts --base <ref> --notes <file> --self <your model id> [--round 1|2|3]

The coding agent runs this itself; the user never has to. Run it from inside the repository, in the background: a review takes minutes. <ref> is the base the change targets, such as origin/<integration branch>, or, for a stacked PR, the branch below it. --self is the model you run on. The script sends the brief, the round, your notes, the diff from the merge base to the working tree, and the paths of untracked files, then prints the reviewer's findings.

  • Exit code 2 means no listed reviewer is from another family. The script has written the prompt to a file and printed its path. Start a fresh, read-only subagent, not one that inherits your conversation, on a model you pick this way, and tell it to follow the prompt in that file; its reply is the review:

    • not the one you are running on, and from a different family when your harness offers one;
    • not the harness's most expensive frontier model, such as Fable in Claude Code or Astra in Codex. In Claude Code, Opus and Sonnet review each other: on Opus, use Sonnet. In Codex, Sol and Luna do;
    • never a fast variant.

    When your harness's subagents cannot pick a model, run the script again with --harness <claude|codex|cursor|opencode> --model <id> in place of --self, using an exact id outside Claude Code. Skip the review, and say so in one line, only when neither works.

  • These rules are only for a model you pick. A listed reviewer runs as set, whatever its tier.
  • Invoke this skill by name rather than only reading this file. Its allowed-tools pre-approves the command above, so a harness that blocks one agent from starting another lets it run. A harness that ignores allowed-tools needs the same rule in its own settings.
  • A change too large for one prompt fails with a message. Review it in parts with a nearer --base.

Flow

There are at most three rounds per change, and the third is optional. The script refuses a fourth.

  1. Review it yourself first, with final-review or the project's own gate. The checks must be green.
  2. Round 1. Write notes to a scratch file outside the repository: what your review found, what you fixed, and what you deliberately left, with a reason for each. The reviewer treats those points as settled. Run --round 1.
  3. Show the review. As soon as the review returns, show the user the reviewer's output in full, unedited, before acting on it. Show every round, including one that finds nothing.
  4. Verify each finding against the code: reproduce the scenario or trace it through. The other model is a reviewer, not an authority. Fix the findings that hold and are easy, then run the checks again. Reject the ones that do not hold, with a one-line reason.
  5. Round 2, only if round 1 led to a code change. Write new notes that list each round 1 finding with what you did: fixed at file:line, or rejected and why. Run --round 2. The reviewer checks only those fixes and what they touch. It does not look for new issues.
  6. Round 3, optional, only if round 2 led to a code change. Run it as round 2, with notes on each round 2 finding, and --round 3.
  7. Stop. Do not ask again because you disagree with a result or because the last round raised something. Verify what it reports, fix what is easy and holds, and list the rest as open findings for the user to decide.
  8. Clean up. Delete your notes and every prompt file the script wrote: each prompt file holds the full diff, and nothing else removes it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.