/second-opinion-honesty:second-opinion <run_dir> | <doc> --inputs <file...> | (no args = bundled demo)from second-opinion-honesty
Acts as an adversarial second reader that checks a finished DRAFT's claims against its evidence, catching fabricated numbers, invented IDs, unsupported conclusions, and wrong verdicts. Works with agentic-sop-kit run traces (FULL) or plain documents (DEGRADED).
Ships in second-opinion-honesty. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An independent, skeptical second reader for a finished DRAFT. It checks whether every claim is backed by its evidence and hands back a findings report — which is itself a DRAFT. A human decides.
agentic-workflow-audit./code-review, /security-review.
Second Opinion reads a produced artifact's claims vs its cited evidence, in any domain.【待補】).#1/#2/#3. In FULL mode these are
HARD at confidence 1.0 (the kit trace is authoritative); in DEGRADED mode they are
SOFT at 0.5 (provenance reconstructed from supplied inputs).#4 and fuzzy #1. It is capped
(SECONDOP_MAX_LLM_PASSES, default 1) and every finding is clamped to SOFT / advisory /
confidence ≤ 0.5, dropped unless it cites a verbatim draft span (or NO SOURCE), and
suppressed if it re-litigates a slot the deterministic layer already settled./second-opinion-honesty:second-opinion [args])The skill orchestrates the deterministic pass → your capped advisory pass → the code-enforced fold-in → the human STOP. Modes:
<run_dir> — FULL (an agentic-sop-kit run dir that finished OK_FOR_REVIEW;
a FAILED run is refused with exit 2 — report that, never review it as finished)<doc> --inputs <file...> — DEGRADED (any document)You are an independent, skeptical second reader: attack the DRAFT, never approve or reject it.
run_manifest.json → FULL mode (uses the run's trace).--inputs <file...>) → DEGRADED mode (you supply the sources).secondop/examples/pharma_stability).Let ROOT="${CLAUDE_PLUGIN_ROOT}" and OUT="${CLAUDE_PROJECT_DIR:-.}/.second-opinion-runs" (project-local,
so the optional ack Stop-hook finds the review). Arguments: $ARGUMENTS
Run the deterministic checker. It writes second_opinion.{json,md} and an LLM envelope
llm_input.json into the run's output dir.
PYTHONPATH="$ROOT" python3 -m secondop.review --run-dir <run_dir> --out-base "$OUT"PYTHONPATH="$ROOT" python3 -m secondop.review --doc <doc> --inputs <file...> --out-base "$OUT"Note the output dir it prints (the wrote … lines). Call it RUNOUT.
If it exits 2 on a run dir (not a finished OK_FOR_REVIEW run, e.g. FAILED), show the
refusal message and STOP — never review a failed run as if it had finished.
Read RUNOUT/llm_input.json. It gives you draft_text, declared_sources, claims,
already_settled, focus, and rules. Acting as an adversary:
#4 (conclusion overreach) and fuzzy #1 (verdicts/limits the deterministic
layer could not parse). The deterministic layer already owns #1/#2/#3 where it could.rules: every finding must quote a verbatim span from draft_text
in claim, and justify it in evidence by citing a declared_sources token or stating
NO SOURCE. Do not invent input values. Do not re-flag anything in already_settled.confidence ≤ 0.5 (the code clamps it regardless).Write your candidate findings to RUNOUT/llm_candidates.json, conforming to
secondop/redteam_schema.json (an object {"findings": [...]}). If you find nothing
beyond what the deterministic layer caught, write {"findings": []}.
Re-run review with your candidates. The code clamps them to SOFT/advisory, drops any that
fail the evidence gate, suppresses re-litigation of settled slots, and enforces the pass cap
(SECONDOP_MAX_LLM_PASSES, default 1):
PYTHONPATH="$ROOT" python3 -m secondop.review --run-dir <run_dir> --advisory "$RUNOUT/llm_candidates.json" --out-base "$OUT"PYTHONPATH="$ROOT" python3 -m secondop.review --doc <doc> --inputs <file...> --advisory "$RUNOUT/llm_candidates.json" --out-base "$OUT"Show the final RUNOUT/second_opinion.md. Summarize: HARD (deterministic) vs SOFT
(advisory) counts, and any accusations the evidence gate dropped (transparency that the
red-team was itself checked). Then STOP with an explicit, human-owned decision —
do not approve, reject, or file anything yourself:
✋ Human decision required. Second Opinion is advisory and does not decide. Choose: [Approve the draft] · [Send back for fix] · [Override a specific finding (give a reason)]
【待補】; never invent numbers / IDs / dates / conclusions
— and the red-team itself may not invent accusations (the evidence gate enforces this).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub s0912758806p/agentic-sop-to-work --plugin second-opinion-honestyOther plugins' skills for the same job