
Sitemap Analysis & Generation
FreeAnalyze and generate XML sitemaps efficiently.
Free · Opens the source repo
What Sitemap Analysis & Generation does
The Sitemap Analysis & Generation skill provides developers and SEO professionals with a robust tool for managing XML sitemaps. It offers two primary modes: analyzing existing sitemaps and generating new ones based on industry templates. By using this skill, users can ensure their sitemaps are correctly formatted, contain valid URLs, and adhere to best practices, which is crucial for optimizing search engine visibility.
In the analysis mode, the skill validates the structure and content of a given sitemap. It checks for common issues such as exceeding the URL limit, invalid HTTP responses, and deprecated tags. The skill also cross-references the sitemap with the site's robots.txt file, ensuring that only valid URLs are included. This thorough validation process helps users identify and rectify issues that could hinder their site's performance in search engine rankings.
For generating new sitemaps, the skill guides users through an interactive process that begins with identifying the business type and selecting an appropriate template. It applies quality checks during the generation phase to prevent common pitfalls, such as including non-canonical or noindexed URLs. The output is a valid XML sitemap, with optional splitting into multiple files if the URL count exceeds the specified limits. This feature is particularly beneficial for larger websites that require careful organization of their sitemap content.
This skill is ideal for web developers, SEO specialists, and digital marketers who need to maintain or create sitemaps for their websites. By automating the analysis and generation processes, it saves time and reduces the likelihood of errors, allowing users to focus on other critical aspects of their online presence.
When to use it
Use this skill when you need to analyze existing sitemaps for issues or generate new sitemaps based on templates.
When not to use it
Avoid using this skill for non-XML sitemap formats or when detailed manual customization of sitemaps is required.
What you can build with it
Validating an Existing Sitemap
Use the analysis mode to check an existing sitemap for compliance with SEO standards and identify any issues.
Generating a New Sitemap for a Business
Leverage the skill to create a new sitemap based on industry templates, ensuring it meets best practices.
Monitoring Sitemap Health
Regularly analyze your sitemap to catch issues before they affect your site's search engine visibility.
How to install Sitemap Analysis & Generation
View source1. Install with the skills CLI
npx skills add agricidaniel/claude-seo/seo-sitemap --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by agricidanielSitemap Analysis & Generation
Mode 1: Analyze Existing Sitemap
Discover candidates before reporting a sitemap missing:
claude-seo run sitemap_discovery.py <url> --json
The helper reads every bounded Sitemap: declaration in robots.txt, validates
cross-host targets through the shared SSRF-safe fetch layer, and still probes
common paths when a declared sitemap is stale or invalid. Use only entries in
found; preserve declared failures as findings instead of treating a robots.txt
line alone as proof that a sitemap works.
Validation Checks
- Valid XML format
- Per-file limit: ≤50,000 URLs AND ≤50MB uncompressed (whichever is hit first)
- All URLs return HTTP 200
<lastmod>accurate: must be a valid W3C Datetime and reflect the last significant content change (main content, structured data, links, not copyright/boilerplate edits). Google only honours<lastmod>when consistently and verifiably accurate, so warn when values are suspiciously uniform or newer than the page's real content.- No deprecated tags:
<priority>and<changefreq>are ignored by Google - Sitemap referenced in robots.txt
- Compare crawled pages vs sitemap; flag missing pages
Quality Signals
- Sitemap index file if >50k URLs
- Split by content type (pages, posts, images, videos)
- No non-canonical URLs in sitemap
- No noindexed URLs in sitemap
- No redirected URLs in sitemap
- HTTPS URLs only (no HTTP)
Common Issues
| Issue | Severity | Fix |
|---|---|---|
| >50k URLs in single file | Critical | Split with sitemap index |
| >50MB uncompressed single file | Critical | Split with sitemap index |
| Non-200 URLs | High | Remove or fix broken URLs |
| Noindexed URLs included | High | Remove from sitemap |
| Redirected URLs included | Medium | Update to final URLs |
| All identical lastmod | Low | Use actual modification dates |
| Priority/changefreq used | Info | Can remove (ignored by Google) |
Extension sitemaps (image / video / news)
Google documents three subtypes with their own rules, validate per-subtype:
- Image (
http://www.google.com/schemas/sitemap-image/1.1): only two valid tags remain,<image:image>and<image:loc>(max 1,000<image:image>per<url>).<image:caption>/<image:geo_location>/<image:title>/<image:license>were deprecated (2022), flag as info-level removable. - Video: required
<video:video>with<video:thumbnail_loc>,<video:title>,<video:description>, plus<video:content_loc>or<video:player_loc>; mRSS also supported. Flag deprecated/removed tags (<video:category>,<video:gallery_loc>,<video:price>,<video:tvshow>, player autoplay/allow_embed) as info-level removable; recheck Google docs before citing a removal date. - News: max 1,000
<news:news>per file (not 50,000); include only articles from the last 2 days; required<news:publication>/<news:name>/<news:language>/<news:publication_date>/<news:title>; submit/discover through Search Console or robots.txt/sitemap index; use Publisher Center only for publication management where relevant. When thenews:namespace is detected, override the generic 50k check with the 1,000 cap.
Mode 2: Generate New Sitemap
Process
- Ask for business type (or auto-detect from existing site)
- Load industry template from
../seo-plan/assets/directory - Interactive structure planning with user
- Apply quality gates:
- ⚠️ WARNING at 30+ location pages (require 60%+ unique content)
- 🛑 HARD STOP at 50+ location pages (require justification)
- Generate valid XML output
- Split at whichever comes first: 50,000 URLs or 50MB uncompressed, with sitemap index
- Generate STRUCTURE.md documentation
Safe Programmatic Pages (OK at scale)
✅ Integration pages (with real setup docs) ✅ Template/tool pages (with downloadable content) ✅ Glossary pages (200+ word definitions) ✅ Product pages (unique specs, reviews) ✅ User profile pages (user-generated content)
Penalty Risk (avoid at scale)
❌ Location pages with only city name swapped ❌ "Best [tool] for [industry]" without industry-specific value ❌ "[Competitor] alternative" without real comparison data ❌ AI-generated pages without human review and unique value
Sitemap Format
Standard Sitemap
<?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-02-07</lastmod>
</url>
</urlset>
Sitemap Index (for >50k URLs)
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-pages.xml</loc>
<lastmod>2026-02-07</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap-posts.xml</loc>
<lastmod>2026-02-07</lastmod>
</sitemap>
</sitemapindex>
Error Handling
- URL unreachable: Report the HTTP status code and suggest checking if the site is live
- No sitemap found: Run
sitemap_discovery.pyand report "not found" only when itsfoundlist is empty after declared and common candidates are checked - Invalid XML format: Report specific parsing errors with line numbers
- Rate limiting detected: Back off and report partial results with a note about retry timing
Output
For Analysis
VALIDATION-REPORT.md: analysis results- Issues list with severity
- Recommendations
For Generation
sitemap.xml(or split files with index)STRUCTURE.md: site architecture documentation- URL count and organization summary
Frequently asked questions about Sitemap Analysis & Generation
Similar skills
Markdown to HTML Conversion
Efficiently convert Markdown documents to HTML.
Code Tour
Create structured walkthroughs for codebases.
Acquire Codebase Knowledge
Streamline onboarding with comprehensive codebase documentation.
Documentation & Modernization
Streamline codebase documentation and modernization planning.
Azure Resource Visualizer
Generate architecture diagrams for Azure resources.
CLAUDE.md Improver
Optimize your CLAUDE.md files for better project context.
