AgentSkillsCN

gemini-delegate

在Claude Pro的Token有限的情况下,可借助Gemini进行省Token的委托任务——无论是推理、研究、代码分析,还是代码生成,皆可灵活运用。

SKILL.md
--- frontmatter
name: gemini-delegate
description: Token-saving delegation to Gemini. Use for reasoning, research, code analysis, or generation tasks where Claude Pro tokens are limited.
allowed-tools:
  - mcp__gemini-delegate__*
  - Read
  - Glob
  - Grep

Gemini Delegation for Token Savings

When to Delegate to Gemini

Use Gemini MCP tools for these token-intensive tasks:

Task TypeToolExample
Complex reasoninggemini_reasonMulti-step debugging, architecture decisions
Research synthesisgemini_researchSummarizing docs, combining findings
Code analysisgemini_code_analyzeUnderstanding unfamiliar code, reviewing structure
Generationgemini_generateDocs, tests, boilerplate

When NOT to Delegate

Keep in Claude for:

  • File operations (Read, Write, Edit)
  • Bash commands
  • Quick questions (< 100 token response)
  • Tasks needing Claude Code tools

Token-Efficient Workflow

  1. Read CLAUDE.md and README first (standard behavior)
  2. Gather context with Read/Glob/Grep
  3. Delegate heavy analysis to Gemini
  4. Apply Gemini's output using Claude's tools

Example

Instead of having Claude analyze 500 lines of code:

code
1. Read the code files
2. Use gemini_code_analyze with the code and your question
3. Apply the suggestions using Edit tool