Skip to content
Development
Command

/consult-ai

Route consultation to Gemini, Codex, or Claude based on problem type and capabilities. Recommends best AI for web research, code analysis, or fresh perspective needs.

From plugin
secondsky-claude-skills
20466 skills46 agents66 commands
Install
$ npx -y skills add secondsky/claude-skills --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/consult-ai

Context preview

What this command does when you run it.

Route consultation to Gemini, Codex, or Claude based on problem type and capabilities. Recommends best AI for web research, code analysis, or fresh perspective needs.

Command definition

consult-ai.md
name: multi-ai-consultant:consult-ai
description: Route consultation to Gemini, Codex, or Claude based on problem type and capabilities. Recommends best AI for web research, code analysis, or fresh perspective needs.

Consult AI (Router)

You are being asked to consult an AI for a second opinion, but the specific AI hasn't been chosen yet.

Your Task

1. **Assess the situation**: What kind of problem is this? 2. **Recommend AI**: Based on problem type, suggest which AI to use 3. **Ask user**: Get confirmation on which AI to consult 4. **Execute**: Route to the appropriate consultation command

---

Step 1: Assess the Problem

**Analyze**:

  • What type of problem is this? (bug, architecture, design, performance, security)
  • What information is needed? (code analysis, web research, fresh perspective)
  • What's the context size? (single file, multiple files, entire codebase)
  • What's the urgency? (quick opinion vs deep analysis)
  • What's the budget? (free vs paid API calls)

---

Step 2: Recommend AI

Based on your assessment, recommend one of the three AIs:

๐Ÿ’Ž Gemini 2.5 Pro

**Best for**:

  • Need web research (latest docs, Stack Overflow, blog posts)
  • Need extended thinking/reasoning (complex problems)
  • Need source grounding (verify facts against documentation)
  • Architectural decisions requiring latest best practices
  • Security concerns needing current vulnerability info
  • Framework/library questions (can search for latest patterns)

**Advantages**:

  • Google Search integration
  • Extended thinking mode
  • Grounding/verification
  • 1M token context window
  • Structured JSON output

**Cost**: ~$0.10-0.50 per consultation (depending on context size)

**Example scenarios**:

  • "How should we structure this microservices architecture?"
  • "Is this JWT implementation secure by 2025 standards?"
  • "What's the recommended way to handle React 19 transitions?"

---

๐Ÿ”ท OpenAI Codex (GPT-4)

**Best for**:

  • General code analysis and review
  • Need OpenAI's reasoning style specifically
  • Repo-aware analysis (automatically scans directory)
  • Code refactoring suggestions
  • Less setup (no manual context specification)

**Advantages**:

  • Repo-aware (automatic context)
  • Strong general reasoning
  • Good at code patterns
  • Clean interface

**Cost**: ~$0.05-0.30 per consultation (depending on codebase size)

**Example scenarios**:

  • "Review this codebase for code smells"
  • "What's causing this performance bottleneck?"
  • "How can we refactor this to be more maintainable?"

---

๐Ÿ”„ Fresh Claude (Subagent)

**Best for**:

  • Quick second opinion
  • Breaking out of mental rut
  • No budget for external APIs
  • Fresh perspective on familiar code
  • Fast turnaround needed
  • Problem is pure logic (no need for web research)

**Advantages**:

  • Free (no additional API cost)
  • Same capabilities as current instance
  • Can use all tools
  • Fast (no external API)
  • Fresh perspective (no conversation bias)

**Cost**: Free (same API call)

**Example scenarios**:

  • "I'm stuck on this bug after 3 attempts, need fresh eyes"
  • "Quick sanity check: is this approach reasonable?"
  • "Am I missing something obvious here?"

---

Step 3: Present Recommendation

**Format your recommendation**:

## ๐Ÿค” AI Consultation Recommendation

**Problem type**: [bug|architecture|design|performance|security|other]

**Recommended AI**: [Gemini|Codex|Fresh Claude]

**Reasoning**:
- [Why this AI is best for this problem]
- [What capabilities are needed]
- [What the AI will provide]

**Alternatives**:
- [Other AI]: [Why it might also work, but not ideal]

**Estimated cost**: [Free|~$X.XX]

**Should I proceed with [recommended AI]?**

Or you can choose:
1. Gemini (web research, thinking, grounding)
2. Codex (repo-aware, OpenAI reasoning)
3. Fresh Claude (free, fast, fresh perspective)

---

Step 4: Execute Consultation

Based on user's choice, internally execute the appropriate slash command:

**User chose Gemini** โ†’ Execute `/consult-gemini` instructions **User chose Codex** โ†’ Execute `/consult-codex` instructions **User chose Fresh Claude** โ†’ Execute `/consult-claude` instructions

**Do not** ask the user which command to run - just execute it directly based on their choice.

---

Decision Matrix

Quick reference for choosing:

| Need | Gemini | Codex | Fresh Claude | |------|--------|-------|--------------| | Web research | โœ… Best | โŒ No | โŒ No | | Extended thinking | โœ… Yes | โš ๏ธ Okay | โš ๏ธ Okay | | Grounding | โœ… Yes | โŒ No | โŒ No | | Repo-aware auto | โš ๏ธ Manual | โœ… Yes | โš ๏ธ Manual | | Fresh perspective | โš ๏ธ Okay | โš ๏ธ Okay | โœ… Best | | Cost | ๐Ÿ’ฐ Paid | ๐Ÿ’ฐ Paid | โœ… Free | | Speed | โš ๏ธ Slower | โš ๏ธ Medium | โœ… Fast | | Latest docs/patterns | โœ… Yes | โŒ No | โŒ No |

---

Example Recommendations

Example 1: Authentication Bug

**Situation**: 401 error on login after token refresh

**Recommendation**: **Gemini**

  • Can search for latest JWT best practices
  • Can verify against current security standards
  • Extended thinking for complex auth logic
  • May find recent CVEs or security advisories

Example 2: React Component Structure

**Situation**: How to organize complex component hierarchy

**Recommendation**: **Codex**

  • Repo-aware (can analyze existing patterns)
  • Good at code organization
  • Can see full component tree automatically
  • Faster for pure code analysis

Example 3: Stuck on Logic Bug

**Situation**: Tried 3 approaches, all fail differently

**Recommendation**: **Fresh Claude**

  • Free and fast
  • Fresh perspective most valuable here
  • No need for external knowledge
  • Break out of mental rut

Example 4: Microservices Architecture Design

**Situation**: Planning how to split monolith into services

**Recommendation**: **Gemini**

  • Can research latest microservices patterns
  • Can find case studies and blog posts
  • Extended thinking for complex trade-offs
  • Grounding for architectural decisions

Example 5: Performance Optimization

**Situation**: App is slow, unclear why

**Recommendation**: **Codex** -

Read more
Ships withsecondsky-claude-skills

142 production-ready skills for Claude Code CLI ๐Ÿ”Œ Platform / Harness Support These plugins ship as Claude Code marketplace plugins (.claude-plugin/ manifests) and Codex CLI plugins (.codex-plugin/ manifests).

Get the whole plugin, auto-invoked