ask-gemini
Ask Gemini
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.
Quick start
Run a single query with -p (non-interactive mode):
gemini -p "Your question or task here"
Common options
| 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
Examples
Ask a coding question:
gemini -p "How do I implement a binary search in Python?"
Use a specific model:
gemini -p -m gemini-3.1-pro-preview "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"
Notes
- The
-pflag runs Gemini non-interactively and outputs result to stdout - Gemini CLI uses the
GEMINI_API_KEYenvironment variable for authentication - Use
-y/--yolofor automatic execution without confirmation prompts - The command inherits the current working directory
More from hiroro-work/claude-plugins
security-scanner
Scan installed plugins and skills for security risks including malicious code AND malicious natural language instructions. Use /security-scanner to audit before installation.
60ask-codex
Asks Codex CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.
39ask-claude
Asks Claude CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.
25extract-rules
Extract project-specific coding rules and domain knowledge from existing codebase, generating markdown documentation for AI agents. Use when onboarding a new project, after code review discussions about coding style, or when coding conventions need documenting. Also consider running after sessions where coding preferences were discussed or corrected (--from-conversation), or after PRs with significant review feedback (--from-pr).
22ask-copilot
Asks Copilot CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.
20ask-peer
Consult with a peer engineer for plan review, code review, implementation discussions, or problem-solving brainstorming. Use when you need a second opinion, want to validate your approach, or check for overlooked issues.
15