Agent skill
gemini-cli
Run Gemini CLI for AI queries. Use when user asks to "run/ask/use gemini", compare Claude vs Gemini, or delegate tasks to Gemini.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/gemini-cli-georgekhananaev-claude-skills-vault
SKILL.md
Gemini CLI
Interact w/ Google's Gemini CLI locally. Run queries, get responses, compare outputs.
Prerequisites
Gemini CLI must be installed & configured:
- Install: https://github.com/google-gemini/gemini-cli
- Auth: Run
gemini& sign in w/ Google account - Verify:
gemini --version
When to Use
- User asks to "run/ask/use gemini"
- Compare Claude vs Gemini responses
- Get second AI opinion
- Delegate task to Gemini
Usage
# One-shot query
gemini "Your prompt"
# Specific model
gemini -m gemini-3-pro-preview "prompt"
# JSON output
gemini -o json "prompt"
# YOLO mode (auto-approve)
gemini -y "prompt"
# File analysis
cat file.txt | gemini "Analyze this"
Comparison Workflow
- Provide Claude's response first
- Run same query via Gemini CLI
- Present both for comparison
CLI Options
| Flag | Desc |
|---|---|
-m |
Model (gemini-3-pro) |
-o |
Output: text/json/stream-json |
-y |
Auto-approve (YOLO) |
-d |
Debug mode |
-s |
Sandbox mode |
-r |
Resume session |
-i |
Interactive after prompt |
Best Practices
- Quote prompts w/ double quotes
- Use
-o jsonfor parsing - Pipe files for context
- Specify model for specific capabilities
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?