← ClaudeAtlas

geminilisted

Delegate a task to Google's Gemini via the gemini CLI. Use this skill when the user explicitly asks to use Gemini or Google's model for a task, or when you determine that Gemini would provide better results for a specific task (e.g., tasks requiring Gemini-specific strengths). Detects the gemini binary, falls back to agent --model gemini-3.1-pro if unavailable.
tony/ai-workflow-plugins · ★ 1 · AI & Automation · score 71
Install: claude install-skill tony/ai-workflow-plugins
# Gemini CLI Skill Run a prompt through the Gemini CLI. If the `gemini` binary is not installed, falls back to the `agent` CLI with `--model gemini-3.1-pro`. Use `$ARGUMENTS` as the user's prompt. If `$ARGUMENTS` is empty, ask the user what they want to run. Parse `$ARGUMENTS` case-insensitively for timeout triggers and strip matched triggers from the prompt text. | Trigger | Effect | |---------|--------| | `timeout:<seconds>` | Override default timeout | | `timeout:none` | Disable timeout | | `mode:plan` | Request plan-only output (no execution) | Default timeout: 600 seconds. ## Step 1: Detect CLI ```bash command -v gemini >/dev/null 2>&1 && echo "gemini:available" || echo "gemini:missing" ``` ```bash command -v agent >/dev/null 2>&1 && echo "agent:available" || echo "agent:missing" ``` **Resolution** (priority order): 1. `gemini` found → use `gemini -m gemini-3-pro-preview -y --skip-trust -p` 2. Else `agent` found → use `agent -p -f --model gemini-3.1-pro` 3. Else → report both CLIs unavailable and stop ## Step 2: Detect Timeout Command ```bash command -v timeout >/dev/null 2>&1 && echo "timeout:available" || { command -v gtimeout >/dev/null 2>&1 && echo "gtimeout:available" || echo "timeout:none"; } ``` If no timeout command is available, omit the prefix entirely. When `timeout:none` is specified, also omit `<timeout_cmd>` and `<timeout_seconds>` entirely — run external commands without any timeout prefix. ## Step 3: Write Prompt ```bash TMPFILE=$(mktemp /t