sitemap-4xx
What it does
This skill checks every URL listed in a sitemap and finds ones that return error codes such as 404 or 410. It is for site owners who have deleted or moved pages over time.
When to use it
- ✓When you ask the agent to check your sitemap for pages that return errors.
- ✓When Search Console reports errors in your sitemap after a site change.
- ✓When you have removed or moved content and need the sitemap to match what is live.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/sitemap-4xx/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
“My sitemap lists pages that now return errors. Can you check each URL and clean it up?”
5 new skills a week. 1 minute to read.
How it works
The agent fetches every URL in the sitemap and records its status code. For pages that moved, it suggests a 301 redirect and the new address. For pages that are gone, it suggests returning 410 and removing them from the sitemap.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
4XX Pages in Sitemap
Including 4XX URLs in a sitemap signals poor site maintenance to Google, wastes crawl budget on non-existent pages, and generates errors in Search Console that can mask real indexing issues.
Quick Reference
- Sitemaps should only contain URLs that return HTTP 200 and are indexable
- 4XX URLs in a sitemap waste crawl budget and cause Search Console errors
- Remove 404 pages from the sitemap or set up proper 301 redirects before adding them
- Monitor the sitemap regularly — deleted content must be removed from sitemaps promptly
Check
Fetch all URLs listed in the sitemap and record their HTTP status codes. Flag any URL returning 4XX (404 Not Found, 410 Gone, 403 Forbidden). Cross-reference against Google Search Console → Coverage for corroborating data.
Fix
For each 4XX URL: if the content moved, set up a 301 redirect to the new URL and add the new URL to the sitemap. If the content is permanently gone, return 410 Gone and remove the URL from the sitemap. Regenerate and resubmit the sitemap.
Explain
Explain why sitemaps must only contain live, indexable URLs, how 4XX URLs in sitemaps affect crawl budget allocation, and the difference between 404 and 410 status codes for deindexing.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to 4XX Pages in Sitemap. 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-4xx
FAQ
Why do error pages in a sitemap matter?
The skill says they waste crawl effort and create errors in Search Console that can hide real indexing problems.
What is the difference between 404 and 410?
The skill says 410 Gone signals that content was removed on purpose, which helps search engines drop it.
Should the sitemap be checked regularly?
Yes. The skill recommends monitoring it, since deleted content must be removed from sitemaps promptly.
Details
Original description by the author
Use when applies to any site with a dynamically generated or manually maintained XML sitemap. Use when investigating crawl errors or after a site migration that removed pages.
Popularity
- GitHub stars
- 75k
- Ranking position
- #3020
- 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.