HOME SKILLS BLOG GITHUB
// SKILL

XML SITEMAP
ANALYSIS AND GENERATION

An XML sitemap is a file that lists preferred site URLs and optional metadata for search engines. Claude SEO analyzes existing sitemaps for format, status, canonical, indexability, and freshness issues, or generates new sitemaps with industry templates and quality gates.

By Daniel Agrici · Command surface verified: · Source: Google sitemap guidance

$
/seo sitemap https://your-site.com

REQUIRES CLAUDE SEO INSTALLED IN CLAUDE CODE

A website tree is filtered into split sitemap drafts before owner deployment and discovery
// RUN PREVIEW

What will happen if you start this skill?

Audit a reachable sitemap or create owner-reviewed draft XML from a verified URL plan.

OUTCOME

A sitemap validation report or draft XML split at both protocol limits when required.

REQUIRED INPUT

A site or sitemap URL, or the generate route, supplied to /seo sitemap <url | generate>.

READINESS

Audit mode needs reachable XML. Generation needs reviewed canonical and indexability decisions plus any subtype requirements.

LOCAL OUTPUT

A validation report or draft sitemap XML, optional sitemap index, and STRUCTURE.md documentation.

SIDE EFFECTS

Fetches available site resources and writes local drafts. It does not deploy files or submit them to a search engine.

COST + APPROVAL

The core route needs no separate paid provider. The owner must verify, approve deployment, and confirm discovery or submission.

// HOW IT WORKS

What can sitemap analysis and generation do?

The sitemap skill operates in two modes. Analysis mode validates an existing sitemap against the protocol specification and SEO best practices. Generation mode creates a new sitemap with industry-specific planning templates and review gates for large, repetitive page sets.

In analysis mode, it attempts HTTP checks for reachable URLs, validates XML format, flags deprecated tags, and compares available crawl results with the sitemap to find gaps. Authentication, network access, or rate limits can make URL checks partial. In generation mode, it asks for your business type, plans the structure interactively, and applies safeguards at 30+ and 50+ location pages.

/seo sitemap <url | generate> MODE 1: ANALYZE XML VALIDATION Format + limits URL STATUS HTTP 200 check QUALITY SIGNALS lastmod, noindex COVERAGE GAP Crawled vs listed MODE 2: GENERATE DETECT TYPE Industry template QUALITY GATES 30/50 page limits GENERATE XML Split at 50K STRUCTURE.MD Documentation VALIDATION-REPORT.md Issues + recommendations sitemap.xml + STRUCTURE.md Draft for owner review

What it validates

The analysis mode checks your sitemap against the protocol specification and Google's documented best practices. It attempts accessibility checks for reachable URLs and compares the sitemap with available crawl results. The report labels partial checks when authentication, network access, or rate limits prevent complete coverage.

50K
URL LIMIT VALIDATION
Verifies each uncompressed sitemap stays at or below both protocol limits: 50,000 URLs and 50 MB. Recommends sitemap index files for larger sites, optionally split by content type.
200
HTTP STATUS CHECK
Attempts HTTP checks for reachable sitemap URLs. Flags observed non-200 responses, redirects that should point to final destinations, and noindexed URLs. Reports partial coverage when access or rate limits intervene.
XML
FORMAT VALIDATION
Validates XML structure, encoding, namespace declarations, and proper element nesting. Reports specific parsing errors with line numbers. Checks for HTTPS-only URLs and no non-canonical entries.
6
COMMON ISSUES
Detects common issues by severity: exceeding 50,000 URLs or 50 MB uncompressed, observed non-200 responses, noindexed URLs, redirects, unreliable lastmod values, and ignored priority/changefreq tags.
5
QUALITY GATES
In generation mode, treats integration, template, glossary, product, and profile pages as candidates for review at scale. No word count makes a page safe. Each URL needs accurate data, standalone value, and human review. Vendor gates warn at 30+ location pages and stop for approval at 50+.
GAP
COVERAGE ANALYSIS
Compares crawled pages against sitemap entries to find pages missing from the sitemap. Also checks that the sitemap is referenced in robots.txt for search engine discovery.
// OUTPUT

What does the sitemap report include?

The output depends on the mode. Analysis produces a validation report with prioritized issues and any coverage limitations. Generation produces draft sitemap XML (or split files with an index) and a STRUCTURE.md file for owner review.

Analysis mode output

  • VALIDATION-REPORT.md - complete analysis results
  • Issues list - organized by severity (Critical, High, Medium, Low, Info)
  • Coverage gap - pages found by crawling but missing from sitemap
  • Recommendations - specific fixes for each issue

Generation mode output

  • sitemap.xml - valid XML sitemap (or split files with sitemap index)
  • STRUCTURE.md - site architecture documentation
  • URL count - total URLs and organization summary

Correct sitemap format

For a standard URL entry, loc is required and lastmod is optional when accurate. Google ignores priority and changefreq; image, video, and news sitemap extensions have separate rules:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/page</loc>
    <lastmod>2026-03-25</lastmod>
  </url>
</urlset>
// USAGE

How do you audit or generate a sitemap?

/seo sitemap <url | generate>

Analyze an existing sitemap

/seo sitemap https://your-site.com

Fetches the sitemap from common locations (/sitemap.xml, /sitemap_index.xml, robots.txt reference), validates it, and attempts checks for reachable URLs. The report identifies any partial coverage.

Generate a new sitemap

/seo sitemap generate

Interactive mode. Detects or asks for your business type, loads an industry template, plans the structure with you, applies quality gates, and generates draft XML. The owner must verify canonical and indexability decisions, approve deployment, and confirm discovery or submission.

Large-scale content review

The generation mode flags patterns that deserve human review before publication. It cannot predict or prevent a Google action:

  • Location pages with only city name swapped
  • "Best [tool] for [industry]" pages without industry-specific value
  • "[Competitor] alternative" pages without real comparison data
  • AI-generated pages without human review and unique value
// FAQ

QUESTIONS ABOUT SITEMAP ANALYSIS

The validator checks valid XML, that each file stays at or below both 50,000 URLs and 50 MB uncompressed, accessible canonical URLs, accurate lastmod values, deprecated tags, robots.txt discovery, no noindex or redirected URLs, and HTTPS. HTTP checks may be partial when authentication, network access, or rate limits intervene.
// RELATED SKILLS

EXPLORE MORE

VIEW ALL 26 SKILLS →

AUDIT YOUR SITEMAP
IN SECONDS.

$
git clone --depth 1 https://github.com/AgriciDaniel/claude-seo.git && bash claude-seo/install.sh
VIEW ON GITHUB ALL SKILLS >