---
name: seo-geo-monitor
description: Set up, run, or resume a daily SEO and AI-answer visibility monitor for a verified website. Use when an owner wants search performance, repeatable mention and citation checks, and private saved views in Fuze CRM via MCP.
---

# SEO and GEO monitor

Answer three separate questions: **Did people see or click us in search? Did an answer name us? Did it actually cite our site?** Store the evidence in the owner's CRM. A search impression, a brand mention and a citation are not interchangeable.

## Install and invoke

Put this file in a directory named `seo-geo-monitor` inside your agent's supported skills directory. For Claude Code in a trusted private project, save it as `.claude/skills/seo-geo-monitor/SKILL.md`, then invoke `/seo-geo-monitor`. On another host that supports skills, import the directory; otherwise give the Markdown to your agent as instructions. This doesn't connect accounts, schedule work or grant access.

**Operator request (example, not a configuration to deploy):** “Set up the monitor for my verified site `example.org`, brand `Example Works`, markets NZ/en and AU/en, weekdays and weekends at 08:15 Pacific/Auckland. Use the CRM connector URL and workspace I select. Track my approved query and prompt lists; report missing sources.” Use `setup` for discovery and reconciliation, `run` for today's collection, or `status` for a read-only report. These are intentions in natural language, not CRM commands.

## Setup: discover, reconcile, read back

1. **Resolve the target.** Use owner-supplied settings or an existing private monitor profile: stable monitor ID, CRM connector URL, workspace/tenant, verified Google property (including domain vs URL-prefix scope), verified Bing site if available, brand and unambiguous aliases, citation host allowlist, markets (country + language), query list, exact prompts with stable IDs, answer surfaces/modes, local run time and IANA time zone. Establish whether subdomains count; never accept suffix lookalikes. Keep one active profile per intended property/monitor. Read existing configuration before asking for missing choices. Version text, aliases, market or measurement changes; don't silently change the series being compared.
2. **Connect to Fuze CRM, not the Fuze platform API.** Use the managed CRM endpoint `https://fuze-crm.exe.xyz/api/mcp` (or `<your CRM origin>/api/mcp`). An App Owner enables **Modules** and **Data** in **Settings → MCP & API Console**, leaves **Read-only** off, then connects or reconnects the agent, selects the intended workspace, and checks **Enable Data Studio commands** at OAuth consent. Refresh tools after reconnecting. Discover `list_modules`, `describe_table`, `create_module`, `create_table`, `create_view` and `attach_view_to_module`. Call `list_modules({})` and show its `workspace_key` before making any writes. Confirm the workspace audience is permitted to see the monitor's evidence. If only business record tools are available, stop setup and ask for that CRM connection and grant; don't substitute an API or credentials.
3. **Create or reuse one flat module.** Look up key `marketing_seo`; if absent after verifying the workspace and getting approval to set up, call `create_module` with `module_key: "marketing_seo"` and `label: "Marketing — SEO"`. If the owner explicitly points to a compatible existing module, reuse its key. Don't try to create a nested module or use `extend_module` to add a table. Return the module's `url` from `list_modules`.
4. **Build and verify the destination via MCP.** For each dataset below, call `describe_table` first. Use `create_table` only on `NOT_FOUND`, with `table_key`, `label` and `fields` as shown below. Re-read the actual table before proceeding. For each saved grid, use `create_view` with `table_key`, `view_key`, `label`, `fields` (column keys), and `filter: {field: "monitor_id", value: "<confirmed monitor ID>"}`. Use a stable, distinct `view_key` per monitor, starting with a letter and containing only lowercase letters, digits and underscores. Use `attach_view_to_module` with the confirmed `module_key`, `table_key` and `view_key`. To link the underlying table instead, `attach_table_to_module` accepts the module and table keys. Reuse matching fields/views and leave unrelated settings intact. If keys or types conflict, stop the affected write and report the conflict; don't replace, delete or alter existing tables. Re-read `list_modules` for that module and check the attached item's `refKey` and `config.objectKey`. Check that `<table_key>_query` and permitted record write tools are available after creation; refresh the host's tool inventory if needed.
5. **Save the profile before collecting.** In `seo_profiles`, look up the exact `row_key` for `[monitor_id, "profile"]`. If absent, use `seo_profiles_create_record` with that row key, `monitor_id`, the verified `property`, `timezone` and `settings` as serialized JSON. If a concurrent create won, read the existing row rather than overwriting it. Reuse settings that match the approved configuration. Get approval for changes and version the settings before updating. Read the profile back by exact key and confirm the CRM link opens in the intended workspace.
6. **Verify and schedule.** Independently check approved, no-additional-cost source connections and confirm each source property. A verification tag is not access to performance data. Run once with real sources under the daily guard below and read back the results. If a source doesn't connect, leave it unavailable and report which grant or source is missing. Register one recurring `run` only if requested and an authorized scheduler is available. Find an existing schedule before making one. Use the configured IANA time zone and verify cadence, next fire and execution identity. A workflow draft is not an enabled schedule. Never reuse interactive session cookies as scheduler credentials.

