Skip to content
Skillpedia
SEO75k · #2953

noindex-in-sitemap

What it does

This skill compares the URLs in an XML sitemap with the noindex directives on those pages and resolves any conflicts. It is for site owners who want their indexing signals to be consistent.

When to use it

  • ✓When you ask the agent to check whether your sitemap lists pages that should not be indexed.
  • ✓When search results are missing pages you expected to appear and you suspect conflicting signals.
  • ✓When you are auditing indexing issues and need to confirm the sitemap matches the pages you want indexed.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/noindex-in-sitemap/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/noindex-in-sitemap/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

“Can you check my sitemap and tell me which listed pages are also set to noindex?”

5 new skills a week. 1 minute to read.

How it works

The agent reads the sitemap, visits each listed URL, and checks for a noindex meta tag or X-Robots-Tag header. It then reports the conflicts and recommends either removing the noindex or removing the URL from the sitemap.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Noindex in Sitemap

Listing noindexed pages in your sitemap sends contradictory signals to Googlebot—it wastes crawl budget and may confuse Google into ignoring the noindex directive or spending crawl time on pages you don't want indexed.

Quick Reference

  • Never include noindexed pages in your XML sitemap
  • The sitemap and noindex directive send contradictory signals to crawlers
  • Sitemaps should only list canonical-url, indexable, 200-status URLs
  • Remove noindexed URLs from sitemap or remove the noindex directive—pick one

Check

Fetch the XML sitemap(s) and check each listed URL. For each URL, retrieve the page and check for <meta name='robots' content='noindex'> in the <head> or an X-Robots-Tag: noindex HTTP header. Report any URLs present in the sitemap that also carry a noindex directive.

Fix

For each URL that has a noindex directive AND appears in the sitemap: decide whether the page should be indexed. If yes — remove the noindex directive. If no — remove the URL from the sitemap. Never leave both in place.

Explain

The XML sitemap is a recommendation to search engines: 'please crawl and index these pages'. A noindex directive is an instruction: 'do not index this page'. Including noindexed pages in the sitemap creates a contradiction—Google will resolve it by following noindex, but the URL still gets crawled, wasting crawl budget.

Code Review

Fetch each URL in the XML sitemap. For each URL, check the HTTP response for X-Robots-Tag: noindex header, and check the rendered <head> for <meta name='robots' content='noindex'>. Report any URL that appears in the sitemap AND carries a noindex directive. Also check for sitemap entries returning non-200 status codes.


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

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

FAQ

Why is it a problem to have both?

The sitemap asks search engines to index a page while the noindex tag asks them not to, which wastes crawl effort and sends mixed signals.

Which one should I keep?

The skill says to decide whether the page should be indexed, then keep only the matching setting, never both.

Can the agent check headers as well as page tags?

Yes. The skill checks both the robots meta tag and the X-Robots-Tag HTTP header.

Details

Original description by the author

Use when auditing an XML sitemap or diagnosing indexing issues. Applies to any site where noindex meta tags or X-Robots-Tag headers may be applied to URLs also listed in the sitemap.

repo: thedaviddias/Front-End-Checklist

Popularity

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills