psyduckler/aeo-skills/aeo-grounding-query-mapper
Claude Code and agent skill by psyduckler/aeo-skills
- community
Checking that the SKILL.md file is still in the repository.
Map the exact search queries Gemini 3 Flash fires when answering prompts. Run prompts multiple times with Google Search grounding to capture query frequency, cluster similar queries, identify patterns/themes, and analyze query evolution. Supports single prompts and batch mode (file input). Upgraded version of prompt-frequency-analyzer with richer analysis including query clustering, cross-prompt overlap, and theme detection. Use when investigating: what Google's AI actually searches for, query pattern analysis across related prompts, how to align content with AI search behavior, or comparing query strategies across different prompt phrasings.
Install
npx vskill@latest install psyduckler/aeo-skills/aeo-grounding-query-mapperSKILL.md
The same SKILL.md was published earlier as psyduckler/aeo-skills/aeo-grounding-query-mapper.
AEO Grounding Query Mapper
Source: github.com/psyduckler/aeo-skillsPart of: AEO Skills Suite
Map the exact search queries Gemini 3 Flash fires when answering prompts — with clustering, pattern analysis, and cross-prompt comparison.
Why This Matters
When Gemini 3 Flash generates an AI Overview, it doesn't just answer from memory — it fires real Google Search queries to ground its response. Influence happens at retrieval, not inside the model — you can't edit training data, but you can enter the "candidate set" the model selects from when it searches. Gemini is search-first: it searches before nearly every answer, making it more influenceable than GPT.
Understanding what it searches for reveals the recurring retrieval set — the queries, sources, and themes the model consistently draws from:
- What topics to cover — queries reveal the sub-topics the AI considers essential
- How to phrase content — match the exact language the AI searches for
- Cross-prompt patterns — similar prompts may trigger overlapping queries, revealing core themes
- What content type to create — query intent (informational, commercial, navigational, transactional) tells you what format enters the candidate set
This is an upgraded version of prompt-frequency-analyzer with three key additions:
- Query clustering — groups similar queries by shared terms
- Cross-prompt overlap — shows which queries appear across multiple prompts
- Batch mode — process many prompts from a file in one run
Requirements
- Gemini API key (free) — set as
GEMINI_API_KEYenv var - Python 3.9+
- No pip dependencies (stdlib only)
Usage
Run from the skill directory. Resolve scripts/map_queries.py relative to this SKILL.md.
Options
| Option | Default | Description | |
|---|---|---|---|
prompt | (positional, one or more) | Prompts to analyze | |
--prompts-file | (none) | File with one prompt per line | |
--runs | 20 | Runs per prompt | |
--model | gemini-3-flash-preview | Gemini model | |
--concurrency | 5 | Max parallel API calls | |
--output | text | Output format: text or json |
Output
Per-Prompt Analysis
For each prompt:
- Query frequency — each unique search query with run count and percentage
- Intent classification — each query classified as
informational,commercial,navigational, ortransactional - Intent distribution — percentage breakdown of query intents across all unique queries
- Query clusters — groups of similar queries sharing key terms
- Top sources — domains cited most frequently
Intent Classification
Every search query is automatically classified by intent:
- informational — knowledge-seeking queries ("what is X", "how does X work")
- commercial — evaluation/comparison queries ("best X", "X vs Y", "X review")
- navigational — brand/site-specific queries (contains domain names, "X login")
- transactional — purchase/action queries ("buy X", "X discount", "X free trial")
Cross-Prompt Analysis (when multiple prompts)
- Shared queries — queries that appear across 2+ prompts (core themes)
- Unique queries — queries specific to a single prompt
- Query overlap matrix — which prompt pairs share the most queries
Text Example
Tips
- Use batch mode to analyze a set of related prompts and find themes
- High-frequency queries (>60%) are the AI's "go-to" searches — align your content with them
- Low-frequency queries (<20%) reveal edge-case sub-topics the AI sometimes explores
- Cross-prompt overlap reveals core themes you must cover regardless of phrasing
- Pair with
aeo-content-free— use discovered queries as section headings and topics
Notes
- Gemini API key in macOS Keychain under
google-api-key - Retries with exponential backoff (up to 5 attempts)
- Keep
--concurrency≤5 to avoid rate limits - Prompts are processed sequentially (concurrency applies within each prompt's runs)
Security
- Security scanPassed, 90 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 repositoryCheckingaeo-grounding-query-mapper/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/psyduckler/aeo-skills/aeo-grounding-query-mapper)