forayconsulting/gemini_cli_skill/gemini-cli-skill-2
Claude Code and agent skill by forayconsulting/gemini_cli_skill
- community
Checking that the SKILL.md file is still in the repository.
Wield Google's Gemini CLI as a powerful auxiliary tool for code generation, review, analysis, and web research. Use when tasks benefit from a second AI perspective, current web information via Google Search, codebase architecture analysis, or parallel code generation. Also use when user explicitly requests Gemini operations.
Install
npx vskill@latest install forayconsulting/gemini_cli_skill/gemini-cli-skill-2SKILL.md
Gemini CLI Integration Skill
This skill enables Claude Code to effectively orchestrate Gemini CLI (v0.16.0+) with Gemini 3 Pro for code generation, review, analysis, and specialized tasks.
When to Use This Skill
Ideal Use Cases
- Second Opinion / Cross-Validation
- Code review after writing code (different AI perspective)
- Security audit with alternative analysis
- Finding bugs Claude might have missed
- Google Search Grounding
- Questions requiring current internet information
- Latest library versions, API changes, documentation updates
- Current events or recent releases
- Codebase Architecture Analysis
- Use Gemini's
codebase_investigatortool - Understanding unfamiliar codebases
- Mapping cross-file dependencies
- Parallel Processing
- Offload tasks while continuing other work
- Run multiple code generations simultaneously
- Background documentation generation
- Specialized Generation
- Test suite generation
- JSDoc/documentation generation
- Code translation between languages
When NOT to Use
- Simple, quick tasks (overhead not worth it)
- Tasks requiring immediate response (rate limits cause delays)
- When context is already loaded and understood
- Interactive refinement requiring conversation
Core Instructions
1. Verify Installation
2. Basic Command Pattern
Key flags:
--yoloor-y: Auto-approve all tool calls-o text: Human-readable output-o json: Structured output with stats-m gemini-2.5-flash: Use faster model for simple tasks
3. Critical Behavioral Notes
YOLO Mode Behavior: Auto-approves tool calls but does NOT prevent planning prompts. Gemini may still present plans and ask "Does this plan look good?" Use forceful language:
- "Apply now"
- "Start immediately"
- "Do this without asking for confirmation"
Rate Limits: Free tier has 60 requests/min, 1000/day. CLI auto-retries with backoff. Expect messages like "quota will reset after Xs".
4. Output Processing
For JSON output (-o json), parse:
Quick Reference Commands
Code Generation
Code Review
Bug Fixing
Test Generation
Documentation
Architecture Analysis
Web Research
Faster Model (Simple Tasks)
Error Handling
Rate Limit Exceeded
- CLI auto-retries with backoff
- Use
-m gemini-2.5-flashfor lower priority tasks - Run in background for long operations
Command Failures
- Check JSON output for detailed error stats
- Verify Gemini is authenticated:
gemini --version - Check
~/.gemini/settings.jsonfor config issues
Validation After Generation
Always verify Gemini's output:
- Check for security vulnerabilities (XSS, injection)
- Test functionality matches requirements
- Review code style consistency
- Verify dependencies are appropriate
Integration Workflow
Standard Generate-Review-Fix Cycle
Background Execution
For long tasks, run in background and monitor:
Gemini's Unique Capabilities
These tools are available only through Gemini:
- google_web_search - Real-time internet search via Google
- codebase_investigator - Deep architectural analysis
- save_memory - Cross-session persistent memory
Configuration
Project Context (Optional)
Create .gemini/GEMINI.md in project root for persistent context that Gemini will automatically read.
Session Management
List sessions: gemini --list-sessions Resume session: echo "follow-up" | gemini -r [index] -o text
See Also
reference.md- Complete command and flag referencetemplates.md- Prompt templates for common operationspatterns.md- Advanced integration patternstools.md- Gemini's built-in tools documentation
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md
Popularity
- Repository stars
- 163
- Repository forks
- 20
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/forayconsulting/gemini_cli_skill/gemini-cli-skill-2)