From google
This skill should be used when the user asks to "run gemini", "use gemini CLI", "delegate to gemini", "gemini resume", or "continue with gemini". Executes tasks via Gemini CLI with model selection, approval modes, and session management.
How this skill is triggered — by the user, by Claude, or both
Slash command
/google:geminiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. **Model Selection**:
-m flag)AskUserQuestion) which specific model to use if the task requires a particular modeldefault: For read-only analysis (prompt for all tool approvals)auto_edit: For editing tasks (auto-approve edit tools)yolo: For full automation (auto-approve all tools)-m, --model <MODEL>--approval-mode <default|auto_edit|yolo>-s, --sandbox (if sandbox environment is needed)--allowed-tools <tool1,tool2> (to allow specific tools without confirmation)--include-directories <dir1,dir2> (to include additional directories)gemini "your prompt here" (one-shot mode)echo "your prompt" | gemini (stdin mode)-i, --prompt-interactive:
gemini -i "initial prompt" (starts interactive mode after executing prompt)| Use case | Approval mode | Key flags |
|---|---|---|
| Read-only review or analysis | default | --approval-mode default |
| Apply local edits | auto_edit | --approval-mode auto_edit |
| Full automation | yolo | --approval-mode yolo or -y |
| Resume most recent session | Inherited from original | --resume latest |
| Resume specific session | Inherited from original | --resume <index> |
| List available sessions | N/A | --list-sessions |
| Interactive mode | As needed | -i "prompt" |
| Sandbox environment | As needed | -s or --sandbox |
gemini --resume latest "new prompt"gemini --resume 5 "new prompt" (use session index)gemini --list-sessionsgemini --delete-session <index>gemini command, immediately use AskUserQuestion to confirm next steps, collect clarifications, or decide whether to resume the session.gemini --resume latest "new prompt" to continue the previous conversation.Check available models with gemini --help or user configuration.
gemini command exits non-zero; request direction before retrying.-y/--yolo, --approval-mode yolo), ask the user for permission using AskUserQuestion unless already given.AskUserQuestion.gemini --extension '' (empty string)gemini --list-extensionsgemini -e extension1,extension2 "prompt"gemini mcp add/remove/list--allowed-mcp-server-names server1,server2For advanced prompting strategies to improve response quality and accuracy, refer to @references/prompting-guide.md
Topics covered:
When to consult: When you need to craft complex prompts, improve response quality, or leverage Gemini's advanced reasoning capabilities.
Before executing a gemini command, ensure the prompt is well-structured:
AskUserQuestion to gather necessary information before crafting the prompt.AskUserQuestion to confirm next steps or gather feedback for prompt refinement.npx claudepluginhub jongwony/cc-plugin --plugin googleUse when the user asks to run Gemini CLI (gemini, gemini resume) or references Google Gemini for code analysis, refactoring, or automated editing
Invokes Google Gemini CLI for complex reasoning, research, and AI tasks in headless mode. Supports preview models, fallbacks, and session continuation.
Starts Google Gemini CLI session with 1M context for large codebase analysis. Handles new sessions or follow-ups; returns task_id for /gemini-result check.