/second-opinion:efficient-frontier-routingfrom second-opinion
Routes each task to a suitable model tier in Claude Code, Codex, or another agent that can start subagents on a chosen model (for example Gemini CLI or Antigravity CLI), following the user's routing preferences. Keeps small tasks local, delegates discovery, routine coding, and testing to cheaper subagents, and sends difficult decisions and risky reviews to a stronger one. Use when deciding whether to delegate, writing subagent handoffs, or setting routing preferences, or when asked to "save tokens", "use cheaper models", "fan out subagents", "stay inside my quota", or "efficient-frontier-routing help".
Ships in second-opinion. 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.
Match the model to the work in Claude Code, Codex, or another agent that can start subagents on a chosen model (for example Gemini CLI or Antigravity CLI), regardless of the main session's model. A cheaper main session can coordinate routine work and consult a stronger agent; a stronger main session can delegate routine work to cheaper agents. Keep small tasks local when a handoff would cost more than doing the work.
When invoked with help or --help, read configuration help,
explain the controls and examples, then stop. Do not start delegated work or
change settings for a help request. For configuration questions, read the same
reference; for ordinary tasks, skip it.
Apply routing preferences from the user's request and applicable instruction files. For this skill's preferences, use explicit task instructions first, then project preferences, then global preferences, then the defaults below. Host permissions, model availability, and enforced limits still apply. Users can choose the discovery, implementation, and review models; per-agent effort; escalation triggers and retry count; a maximum number of concurrent subagents; and whether escalation requires approval. Honor a configured model ceiling or no-delegation preference. If a required review cannot run within those limits, report the unmet review instead of silently substituting it. These are instructions interpreted by the assistant, not JSON settings or a hard spending cap. Do not edit persistent preferences unless requested.
Write delegated prompts as self-contained packets. Assume the receiving agent has not seen the conversation. Include the repo path, objective, scope, out-of-scope areas, relevant files or search targets, expected return format, verification commands, and stop conditions.
Useful stop conditions:
Treat delegated output as evidence to inspect, not a verdict to forward. Reopen important cited files, skim high-risk diffs, and rerun or spot-check the verification that matters before claiming completion. If delegated agents disagree on a difficult technical question, use a stronger reviewer with the evidence. Keep product choices and scope changes with the user.
Use these as soft suggestions:
A Sonnet main session gets "fix the failing checkout tests and tighten the refund rule while you're there", with project preferences of Haiku for discovery, Sonnet for implementation, Opus at high effort for risky review, and at most two concurrent subagents.
effort: high) a packet
with the refund files, the proposed change, the current tests, and one
question: does this change break any existing refund path?Use the host's available models and the user's mappings to choose the cheapest suitable tier, above or below the main session's model:
| Work | Required capability | Claude examples | Codex and other hosts |
|---|---|---|---|
| Discovery, summaries, factual checks | Fast, accurate extraction | Haiku | A fast available model suited to factual work |
| Scoped implementation and tests | Reliable coding within established patterns | Sonnet | An available coding model suited to the scope |
| Architecture, deep debugging, risky review | Strong reasoning across systems | Opus, or Fable where available | A stronger available reasoning model |
Claude names are examples for Claude sessions, not aliases to pass to Codex. Do not invent Codex model IDs or assume a permanent one-to-one mapping between vendors. Inspect the host's available model choices and use explicit valid names. Stay with the current provider for ordinary routing unless the user asks otherwise; apply the separate different-vendor review rule when needed. Select effort independently from the model and honor the user's effort limits. Do not default all agents to the highest effort.
A stronger main session can make difficult decisions directly. From a cheaper session, delegate the difficult decision or review with a compact evidence packet, then integrate the result and run the required checks. If the host exposes only one model, keep work on it and report any unmet stronger-review requirement. Do not claim a higher model tier merely because effort increased.
Escalate before implementing an unfamiliar architectural change or a change to a high-risk invariant, subject to the user's escalation policy. Also escalate when evidence conflicts or the retry limit is reached (default: two reasonable attempts on the same technical problem). Reuse gathered evidence; do not pay for another broad exploration of the same files.
Treat auth, billing, permissions, security, migrations, data loss, shared state, caching, concurrency, cross-module behavior, public APIs, and user-visible workflows as high-risk. Use the strongest suitable tier for the decision or technical review. When the user requires a review by a different vendor's model for high-risk work, keep that review; it adds a different model's perspective.
In Claude Code, explicitly request the subagent's model in the Agent call or
use a custom agent with model: opus (and effort: high when appropriate).
An unspecified model can inherit the cheaper main model. Use an ordinary
subagent with a focused handoff; a conversation fork uses the main model.
Check the reported model, using /tasks when available. In Codex or another
host, explicitly set the model and reasoning effort through the host's
supported per-agent selector. Use a focused task handoff if inheriting the
full conversation would prevent a model override. Check the reported
selection; if the host cannot select models per agent, report that limitation
instead of simulating routing.
Keep the main session on its chosen model. This is a routing instruction, not an automatic runtime router or a guarantee that the cheaper model will detect every hard case. If the required model is unavailable or restricted, report the limitation instead of silently claiming a stronger review occurred.
"I will keep routine work on the current or a cheaper model and delegate difficult decisions or risky reviews to a stronger agent when needed."
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub stylusnexus/agent-plugins --plugin second-opinion6 skills in this plugin
/agent-watchdogUse when asked to watch, babysit, audit, review, compare, or fix another agent's work from a Codex session ID, Claude Code session/transcript, chat/thread link, PR, branch, log, or pasted run summary. Monitor until the other agent is done or blocked, reconstruct what the user asked, inspect what the agent actually changed and verified, report gaps, and optionally make scoped fixes when the user authorizes repair./debug-feedback-loopConstruct a fast, deterministic pass/fail signal for a bug BEFORE hypothesising — the missing mechanics behind "reproduce the bug". Offers a ladder of loop-construction techniques (failing test, curl/CLI harness, headless browser, trace replay, bisection, fuzz, differential), ranked falsifiable hypotheses, and tagged-instrumentation cleanup. Use when a bug is hard to reproduce, flaky/non-deterministic, lacks an obvious repro, or when getting a reliable signal is the bottleneck. Complements (does not replace) systematic-debugging, which owns root-cause discipline — reach for this when the hard part is getting a signal, not staying disciplined. Use only when the user explicitly asks for it ("/debug-feedback-loop", "build a feedback loop for this bug"); do not start it on your own.
Other plugins' skills for the same job