Skip to content
Skillpedia
SEO75k · #3020

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.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-4xx/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

“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.

repo: thedaviddias/Front-End-Checklist

Popularity

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills