Gemini CLI for Large Codebase Analysis
Analyzes large codebases using Gemini's extended context window for comprehensive multi-file analysis.
/plugin marketplace add emiperez95/cc-toolkit/plugin install gemini@cc-toolkitUse the Gemini CLI to analyze large codebases or multiple files that might exceed Claude's context limits. Leverage Google Gemini's massive context window for comprehensive codebase analysis.
Use the @ syntax to include files and directories in Gemini prompts. Paths are relative to the current working directory:
Single file:
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:
gemini -p "@./ Give me an overview of this entire project"
All files flag:
gemini --all_files -p "Analyze the project structure and dependencies"
Feature verification:
gemini -p "@src/ @lib/ Has dark mode been implemented? Show relevant files and functions"
Authentication check:
gemini -p "@src/ @middleware/ Is JWT authentication implemented? List auth-related endpoints"
Pattern detection:
gemini -p "@src/ Are there React hooks handling WebSocket connections? List with file paths"
Error handling audit:
gemini -p "@src/ @api/ Is proper error handling implemented for all API endpoints?"
Security review:
gemini -p "@src/ @api/ Are SQL injection protections implemented? Show input sanitization"
Test coverage:
gemini -p "@src/payment/ @tests/ Is the payment module fully tested? List test cases"
Architecture analysis:
gemini -p "@src/ @lib/ Explain the overall architecture and key design patterns"
Dependency mapping:
gemini -p "@src/ Map out all module dependencies and their relationships"
Invoke this skill when:
gemini -p command with @ syntax for files/directories@ syntax are relative to current working directory--yolo flag needednpm install -g @google/gemini-cligemini --version