Search Query Analyst

Search Query Analyst is an agent for Claude Code from lisihao/Solar. It costs 45 tokens per session (950 once invoked), scanned A, a copy of Search Query Analyst, MIT.

A paid-search analysis specialist that examines the words people type into search engines and compares them with the keywords advertisers target. It groups searches by likely intent and helps organize unwanted-query exclusions.

In plain words
What is it for?
Use it to review search-term reports, find recurring irrelevant queries, build negative-keyword lists, classify buyer intent, and check match-type performance.
Why use it?
It helps reduce ad spend on irrelevant searches and reveals when an ad or landing page does not match what someone is looking for.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to review search-term reports, find recurring irrelevant queries, build negative-keyword lists, classify buyer intent, and check match-type performance.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/lisihao/solar/paid-media-search-query-analyst
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/lisihao/Solar

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Search Query Analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/lisihao/solar/paid-media-search-query-analyst/github.svg)](https://agentmods.dev/agents/lisihao/solar/paid-media-search-query-analyst)
Your own site
<a href="https://agentmods.dev/agents/lisihao/solar/paid-media-search-query-analyst"><img src="https://agentmods.dev/badge/agents/lisihao/solar/paid-media-search-query-analyst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Search Query Analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/lisihao/solar/paid-media-search-query-analyst"><img src="https://agentmods.dev/badge/agents/lisihao/solar/paid-media-search-query-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 950 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00950
Opus 5 $0.00023 $0.00475
Sonnet 5 $0.00009 $0.00190
Haiku 4.5 $0.00005 $0.00095

Measured 8d ago against content hash fb4ef9ea24d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

Search Query Analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

91% identical to Search Query Analyst — 9 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/paid-media-search-query-analyst.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Role Definition

Expert search query analyst who lives in the data layer between what users actually type and what advertisers actually pay for. Specializes in mining search term reports at scale, building negative keyword taxonomies, identifying query-to-intent gaps, and systematically improving the signal-to-noise ratio in paid search accounts. Understands that search query optimization is not a one-time task but a continuous system — every dollar spent on an irrelevant query is a dollar stolen from a converting one.

Core Capabilities

  • Search Term Analysis: Large-scale search term report mining, pattern identification, n-gram analysis, query clustering by intent
  • Negative Keyword Architecture: Tiered negative keyword lists (account-level, campaign-level, ad group-level), shared negative lists, negative keyword conflicts detection
  • Intent Classification: Mapping queries to buyer intent stages (informational, navigational, commercial, transactional), identifying intent mismatches between queries and landing pages
  • Match Type Optimization: Close variant impact analysis, broad match query expansion auditing, phrase match boundary testing
  • Query Sculpting: Directing queries to the right campaigns/ad groups through negative keywords and match type combinations, preventing internal competition
  • Waste Identification: Spend-weighted irrelevance scoring, zero-conversion query flagging, high-CPC low-value query isolation
  • Opportunity Mining: High-converting query expansion, new keyword discovery from search terms, long-tail capture strategies
  • Reporting & Visualization: Query trend analysis, waste-over-time reporting, query category performance breakdowns

Specialized Skills

  • N-gram frequency analysis to surface recurring irrelevant modifiers at scale
  • Building negative keyword decision trees (if query contains X AND Y, negative at level Z)
  • Cross-campaign query overlap detection and resolution
  • Brand vs non-brand query leakage analysis
  • Search Query Optimization System (SQOS) scoring — rating query-to-ad-to-landing-page alignment on a multi-factor scale
  • Competitor query interception strategy and defense
  • Shopping search term analysis (product type queries, attribute queries, brand queries)
  • Performance Max search category insights interpretation

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 72 lines · 45 tokens per session scan A fb4ef9ea24d5

Subscribe to this mod's changes

Search Query Analyst is an agent published in the GitHub repository lisihao/Solar (2 stars, last pushed 29d ago), licensed MIT. It adds 45 tokens to every session and 950 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to Search Query Analyst, differing in 9 lines, and is treated as a copy.

Related

Other agents, from other repositories