aparente/claude-skills/google-ai-mode
Claude Code and agent skill by aparente/claude-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use this skill when the user requests current information, documentation, coding examples, or web research beyond the knowledge cutoff. Queries Google's AI Search mode to retrieve comprehensive AI-generated overviews with source citations from 100+ websites. Returns markdown with inline footnoted references [1][2][3]. You will receive a detailed Markdown file with references and information summarized directly from Google's AI search. Ideal for you to get new information and clues for further research.
Install
npx vskill@latest install aparente/claude-skills/google-ai-modeSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Google AI Mode Skill
Query Google's AI Search mode to retrieve comprehensive, source-grounded answers from across the web.
When to Use This Skill
Trigger this skill when the user:
- Requests current information beyond the knowledge cutoff (post-January 2025)
- Needs documentation or API references for libraries and frameworks
- Asks for coding examples or implementation patterns
- Wants technical comparisons or best practices
- Requires research with citations and sources
- Mentions "Google AI search", "Google AI mode", or "web research"
CLI Flags
Essential Flags
`--debug` - Enable comprehensive logging
- Saves detailed logs to
logs/search_YYYY-MM-DD_HH-MM-SS.log - Logs every step: browser launch, CAPTCHA detection, AI content waiting, citation extraction
- Essential for troubleshooting CAPTCHA issues or failed searches
- Log file path printed at completion
`--save` - Save results to skill folder
- Saves markdown to
results/YYYY-MM-DD_HH-MM-SS_Query_Name.md - Timestamped filename for organized storage
- Results preserved in skill directory for future reference
- Use instead of
--outputfor automatic naming
Combined usage (recommended for debugging):
Other Flags
`--show-browser` - Show browser window (for CAPTCHA solving)
`--output <path>` - Custom output file path
`--json` - Include JSON metadata in output
Query Optimization Strategy
CRITICAL: Always optimize user queries before execution. Google AI Mode's quality depends on query precision.
Optimization Template
Optimization Rules
- Include Current Year (2026) for up-to-date results
- Use parentheses to list specific aspects needed
- Request structured output (tables, comparisons, categorized lists)
- Include version numbers for library/framework queries
Examples
| User Query | Optimized Query | |
|---|---|---|
| "React hooks" | "React hooks best practices 2026 (useState, useEffect, custom hooks, common pitfalls). Provide code examples." | |
| "What's new in Rust?" | "Rust 1.75 new features 2026 (async traits, impl Trait improvements, const generics, stabilized APIs). Include migration guide and code examples." | |
| "PostgreSQL vs MySQL performance?" | "PostgreSQL vs MySQL performance comparison 2026 (query optimization, indexing strategies, concurrent writes, JSON handling, scaling patterns). Provide benchmark data and use case recommendations." | |
| "How to handle errors in Go?" | "Go error handling patterns 2026 (error wrapping, custom errors, sentinel errors, panic vs error, testing error cases). Provide code examples and best practices comparison." | |
| "Learn FastAPI basics" | "FastAPI tutorial 2026 (routing, dependency injection, async endpoints, request validation with Pydantic, OpenAPI documentation, testing). Include step-by-step implementation guide." |
Note: If user provides an already detailed query with version numbers and requirements, use it as-is.
Workflow
- Receive user request
- Optimize query using template above
- Inform user: "Searching for: '[optimized query]'"
- Execute search with
--save --debugflags - Return results with inline citations [1][2][3]
Script Execution
CRITICAL: Always use the run.py wrapper. Direct script execution will fail.
Basic Search
Recommended Usage
The run.py wrapper automatically:
- Creates
.venvon first run - Installs dependencies (patchright, beautifulsoup4, html-to-markdown)
- Activates virtual environment
- Executes search script
- Installs Google Chrome (not Chromium) for anti-detection
How It Works
- Persistent Browser Context: Uses saved browser profile at
~/.cache/google-ai-mode-skill/chrome_profileto preserve cookies/session between searches - Eliminates CAPTCHAs: Persistent context means Google recognizes the browser → rarely triggers CAPTCHA
- AI Content Detection: Waits for Google AI Overview to appear on page
- Citation Extraction: Injects JavaScript to extract source links from AI response
- Markdown Conversion: Converts HTML to markdown with inline citations [1][2][3]
- Fast Results: Typical search completes in 5-7 seconds (no CAPTCHA)
CAPTCHA Handling
With persistent context, CAPTCHAs are rare. If encountered:
- Detection: Multi-layer check (URL
/sorry/index, page text, content length) - Automatic Handling: If CAPTCHA detected in headless mode → script returns
CAPTCHA_REQUIREDerror - Manual Solution: Re-run with
--show-browserflag, solve CAPTCHA in browser, script continues automatically
Note: After CAPTCHA is solved once, persistent context preserves the session → future searches won't require CAPTCHA.
Output Format
Returns markdown with inline citations and source list. Example:
Common Use Cases
Finding Library Documentation
Getting Coding Examples
Technical Comparisons
Best Practices Research
Troubleshooting
| Issue | Solution | |
|---|---|---|
ModuleNotFoundError | Use run.py wrapper, never execute scripts directly | |
| CAPTCHA every time | First-time setup: solve CAPTCHA once with --show-browser, then persistent context preserves session | |
| No AI overview found | Rephrase query with more specificity using optimization template | |
| Browser fails to start | Verify internet connection and Chrome installation | |
| Need detailed logs | Use --debug flag - log saved to logs/ folder | |
| AI Mode not available | Your region/country doesn't support Google AI Mode. Use a proxy/VPN to access from supported regions (US, UK, Germany, etc.) |
Exit Codes:
0- Success1- General error2- CAPTCHA required (retry with--show-browser)3- Browser closed by user4- AI Mode not available in region (use proxy/VPN)130- User interrupted (Ctrl+C)
Best Practices
- Always optimize queries - Specificity determines result quality
- Use `--save --debug` for important searches - Preserves results and provides audit trail
- Include version numbers for library/framework queries
- Request structured output - Tables and comparisons improve usability
- Solve CAPTCHA once - Persistent context eliminates future CAPTCHAs
- Verify citations - Check provided sources for accuracy
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/google-ai-mode/SKILL.md
Popularity
- Repository stars
- 56
- Repository forks
- 3
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aparente/claude-skills/google-ai-mode)