### Private data contract

Use a required, unique text `row_key` and a required text `monitor_id` on all four tables. Example `create_table` field spec: `{key: "row_key", label: "Row key", type: "text", required: true, unique: true}`. Build `row_key` from an ordered tuple including the monitor ID and the grain below (for example, a compact JSON array). Never put credentials in records.

| Dataset | Unique grain after workspace + monitor | Minimum payload |
| --- | --- | --- |
| Profile | `profile` | Target settings, approved query/prompt lists and versions, source/surface IDs and run time; no secrets. |
| Daily runs | `run, local_date` | Configuration revision, zone, started/finished UTC, state, per-source status/latest source date, expected and observed counts, short reason for gaps. |
| Search performance | `search, source, property, source_date, search_type, filter_set, grain, dimension_values` | Source reporting zone, source date, collection timestamp, scope/filters, clicks, impressions, CTR, average position if supplied, provenance and status. `grain` distinguishes property/market totals from query detail. |
| Answer checks | `answer, local_date, surface, mode, market, prompt_id, prompt_revision` | Exact wording or private profile reference, effective locale, model/version if exposed, check timestamp, status, brand mention, owned-domain citation, visible supporting source URL(s) and evidence note. One independent fresh session per sample; no multiprompt conversation. |

Use these table keys and fields in addition to `row_key` and `monitor_id`. Unmarked fields are nullable. Payload fields store the remaining contract above as JSON **text**, not as extra schema or a credential store.

| Table key | Fields |
| --- | --- |
| `seo_profiles` | `property` (required text), `timezone` (required text), `settings` (required text; approved measurement configuration and revision) |
| `seo_daily_runs` | `local_date` (required date), `status` (required text), `started_at`, `finished_at`, `coverage` (text; timestamps are UTC RFC 3339 and coverage includes the last successful date per source) |
| `seo_search_performance` | `provider` (required text), `source_date` (date; null for an export that has only a date range), `market`, `grain`, `landing_page`, `query_text`, `provenance` (text), `clicks`, `impressions`, `ctr`, `average_position` (number; CTR is a fraction) |
| `seo_answer_checks` | `local_date` (required date), `surface`, `market`, `prompt_id`, `prompt_revision`, `status`, `evidence` (text; evidence preserves plain excerpts and public citation URLs), `mention`, `owned_citation` (boolean) |

Use stable source/filter identifiers (including market, device and observed or requested locale as applicable). Store dates and numbers in their typed columns and unknowns as null or an omitted field plus a reason in the payload. Strip tracking parameters and private identifiers from evidence links. Store public citation targets only; never share a private answer transcript or copy credentials into a prompt, record or public download.

### Saved views in Marketing — SEO

- **Monitor profile** on `seo_profiles`: property, time zone and approved measurement settings.
- **Search performance** on `seo_search_performance`: provider, market, grain, date, landing page/query and metrics. In the report, show trends from total rows only, with query rows as drill-down. Never add totals and query rows together.
- **AI answer evidence** on `seo_answer_checks`: observation date, market, prompt, surface, status, mention, owned citation and evidence. In the report, give separate counts and denominators for mention and citation alongside expected/failed checks.
- **Daily health** on `seo_daily_runs`: latest run, last successful source dates, coverage and gaps. These are workspace grid views, not dashboards or schedules. Don't label stale measurements as today's result.

## Run: one collection per local day

