AgentSkillsCN

consult-agents

当需要在实施前,从多位AI智能代理处获取验证、分析或研究结果时,此技能可助你汇聚Gemini与Codex的多方视角,综合各方反馈。

SKILL.md
--- frontmatter
name: consult-agents
description: Use when you need validation, analysis, or research from multiple AI agents before implementing. Gathers perspectives from Gemini and Codex, synthesizes feedback.

Consult Agents

Get validation, analysis, or research feedback from Gemini and Codex before Claude Code implements.

Core principle: Claude Code implements. External agents validate and research.

When to Use

  • Validate an approach before implementing
  • Research a topic from multiple perspectives
  • Get code review feedback on a design
  • Confirm understanding of requirements
  • Aggregate opinions on trade-offs

Model Requirements

CRITICAL: Always use top-tier models. Never use smaller/cheaper models.

CLIModel FlagRequired Model
Codex-m gpt-5.2gpt-5.2 (never o4-mini, gpt-4o, etc.)
Gemini-m gemini-3-progemini-3-pro (never smaller models)

Quick Reference

Task TypeGemini ModeCodex Mode
Analyze code/files onlygemini -m gemini-3-pro "..."-m gpt-5.2 --sandbox read-only
Research with web accessgemini -m gemini-3-pro "..." (has web search)-m gpt-5.2 --sandbox danger-full-access
Deep repo analysistmux interactive-m gpt-5.2 --sandbox read-only

Workflow

code
1. Prepare question/context (what you need validated)
2. Query Gemini → capture response
3. Query Codex → capture response
4. Synthesize: agreements, disagreements, insights
5. Claude Code decides and implements

Parallel Execution

Run both agents simultaneously for faster feedback:

bash
# Terminal 1: Gemini
gemini -m gemini-3-pro "Analyze this approach: [context]. What are the trade-offs?" 2>/dev/null

# Terminal 2: Codex
echo "Analyze this approach: [context]. What are the trade-offs?" | \
  codex exec -m gpt-5.2 --sandbox read-only --skip-git-repo-check 2>/dev/null

Or use background jobs:

bash
gemini -m gemini-3-pro "..." > /tmp/gemini-response.txt 2>/dev/null &
echo "..." | codex exec -m gpt-5.2 --sandbox read-only --skip-git-repo-check > /tmp/codex-response.txt 2>/dev/null &
wait

Synthesis Template

After gathering responses, synthesize:

markdown
## Agent Responses

### Gemini
[Summary of Gemini's perspective]

### Codex
[Summary of Codex's perspective]

## Synthesis

**Agreements:**
- [What both agents agree on]

**Disagreements:**
- [Where they differ and why]

**Key Insights:**
- [Unique valuable points from either]

## Decision
[Claude Code's decision based on aggregated feedback]

Prompt Templates

Validation

code
Review this [design/approach/code]:

[CONTEXT]

Questions:
1. Is this approach sound?
2. What are the risks?
3. What would you do differently?

Research

code
Research [TOPIC] focusing on:
1. Current best practices
2. Common pitfalls
3. Recommended tools/libraries

Context: [Why you need this]

Code Review

code
Review this code for:
- Correctness
- Performance concerns
- Security issues
- Maintainability

[CODE]

Common Mistakes

MistakeFix
Asking agents to implementThey validate; Claude Code implements
Not providing enough contextInclude relevant code, constraints, goals
Ignoring disagreementsDisagreements reveal important trade-offs
Blindly following consensusUse judgment; agents can both be wrong

When NOT to Use

  • Simple, obvious implementations
  • Time-critical changes (adds latency)
  • Trivial questions (overkill)