An effective llms.txt file example starts with one H1, followed by an optional summary, optional details, and ordered H2 sections containing curated Markdown links.

Those details matter because llms.txt is an emerging proposal for a compact Markdown overview, not a command that tells a crawler to visit pages. A strong draft is short, factual, and carefully reviewed: it identifies public resources that help someone understand a site without replacing robots.txt, sitemap.xml, structured data, authentication, or indexing controls.

what details matter when i generate llms txt when using llms txt file example
What Details Matter in an llms.txt File Example

The structure that controls a usable llms.txt

The most important detail is the order of the document. The proposed format has one required element: a single H1 containing the site or project name. A blockquote summary may follow it. Free-form, non-heading details can appear next, and zero or more H2 sections can then contain lists of Markdown links.

Each entry in an H2 section needs a link as its core. An optional colon and note may explain what the linked resource contains. The order should remain predictable because both language models and ordinary parsers may consume the file. The generator maintains that order instead of accepting arbitrary Markdown fragments that could introduce duplicate top headings or misplaced sections.

Element Required? Position What to review
H1 Yes First line It should contain one clear site or project name.
Blockquote summary No After the H1 Keep it short and accurate.
Free-form details No After the summary and before H2 sections Use plain text rather than accidental headings.
H2 link sections No After introductory details Group related resources under meaningful headings.
Markdown link lists Within each H2 section Below the section heading Every item should contain a useful link and an optional factual note.
Optional section No Among the H2 sections Include only resources that readers can safely skip.

The H2 named “Optional” has a defined role in the proposal. It identifies secondary material for a shorter context. The tool does not decide that a resource is optional automatically; making that distinction is an editorial choice about what is essential for understanding the site.

A complete llms.txt file example

The following file is a structural template rather than a publish-ready document. Each uppercase URL placeholder must be replaced with a reviewed canonical HTTP or HTTPS address before validation.

# Example Site

> A practical guide to planning, publishing, and reviewing useful project resources.

This file points to stable documentation for people who need a concise starting point.

## Documentation

  • [Getting started]({CANONICAL_GETTING_STARTED_URL}): Installation steps and the first-run workflow.
  • [Configuration]({CANONICAL_CONFIGURATION_URL}): Supported settings and practical examples.

## Reference

  • [API reference]({CANONICAL_API_REFERENCE_URL}): Endpoints, parameters, and response details.

## Policies

  • [Privacy policy]({CANONICAL_PRIVACY_URL}): Information collected and the retention process.

## Optional

  • [Release archive]({CANONICAL_RELEASE_ARCHIVE_URL}): Historical versions that most readers can skip.

This example demonstrates the details that affect review: the title identifies the site; the summary explains its scope; the introductory detail stays outside the link sections; related resources sit under clear headings; and each link has a concise description. It also shows why the Optional section should not become a dumping ground. If release notes are irrelevant to most visitors, they may be better omitted entirely.

A colon introduces the optional note in each list item. Keep every note factual. Do not claim that a linked page covers material it does not cover, and do not use the note as promotional copy. The generator normalizes labels, notes, headings, and summaries so control characters or accidental Markdown delimiters cannot break the generated structure, but editorial accuracy remains the author’s responsibility.

Curation matters more than length. A file containing every page can reproduce the overload of a large sitemap and consume context without helping the reader. Prefer canonical documentation, product explanations, policies, and stable reference pages that materially improve understanding.

Candidate resource Editorial decision Reason
Getting-started documentation Usually include It gives new readers a practical route into the site.
Core product or service explanation Usually include It explains the site’s purpose and primary offering.
Policies and important constraints Include when relevant Readers may need terms, privacy, security, or usage conditions.
Detailed reference material Include when stable and canonical It can provide deeper context without listing every supporting page.
Markdown version of a page Use only when it reliably exists A convenient format does not justify inventing a URL that returns an error.
Historical releases or secondary material Place under Optional or omit These resources may help specialists while adding little for most readers.
Every page in a sitemap Omit A page inventory is not a concise resource map and can waste context.

