Skip to content
Skillpedia
SEO75k · #3023

sitemap-valid

What it does

This skill checks the structure of an XML sitemap, including its namespace, URL formatting, size limits, and special characters, and repairs problems. It is for site owners and developers who generate sitemaps by hand or with code.

When to use it

  • ✓When you ask the agent to check whether your sitemap file is valid.
  • ✓When Search Console shows an error when you submit your sitemap.
  • ✓When your sitemap has grown large and you need to split it into several files.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/sitemap-valid/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/sitemap-valid/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Google Search Console says my sitemap has errors. Can you check whether the file is valid and fix it?”

5 new skills a week. 1 minute to read.

How it works

The agent checks the file against the standard sitemap format, confirming the namespace, absolute addresses, and size limits. It encodes special characters such as ampersands and splits oversized files into several sitemaps with an index.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Keep XML sitemaps valid

An invalid or malformed sitemap is silently ignored by search engines, leaving newly published or orphaned pages undiscovered by crawlers.

Quick Reference

  • The root element must be <urlset> with the correct xmlns namespace
  • Each <url> must contain exactly one <loc> element with a fully qualified, percent-encoded URL
  • Maximum 50,000 URLs and 50 MB per sitemap file; use a sitemap index for larger sites
  • Encode XML special characters: & → &amp;, < → &lt;, > → &gt;, " → &quot;, ' → &apos;

Check

Fetch the sitemap and validate it against the sitemaps.org schema. Check that the xmlns attribute is http://www.sitemaps.org/schemas/sitemap/0.9, all <loc> values are absolute URLs, no file exceeds 50,000 URLs or 50 MB, and special characters are properly XML-encoded.

Fix

Re-generate the sitemap using a validated sitemap library. Encode all special characters in URLs (& → &amp;). Split oversized sitemaps into multiple files and reference them from a sitemap index. Resubmit to Google Search Console.

Explain

Explain the sitemaps.org XML schema requirements, what causes validation errors in Google Search Console, and how encoding errors in <loc> URLs prevent crawlers from fetching those pages.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Keep XML sitemaps valid. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/sitemap-valid

FAQ

What are the size limits?

The skill says each sitemap file can have up to 50,000 URLs and 50 MB, and larger sites should use a sitemap index.

Why do ampersands matter?

The skill says special characters in URLs must be encoded, because unencoded ones can break the file and stop crawlers from reading the address.

How should the sitemap be fixed?

The skill suggests regenerating it with a validated sitemap library and then resubmitting it to Search Console.

Details

Original description by the author

Use when applies to any site with a manually or programmatically generated XML sitemap. Use when debugging sitemap submission errors in Google Search Console.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#3023
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills