agentleFS
iyazerskiiyazerski/dev-flows-plugin/skills/second-opinion/SKILL.md

second-opinion

Skill0 starsChanged 4 months agoMITView on GitHub

Consult the other two LLMs for an independent second opinion on diffs, plans, or design approaches. Use when the user asks for a second opinion, external review, or sanity check from other AI models.

  • Deletes or force-pushes

45 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use insecure-defaults, variant-analysis and 9 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.
  • allanninalSkill

    insecure-defaults

    Detects fail-open insecure defaults (hardcoded secrets, weak auth, permissive security) that allow apps to run insecurely in production. Use when auditing security, reviewing config management, or analyzing environment variable handling.

    Also in 3 projects that use this

  • allanninalSkill

    variant-analysis

    Find similar vulnerabilities and bugs across codebases using pattern-based analysis. Use when hunting bug variants, building CodeQL/Semgrep queries, analyzing security vulnerabilities, or performing systematic code audits after finding an initial issue.

    Also in 3 projects that use this

  • shmehroSkill

    ux-audit

    Perform a heuristic UX audit on a UI screen, flow, or component description

    Also in 3 projects that use this

  • sunnyclinches44Skill

    explain

    Explains code using real-world analogies and ASCII diagrams

    Also in 5 projects that use this

  • photon-groveSkill

    unslop

    Detects and rewrites generic, overly polished, or AI-sounding prose while preserving meaning. Use when the user asks to "unslop", humanize, de-AI, tighten, or review whether writing sounds generated.

    Also in 4 projects that use this

  • OpenAISkill

    dispatching-parallel-agents

    Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 38 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never invoke this skill if you are already answering a second opinion or review request from another agent.

    line 14
  2. Very specific:

    All peers run in pi with these fixed models and thinking levels:

    line 18
  3. Distinctive:

    Run peers non-interactively with standard tool permissions so they can run tests and inspect code, but instruct them via prompt not to edit …

    line 40
  4. Distinctive:

    Create a private temp directory to avoid collisions:

    line 42
  5. Very specific:

    Run one peer ($NAME is claude, gpt, or gemini):

    line 48
  6. Distinctive:

    If there are multiple unrelated uncommitted changes in the repository, do not review the entire diff.

    line 62
  7. Distinctive:

    Specific files: If the current feature is in a subset of files:

    line 63
  8. Distinctive:

    Staged changes: If the feature changes are already staged:

    line 67
  9. Very specific:

    Design / Approach: write proposed architecture or plan to $TMP_DIR/diff.patch.

    line 76
  10. Distinctive:

    Write the instructions first, then append the diff or approach text.

    line 79
  11. Distinctive:

    Run the command for each available peer model, in parallel when possible, and capture their responses.

    line 95

“Common” is measured: kept by at least 6 in 10 of the 38 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

Get independent critiques on a proposed design, architecture, or git diff by consulting the other two model families through the pi harness.

The three supported model families are Claude, GPT, and Gemini. The host identifies its own model family, asks the other two via pi, then presents their feedback and a concise synthesis.

Recursion Guard

Never invoke this skill if you are already answering a second opinion or review request from another agent. Only the host agent in the primary chat session calls peer models.

Peer Models

All peers run in pi with these fixed models and thinking levels:

FamilyModelThinking
Claudeclaude-opus-5-5medium
GPTgpt-6.1-solhigh
Geminigemini-3.8-flashhigh

Determine the host family from your own model (in pi, check $PI_MODEL): claude-* is Claude, gpt-* is GPT, gemini-* is Gemini. Never call your own family. Only invoke the other two.

Availability

Some models may not be configured. Check each peer before running it. pi --list-models search is fuzzy, so match the model column exactly:

pi --list-models "$MODEL" | awk -v m="$MODEL" '$2 == m { found = 1 } END { exit !found }'

Skip unavailable peers and mention it in the report. If only one peer is available, use that single opinion. If none are available, tell the user and stop.

Verified CLI Command

Run peers non-interactively with standard tool permissions so they can run tests and inspect code, but instruct them via prompt not to edit repository files. They use their installed skills for full project context.

Create a private temp directory to avoid collisions:

TMP_DIR=$(mktemp -d)

Run one peer ($NAME is claude, gpt, or gemini):

pi --model "$MODEL" --thinking "$THINKING" --exclude-tools edit,write --no-session -p < "$TMP_DIR/prompt.txt" > "$TMP_DIR/${NAME}_out.txt"
  • --model / --thinking: Pin the peer model and reasoning level from the table above.
  • --exclude-tools edit,write: Keeps bash and read active for running tests and inspections while preventing source file edits.
  • --no-session: Runs ephemerally without persisting session files.

Workflow

  1. Collect Context:
    • Scope Selection (Mixed Diffs): If there are multiple unrelated uncommitted changes in the repository, do not review the entire diff. Isolate only the changes relevant to the current conversation:
      • Specific files: If the current feature is in a subset of files:
        git add -N <paths> && git diff HEAD -- <paths> > "$TMP_DIR/diff.patch" && git reset > /dev/null 2>&1
      • Staged changes: If the feature changes are already staged:
        git diff --cached > "$TMP_DIR/diff.patch"
      • Entire working tree (single feature):
        git add -N . && git diff HEAD > "$TMP_DIR/diff.patch" && git reset > /dev/null 2>&1
      • Branch PR Diff: determine base ref (origin/main, origin/master, or user-specified), then capture git diff <base>...HEAD > "$TMP_DIR/diff.patch".
      • Design / Approach: write proposed architecture or plan to $TMP_DIR/diff.patch.
  2. Prepare Prompt: Write the instructions first, then append the diff or approach text. Explicitly state the target feature scope and instruct the peer not to edit files or trigger a second opinion:

    cat <<'EOF' > "$TMP_DIR/prompt.txt"
    Your task is to provide a text review only. Do not edit, patch, or modify any repository files. Do not invoke the second-opinion skill. You may use bash to inspect code, run tests, or check dependencies if needed.
    
    Target feature / scope under review:
    <brief description of what was worked on in this session; ignore unrelated diffs>
    
    Critique the following content. Focus on bugs, edge cases, performance issues, or architectural flaws. Be concise and prioritize high-impact findings:
    
    EOF
    cat "$TMP_DIR/diff.patch" >> "$TMP_DIR/prompt.txt"
  3. Run Available Peers: Run the command for each available peer model, in parallel when possible, and capture their responses. If one peer fails, report the error and proceed with the other.
  4. Clean Up: Remove temporary directory:

    rm -rf "$TMP_DIR"
  5. Synthesize & Report:
    • Individual Findings: Bullet-point summary of each peer model's key points. Note any skipped or failed peers.
    • Consensus: Items both peers agreed on (skip with a single peer).
    • Disagreements / Unique Points: Noteworthy issues caught by only one peer (skip with a single peer).
    • Host Recommendation: Your final takeaway or suggested changes.

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.