Protocol & Standards

Setting Up /llms.txt (and How Much It Matters)

What /llms.txt and /llms-full.txt are, how to serve them, what Rankara checks, and why it's labelled a playbook convention.

5 min readUpdated: October 2026Rankara (Product documentation)

1. What is the /llms.txt Protocol?

/llms.txt is a proposed convention: a Markdown file at your site's root with a short summary and links to your most important pages, meant to help AI assistants find clean versions of your content. /llms-full.txt, where used, is a single file with the full text. Unlike robots.txt, nothing obliges any crawler to read it.

How much it matters

/llms.txt is a community proposal. No major AI provider has confirmed that its crawlers or assistants use it, so Rankara labels it a playbook convention and weights it lightly. It's cheap to add; don't expect it to move rankings or citations on its own.

2. Syntax Specification & Markdown Rules

An /llms.txt file is formatted in standard Markdown and contains specific structural sections:

  • # Title: Single H1 declaring the name of the website or service.
  • > Blockquote: A concise 2-3 sentence overview of the company, product, or developer API.
  • ## Section Headers (H2): Grouped bullet points containing Markdown links to clean text files.
  • Optional File (/llms-full.txt): A single concatenated file containing full documentation for direct context loading.

3. Implementing Route Handlers in Next.js App Router

In Next.js App Router projects, you can dynamically serve /llms.txt using a dedicated route handler at `app/llms.txt/route.ts` or as a static file in your `public/` directory.

src/app/llms.txt/route.ts
typescript
import { NextResponse } from "next/server";

export async function GET() {
  const content = `# Rankara AI Search Intelligence

> Rankara is an autonomous Generative Engine Optimization (GEO) platform that audits sites against the AI SEO playbook and scores how well passages match the queries they target.

## Core Documentation
- [Passage analysis](/docs/fixing-vector-dead-zones): Guide to finding and fixing passage gaps.
- [GEO vs SEO Guide](/docs/geo-vs-seo-guide): Comparative strategy breakdown for modern search.
- [/llms.txt Standard](/docs/llms-txt-standard): How to structure and validate /llms.txt.

## Optional & System Manifests
- [Full Documentation Manifest](/llms-full.txt): Complete concatenated text documentation.
`;

  return new NextResponse(content, {
    headers: {
      "Content-Type": "text/plain; charset=utf-8",
      "Cache-Control": "public, max-age=3600, s-maxage=86400",
    },
  });
}

4. What Rankara Checks

Every audit, including the free home-page audit, checks that /llms.txt exists with content, that it contains Markdown links to your pages, and whether /llms-full.txt exists. It doesn't fetch the linked pages or score the file's content.

5. Sample /llms.txt File Format

An example /llms.txt:

public/llms.txt
markdown
# Acme Cloud Services

> Acme Cloud provides serverless vector database infrastructure and real-time embedding sync pipelines for enterprise AI applications.

## Technical Guides
- [Getting Started](https://acme.cloud/docs/quickstart.md): 5-minute setup guide for Node.js and Python SDKs.
- [API Reference](https://acme.cloud/docs/api.md): REST and gRPC API reference endpoints.
- [Vector Indexing Protocols](https://acme.cloud/docs/vector-index.md): Best practices for HNSW and IVFFlat index tuning.

## Legal & System Status
- [Privacy & Data Security](https://acme.cloud/privacy.md): Enterprise security standards and SOC2 compliance.
- [System Status](https://status.acme.cloud): Real-time API uptime metrics.
Free audit

Check Your Home Page for Free

Run a free playbook audit of your domain, then analyze your pages' sections against their search queries to find the queries nothing answers.