advisor
БесплатноБез исполняемых скриптовНе проверенOn-demand consultation of a higher-tier model (Opus 5.5 or Fable 5.2) from a cheaper executor session. Emulates the native advisor-tool pattern in Claude…
от Roasbeef★ 33 звезды на GitHubОб этом скилле
Advisor
Emulate the advisor-tool pattern inside Claude Code. The native tool pairs a cheap executor (the request model) with a higher-intelligence advisor (a model field on the tool) and bills most tokens at the executor rate. Claude Code has no such tool, so we get the same economics a different way: the main loop stays cheap, and this skill reaches for the expensive model rarely, through a sub-agent.
The whole value proposition is token asymmetry. It only holds if two things are true:
- The main loop is the cheap tier (Sonnet 5.5). If the session is already on Opus/Fable, every turn is paying advisor rates and this skill saves nothing — you are the advisor. Say so and stop. The one exception is a step that is still stuck after you have reasoned it through: spawn the consult at your own tier, since a reader with a fresh context sees what you have stopped seeing.
- The packet is relevant, not raw. A sub-agent starts fresh and cannot share the main loop's prompt cache (caches are model-scoped), so it pays cold context on everything you send. That argues against pasting the whole transcript or unrelated files — not against detail. A thin packet earns thin, generic advice; the discipline is to cut what doesn't bear on the question, then be thorough with what does.
When to consult (the trigger discipline)
The native tool gets called ~once per task because the executor decides when. Encode that judgment — consult at these checkpoints, and otherwise don't:
- Before committing to a plan for a non-trivial task — get the shape reviewed before you spend executor tokens building the wrong thing.
- After 2 failed attempts at the same fix — you're likely missing something the cheap model can't see; ask "what am I missing?"
- Before a risky or irreversible change — a schema migration, a public-API change, a delete, anything with wide blast radius.
- At a genuine fork — two defensible approaches and the choice is load-bearing. When the options are already named, use
/councilinstead.
Do not consult for: things you can verify by reading the code, routine edits, style questions, or anything where you'd accept your own first answer. Over-consulting is the failure mode — it turns the cheap session expensive one call at a time. Aim for ~once per task.
Procedure
1. Pick the tier
Parse --tier=opus|fable from arguments. If absent, choose by difficulty and say which you picked:
opus(Opus 5.5, $5/$25 per 1M in/out) — the default. Half of Fable's cost, still a large jump over a Sonnet executor. Right for most consults.fable(Fable 5.2, $10/$50) — Anthropic's most capable model. Reserve for the hardest, highest-stakes questions where Opus itself might be the thing you're unsure of.
If the choice is genuinely unclear and the stakes are high, ask with AskUserQuestion; otherwise pick and note it in one line.
2. Assemble the consultation packet
Read the relevant files yourself first so you can hand over real excerpts rather than "go read the repo," then include everything that bears on the question:
- Situation — the full picture: what the task is, what you've tried, exactly how each attempt failed, and the constraints and invariants that matter.
- The question — one precise, answerable question or decision. Not "help."
- Evidence — every code snippet that bears on the question, as
file:lineexcerpts, with enough surrounding context for the advisor to actually reason — not just the one changed line. - What you want back — a plan, a decision with rationale, or a list of what you're missing. State it.
(The relevance discipline is invariant #2 above: cut irrelevant bulk, keep relevant detail — no size ceiling.)
3. Spawn the advisor sub-agent
Use the Task tool with model set to the chosen tier (model: "opus" or model: "fable"). Default to subagent_type: "general-purpose" spawned with run_in_background: true — this is the combination confirmed to return an addressable agentId, which you need if there's any chance of a follow-up. Reserve subagent_type: "Plan" (read-only planner) or a plain foreground spawn for a consult you're sure will be one-shot; a foreground Plan spawn returned no agentId in testing, and SendMessage to its description string failed outright with "not reachable." One call — this is a consult, not a fan-out. Prompt it as an advisor:
You are a senior advisor consulted by a cheaper executor model that is doing the actual work. Below is a consultation packet. Return terse, high-leverage guidance — a plan, a decision with a one-line rationale, or the specific thing the executor is missing. Do not write the implementation; the executor will. Be direct, rank your points, and if the executor's framing is wrong, say so first.
[packet]
Follow-up consults on the same task. Default to o
Установить advisor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
TaskSendMessageReadGrepGlobBashAskUserQuestionFAQ
Что делает скилл advisor?
On-demand consultation of a higher-tier model (Opus 5.5 or Fable 5.2) from a cheaper executor session. Emulates the native advisor-tool pattern in Claude Code: keep the main loop on a cheap model (Sonnet 5.5) and call the expensive model rarely, via a focused consultation packet, for a plan/decision/'what am I missing' — not for code. Use when the executor is stuck, before committing to a plan, after repeated failed attempts at the same fix, or before a risky/irreversible change. Invoked via /advisor or when the executor recognizes a consult checkpoint.
Как установить скилл advisor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл advisor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic