Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

multi-ai-consultant多 AI 顾问

Agent Skill

multi-ai-consultant 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

27,870

周安装

729

GitHub Stars

公开资料未说明

下载量

10,340
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:multi-ai-consultant(多 AI 顾问)
来源仓库:https://github.com/jackspace/claudeskillz
仓库路径:skills/multi-ai-consultant
安装命令:
npx skills add jackspace/claudeskillz --skill "multi-ai-consultant"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add jackspace/claudeskillz --skill "multi-ai-consultant"

简介

multi-ai-consultant 用于发现并安装多种 AI 代理技能,增强咨询类任务能力。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中集成行业专用工具链。
  • 通过 npx 命令从 jackspace/claudeskillz 仓库添加所需技能包。
  • 安装前应评估技能适用性与宿主兼容性,排除冗余功能。
  • 建议使用沙箱环境测试后再投入生产任务,降低风险。

SKILL.md

name
Multi-AI Consultant
description
|
license
MIT
allowed-tools
[Bash, Read, Task, Write]
metadata
version
1.0.0
author
Jeremy Dawes | Jezweb
last-verified
2025-11-07
production-tested
true
keywords

Multi-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:

  1. 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?"

  1. 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..."

  1. Security changes

- Authentication logic - Authorization rules - Cryptography - Input validation - → Auto-consult: "Consulting Gemini to verify security approach..."

  1. 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

AIToolWhen to UseSpecial FeaturesCost
Gemini 2.5 Progemini CLIWeb research, latest docs, thinkingGoogle Search, extended reasoning, grounding~$0.10-0.50
OpenAI GPT-4codex CLIRepo-aware analysis, code reviewAuto-scans directory, OpenAI reasoning~$0.05-0.30
Fresh ClaudeTask toolQuick second opinion, budget-friendlySame capabilities, fresh perspectiveFree

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):

  1. 🤖 My Analysis - Claude's original reasoning and attempts
  2. 💎/🔷/🔄 Other AI's Analysis - External AI's complete response
  3. 🔍 Key Differences - Agreement, divergence, what each AI caught/missed
  4. ⚡ Synthesis - Combined perspective, root cause, trade-offs
  5. ✅ Recommended Action - Specific next steps with file paths/line numbers

End with: "Should I proceed with this approach?"


Setup Instructions

1. Install CLIs

Gemini CLI (required):

npm install -g @google/generative-ai-cli
export GEMINI_API_KEY="your-key"

Get API key: https://aistudio.google.com/apikey

Codex CLI (optional):

npm install -g codex
export OPENAI_API_KEY="sk-..."

Get API key: https://platform.openai.com/api-keys

Fresh Claude: Built-in (uses Task tool, no setup)

2. Install Skill

cd ~/.claude/skills
git clone [this-repo] multi-ai-consultant
# OR symlink from development location

3. Copy Templates to Project

# Copy to 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 ./

# Copy log parser (optional)
cp ~/.claude/skills/multi-ai-consultant/templates/consultation-log-parser.sh ~/bin/
chmod +x ~/bin/consultation-log-parser.sh

4. Verify Installation

# Test Gemini CLI
gemini -p "test" && echo "✅ Gemini working"

# Test Codex CLI (if installed)
codex exec "test" --yolo && echo "✅ Codex working"

# Test skill discovery
# Ask Claude Code: "I'm stuck on this bug, can you help?"
# Claude should suggest consultation

Usage Examples

Example 1: Stuck on Bug

Scenario: JWT authentication failing after one attempt

Claude's process:

1. Try initial fix (token expiry check)
2. Still failing (now "invalid signature" error)
3. → Automatically suggest consultation
4. User approves
5. Execute /consult-gemini with:
   - Problem: 401 error details
   - What was tried: token expiry fix
   - Current status: invalid signature error
   - Context: @src/auth/session.ts @src/middleware/jwt.ts
6. Gemini finds: Using process.env instead of env binding (Cloudflare)
7. Synthesize both perspectives
8. Ask permission to implement Gemini's fix

Result: Bug fixed with second opinion, avoided 2-3 more trial-and-error attempts

Example 2: Architecture Decision

Scenario: Choosing state management for new feature

Claude's process:

1. User asks: "How should we handle state for this feature?"
2. → Auto-consult Gemini (architectural decision)
3. Execute /consult-gemini with:
   - Problem: State management choice
   - Options considered: Redux, Zustand, Context
   - Context: @src/ (existing patterns)
4. Gemini searches for latest React state management best practices
5. Synthesize Claude's + Gemini's analysis
6. Present recommendation with trade-offs

Result: Informed decision with latest best practices

Example 3: Manual Consultation

User: "I want a second opinion on this refactoring"

Claude's process:

1. User explicitly requests consultation
2. Ask which AI: Gemini, Codex, or Fresh Claude?
3. User chooses Codex (wants repo-aware analysis)
4. Execute /consult-codex with:
   - Problem: Refactoring proposal
   - Context: (Codex scans repo automatically)
5. Codex checks consistency with existing code
6. Synthesize both perspectives
7. Present recommendation

Result: Validation of refactoring approach + consistency check


Slash Commands

/consult-gemini [question]

Use when: Need web research, latest docs, extended thinking

What it does:

  1. Pre-flight check (Gemini CLI working?)
  2. Smart context selection based on problem type
  3. Execute with locked config: gemini-2.5-pro --thinking --google-search --grounding
  4. Parse JSON response
  5. Synthesize with 5-part format
  6. Log cost to ~/.claude/ai-consultations/consultations.log

Example:

/consult-gemini Is this JWT validation secure by 2025 standards?

Context: Uses @<path> syntax for selective context

System instructions: Auto-loads GEMINI.md from project root

Privacy: Respects .gitignore + .geminiignore


/consult-codex [question]

Use when: Need repo-aware analysis, code review, OpenAI reasoning

What it does:

  1. Pre-flight check (OpenAI API key valid?)
  2. cd to project directory (Codex scans automatically)
  3. Execute with --yolo flag: codex exec - -m gpt-4-turbo --yolo
  4. Parse output from temp file
  5. Synthesize with 5-part format
  6. Log cost (estimated tokens)

Example:

/consult-codex Review this codebase for performance issues

Context: Repo-aware (automatically reads all non-gitignored files)

System instructions: Auto-loads codex.md from project root or ~/.codex/instructions.md

Privacy: Respects .gitignore, warns if not in Git repo


/consult-claude [question]

Use when: Quick second opinion, free, fresh perspective

What it does:

  1. Gather context with Read tool
  2. Build detailed prompt for subagent
  3. Launch Task tool (general-purpose subagent)
  4. Receive fresh perspective
  5. Synthesize with 5-part format
  6. Log consultation (free, but tracked)

Example:

/consult-claude Am I missing something obvious in this state management bug?

Context: You manually read relevant files and pass inline

Advantages: Free, same capabilities, fast, fresh perspective

Limitations: No web search, no extended thinking, same knowledge cutoff


/consult-ai [question]

Use when: Unsure which AI to use

What it does:

  1. Analyze problem type (bug, architecture, security, etc.)
  2. Recommend which AI based on needs
  3. Ask user to choose
  4. Route to appropriate command

Example:

/consult-ai How should we structure this microservices architecture?

→ Recommends Gemini (needs web research for latest patterns)
→ User approves
→ Executes /consult-gemini internally

Decision factors:

  • Need web research? → Gemini
  • Need repo-aware? → Codex
  • Need budget-friendly? → Fresh Claude
  • Need extended thinking? → Gemini
  • Need fresh perspective? → Fresh Claude

Templates

GEMINI.md (Project Root)

System instructions for Gemini consultations. Enforces:

  • 5-part response format
  • Comparison with Claude's analysis
  • Web search for latest docs
  • Specific code references
  • No parroting

Auto-loaded: Place in project root, Gemini CLI reads automatically

codex.md (Project Root or ~/.codex/instructions.md)

System instructions for Codex consultations. Enforces:

  • 5-part response format
  • Repo-aware analysis
  • Consistency checks
  • Impact assessment
  • Specific file references

Auto-loaded: Codex CLI reads from project root or global config

.geminiignore (Project Root)

Extra privacy exclusions beyond .gitignore. Excludes:

  • .env* files
  • *secret*, *credentials*
  • Build artifacts
  • Large media files
  • API keys and tokens

Auto-loaded: Gemini CLI respects this file

consultation-log-parser.sh

View consultation history:

consultation-log-parser.sh           # Last 10
consultation-log-parser.sh --all     # All consultations
consultation-log-parser.sh --summary # Stats only
consultation-log-parser.sh --ai gemini # Filter by AI

Log format: timestamp,ai,model,input_tokens,output_tokens,cost,project_path


Cost Tracking

Every consultation is logged to ~/.claude/ai-consultations/consultations.log

Format:

2025-11-07T14:23:45-05:00,gemini,gemini-2.5-pro,15420,850,0.1834,/home/user/project
2025-11-07T15:10:22-05:00,codex,gpt-4-turbo,8230,430,0.0952,/home/user/project
2025-11-07T16:05:11-05:00,claude-subagent,claude-sonnet-4-5,0,0,0.00,/home/user/project

View logs:

consultation-log-parser.sh --summary
# Total consultations: 47
# Gemini: 23, Codex: 12, Fresh Claude: 12
# Total cost: $8.45

Pricing (verify current rates):

  • Gemini 2.5 Pro: ~$0.000015/input token, ~$0.00006/output token
  • GPT-4 Turbo: ~$0.00001/input token, ~$0.00003/output token
  • Fresh Claude: Free (same API call)

Privacy & Security

Automatic Protection

Both CLIs respect .gitignore automatically. Files in .gitignore are never sent.

Additional Protection (.geminiignore)

Create .geminiignore in project root for extra exclusions:

*.env*
*secret*
*credentials*
.dev.vars
wrangler.toml

Pre-Consultation Check

Claude Code should warn if:

  • Sensitive file patterns detected in context
  • Not in Git repo (Codex)
  • Large context (>100k tokens estimated)

