Gemini Search
Overview
Perform internet searches and retrieve real-time external information using the Gemini CLI utility with the gemini-2.5-flash model.
When to Use This Skill
Activate this skill when the user:
- Explicitly requests a search: "Search for...", "Look up...", "Find information about..."
- Asks for current/recent information: "What's the latest news about...", "What happened today..."
- Needs fact verification: "Is it true that...", "Verify this claim..."
- Requires external knowledge: "Help me understand...", "Explain how X works..."
- Requests research assistance: "Research X topic", "Gather information on..."
Usage
Basic Search
Execute a search by calling the search script:
./scripts/search.sh "<your search query>"
Or directly use the gemini CLI:
gemini -p "<your search query>" -m gemini-2.5-flash
Search Query Best Practices
- Be specific: Include key terms and context
- Use quotes for exact phrases:
"exact phrase to match" - Add time constraints if needed: "2024", "latest", "recent"
- Combine with topic modifiers: "tutorial", "documentation", "news", "research"
Example Searches
| User Request | Search Query |
|---|---|
| "What's the latest AI news?" | latest AI news 2026 |
| "Find Python async best practices" | Python async await best practices tutorial |
| "Who won the Super Bowl 2026?" | Super Bowl 2026 winner result |
| "Research quantum computing advances" | quantum computing breakthroughs 2025 2026 |
Script Reference
scripts/search.sh
Shell script wrapper for Gemini search operations.
Usage:
./scripts/search.sh <query>
Parameters:
<query>- The search query string (required, wrap in quotes if contains spaces)
Returns:
- Search results from Gemini CLI to stdout
- Exit code 1 if no query provided
Error Handling
If the gemini CLI fails:
- Check installation: Ensure
geminiCLI is installed and in PATH - Verify credentials: Confirm API access is configured
- Retry with simpler query: Complex queries may timeout
- Fallback: Report the error and suggest alternative approaches
Resources
scripts/
search.sh- Main search script using gemini CLI
references/
- (None required - delete this directory if not needed)
assets/
- (None required - delete this directory if not needed)