What the agent does
A sitemap tells search engines which pages of the production site exist and when they changed. Hand-written or stale sitemaps list pages that redirect, miss new ones, and stamp every URL with today's date, which teaches crawlers to ignore the dates. Generate it from the same routes and data the site serves, and tell search engines about changes as they happen with IndexNow.
1. Compare the sitemap with reality
Find how the sitemap is built today. List URLs in it that redirect, return 404, are
noindex, need sign-in, or have a different canonical, and public pages that are missing. Show me the counts.2. Generate it from the source
- Build the sitemap from the route list and the database or content files, with the same rules the pages use to decide whether they are indexable (a list page with too few items that is
noindexmust not be in the sitemap either). lastmodis the real date the page's content changed (the post's updated date, the newest item on a list page), never the build time. Leave it out rather than invent it.- Use canonical URLs only. Split into a sitemap index if it passes 50,000 URLs or 50 MB.
- Reference it from robots.txt with a
Sitemap:line.
- Build the sitemap from the route list and the database or content files, with the same rules the pages use to decide whether they are indexable (a list page with too few items that is
3. IndexNow
Add IndexNow: generate a key, serve the key file at
/{key}.txt, and when content is published, updated or deleted, send the changed URLs tohttps://api.indexnow.org/indexnow(in batches, after the change is live, never on every request). Keep the key in configuration, not hard-coded. Bing, Yandex and other engines use it; Google does not, and relies on the sitemap.4. Guard it
Add a test that the sitemap contains no URL that is
noindex, private or redirected, and thatlastmodvalues come from content dates.
Done means
- The sitemap is generated from the real routes and data.
- It holds no redirected, 404, noindex, private or non-canonical URLs.
- lastmod is the content's real change date, or absent.
- robots.txt points at the sitemap.
- IndexNow pings changed URLs after publishing, with the key file served.
Questions
Does lastmod matter?
Google says it uses lastmod when it is consistently accurate. Stamping every URL with today's date makes it ignore the field for your whole site.
Does Google support IndexNow?
No. Bing, Yandex, Seznam, Naver and others do. For Google, an accurate sitemap and good internal links are what count.
Should noindex pages be in the sitemap?
No. The sitemap should list only pages you want indexed; listing noindex pages sends mixed signals.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.