Before adding a URL, confirm that it is the preferred public address for the resource. Exclude private, staging, credential-bearing, and internal-only destinations. The generator accepts HTTP and HTTPS links while rejecting URLs with credentials and executable or embedded-data schemes. It also reports duplicate normalized URLs instead of silently adding the same target more than once.

Generate, validate, and publish the file

  1. Define the file’s scope. Choose a concise site or project name, decide whether a summary and explanatory details are useful, and identify canonical high-value resources. Include only pages you have reviewed as suitable for public reference.
  2. Enter the structured content in the llms.txt Generator. Add the required name, optional summary, optional details, and grouped links under meaningful section headings. The generator works locally: it does not crawl the domain, inspect a sitemap, or send the entered content to an external service.
  3. Generate the Markdown. The tool serializes the inputs into deterministic plain text and provides the result for copying or downloading with the filename llms.txt. The fixed workflow gives you one H1, optional introductory material, and sectioned links instead of a collection of arbitrary Markdown fragments.
  4. Review the content before publishing. Check the H1 and summary against the real site. Read every note and confirm that each URL is canonical, publicly accessible, and linked to the intended subject. Review the Optional section specifically: those resources must genuinely be secondary. Remove any private, staging, outdated, or misleading entry.
  5. Edit, then validate the final file. If you changed the generated output, use the separate validation mode and paste the complete edited draft. The validator checks the required H1, heading order, link-list syntax, duplicate targets, and bounded size, then reports concrete line-oriented issues and warnings.
  6. Resolve the reported problems and review again. The validator does not rewrite the file behind your back, follow any listed URL, or certify that the linked content is accurate. Validation success means the draft matches the tool’s documented interpretation of the current proposal; it does not certify broader vendor support.
  7. Publish and maintain the file. Place it at /llms.txt or another intentional subpath with a plain-text or Markdown-compatible content type. Periodically verify that the referenced pages still resolve and contain the described material. Publishing the file does not prove that a crawler or assistant requested it, so measure actual use in your own tools and workflows.

Validation and safety boundaries to preserve

Generation and validation solve different tasks. Generation turns reviewed inputs into a predictable document. Validation examines an existing draft for structural problems. Neither mode scans a website or proves that the content behind every URL is current, accurate, safe to recommend, or canonical.

The operating boundaries are part of the file’s quality. A successful draft can still contain a misleading note if the author approved it. Conversely, a validator warning identifies something worth reviewing, but it does not guarantee editorial correctness. Review reported issues in context, make any intentional edits, and run validation again before deployment.

The proposal and its ecosystem can evolve. Before building automation that depends on exact syntax, compare the current guidance in the Answer.AI llms-txt reference repository and the DeveloperHub llms.txt implementation documentation. This helps distinguish a documented format decision from an assumption about current adoption.

How llms.txt fits with other site files

An llms.txt file serves a specific purpose: it offers a curated Markdown overview and a short list of high-value references for possible inference-time use. It does not express crawler preferences, inventory every indexable URL, or describe structured entities and page content. A focused comparison of llms.txt, robots.txt, and sitemap.xml can help separate those responsibilities.

robots.txt communicates crawl preferences to participating crawlers. sitemap.xml inventories URLs intended for search discovery. Structured data describes entities and page content in a machine-readable form. llms.txt instead gives consumers a human-reviewable selection of relevant resources. Each mechanism should retain its own purpose rather than being treated as a substitute for another.

Publishing llms.txt does not force any crawler or assistant to request it, grant access to blocked pages, override authentication, remove content from model training, or prove that an AI answer will cite the site. Those limitations are not defects in the file format; they are reasons to treat llms.txt as a transparent editorial aid alongside established controls.

If you're weighing options, How to Check Robots.txt After You Generate It covers this in detail.