SEO Local
by agricidaniel / claude-seo
Audit local SEO, including Google Business Profile, NAP consistency, citations, reviews, local schema, location pages, and multi-location structure.
Checks local-pack and map rankings from a grid of points around each location, producing a proximity heatmap and an average grid rank.
Listed ·Updated
AGENT ROLE: Autonomous local-rank agent. Sample rankings across a coordinate grid and emit the JSON in references/output.schema.json, including a per-point rank matrix and aggregate metrics. Local rank is proximity-dependent — a single point is never the whole picture.
For a business and a keyword, measure where in its service area it appears in the local pack / map results, quantify how visibility decays with distance, and summarize with average grid rank and share-of-top-3.
business_name (REQUIRED): the exact GBP name to match in results.keyword (REQUIRED): the search term (e.g., "emergency plumber").center (REQUIRED): { lat, lng } of the business (or service-area center).grid_size (OPTIONAL, default 7): odd N for an N×N grid (49 points at 7).spacing_km (OPTIONAL, default 1.5): distance between adjacent grid points.zoom (OPTIONAL, default 14): map zoom passed to the SERP.SERP_API_KEY. IF unset THEN STOP error.code="AUTH_MISSING_API_KEY".GET https://serpapi.com/search.json?engine=google_maps&q={keyword}&ll=@{lat},{lng},{zoom}z&type=search&api_key={key} → local_results.center + spacing_km (no geocoding key needed since center is provided; if only an address is given, geocode via a keyless service first and note geocoded=true).scripts/grid_rank.py --name "..." --keyword "..." --lat .. --lng .. --grid 7 --spacing 1.5.local_results order to find the business's rank.STEP 1 — BUILD GRID: N×N points centered on center, offset by spacing_km per step (convert km→degrees: lat /111, lng /(111*cos(lat))).
STEP 2 — For each point: fetch google_maps local results at that ll; find the business by fuzzy-normalized name match; record its 1-based rank (or >20/not_found).
STEP 3 — MATRIX: assemble the N×N rank matrix (rows N→S, cols W→E) for the heatmap.
STEP 4 — AGGREGATE: avg_rank over found points; share_of_top3 = points_in_top3 / total_points; visibility_falloff = correlation of rank vs distance from center.
STEP 5 — EMIT the matrix + aggregates + the center point's rank.
429/quota THEN backoff 2^attempt (max 5) then STOP error.code="RATE_LIMITED" and return the partial matrix filled so far (partial_points).grid_size >= 9 (81+ searches) via cost_note.5xx/timeout retry ≤2 then mark that cell null (unqueried) — never abort the whole grid.not_found (a real, meaningful result — it means no visibility there), distinct from null (query failed).match_confidence per found cell; below threshold → treat as not_found.not_found.One JSON object per references/output.schema.json. No prose.
scripts/grid_rank.py — grid generation, per-point SERP fetch, name matching, aggregation.references/output.schema.json — output contract.Not using the CLI? Copy the SKILL.md and paste it straight into ChatGPT, Claude, or any agent.