Loading...
Loading...
Delegate a sub-task to Claude Code via the Agent Client Protocol (ACP). Use this skill whenever you want to hand off work to Claude — complex agentic coding with MCP tool access, detailed multi-file refactors, tasks requiring Claude's reasoning style, or anything where Claude's strengths give an advantage. Also invoke when the user asks you to "ask Claude", "use Claude for this", or "run this through Claude". The script handles subprocess lifecycle and ACP session setup; you just provide the prompt and read stdout.
npx skill4agent add baphomet480/claude-skills gemini-use-claude-acpcd ~/.gemini/skills/gemini-use-claude-acp/scripts
pnpm install@agentclientprotocol/sdknode_modules/CLAUDE_MODEL=claude-sonnet-4-6 \
TARGET_CWD=/path/to/project \
node ~/.gemini/skills/gemini-use-claude-acp/scripts/claude-delegate.mjs \
"Refactor the auth module to use JWT tokens. The code is in src/auth/."response=$(node ~/.gemini/skills/gemini-use-claude-acp/scripts/claude-delegate.mjs "your prompt")| Variable | Default | Description |
|---|---|---|
| | Model to use (applied via ACP |
| current working dir | Working directory passed to the Claude session |
pnpm dlx @zed-industries/claude-code-acpCLAUDE_CODE_SKIP_PERMISSIONS=1TERM=dumbCLAUDECODE~/.local/binPATHclaude@agentclientprotocol/sdkClientSideConnectionndJsonStreaminitializenewSessionunstable_setSessionModelpromptagent_message_chunkpnpm dlxclaudeCLAUDECODE