1. **Claim the day before collecting.** Read the profile and derive `local_date` from the current instant in its time zone. Look up the unique run key. If finished (including finished with gaps), return the saved report; if active, return its status. Prefer conditional create/unique constraint and conditional updates; a losing worker reads the winner. If the CRM can't enforce uniqueness, run only with one serialized writer and no overlapping manual/scheduled jobs; otherwise stop before submitting. Resume an interrupted run under the same ID, configuration and original date; don't start a second run. Record a pending answer check before sending. If a crash leaves submission uncertain and the original answer can't be recovered by ID, mark it unknown; do **not** submit it again that day. Don't fill yesterday's missing answers with today's observations.
2. **Google.** Read the verified property's Search Console Search Analytics data with final data only (`dataState: final` when that API is exposed). Find the latest returned final date on a recent date-grouped read; don't assume it's yesterday. Search Console dates are **America/Los_Angeles**, not the scheduler's zone. Fetch available final dates since the last stored final date (initial default: last 28 source days), then totals and approved query slices with the same search type and filters. Upsert each returned date under its **source date** key; store today's UTC retrieval time separately. An unchanged latest date is `no_new_final_day`, not a new zero. If finality can't be established, flag it and keep provisional data out of the final trend. A missing query row may be withheld or outside the response limit: record `not_returned`, not zero. Average position is Google's aggregate measure, not a live rank. Don't reconstruct property totals from query rows.
3. **Bing.** Independently read Bing Webmaster Tools data for its own verified site using an available authorized reader or owner-provided dated export. Keep Bing's own date range, reported day boundaries, dimensions, freshness, metrics and provenance. If the source doesn't specify its reporting zone, label it unknown; if only a period total is available, label the period rather than splitting it into days. Missing access/unsupported market = unavailable, never inferred from Google or from an AI answer. Bing organic clicks are not Copilot citations.
4. **Answer surfaces.** For each approved surface × market × prompt, use only a permitted, already-authorized method that can actually submit the exact prompt and inspect the returned answer. Keep language, mode and market controls fixed. If the surface can't honor a required market, record `unsupported_market`; don't claim a regional observation from prompt language alone. Record `mention=true` only for an unambiguous brand/approved alias in the answer text. Record `owned_citation=true` only for an actual source link attached to that answer whose parsed hostname matches the configured host policy (exact host, or a dot-delimited subdomain if explicitly allowed). A brand mention, an uncited URL in prose, a third-party review and a link in the surrounding search results are not owned citations. An inspectable answer with no mention is `false`; an inspectable citations list with no owned link is `false`. If citations can't be inspected, citation is null even when mention is known. No answer access, timeout, quota or required sign-in: keep affected measures null and record why. Never substitute an agent's recollection or a fabricated answer.
5. **Compare like with like.** Show latest versus previous available comparable final source date **by provider**, with both dates and gaps. For the landing-page report, compare the two adjacent seven-day windows ending on the latest final source date, using matching filters and page-level totals (not query rows). Report missing coverage rather than a weekly delta if either window is incomplete. Derive CTR from clicks/impressions only when both cover the same scope and impressions are positive; express changes in percentage points. Don't average averages. Compare answer checks only with the same prompt revision, surface/mode, locale and measurement policy. Show mention and citation denominators separately, excluding unknowns, plus coverage against the full expected set. Changed settings or no comparable prior value = `no_baseline`, not a decline. A sample describes what that surface returned once; it is not a universal ranking.
6. **Read back, then close.** Use the table's `_query` tool with `filters: [{field: "row_key", op: "eq", value: "<exact row key>"}]` to verify stored values and source dates against what was collected. CRM may return exact numeric values as decimal strings; compare the values without treating text formatting as a change. Reconcile expected answer keys, including unavailable checks. Use the verified view links for evidence; if you cannot inspect saved filter details or the rendered grid, say so. Record `complete` or `complete_with_gaps` only after the record readback, then verify the final state of the run. On a mismatch leave the run interrupted and report the exact key; resume without resubmitting uncertain checks.

## Handoff and acceptance

Illustrative private report, **not measured data**: `2026-04-08 Pacific/Auckland | complete_with_gaps | Google final through Apr 05 (Los Angeles): 12/300 clicks/impressions, 4.0% CTR vs 3.0% Apr 04 (+1.0 pp) | Bing: unavailable (no reader) | NZ/en, one surface: brand 2/3, owned citations 1/2, 3 prompts expected, one citation list unavailable.` Link the actual private run and views in the operator's private report. A repeated invocation that day should return the same run ID, unchanged observation count and no new submissions.

If scheduling is unavailable, return this brief for the owner's authorized runner: **invoke `seo-geo-monitor` with `run`, monitor ID, private workspace reference and configured zone/time; resolve connections from that runner's approved secret store, serialize by monitor, read back the run ID and report status privately.** Name missing grants or manual source steps separately. Do not buy data, enable billing, widen sharing, publish results or claim unattended coverage before the scheduled identity has demonstrated a successful read and authorized write.
