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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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 correctxmlnsnamespace - 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:
&→&,<→<,>→>,"→",'→'
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 (& → &). 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.
Popularity
- GitHub stars
- 75k
- Ranking position
- #3023
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
competitive-platform-analysis
280kHelps understand your competitors. It identifies, categorizes, and filters competing companies before any deeper analysis.
competitive-report-structure
280kCreates comprehensive competitor reports. It combines information to show the overall landscape, recommendations, and helps align the team.
lead-intelligence
280kHelps your agent find and contact important people. It analyzes leads, suggests approaches, and manages outreach via email and social media.