ACTIVATE when configuring XML sitemaps, robots.txt, or page indexing in Astro. ACTIVATE for 'sitemap', 'robots.txt', '@astrojs/sitemap', 'sitemap filter'. Covers: @astrojs/sitemap setup, page filtering, custom priority/changefreq via serialize, multi-language sitemap with hreflang, robots.txt generation, dynamic content priority. DO NOT use for: SEO meta tags (see astro-seo), general routing.
From astronpx claudepluginhub fabiensalles/claude-marketplace --plugin astroThis skill uses the workspace's default tool permissions.
references/sitemap-configuration-examples.mdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Compresses source documents into lossless, LLM-optimized distillates preserving all facts and relationships. Use for 'distill documents' or 'create distillate' requests.
Patterns for automatic XML sitemap generation in Astro.
npx astro add sitemap
// astro.config.mjs
import sitemap from '@astrojs/sitemap';
export default defineConfig({
site: 'https://example.com', // Required!
integrations: [sitemap()],
});
sitemap({
changefreq: 'weekly',
priority: 0.7,
lastmod: new Date(),
})
sitemap({
filter: (page) =>
!page.includes('/admin/') &&
!page.includes('/draft/') &&
!page.includes('/private/'),
})
sitemap({
customPages: [
'https://example.com/external-page',
'https://example.com/dynamic-route',
],
})
When using serialize to transform entries, implementing multi-language sitemaps, or dynamic content priority, read
references/sitemap-configuration-examples.mdfor complete configuration patterns.
When creating robots.txt (basic or with disallow rules), read
references/sitemap-configuration-examples.mdfor API route implementations.
| Property | Values | Description |
|---|---|---|
url | string | Page URL (auto-generated) |
lastmod | Date | Last modification date |
changefreq | always, hourly, daily, weekly, monthly, yearly, never | Update frequency hint |
priority | 0.0 - 1.0 | Relative importance |
links | array | Language alternates |
| File | Description |
|---|---|
sitemap-index.xml | Index of all sitemap files |
sitemap-0.xml | First sitemap (up to 10000 entries) |
sitemap-N.xml | Additional sitemaps if needed |