Agent skill · software engineering · secondsky
gemini-cli
Google Gemini CLI for second opinions, architectural advice, code reviews, security audits. Leverage 1M+ context for comprehensive codebase analysis via command-line tool.
Why this skill is useful
Adds executable command patterns and integration workflows for using the Google Gemini CLI, enhancing code review and architectural decision-making capabilities.
What it needs
Requires @google/gemini-cli installed locally. Requires google account access. About 6k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
Gemini CLI Leverage Gemini's 1M+ context window as your AI pair programmer within Claude Code workflows. This skill teaches Claude Code how to use the official Google Gemini CLI (gemini command) to get second opinions, architectural advice, debugging help, and comprehensive code reviews. Based on production testing with the official CLI tool. --- Table of Contents 1. Quick Start 2. When to Use Gemini Consultation 3. Installation 4. Model Selection: Flash vs Pro 5. Top 3 Use Cases 6. Integration Example 7. Top 3 Errors & Solutions 8. When to Load References 9. Production Rules --- Quick Start Prerequisites: Gemini CLI installed (bun add -g @google/gemini-cli) Authenticated with Google account (run gemini once to authenticate) Core Command Patterns: Critical: Always use -p flag for non-interactive commands in automation/scripts. --- When to Use Gemini Consultation ALWAYS Consult (Critical Scenarios) Claude Code should automatically invoke Gemini in these situations: 1. Major Architectural Decisions Example: "Should I use D1 or KV for session storage?" Example: "Durable Objects vs Workflows for long-running tasks?" Pattern: gemini -m gemini-2.5-pro -p "[architectural question]" 2. Security-Sensitive Code Changes Authentication systems, payment processing, PII handling API key/secret management Pattern: cat [security-file] gemini -m gemini-2.5-pro -p "Security audit this code" 3. Stuck Debugging (2+ Failed Attempts) Error persists after 2 debugging attempts Stack trace unclear or intermittent bugs Pattern: gemini -p "Help debug: [error message]" < error.log 4. Large Refactors (5+ Files) Core architecture changes, database schema migrations Pattern: gemini --all-files -m gemini-2.5-pro -p "Review this refactoring plan" 5. Context Window Pressure (70%+ Full) Approaching token limit, need to offload analysis Pattern: cat large-file.ts gemini -p "Analyze this code structure" OPTIONALLY Consult 6. Unfamiliar Technology - Using library/framework for first time 7. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/gemini-cli