llms.txt Template for LLM-Friendly Docs
llms.txt site index for language models: H1, summary, link-list sections, Optional section, llms-full.txt, .md page mirrors, rel alternate/describedby discovery
उपयोग कैसे करें: Use to give language models a curated map of your documentation. Write the blockquote summary first, link only to Markdown copies of pages, and add rel="alternate" and rel="describedby" links or a Link header. The main pitfall is breaking the fixed order or putting prose inside the H2 link sections.
प्रीव्यू
[Project name]
[One or two sentences that summarise the project for a language model: what it is, who it is for, and the key facts needed to understand the rest of this file. Example: "Acme Pay is a REST API and SDK for accepting card and bank payments in 30 countries. All amounts are integers in minor currency units, and every write request accepts an Idempotency-Key header."]
[Optional details in plain paragraphs or bullet lists, without headings. Use this space for the facts a model most needs before following links: key concepts, naming conventions, and common pitfalls.]
- [Product name] has two interfaces: the REST API at
https://api.example.com/v1and official SDKs for [TypeScript, Python, Go]. - Authentication uses secret keys sent as
Authorization: Bearer sk_...; test keys start withsk_test_. - Prefer the SDKs over raw HTTP in code examples.
Docs
- Quickstart: Install the SDK and make a first test payment in five minutes
- Authentication: API keys, scopes and key rotation
- Payments guide: Creating, capturing and refunding payments
- Webhooks: Event types, signature verification and retries
- Errors: Error format, codes and how to handle each
API reference
- REST API reference: Every endpoint with parameters and examples
- OpenAPI document: Machine-readable API description
- TypeScript SDK: Installation, configuration and method list
Examples
- Checkout integration: Complete server and client example
- Subscription billing: Recurring payments with trials
Optional
- Changelog: Release history and breaking changes
- Architecture overview: Background reading on how the platform is built
- Glossary: Payment industry terms used in the docs
About this file
This section explains the format and should be removed before publishing.
Structure. The proposal defines a fixed order. The H1 with the project
name is the only required element. A blockquote with a short summary
follows, then any number of paragraphs or lists without headings, then
zero or more H2 sections. Each H2 section is a Markdown list where every
item is a link, optionally followed by a colon and a short note:
- [Name](url): notes.
The Optional section. A section titled exactly Optional marks links
that a tool can skip when it needs a shorter context. Put secondary
material there, such as changelogs or background reading.
Where to host it. Serve the file at /llms.txt on the site root, with
a text or Markdown content type. A file placed in a subdirectory, such as
/docs/llms.txt, covers the pages under that path. See the next section
for Markdown versions of pages and how agents discover them.
llms-full.txt. Many sites also publish /llms-full.txt, a single file
that contains the full text of the linked documentation concatenated in
Markdown. It suits tools that want everything in one request. Generate it
from your docs build so it never drifts from the source pages, and keep
/llms.txt as the short, curated index.
Maintenance. Regenerate both files when documentation changes, check that every link resolves, and keep notes to one line each.
Revision history (of this template; remove with this section):
| Version | Date | Change |
|---|---|---|
| 1.0 | YYYY-MM-DD | First version, following the llms.txt proposal as first published |
| 1.1 | 2026-10-24 | Updated to the proposal as modified 2026-08-10: Markdown mirrors, discovery with rel="alternate" and rel="describedby", subdirectory files |
Discovery and Markdown mirrors
This section explains the version 2 additions to the proposal and should be removed before publishing, like the section above.
Markdown version of each page. For every page an agent may need,
publish a clean Markdown copy at the same address with .md added. Two
naming patterns are accepted: append .md to the full file name
(/docs/quickstart.html.md) or replace the extension
(/docs/quickstart.md). For an address without a file name, such as
/docs/, use /docs/index.html.md or /docs/index.md. Pick one pattern
per site and generate the copies from the same source as the HTML so they
never drift.
Discovery with link relations. Tell agents where the Markdown copy
and the covering llms.txt live, either in the HTML head or as an HTTP
header:
| Relation | Points to | Example value |
|---|---|---|
rel="alternate" with type="text/markdown" | The Markdown version of this page | /docs/quickstart.html.md |
rel="describedby" | The llms.txt file that covers this page | /docs/llms.txt |
In HTML:
<link rel="alternate" type="text/markdown" href="/docs/quickstart.html.md">
<link rel="describedby" href="/docs/llms.txt">
As an HTTP response header, which also works for non-HTML responses such as the Markdown copies themselves and can be added in the web server or CDN without touching page templates:
Link: </docs/quickstart.html.md>; rel="alternate"; type="text/markdown", </docs/llms.txt>; rel="describedby"
Checklist before release.
- Every link in
/llms.txtresolves to a Markdown copy, not to HTML. - Every documentation page carries both relations, in HTML or in the
Linkheader. - Markdown copies are served with a
text/markdowncontent type and the same access rules as the HTML page: do not expose drafts or private pages through the mirror. - The docs build fails if a page has no Markdown copy.
Standard and licence note
Based on the llms.txt proposal v2 by Jeremy Howard, published at
https://llmstxt.org/ (first published 2024-09-03, modified 2026-08-10):
H1 name, blockquote summary, optional details, H2 link-list sections, an
Optional section, Markdown page versions and discovery through
rel="alternate" and rel="describedby". The proposal is an informal
community proposal, not a formal standard; check the current version at
llmstxt.org. Original text written for this collection; example URLs
are placeholders. Template licence: MIT.
संबंधित टेम्पलेट
Architecture Decision Record (ADR) Template
Lightweight Nygard-style ADR: status, context, decision, consequences, alternatives, related decisions, lifecycle and log
सॉफ़्टवेयर और इंजीनियरिंगAGENTS.md Template for AI Coding Agents
Repository instructions for AI coding agents: setup, build and test commands, conventions, architecture map, PR and security rules
सॉफ़्टवेयर और इंजीनियरिंगAI Coding Assistant Policy Template
Policy for AI coding assistants and agents: autonomy levels, tool register, secrets, sandboxing, review of generated code, provenance, OWASP ASI and SSDF mapping