/ask-gemini:ask-geminifrom ask-gemini
Executes the local `gemini` CLI for coding assistance, code generation, debugging, or second opinions.
Ships in ask-gemini. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Executes the local gemini CLI to get coding assistance.
Note: This skill requires the gemini CLI to be installed and available in your system's PATH.
Run a single query with -p (non-interactive mode):
gemini -p "Your question or task here"
| Option | Description |
|---|---|
-p | Non-interactive mode (required for scripting) |
-m MODEL | Specify model |
-y, --yolo | Auto-approve all tool executions |
-r, --resume latest | Resume the most recent session |
For all available options, run
gemini --help
Ask a coding question:
gemini -p "How do I implement a binary search in Python?"
Use a specific model:
gemini -p -m <model> "Review this code for potential issues"
Let Gemini make changes automatically:
gemini -y -p "Refactor this function to use async/await"
Continue a previous session:
gemini --resume latest -p "Now add error handling to that function"
-p flag runs Gemini non-interactively and outputs result to stdoutGEMINI_API_KEY environment variable for authentication-y/--yolo for automatic execution without confirmation promptsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub hiroro-work/claude-plugins --plugin ask-geminiOther plugins' skills for the same job