agentleFS
alexuraxinalexuraxin/retainer/skills/second-opinion/SKILL.md

second-opinion

Skill3 starsChanged 3 days agoMITView on GitHub

Call before an irreversible or costly step: a data schema, publishing outward, a teardown, an architecture choice, a release. Trigger words (RU+EN): уверен, точно так, необратимо, миграция, удалить насовсем, выкатываем, а вдруг сломаем / sure, is that right, irreversible, migration, delete for good, we're shipping, what if we break it. Calls ANOTHER model (DeepSeek) for an independent view. COMPLEMENTS code review, does not replace it; the answer is a hypothesis, verify it.

  • Reads credentials

48 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 10 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

  • 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 6 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 41 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    before an irreversible step (a migration with data loss, a merge into main, a wide refactor).

    line 17
  2. Very specific:

    when the agent and code-reviewer diverge or you are unsure yourself.

    line 19
  3. Distinctive:

    Do NOT call on routine (small edits, low cost of error) — it costs time/money.

    line 22
  4. Distinctive:

    No key/an error → it says so gently and does not crash the cycle (it is an extra check) — same in CLI and MCP.

    line 39
  5. Very specific:

    Not on every task — only an important/irreversible step or a hard bug (the cost of error is high).

    line 52

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

An independent look by another model (DeepSeek) at a risky step. Your own Claude subagent would give correlated mistakes — the value is precisely in a different model.

THIS IS NOT a replacement for code review. code-reviewer stays mandatory and primary. The second opinion is an extra check on top, for the important/contested. It cancels nothing in the cycle.

When to call

  • before an irreversible step (a migration with data loss, a merge into main, a wide refactor);
  • on a high-stakes architectural decision (a new seam/contract, a choice of approach);
  • when the agent and code-reviewer diverge or you are unsure yourself;
  • by the owner's explicit command ("take a second opinion on X").

Do NOT call on routine (small edits, low cost of error) — it costs time/money.

How to call

Two ways — same logic (second_opinion()), pick by taste:

Native MCP tool (if the MCP server is connected — .mcp.json in the plugin): call the second_opinion tool with arguments question (required) + context (+ optional model). No Bash-command construction — Claude calls it itself.

CLI (always works, without MCP):

python3 "${CLAUDE_PLUGIN_ROOT}/bin/second_opinion.py" "a concrete question" <<< "relevant context (diff/plan/finding)"
# default model deepseek-reasoner; for a fast one — --model deepseek-chat
  • Question — concrete ("is this seam drawn correctly?", "what am I missing in this refactor?").
  • Context — the target chunk (diff, plan, a contested finding), NOT the whole repository.
  • No key/an error → it says so gently and does not crash the cycle (it is an extra check) — same in CLI and MCP.

The DeepSeek key — env DEEPSEEK_API_KEY or ~/.config/retainer/deepseek_key (chmod 600), outside git.

How to accept the answer

An opinion = a hypothesis, not an authority. Read → check against the code/reality → weigh → decide yourself. Not "DeepSeek said so — I do it". [[receiving-review]] applies (verify before adopting, one at a time, unclear → clarify). The synthesis is yours.

When NOT to apply

Not on every task — only an important/irreversible step or a hard bug (the cost of error is high). Do not run routine through a second opinion. And it is an ADDITION to code-reviewer, NOT a replacement (your own reviewer first, then the cross-model one).

Related: [[task-cycle]] (an important/irreversible step), [[diagnosing]] (a second opinion on a hard bug).

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.