Skip to content

Rule · AI search

No /llms.txt

geo/llms-txt-missinginfovoid geoupdated

Why it matters

llms.txt is a curated Markdown index for inference-time agents, used mostly by coding agents. Adoption is cheap but evidence of answer-engine use is thin (97% of files got zero requests in Ahrefs' 2026 study), so this is informational.

How to fix it

Add app/llms.txt/route.ts with an H1, a > summary and sections of links to Markdown pages.

Example

ts
// app/llms.txt/route.ts
export const dynamic = 'force-static'
export function GET() {
  const body = [
    '# Acme',
    '',
    '> Acme builds fast widgets for teams. Open source, MIT licensed.',
    '',
    '## Docs',
    '',
    '- [Quick start](https://acme.example/docs/quick-start.md): install and render a widget in 2 minutes',
    '',
    '## Optional',
    '',
    '- [Changelog](https://acme.example/changelog.md)',
  ].join('\n')
  return new Response(body, { headers: { 'Content-Type': 'text/markdown; charset=utf-8' } })
}

References

void geo reports 41 rules in this category. Generative-engine optimisation: whether AI crawlers that don't run JavaScript see the same content, valid and visible JSON-LD, an explicit AI robots policy, llms.txt, Markdown mirrors and answer-first writing.