
multi-ai-consultant
Second-opinion consultations with Gemini, OpenAI Codex, or a fresh Claude instance, with a synthesized comparison.
- version
- 3.12.0
- GitHub stars
- 250
What it does
- Adds 4 commands (
/consult-gemini,/consult-codex,/consult-claude, and/consult-ai) that route a question to a chosen or auto-selected external AI - Covers the consultation flow: Claude proposes a second opinion after a failed attempt, runs it with your approval, then returns a five-part synthesis
- Enforces a privacy filter that respects
.gitignoreand.geminiignoreand shows what context will be sent before each call - Designed for debugging stuck problems, architecture choices, and security reviews where an independent perspective is useful
Consult external AIs (Gemini 2.5 Pro, OpenAI Codex, Claude) for second opinions. Use for debugging failures, architectural decisions, security validation, or need fresh perspective with synthesis.
Add marketplace
/plugin marketplace add secondsky/claude-skillsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install multi-ai-consultant@claude-skillsRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceMulti-AI Consultant
Consult external AIs for second opinions when Claude Code is stuck or making critical decisions.
What This Skill Does
This skill enables future Claude Code sessions to consult other AIs when:
- Stuck on a bug after one failed attempt
- Making architectural decisions
- Security concerns need validation
- Fresh perspective needed
Key innovation: Uses existing CLI tools (gemini, codex) instead of building MCP servers - much simpler and more maintainable.
When to Use This Skill
Automatic Triggers (No User Action Needed)
Claude Code should automatically suggest using this skill when:
-
After 1 failed debugging attempt
- Tried one approach to fix a bug
- Still not working or different error
- → Suggest: "Should I consult [Gemini|Fresh Claude] for a second opinion?"
-
Before architectural decisions
- Significant design choices (state management, routing, data flow)
- Framework selection
- Database schema design
- → Auto-consult (mention to user): "Consulting Gemini for architectural validation..."
-
Security changes
- Authentication logic
- Authorization rules
- Cryptography
- Input validation
- → Auto-consult: "Consulting Gemini to verify security approach..."
-
When uncertain
- Multiple valid approaches
- Trade-offs not clear
- Conflicting advice in documentation
- → Suggest: "Would you like me to consult another AI for additional perspective?"
Manual Invocation (User Commands)
User can explicitly request consultation with:
/consult-gemini [question]- Gemini 2.5 Pro with thinking, search, grounding/consult-codex [question]- OpenAI GPT-4 via Codex CLI (repo-aware)/consult-claude [question]- Fresh Claude subagent (free, fast)/consult-ai [question]- Router that asks which AI to use
The Three AIs
| AI | Tool | When to Use | Special Features | Cost |
|---|---|---|---|---|
| Gemini 2.5 Pro | gemini CLI | Web research, latest docs, thinking | Google Search, extended reasoning, grounding | ~$0.10-0.50 |
| OpenAI GPT-4 | codex CLI | Repo-aware analysis, code review | Auto-scans directory, OpenAI reasoning | ~$0.05-0.30 |
| Fresh Claude | Task tool | Quick second opinion, budget-friendly | Same capabilities, fresh perspective | Free |
For detailed AI comparison: Load references/ai-strengths.md when choosing which AI to consult for specific use cases.
How It Works
Architecture
Claude Code encounters bug/decision
↓
Suggests consultation (or user requests)
↓
User approves
↓
Execute appropriate slash command
↓
CLI command calls external AI
↓
Parse response
↓
Synthesize: Claude's analysis + External AI's analysis
↓
Present 5-part comparison
↓
Ask permission to implement
The 5-Part Synthesis Format
Every consultation must follow this format (prevents parroting):
- 🤖 My Analysis - Claude's original reasoning and attempts
- 💎/🔷/🔄 Other AI's Analysis - External AI's complete response
- 🔍 Key Differences - Agreement, divergence, what each AI caught/missed
- ⚡ Synthesis - Combined perspective, root cause, trade-offs
- ✅ Recommended Action - Specific next steps with file paths/line numbers
End with: "Should I proceed with this approach?"
Setup
For complete installation guide: Load references/setup-guide.md when installing CLIs, configuring API keys, or setting up templates.
Quick setup:
- Install CLIs:
bun add -g @google/generative-ai-cli(Gemini),bun add -g codex(Codex, optional) - Set API keys:
export GEMINI_API_KEY="...",export OPENAI_API_KEY="..." - Install skill: Symlink to
~/.claude/skills/multi-ai-consultant - Copy templates:
GEMINI.md,codex.md,.geminiignoreto project root - Verify:
gemini -p "test",codex exec - --yolo
Get API keys:
Usage
For detailed examples: Load references/usage-examples.md when learning consultation workflows or seeing real-world scenarios.
Quick examples:
- Bug: After 1 failed attempt →
/consult-geminifor web-researched solution - Architecture: Design decision →
/consult-geminifor latest best practices - Code review: Refactoring validation →
/consult-codexfor repo-aware consistency check - Quick opinion: Sanity check →
/consult-claudefor free fresh perspective
5 detailed examples available:
- JWT authentication bug (saved ~30 min, found platform-specific issue)
- State management choice (informed decision with 2025 patterns)
- Refactoring review (found 3 consistency issues)
- Security validation (found 2 critical issues via OWASP 2025)
- Multi-AI workflow (high-stakes database choice)
Slash Commands
For complete command reference: Load references/commands-reference.md when needing detailed syntax, options, or cost tracking information.
Quick command overview:
/consult-gemini [question]
- Use: Web research, latest docs, extended thinking
- Features: Google Search, grounding, thinking mode
- Cost: ~$0.10-0.50
- Example:
/consult-gemini Is this JWT secure by 2025 standards?
/consult-codex [question]
- Use: Repo-aware analysis, code review
- Features: Auto-scans directory, consistency checks
- Cost: ~$0.05-0.30
- Example:
/consult-codex Review for performance bottlenecks
/consult-claude [question]
- Use: Quick second opinion, budget-friendly
- Features: Free, fast, fresh perspective
- Cost: Free
- Example:
/consult-claude Am I missing something obvious?
/consult-ai [question]
- Use: Router (recommends which AI to use)
- Features: Analyzes question, suggests best AI
- Cost: Varies by chosen AI
- Example:
/consult-ai How should we structure this architecture?
Templates
Templates customize AI behavior for consultations (auto-loaded from project root):
- GEMINI.md - System instructions for Gemini (enforces 5-part format, web search)
- codex.md - System instructions for Codex (enforces repo-aware analysis)
- .geminiignore - Privacy exclusions beyond
.gitignore - consultation-log-parser.sh - View consultation history (optional)
Installation: Copy from ~/.claude/skills/multi-ai-consultant/templates/ to project root
Privacy & Security
Automatic protection:
- Both CLIs respect
.gitignoreautomatically - Create
.geminiignorefor extra exclusions (.env*,*secret*,*credentials*) - Pre-consultation check warns if sensitive patterns detected
Privacy best practices:
- Always configure
.gitignoreproperly - Create
.geminiignorefor extra safety - Use smart context selection (specific files, not entire repo)
- Verify what will be sent:
git status --ignored
For detailed privacy configuration: Load references/setup-guide.md when setting up .geminiignore or privacy exclusions.
Cost Tracking
Every consultation logged to ~/.claude/ai-consultations/consultations.log
Log format: timestamp,ai,model,input_tokens,output_tokens,cost,project_path
View logs: consultation-log-parser.sh --summary
Example output:
Total consultations: 47
Gemini: 23 ($4.25), Codex: 12 ($1.85), Fresh Claude: 12 ($0.00)
Total cost: $6.10
For detailed cost tracking: Load references/commands-reference.md when viewing logs, calculating costs, or managing budgets.
Common Issues
For complete troubleshooting: Load references/troubleshooting.md when encountering errors or setup issues.
Top 5 issues:
- CLI not installed:
gemini: command not found→ Fix:bun add -g @google/generative-ai-cli - API key invalid: Authentication failed → Fix:
export GEMINI_API_KEY="..." - Context too large: Token limit exceeded → Fix: Use specific files, not entire repo
- Privacy leak:
.envfile sent → Fix: Add to.gitignoreand.geminiignore - Skill not discovered: Not working → Fix: Check
~/.claude/skills/multi-ai-consultant
Token Efficiency
Without This Skill
Typical scenario (stuck on bug):
- Try approach 1 (~4k tokens)
- Research CLI syntax (~3k tokens)
- Try approach 2 (~4k tokens)
- Research documentation (~3k tokens)
- Try approach 3 (~4k tokens)
Total: ~20k tokens, 30-45 minutes
With This Skill
Same scenario:
- Try approach 1 (~4k tokens)
- Execute
/consult-gemini(~1k tokens) - Gemini finds issue (<5k tokens, billed separately)
- Implement fix (~3k tokens)
Total: ~8k tokens, 5-10 minutes
Savings: ~60% tokens, ~75% time
Success Metrics
Time Efficiency
- Without skill: 30-45 minutes (trial and error)
- With skill: 5-10 minutes (consultation + fix)
- Savings: ~75%
Token Efficiency
- Without skill: ~20k tokens (multiple attempts)
- With skill: ~8k tokens (one consultation)
- Savings: ~60%
Error Prevention
- Manual CLI use: 3-5 common errors (flags, parsing, privacy)
- With skill: 0 errors (all handled by commands)
- Prevention: 100%
Quality
- Manual: Risk of not synthesizing (just copying external AI)
- With skill: Forced synthesis via
GEMINI.md/codex.md - Improvement: Guaranteed value-add
Why CLI Approach (Not MCP)?
| Aspect | MCP Server | CLI Approach |
|---|---|---|
| Setup time | 4-6 hours | 60-75 minutes |
| Complexity | High (MCP protocol) | Low (bash + CLIs) |
| Maintenance | Update MCP SDK | Update CLI (rare) |
| Flexibility | Locked to AIs | Any AI with CLI |
| Debugging | MCP protocol | Standard bash |
| Dependencies | MCP SDK, npm | Just CLIs |
Winner: CLI approach - 80% less effort, same functionality
When to Load References
Load reference files when working on specific aspects of AI consultation:
ai-strengths.md
Load when:
- Selection-based: Choosing which AI to consult (Gemini vs Codex vs Fresh Claude)
- Comparison-based: Understanding capabilities, costs, and trade-offs between AIs
- Strategy-based: Planning combination strategies (free → paid, paid first, budget-conscious)
- Capability-based: Understanding special features (Google Search, extended thinking, grounding, repo-aware, fresh perspective)
- Scenario-based: Multiple AI consultation workflows, validation workflows
setup-guide.md
Load when:
- Installation-based: Setting up Gemini CLI, Codex CLI, or installing the skill
- Configuration-based: Configuring API keys, environment variables, or system paths
- Privacy-based: Setting up .geminiignore, privacy exclusions, or security configurations
- Template-based: Installing GEMINI.md, codex.md, .geminiignore, or consultation-log-parser.sh
- Verification-based: Testing CLI installation, API keys, or skill discovery
commands-reference.md
Load when:
- Command-based: Using /consult-gemini, /consult-codex, /consult-claude, or /consult-ai
- Syntax-based: Understanding command flags, options, or context selection
- Cost-based: Understanding cost tracking, log format, or viewing consultation history
- Logging-based: Using consultation-log-parser.sh or analyzing consultation patterns
usage-examples.md
Load when:
- Scenario-based: Learning how to use skill for bugs, architecture decisions, or code review
- Workflow-based: Understanding consultation workflow, synthesis process, or multi-AI approach
- Example-based: Seeing real-world examples of consultations and their outcomes (5 detailed examples available)
troubleshooting.md
Load when:
- Error-based: Encountering specific errors (command not found, API key invalid, parsing failures)
- Diagnosis-based: Troubleshooting CLI issues, API connectivity, or skill discovery
- Fix-based: Resolving known issues with step-by-step solutions (8 common issues documented)
- Debugging-based: Testing CLIs manually, checking configurations, or verifying installations
Contributing
Found an issue?
- Document it in troubleshooting.md
- Include fix/workaround
- Update slash commands to prevent
Adding new AI?
- Create new slash command:
commands/consult-newai.md - Add to router: Update
commands/consult-ai.md - Create template:
templates/newai.md(if CLI supports system instructions) - Update documentation
Improving synthesis?
- Edit templates:
templates/GEMINI.md,templates/codex.md - Test with real consultations
- Measure before/after quality
References
External Resources
- Gemini CLI: https://ai.google.dev/gemini-api/docs/cli
- OpenAI Codex: https://www.npmjs.com/package/codex
- OpenAI API: https://platform.openai.com/docs
- Gemini API Pricing: https://ai.google.dev/pricing
- OpenAI Pricing: https://openai.com/pricing
Internal Files
- Planning docs:
planning/multi-ai-consultant-*.md - Slash commands:
commands/*.md - Templates:
templates/* - Scripts:
scripts/* - References:
references/*.md(5 reference files)
License
MIT License - See LICENSE file
Last Updated: 2025-11-07 Status: Production Ready Maintainer: Claude Skills Maintainers | maintainers@example.com
Readme
Multi-AI Consultant
Get second opinions from Gemini, OpenAI, or fresh Claude when stuck or making critical decisions.
Quick Start
# Install skill
cd ~/.claude/skills
git clone [this-repo] multi-ai-consultant
# Setup APIs
export GEMINI_API_KEY="your-key" # Required
export OPENAI_API_KEY="sk-..." # Optional
# Copy templates to your project
cp ~/.claude/skills/multi-ai-consultant/templates/GEMINI.md ./
cp ~/.claude/skills/multi-ai-consultant/templates/codex.md ./
cp ~/.claude/skills/multi-ai-consultant/templates/.geminiignore ./
# Start using
# Claude Code will automatically suggest consultations when stuck
Auto-Trigger Keywords
This skill activates when you say:
Stuck/Need Help
- "I'm stuck"
- "still not working"
- "this isn't working"
- "can't figure out"
- "no idea why"
- "need help"
- "need a second opinion"
- "want another perspective"
Architecture/Design
- "architecture decision"
- "how should we structure"
- "which approach is better"
- "design question"
- "choosing between"
- "what's the best way to"
Security
- "is this secure"
- "security concern"
- "vulnerability"
- "authentication"
- "authorization"
- "validation"
Manual Commands
/consult-gemini [question]/consult-codex [question]/consult-claude [question]/consult-ai [question]
The Three AIs
| AI | Best For | Cost | Speed |
|---|---|---|---|
| Gemini 2.5 Pro | Web research, latest docs, thinking | ~$0.10-0.50 | Slower |
| OpenAI Codex | Repo-aware analysis, code review | ~$0.05-0.30 | Medium |
| Fresh Claude | Quick opinion, fresh perspective | Free | Fast |
How It Works
- You get stuck on a bug after one attempt
- Claude suggests consulting another AI
- You approve
- External AI analyzes the problem with fresh eyes
- Claude synthesizes both perspectives in 5-part format:
- 🤖 Claude's analysis
- 💎/🔷/🔄 Other AI's analysis
- 🔍 Key differences
- ⚡ Synthesis
- ✅ Recommended action
- You decide which approach to take
Result: Better solutions, faster debugging, fresh perspectives
Example
You: "Fix this JWT auth bug"
Claude: Tries token expiry fix → Still failing
Claude: "I've tried one approach without success. Should I consult Gemini for a fresh perspective?"
You: "yes"
Claude: Executes /consult-gemini internally
Gemini: Searches web → Finds Cloudflare Workers don't support process.env → Suggests env.JWT_SECRET
Claude: Synthesizes both analyses → Shows 5-part comparison → Asks permission
You: "proceed"
Claude: Implements fix → ✅ Working
Time saved: 20-30 minutes of trial-and-error
Setup
1. Install CLIs
# Gemini (required)
npm install -g @google/generative-ai-cli
export GEMINI_API_KEY="your-key"
# Get key: https://aistudio.google.com/apikey
# Codex (optional)
npm install -g codex
export OPENAI_API_KEY="sk-..."
# Get key: https://platform.openai.com/api-keys
2. Install Skill
cd ~/.claude/skills
git clone [this-repo] multi-ai-consultant
3. Copy Templates
# In your project root
cp ~/.claude/skills/multi-ai-consultant/templates/GEMINI.md ./
cp ~/.claude/skills/multi-ai-consultant/templates/codex.md ./
cp ~/.claude/skills/multi-ai-consultant/templates/.geminiignore ./
4. Test
# Test Gemini
gemini -p "test" && echo "✅ Working"
# Test Codex (if installed)
codex exec "test" --yolo && echo "✅ Working"
# Ask Claude Code
# "I'm stuck on this bug"
# → Should suggest consultation
Usage
Automatic (Recommended)
Just work normally. Claude Code will suggest consultations when:
- Stuck after one failed attempt
- Making architectural decisions
- Security concerns
Manual
# Specific AI
/consult-gemini Is this JWT implementation secure?
/consult-codex Review this codebase for code smells
/consult-claude Quick sanity check on this approach
# Let Claude choose
/consult-ai How should we structure this microservices architecture?
Features
✅ Automatic triggers - Suggests consultation when stuck
✅ Forced synthesis - Prevents parroting external AI
✅ Smart context - Selective file inclusion
✅ Cost tracking - Logs every consultation
✅ Privacy protected - Respects .gitignore + .geminiignore
✅ Three AI options - Gemini (web search), Codex (repo-aware), Fresh Claude (free)
✅ Pre-flight checks - Verifies CLIs work before calling
✅ Error handling - Helpful messages for common issues
Cost
Typical consultation:
- Gemini: ~$0.10-0.50 (depending on context size)
- Codex: ~$0.05-0.30 (depending on codebase size)
- Fresh Claude: Free
View spending:
consultation-log-parser.sh --summary
Estimated ROI: 20-30 minutes saved per bug = worth the cost
Privacy
Automatic protection:
- Both CLIs respect
.gitignore - Never sends
node_modules/,.env*, etc.
Extra protection:
- Create
.geminiignorefor additional exclusions - Claude warns if sensitive files detected
You control:
- Approve before each consultation
- See what context will be sent
- Choose which AI (or decline)
Why This Works
Problem: Claude Code sometimes gets stuck in a mental rut or lacks latest info
Solution: External AIs provide:
- Fresh perspective (different reasoning)
- Web research (Gemini's Google Search)
- Repo-aware analysis (Codex's auto-scan)
- Latest documentation (Gemini's grounding)
Result: Better solutions, faster debugging, informed decisions
When NOT to Use
❌ Simple bugs you haven't tried fixing yet ❌ Typos or syntax errors ❌ Questions answered by reading docs ❌ Budget is absolute $0 (use Fresh Claude only)
Troubleshooting
Gemini not working?
npm install -g @google/generative-ai-cli
export GEMINI_API_KEY="your-key"
Codex not working?
npm install -g codex
export OPENAI_API_KEY="sk-..."
Skill not discovered?
ls -la ~/.claude/skills/multi-ai-consultant
# Check SKILL.md exists and has YAML frontmatter
Too expensive?
- Use Fresh Claude (free) for quick opinions
- Use Gemini only for complex problems
- Check logs:
consultation-log-parser.sh --summary
Documentation
- Full docs: See
SKILL.md - Planning: See
planning/multi-ai-consultant-*.md - CLI reference: See
references/ - Examples: See
examples/
Contributing
Found an issue? Document in SKILL.md Known Issues
Want to add an AI? Create commands/consult-newai.md
Improving synthesis? Edit templates/GEMINI.md or templates/codex.md
License
MIT
Last Updated: 2025-11-07 Status: Production Ready Maintainer: Claude Skills Maintainers | maintainers@example.com
Details
- Marketplace
- secondsky/claude-skills
- Source
- plugins/multi-ai-consultant
- Category
- Ai
- Keywords
- multi-ai-consultant, multi, consultant, machine-learning, llm, artificial-intelligence, openai, validation
- Listed since
- Apr 7, 2026
More from secondsky/claude-skills
All 122- mutation-testingv3.12.0
- nano-banana-promptsv3.12.0
- nextjsv3.12.0
- nuxt-contentv3.12.0
- nuxt-seov3.12.0
- nuxt-studiov3.12.0
- nuxt-ui-v4v3.12.0
- nuxt-v4v3.12.0
- nuxt-v5v3.12.0
- oauth-implementationv3.12.0
- payment-gateway-integrationv3.12.0
- pinia-coladav3.12.0
- pinia-v3v3.12.0
- plan-interviewv3.12.0
- playwrightv3.12.0
- progressive-web-appv3.12.0
- push-notification-setupv3.12.0
- react-best-practicesv3.12.0
- react-composition-patternsv3.12.0
- react-hook-form-zodv3.12.0
- react-native-skillsv3.12.0
- recommendation-enginev3.12.0
- recommendation-systemv3.12.0
- responsive-web-designv3.12.0
Similar to multi-ai-consultant
More AI Agents & LLM Apps
claude-apianthropics/skills196.9K starsClaude API and SDK documentation skill for building LLM-powered applications
agent-sdk-devanthropics/claude-code156.1K starsDevelopment kit for working with the Claude Agent SDK
agentic-flowruvnet/ruflo82.2K starsagentic-flow (external: maintained in ruvnet/agentic-flow, pinned to commit d19737b, plugin 3.4.0): the agentic-flow MCP server pinned to agentic-flow@3.4.0 (Re
chatbotkit-automationComposioHQ/awesome-claude-skills51.5K starsAutomate Chatbotkit tasks via Rube MCP (Composio). Always search tools first for current schemas.
agentic-bundle-aas-agent-mcp-buildersickn33/agentic-awesome-skills50.1K starsInstall the "AAS Agent & MCP Builder" editorial skill bundle for Claude Code.
agent-sdk-devanthropics/claude-plugins-official47.9K starsDevelopment kit for working with the Claude Agent SDK