What the llms.txt Specification Requires
Proposed by Answer.AI on llmstxt.org, /llms.txt gives AI assistants and coding agents a clean, token-efficient Markdown map of your most authoritative pages. Instead of parsing noisy navigation menus and tracking scripts, an agent reads one structured index.
| Validation Check | Score Weight | Passing Criteria |
|---|---|---|
| Plain Markdown Response | Gate | Served without HTML wrapper or SPA index.html fallback |
| Single H1 Brand Heading | 25 pts | First heading uses # Site or Product Name |
| Blockquote Summary | 20 pts | Concise > One-sentence summary immediately below H1 |
| H2 Topic Sections | 20 pts | At least one ## Section grouping core documentation or products |
| Absolute HTTPS Links | 25 pts | Standard [Label](https://domain.com/path) entries with zero broken syntax |
| File Size Hygiene | 10 pts | Readable index between 20 bytes and 50 KB |
Minimal Valid llms.txt Template
Use this exact layout as a clean baseline before deploying to your root directory:
# Acme Analytics
> Privacy-first web analytics for SaaS teams with transparent monthly pricing starting at $19/mo.
## Core Pages
- [Product Overview](https://acme.example/): Feature architecture and live demo
- [Pricing](https://acme.example/pricing): Free tier, $19/mo Pro, and $69/mo Agency plans
- [API Reference](https://acme.example/docs/api): REST endpoints and authentication
## Optional
- [Full Documentation](https://acme.example/llms-full.txt): Complete Markdown reference
Five Common llms.txt Mistakes Caught by This Tool
- Soft-200 HTML fallbacks: Frameworks like Next.js, Vite, or Cloudflare Pages sometimes rewrite unknown root files to
index.html, tricking naive status checks into reporting 200 OK. - Relative URL paths: Writing
(/pricing)instead of(https://yourdomain.com/pricing)breaks downstream agents that ingest the Markdown text outside a browser context. - Missing summary blockquote: Omitting the
>line forces models to infer what your brand sells from URL slugs alone. - Stuffing 1,000 blog URLs: Dumping an entire sitemap into
/llms.txtbloats token usage; list your 10–40 highest-value commercial, documentation, and pricing URLs instead. - Stale facts: Listing outdated prices or deprecated features creates conflicting entity signals against your live HTML pages.
Comparing /llms.txt, /llms-full.txt, and /sitemap.xml
| File Path | Primary Consumer | Ideal Content Scope |
|---|---|---|
/llms.txt |
AI assistants and IDE agents | Curated 10–40 top URLs with plain-text descriptions |
/llms-full.txt |
Deep RAG ingestion pipelines | Full Markdown text of docs, pricing, and policies |
/sitemap.xml |
Googlebot, Bingbot, and search indexers | Exhaustive XML inventory of all indexable URLs and lastmod dates |
Server Header and Caching Checklist
- Return HTTP
200 OKdirectly without redirecting/llms.txtthrough login walls or trailing-slash rules. - Set
Content-Type: text/plain; charset=utf-8ortext/markdown; charset=utf-8so crawlers never mistake it for HTML. - Keep
Cache-Control: public, max-age=3600so documentation edits propagate rapidly to AI retrieval pipelines.
Validate, Fix, and Cross-Check Crawlability
Open the llms.txt Generator if you need to create a valid file from your existing sitemap automatically. After deploying /llms.txt, confirm search crawlers can reach it with the AI Crawler Access Checker and keep your site aligned with Google SEO fundamentals.