consult
Strategic guidance from the advisor model on a question, with optional focus area and depth. Use before consequential decisions or to review a plan.
by fjwood69★ 32 GitHub stars
Install consult in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Argument Parsing
Parse the user's input for:
- First positional argument →
question --focus: one ofgeneral,architecture,security,performance,style--depth: one ofquick,balanced,deep--file/-f: file path(s) to include as context
Attachment verification (Part 2.1 — fail-loud)
Before calling mori-consult_advisor, scan the question text for attachment references:
- Explicit
(attached: <name>)patterns - Instructions matching a read-the-source intent: "attached", "READ the", "read the actual", "source read", "vs pin", "primary source", "primary-source"
For each referenced file: verify it exists on disk. If any referenced file is absent, abort —
do not call mori-consult_advisor — and report:
CONSULT ABORTED: attached file(s) missing from payload:
- <path> (referenced in question but not found on disk)
Fix: pass --file <path> or ensure the file exists before consulting.
After verifying (or if no attachment references), append a manifest line to the context:
ATTACHED FILES: <name1> (<bytes>B), <name2> (<bytes>B)
or ATTACHED FILES: none if no files were supplied.
Source-dependence classification (Part 2.2 — mode-integrity)
A consult is source-dependent if the question contains any attachment reference OR --file
arguments were supplied.
Depth enforcement
If --file arguments were supplied, --depth MUST be deep. If the user passed quick
or balanced (or omitted --depth), silently coerce to deep and prepend a one-line note
to your response:
Note: depth coerced to deep — --file requires full analysis budget.
File content injection (client-side)
If --file arguments were supplied and all files passed verification:
For each path, use the CC Read tool to read the file content client-side. Build a list of
objects for the file_contents parameter:
[{"name": "path/to/file.py", "content": "<file text>"}, ...]
Record each file's name and byte count (bytes = len(content)) for the ATTACHED FILES: manifest.
Keep the manifest (and any other non-file background) in the context parameter — do not
paste full file bodies into context.
Do NOT pass raw paths in files= — the MCP server runs on remote GCE; local filesystem
paths are inaccessible there. Always pass files=[]; file bodies arrive via file_contents.
Execution (async submit + poll)
consult_advisor is non-blocking: it returns a job_id immediately. Deep consults can take
up to ~300s of Bifrost inference (round-trip often 400–450s). Poll until done.
- Run attachment verification. Abort loudly if any referenced file is missing.
- Classify source-dependence.
- Read each
--filepath client-side; buildfile_contents; appendATTACHED FILES:tocontext. - Call
mori-consult_advisorwithquestion,context,focus,depth,files=[], andfile_contents=[...](or omit / pass[]when no files). - Parse the JSON response:
{"job_id": "...", "status": "pending"}. - Poll
mori-consult_statuswith thatjob_idevery 30–60 seconds (minimum 30s — even small-file consults commonly take ~2 minutes of Bifrost latency; polling faster just burns tool calls) until:{"status": "done", "result": "<advice>"}→ presentresult{"status": "error", "error": "..."}→ report the error loudly- Deadline (~10 minutes for deep; ~4 minutes for quick/balanced) → fail with timeout
- Present the advice (or the failure).
On job not found: in-memory jobs are wiped on server restart/CD — resubmit; do not invent advice.
On error or empty response:
- Not source-dependent: retry once with
--depth quick(new submit + poll). - Source-dependent: do NOT fall back. Return:
CONSULT UNAVAILABLE (source-dependent; fallback would be source-blind).
Options: retry manually, postpone, or proceed without consultation (disclose this).
Empty deep-mode responses must surface as EMPTY_RESPONSE (elapsed: Xs) — not silent success.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the consult skill do?
Strategic guidance from the advisor model on a question, with optional focus area and depth. Use before consequential decisions or to review a plan.
How do I install the consult skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the consult skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…