Skip to main content
ClaudeWave
Skill3.4k repo starsupdated 7d ago

sitemap-audit

>

Install in Claude Code
Copy
git clone --depth 1 https://github.com/nowork-studio/notfair-plugin /tmp/sitemap-audit && cp -r /tmp/sitemap-audit/seo/sitemap-audit ~/.claude/skills/sitemap-audit
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# XML Sitemap Audit

You are a technical-SEO engineer. Your job is to make a site's XML sitemap a clean,
trustworthy index of exactly the URLs Google should crawl and index — no more, no
less — and to flag everything currently undermining that.

A sitemap full of redirects, 404s, and noindex URLs teaches Google to distrust it
and wastes crawl budget. A sitemap missing important pages slows their discovery.
Both are common; both are fixable.

> Credit: capability inspired by the open-source `claude-seo` project
> (MIT, Agrici Daniel). Implementation is original to NotFair.

---

## Step 0 — Scope

Collect the **site URL** (`$SITE_URL`). If the user gives a direct sitemap URL,
use it; otherwise discover it in Phase 1.

---

## Phase 0 — Preflight & data

Read and follow `../shared/preamble.md` for script discovery and GSC auth.

If GSC is connected, pull the **Sitemaps** report and the **Index coverage** /
Pages report. GSC tells you which sitemaps Google has, their last read status, any
errors, and how many submitted URLs are actually indexed — the ground truth this
audit reconciles against.

---

## Phase 1 — Discover all sitemaps

1. Fetch `robots.txt` and read every `Sitemap:` directive.
2. Fetch `/sitemap.xml`, `/sitemap_index.xml`, and any CMS-specific defaults
   (WordPress/Rank Math: `/sitemap_index.xml`; Yoast similar).
3. If it's a **sitemap index**, enumerate the child sitemaps and recurse.

Record the full tree: index → child sitemaps → URL counts. Note whether the
sitemap is referenced from robots.txt (it should be).

---

## Phase 2 — Structural validation

Check each sitemap file:

- **Valid XML**, correct namespace, parses without errors.
- **Limits**: ≤ 50,000 URLs and ≤ 50 MB uncompressed per file. Over either →
  must split into a sitemap index.
- **Absolute URLs**, all on the same host/protocol as the sitemap, all HTTPS.
- **`<lastmod>`** present and in valid W3C date format. Flag sitemaps where every
  lastmod is identical or set to "today" on every fetch — fake lastmod erodes
  trust and Google starts ignoring it.
- `<priority>` / `<changefreq>` — note if present, but state plainly that Google
  largely ignores them (don't recommend effort there).

---

## Phase 3 — URL reality cross-check (the core value)

Sample the listed URLs (all of them if small; a representative sample if large)
and fetch each. Every URL in a sitemap should be a **canonical, indexable, 200-OK
destination**. Flag and bucket:

- **Non-200** — 404 / 410 / 5xx URLs listed (remove them).
- **Redirects (3xx)** — sitemap should list the final URL, not the redirect.
- **Noindex** — pages with `noindex` must not be in the sitemap (contradictory
  signal).
- **Canonicalized-away** — pages whose `rel=canonical` points elsewhere shouldn't
  be listed; list the canonical instead.
- **Blocked by robots.txt** — disallowed URLs in the sitemap are a conflict.
- **Parameter / duplicate** URLs that shouldn't be indexed at all.

Then check the **inverse** — important indexable pages **missing** from the
sitemap (compare against the site's internal links / a crawl / GSC pages list).

Output a bucketed table: URL | issue | recommended action.

---

## Phase 4 — Report

Produce:

1. **Sitemap Health verdict** — clean / needs work, with the count in each bad
   bucket and total URLs vs. indexable URLs.
2. **Sitemap tree** from Phase 1.
3. **Remove list** (non-200, redirects, noindex, canonicalized-away) and
   **Add list** (missing indexable pages).
4. **Structural fixes** (split oversized files, fix lastmod, add robots.txt
   reference).
5. **Next step** — for WordPress/Rank Math sites, note that most of this is fixed
   by correcting which post types/taxonomies are included, not by hand-editing XML.

Keep it actionable and falsifiable. Write the report in the user's language.
google-analyticsSkill

Analyze connected Google Analytics 4 traffic, acquisition, engagement, landing pages, ecommerce, events, and conversions, and safely manage supported GA4 key events or custom dimensions through NotFair MCP. Use for GA4, Google Analytics, traffic or conversion drops, channel attribution, realtime activity, report requests, measurement configuration, or Analytics MCP setup.

search-consoleSkill

Query and operate connected Google Search Console properties through NotFair MCP. Use for live GSC query or page performance, clicks, impressions, CTR, position, traffic changes, indexing status, URL inspection, sitemap reads or approved sitemap submission/removal, and Search Console MCP setup. Route full-site SEO audits to seo-analysis.

geminiSkill

>

google-ads-assetsSkill

Plan, validate, and safely publish Google Ads assets, including sitelinks, callouts, structured snippets, image assets, and Performance Max asset briefs. Use when asked for Google Ads assets, ad extensions, sitelinks, callouts, snippets, image assets, Performance Max assets, PMax creative, or an asset audit.

google-ads-auditSkill

Google Ads account audit and business context setup. Run this first — it gathers business information, analyzes account health, and saves context that all other ads skills reuse. Trigger on "audit my ads", "ads audit", "set up my ads", "onboard", "account overview", "how's my account", "ads health check", "what should I fix in my ads", or when the user is new to NotFair and hasn't run an audit before. Also trigger proactively when other ads skills detect that business-context.json is missing.

google-ads-copySkill

Generate and A/B test Google Ads copy. Use when asked to write ad copy, headlines, descriptions, create ad variants, test ad messaging, improve CTR, or generate RSA (Responsive Search Ad) components. Trigger on "ad copy", "write ads", "headlines", "descriptions", "RSA", "responsive search ad", "ad text", "ad creative", "improve CTR", "ad A/B test", "ad variants", "write me an ad", "ad variation experiment", or when the user wants to improve click-through rate on existing ads.

google-ads-landingSkill

Score and diagnose Google Ads landing pages. Use when asked to audit a landing page, check landing page quality, diagnose high-CTR but low-conversion-rate ad groups, improve Quality Score's Landing Page Experience component, or compare an ad group's messaging against its landing page. Trigger on "landing page audit", "landing page score", "landing page quality", "why is my conversion rate low", "LPX", "landing page experience", "ad to page match", or when `/google-ads-audit` surfaces a high-CTR / low-CVR ad group.

google-adsSkill

Manage Google Ads — performance, keywords, bids, budgets, negatives, campaigns, ads, search terms, QS, location targeting, bulk operations, experiments, asset management, portfolio bidding, offline conversions. Use for any mention of Google Ads, CPA, ROAS, ad spend, or campaign settings.