Search Query Analyst

Search Query Analyst is an agent for Claude Code, OpenCode from SHAdd0WTAka/Zen-Ai-Pentest. It costs 45 tokens per session (910 once invoked), scanned A, original, MIT.

A paid-search analysis specialist that studies the phrases people type into search engines and compares them with the searches advertisers pay for.

In plain words
What is it for?
It is for reviewing search-term reports, grouping queries by intent, building negative-keyword lists, and improving keyword matching in paid-search accounts.
Why use it?
It helps reduce spending on irrelevant searches and reveals where search intent does not match an advertisement or landing page.

Agent for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit It is for reviewing search-term reports, grouping queries by intent, building negative-keyword lists, and improving keyword matching in paid-search accounts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shadd0wtaka/zen-ai-pentest/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/SHAdd0WTAka/Zen-Ai-Pentest

Made for: Claude Code, OpenCode.

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/shadd0wtaka/zen-ai-pentest/search-query-analyst/github.svg)](https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/search-query-analyst)
Your own site
<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/search-query-analyst"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/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/shadd0wtaka/zen-ai-pentest/search-query-analyst"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/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 910 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 original No closer match found 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.00910
Opus 5 $0.00023 $0.00455
Sonnet 5 $0.00009 $0.00182
Haiku 4.5 $0.00005 $0.00091

Measured 7d ago against content hash 7ddaa9ccae81, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 7d 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

Copies of this mod

1 near-identical copy found in the catalogue:

.opencode/agents/search-query-analyst.md · 69 lines

How it starts

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

Identity & 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 · 69 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. 7d ago First seen · 69 lines · 45 tokens per session scan A 7ddaa9ccae81

Subscribe to this mod's changes

Search Query Analyst is an agent published in the GitHub repository SHAdd0WTAka/Zen-Ai-Pentest (453 stars, last pushed 3d ago), licensed MIT. It adds 45 tokens to every session and 910 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

cos-compliance

Use this agent before shipping, merging, or deploying changes. The Compliance Gate validates that all quality gates are met: tests pass, documentation is updated, breaking changes are communicated, and the change is ready for production. Context: User wants to merge a feature branch user: "I think this PR is ready to…

winstonkoh87/Athena-Public · 180 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

Context7-Expert

Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.

github/awesome-copilot · 22 tokens