/gemini
Execute Gemini CLI with the context from docs/gemini.md for large codebase analysis.Usage
Description
This command reads thedocs/gemini.md
file which contains best practices for using the Gemini CLI with large codebases, then executes the appropriate gemini command based on your prompt.
Examples
Analyze a single file
Check feature implementation
Analyze entire project
Verify security measures
Implementation
When you use this command, I will:- Check if Gemini CLI is installed and accessible
- Read the contents of
docs/gemini.md
to understand Gemini CLI usage patterns (provide helpful error if missing) - Analyze your prompt to determine the appropriate Gemini command structure
- Execute the gemini command with the proper flags and file inclusions
- Return the results to help with your codebase analysis
Error Handling
- If Gemini CLI is not installed, provide installation instructions
- If
docs/gemini.md
is missing, use built-in knowledge of Gemini CLI best practices - Handle command execution errors gracefully with helpful messages
Note
The Gemini CLI is particularly useful when:- Analyzing entire codebases or large directories
- Context window limits are a concern
- You need to verify implementation of specific features across many files
- Working with files totaling more than 100KB