Ask permission: "About to send context to [AI]. Files include: [list]. Proceed?"

Manual Verification

Before consultation, user can check:

# What will be sent to Gemini
ls -la @src/

# Check gitignore is working
git status --ignored

Known Issues & Solutions

1. CLI Not Installed

Error: gemini: command not found or codex: command not found

Fix:

npm install -g @google/generative-ai-cli
npm install -g codex

Prevention: Pre-flight checks in slash commands


2. API Keys Invalid

Error: "API key invalid" or authentication failures

Fix:

export GEMINI_API_KEY="your-key"
export OPENAI_API_KEY="sk-..."

# Or add to ~/.bashrc
echo 'export GEMINI_API_KEY="your-key"' >> ~/.bashrc
source ~/.bashrc

Prevention: Pre-flight checks test API before consultation


3. Context Too Large

Error: Token limit exceeded or very expensive consultation

Fix: Use smart context selection

  • Bug: Just buggy file + imports (not entire codebase)
  • Architecture: Relevant directories only
  • Use @path/to/specific/file.ts not @.

Prevention: Slash commands guide smart context selection


4. Privacy Leaks

Risk: Accidentally sending .env or secrets

Fix:

  • Both CLIs respect .gitignore (automatic)
  • Create .geminiignore for extra protection
  • Claude warns if sensitive patterns detected

Prevention: Always check .gitignore is configured


5. Cost Overruns

Issue: Expensive consultations accumulating

Fix:

  • Check logs: consultation-log-parser.sh --summary
  • Use Fresh Claude for quick questions (free)
  • Use smart context (specific files, not entire repo)

Prevention: Cost tracking + warnings for large context


6. Codex Hanging

Error: codex exec hangs waiting for approval

Fix: Always use --yolo flag

Prevention: Slash command includes --yolo by default (hard to miss)


7. JSON Parsing Fails (Gemini)

Error: jq: parse error

Fix: Check exit code before parsing, fall back to plain text

Prevention: Slash command checks exit code first


8. Not in Git Repo (Codex)

Warning: Codex warns if not in Git repo (safety feature)

Fix: Add --skip-git-repo-check flag if appropriate

Prevention: Slash command includes flag


Token Efficiency

Without This Skill

Typical scenario (stuck on bug):

  1. Try approach 1 (~4k tokens)
  2. Research CLI syntax (~3k tokens)
  3. Format response (~2k tokens)
  4. Try approach 2 (~4k tokens)
  5. Research documentation (~3k tokens)
  6. Try approach 3 (~4k tokens)

Total: ~20k tokens, 30-45 minutes

With This Skill

Same scenario:

  1. Try approach 1 (~4k tokens)
  2. Execute /consult-gemini (~1k tokens to execute)
  3. Gemini finds issue (billed separately, but <5k tokens)
  4. Implement fix (~3k tokens)

Total: ~8k tokens, 5-10 minutes

Savings: ~60% tokens, ~75% time

Value: Gemini's web search finds issue Claude couldn't


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)?

AspectMCP ServerCLI Approach
Setup time4-6 hours60-75 minutes
ComplexityHigh (MCP protocol)Low (bash + CLIs)
MaintenanceUpdate MCP SDKUpdate CLI (rare)
FlexibilityLocked to AIsAny AI with CLI
DebuggingMCP protocolStandard bash
DependenciesMCP SDK, npmJust CLIs

Winner: CLI approach - 80% less effort, same functionality


Troubleshooting

Gemini Not Working

# Check CLI installed
which gemini

# Check API key set
echo $GEMINI_API_KEY

# Test manually
gemini -p "test"

# Check API key valid
curl -H "Content-Type: application/json" \
  -d '{"contents":[{"parts":[{"text":"test"}]}]}' \
  "https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=$GEMINI_API_KEY"

Codex Not Working

# Check CLI installed
which codex

# Check API key set (if using API key auth)
echo $OPENAI_API_KEY

# Test manually
echo "test" | codex exec - --yolo

# Check OpenAI API (if installed)
openai api models.list

Fresh Claude Not Working

# Fresh Claude uses Task tool (built-in)
# If Task tool fails, check Claude Code CLI status
claude --version

Skill Not Discovered

# Check skill installed
ls -la ~/.claude/skills/multi-ai-consultant

# Check SKILL.md has YAML frontmatter
head -20 ~/.claude/skills/multi-ai-consultant/SKILL.md

# Ask Claude Code to list skills
# It should mention multi-ai-consultant

Contributing

Found an issue?

  • Document it in Known Issues section
  • 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/*

License

MIT License - See LICENSE file


Last Updated: 2025-11-07 Status: Production Ready Maintainer: Jeremy Dawes | [email protected] | https://jezweb.com.au

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.86%
按下载量换算2,984

windsurf

24.02%
按下载量换算2,484

OpenCode

16.45%
按下载量换算1,701

Codex

12.89%
按下载量换算1,333

Antigravity

7.63%
按下载量换算789

Gemini CLI

3.88%
按下载量换算401

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills