LLMS.txt AI Documentation Guide: Markdown-First Authoring (2026)
Most "AI-ready documentation" advice stops at adding a chatbot. The harder and more durable work is making the docs themselves readable to a language model: a small markdown file at the project root, structured metadata that survives the trip into a context window, and an authoring discipline that confuses neither a human skimming for an answer nor an LLM extracting one. This guide covers the llms.txt standard, markdown-first authoring, the metadata that actually helps AI ingestion, and the anti-patterns that quietly break both readers.
What the llms.txt Standard Is
The llms.txt convention is a community standard for telling language models what a project is and where its canonical documentation lives. The file sits at the well-known path /llms.txt on a project's domain, mirrors the placement of robots.txt, and is written in plain markdown. Where robots.txt speaks to crawlers about access control, llms.txt speaks to language models about orientation: a one-paragraph project description, an optional context block, a list of canonical links, and an optional links section that points to deeper material.
The format is deliberately boring. There is no XML, no YAML front matter, no JSON envelope, no microdata. A language model reads the file as text, and markdown happens to be the format that language models are best at reading because it is what most of their training corpus is written in. Picking markdown means you spend zero effort on parser compatibility — every model that can read this article can already read your llms.txt.
Three companion files round out the convention. llms-full.txt is the expanded version, a machine-readable dump that bundles the full content of the canonical pages so a model with a large context window can ingest everything in one fetch. llms-small.txt is the opposite: a one-screen summary for size-constrained retrievers. And the per-directory convention lets you drop an llms.txt in any subdirectory to scope it to that part of the project. Together, these files describe a tiered retrieval hierarchy that mirrors how models actually consume documentation: orient first in the small file, then fetch the full file or the linked pages when depth is required.
Adoption has spread across documentation platforms, package registries, framework sites, and developer tooling. The motivation is straightforward. Documentation that is easy for an LLM to read is documentation that surfaces correctly in chat answers, code-completion suggestions, agentic retrieval, and the increasingly common workflow where a developer pastes a project's docs into a model and asks it to write the integration. If your project ships an API, a CLI, or a framework, the question is no longer whether a model will read your docs, but whether you have made those docs readable on purpose.
Why Markdown-First Authoring Wins
Markdown wins for AI-readable docs for the same reasons it wins for human-readable docs: it is plain text, it has a stable grammar, it is diff-able in version control, and it renders to HTML that any browser can display. For LLMs it has one additional property that matters more than the others: markdown is the format the models were trained on. A model that reads a markdown heading knows it is a heading. A model that reads a fenced code block knows it is code. A model that reads a markdown table knows it is tabular data, with row and column relationships preserved in the structure of the text.
Compare that to the alternatives. Authoring in HTML pushes a model to spend tokens parsing tags before it can reach your prose, and rich HTML with classes and inline styles does worse, because the model has to decide which attributes carry meaning and which are decoration. Authoring in a custom DSL or wiki syntax means the model is reading a format it has seen rarely, if at all, and will guess at structure it cannot verify. Authoring in PDF gives the model a binary blob it cannot read at all unless your pipeline first extracts the text — at which point the text extraction, not the PDF, is your documentation.
The practical authoring rules follow directly. One topic per heading so a model can navigate. Short declarative paragraphs so a model can quote them without context collapse. Code in fenced blocks with a language hint so a model knows whether to execute, render, or skip. Tables in pipe syntax so a model can parse rows deterministically. Links in inline form so a model can resolve them without a separate reference section. None of these rules exist for the model's benefit alone — they are the same rules that make human docs skimmable, searchable, and maintainable. The audience overlap is the point.
# MyLibrary
> A one-paragraph description that answers what the project is and
> who it is for, written so a stranger can paraphrase it correctly.
## Context
Two or three paragraphs of background: the problem the project solves,
the alternatives it replaces, and any constraints a reader needs before
the canonical docs make sense. Keep this short — depth lives at the
links, not in the summary.
## Docs
- [Quick start](/docs/quickstart): install, hello world, first run
- [API reference](/docs/api): every public function, one page each
- [Concepts](/docs/concepts): the mental model behind the library
## Optional
- [Changelog](/changelog)
- [Migration guide](/docs/migrate)
- [Examples repository](https://github.com/me/mylibrary-examples)
That skeleton is enough to ship. The discipline is not in the format — the format is trivial — but in what you choose to put in each section, which is what the rest of this guide covers. If you want to generate this skeleton from your existing project metadata rather than write it by hand, the llms.txt generator produces a compliant draft from a project URL or a local manifest, and the markdown-conversion tools in our HTML to markdown converter and markdown to HTML converter round-trip content between the two formats without losing structure. The deeper writing habits are documented in our markdown best practices guide and the platform-specific notes in the GitHub markdown guide and markdown platforms guide.
The Structure of an llms.txt File
An llms.txt file is a markdown document with a small set of conventional sections. The convention is small enough to fit in a screen, which is the point: any author should be able to keep the structure in working memory and any model should be able to navigate it without a schema.
1. Title (H1)
A single top-level heading with the project name. The H1 is what a model treats as the file's identity, so make it match the canonical name a user would type — the package name, the framework name, the product name. Avoid subtitles here; save them for the description.
2. Blockquote description
Immediately under the H1, a single markdown blockquote that answers what the project is and who it is for in one or two sentences. The blockquote syntax matters: it signals "this is the elevator pitch" without a heading, and models reliably treat the blockquote as the file's summary. This is the single most important sentence in the file; spend the most editing time here.
3. Context section (H2)
An optional ## Context heading with two to four short paragraphs of background: the problem the project solves, the alternatives it replaces, and any prerequisites a reader needs before the canonical docs make sense. Keep it short — depth lives at the links, not in the summary. If a reader needs more than four paragraphs of context before the docs make sense, the docs probably need rewriting, not the llms.txt.
4. Docs section (H2)
A ## Docs heading followed by a bullet list of canonical documentation links. Each entry is an inline markdown link followed by a colon and a one-sentence description. The order is meaningful: the first link is what a model should read first, the second what it should read second, and so on. Four to six entries is the sweet spot — fewer means the model has nothing to choose between, more means the ranking signal gets diluted.
5. Optional section (H2)
A ## Optional heading for everything else: changelogs, migration guides, example repositories, design docs, RFC archives. Models treat these as available-but-not-required reading, so the section is where you put material that a thorough question might need but a quick one will not. Anything that does not fit the canonical-docs framing belongs here, not in ## Docs.
That is the whole spec. Five sections, one of them optional, all in plain markdown, all parseable by any model that can read this article. The companion files follow the same structure with different scope: llms-full.txt inlines the content of the canonical links instead of pointing at them, llms-small.txt drops the optional section and trims the context to a sentence or two.
Metadata for AI Ingestion
The most useful metadata for an LLM is the metadata that lives in the text itself, not in a separate envelope. Markdown headings are section markers. Bullet lists are unordered collections. Numbered lists are sequences. Code fences are verbatim. Inline links are citations. Every one of these constructs is a structured signal a model can act on, and every one is already in your file because it is markdown. Resist the temptation to add a second layer of metadata on top — a YAML front matter, a JSON sidecar, a custom directive — because every second layer is a parser you have to maintain and a model has to interpret.
Where structured metadata genuinely helps, it helps because it adds information that markdown does not carry: the date a doc was last reviewed, the version of the project it describes, the license, the canonical URL for citation. These belong in a small, conventional header at the top of the file, written in plain prose so a model can read them without a parser:
# MyLibrary
> A one-paragraph description of the project.
**Version:** 4.2.0
**Stability:** stable
**Last reviewed:** 2026-10-22
**License:** MIT
**Canonical:** https://example.com/llms.txt
Five lines, no front matter, no parser. A model reading this file extracts the version, the stability tier, the last-reviewed date, the license, and the canonical URL with the same reliability it extracts the title. A model reading a YAML front matter block has to first decide whether to treat the YAML as metadata or as content, and the answer is not always obvious — a question about the project's license is a question about the license field, but a question about the file's structure is a question about the YAML itself. Plain prose removes that ambiguity.
The same logic applies to the link descriptions. A link like - [Quick start](/docs/quickstart): install, hello world, first run carries three pieces of metadata in one line: the title, the URL, and a one-sentence summary. A model reading the file can answer "where do I learn how to install this?" without following any link, because the summary already tells it. This is the single highest-leverage habit in llms.txt authoring: write link descriptions as if they were the only documentation a model had, because for many retrieval workflows they are.
For the deeper work of validating metadata that lives in JSON sidecars — API manifests, package metadata, schema definitions — pair llms.txt with the JSON formatter and JSON validator so the machine-readable side of your documentation is as clean as the prose side. The two formats complement each other: llms.txt for prose orientation, JSON for structured data, and a link in the optional section pointing from one to the other so a model knows where to look for each kind of answer. If your llms.txt describes an API, the JSON schema URL should be in ## Optional with a one-line description of what it contains.
Authoring Patterns That Work
Good llms.txt authoring is good technical writing with one extra constraint: every sentence has to survive being read in isolation by a model that may never see the surrounding context. The patterns below are the ones that survive that constraint in practice.
Pattern 1: Inverted pyramid
Put the most important information first under each heading. A model that truncates a section to fit a context budget keeps the opening sentence, so the opening sentence should be the one that answers the section's question. The same pattern serves human readers, who skim headings and first sentences before deciding whether to read on. If the lead sentence of a section cannot stand alone, the section needs a rewrite.
Pattern 2: One topic per heading
Each heading answers exactly one question. A section titled "Installation and Configuration" is two sections stitched together, and a model reading it has to decide which half of the section answers an installation question and which half answers a configuration question. Split the heading. The cost is one extra line of markdown; the benefit is a model that can return the section as a clean answer to either question.
Pattern 3: Code as fenced blocks with language hints
Code goes in fenced blocks with a language hint, not in inline backticks for anything longer than a single identifier. A model reading a fenced block knows the content is verbatim and treats it as such — it will not paraphrase the code, will not extract fragments out of order, will not interpret comments as prose. Without the language hint, a model has to guess; with it, the model can apply language-specific reasoning, including syntax checks against the language's grammar.
Pattern 4: Tables in pipe syntax
Tabular data goes in pipe tables. A model reading a pipe table extracts the row and column structure deterministically, which means a question like "what are the supported values for the timeout option?" returns the right column every time. The same data rendered as a definition list, a series of bullet points, or a paragraph loses that structure, and a model has to reconstruct it from prose — which is where hallucinations enter.
Pattern 5: Diagrams with text captions
Every diagram gets a text caption that summarizes what the diagram shows. A model cannot read an image without a multimodal capability, and even with that capability it cannot read an image reliably the way it reads prose. The caption is what the model actually consumes; the diagram is for humans. This is the same logic as alt text on the web, applied to documentation. A diagram without a caption is invisible to a model and should be paired with a caption that says what the diagram proves, not what it depicts.
Pattern 6: One canonical link per topic
When a topic is covered by a canonical page, link to that page exactly once in ## Docs and not in ## Optional. Multiple links to the same page dilute the ranking signal — a model reading four links to the same quickstart has no way to know which one is the canonical one. If a page is referenced from ## Docs, references from elsewhere in the file should be by title, not by link, so the model treats them as the same destination.
Anti-Patterns That Confuse LLMs
The anti-patterns below are the ones that show up most often in real llms.txt files in the wild, and each of them is a way to make a model produce worse answers without any visible failure. A model will not error on these patterns; it will simply return shallower, more confident, more wrong answers, which is harder to detect and harder to fix than an outright failure.
Anti-pattern 1: Marketing copy in the description
The blockquote description is the file's elevator pitch to a model, and an elevator pitch to a model is not the same as an elevator pitch to a human buyer. "The world's most powerful, blazing-fast, enterprise-grade platform for..." is a sentence that gives a model nothing to anchor on. "A Python library for turning CSV files into validated parquet datasets" is a sentence that gives a model everything. Strip the adjectives; keep the nouns and verbs.
Anti-pattern 2: Autogenerated API reference as the only docs
An autogenerated API reference lists every function with its signature, but it does not answer the questions a model is most often asked: how do I start, what is the mental model, what should I read first. A llms.txt whose ## Docs section is a single link to the API reference is a llms.txt that fails the orientation test. Add a quickstart, a concepts page, and a tutorial to ## Docs, and let the API reference live in ## Optional or as one entry among several.
Anti-pattern 3: Links behind JavaScript navigation
If a link in llms.txt points at a page that renders its content via JavaScript, a model that fetches the link will receive an empty shell. The fix is on the destination, not the index: every canonical doc should render its content in the initial HTML response, not behind a client-side router. This is also a human-accessibility and SEO requirement, so the discipline pays back across all three audiences. If a page cannot avoid client-side rendering, link to a static export instead.
Anti-pattern 4: HTML or rich markup inside the file
Markdown allows inline HTML, and inline HTML in a llms.txt file is almost always a mistake. A model reading the file as markdown treats raw HTML as text, which means the content inside the HTML tags is read but the structure the tags were trying to add is lost. If you need structure that markdown does not have, write it as a markdown table or a fenced code block; if you need it as HTML, it belongs on a linked page, not in the index.
Anti-pattern 5: Version-less, date-less metadata
A llms.txt without a version or a last-reviewed date is a file whose accuracy a model cannot assess. A model reading "the recommended way to do X is Y" has to assume the statement is current; without a date, it has no way to weight that assumption against the possibility the file is two years stale. Adding a single Last reviewed: line in the header solves this with one line of effort. The cost is trivial and the benefit compounds over the life of the file.
Anti-pattern 6: Sitemap dump as docs section
A ## Docs section that lists every page on the site is not a docs section, it is a sitemap in markdown clothing. The point of llms.txt is curation: a small set of links a model can rank. If you cannot pick four to six links, you have not done the curation work. Move the rest to ## Optional or to llms-full.txt, and let the summary stay a summary.
Anti-pattern 7: Ignoring the small file
Some projects ship llms-full.txt and skip llms.txt entirely, on the theory that more is better. It is not. A model that fetches the full file by default spends its context budget on background it may not need, leaving less budget for the question and the answer. The summary file is the one a model reads first; the full file is the one it reads when it needs depth. Shipping one without the other breaks the tiered retrieval hierarchy the standard is designed around.
Human and Machine Coexistence
The strongest objection to llms.txt authoring is also the weakest: "I should not have to write documentation for two audiences." The objection rests on a false premise. Markdown-first authoring is not two-audience authoring; it is one-audience authoring with one set of rules that happens to serve both readers well. Every pattern in this guide is a pattern a competent technical writer already follows. The llms.txt standard formalizes the patterns; it does not invent a second craft.
Where the two audiences genuinely diverge, the divergences are small and the human wins matter to humans too. A diagram needs a text caption for an LLM; the same caption is the alt text a screen reader needs for a blind human reader. A canonical link needs a one-sentence description for an LLM; the same description is what a search engine shows as the snippet for the link, and what a developer skimming the file uses to decide whether to click. A version and a last-reviewed date in the header help an LLM assess freshness; the same metadata helps a human decide whether the file is worth trusting.
The pattern that does diverge — and the only one that requires real discipline — is the inverted pyramid within each section. Human readers will tolerate a section that builds to a conclusion; models will not, because they truncate. The fix is the same fix a journalist applies to a news story: put the conclusion first. The cost is a small editorial adjustment; the benefit is a section that works as a quote in a chat answer, as a snippet in a search result, and as a paragraph in a human's reading. Three wins for one rewrite.
Coexistence is also a workflow question. The most maintainable setup is a single markdown source for each doc page, with two render paths: a static HTML path for human browsers and a markdown passthrough for LLM fetches. Tools that publish markdown to the web — most modern static site generators, most developer-doc platforms — already do this if you do not turn on JavaScript rendering. Pair the static-site discipline with the writing habits in our documentation best practices guide, and the same markdown serves both audiences without a second build step. The broader workflow picture, including how llms.txt fits into CI checks, regeneration hooks, and developer tooling, is covered in the sibling llms.txt generator AI integration for developers guide.
Validation and Testing
A llms.txt file is only as good as the answers a model can produce from it, which means validation is not a syntax check but an evaluation. Three checks, in order of effort and signal, will catch the failure modes that matter.
Check 1: Token budget
Pass the file through a tokenizer and confirm the body stays under roughly 2,000 tokens, the budget that comfortably fits a single context window for every production model in current use. The common estimate is 4 characters per token for English text, so 2,000 tokens is about 8,000 characters or 1,500 words; the precise number varies by model and tokenizer, but the order of magnitude is stable. If the file is over budget, the fix is to move material to llms-full.txt, not to compress the summary — a compressed summary loses the orientation signal that justifies the file. A simple way to estimate by hand: count words, multiply by 1.3 to get a token estimate, and stay under 1,500 words.
Check 2: Stranger test
Read the file as if you had never seen the project. After one pass, can you answer three questions: what the project is, where to start reading, and what to read next. If any answer is fuzzy, the corresponding section needs rewriting. This is the same test a good README passes, applied to a smaller file. The point is not to be exhaustive but to be unambiguous.
Check 3: Model summary test
Paste the file into a current LLM and ask it to summarize the project in three sentences, then ask a follow-up question about the project's primary use case. Compare the model's summary to your intended one. Gaps in the model's output are gaps in the file, not gaps in the model. This is the most powerful test in the list and the cheapest to run; a single session catches problems that no static linter can detect.
For the structural checks, the llms.txt generator validates the file against the convention as part of producing it, and a quick manual review against the skeleton in the structure section above is enough for hand-written files. For the content checks, the model summary test is the gold standard; pair it with the reading time calculator and word counter to keep the summary under the 1,500-word target, and the character counter to watch the 8,000-character ceiling that the 4-char-per-token estimate implies. The text case converter is a small helper for keeping heading casing consistent across the file, and the deeper craft of writing content that fits tight character budgets is documented in the character counter strategies for content optimization guide.
Examples and Templates
Three worked examples cover the common shapes a real llms.txt takes. The first is a library, the second a SaaS product, the third a framework. Each is short enough to read in one screen, which is the point — a file that does not fit on a screen is a file that needs the companion full version.
Example 1: A library
# csv2parquet
> A small Python library for turning CSV files into validated
> parquet datasets, with schema inference and type-safe output.
## Context
CSV files are everywhere and parquet is the right format for
analytical workloads, but the conversion step is fiddly: types
have to be inferred, schemas have to be validated, and edge
cases (empty files, mixed delimiters, encoding mismatches) have
to be handled without crashing the pipeline. csv2parquet
handles those cases so you do not have to.
## Docs
- [Quick start](/docs/quickstart): install, first conversion, options
- [Schema inference](/docs/schema): how types are detected and overridden
- [Validation rules](/docs/validation): what fails and what passes
- [CLI reference](/docs/cli): every flag, every default
## Optional
- [Changelog](/changelog)
- [Migration from v3 to v4](/docs/migrate)
- [Examples repository](https://github.com/me/csv2parquet-examples)
Example 2: A SaaS product
# Acme Analytics
> A product analytics platform for B2B SaaS companies, with
> event tracking, funnel analysis, and account-level reporting.
## Context
Acme is built for teams that sell to other businesses and need
to understand behavior at the account level, not just the user
level. The data model is account-first: every event belongs to
an account, every report groups by account, and the API exposes
account-level scopes by default.
## Docs
- [Onboarding](/docs/onboarding): install the SDK, send your first event
- [Data model](/docs/data-model): accounts, users, events, properties
- [API reference](/docs/api): REST endpoints, auth, pagination
- [Integration guides](/docs/integrations): Segment, Snowflake, dbt
## Optional
- [Changelog](/changelog)
- [Status page](https://status.acme.dev)
- [Security and compliance](/docs/security)
Example 3: A framework
# Wavefront
> A server-side web framework for TypeScript, built around
> streaming responses and a single async request handler.
## Context
Wavefront is a response to the gap between request-response
frameworks (simple, blocking) and edge platforms (streaming,
event-driven). It exposes a single handler signature that
returns an async iterable of response chunks, and the routing,
middleware, and rendering layers all consume that signature.
## Docs
- [Tutorial: build a streaming endpoint](/docs/tutorial)
- [Concepts: handlers, chunks, middleware](/docs/concepts)
- [Routing reference](/docs/routing)
- [Deployment: edge platforms, self-hosting](/docs/deploy)
## Optional
- [Migration from Express](/docs/migrate-express)
- [Examples repository](https://github.com/wavefront/examples)
- [RFC archive](/rfcs)
Each example fits the same skeleton, differs only in scope, and answers the orientation question in under a screen. The llms.txt generator produces drafts in this shape from a project URL or manifest, and the markdown-conversion tools in the HTML to markdown converter and markdown to HTML converter round-trip existing content into the format. For deeper writing habits, the markdown best practices guide covers the prose craft; the GitHub markdown guide and markdown platforms guide cover the platform-specific flavors.
Integration With Developer Workflows
An llms.txt file is most valuable when it is generated, not hand-maintained, and when it regenerates automatically as the project changes. The minimum viable workflow is a build script that reads the project's documentation manifest, picks the canonical links, renders the markdown skeleton, and writes the file to the published output directory. A single script, run on every release, keeps the file current without anyone having to remember to update it.
A more robust workflow adds three things. First, a CI check that fails the build if the file is missing or stale, so the file cannot silently drift out of sync with the project. Second, a regeneration hook that runs whenever the documentation site is deployed, so the file always reflects the latest published pages. Third, a linter that validates the file against the convention — required sections, link count, token budget — and reports problems before they ship. Each of these is a few dozen lines of script; together they make llms.txt a maintained artifact instead of a one-time deliverable.
The deepest integration goes further: the llms-full.txt companion is generated by fetching each canonical link, extracting the markdown content, and concatenating with section dividers. This is more involved than generating the summary file but pays off when the project has many pages, because it gives a model with a large context window the full content in one fetch. The trade-off is regeneration cost — the full file changes whenever any source page changes, so the build script has to track page hashes to avoid rebuilding from scratch every release.
Where the workflow lives depends on your stack. A static-site project can put the generation step in its build pipeline. A package registry can generate the file from package metadata when a version is published. A SaaS product can generate it from the documentation site's sitemap on each deploy. The common thread is automation: a file that depends on a human remembering to update it is a file that will eventually be wrong. The sibling llms.txt generator AI integration for developers guide covers the concrete build scripts, CI configurations, and platform-specific hooks; this article stays on the authoring discipline that the automation has to serve. For the broader pattern of treating docs as code, the documentation best practices guide covers the editorial side, and the data conversion tools for professional workflows guide covers the format-conversion side.
7 Common Anti-Patterns (and the Fix for Each)
- Treating llms.txt as a sitemap dump. Listing every page on the site dilutes the curation signal a model uses to rank. Fix: pick four to six canonical links, move the rest to
## Optionalor tollms-full.txt, and treat the summary as a summary. - Embedding marketing fluff in the description. Adjectives like "world-class" and "blazing-fast" give a model nothing to anchor on. Fix: keep the blockquote description to nouns and verbs — what the project is, who it is for, what it does.
- Using HTML or rich markup inside the file. A model treats raw HTML as text, which means the structure the tags were trying to add is lost. Fix: write in plain markdown, use pipe tables for tabular data, use fenced blocks for code, and leave rich markup on the linked pages.
- Omitting version and last-reviewed metadata. Without a date or a version, a model has no way to assess the file's freshness. Fix: add a Last reviewed: line and a Version: line in the header; one line each, no front matter required.
- Hiding links behind JavaScript-rendered navigation. A model that fetches a JS-rendered page receives an empty shell. Fix: render content in the initial HTML response, or link to a static export; this also serves human accessibility and SEO.
- Copying autogenerated API reference verbatim. An API reference lists functions but does not answer orientation questions. Fix: add a quickstart, a concepts page, and a tutorial to
## Docs; let the API reference be one entry among several, or live in## Optional. - Forgetting the optional links section. A file with only the canonical links omits the material a thorough question might need. Fix: include
## Optionalwith changelogs, migration guides, example repos, and design docs, so a model can find depth when the question requires it.
Every one of these is an editorial failure, not a technical one, which is also why the fixes are about what you choose to write rather than what tooling you adopt. The tooling matters — the validation and integration sections above cover that — but no linter catches a sitemap dump or marketing fluff; those need a human editor with the orientation test in mind.
Frequently Asked Questions
6 questions, in roughly the order developers ask them when they first hear about the standard.
Related Articles
Documentation Best Practices
The editorial discipline behind every llms.txt: write for skimming, treat docs as code, and keep the source of truth in version control.
LLMS.txt Generator AI Integration for Developers
Build scripts, CI checks, and regeneration hooks for shipping llms.txt as a maintained artifact instead of a one-time deliverable.
Regex Testing Guide
Pattern-matching discipline that pairs with structured documentation: validate, test, and document the regexes your llms.txt describes.
Calculator Tools Guide
A pillar example of how a NoCostTools guide is structured: same markdown-first authoring discipline, applied to a different domain.
Unit Converter Tools Guide
Another cross-cluster pillar showing the same heading-first, link-canonical structure this guide recommends for llms.txt files.
Productivity Tools Ultimate Guide
The meta-pillar for the broader productivity and writing-tools ecosystem, including the markdown and JSON helpers llms.txt authoring leans on.
Conclusion: Documentation Both Readers Can Use
The llms.txt standard is small on purpose. Five sections of plain markdown, one of them optional, written so any language model can read the file as text and any human can read it as a project orientation. The format is not the hard part; the hard part is the editorial discipline that makes those five sections worth reading — the curated four-to-six canonical links, the noun-and-verb description, the inverted-pyramid paragraphs, the version and last-reviewed metadata, the text captions on every diagram. None of those habits are new, and none of them are LLM-specific; they are the habits a competent technical writer already follows.
What llms.txt adds is the discipline of writing them down in one file at a well-known path, so a model fetching your project can orient itself in a single context window. Treat the file as a map: small, opinionated, and curated, with depth living at the linked pages and in llms-full.txt for the questions that need it. Validate it with a token-budget check, a stranger test, and a model-summary test before you ship. Regenerate it on every release so it cannot drift. The reward is documentation that surfaces correctly in chat answers, agentic retrievers, and the developer workflows where a model reads your docs before a human does.
When you are ready to move from reading to making, draft the file with the llms.txt generator, validate it with the three checks above, and pair it with the deeper writing habits in our documentation best practices guide and the workflow integration in the developer integration guide. More guides on documentation, markdown, and developer tooling are catalogued on the NoCostTools blog, the broader productivity toolkit is on the productivity tools ultimate guide, and you can read more about the team behind these guides on the about page or browse the full collection of common questions on the site FAQ.