sitemap-audit

sitemap-audit is a skill for Claude Code, Codex from JakeLabate/Claude-SEO-Skills. It costs 140 tokens per session (1,702 once invoked), scanned A, original, MIT.

A tool for checking a website’s XML sitemap, the file that lists pages a search engine should discover. It finds sitemap files, checks their structure and limits, and can test listed pages for errors, redirects, indexing blocks, and canonical URL problems.

In plain words
What is it for?
Use it to audit robots.txt sitemap declarations, validate sitemap indexes and URLs, find broken or redirected entries, check indexing directives and canonical URLs, and review sitemap metadata.
Why use it?
It reveals whether search engines are being given incomplete, duplicate, blocked, or incorrect page addresses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit robots.txt sitemap declarations, validate sitemap indexes and URLs, find broken or redirected entries, check indexing directives and canonical URLs, and review sitemap metadata.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jakelabate/claude-seo-skills/sitemap-audit
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.

Any agent
npx skills add JakeLabate/Claude-SEO-Skills --skill sitemap-audit
Clone the repo
git clone --depth 1 https://github.com/JakeLabate/Claude-SEO-Skills

Made for: Claude Code, Codex.

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 sitemap-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/jakelabate/claude-seo-skills/sitemap-audit/github.svg)](https://agentmods.dev/skills/jakelabate/claude-seo-skills/sitemap-audit)
Your own site
<a href="https://agentmods.dev/skills/jakelabate/claude-seo-skills/sitemap-audit"><img src="https://agentmods.dev/badge/skills/jakelabate/claude-seo-skills/sitemap-audit/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 sitemap-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/jakelabate/claude-seo-skills/sitemap-audit"><img src="https://agentmods.dev/badge/skills/jakelabate/claude-seo-skills/sitemap-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,702 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.00140 $0.01702
Opus 5 $0.00070 $0.00851
Sonnet 5 $0.00028 $0.00340
Haiku 4.5 $0.00014 $0.00170

Measured 11d ago against content hash ece44a744462, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

sitemap-audit 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 11d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/audit_sitemap.py, scripts/collect_sitemap.py, scripts/findings_to_csv.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/sitemap-audit/SKILL.md · 128 lines

How it starts

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

Sitemap Audit

Audit a website's XML sitemaps and produce an actionable SEO report.

When to use this skill

Use this skill when the user asks to:

  • Audit, validate, or check an XML sitemap or sitemap index
  • Find sitemap URLs that 404, redirect, are noindexed, or are blocked by robots.txt
  • Find URLs in the sitemap that canonicalize elsewhere or sit on the wrong host/protocol
  • Check that sitemaps are declared in robots.txt and stay under the 50,000-URL / 50MB limits
  • Clean up lastmod, priority, and changefreq metadata
  • Improve the quality and trustworthiness of the URL set submitted to search engines

Inputs to collect

Before starting, confirm with the user:

  1. Site URL or sitemap URL — a live site root (e.g., https://example.com, which auto-discovers sitemaps via robots.txt and common paths) or a specific sitemap URL (--sitemap).
  2. Scope — how many listed URLs to probe (default 2000). Large sitemaps can be sampled with --max-urls.
  3. Probing — whether to fetch each listed URL to check status/canonical/noindex (default on). Use --no-probe for a fast structural-only pass (parse errors, size limits, lastmod hygiene).

Note on the indexable contract: every URL in an XML sitemap should be a final, canonical, indexable 200 page. A URL that redirects, 404s, is noindexed, is blocked by robots.txt, or canonicalizes elsewhere does not belong in the sitemap. Most checks here enforce that contract.

Workflow

Step 1: Discover, parse, and probe the sitemaps

Use scripts/collect_sitemap.py:

python3 scripts/collect_sitemap.py https://example.com --max-urls 2000 --output sitemap_inventory.json

Point directly at a sitemap with --sitemap:

python3 scripts/collect_sitemap.py https://example.com/sitemap_index.xml --sitemap --output sitemap_inventory.json

The script reads robots.txt for Sitemap: directives (falling back to /sitemap.xml and /sitemap_index.xml), follows sitemap index files, handles gzipped sitemaps, and records each sitemap's type, URL count, byte size, and any parse/fetch error. For every listed URL it captures the sitemap's lastmod/changefreq/priority, then probes the URL for status, redirect target, rel=canonical, meta robots, the X-Robots-Tag header, and whether robots.txt disallows it.

Read the full file on GitHub · 128 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 128 lines · 140 tokens per session scan A ece44a744462

Subscribe to this mod's changes

sitemap-audit is a skill published in the GitHub repository JakeLabate/Claude-SEO-Skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 140 tokens to every session and 1,702 once invoked, about $0.0007 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-08-31.