▶Guide GEO & AI Search Stable

How to write and publish an llms.txt file

Create a standards-compliant llms.txt for compatible agents without treating it as a proven AI-search ranking tactic.

ID
SS-GD-027
Version
1.0
Confidence
Established · 82
Evidence
Established
Updated
2026-09-20
Review
2026-12-20

Executive summary

llms.txt is an optional machine-readable site summary. It is cheap to publish and Chrome Lighthouse now checks basic format for agentic browsing, but Google Search says it does not use the file and no major answer engine has confirmed a universal retrieval or citation benefit. Publish it as agent-readiness housekeeping, not as a visibility guarantee.

What this helps you decide

Whether to publish an llms.txt file and which pages it should highlight.

Business problem

Some agent workflows can benefit from a concise machine-readable map of a site, but teams often overstate llms.txt as an AI-search ranking or citation lever despite no provider evidence for that claim.

Step-by-step process

  1. 1
    Decide if it is worth it

    Publish it when the maintenance cost is low or a tool you care about explicitly supports it. Do not prioritise it ahead of crawlability, indexability, useful content or source authority, and do not promise citation movement from the file alone.

  2. 2
    Create the file at your root

    Place a Markdown file at /llms.txt. Start with an H1 of your brand name and a short blockquote summarising what your organisation does.

  3. 3
    Curate your best pages

    Under themed H2 sections, list links to your most important, citable pages as Markdown bullets, each with a one-line description. Include only genuinely valuable content, not your whole sitemap.

  4. 4
    Write model-friendly descriptions

    Describe each link in plain, factual language a model can use to judge relevance. Avoid marketing fluff and keep each description to a single clear sentence.

  5. 5
    Consider clean content endpoints

    Where practical, offer clean Markdown versions of key pages, referenced from the file, so agents can consume the substance without navigation and boilerplate.

  6. 6
    Keep it current

    Review the file whenever you publish or retire cornerstone content so it never points at stale or removed pages.

  7. 7
    Validate and monitor

    Confirm the file loads as plain text, links resolve, and watch logs for AI agents fetching it to gauge whether it is being used.

Worked example

Checklist

  • File is served at /llms.txt as plain text Markdown
  • H1 brand name and a concise summary blockquote present
  • Only genuinely citable pages are listed
  • Each link has a single plain-language description
  • Links resolve and are reviewed on content changes

Common mistakes

  • Dumping the entire sitemap instead of curating cornerstone pages
  • Treating llms.txt as a guaranteed ranking or citation lever
  • Publishing once and letting the links go stale

30-minute experiment

KPIs to track

  • AI-agent fetches of /llms.txt
  • Share of listed pages later cited by AI engines

FAQs

Do major AI engines actually read llms.txt?

Support is partial and evolving. Some tools consume it, but the big engines have not committed to it universally, so treat it as a low-cost, forward-looking measure.

Is llms.txt the same as robots.txt?

No. robots.txt controls crawler access, while llms.txt curates and describes your best content for AI systems. They are complementary, not substitutes.

Recommended next steps

    Apply the method AI Visibility Framework Framework → See the wider capability AI Visibility Optimisation Capability → Decide your next move Should I allow AI crawlers? Decision →

Where this fits - and what's next

The SearchScore path from a problem you feel to visibility you can measure.

    Problem Spot the pattern Method Pick the framework Do it Follow the guide Check Run the checklist Score Interactive audit TrackSearchScore Tracker StartFree audit →