SEO
Build a sitemap that stays correct, plus IndexNow pings
Generated from your data, with real lastmod dates, split when large, and instant pings on change.
Prompt
Make this site's sitemap accurate and self-maintaining. 1. Generate the sitemap from the database/content source, not a hand-written list. Include only canonical, indexable, public URLs that return 200. 2. Use real lastmod values (when the content last changed), not the current time. 3. If there could ever be more than 50,000 URLs, split into multiple sitemaps under a sitemap index. 4. Reference the sitemap in robots.txt. 5. Implement IndexNow: host the key file, and when a public page is created, updated or deleted, POST the URL to https://api.indexnow.org/indexnow (batched, with retries, never blocking the user's request). Work in small steps. Before changing anything, read the relevant code and tell me your plan in a few bullet points. Don't add new dependencies unless you explain why. When you're done, list every file you changed and how I can verify the result.
Best used in a coding agent with access to your repository: paste it into Claude Code, Cursor, Codex or Copilot chat.
More seo prompts
Check the result
When your agent is done, verify it with our free xml sitemap validator.
Open XML sitemap validator