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.
npx skills add majiayu000/claude-skill-registry --skill gemini-cli-secondsky-claude-skills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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](#quick-start) 2. [When to Use Gemini Consultation](#when-to-use-gemini-consultation) 3. [Installation](#installation) 4. [Model Selection: Flash vs Pro](#model-selection-flash-vs-pro) 5. [Top 3 Use Cases](#top-3-use-cases) 6. [Integration Example](#integration-example) 7. [Top 3 Errors & Solutions](#top-3-errors--solutions) 8. [When to Load References](#when-to-load-references) 9. [Production Rules](#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**: ```bash # Quick question (non-interactive with -p flag) gemini -p "Should I use D1 or KV for session storage?" # Code review with file context cat src/auth.ts | gemini -p "Review this authe
- Table of Contents
- Quick Start
- When to Use Gemini Consultation
- ALWAYS Consult (Critical Scenarios)
- OPTIONALLY Consult
- Installation
- 1. Install Gemini CLI
- 2. Authenticate
- 3. Verify Installation
- Model Selection: Flash vs Pro
- gemini-2.5-flash (Default)
- gemini-2.5-pro
- Quick Decision Guide
- Top 3 Use Cases
Quick question (non-interactive with -p flag) gemini -p "Should I use D1 or KV for session storage?" Code review with file context cat src/auth.ts | gemini -p "Review this authentication code for security vulnerabilities" Architecture advice using Pro model gemini -m gemini-2.5-pro -p "Best way to handle WebSockets in Cloudflare Workers?" With all files in directory gemini --all-files -p "Review this auth implementation for security issues" Interactive mode for follow-up questions gemini -i "Help me debug this authentication error"
What does the gemini-cli skill do?
Google Gemini CLI for second opinions, architectural advice, code reviews, security audits. Leverage 1M+ context for comprehensive codebase analysis via command-line tool.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gemini-cli-secondsky-claude-skills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
