Use the gemini-cli-integration skill PROACTIVELY when analyzing large codebases, multiple files, or directories. Leverages Google Gemini's massive context window with @ syntax for file inclusion to handle comprehensive codebase analysis, implementation verification, and architectural understanding.
Uses Google Gemini's CLI with massive context windows to analyze large codebases or multiple files that exceed standard limits. Triggers when analyzing entire directories, verifying implementations across many files, or comparing multiple large files simultaneously.
/plugin marketplace add Whamp/marketplace/plugin install gemini-cli-integration@whamp-claude-toolsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/gemini-cli-helpUse the Gemini CLI with its massive context window when analyzing large codebases or multiple files that might exceed context limits.
Execute gemini -p with the @ syntax to include files and directories. Paths are relative to the current working directory.
Single file analysis:
gemini -p "@src/main.py Explain this file's purpose and structure"
Multiple files:
gemini -p "@package.json @src/index.js Analyze the dependencies used in the code"
Entire directory:
gemini -p "@src/ Summarize the architecture of this codebase"
Multiple directories:
gemini -p "@src/ @tests/ Analyze test coverage for the source code"
Current directory recursively:
gemini -p "@./ Give me an overview of this entire project"
Alternative to @ syntax:
gemini --all_files -p "Analyze the project structure and dependencies"
Verify specific features are implemented across the codebase:
# Check for feature implementation
gemini -p "@src/ @lib/ Has dark mode been implemented in this codebase? Show me the relevant files and functions"
# Authentication verification
gemini -p "@src/ @middleware/ Is JWT authentication implemented? List all auth-related endpoints and middleware"
# Pattern detection
gemini -p "@src/ Are there any React hooks that handle WebSocket connections? List them with file paths"
Verify security measures and coding standards:
# Error handling verification
gemini -p "@src/ @api/ Is proper error handling implemented for all API endpoints? Show examples of try-catch blocks"
# Security measures
gemini -p "@src/ @api/ Are SQL injection protections implemented? Show how user inputs are sanitized"
# Rate limiting
gemini -p "@backend/ @middleware/ Is rate limiting implemented for the API? Show the implementation details"
Check infrastructure components and test coverage:
# Caching strategy verification
gemini -p "@src/ @lib/ @services/ Is Redis caching implemented? List all cache-related functions and their usage"
# Test coverage analysis
gemini -p "@src/payment/ @tests/ Is the payment processing module fully tested? List all test cases"
For advanced usage scenarios, leverage additional CLI options:
# Auto-approve edit tools only (safer than full YOLO)
gemini --approval-mode auto_edit -p "@src/ Refactor this code for better performance"
# Full auto-approval (use with caution)
gemini --approval-mode yolo -p "@src/ @tests/ Update all tests to use new syntax"
# Specify allowed tools for selective automation
gemini --allowed-tools edit,read -p "@src/ Review and fix syntax issues"
# Resume previous analysis sessions
gemini --resume latest -p "@src/ Continue the security analysis we started"
# List available sessions
gemini --list-sessions
# Delete old sessions
gemini --delete-session 3
# Specify Pro model for difficult analysis
gemini --model gemini-2.5-pro -p "@src/ Analyze this code architecture"
# JSON output for programmatic processing
gemini --output-format json -p "@src/ List all API endpoints" > endpoints.json
# Include additional directories beyond current workspace
gemini --include-directories ../shared-lib -p "@src/ Analyze dependencies"
# Use specific extensions for enhanced analysis
gemini --extensions security-testing -p "@src/ Perform security analysis"
# List available extensions
gemini --list-extensions
# Use specific MCP servers for specialized tools
gemini --allowed-mcp-server-names code-analyzer -p "@src/ Deep code analysis"
Use gemini with appropriate options when:
For complete CLI option reference, see references/gemini-cli-help which contains:
For best results, structure queries with: