A Claude skill for delegating token-heavy tasks to Google's Gemini CLI agent. Claude plans and reviews; Gemini executes.
Task Delegation — Non-interactive headless execution via stdin pipe with --approval-mode yolo
CJK Content — Native support for Chinese/Japanese/Korean text generation, financial reports, social media posts
Multi-File Operations — Batch refactoring, code generation, and documentation across multiple files
Context Piping — Write detailed task files and pipe them to Gemini for complex multi-step work
Cross-Platform — Windows-specific workarounds included (cmd shell routing, UTF-8 handling)
Gemini CLI must be installed globally:
npm install -g @google/gemini-cliVerify: gemini --version (tested with v0.37.1)
gemini-delegate/
├── SKILL.md # Main skill instructions
├── README.md # English documentation
├── README_zh-TW.md # 繁體中文文件
├── scripts/
│ ├── run_gemini.sh # Bash helper (pushd, --approval-mode yolo, stdin pipe, verify)
│ └── run_gemini.ps1 # PowerShell helper (same logic as .sh)
└── references/
└── examples.md # Complete delegation examples
This skill is designed for Claude (or any AI orchestrator) to read and follow. When Claude encounters a task that fits the delegation criteria, it:
- Writes a context file describing the task
- Launches Gemini CLI with the context
- Reviews and validates the output
- Reports results to the user
Gemini CLI 0.37+ occasionally exits with rc=0 even when its write_file tool failed mid-execution (Error executing tool write_file: params must have required property 'file_path') or wrote partial / corrupted output silently. Always verify expected files exist on disk + are non-empty after gemini exits.
This skill's wrapper scripts include --verify-file PATH (and optionally --verify-sentinel TEXT) to do this check automatically. See SKILL.md → "Fourth rule" for the full failure-mode discussion.
For translation tasks specifically: Gemini's output is reliably B-grade. Use it for first-draft generation, then have Claude do a polish pass for tone, banned words, and terminology consistency before shipping.
MIT