What the agent does
AI assistants and agents read the production site to answer questions about it. Raw HTML full of navigation, scripts and styling is a poor source for them. Add the files and versions they look for: an `/llms.txt` index, an `/llms-full.txt` with the main content in one file, and a clean Markdown version of every public page. Build them from the same data and templates the HTML uses, so they never drift from the site.
1. List the public pages
List every public, indexable page type and where its content comes from (CMS, Markdown files, database, hard-coded components). Exclude anything private, signed-in or
noindex. The sitemap, if there is one, is usually the right source of truth: reuse it rather than writing a second list.2. Markdown versions of pages
- Serve a Markdown version of each public page at the same URL plus
.md(the homepage at/index.md). Where the framework allows, also answerAccept: text/markdownon the normal URL; a request with no Accept header or*/*must still get HTML. - Content pages built from data (posts, docs, product pages) should render Markdown from that data. Hand-written pages can be converted from the page's own main content. Leave out navigation, footers, cookie banners and scripts.
- Each Markdown page starts with
# Title, a one-line summary as a>quote, and the canonical HTML URL. Links are absolute and point at the HTML pages. - Headers:
Content-Type: text/markdown; charset=utf-8,X-Robots-Tag: noindex, follow(the HTML page stays the one search engines index), andLink: <html-url>; rel="canonical". - A page with no Markdown version returns a 404 in Markdown, not an HTML page.
- Serve a Markdown version of each public page at the same URL plus
3. /llms.txt
Follow the format from llmstxt.org:
# Site name, then a>quote with one factual sentence on what the site or product is.- A short paragraph of facts an assistant should know (who it is for, pricing model, what makes it different), with no marketing claims it cannot check.
## Sectionsof links:- [Page name](https://site/page.md): what the page holds. Point at the.mdversions. Put core pages first and an## Optionalsection last for detail that can be skipped.- Generate it from the same page list as the sitemap so new pages appear by themselves.
4. /llms-full.txt
Join the Markdown of the pages listed in llms.txt into one file, each preceded by a
<!-- source: URL -->line, most important pages first. Keep it to a size an assistant can read (aim under about 500,000 characters; leave out the least important pages first and say so at the end). Cache it, since it is expensive to build.5. Advertise them
Add
<link rel="alternate" type="text/markdown" href="...md">to each page's head, and make sure robots.txt does not block/llms.txt,/llms-full.txtor the.mdURLs.
Done means
/llms.txtfollows the llmstxt.org format and links the Markdown versions./llms-full.txtholds the main pages' Markdown with a source line before each.- Every public page has a
.mdversion with a title, summary and canonical URL, and private pages have none. - Markdown responses send
text/markdown,noindex, followand a canonical Link header. - Browsers and normal crawlers still get exactly the same HTML as before.
Questions
Do AI assistants actually read llms.txt?
Support is uneven and changing. Agents and coding tools that fetch documentation use it, and it costs little to add. The Markdown versions matter more: any agent that reads your pages gets clean text instead of HTML.
Will Markdown copies hurt my SEO as duplicate content?
Not when done as this prompt says: the Markdown responses send noindex and a canonical link to the HTML page, so search engines index only the HTML.
What about a single-page React app?
The agent will build the Markdown from your data or content files on the server side; if the content only exists after JavaScript runs, it will tell you what prerendering is needed first.
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.