ai-consultants
Consult Gemini CLI, Codex CLI, Mistral Vibe, Kilo CLI, Cursor, Claude, Amp, Kimi, Qwen, and Ollama as external experts for coding questions. Automatically excludes the invoking agent from the panel to avoid self-consultation. Use when you have doubts about implementations, want a second opinion, need to choose between different approaches, or when explicitly requested with phrases like "ask the consultants", "what do the other models think", "compare solutions".
Best use case
ai-consultants is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Consult Gemini CLI, Codex CLI, Mistral Vibe, Kilo CLI, Cursor, Claude, Amp, Kimi, Qwen, and Ollama as external experts for coding questions. Automatically excludes the invoking agent from the panel to avoid self-consultation. Use when you have doubts about implementations, want a second opinion, need to choose between different approaches, or when explicitly requested with phrases like "ask the consultants", "what do the other models think", "compare solutions".
Teams using ai-consultants should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ai-consultants/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ai-consultants Compares
| Feature / Agent | ai-consultants | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Consult Gemini CLI, Codex CLI, Mistral Vibe, Kilo CLI, Cursor, Claude, Amp, Kimi, Qwen, and Ollama as external experts for coding questions. Automatically excludes the invoking agent from the panel to avoid self-consultation. Use when you have doubts about implementations, want a second opinion, need to choose between different approaches, or when explicitly requested with phrases like "ask the consultants", "what do the other models think", "compare solutions".
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# AI Consultants v2.9.1 - AI Expert Panel
Simultaneously consult multiple AIs as "consultants" for coding questions. Each consultant has a **configurable persona** that influences their response style.
## Quick Start
```
/ai-consultants:config-wizard # Initial setup
/ai-consultants:consult "Your question here"
```
## What's New in v2.9
- **Kimi CLI Consultant**: New "The Eastern Sage" persona for holistic understanding (v2.9)
- **Amp CLI Consultant**: "The Systems Thinker" persona for system design (v2.8)
- **Qwen CLI Support**: CLI/API mode switching for Qwen3 (v2.7)
- **CLI/API Mode Switching**: Gemini, Codex, Claude, Mistral, Qwen3 can use CLI or API (v2.6)
- **Model Quality Tiers**: premium, standard, economy with `apply_model_tier()` (v2.5)
- **Budget Enforcement**: Configurable cost limits with `ENABLE_BUDGET_LIMIT` (v2.4)
- **Premium Model Defaults**: All consultants now use flagship models by default
- **14 Consultants**: Gemini, Codex, Mistral, Kilo, Cursor, Aider, Amp, Kimi, Claude, Qwen3, GLM, Grok, DeepSeek, Ollama
## Slash Commands
### Consultation Commands
| Command | Description |
|---------|-------------|
| `/ai-consultants:consult` | Main consultation - ask AI consultants a coding question |
| `/ai-consultants:ask-experts` | Quick query alias for consult |
| `/ai-consultants:debate` | Run consultation with multi-round debate |
| `/ai-consultants:help` | Show all commands and usage |
### Configuration Commands
| Command | Description |
|---------|-------------|
| `/ai-consultants:config-wizard` | Full interactive setup (CLI detection, API keys, personas) |
| `/ai-consultants:config-check` | Verify CLI agents are installed and authenticated |
| `/ai-consultants:config-status` | View current configuration |
| `/ai-consultants:config-preset` | Set default preset (minimal, balanced, high-stakes, local) |
| `/ai-consultants:config-strategy` | Set default synthesis strategy |
| `/ai-consultants:config-features` | Toggle features (Debate, Synthesis, Peer Review, etc.) |
| `/ai-consultants:config-personas` | Change consultant personas |
| `/ai-consultants:config-api` | Configure API-based consultants (Qwen3, GLM, Grok, DeepSeek) |
## Configuration Workflow
Set your preferences using slash commands:
```
/ai-consultants:config-preset # Choose default preset
/ai-consultants:config-strategy # Choose synthesis strategy
/ai-consultants:config-features # Enable/disable features
/ai-consultants:config-status # View current settings
```
## Consultants and Personas
| Consultant | CLI | Persona | Focus |
|------------|-----|---------|-------|
| **Google Gemini** | `gemini` | The Architect | Design patterns, scalability |
| **OpenAI Codex** | `codex` | The Pragmatist | Simplicity, proven solutions |
| **Mistral Vibe** | `vibe` | The Devil's Advocate | Edge cases, vulnerabilities |
| **Kilo Code** | `kilocode` | The Innovator | Creativity, unconventional |
| **Cursor** | `agent` | The Integrator | Full-stack perspective |
| **Aider** | `aider` | The Pair Programmer | Collaborative coding |
| **Amp** | `amp` | The Systems Thinker | System design, interactions |
| **Kimi** | `kimi` | The Eastern Sage | Holistic, balanced perspectives |
| **Claude** | `claude` | The Synthesizer | Big picture, synthesis |
| **Qwen** | `qwen` | The Analyst | Data-driven, metrics |
| **Ollama** | `ollama` | The Local Expert | Privacy-first, zero cost |
**API-only consultants**: GLM (The Methodologist), Grok (The Provocateur), DeepSeek (The Code Specialist)
**CLI/API Mode**: Gemini, Codex, Claude, Mistral, and Qwen can switch between CLI and API mode via `*_USE_API` environment variables.
**Self-Exclusion**: The invoking agent is automatically excluded from the panel. When invoked from Claude Code, Claude is excluded; when invoked from Codex CLI, Codex is excluded, etc.
## Requirements
- **At least 2 consultant CLIs** installed and authenticated
- **jq** for JSON processing
### Quick Install
```bash
curl -fsSL https://raw.githubusercontent.com/matteoscurati/ai-consultants/main/scripts/install.sh | bash
~/.claude/skills/ai-consultants/scripts/doctor.sh --fix
```
### CLI Installation
```bash
npm install -g @google/gemini-cli # Gemini
npm install -g @openai/codex # Codex
pip install mistral-vibe # Mistral
npm install -g @kilocode/cli # Kilo
npm install -g @qwen-code/qwen-code@latest # Qwen
curl -fsSL https://ampcode.com/install.sh | bash # Amp
pip install kimi-cli && kimi login # Kimi
brew install jq # Required
# For local inference (optional)
curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3.2
```
## Configuration Presets
| Preset | Consultants | Use Case |
|--------|-------------|----------|
| `minimal` | 2 (Gemini + Codex) | Quick questions |
| `balanced` | 4 (+Mistral +Kilo) | Standard use |
| `thorough` | 5 (+Cursor) | Comprehensive |
| `high-stakes` | All + debate | Critical decisions |
| `local` | Ollama only | Full privacy |
| `security` | Security-focused | +Debate |
| `cost-capped` | Budget-friendly | Low cost |
## Synthesis Strategies
| Strategy | Description |
|----------|-------------|
| `majority` | Most common answer wins (default) |
| `risk_averse` | Weight conservative responses |
| `security_first` | Prioritize security |
| `cost_capped` | Prefer cheaper solutions |
| `compare_only` | No recommendation |
## Usage Examples
### Basic Consultation
```
/ai-consultants:consult "How to optimize this SQL query?"
```
### With File Context
```
/ai-consultants:consult "Review this authentication flow" src/auth.ts
```
### With Debate
```
/ai-consultants:debate "Microservices or monolith for our new service?"
```
### Bash Usage
```bash
cd ~/.claude/skills/ai-consultants
# With preset
./scripts/consult_all.sh --preset balanced "Best approach for caching?"
# With strategy
./scripts/consult_all.sh --strategy risk_averse "Security question"
# With local model
./scripts/consult_all.sh --preset local "Private question"
```
## Workflow
```
Query -> Classify -> Parallel Queries -> Voting -> Synthesis -> Report
| | |
Gemini (8) Consensus Recommendation
Codex (7) Analysis Comparison
Mistral (6) Risk Assessment
```
With debate:
```
Round 1 -> Cross-Critique -> Round 2 -> Final Synthesis
```
## Usage Triggers
### Automatic
- Doubts about implementation approach
- Validating complex solutions
- Exploring architectural alternatives
### Explicit
- "Ask the consultants..."
- "What do the other models think?"
- "Compare solutions"
- "I want a second opinion"
## Features
| Feature | Description | Toggle |
|---------|-------------|--------|
| **Personas** | Each consultant has a role that shapes responses | `ENABLE_PERSONA` |
| **Synthesis** | Auto-combine responses into recommendation | `ENABLE_SYNTHESIS` |
| **Debate** | Consultants critique each other's answers | `ENABLE_DEBATE` |
| **Peer Review** | Consultants anonymously rank each other | `ENABLE_PEER_REVIEW` |
| **Smart Routing** | Auto-select best consultants per question type | `ENABLE_SMART_ROUTING` |
| **Cost Tracking** | Track API usage costs | `ENABLE_COST_TRACKING` |
| **Panic Mode** | Auto-add rigor when uncertainty detected | `ENABLE_PANIC_MODE` |
## Configuration
```bash
# Defaults (v2.9)
DEFAULT_PRESET=balanced # Preset when --preset not given
DEFAULT_STRATEGY=majority # Strategy when --strategy not given
# Core features
ENABLE_DEBATE=true # Multi-agent debate
ENABLE_SYNTHESIS=true # Automatic synthesis
ENABLE_PEER_REVIEW=false # Anonymous peer review
ENABLE_PANIC_MODE=auto # Auto-rigor for uncertainty
# CLI/API Mode Switching (v2.6+)
GEMINI_USE_API=false # Use Google AI API instead of CLI
CODEX_USE_API=false # Use OpenAI API instead of CLI
CLAUDE_USE_API=false # Use Anthropic API instead of CLI
MISTRAL_USE_API=false # Use Mistral API instead of CLI
QWEN3_USE_API=true # Use DashScope API (default) or CLI
# New consultants (v2.7-2.9)
ENABLE_AMP=false # Amp CLI - The Systems Thinker
AMP_MODEL=amp
ENABLE_KIMI=false # Kimi CLI - The Eastern Sage
KIMI_MODEL=kimi-code/kimi-for-coding
ENABLE_QWEN3=false # Qwen CLI/API - The Analyst
QWEN3_MODEL=qwen3-max
# Ollama (local models)
ENABLE_OLLAMA=true
OLLAMA_MODEL=qwen2.5-coder:32b
# Budget management (v2.4)
ENABLE_BUDGET_LIMIT=false
MAX_SESSION_COST=1.00
BUDGET_ACTION=warn # warn or stop
```
## Output
```
/tmp/ai_consultations/TIMESTAMP/
├── gemini.json # Individual responses
├── codex.json
├── voting.json # Consensus
├── synthesis.json # Recommendation
└── report.md # Human-readable
```
## Doctor Command
Diagnose and fix issues:
```bash
./scripts/doctor.sh # Full check
./scripts/doctor.sh --fix # Auto-fix
./scripts/doctor.sh --json # JSON output
```
## Interpreting Results
| Scenario | Recommendation |
|----------|----------------|
| High confidence + High consensus | Proceed confidently |
| Low confidence OR Low consensus | Consider more options |
| Mistral disagrees | Investigate risks |
| Panic mode triggered | Add debate rounds |
## Best Practices
### Security
- **Never** include credentials in queries
- Use `--preset local` for sensitive code
### Effective Queries
- Be specific about the question
- Include constraints (performance, etc.)
- Use debate for controversial decisions
## Troubleshooting
| Issue | Solution |
|-------|----------|
| "Unknown skill" | Run install script or check `~/.claude/commands/` |
| "Exit code 1" | Run `/ai-consultants:config-check` to diagnose |
| No consultants | Run `/ai-consultants:config-wizard` |
| API errors | Check `/ai-consultants:config-status` |
| CLI not found | Run `./scripts/doctor.sh --fix` |
## Extended Documentation
- [Setup Guide](docs/SETUP.md) - Installation, authentication, Claude Code setup
- [Cost Rates](docs/COST_RATES.md) - Model pricing
- [Smart Routing](docs/SMART_ROUTING.md) - Category routing
- [JSON Schema](docs/JSON_SCHEMA.md) - Output format
## Known Limitations
- Minimum 2 consultants required
- Smart Routing off by default
- Synthesis requires Claude CLI (fallback available)
- Estimated costs (heuristic token counting)Related Skills
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
moai-lang-r
R 4.4+ best practices with testthat 3.2, lintr 3.2, and data analysis patterns.
moai-lang-python
Python 3.13+ development specialist covering FastAPI, Django, async patterns, data science, testing with pytest, and modern Python features. Use when developing Python APIs, web applications, data pipelines, or writing tests.
moai-icons-vector
Vector icon libraries ecosystem guide covering 10+ major libraries with 200K+ icons, including React Icons (35K+), Lucide (1000+), Tabler Icons (5900+), Iconify (200K+), Heroicons, Phosphor, and Radix Icons with implementation patterns, decision trees, and best practices.
moai-foundation-trust
Complete TRUST 4 principles guide covering Test First, Readable, Unified, Secured. Validation methods, enterprise quality gates, metrics, and November 2025 standards. Enterprise v4.0 with 50+ software quality standards references.
moai-foundation-memory
Persistent memory across sessions using MCP Memory Server for user preferences, project context, and learned patterns
moai-foundation-core
MoAI-ADK's foundational principles - TRUST 5, SPEC-First TDD, delegation patterns, token optimization, progressive disclosure, modular architecture, agent catalog, command reference, and execution rules for building AI-powered development workflows
moai-cc-claude-md
Authoring CLAUDE.md Project Instructions. Design project-specific AI guidance, document workflows, define architecture patterns. Use when creating CLAUDE.md files for projects, documenting team standards, or establishing AI collaboration guidelines.
moai-alfred-language-detection
Auto-detects project language and framework from package.json, pyproject.toml, etc.
mnemonic
Unified memory system - aggregates communications and AI sessions across all channels into searchable, analyzable memory
mlops
MLflow, model versioning, experiment tracking, model registry, and production ML systems
ml-pipeline
Use when building ML pipelines, orchestrating training workflows, automating model lifecycle, implementing feature stores, or managing experiment tracking systems.