--- name: seo-sitemap description: Use when analyzing or generating XML sitemaps. Covers sitemap.xml, sitemap-news.xml, sitemap-image.xml, sitemap-video.xml, robots.txt, URL coverage checks, sitemap index pattern. user-invocable: false related-skills: seo, seo-technical, seo-redirects --- # Sitemap ## Workflow 1. Fetch `/sitemap.xml` (or sitemap index) 2. Run `scripts/parse-sitemap.ts` → validate structure 3. Cross-check URL coverage vs crawled pages 4. Detect orphan URLs (in sitemap but not linked) 5. Detect missing URLs (linked but not in sitemap) ## Best Practices - Max 50,000 URLs or 50 MB per sitemap (use index if larger) - `` actual file modification date (not generation date) - `` and `` largely ignored by Google - HTTPS only, absolute URLs - Reference in `robots.txt`: `Sitemap: https://example.com/sitemap.xml` ## Special Sitemaps - **News** (publishers): `sitemap-news.xml`, only articles from last 48h - **Image**: `sitemap-image.xml` with `` tags - **Video**: `sitemap-video.xml` with `` tags ## Templates - `templates/sitemap/sitemap.xml` - `templates/sitemap/sitemap-news.xml` - `templates/sitemap/sitemap-image.xml` - `templates/robots/robots-saas.txt` - `templates/robots/robots-ecommerce.txt`