opyeb robotslab

robotslab · llms.txt

llms.txt — title, summary, sections, links

H1 title, > summary, H2 sections, link list, Optional section

llms.txt is a proposed format that lets an AI tool understand a site quickly. The aim is to show the important documents and what each is for without reading every HTML page. It is written in Markdown, and the structure is only four parts: title, summary, sections and link lists.

The four parts

  1. # Site name — one H1 title, and the first content in the file.
  2. > A one or two sentence summary — a blockquote directly below the title, saying what the site offers.
  3. Optional detail paragraphs may follow. The structure check ignores them.
  4. ## Section with - [label](URL): description items below — the actual document links. A final ## Optional section can hold links that may be skipped in a short context.
# Example Docs > Example Docs is a synthetic documentation site used to demonstrate the llms.txt format. ## Docs - [Getting started](https://example.com/docs/start/): install and first run - [API reference](https://example.com/docs/api/): endpoints and errors ## Optional - [Archive](https://example.com/archive/): older material

Title and summary

The title is the site or product name. The checker reports an error when a second title appears, when something precedes the title, or when the title is empty. One or two sentences are enough for the summary, and a missing summary is a warning. A summary placed after a section is also a warning.

Sections and links

Sections group documents by kind. Each item has a label, a URL and a description after the colon. The description is optional, but without it an AI tool has to guess what the link is for, so write one.

ElementRuleCheck result
H1Exactly one, first contentError when missing or repeated
SummaryA > block below the titleWarning when missing
H2 sectionHolds a link listWarning when empty
Link item[label](URL): descriptionWarning without a link, error without a label
URLAbsolute preferredWarning for a relative URL, error for a malformed one
DuplicatesNo repeated URL or labelWarning

Rules for the links themselves

The Optional section

## Optional holds links that can be dropped when context is short: an archive, a changelog, or a very long reference. The checker reports this section as information, never as an error.

llms.txt is a proposal, not a standard. Search engines do not use it as a collection policy, so blocking collection still requires robots.txt. It does not replace an index either.

Questions

How does llms.txt differ from llms-full.txt?

llms-full.txt optionally holds the whole documentation in one file. llms.txt summarises with a link list.

Does it replace robots.txt?

No. robots.txt decides whether collection is allowed; llms.txt helps understanding. The roles differ.

Are section names fixed?

No. Use names that describe the content, such as Docs, Guides or Optional.

Paste the llms.txt you wrote and check its structure and links in one pass.

Open the tool

This article follows RFC 9309 (Robots Exclusion Protocol, September 2022), the robots.txt internet draft (September 2022) and the llmstxt.org proposal (September 2024). Every domain and rule shown is synthetic.