consult-llm

raine's avatarfrom raine

Use it when the user asks to "ask gemini", "ask codex", or "ask in browser"

⭐46stars🔀8forks📁View on GitHub🕐Updated Dec 27, 2025⬇️1downloads

When & Why to Use This Skill

The consult-llm skill empowers Claude to act as a central orchestrator by delegating complex tasks to external LLMs such as Gemini and Codex, or leveraging browser-based AI environments. It optimizes problem-solving by automatically gathering relevant file context using local search tools before consulting external models, ensuring that the insights gained are highly relevant to the specific codebase or project at hand.

Use Cases

  • Multi-Model Code Review: Cross-reference complex logic by sending specific code snippets and context to Codex (gpt-5.1-codex-max) for specialized programming insights.
  • Large-Scale Context Analysis: Utilize Gemini's extensive reasoning capabilities to analyze multiple project files identified through automated glob and grep searches.
  • Browser-Integrated Research: Seamlessly transition to 'Web Mode' when tasks require real-time information or specific features available only in browser-based LLM interfaces.
  • Unbiased Architectural Consultation: Obtain neutral, second-opinion recommendations on system design by providing raw project context to external models without leading prompts.
nameconsult-llm
allowed-toolsRead, Glob, Grep, mcp__consult-llm__consult_llm

When consulting with external LLMs:

1. Gather Context First:

  • Use Glob/Grep to find relevant files
  • Read key files to understand their relevance
  • Select files directly related to the question

2. Determine Mode and Model:

  • Web mode: Use if user says "ask in browser" or "consult in browser"
  • Codex mode: Use if user says "ask codex" → use model "gpt-5.1-codex-max"
  • Gemini mode: Default for "ask gemini" → use model "gemini-2.5-pro"

3. Call the MCP Tool: Use mcp__consult-llm__consult_llm with:

  • For API mode (Gemini):

    • model: "gemini-2.5-pro"
    • prompt: Clear, neutral question without suggesting solutions
    • files: Array of relevant file paths
  • For API mode (Codex):

    • model: "gpt-5.1-codex-max"
    • prompt: Clear, neutral question without suggesting solutions
    • files: Array of relevant file paths
  • For web mode:

    • web_mode: true
    • prompt: Clear, neutral question without suggesting solutions
    • files: Array of relevant file paths
    • (model parameter is ignored in web mode)

4. Present Results:

  • API mode: Summarize key insights, recommendations, and considerations from the response
  • Web mode: Inform user the prompt was copied to clipboard and ask them to paste it into their browser-based LLM and share the response back

Critical Rules:

  • ALWAYS gather file context before consulting
  • Ask neutral, open-ended questions to avoid bias
  • Provide focused, relevant files (quality over quantity)