llms.txt
HolyDocs automatically generates llms.txt and llms-full.txt files that make your documentation AI-readable.
Overview
HolyDocs automatically generates llms.txt and llms-full.txt files during each build. These files follow the llms.txt specification and provide a structured, machine-readable version of your documentation optimized for large language model consumption.
What is llms.txt?
The llms.txt standard provides a way for websites to offer their content in a format optimized for LLM consumption. Instead of requiring AI models to parse HTML, the .txt files provide clean, structured text with navigation metadata.
Generated Files
HolyDocs generates four AI-native files during each build:
| File | URL | Description |
|---|---|---|
llms.txt | /llms.txt | Concise summary with page titles and descriptions |
llms-full.txt | /llms-full.txt | Full text content of all documentation pages |
| Section files | /llms-full/<section>.txt | For a large site, the same text one navigation section per file |
skill.md | /skill.md | Structured skill file for AI agent systems |
agent-card.json | /.well-known/agent-card.json | ERC-8004 agent card for discovery |
The generated /skill.md file describes your specific documentation site for agent discovery. It is different from the public HolyDocs agent skills repository at seangeng/holydocs-skills, which you install into coding assistants with npx skills add.
llms.txt Format
The llms.txt file lists your pages in navigation order, with one section per navigation group: a tab and its group (Products / Vision), and a nested group under its parent. Pages the navigation does not list come after them, and changelog pages come last. Each entry is one line: a description that runs to several paragraphs keeps its first one.
text# My API Docs> Documentation for the My API service.## Getting Started- [Introduction](/introduction): Overview of the API and key concepts.- [Quickstart](/quickstart): Get your first API call working in 5 minutes.- [Authentication](/api/authentication): API keys, OAuth, and JWT authentication.## API Reference- [Projects](/api/projects): Create and manage projects.- [Deployments](/api/deployments): List and trigger deployments.
llms-full.txt Format
The llms-full.txt file includes the complete text content of every page, in the same order as llms.txt:
text# My API Docs> Documentation for the My API service.## IntroductionOverview of the API and key concepts.The My API service provides a RESTful API for managing...[Full page content continues...]---## QuickstartGet your first API call working in 5 minutes.[Full page content continues...]
Large sites
llms-full.txt always holds every page. When that is more than 512 KB, too much for an agent to read at once, the build also writes the same text one section of llms.txt per file, such as /llms-full/products-vision.txt. A section bigger than 512 KB is cut at page boundaries into parts (/llms-full/api-reference-sandboxes-1.txt, -2.txt), so no file is over 512 KB unless one page is. llms.txt lists the section files under ## Optional, each with its page count and size.
Markdown for agents
The page text in these files, in each page's .md URL and in Copy page is Markdown that a CommonMark parser reads as you wrote it. Components such as <Tabs> and <Steps> are removed and their titles become bold labels. Their children lose the indentation MDX allows inside a component, so every code fence starts at the left margin and code keeps only its own indentation, and a fence your page leaves open is closed.
Files and folders whose names start with _ or ., such as _snippets/ or a _changelog/ of fragments, are not pages: they are not served, searched or listed in these files, unless your navigation lists them.
Accessing the Files
The files are served by the renderer at your documentation domain:
texthttps://docs.yourcompany.com/llms.txthttps://docs.yourcompany.com/llms-full.txthttps://docs.yourcompany.com/skill.mdhttps://docs.yourcompany.com/.well-known/agent-card.json
Contextual Menu
HolyDocs includes a contextual menu button (bottom-left of every page) that provides quick access to AI-native features:
Additional options include opening in Cursor, copying the MCP server URL, and linking to the llms.txt file.
Agent Card (ERC-8004)
The agent card at /.well-known/agent-card.json follows the ERC-8004 specification for AI agent discovery:
json{ "name": "My API Docs", "description": "Documentation for the My API service", "url": "https://docs.yourcompany.com", "capabilities": { "mcp": "https://api.holydocs.com/api/v1/mcp/PROJECT_ID/message", "search": "https://api.holydocs.com/api/v1/docs/PROJECT_ID/search", "llmsTxt": "https://docs.yourcompany.com/llms.txt" }}
The llms.txt files are regenerated on every production deployment. There is no separate configuration needed — if your docs build successfully, the AI-native files are automatically created and served.
Storage
All AI-native files are stored in R2 alongside your built documentation. They are served with appropriate content types:
.txtfiles:text/plain; charset=utf-8.mdfiles:text/markdown; charset=utf-8.jsonfiles:application/json