# XML sitemap check

> XML sitemap check is an open-source agent skill for marketing and seo. Checks XML sitemaps against indexable pages and builds a clean sitemap from an inventory. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/RomeoSEO/seo-skills/tree/main/skills/xml-sitemap-check
- **Repository:** https://github.com/romeoseo/seo-skills
- **GitHub stars:** 15
- **License:** MIT
- **Skill name:** xml-sitemap-check
- **Collection:** https://github.com/RomeoSEO/seo-skills
- **Categories:** [marketing and SEO](https://ai-powered.com/categories/marketing-and-seo)
- **Listing updated:** 2026-12-02

## About

This skill audits every sitemap a site exposes, including those listed in robots.txt, submitted in Search Console or Bing Webmaster Tools, or left over from old plugins. It checks that each file is valid XML with correct limits and absolute URLs, then samples listed URLs for status, redirects, canonicals, noindex and robots.txt blocking. It also looks for indexable pages missing from sitemaps and tests whether lastmod dates reflect real content changes.

The workflow compares three counts per section: URLs in the sitemap, indexable canonical URLs found by crawl, and indexed URLs from Search Console. Findings are sorted into fix-now, fix-next and worth-doing priorities, and each fix is tied to the generator, plugin or template setting that needs changing. When asked, it drafts a split sitemap index with inclusion rules and a lastmod source taken from the content record.

The skill works best with a page inventory, a crawler export and Search Console access, but it includes fallback steps for checking with only a browser and spreadsheet. It does not submit sitemaps or edit robots.txt itself; it drafts those changes for the user to approve.

## When your agent uses it

> Validate your XML sitemaps against the pages that should actually be indexed, and generate a clean one from a page inventory. Use for "check my sitemap", "sitemap errors in Search Console", "submitted URL not indexed", "sitemap couldn't fetch", lastmod questions, or building a sitemap for a custom site.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/RomeoSEO/seo-skills/tree/HEAD/skills/xml-sitemap-check)
- [License: MIT](https://github.com/RomeoSEO/seo-skills/tree/HEAD/skills/xml-sitemap-check)

## Features

- **Sitemap file validation:** Checks that each sitemap returns XML with the right namespace, encoding, escaping and size limits.
- **Indexability cross-check:** Compares listed URLs against status codes, canonicals, noindex rules and robots.txt blocks.
- **Missing URL detection:** Finds indexable pages with internal links that no sitemap includes, grouped by template.
- **lastmod honesty test:** Samples URLs to see whether lastmod dates match real content changes or build timestamps.
- **Index count comparison:** Compares sitemap, crawl and Search Console indexed counts per section to locate gaps.
- **Clean sitemap generation:** Drafts a split sitemap index and child files with inclusion rules and regeneration triggers.

## Good for

- Check my sitemap for errors and URLs that should not be in it
- Find indexable pages that are missing from my sitemaps
- Figure out why Search Console says a sitemap couldn't be fetched
- Verify whether my lastmod dates can be trusted
- Plan a sitemap structure for a custom or headless site

## Install

### Claude Code

This skill ships in the `romeo-seo` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add RomeoSEO/seo-skills
/plugin install romeo-seo@romeoseo
```

Or copy only this skill to `~/.claude/skills/xml-sitemap-check`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RomeoSEO/seo-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/xml-sitemap-check &&
cp -R "$tmp/skills/xml-sitemap-check" ~/.claude/skills/xml-sitemap-check &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/xml-sitemap-check` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/xml-sitemap-check` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RomeoSEO/seo-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/xml-sitemap-check &&
cp -R "$tmp/skills/xml-sitemap-check" ~/.agents/skills/xml-sitemap-check &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/xml-sitemap-check` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/xml-sitemap-check` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RomeoSEO/seo-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/xml-sitemap-check &&
cp -R "$tmp/skills/xml-sitemap-check" ~/.cursor/skills/xml-sitemap-check &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/xml-sitemap-check` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/RomeoSEO/seo-skills.git --path skills/xml-sitemap-check
```

Or copy the folder to `~/.gemini/skills/xml-sitemap-check` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/xml-sitemap-check`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RomeoSEO/seo-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/xml-sitemap-check &&
cp -R "$tmp/skills/xml-sitemap-check" ~/.copilot/skills/xml-sitemap-check &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/xml-sitemap-check` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/RomeoSEO/seo-skills.git
```

Then copy `seo-skills/skills/xml-sitemap-check` into your agent's skills folder as `xml-sitemap-check`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does XML sitemap check need any tools or scripts?

No scripts are included and no allowed tools are set. The skill describes manual checks with a browser, spreadsheet, Search Console and optionally a crawler export.

### Does XML sitemap check change my sitemap or submit it to Search Console?

No. It drafts changes and asks for permission before submitting or deleting sitemaps in Search Console or Bing, or editing robots.txt.

### Does a sitemap make Google index my pages?

The skill states that a sitemap helps discovery and hints at the preferred URL but does not force indexing.

### Which sitemap fields does XML sitemap check recommend?

It says Google uses only lastmod, and only when accurate. It advises omitting priority and changefreq and not tuning them.

### How do I install XML sitemap check in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/xml-sitemap-check to use it in all your projects, or to .claude/skills/xml-sitemap-check in one project. Or install the romeo-seo plugin, which includes it: /plugin marketplace add RomeoSEO/seo-skills, then /plugin install romeo-seo@romeoseo.

### Does XML sitemap check run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use XML sitemap check?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to XML sitemap check?

The closest alternatives to XML sitemap check are SEO sitemap, Site content inventory, SEO audit edho ferdian, Technical SEO audit and Llms txt check.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [SEO sitemap](https://ai-powered.com/skills/seo-sitemap): SEO sitemap is an open-source agent skill for marketing and seo.
- [Site content inventory](https://ai-powered.com/skills/site-content-inventory): Site content inventory is an open-source agent skill for marketing and seo.
- [SEO audit edho ferdian](https://ai-powered.com/skills/seo-audit-edho-ferdian): SEO audit edho ferdian is an open-source agent skill for marketing and seo.
- [Technical SEO audit](https://ai-powered.com/skills/technical-seo-audit): Technical SEO audit is an open-source agent skill for marketing and seo.
- [Llms txt check](https://ai-powered.com/skills/llms-txt-check): Llms txt check is an open-source agent skill for marketing and seo.
- [SEO audit](https://ai-powered.com/skills/seo-audit-coreyhaines31): SEO audit is an open-source agent skill for marketing and seo.
- [SEO audit](https://ai-powered.com/skills/seo-audit-seite-sh): SEO audit is an open-source agent skill for marketing and seo.
- [SEO audit](https://ai-powered.com/skills/seo-audit-zeitlos): SEO audit is an open-source agent skill for marketing and seo.

---
Source: https://ai-powered.com/skills/xml-sitemap-check
