sitemap-domain
What it does
This skill checks the addresses listed in a sitemap for mismatched domains, protocols, or www variants, and corrects them. It is for sites that changed domain, moved from HTTP to HTTPS, or changed their www setup.
When to use it
- ✓When you ask the agent to check whether sitemap addresses match your current domain.
- ✓When you have recently moved from HTTP to HTTPS or changed your domain name.
- ✓When Search Console reports low coverage for a sitemap you submitted.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/sitemap-domain/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
“We moved to HTTPS and a new domain, and Search Console shows low coverage. Can you check that the sitemap URLs use the right domain?”
5 new skills a week. 1 minute to read.
How it works
The agent reads every location entry in the sitemap and compares its protocol and hostname with the sitemap's own address. It flags mismatches, such as old domains, HTTP addresses, or the wrong www form, and updates them to the canonical version.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Keep sitemap URLs on the correct domain
Google ignores sitemap entries from domains it cannot verify as yours — cross-domain URLs are simply skipped, meaning those pages lose the crawl-discovery benefit of the sitemap.
Quick Reference
- Every
<loc>URL must use the same domain and protocol (https://www.example.com) as the sitemap file itself - Cross-domain URLs in a sitemap are ignored by Google
- Mixing
http://andhttps://URLs in one sitemap creates conflicting signals - Mixing
wwwand non-wwwvariants indicates a canonicalization issue to fix first
Check
Parse all <loc> values in the sitemap and extract the protocol and hostname. Flag any URL whose protocol or hostname differs from the sitemap's own URL. Common mismatches: http vs https, www vs non-www, old domain vs new domain.
Fix
Update all <loc> URLs to use the canonical-url protocol and hostname. If the site is on https://www.example.com, every sitemap URL must start with https://www.example.com/. Regenerate and resubmit the sitemap.
Explain
Explain why Google restricts sitemap URLs to the same domain, how cross-domain URLs are silently dropped, and how domain mismatches in a sitemap reveal underlying canonicalization problems.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to Keep sitemap URLs on the correct domain. 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-domain
FAQ
Why does Google skip some sitemap entries?
The skill says Google ignores URLs from domains it cannot verify as yours, so those pages miss the sitemap benefit.
What do mixed www and non-www URLs suggest?
The skill says it points to a canonicalization issue that should be fixed first.
What should I do after fixing it?
The skill recommends regenerating the sitemap and resubmitting it.
Details
Original description by the author
Use when applies to sites that have recently migrated from HTTP to HTTPS, changed domain name, or have www/non-www redirect configurations. Use when sitemap submission reports low coverage.
Popularity
- GitHub stars
- 75k
- Ranking position
- #3022
- 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.