Contact Us
Webflow Premium Partner Ehab Fayez
Back to Agent Skills
Content & Documentation

XML Sitemap Generation

Generate and maintain XML sitemaps for improved search engine crawling and indexing.

Claude Code Cursor Copilot

Overview

XML sitemaps help search engines discover and crawl all pages on your website efficiently. AI coding agents can generate comprehensive sitemaps, configure update frequencies, set priority levels, and handle multi-language sitemap indexes.

Agents can analyze the site's route structure to generate complete sitemaps, set appropriate changefreq and priority values based on content type, create sitemap indexes for large sites, and configure image and video sitemaps for rich media content.

The workflow integrates with various frameworks including Astro, Next.js, and custom static sites. Teams can automate sitemap generation as part of their build process, ensuring search engines always have an accurate map of the site's content.

Who Is This For?

  • Generate XML sitemaps from site route structure
  • Configure changefreq and priority for different content types
  • Create sitemap indexes for large multi-section sites
  • Add image and video sitemaps for rich media content

Installation

Setup for Claude Code
npx astro add sitemap

Configuration

// astro.config.mjs
import sitemap from '@astrojs/sitemap';

export default defineConfig({
  site: 'https://example.com',
  integrations: [
    sitemap({
      changefreq: 'weekly',
      priority: 0.7,
      lastmod: new Date(),
      filter: (page) => !page.includes('/admin/'),
    }),
  ],
});