TL;DR –
/llms.txtis the new robots.txt for Large Language Models.
Use it to curate the fewest, highest-signal pages from your site and point AI crawlers straight at them.
Welcome to the open-source, battle-tested guide we use inside
FictionTribe to give our clients an edge in
Generative Engine Optimisation (GEO).
If you’re hungry for more visibility in ChatGPT, Gemini & friends, start here.
- Why llms.txt matters
- The 3 outcomes you can target
- Step-by-step build workflow
- Automating updates
- Validation checklist
- Appendix A – Sample llms.txt
- Appendix B – Helpful tools
Search bots index everything and decide later.
LLM retrievers, on the other hand, pay for every token they ingest—
so they love a concise roadmap.
Small file, big leverage.
| Outcome | Tactic |
|---|---|
| Discovery boost | List pillar guides & FAQs up top. |
| Citation control | Link clean Markdown mirrors of pay-walled or cluttered HTML. |
| Faster answers | Summarise each link in ≤ 15 words so the model can triage on-the-fly. |
- Inventory evergreen, expert-level pages.
- Convert them to lightweight
.md(strip nav, ads, comments). - Draft
llms.txtusing Markdown headings + bullet lists (see sample). - Deploy to your root:
https://yourdomain.com/llms.txt. - Reference it in
robots.txtwith a friendly comment. - Test with your favourite LLM:
“According to my-site’s llms.txt, what’s the cheapest district in Bangkok for long-term stays?”
- Git-based sites – add a pre-commit hook that rebuilds
llms.txtfrom files taggedllm-source: true. - Headless CMS – nightly cron pulls top posts via API ➜ converts to Markdown ➜ rewrites
llms.txt. - Monitoring – tail server logs for
GPTBothits to ensure crawlers fetch the new file.
- ≤ 250 total links grouped into clear H2 buckets
- File size < 30 KB
- No duplicate or redirecting URLs
-
robots.txtallows AI agents to fetch every linked doc - Manual spot-test in ChatGPT returns your pages as sources
A minimal example for this very repo lives in /llms.txt (see next file).
Copy-paste it to your root and update the links to fit your own site.
| Tool | What it does |
|---|---|
| llms_txt2ctx (CLI) | Expands llms.txt, prints a combined context window for quick QA. |
| WP llms.txt Exporter | 1-click export of selected WordPress posts to Markdown and llms.txt. |
| crawler-peek (Python) | Simulates GPTBot requests to verify your server rules. |
© 2025 FictionTribe • MIT License
Feel free to fork, star, and adapt—just keep the attribution.
Need hands-on GEO help? Say hi 👋