Loading...
Loading...
Delegate a sub-task to Gemini CLI via the Agent Client Protocol (ACP). Use this skill whenever you want to hand off work to Gemini — large-context summarization, Google Search grounding, tasks that exceed Claude's context window, or anything where Gemini's 1M-token window or real-time search gives an advantage. Also invoke when the user asks you to "ask Gemini", "check with Gemini", or "run this through Gemini". The script handles subprocess lifecycle and ACP session setup; you just provide the prompt and read stdout.
npx skill4agent add baphomet480/claude-skills claude-use-gemini-acpcd ~/.claude/skills/claude-use-gemini-acp/scripts
pnpm install@agentclientprotocol/sdknode_modules/GEMINI_MODEL=gemini-2.5-pro \
TARGET_CWD=/path/to/project \
node ~/.claude/skills/claude-use-gemini-acp/scripts/gemini-delegate.mjs \
"Summarize the architecture in ARCHITECTURE.md and list the top 3 risks"response=$(node ~/.claude/skills/claude-use-gemini-acp/scripts/gemini-delegate.mjs "your prompt")| Variable | Default | Description |
|---|---|---|
| | Model to use |
| | gemini-cli package version ( |
| current working dir | Working directory passed to the Gemini session |
pnpm dlx @google/gemini-cli@<version> --acp --yolo --model <model>@agentclientprotocol/sdkClientSideConnectionndJsonStreaminitializenewSessionpromptagent_message_chunk--yolo-ypnpm dlxgemini auth login