From skill-gemini
Use when the user asks to run Gemini CLI (gemini -p, gemini -r) or references Google Gemini for code analysis, refactoring, codebase investigation, or multi-model collaboration
How this skill is triggered — by the user, by Claude, or both
Slash command
/skill-gemini:geminiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. Ask the user (via `AskUserQuestion`) which model to run (`gemini-3.1-pro-preview`, `gemini-3-pro-preview`, `gemini-3-flash-preview`, `gemini-2.5-pro`, or `gemini-2.5-flash`) AND which approval mode to use (`yolo`, `auto_edit`, `plan`, or `default`) in a **single prompt with two questions**.
AskUserQuestion) which model to run (gemini-3.1-pro-preview, gemini-3-pro-preview, gemini-3-flash-preview, gemini-2.5-pro, or gemini-2.5-flash) AND which approval mode to use (yolo, auto_edit, plan, or default) in a single prompt with two questions.--approval-mode plan unless edits or tool execution are necessary.-m, --model <MODEL>--approval-mode <yolo|auto_edit|plan|default>-o, --output-format <text|json|stream-json>-s, --sandbox (isolate tool execution; uses gVisor on Linux, Seatbelt on macOS)--include-directories <DIR> (additional workspace directories for multi-project context)-p, --prompt (non-interactive/headless mode)"your prompt here" (as the prompt value)gemini -r latest -p "follow-up prompt". When resuming, don't use configuration flags unless explicitly requested by the user (e.g. if they specify the model when requesting to resume). To resume a specific session: gemini -r <INDEX> -p "prompt".2>/dev/null to all gemini commands to suppress progress/debug output (stderr). Only show stderr if the user explicitly requests debug output (-d flag) or if troubleshooting is needed.printf for safe piping:
printf '%s' "Your prompt with 'quotes' and $pecial chars" | gemini -m <MODEL> --approval-mode <MODE> -o text 2>/dev/null
Alternatively, use -p with a heredoc:
gemini -m <MODEL> --approval-mode <MODE> -o text -p "$(cat <<'PROMPT'
Your multi-line prompt here.
PROMPT
)" 2>/dev/null
| Use case | Approval mode | Key flags |
|---|---|---|
| Read-only review or analysis | plan | --approval-mode plan -o text 2>/dev/null |
| Apply local edits | auto_edit | --approval-mode auto_edit -o text 2>/dev/null |
| Full delegation (auto-approve all) | yolo | --approval-mode yolo -o text 2>/dev/null |
| Sandboxed execution | yolo | -s --approval-mode yolo -o text 2>/dev/null |
| Codebase investigation | yolo | --approval-mode yolo -o text 2>/dev/null (uses built-in investigator) |
| Multi-project context | Match task needs | --include-directories <DIR> 2>/dev/null |
| Resume recent session | Inherited from original | -r latest -p "prompt" 2>/dev/null |
| Structured output | Match task needs | -o json 2>/dev/null |
gemini command, immediately use AskUserQuestion to confirm next steps, collect clarifications, or decide whether to resume with gemini -r latest.-p: gemini -r latest -p "new prompt" 2>/dev/null. The resumed session automatically uses the same model and approval mode from the original session.Gemini is powered by Google models with their own knowledge cutoffs and limitations. Treat Gemini as a colleague, not an authority.
printf '%s' "This is Claude (<your current model name>) following up. I disagree with [X] because [evidence]. What's your take on this?" | gemini -r latest -o text 2>/dev/null
gemini --version or a gemini -p command exits non-zero; request direction before retrying.MODEL_CAPACITY_EXHAUSTED (429) → wait 30 seconds and retry, max 3 attempts.--approval-mode yolo, -s sandbox) ask the user for permission using AskUserQuestion unless it was already given.AskUserQuestion.npx claudepluginhub integralmedia1/skill-gemini --plugin skill-geminiUse when the user asks to run Gemini CLI (gemini, gemini resume) or references Google Gemini for code analysis, refactoring, or automated editing
Runs Google's Gemini CLI for code generation, review, analysis, web research via Google Search, and codebase architecture investigation. Use for second AI opinions, real-time web data, or parallel code tasks.
Invokes Google Gemini CLI for complex reasoning, research, and AI tasks in headless mode. Supports preview models, fallbacks, and session continuation.