Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Fast delegation of large-context tasks to Gemini CLI via MCP when file size exceeds 100KB or task requires analysis/review.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 98% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 79% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 112% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 114% | 0% |
Trigger Conditions:
Use this skill for fast delegation decisions when:
Do NOT use when:
Timestamp & Environment
NOW_ET = 2025-10-26T01:18:53-04:00 (America/New_York, ISO-8601)Required validations before delegation:
task_description is non-empty stringfile_paths (if provided) resolve to accessible files.env, credentials.json, *.key, *.pemToken Budget: T1≤2000 tokens
Two-step process:
analysis|review|summarize|codebase-review → delegate to Geminidelegation_command for Gemini MCPrecommended_tool: "claude"Primary Routing Logic:
| Condition | Threshold | Action | |-----------|-----------|--------| | File size | >100KB | Delegate to Gemini | | Task type | analysis, review, summarize, codebase-review | Delegate to Gemini | | Sandbox execution | Any code testing | Delegate to Gemini | | Otherwise | Default | Keep in Claude |
Note: Complex multi-file orchestration belongs in a separate orchestration agent, not this skill.
Abort Conditions:
Schema (TypeScript-style):
typescriptinterface DelegationResult { delegation_decision: boolean; // true = delegate to Gemini recommended_tool: "claude" | "gemini-mcp"; delegation_command?: string; // only if delegation_decision = true rationale: string; // max 160 chars, cites threshold security_flags: string[]; // empty if clean; else warnings }
Required fields:
delegation_decision, recommended_tool, rationale, security_flags (always)delegation_command (only if delegation_decision = true)Example 1: Large File Analysis (Delegate)
yaml# Input task_description: "Summarize research paper" file_paths: ["./paper.pdf"] context_size_estimate: 3500 # KB # Output { "delegation_decision": true, "recommended_tool": "gemini-mcp", "delegation_command": "ask gemini to analyze @./paper.pdf and summarize key findings", "rationale": "File size 3.5MB > 100KB threshold", "security_flags": [] }
Example 2: Small File Edit (Keep in Claude)
yaml# Input task_description: "Refactor authentication function" file_paths: ["./auth.py"] context_size_estimate: 45 # KB # Output { "delegation_decision": false, "recommended_tool": "claude", "rationale": "File <100KB and task type 'refactor' suits Claude precision", "security_flags": [] }
Token Budget Enforcement:
Safety Checks:
Determinism:
Primary Sources:
Configuration Templates:
resources/mcp-config-template.json — Claude Desktop MCP setup for gemini-mcp-toolresources/delegation-decision-matrix.md — Static reference table (not computed during skill execution)Other measured skills in the registry, with their headline benchmark lift.