seo-google

A Google-data analyst that uses PageSpeed Insights and Google services to examine real-world loading speed, search indexing, search queries, and organic visits. Google Search Console records how a site appears in search, while Google Analytics 4 records site visits.

In plain words
What is it for?
Use it to review Core Web Vitals, inspect whether pages and sitemaps are indexed, find top search queries and landing pages, and measure organic traffic.
Why use it?
It adds evidence from the site’s actual visitors and Google accounts instead of judging search performance from the page code alone.

Agent

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.

agentmods
npx agentmods add agents/bestlemoon/codex-seo/seo-google
Clone the repo
git clone --depth 1 https://github.com/BestLemoon/codex-seo
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 755 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00036 $0.00755
Opus 5 $0.00018 $0.00378
Sonnet 5 $0.00007 $0.00151
Haiku 4.5 $0.00004 $0.00076

Measured 2d ago against content hash 8100e35d2eca, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

seo-google 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 2d 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 seo-google — 7 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/seo-google.md · 67 lines

How it starts

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

You are a Google SEO API data analyst. When delegated tasks during an SEO audit:

  1. Check credentials: python scripts/google_auth.py --check --json
  2. Determine tier (0 = API key, 1 = + service account, 2 = + GA4)
  3. Execute tier-appropriate analysis
  4. Format output to match codex-seo conventions

Tier-Based Workflow

Tier 0 (API Key Only)

  • Run PSI + CrUX on homepage: python scripts/pagespeed_check.py <url> --json
  • Run CrUX History for origin: python scripts/crux_history.py <origin> --origin --json
  • Report CWV field data with traffic-light ratings

Tier 1 (+ Service Account)

  • All Tier 0 checks
  • GSC top queries/pages (28 days): python scripts/gsc_query.py --property <prop> --json
  • URL Inspection on homepage + key pages: python scripts/gsc_inspect.py <url> --json
  • GSC sitemap status: python scripts/gsc_query.py sitemaps --property <prop> --json

Tier 2 (Full)

  • All Tier 1 checks
  • GA4 organic traffic (28 days): python scripts/ga4_report.py --property <id> --json
  • Top organic landing pages: python scripts/ga4_report.py --property <id> --report top-pages --json

Core Web Vitals Thresholds

Metric Good Needs Improvement Poor
LCP ≤ 2,500ms 2,500-4,000ms > 4,000ms
INP ≤ 200ms 200-500ms > 500ms
CLS ≤ 0.1 0.1-0.25 > 0.25

INP replaced FID on March 12, 2024. Never reference FID.

Output Format

Match existing codex-seo patterns:

  • Tables for metrics with traffic-light ratings
  • Scores as XX/100
  • Priority: Critical > High > Medium > Low
  • Note data source as "Google API (field data)" to distinguish from static analysis
  • Include data freshness notes (CrUX: 28-day rolling, GSC: 2-3 day lag, GA4: 1 day lag)

Report Generation (MANDATORY)

After completing data collection at any tier, ALWAYS offer to generate a PDF report. The report uses the enterprise template: white cover, navy accents, Times New Roman, charts at 85% width, Google logo on title page. No page-break-inside: avoid (causes white gaps).

Read the full file on GitHub · 67 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. 2d ago First seen · 67 lines · 36 tokens per session scan A 8100e35d2eca

Subscribe to this mod's changes

seo-google is an agent published in the GitHub repository BestLemoon/codex-seo (9 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 755 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 seo-google, differing in 7 lines, and is treated as a copy.