/carl-tools:second-opinionsfrom carl-tools
Runs a time-bounded, read-only independent code review using a different-company model CLI before committing or merging. Mandatory for complex, security-critical, or performance-sensitive changes.
Ships in carl-tools. 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.
Read when SKILL.md points to them.
Get an independent reviewer on a change before committing or merging. The reviewer is a collaborator, not an authority. A timeout or CLI failure is a failed review, never approval.
Mandatory for complex multi-file changes, security or PHI work, performance-critical code, design decisions with real tradeoffs, and work that has consumed more than two hours. Skip trivial fixes.
In-session subagents need no extra permission and are the default for every role below.
Launching a separate agent CLI (claude -p, codex exec, omp -p, pi -p) is different:
it spends the user's quota and sends project content to that provider. Before the first launch:
${XDG_CONFIG_HOME:-$HOME/.config}/agent-skills/external-clis.json if it exists.
A CLI listed under skills.second-opinions.allow or top-level allow may run without asking;
one listed under deny (either level) must not run. Skill-level entries win.command -v claude codex omp pi, then ask once: which installed CLIs may this
skill launch, and should the answer apply to this run, always for this skill, or always?{"allow": ["codex"], "deny": [], "skills": {"second-opinions": {"allow": ["claude", "codex"]}}}.timeout 600 ...). Report which CLI and model actually answered. If none
ran, say the outside cross-check did not happen rather than presenting subagent output as one.Equivalent one-shot forms: claude -p --model <m> "<prompt>",
codex exec -m <m> --sandbox read-only "<prompt>", omp -p --model <m> "<prompt>", pi -p "<prompt>".
Prefer a CLI from a different company than the current session for outsider roles.
Pick a capability tier, not a pinned model name: fast, balanced, or strongest. Use each CLI's
current model list or default to map the tier; omit --model if unsure.
For this skill, prefer the strongest tier on a different company than the current session
(Codex session: claude; Claude session: codex). If only same-company CLIs are allowed, ask
before using one, and label the result "same-company review". Do not chain automatic fallbacks:
if the chosen CLI fails or times out, say so and ask which to try next.
Decide exactly what is reviewed and state it before launching. Never review a bare SHA.
git status --short, git diff HEAD (plus untracked files, listed by name).git merge-base HEAD <base>, then git diff <base>...HEAD. Default base is
main or master, whichever exists.git diff OLD..NEW or git show <sha> for each requested commit.Capture the absolute worktree path, branch, the changed-file list (--stat), and the complete diff.
If the diff is empty or the scope is ambiguous, stop and ask. Do not review a guess.
Write the prompt to a temp file (scope, project instruction files, changed-file list, full diff, the
review lens below, and "do not edit files or run mutating commands"). Run exactly one approved CLI
from the worktree (omp and pi forms are in the policy above):
timeout 600 codex exec --sandbox read-only "$(cat "$PROMPT")"
timeout 600 claude -p "$(cat "$PROMPT")" # add --model <strongest> only if you know it
Large diffs: give the changed-file list plus the diff path and let the reviewer read it, rather than exceeding argument limits. Exit code 124 means timeout.
If review-watch is installed, it wraps this whole flow (scope, heartbeat, process-tree kill);
run it with no arguments to see its usage. It is a shortcut, not a requirement, and it selects
providers on its own, so confirm its choice matches the CLI permission above.
Check correctness and regressions first, then security/PHI, real outbound effects, performance, and
maintainability. Return PASS or NEEDS CHANGES. Every finding needs severity, path, line, concrete
evidence, and the smallest fix.
State: which CLI and model reviewed, same- or cross-company (cross-model yes/no), exact scope, exit status, verdict, and findings. Verify each finding against the source before acting; classify as accept, reject (with reason), or needs decision. On timeout, failure, or empty output, report "review did not happen" and never present it as a pass. Record this in the review note or merge receipt.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
Generated from the plugin's indexed repository (carlkibler/agent-skills) — no native marketplace selected
npx claudepluginhub p/carlkibler-carl-skills26 skills in this plugin
/agent-log-forensicsAnalyze Claude/Codex logs for behavior patterns, repeated friction, and Toolsmith gaps./changelog-writerDraft plain-language changelog entries from Git history, optionally updating CHANGELOG.md./chezmoi-driftCheck chezmoi dotfiles for drift, unmanaged files, and broken skill links./contacts-unifyMerge and dedupe macOS, iCloud, Google, Zoho, or VCF contacts with reviewable provenance./decision-logRecord a technical or product decision, alternatives, and rationale for future agents./dependency-pinningAudit Docker, CI, and language dependencies for SHA/digest pinning and cooldowns.