How is it calculated?
The file is plain Markdown: a title, a short summary of the site, then sections of links with a one-line description each. Links ideally point to clean Markdown versions of pages, which are easier for a model to read than HTML with navigation and scripts.
It does not control access. Allowing or disallowing crawlers is still the job of robots.txt. llms.txt only offers a curated map to those who choose to look.
Example
A documentation site publishes /llms.txt listing its ten most important guides with one line each, and serves every guide as Markdown at the same address with .md added. An assistant that fetches the file can go straight to the right guide.
Common mistakes
- Expecting a ranking effect. No assistant has committed to using the file, so treat it as cheap and optional.
- Using it to block crawlers. It has no allow or disallow rules.
- Listing every page. The point is a short, curated list, not a second sitemap.